[all-commits] [llvm/llvm-project] 0fcfc1: [AMDGPU] Fold a constant add/sub into the sudot4/s...
Harrison Hao via All-commits
all-commits at lists.llvm.org
Wed Sep 23 08:54:04 PDT 2026
Branch: refs/heads/users/harrisonGPU/sudot-constant-fold-instcombine
Home: https://github.com/llvm/llvm-project
Commit: 0fcfc1cfda5ad1bfbf5a3da80319f077630b9912
https://github.com/llvm/llvm-project/commit/0fcfc1cfda5ad1bfbf5a3da80319f077630b9912
Author: Harrison Hao <tsworld1314 at gmail.com>
Date: 2026-09-23 (Wed, 23 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: bc2e715dacb6cccac9f21a830ba53b6b11ba59b5
https://github.com/llvm/llvm-project/commit/bc2e715dacb6cccac9f21a830ba53b6b11ba59b5
Author: Harrison Hao <tsworld1314 at gmail.com>
Date: 2026-09-23 (Wed, 23 Sep 2026)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
Log Message:
-----------
Update for comments
Commit: db16db9eadaf17baa5e47b4b798bd61269cc92fc
https://github.com/llvm/llvm-project/commit/db16db9eadaf17baa5e47b4b798bd61269cc92fc
Author: Harrison Hao <tsworld1314 at gmail.com>
Date: 2026-09-23 (Wed, 23 Sep 2026)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
Log Message:
-----------
Update again
Compare: https://github.com/llvm/llvm-project/compare/db9bb884af74...db16db9eadaf
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