diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-11-13 22:42:13 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-11-13 22:42:13 +0000 |
| commit | d8f2405e7300bcc2197b98e999e6a918a8e162da (patch) | |
| tree | aa12c49f17d7570f000b4eaf724e56c48e395d5d /llvm/lib/CodeGen/InlineSpiller.cpp | |
| parent | 424ca7bbf5cafdaebe05fe5f4b134995b41922cc (diff) | |
| download | bcm5719-llvm-d8f2405e7300bcc2197b98e999e6a918a8e162da.tar.gz bcm5719-llvm-d8f2405e7300bcc2197b98e999e6a918a8e162da.zip | |
Terminate all dead defs at the dead slot instead of the 'next' slot.
This makes no difference for normal defs, but early clobber dead defs
now look like:
[Slot_EarlyClobber; Slot_Dead)
instead of:
[Slot_EarlyClobber; Slot_Register).
Live ranges for normal dead defs look like:
[Slot_Register; Slot_Dead)
as before.
llvm-svn: 144512
Diffstat (limited to 'llvm/lib/CodeGen/InlineSpiller.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/InlineSpiller.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp index 021c381d87a..3341ae1bbbf 100644 --- a/llvm/lib/CodeGen/InlineSpiller.cpp +++ b/llvm/lib/CodeGen/InlineSpiller.cpp @@ -1206,7 +1206,7 @@ void InlineSpiller::spillAroundUses(unsigned Reg) { // This instruction defines a dead value. We don't need to spill it, // but do create a live range for the dead value. VNInfo *VNI = NewLI.getNextValue(Idx, 0, LIS.getVNInfoAllocator()); - NewLI.addRange(LiveRange(Idx, Idx.getNextSlot(), VNI)); + NewLI.addRange(LiveRange(Idx, Idx.getDeadSlot(), VNI)); } } |

