summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-22 00:47:38 +0000
committerChris Lattner <sabre@nondot.org>2010-02-22 00:47:38 +0000
commit74fd536158f5230b5993d826d86e701f1f24314f (patch)
treef997e5aa0c1259641ef7fa3aa4c57d06d12edd38 /include
parentccfea35efb0817267a9b997933207863917a8a85 (diff)
downloadllvm-74fd536158f5230b5993d826d86e701f1f24314f.tar.gz
llvm-74fd536158f5230b5993d826d86e701f1f24314f.tar.bz2
llvm-74fd536158f5230b5993d826d86e701f1f24314f.tar.xz
enhance my hack for flags handling, this allows us to pass
CodeGen/X86/pr2182.ll. Down to 13 x86 failures out of ~1100 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/DAGISelHeader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/DAGISelHeader.h b/include/llvm/CodeGen/DAGISelHeader.h
index 3a6fee9577..d800281bd5 100644
--- a/include/llvm/CodeGen/DAGISelHeader.h
+++ b/include/llvm/CodeGen/DAGISelHeader.h
@@ -740,7 +740,8 @@ SDNode *SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
// after (parallel) on input patterns are removed. This would also
// allow us to stop encoding #results in OPC_CompleteMatch's table
// entry.
- if (NodeToMatch->getNumValues() <= i)
+ if (NodeToMatch->getNumValues() <= i ||
+ NodeToMatch->getValueType(i) == MVT::Other)
break;
assert((NodeToMatch->getValueType(i) == Res.getValueType() ||
NodeToMatch->getValueType(i) == MVT::iPTR ||