CodeGen: Redo analyzePhysRegs() and computeRegisterLiveness()
[oota-llvm.git] / lib / CodeGen / InlineSpiller.cpp
index 0bb68c083732bb93556f6c1cd32b1e13d60c14d2..7592ac27c419405743d23366b6ee2af3265b0649 100644 (file)
@@ -1139,7 +1139,7 @@ foldMemoryOperand(ArrayRef<std::pair<MachineInstr*, unsigned> > Ops,
       continue;
     MIBundleOperands::PhysRegInfo RI =
       MIBundleOperands(FoldMI).analyzePhysReg(Reg, &TRI);
-    if (RI.Defines)
+    if (RI.FullyDefined)
       continue;
     // FoldMI does not define this physreg. Remove the LI segment.
     assert(MO->isDead() && "Cannot fold physreg def");