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

Harrison Hao via All-commits all-commits at lists.llvm.org
Wed Sep 23 18:32:56 PDT 2026


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


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

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