summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/TableGen/CodeGenTarget.cpp3
-rw-r--r--utils/TableGen/InstrInfoEmitter.cpp3
2 files changed, 2 insertions, 4 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp
index e4d80ee669..18e11bdb6f 100644
--- a/utils/TableGen/CodeGenTarget.cpp
+++ b/utils/TableGen/CodeGenTarget.cpp
@@ -412,8 +412,7 @@ CodeGenInstruction::CodeGenInstruction(Record *R, const std::string &AsmStr)
NumOps = NumArgs;
if (Rec->isSubClassOf("PredicateOperand")) {
- if (!Rec->getValueAsBit("isImmutable"))
- isPredicable = true;
+ isPredicable = true;
}
} else if (Rec->getName() == "variable_ops") {
hasVariableNumberOfOperands = true;
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp
index a57770de46..af01e4cd75 100644
--- a/utils/TableGen/InstrInfoEmitter.cpp
+++ b/utils/TableGen/InstrInfoEmitter.cpp
@@ -107,8 +107,7 @@ InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) {
// Predicate operands. Check to see if the original unexpanded operand
// was of type PredicateOperand.
- if (Inst.OperandList[i].Rec->isSubClassOf("PredicateOperand") &&
- !Inst.OperandList[i].Rec->getValueAsBit("isImmutable"))
+ if (Inst.OperandList[i].Rec->isSubClassOf("PredicateOperand"))
Res += "|M_PREDICATE_OPERAND";
// Fill in constraint info.