mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Fix an obvious merge bug in -join-globalcopies (disabled).
Jakub Staszak spotted this in review. I don't notice these things until I manually rerun benchmarks. But reducing unit tests is a very high priority. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168021 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6b88e2a147
commit
c6d6aeb95f
@ -2080,8 +2080,10 @@ void RegisterCoalescer::joinAllIntervals() {
|
||||
unsigned CurrDepth = UINT_MAX;
|
||||
for (unsigned i = 0, e = MBBs.size(); i != e; ++i) {
|
||||
// Try coalescing the collected local copies for deeper loops.
|
||||
if (JoinGlobalCopies && MBBs[i].Depth < CurrDepth)
|
||||
if (JoinGlobalCopies && MBBs[i].Depth < CurrDepth) {
|
||||
coalesceLocals();
|
||||
CurrDepth = MBBs[i].Depth;
|
||||
}
|
||||
copyCoalesceInMBB(MBBs[i].MBB);
|
||||
}
|
||||
coalesceLocals();
|
||||
|
Loading…
x
Reference in New Issue
Block a user