From 7eb55b395fdbbdbd113aabb6cad51cc98b379af0 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 2 Nov 2006 01:53:59 +0000 Subject: For PR950: Replace the REM instruction with UREM, SREM and FREM. llvm-svn: 31369 --- llvm/lib/Transforms/Scalar/Reassociate.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Scalar/Reassociate.cpp') diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp index 7d710850f9d..2df52ae0efe 100644 --- a/llvm/lib/Transforms/Scalar/Reassociate.cpp +++ b/llvm/lib/Transforms/Scalar/Reassociate.cpp @@ -116,7 +116,9 @@ static bool isUnmovableInstruction(Instruction *I) { I->getOpcode() == Instruction::UDiv || I->getOpcode() == Instruction::SDiv || I->getOpcode() == Instruction::FDiv || - I->getOpcode() == Instruction::Rem) + I->getOpcode() == Instruction::URem || + I->getOpcode() == Instruction::SRem || + I->getOpcode() == Instruction::FRem) return true; return false; } -- cgit v1.2.3