diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-08-02 22:37:22 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-08-02 22:37:22 +0000 |
commit | 77ee1140a3297e6fbd6cb7cf586872af6d00d07e (patch) | |
tree | fc45296c21a8af6755ba8b16c377b8df1d8170d6 /lib/CodeGen/SplitKit.h | |
parent | 4751eb760e7f4e51cfd594cbe46c7d0d7865d693 (diff) |
Add a BlockInfo::FirstDef field.
This is either an invalid SlotIndex, or valno->def for the first value
defined inside the block. PHI values are not counted as defined inside
the block.
The FirstDef field will be used when estimating the cost of spilling
around a block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136736 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SplitKit.h')
-rw-r--r-- | lib/CodeGen/SplitKit.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SplitKit.h b/lib/CodeGen/SplitKit.h index 4566b84ca7..92d6bc88f5 100644 --- a/lib/CodeGen/SplitKit.h +++ b/lib/CodeGen/SplitKit.h @@ -78,6 +78,7 @@ public: MachineBasicBlock *MBB; SlotIndex FirstUse; ///< First instr using current reg. SlotIndex LastUse; ///< Last instr using current reg. + SlotIndex FirstDef; ///< First non-phi valno->def, or SlotIndex(). bool LiveIn; ///< Current reg is live in. bool LiveOut; ///< Current reg is live out. |