diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-01 22:04:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-01 22:04:33 +0000 |
commit | f94bc547575236d06a45bc17c576f3e19e463803 (patch) | |
tree | 7438b0d8b2d172164dfec30fb6a4476f0ce6a3ba /utils/TableGen | |
parent | 73736df88ba5a35bf172191c2dea5294306fce04 (diff) | |
download | external_llvm-f94bc547575236d06a45bc17c576f3e19e463803.zip external_llvm-f94bc547575236d06a45bc17c576f3e19e463803.tar.gz external_llvm-f94bc547575236d06a45bc17c576f3e19e463803.tar.bz2 |
tolerate factoring the *last* node for CellSPU.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97508 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/DAGISelMatcherOpt.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/TableGen/DAGISelMatcherOpt.cpp b/utils/TableGen/DAGISelMatcherOpt.cpp index 0e89fa0..97ddf67 100644 --- a/utils/TableGen/DAGISelMatcherOpt.cpp +++ b/utils/TableGen/DAGISelMatcherOpt.cpp @@ -351,6 +351,11 @@ static void FactorNodes(OwningPtr<Matcher> &MatcherPtr) { return; } + if (NewOptionsToMatch.empty()) { + MatcherPtr.reset(0); + return; + } + // If our factoring failed (didn't achieve anything) see if we can simplify in // other ways. |