[llvm] [AMDGPU] Fix copy-paste in hasNon16BitAccesses OpIs16Bit check (PR #203499)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 12 03:48:49 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Arseniy Obolenskiy (aobolensk)
<details>
<summary>Changes</summary>
OpIs16Bit tested TempOtherOp width instead of TempOp, mismatching symmetric OtherOpIs16Bit clause
No observed miscompiles or direct issues to due to that so far
---
Full diff: https://github.com/llvm/llvm-project/pull/203499.diff
1 Files Affected:
- (modified) llvm/lib/Target/AMDGPU/SIISelLowering.cpp (+1-1)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/203499
More information about the llvm-commits
mailing list