[all-commits] [llvm/llvm-project] 4c8c10: [InstCombine] try to narrow more shifted bswap-of-...
ZCBing via All-commits
all-commits at lists.llvm.org
Thu May 5 19:48:20 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4c8c101b496431c468825518e9bd4375e8209ae9
https://github.com/llvm/llvm-project/commit/4c8c101b496431c468825518e9bd4375e8209ae9
Author: Chenbing Zheng <Chenbing.Zheng at streamcomputing.com>
Date: 2022-05-06 (Fri, 06 May 2022)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
M llvm/test/Transforms/InstCombine/lshr.ll
Log Message:
-----------
[InstCombine] try to narrow more shifted bswap-of-zext
Try to narrow more bswap, if the shift amount is less than the zext
(bswap (zext X)) >> C --> (zext (bswap X)) << C'
https://alive2.llvm.org/ce/z/i7ddjn
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D124598
More information about the All-commits
mailing list