[InstCombine] recognizeBSwapOrBitReverseIdiom - add vector support
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 3 Oct 2020 15:26:29 +0000 (16:26 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sat, 3 Oct 2020 15:26:46 +0000 (16:26 +0100)
commitaacfe2be53d441d256091b2b495875a69fc2f285
tree05f580db4504b4ab7efe9776aea024a112c8fde2
parent089e628b61f929ccd26565cd4118395f0a0273c3
[InstCombine] recognizeBSwapOrBitReverseIdiom - add vector support

Add basic vector handling to recognizeBSwapOrBitReverseIdiom/collectBitParts - this works at the element level, all vector element operations must match (splat constants etc.) and there is no cross-element support (insert/extract/shuffle etc.).
llvm/lib/Transforms/Utils/Local.cpp
llvm/test/Transforms/InstCombine/bswap.ll