summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-22 22:37:11 +0000
committerChris Lattner <sabre@nondot.org>2010-02-22 22:37:11 +0000
commit418b5683363bade8a6f924f753fa76d8c752be2c (patch)
tree47c43c0333b67eaa1bed920e4f8a1626661b60ba /include
parent12a667c1e8fa57a13ae751164b6dd4412a62dc5d (diff)
downloadllvm-418b5683363bade8a6f924f753fa76d8c752be2c.tar.gz
llvm-418b5683363bade8a6f924f753fa76d8c752be2c.tar.bz2
llvm-418b5683363bade8a6f924f753fa76d8c752be2c.tar.xz
expand my hack to work with nodes that have flags but no chains and the
isel doesn't know the correct # results. This fixes 8 codegen tests, down to 22 failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96815 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 d60940ff1f..0ebb9f10f6 100644
--- a/include/llvm/CodeGen/DAGISelHeader.h
+++ b/include/llvm/CodeGen/DAGISelHeader.h
@@ -758,7 +758,8 @@ SDNode *SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
// allow us to stop encoding #results in OPC_CompleteMatch's table
// entry.
if (NodeToMatch->getNumValues() <= i ||
- NodeToMatch->getValueType(i) == MVT::Other)
+ NodeToMatch->getValueType(i) == MVT::Other ||
+ NodeToMatch->getValueType(i) == MVT::Flag)
break;
assert((NodeToMatch->getValueType(i) == Res.getValueType() ||
NodeToMatch->getValueType(i) == MVT::iPTR ||