OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fb65cf
)
when a match fails and we have to rollback, make sure to keep 'N' in
author
Chris Lattner
<sabre@nondot.org>
Sun, 21 Feb 2010 07:55:48 +0000
(07:55 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 21 Feb 2010 07:55:48 +0000
(07:55 +0000)
sync with the top of stack. This fixes a bunch of failures on larger
testcases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96732
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/DAGISelHeader.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/DAGISelHeader.h
b/include/llvm/CodeGen/DAGISelHeader.h
index
1e808ed
..
42583ec
100644
(file)
--- a/
include/llvm/CodeGen/DAGISelHeader.h
+++ b/
include/llvm/CodeGen/DAGISelHeader.h
@@
-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);