[PATCH] D146637: [InstCombine] Try to recognize bswap pattern when calling fshl
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 22 09:52:38 PDT 2023
RKSimon added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:1779
"All funnel shifts by simple constants should go left");
// fshl(X, 0, C) --> shl X, C
----------------
Why not use test matchBSwapOrBitReverse here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146637/new/
https://reviews.llvm.org/D146637
More information about the llvm-commits
mailing list