Changes in directory llvm/projects/Stacker/lib/compiler:

StackerCompiler.cpp updated: 1.20 -> 1.21
---
Log message:

For PR950: http://llvm.org/PR950 :
Replace the REM instruction with UREM, SREM and FREM.


---
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.20 
llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.21
--- llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp:1.20 Thu Oct 26 
01:15:43 2006
+++ llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp      Wed Nov  1 
19:53:59 2006
@@ -1052,7 +1052,7 @@
         LoadInst* op1 = cast<LoadInst>(pop_integer(bb));
         LoadInst* op2 = cast<LoadInst>(pop_integer(bb));
         BinaryOperator* divop =
-            BinaryOperator::create( Instruction::Rem, op1, op2);
+            BinaryOperator::create( Instruction::SRem, op1, op2);
         bb->getInstList().push_back( divop );
         push_value( bb, divop );
         break;



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to