[llvm] [VectorCombine] Fold bitcast(bitreverse.v8i8(bitcast(IntTy))) into bswap+bitreverse (PR #209037)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 13 02:35:26 PDT 2026
================
@@ -6118,6 +6118,45 @@ bool VectorCombine::foldBitcastOfVPLoad(Instruction &I) {
/// bitreverse(bswap(x)) --> bitcast(bitreverse(bitcast(x)))
----------------
RKSimon wrote:
update the comment to show it handles both directions now
https://github.com/llvm/llvm-project/pull/209037
More information about the llvm-commits
mailing list