[llvm] [GISel] Legalize bitreverse with types smaller than 8 bits (PR #92998)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed May 22 05:07:06 PDT 2024


================
@@ -7977,25 +7977,48 @@ LegalizerHelper::lowerBitreverse(MachineInstr &MI) {
   const LLT Ty = MRI.getType(Src);
   unsigned Size = Ty.getSizeInBits();
----------------
dtcxzyw wrote:

It should be `Ty.getScalarSizeInBits()`.


https://github.com/llvm/llvm-project/pull/92998


More information about the llvm-commits mailing list