mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
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. llvm-svn: 96815
This commit is contained in:
parent
1613c59dbe
commit
e4d3e9772a
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user