Changes in directory llvm/projects/Stacker/lib/compiler:
StackerCompiler.cpp updated: 1.22 -> 1.23 --- Log message: For PR950: http://llvm.org/PR950 : This patch converts the old SHR instruction into two instructions, AShr (Arithmetic) and LShr (Logical). The Shr instructions now are not dependent on the sign of their operands. --- Diffs of the changes: (+1 -1) StackerCompiler.cpp | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp diff -u llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.22 llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.23 --- llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.22 Thu Nov 2 14:25:50 2006 +++ llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp Wed Nov 8 00:47:33 2006 @@ -1257,7 +1257,7 @@ LoadInst* op2 = cast<LoadInst>(pop_integer(bb)); CastInst* castop = new CastInst( op1, Type::UByteTy ); bb->getInstList().push_back( castop ); - ShiftInst* shrop = new ShiftInst( Instruction::Shr, op2, castop ); + ShiftInst* shrop = new ShiftInst( Instruction::AShr, op2, castop ); bb->getInstList().push_back( shrop ); push_value( bb, shrop ); break; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits