[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 14 21:54:19 PST 2004



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.284 -> 1.285
---
Log message:

Quiet warnings on the persephone tester


---
Diffs of the changes:  (+2 -2)

Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.284 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.285
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.284	Sun Nov 14 13:29:34 2004
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Sun Nov 14 23:54:07 2004
@@ -329,10 +329,10 @@
   if (V->hasOneUse() && V->getType()->isInteger())
     if (Instruction *I = dyn_cast<Instruction>(V)) {
       if (I->getOpcode() == Instruction::Mul)
-        if (CST = dyn_cast<ConstantInt>(I->getOperand(1)))
+        if ((CST = dyn_cast<ConstantInt>(I->getOperand(1))))
           return I->getOperand(0);
       if (I->getOpcode() == Instruction::Shl)
-        if (CST = dyn_cast<ConstantInt>(I->getOperand(1))) {
+        if ((CST = dyn_cast<ConstantInt>(I->getOperand(1)))) {
           // The multiplier is really 1 << CST.
           Constant *One = ConstantInt::get(V->getType(), 1);
           CST = cast<ConstantInt>(ConstantExpr::getShl(One, CST));






More information about the llvm-commits mailing list