[llvm-commits] [llvm] r125625 - /llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp

Evan Cheng evan.cheng at apple.com
Tue Feb 15 16:37:02 PST 2011


Author: evancheng
Date: Tue Feb 15 18:37:02 2011
New Revision: 125625

URL: http://llvm.org/viewvc/llvm-project?rev=125625&view=rev
Log:
Remove a duplicated check.

Modified:
    llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp

Modified: llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp?rev=125625&r1=125624&r2=125625&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/VirtRegRewriter.cpp Tue Feb 15 18:37:02 2011
@@ -1633,7 +1633,7 @@
 /// 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())





More information about the llvm-commits mailing list