Use the proper clobber check in handleLiveInRegister().
[oota-llvm.git] / lib / CodeGen / LiveIntervalAnalysis.cpp
index 32f4c5b3ff6bca7dcc5ea9901ce9f104310900f5..30374da18f25a98fa92cb4ceef799cf4391f71c3 100644 (file)
@@ -507,7 +507,7 @@ void LiveIntervals::handleLiveInRegister(MachineBasicBlock *MBB,
       end = baseIndex.getRegSlot();
       SeenDefUse = true;
       break;
-    } else if (mi->definesRegister(interval.reg, tri_)) {
+    } else if (mi->modifiesRegister(interval.reg, tri_)) {
       // Another instruction redefines the register before it is ever read.
       // Then the register is essentially dead at the instruction that defines
       // it. Hence its interval is: