[all-commits] [llvm/llvm-project] da5b74: [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:32:42 PDT 2026


  Branch: refs/heads/users/harrisonGPU/sudot-constant-fold-instcombine
  Home:   https://github.com/llvm/llvm-project
  Commit: da5b743dc74a4d6aebc6b95b72c36a425269b7ef
      https://github.com/llvm/llvm-project/commit/da5b743dc74a4d6aebc6b95b72c36a425269b7ef
  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