From 74fd536158f5230b5993d826d86e701f1f24314f Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 22 Feb 2010 00:47:38 +0000 Subject: [PATCH] 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 --- include/llvm/CodeGen/DAGISelHeader.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/CodeGen/DAGISelHeader.h b/include/llvm/CodeGen/DAGISelHeader.h index 3a6fee95775..d800281bd59 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 ||