[X86] Recognise ROTLI/ROTRI rotations as faux shuffles
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 9 Feb 2020 12:25:19 +0000 (12:25 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 9 Feb 2020 12:25:49 +0000 (12:25 +0000)
commit644d56b432bf6f50faa9638ec1b75e9d7ed3d6d4
treeb43ac10902addecd7edb5c58603d1392d3883756
parent3b70ee27a5032a52fc9502541c70b5e0e6b29dfa
[X86] Recognise ROTLI/ROTRI rotations as faux shuffles

Allows us to combine rotations with shuffles.

One of many things necessary to fix PR44379 (lowering shuffles to rotations)
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/vector-shuffle-combining-avx512bwvl.ll
llvm/test/CodeGen/X86/vector-shuffle-combining-xop.ll