diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-02-19 00:38:40 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-02-19 00:38:40 +0000 |
commit | 609bc44c2e0acc28c91cbb7d1e3a321b3e8670ba (patch) | |
tree | 40746b6dc7b5821f86a8a2a1f68c37e06b8e13e8 /llvm/lib | |
parent | 82e559837ad286e5a2b9c2a9b78adaa0a3a111d0 (diff) | |
download | bcm5719-llvm-609bc44c2e0acc28c91cbb7d1e3a321b3e8670ba.tar.gz bcm5719-llvm-609bc44c2e0acc28c91cbb7d1e3a321b3e8670ba.zip |
Separate timers for local and global splitting.
llvm-svn: 126001
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocGreedy.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp index c4080aef860..3c65cf3b29b 100644 --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp @@ -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); |