[InstCombine] Try to recognize bswap pattern when calling funnel shifts
authorJun Zhang <jun@junz.org>
Fri, 24 Mar 2023 02:28:02 +0000 (10:28 +0800)
committerJun Zhang <jun@junz.org>
Fri, 24 Mar 2023 02:51:36 +0000 (10:51 +0800)
commitcea938390ea77d494b77d399ed440c0c76ef3849
tree3e087f9a5eb8a165a86cb253cf69ecd1cd5ef4c7
parent3ca6e69b6efe6ff4dc456e0ac227b292523a056f
[InstCombine] Try to recognize bswap pattern when calling funnel shifts

Alive2: https://alive2.llvm.org/ce/z/dxxD7B
Fixes: https://github.com/llvm/llvm-project/issues/60690
Signed-off-by: Jun Zhang <jun@junz.org>
Differential Revision: https://reviews.llvm.org/D146637
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/bswap.ll
llvm/test/Transforms/InstCombine/fsh.ll