mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
remove dead code, simplify.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97510 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -392,16 +392,10 @@ static void FactorNodes(OwningPtr<Matcher> &MatcherPtr) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Reassemble a new Scope node.
|
// Reassemble the Scope node with the adjusted children.
|
||||||
assert(!NewOptionsToMatch.empty() &&
|
|
||||||
"Where'd all our children go? Did we really factor everything??");
|
|
||||||
if (NewOptionsToMatch.empty())
|
|
||||||
MatcherPtr.reset(0);
|
|
||||||
else {
|
|
||||||
Scope->setNumChildren(NewOptionsToMatch.size());
|
Scope->setNumChildren(NewOptionsToMatch.size());
|
||||||
for (unsigned i = 0, e = NewOptionsToMatch.size(); i != e; ++i)
|
for (unsigned i = 0, e = NewOptionsToMatch.size(); i != e; ++i)
|
||||||
Scope->resetChild(i, NewOptionsToMatch[i]);
|
Scope->resetChild(i, NewOptionsToMatch[i]);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Matcher *llvm::OptimizeMatcher(Matcher *TheMatcher,
|
Matcher *llvm::OptimizeMatcher(Matcher *TheMatcher,
|
||||||
|
Reference in New Issue
Block a user