Counter-proposal to D46760.
I suppose, continuation of D44102.
If the second operand of udiv/urem is power-of-two,
instcombine will transform that into lshr/and,
and CVP does not handle them.
https://godbolt.org/g/hhT9bc
Paths
| Differential D47112
[CVP] Add tests for lshr width reduction AbandonedPublic Authored by lebedev.ri on May 19 2018, 4:45 PM.
Details
Diff Detail
Event TimelineComment Actions Add one more run-line to the phase ordering test to demonstrate
Revision Contents
Diff 147719 test/Transforms/CorrelatedValuePropagation/lshr.ll
test/Transforms/PhaseOrdering/udiv-urem-instcombine-vs-cvp.ll
|