[llvm-commits] CVS: llvm/projects/Stacker/lib/compiler/StackerCompiler.cpp

Reid Spencer reid at x10sys.com
Wed Nov 1 17:54:31 PST 2006



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;






More information about the llvm-commits mailing list