HomePhabricator

[InstCombine] canonicalize raw IR rotate patterns to funnel shift

Description

[InstCombine] canonicalize raw IR rotate patterns to funnel shift

The final piece of IR-level analysis to allow this was committed with:
rL350188

Using the intrinsics should improve transforms based on cost models
like vectorization and inlining.

The backend should be prepared too, so we can now canonicalize more
sequences of shift/logic to the intrinsics and know that the end
result should be equal or better to the original code even if the
target does not have an actual rotate instruction.

Details

Committed
spatelTue, Jan 1, 1:51 PM
Parents
rL350198: [X86] Factor the core code out of LowerXALUO into a helper function. Use it in…
Branches
Unknown
Tags
Unknown