llvm-project
24ddce62 - [GISel] Legalize bitreverse with types smaller than 8 bits (#92998)

Commit
1 year ago
[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
Author
Parents
Loading