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

Eric Christopher echristo at apple.com
Wed Jul 21 15:07:19 PDT 2010


Author: echristo
Date: Wed Jul 21 17:07:19 2010
New Revision: 109043

URL: http://llvm.org/viewvc/llvm-project?rev=109043&view=rev
Log:
Hack around extracts that aren't easy to process.

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=109043&r1=109042&r2=109043&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/FastISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/FastISelEmitter.cpp Wed Jul 21 17:07:19 2010
@@ -287,6 +287,10 @@
       if (!DstRC)
         continue;
     } else {
+      // If this isn't a leaf, then continue since the register classes are
+      // a bit too complicated for now.
+      if (!Dst->getChild(1)->isLeaf()) continue;
+      
       DefInit *SR = dynamic_cast<DefInit*>(Dst->getChild(1)->getLeafValue());
       if (SR)
         SubRegNo = getQualifiedName(SR->getDef());





More information about the llvm-commits mailing list