Disable invalid coalescer assertion.
[oota-llvm.git] / lib / CodeGen / MachineSink.cpp
index ef489dc55603aef553afda9408d08af69681f115..1610e6c9610caf30b6cce89e468579f79535f13f 100644 (file)
@@ -314,5 +314,10 @@ bool MachineSinking::SinkInstruction(MachineInstr *MI, bool &SawStore) {
   // Move the instruction.
   SuccToSinkTo->splice(InsertPos, ParentBlock, MI,
                        ++MachineBasicBlock::iterator(MI));
+
+  // Conservatively, clear any kill flags, since it's possible that
+  // they are no longer correct.
+  MI->clearKillInfo();
+
   return true;
 }