diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2007-12-04 23:57:55 +0000 | 
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2007-12-04 23:57:55 +0000 | 
| commit | e412a4427b65a8255d5a3ca2631e2ac6075360d2 (patch) | |
| tree | 154cac5e570b90eabda993e00360c4d877393cf8 /llvm/lib/CodeGen | |
| parent | e9d786e54dd75bbef0b6ee4739cd19feb0f2eac1 (diff) | |
| download | bcm5719-llvm-e412a4427b65a8255d5a3ca2631e2ac6075360d2.tar.gz bcm5719-llvm-e412a4427b65a8255d5a3ca2631e2ac6075360d2.zip | |
Remove a unsafe optimization. This fixes 401.bzip2.
llvm-svn: 44587
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/VirtRegMap.cpp | 8 | 
1 files changed, 0 insertions, 8 deletions
| diff --git a/llvm/lib/CodeGen/VirtRegMap.cpp b/llvm/lib/CodeGen/VirtRegMap.cpp index a375a7b4985..58fc40b2174 100644 --- a/llvm/lib/CodeGen/VirtRegMap.cpp +++ b/llvm/lib/CodeGen/VirtRegMap.cpp @@ -1040,14 +1040,6 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM) {        // Check to see if this stack slot is available.        unsigned PhysReg = Spills.getSpillSlotOrReMatPhysReg(SSorRMId); -      if (!PhysReg && DoReMat) { -        // This use is rematerializable. But perhaps the value is available in -        // a register if the definition is not deleted. If so, check if we can -        // reuse the value. -        ReuseSlot = VRM.getStackSlot(VirtReg); -        if (ReuseSlot != VirtRegMap::NO_STACK_SLOT) -          PhysReg = Spills.getSpillSlotOrReMatPhysReg(ReuseSlot); -      }        // If this is a sub-register use, make sure the reuse register is in the        // right register class. For example, for x86 not all of the 32-bit | 

