Hack around extracts that aren't easy to process.

llvm-svn: 109043
This commit is contained in:
Eric Christopher 2010-07-21 22:07:19 +00:00
parent efcc2a0cfb
commit bebb8c5f86
1 changed files with 4 additions and 0 deletions

View File

@ -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());