Remove the bitwise XOR operator from the Attributes class. Replace it with the equiva...
[oota-llvm.git] / lib / CodeGen / LiveRangeEdit.cpp
index b4ce9aa8c12cc45a0b69550b83f6d0275d40ff62..82710414b30598ecb483085e4b8c000a3c0a9fb2 100644 (file)
@@ -87,7 +87,7 @@ bool LiveRangeEdit::allUsesAvailableAt(const MachineInstr *OrigMI,
 
     // We can't remat physreg uses, unless it is a constant.
     if (TargetRegisterInfo::isPhysicalRegister(MO.getReg())) {
-      if (MRI.isConstantPhysReg(MO.getReg(), VRM->getMachineFunction()))
+      if (MRI.isConstantPhysReg(MO.getReg(), *OrigMI->getParent()->getParent()))
         continue;
       return false;
     }