Oops! Left out a line.
authorNick Lewycky <nicholas@mxc.ca>
Thu, 18 Dec 2008 06:42:28 +0000 (06:42 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 18 Dec 2008 06:42:28 +0000 (06:42 +0000)
Simplifying the sdiv might allow further simplifications for our users.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61196 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 8d54e0c983a4f6c83c369862c487d50a4b9403c0..41ed449958a513f002ebaf6734e48299f10afb16 100644 (file)
@@ -3106,6 +3106,7 @@ Instruction *InstCombiner::visitSRem(BinaryOperator &I) {
 
       Constant *NewRHSV = ConstantVector::get(Elts);
       if (NewRHSV != RHSV) {
+        AddUsesToWorkList(I);
         I.setOperand(1, NewRHSV);
         return &I;
       }