[all-commits] [llvm/llvm-project] 227852: [AMDGPU] Fold a constant add/sub into the sudot4/s...
Harrison Hao via All-commits
all-commits at lists.llvm.org
Tue Sep 22 01:12:59 PDT 2026
Branch: refs/heads/users/harrisonGPU/sudot-constant-fold-instcombine
Home: https://github.com/llvm/llvm-project
Commit: 22785282601a54d9278cd339df5c9760899a5a4e
https://github.com/llvm/llvm-project/commit/22785282601a54d9278cd339df5c9760899a5a4e
Author: Harrison Hao <tsworld1314 at gmail.com>
Date: 2026-09-22 (Tue, 22 Sep 2026)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
M llvm/test/Transforms/InstCombine/AMDGPU/llvm.amdgcn.sudot.ll
Log Message:
-----------
[AMDGPU] Fold a constant add/sub into the sudot4/sudot8 accumulator
Fold a constant add into the accumulator operand of sudot4 and sudot8 when
clamping is disabled:
```
sudot(a, b, C1, false) + C2 -> sudot(a, b, C1 + C2, false)
```
Subtraction by a constant is canonicalized to addition of its negation.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list