summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-07-21 22:07:19 +0000
committerEric Christopher <echristo@apple.com>2010-07-21 22:07:19 +0000
commit07fdd897e2c4304b6f70345c488e97fd97374576 (patch)
tree533f10ace5a7618b846932b79414dbb08e499370 /utils
parent6215109cd967190a3d005d1e2e284cd51e45eadc (diff)
downloadllvm-07fdd897e2c4304b6f70345c488e97fd97374576.tar.gz
llvm-07fdd897e2c4304b6f70345c488e97fd97374576.tar.bz2
llvm-07fdd897e2c4304b6f70345c488e97fd97374576.tar.xz
Hack around extracts that aren't easy to process.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/FastISelEmitter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/TableGen/FastISelEmitter.cpp b/utils/TableGen/FastISelEmitter.cpp
index 08fc139b5d..14d60210b3 100644
--- a/utils/TableGen/FastISelEmitter.cpp
+++ b/utils/TableGen/FastISelEmitter.cpp
@@ -287,6 +287,10 @@ void FastISelMap::CollectPatterns(CodeGenDAGPatterns &CGP) {
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());