I believe this restores the behavior we had before r339147.
Fixes PR38622.
Paths
| Differential D50936
[DAGCombiner] Allow divide by constant optimization on opaque constants. ClosedPublic Authored by craig.topper on Aug 17 2018, 9:49 PM.
Details Summary I believe this restores the behavior we had before r339147. Fixes PR38622.
Diff Detail
Event TimelineComment Actions Nice! I like it when the fix is simple.
This revision is now accepted and ready to land.Aug 17 2018, 10:05 PM Closed by commit rL340120: [DAGCombiner] Allow divide by constant optimization on opaque constants. (authored by ctopper). · Explain WhyAug 17 2018, 10:53 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 161369 lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/divide-by-constant.ll
|
If you add nounwind to this, the asm will get a lot less verbose while still showing the relevant bits.