Remove predicate workaround, we're going to require that predicate
authorEric Christopher <echristo@apple.com>
Tue, 17 Aug 2010 01:18:37 +0000 (01:18 +0000)
committerEric Christopher <echristo@apple.com>
Tue, 17 Aug 2010 01:18:37 +0000 (01:18 +0000)
and optional def operands are handled in the backend support.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111220 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/FastISelEmitter.cpp

index 70448ab92aead727d1015f04a446b07b61d4002e..6a909955abbe41e26fa11495f1b52be7e7310e2a 100644 (file)
@@ -264,15 +264,6 @@ void FastISelMap::CollectPatterns(CodeGenDAGPatterns &CGP) {
     CodeGenInstruction &II = CGP.getTargetInfo().getInstruction(Op);
     if (II.OperandList.empty())
       continue;
-
-    // For now ignore instructions that have predicate operands.
-    bool HasPredicate = false;
-    for (unsigned i = 0, e = II.OperandList.size(); i != e; ++i) {
-      if(II.OperandList[i].Rec->isSubClassOf("PredicateOperand"))
-        HasPredicate = true;
-    }
-    if (HasPredicate)
-      continue;
       
     // For now, ignore multi-instruction patterns.
     bool MultiInsts = false;