Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.228 -> 1.229 --- 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 -7) Reader.cpp | 7 ------- 1 files changed, 7 deletions(-) Index: llvm/lib/Bytecode/Reader/Reader.cpp diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.228 llvm/lib/Bytecode/Reader/Reader.cpp:1.229 --- llvm/lib/Bytecode/Reader/Reader.cpp:1.228 Wed Jan 31 13:56:15 2007 +++ llvm/lib/Bytecode/Reader/Reader.cpp Thu Feb 1 20:16:22 2007 @@ -607,13 +607,6 @@ static_cast<unsigned short>(Oprnds[2]), getValue(iType, Oprnds[0]), getValue(iType, Oprnds[1])); break; - case Instruction::Shl: - case Instruction::LShr: - case Instruction::AShr: - Result = new ShiftInst(Instruction::OtherOps(Opcode), - getValue(iType, Oprnds[0]), - getValue(Int8TySlot, Oprnds[1])); - break; case Instruction::Ret: if (Oprnds.size() == 0) Result = new ReturnInst(); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits