diff options
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/CodeGenTarget.cpp | 3 | ||||
-rw-r--r-- | utils/TableGen/InstrInfoEmitter.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/utils/TableGen/CodeGenTarget.cpp b/utils/TableGen/CodeGenTarget.cpp index e4d80ee..18e11bd 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 a57770d..af01e4c 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. |