summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/InstrInfoEmitter.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-07-05 07:19:29 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-07-05 07:19:29 +0000
commite32e7fb40d1145406e58d75e9143fa434d0c1377 (patch)
treee57b90d6ec31eb4632581eddc10b4343e6f98131 /llvm/utils/TableGen/InstrInfoEmitter.cpp
parent94f04c6fc9e9adf9db62f729526c244ea455fc81 (diff)
downloadbcm5719-llvm-e32e7fb40d1145406e58d75e9143fa434d0c1377.tar.gz
bcm5719-llvm-e32e7fb40d1145406e58d75e9143fa434d0c1377.zip
Instructions with ImmutablePredicateOperand aren't really predicable since their predicates are fixed at isel time.
llvm-svn: 37899
Diffstat (limited to 'llvm/utils/TableGen/InstrInfoEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/InstrInfoEmitter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/InstrInfoEmitter.cpp b/llvm/utils/TableGen/InstrInfoEmitter.cpp
index af01e4cd75a..a57770de468 100644
--- a/llvm/utils/TableGen/InstrInfoEmitter.cpp
+++ b/llvm/utils/TableGen/InstrInfoEmitter.cpp
@@ -107,7 +107,8 @@ 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"))
+ if (Inst.OperandList[i].Rec->isSubClassOf("PredicateOperand") &&
+ !Inst.OperandList[i].Rec->getValueAsBit("isImmutable"))
Res += "|M_PREDICATE_OPERAND";
// Fill in constraint info.
OpenPOWER on IntegriCloud