mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-23 11:04:49 +00:00
tablegen: Add a simple heuristic to get better names for pressure sets
Differential Revision: http://reviews.llvm.org/D14597 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253095 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2588aa9425
commit
ca7d645a60
@ -1574,6 +1574,12 @@ void CodeGenRegBank::pruneUnitSets() {
|
||||
&& UnitWeight == RegUnits[SuperSet.Units.back()].Weight) {
|
||||
DEBUG(dbgs() << "UnitSet " << SubIdx << " subsumed by " << SuperIdx
|
||||
<< "\n");
|
||||
// We can pick any of the set names for the merged set. Go for the
|
||||
// shortest one to avoid picking the name of one of the classes that are
|
||||
// artificially created by tablegen. So "FPR128_lo" instead of
|
||||
// "QQQQ_with_qsub3_in_FPR128_lo".
|
||||
if (RegUnitSets[SubIdx].Name.size() < RegUnitSets[SuperIdx].Name.size())
|
||||
RegUnitSets[SuperIdx].Name = RegUnitSets[SubIdx].Name;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user