Skip to content
Snippets Groups Projects
Commit 664ac989 authored by Chris Lattner's avatar Chris Lattner
Browse files

tolerate factoring the *last* node for CellSPU.

llvm-svn: 97508
parent 87d50aa1
No related branches found
No related tags found
No related merge requests found
...@@ -351,6 +351,11 @@ static void FactorNodes(OwningPtr<Matcher> &MatcherPtr) { ...@@ -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 // If our factoring failed (didn't achieve anything) see if we can simplify in
// other ways. // other ways.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment