projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
73736df
)
tolerate factoring the *last* node for CellSPU.
author
Chris Lattner
<sabre@nondot.org>
Mon, 1 Mar 2010 22:04:33 +0000
(22:04 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 1 Mar 2010 22:04:33 +0000
(22:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97508
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/DAGISelMatcherOpt.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/DAGISelMatcherOpt.cpp
b/utils/TableGen/DAGISelMatcherOpt.cpp
index 0e89fa028f595c245ad8116e08e03fc8585590c8..97ddf67dd40b42963edbd6782b34877b2e6e97f6 100644
(file)
--- a/
utils/TableGen/DAGISelMatcherOpt.cpp
+++ b/
utils/TableGen/DAGISelMatcherOpt.cpp
@@
-351,6
+351,11
@@
static void FactorNodes(OwningPtr<Matcher> &MatcherPtr) {
return;
}
return;
}
+ if (NewOptionsToMatch.empty()) {
+ MatcherPtr.reset(0);
+ return;
+ }
+
// If our factoring failed (didn't achieve anything) see if we can simplify in
// other ways.
// If our factoring failed (didn't achieve anything) see if we can simplify in
// other ways.