[llvm-commits] [llvm] r44587 - /llvm/trunk/lib/CodeGen/VirtRegMap.cpp
Evan Cheng
evan.cheng at apple.com
Tue Dec 4 15:57:56 PST 2007
Author: evancheng
Date: Tue Dec 4 17:57:55 2007
New Revision: 44587
URL: http://llvm.org/viewvc/llvm-project?rev=44587&view=rev
Log:
Remove a unsafe optimization. This fixes 401.bzip2.
Modified:
llvm/trunk/lib/CodeGen/VirtRegMap.cpp
Modified: llvm/trunk/lib/CodeGen/VirtRegMap.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/VirtRegMap.cpp?rev=44587&r1=44586&r2=44587&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/VirtRegMap.cpp (original)
+++ llvm/trunk/lib/CodeGen/VirtRegMap.cpp Tue Dec 4 17:57:55 2007
@@ -1040,14 +1040,6 @@
// 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
More information about the llvm-commits
mailing list