Remove a duplicated check.
authorEvan Cheng <evan.cheng@apple.com>
Wed, 16 Feb 2011 00:37:02 +0000 (00:37 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 16 Feb 2011 00:37:02 +0000 (00:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125625 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/VirtRegRewriter.cpp

index 1d0404efb5708325a88b031c88e81ae523a2faff..458a2134bf4ad990fc0d10cb648d5cf6e9b916fb 100644 (file)
@@ -1633,7 +1633,7 @@ SpillRegToStackSlot(MachineBasicBlock::iterator &MII,
 /// effect and all of its defs are dead.
 static bool isSafeToDelete(MachineInstr &MI) {
   const TargetInstrDesc &TID = MI.getDesc();
-  if (TID.mayLoad() || TID.mayStore() || TID.isCall() || TID.isTerminator() ||
+  if (TID.mayLoad() || TID.mayStore() || TID.isTerminator() ||
       TID.isCall() || TID.isBarrier() || TID.isReturn() ||
       MI.isLabel() || MI.isDebugValue() ||
       MI.hasUnmodeledSideEffects())