diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-27 00:39:07 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-27 00:39:07 +0000 |
commit | c95c1465fdba059f6cbf24d1d9fd84f442c60fe4 (patch) | |
tree | 64cf45b873c891a8ccc952b3fa8ac041c81c3a50 /lib/CodeGen/SplitKit.h | |
parent | 0960a650b7047373da25bee6ec2eb73889c3b7bb (diff) | |
download | llvm-c95c1465fdba059f6cbf24d1d9fd84f442c60fe4.tar.gz llvm-c95c1465fdba059f6cbf24d1d9fd84f442c60fe4.tar.bz2 llvm-c95c1465fdba059f6cbf24d1d9fd84f442c60fe4.tar.xz |
Handle critical loop predecessors by making both inside and outside registers
live out.
This doesn't prevent us from inserting a loop preheader later on, if that is
better.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r-- | lib/CodeGen/SplitKit.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h index 08fac7f451..9c109dc4d5 100644 --- a/lib/CodeGen/SplitKit.h +++ b/lib/CodeGen/SplitKit.h @@ -200,7 +200,7 @@ public: // extendTo - Find the last li_ value defined in MBB at or before Idx. The // parentli is assumed to be live at Idx. Extend the live range to include // Idx. Return the found VNInfo, or NULL. - VNInfo *extendTo(MachineBasicBlock *MBB, SlotIndex Idx); + VNInfo *extendTo(const MachineBasicBlock *MBB, SlotIndex Idx); /// isMapped - Return true is ParentVNI is a known mapped value. It may be a /// simple 1-1 mapping or a complex mapping to later defs. @@ -271,6 +271,10 @@ class SplitEditor { /// truncating any overlap with intervals_. void addTruncSimpleRange(SlotIndex Start, SlotIndex End, VNInfo *VNI); + /// criticalPreds_ - Set of basic blocks where both dupli and openli should be + /// live out because of a critical edge. + SplitAnalysis::BlockPtrSet criticalPreds_; + /// computeRemainder - Compute the dupli liveness as the complement of all the /// new intervals. void computeRemainder(); |