[all-commits] [llvm/llvm-project] 24ddce: [GISel] Legalize bitreverse with types smaller tha...
Yingwei Zheng via All-commits
all-commits at lists.llvm.org
Wed May 29 06:42:30 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 24ddce62c8bb92a19ba3677629c77a2e6f137b1a
https://github.com/llvm/llvm-project/commit/24ddce62c8bb92a19ba3677629c77a2e6f137b1a
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2024-05-29 (Wed, 29 May 2024)
Changed paths:
M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
A llvm/test/CodeGen/RISCV/GlobalISel/bitmanip.ll
M llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-bitreverse-rv32.mir
M llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-bitreverse-rv64.mir
Log Message:
-----------
[GISel] Legalize bitreverse with types smaller than 8 bits (#92998)
This patch adds support for lowering `bitreverse` with types smaller
than 8 bits. It also fixes an existing assertion failure in
`llvm::APInt::getSplat`: https://godbolt.org/z/7crs8xrcG
The lowering logic is copied from SDAG:
https://github.com/llvm/llvm-project/blob/2034f2fc8729bd4645ef7caa3c5c6efa284d2d3f/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp#L9384-L9398
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list