summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-12-18 06:42:28 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-12-18 06:42:28 +0000
commitc3a70ade66e0de775cd054353ded2e0c870cfe5b (patch)
tree6202d221a99dbfa5bdaea8a079efc5c1507f9a35 /llvm/lib/Transforms
parent0f0e63fe7313f8f3647bd6be66c94fa75fc77759 (diff)
downloadbcm5719-llvm-c3a70ade66e0de775cd054353ded2e0c870cfe5b.tar.gz
bcm5719-llvm-c3a70ade66e0de775cd054353ded2e0c870cfe5b.zip
Oops! Left out a line.
Simplifying the sdiv might allow further simplifications for our users. llvm-svn: 61196
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 8d54e0c983a..41ed449958a 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud