[llvm-commits] [llvm] r72232 - /llvm/trunk/utils/TableGen/FastISelEmitter.cpp

Dale Johannesen dalej at apple.com
Thu May 21 15:25:50 PDT 2009


Author: johannes
Date: Thu May 21 17:25:49 2009
New Revision: 72232

URL: http://llvm.org/viewvc/llvm-project?rev=72232&view=rev
Log:
TableGen for fast isel seems to assume an 'imm'
operand is the last in a pattern.  There is no
reason this should be true (although apparently
it always is right now).


Modified:
    llvm/trunk/utils/TableGen/FastISelEmitter.cpp

Modified: llvm/trunk/utils/TableGen/FastISelEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/FastISelEmitter.cpp?rev=72232&r1=72231&r2=72232&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/FastISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/FastISelEmitter.cpp Thu May 21 17:25:49 2009
@@ -82,11 +82,11 @@
       if (!Op->isLeaf()) {
         if (Op->getOperator()->getName() == "imm") {
           Operands.push_back("i");
-          return true;
+          continue;
         }
         if (Op->getOperator()->getName() == "fpimm") {
           Operands.push_back("f");
-          return true;
+          continue;
         }
         // For now, ignore other non-leaf nodes.
         return false;





More information about the llvm-commits mailing list