Mark all (not just the first) predicate operand M_PREDICATE_OPERAND.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 15 May 2007 01:20:36 +0000 (01:20 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 15 May 2007 01:20:36 +0000 (01:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37061 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/InstrInfoEmitter.cpp

index 6fc6d0f6841256c50360899f1d90d6b50a36e22e..4db92bd8702d65c218a54ca43de970d8269c6316 100644 (file)
@@ -107,7 +107,7 @@ InstrInfoEmitter::GetOperandInfo(const CodeGenInstruction &Inst) {
 
       // Predicate operands.  Check to see if the original unexpanded operand
       // was of type PredicateOperand.
-      if (j == 0 && Inst.OperandList[i].Rec->isSubClassOf("PredicateOperand"))
+      if (Inst.OperandList[i].Rec->isSubClassOf("PredicateOperand"))
         Res += "|M_PREDICATE_OPERAND";
         
       // Fill in constraint info.