[llvm] [AMDGPU] Fix error in #88512. (PR #92770)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon May 20 08:25:21 PDT 2024
================
@@ -4168,7 +4168,7 @@ bool AMDGPULegalizerInfo::legalizeCTLZ_ZERO_UNDEF(MachineInstr &MI,
auto ShiftAmt = B.buildConstant(S32, 32u - NumBits);
auto Extend = B.buildAnyExt(S32, {Src}).getReg(0u);
- auto Shift = B.buildLShr(S32, {Extend}, ShiftAmt);
+ auto Shift = B.buildShl(S32, {Extend}, ShiftAmt);
----------------
arsenm wrote:
Probably doesn't need the {}s
https://github.com/llvm/llvm-project/pull/92770
More information about the llvm-commits
mailing list