[all-commits] [llvm/llvm-project] c313b9: AMDGPU: Preserve carry-out dead flag in buildShrun...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Sep 23 09:10:40 PDT 2026


  Branch: refs/heads/users/arsenm/amdgpu/buildshrunkinst-preserve-dead-carry
  Home:   https://github.com/llvm/llvm-project
  Commit: c313b9a535abfd2bf54fc957332c8fddff2bb3bf
      https://github.com/llvm/llvm-project/commit/c313b9a535abfd2bf54fc957332c8fddff2bb3bf
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    M llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/saddsat.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/ssubsat.ll
    A llvm/test/CodeGen/AMDGPU/fold-immediate-operand-shrink-dead-carry.mir
    A llvm/test/CodeGen/AMDGPU/shrink-dead-vcc-def.mir
    R llvm/test/CodeGen/AMDGPU/shrink-v-cmp-wave32-dead-vcc-lo.mir

  Log Message:
  -----------
  AMDGPU: Preserve carry-out dead flag in buildShrunkInst

Shrinking from the e64 to the e32 form drops the explicit carry-out def
in favor of an implicit vcc def. If the original carry out had a dead flag,
preserve it in the shrunk instruction's implicit-def operand.

Co-Authored-By: Claude Opus 5 <noreply at anthropic.com>



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