mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Separate timers for local and global splitting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126001 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
75dab009eb
commit
a2ebf60ef2
@ -1116,12 +1116,15 @@ unsigned RAGreedy::tryLocalSplit(LiveInterval &VirtReg, AllocationOrder &Order,
|
||||
/// @return Physreg when VirtReg may be assigned and/or new NewVRegs.
|
||||
unsigned RAGreedy::trySplit(LiveInterval &VirtReg, AllocationOrder &Order,
|
||||
SmallVectorImpl<LiveInterval*>&NewVRegs) {
|
||||
NamedRegionTimer T("Splitter", TimerGroupName, TimePassesIsEnabled);
|
||||
SA->analyze(&VirtReg);
|
||||
|
||||
// Local intervals are handled separately.
|
||||
if (LIS->intervalIsInOneMBB(VirtReg))
|
||||
if (LIS->intervalIsInOneMBB(VirtReg)) {
|
||||
NamedRegionTimer T("Local Splitting", TimerGroupName, TimePassesIsEnabled);
|
||||
return tryLocalSplit(VirtReg, Order, NewVRegs);
|
||||
}
|
||||
|
||||
NamedRegionTimer T("Global Splitting", TimerGroupName, TimePassesIsEnabled);
|
||||
|
||||
// First try to split around a region spanning multiple blocks.
|
||||
unsigned PhysReg = tryRegionSplit(VirtReg, Order, NewVRegs);
|
||||
|
Loading…
x
Reference in New Issue
Block a user