[llvm-commits] [llvm] r130705 - /llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

Duncan Sands baldrick at free.fr
Mon May 2 11:41:29 PDT 2011


Author: baldrick
Date: Mon May  2 13:41:29 2011
New Revision: 130705

URL: http://llvm.org/viewvc/llvm-project?rev=130705&view=rev
Log:
Remove unused variable.

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp?rev=130705&r1=130704&r2=130705&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp Mon May  2 13:41:29 2011
@@ -503,7 +503,7 @@
   if (isa<SelectInst>(Op1) && SimplifyDivRemOfSelect(I))
     return &I;
 
-  if (ConstantInt *RHS = dyn_cast<ConstantInt>(Op1)) {
+  if (isa<ConstantInt>(Op1)) {
     if (Instruction *Op0I = dyn_cast<Instruction>(Op0)) {
       if (SelectInst *SI = dyn_cast<SelectInst>(Op0I)) {
         if (Instruction *R = FoldOpIntoSelect(I, SI))





More information about the llvm-commits mailing list