[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:40:24 PDT 2024


================
@@ -7975,6 +7975,8 @@ LegalizerHelper::LegalizeResult
 LegalizerHelper::lowerBitreverse(MachineInstr &MI) {
   auto [Dst, Src] = MI.getFirst2Regs();
   const LLT Ty = MRI.getType(Src);
+  // FIXME: It should be getScalarSizeInBits. Please fix this when vector
+  // support is complete.
----------------
dtcxzyw wrote:

Done (without vector tests).


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


More information about the llvm-commits mailing list