summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FastISelEmitter.cpp
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
commitbebb8c5f8679779ca873360f5804c1cfc2dcc8dd (patch)
tree2347aa29754fc6869860b00fa0a5b8237d3186de /llvm/utils/TableGen/FastISelEmitter.cpp
parentefcc2a0cfb262ba2efdd9a72b9e38960b42cb79c (diff)
downloadbcm5719-llvm-bebb8c5f8679779ca873360f5804c1cfc2dcc8dd.tar.gz
bcm5719-llvm-bebb8c5f8679779ca873360f5804c1cfc2dcc8dd.zip
Hack around extracts that aren't easy to process.
llvm-svn: 109043
Diffstat (limited to 'llvm/utils/TableGen/FastISelEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/FastISelEmitter.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/FastISelEmitter.cpp b/llvm/utils/TableGen/FastISelEmitter.cpp
index 08fc139b5d1..14d60210b31 100644
--- a/llvm/utils/TableGen/FastISelEmitter.cpp
+++ b/llvm/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());
OpenPOWER on IntegriCloud