For PR950:
[oota-llvm.git] / lib / Transforms / Scalar / Reassociate.cpp
index 7d710850f9df61a0e286bb31f4886958a6debd51..2df52ae0efe9d29f3431206919767fde1eecac16 100644 (file)
@@ -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;
 }