[llvm-commits] [llvm] r56529 - /llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp
Dan Gohman
gohman at apple.com
Tue Sep 23 17:07:08 PDT 2008
Author: djg
Date: Tue Sep 23 19:07:08 2008
New Revision: 56529
URL: http://llvm.org/viewvc/llvm-project?rev=56529&view=rev
Log:
Set SetStore to false, to allow this pass to delete
dead loads.
Modified:
llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp
Modified: llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp?rev=56529&r1=56528&r2=56529&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp (original)
+++ llvm/trunk/lib/CodeGen/DeadMachineInstructionElim.cpp Tue Sep 23 19:07:08 2008
@@ -46,7 +46,7 @@
const MachineRegisterInfo &MRI = MF.getRegInfo();
const TargetInstrInfo &TII = *MF.getTarget().getInstrInfo();
BitVector LivePhysRegs;
- bool SawStore = true;
+ bool SawStore;
// Compute a bitvector to represent all non-allocatable physregs.
BitVector NonAllocatableRegs = TRI.getAllocatableSet(MF);
@@ -79,6 +79,7 @@
MachineInstr *MI = &*MII;
// Don't delete instructions with side effects.
+ SawStore = false;
if (MI->isSafeToMove(&TII, SawStore)) {
// Examine each operand.
bool AllDefsDead = true;
More information about the llvm-commits
mailing list