[llvm] 1badbb2 - [AMDGPU] Fix copy-paste in hasNon16BitAccesses OpIs16Bit check (#203499)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 12 06:40:09 PDT 2026
Author: Arseniy Obolenskiy
Date: 2026-06-12T15:40:04+02:00
New Revision: 1badbb2a77f6937c9af84a694e1d949c7952b744
URL: https://github.com/llvm/llvm-project/commit/1badbb2a77f6937c9af84a694e1d949c7952b744
DIFF: https://github.com/llvm/llvm-project/commit/1badbb2a77f6937c9af84a694e1d949c7952b744.diff
LOG: [AMDGPU] Fix copy-paste in hasNon16BitAccesses OpIs16Bit check (#203499)
OpIs16Bit tested TempOtherOp width instead of TempOp, mismatching
symmetric OtherOpIs16Bit clause
No observed miscompiles or direct issues to due to that so far
Added:
Modified:
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
index eb3b869990cdd..30950f8f5d9e5 100644
--- a/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -15070,7 +15070,7 @@ static bool hasNon16BitAccesses(uint64_t PermMask, SDValue &Op,
auto TempOtherOp = peekThroughBitcasts(OtherOp);
auto OpIs16Bit =
- TempOtherOp.getValueSizeInBits() == 16 || isExtendedFrom16Bits(TempOp);
+ TempOp.getValueSizeInBits() == 16 || isExtendedFrom16Bits(TempOp);
if (!OpIs16Bit)
return true;
More information about the llvm-commits
mailing list