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 | 567d358193effac22cbda6144ca5b9b08e524f96 (patch) | |
tree | 40e3129cf3581011e7daed5cb4e8fc8e87029d63 /lib/CodeGen/VirtRegMap.cpp | |
parent | d84ba7b38bcad4153acfc3577ea0fddd0948bebf (diff) | |
download | external_llvm-567d358193effac22cbda6144ca5b9b08e524f96.zip external_llvm-567d358193effac22cbda6144ca5b9b08e524f96.tar.gz external_llvm-567d358193effac22cbda6144ca5b9b08e524f96.tar.bz2 |
Remove a unsafe optimization. This fixes 401.bzip2.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.cpp')
-rw-r--r-- | lib/CodeGen/VirtRegMap.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index a375a7b..58fc40b 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/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 |