mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Add a statistic to PHIElimination tracking the number of critical edges split.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125476 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a18da59d40
commit
117be03cc6
@ -83,6 +83,7 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
STATISTIC(NumAtomic, "Number of atomic phis lowered");
|
STATISTIC(NumAtomic, "Number of atomic phis lowered");
|
||||||
|
STATISTIC(NumCriticalEdgesSplit, "Number of critical edges split");
|
||||||
STATISTIC(NumReused, "Number of reused lowered phis");
|
STATISTIC(NumReused, "Number of reused lowered phis");
|
||||||
|
|
||||||
char PHIElimination::ID = 0;
|
char PHIElimination::ID = 0;
|
||||||
@ -413,8 +414,12 @@ bool PHIElimination::SplitPHIEdges(MachineFunction &MF,
|
|||||||
!LV.isLiveIn(Reg, MBB) && LV.isLiveOut(Reg, *PreMBB)) {
|
!LV.isLiveIn(Reg, MBB) && LV.isLiveOut(Reg, *PreMBB)) {
|
||||||
if (!MLI ||
|
if (!MLI ||
|
||||||
!(MLI->getLoopFor(PreMBB) == MLI->getLoopFor(&MBB) &&
|
!(MLI->getLoopFor(PreMBB) == MLI->getLoopFor(&MBB) &&
|
||||||
MLI->isLoopHeader(&MBB)))
|
MLI->isLoopHeader(&MBB))) {
|
||||||
Changed |= PreMBB->SplitCriticalEdge(&MBB, this) != 0;
|
if (PreMBB->SplitCriticalEdge(&MBB, this)) {
|
||||||
|
Changed = true;
|
||||||
|
++NumCriticalEdgesSplit;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user