Add a BlockInfo::FirstDef field.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 2 Aug 2011 22:37:22 +0000 (22:37 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 2 Aug 2011 22:37:22 +0000 (22:37 +0000)
commit77ee1140a3297e6fbd6cb7cf586872af6d00d07e
treefc45296c21a8af6755ba8b16c377b8df1d8170d6
parent4751eb760e7f4e51cfd594cbe46c7d0d7865d693
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
lib/CodeGen/SplitKit.cpp
lib/CodeGen/SplitKit.h