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

Chris Lattner lattner at cs.uiuc.edu
Sat Sep 17 22:13:02 PDT 2005



Changes in directory llvm/lib/Transforms/Scalar:

InstructionCombining.cpp updated: 1.375 -> 1.376
---
Log message:

Remove unintentionally committed code


---
Diffs of the changes:  (+0 -3)

 InstructionCombining.cpp |    3 ---
 1 files changed, 3 deletions(-)


Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.375 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.376
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.375	Sun Sep 18 00:12:10 2005
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp	Sun Sep 18 00:12:51 2005
@@ -3368,7 +3368,6 @@
           if (ShiftInst *XS = dyn_cast<ShiftInst>(Op0BO->getOperand(1)))
             if (isLeftShift && XS->hasOneUse() && XS->getOperand(1) == CUI &&
                 XS->getOpcode() == Instruction::Shr) {
-              break;
               Instruction *YS = new ShiftInst(Instruction::Shl, 
                                               Op0BO->getOperand(0), CUI,
                                               Op0BO->getName());
@@ -3379,7 +3378,6 @@
               InsertNewInstBefore(X, I);  // (X + (Y << C))
               Constant *C2 = ConstantInt::getAllOnesValue(X->getType());
               C2 = ConstantExpr::getShl(C2, CUI);
-              std::cerr << "FOLD1: " << *Op0BO;
               return BinaryOperator::createAnd(X, C2);
             }
           // Fall through.
@@ -3398,7 +3396,6 @@
               InsertNewInstBefore(X, I);  // (X + (Y << C))
               Constant *C2 = ConstantInt::getAllOnesValue(X->getType());
               C2 = ConstantExpr::getShl(C2, CUI);
-              std::cerr << "FOLD2: " << *Op0BO;
               return BinaryOperator::createAnd(X, C2);
             }
           break;






More information about the llvm-commits mailing list