dead loads.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56529
91177308-0d34-0410-b5e6-
96231b3b80d8
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);
MachineInstr *MI = &*MII;
// Don't delete instructions with side effects.
+ SawStore = false;
if (MI->isSafeToMove(&TII, SawStore)) {
// Examine each operand.
bool AllDefsDead = true;