From 19c28926772fd64f72ede87059fa018caaff92d6 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Thu, 18 Dec 2008 06:42:28 +0000 Subject: [PATCH] Oops! Left out a line. 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 8d54e0c983a..41ed449958a 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -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; }