summaryrefslogtreecommitdiff
path: root/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
commit8012b077dd4d1c88e0221448c67147324c4e00cf (patch)
treefce93ccd6c36339c1da4aff000fac827fd793fd5 /utils/TableGen/InstrInfoEmitter.cpp
parent0e1d37904abbf7e8c4c478408253dd995f3040f4 (diff)
downloadllvm-8012b077dd4d1c88e0221448c67147324c4e00cf.tar.gz
llvm-8012b077dd4d1c88e0221448c67147324c4e00cf.tar.bz2
llvm-8012b077dd4d1c88e0221448c67147324c4e00cf.tar.xz
Instructions with ImmutablePredicateOperand aren't really predicable since their predicates are fixed at isel time.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/InstrInfoEmitter.cpp')
-rw-r--r--utils/TableGen/InstrInfoEmitter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp
index af01e4cd75..a57770de46 100644
--- a/utils/TableGen/InstrInfoEmitter.cpp
+++ b/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.