1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[TableGen] Make sure to recursively factor any ScopeMatchers created while forming a SwitchType node. Remove a couple hundred bytes from the X86 matcher table.

llvm-svn: 268611
This commit is contained in:
Craig Topper 2016-05-05 06:19:27 +00:00
parent d1a2f5a48d
commit 1049b48ef2

View File

@ -484,7 +484,9 @@ static void FactorNodes(std::unique_ptr<Matcher> &MatcherPtr) {
}
Matcher *Entries[2] = { PrevMatcher, MatcherWithoutCTM };
Cases[Entry-1].second = new ScopeMatcher(Entries);
std::unique_ptr<Matcher> Case(new ScopeMatcher(Entries));
FactorNodes(Case);
Cases[Entry-1].second = Case.release();
continue;
}