mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
when a match fails and we have to rollback, make sure to keep 'N' in
sync with the top of stack. This fixes a bunch of failures on larger testcases. llvm-svn: 96732
This commit is contained in:
parent
e8842eb260
commit
c7fac8c8b2
@ -760,6 +760,7 @@ SDNode *SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable,
|
||||
const MatchScope &LastScope = MatchScopes.back();
|
||||
RecordedNodes.resize(LastScope.NumRecordedNodes);
|
||||
NodeStack.resize(LastScope.NodeStackSize);
|
||||
N = NodeStack.back();
|
||||
|
||||
if (LastScope.NumMatchedMemRefs != MatchedMemRefs.size())
|
||||
MatchedMemRefs.resize(LastScope.NumMatchedMemRefs);
|
||||
|
Loading…
Reference in New Issue
Block a user