[all-commits] [llvm/llvm-project] 20d7f6: [AMDGPU][InstCombine] Fold zero dot operands to ac...

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


  Branch: refs/heads/users/harrisonGPU/inst-dot-zero
  Home:   https://github.com/llvm/llvm-project
  Commit: 20d7f6c74c603eed0c1a669fdb3ef9ddf1f96a91
      https://github.com/llvm/llvm-project/commit/20d7f6c74c603eed0c1a669fdb3ef9ddf1f96a91
  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.dot.ll

  Log Message:
  -----------
  [AMDGPU][InstCombine] Fold zero dot operands to accumulator

Fold AMDGPU dot intrinsics when either operand is zero.

`dot(a, 0) = 0` and `dot(0, b) = 0`, so replace the intrinsic with its accumulator.
This avoids unrelated clamp and add/sub reassociation cases.



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