projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6215109
)
Hack around extracts that aren't easy to process.
author
Eric Christopher
<echristo@apple.com>
Wed, 21 Jul 2010 22:07:19 +0000
(22:07 +0000)
committer
Eric Christopher
<echristo@apple.com>
Wed, 21 Jul 2010 22:07:19 +0000
(22:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109043
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/FastISelEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/FastISelEmitter.cpp
b/utils/TableGen/FastISelEmitter.cpp
index 08fc139b5d104c5a8169a44ee87b2dcc5b9f380a..14d60210b3147da10c85e6366a7dd7419835b06a 100644
(file)
--- 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());