[all-commits] [llvm/llvm-project] 493218: [AMDGPU] Fold a constant add/sub into the sudot4/s...

Harrison Hao via All-commits all-commits at lists.llvm.org
Wed Sep 23 09:44:00 PDT 2026


  Branch: refs/heads/users/harrisonGPU/sudot-constant-fold-instcombine
  Home:   https://github.com/llvm/llvm-project
  Commit: 4932182ae1cd31b2bed987b64699a720c8aadccf
      https://github.com/llvm/llvm-project/commit/4932182ae1cd31b2bed987b64699a720c8aadccf
  Author: Harrison Hao <tsworld1314 at gmail.com>
  Date:   2026-09-24 (Thu, 24 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.


  Commit: 1fbc00163ec2d0d37876b979dcfc43c2db1cc67f
      https://github.com/llvm/llvm-project/commit/1fbc00163ec2d0d37876b979dcfc43c2db1cc67f
  Author: Harrison Hao <tsworld1314 at gmail.com>
  Date:   2026-09-24 (Thu, 24 Sep 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp

  Log Message:
  -----------
  Update for comments


  Commit: f07ba1e8431c19944cefb1f51faa3199aa1b0ef0
      https://github.com/llvm/llvm-project/commit/f07ba1e8431c19944cefb1f51faa3199aa1b0ef0
  Author: Harrison Hao <tsworld1314 at gmail.com>
  Date:   2026-09-24 (Thu, 24 Sep 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp

  Log Message:
  -----------
  Update again


  Commit: 9e10a514dc6f820e342204c6aee274e2211a733c
      https://github.com/llvm/llvm-project/commit/9e10a514dc6f820e342204c6aee274e2211a733c
  Author: Harrison Hao <tsworld1314 at gmail.com>
  Date:   2026-09-24 (Thu, 24 Sep 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp

  Log Message:
  -----------
  Update for comments


Compare: https://github.com/llvm/llvm-project/compare/a6e1f0e625e6...9e10a514dc6f

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