projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a8f659
)
Oops! Left out a line.
author
Nick Lewycky
<nicholas@mxc.ca>
Thu, 18 Dec 2008 06:42:28 +0000
(06:42 +0000)
committer
Nick 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index 8d54e0c983a4f6c83c369862c487d50a4b9403c0..41ed449958a513f002ebaf6734e48299f10afb16 100644
(file)
--- 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;
}