diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-15 00:16:55 +0000 |
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-10-15 00:16:55 +0000 |
| commit | 0f3e98ce2ed0daf9e003931dc7f4c053b307c3df (patch) | |
| tree | 99e6d3bf5d3f41ec5debb6e2aff58a3484116cb6 /llvm/lib/CodeGen/SplitKit.cpp | |
| parent | b3ce035c7155644d5bced46c45ae5ac865b7aedc (diff) | |
| download | bcm5719-llvm-0f3e98ce2ed0daf9e003931dc7f4c053b307c3df.tar.gz bcm5719-llvm-0f3e98ce2ed0daf9e003931dc7f4c053b307c3df.zip | |
Move stack slot assignments into LiveRangeEdit.
All registers created during splitting or spilling are assigned to the same
stack slot as the parent register.
When splitting or rematting, we may not spill at all. In that case the stack
slot is still assigned, but it will be dead.
llvm-svn: 116546
Diffstat (limited to 'llvm/lib/CodeGen/SplitKit.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SplitKit.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/SplitKit.cpp b/llvm/lib/CodeGen/SplitKit.cpp index ea551bb623a..96ccf3031e8 100644 --- a/llvm/lib/CodeGen/SplitKit.cpp +++ b/llvm/lib/CodeGen/SplitKit.cpp @@ -591,12 +591,6 @@ SplitEditor::SplitEditor(SplitAnalysis &sa, LiveIntervals &lis, VirtRegMap &vrm, openli_(lis_, *curli_) { assert(curli_ && "SplitEditor created from empty SplitAnalysis"); - - // Make sure curli_ is assigned a stack slot, so all our intervals get the - // same slot as curli_. - if (vrm_.getStackSlot(curli_->reg) == VirtRegMap::NO_STACK_SLOT) - vrm_.assignVirt2StackSlot(curli_->reg); - } bool SplitEditor::intervalsLiveAt(SlotIndex Idx) const { |

