Changes in directory llvm/lib/Transforms/IPO:
GlobalOpt.cpp updated: 1.93 -> 1.94 --- Log message: Changes to support making the shift instructions be true BinaryOperators. This feature is needed in order to support shifts of more than 255 bits on large integer types. This changes the syntax for llvm assembly to make shl, ashr and lshr instructions look like a binary operator: shl i32 %X, 1 instead of shl i32 %X, i8 1 Additionally, this should help a few passes perform additional optimizations. --- Diffs of the changes: (+0 -4) GlobalOpt.cpp | 4 ---- 1 files changed, 4 deletions(-) Index: llvm/lib/Transforms/IPO/GlobalOpt.cpp diff -u llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.93 llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.94 --- llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.93 Wed Jan 31 13:59:55 2007 +++ llvm/lib/Transforms/IPO/GlobalOpt.cpp Thu Feb 1 20:16:22 2007 @@ -1728,10 +1728,6 @@ InstResult = ConstantExpr::get(BO->getOpcode(), getVal(Values, BO->getOperand(0)), getVal(Values, BO->getOperand(1))); - } else if (ShiftInst *SI = dyn_cast<ShiftInst>(CurInst)) { - InstResult = ConstantExpr::get(SI->getOpcode(), - getVal(Values, SI->getOperand(0)), - getVal(Values, SI->getOperand(1))); } else if (CmpInst *CI = dyn_cast<CmpInst>(CurInst)) { InstResult = ConstantExpr::getCompare(CI->getPredicate(), getVal(Values, CI->getOperand(0)), _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits