[all-commits] [llvm/llvm-project] d45031: [AMDGPU] si-peephole-sdwa: Disable V_CNDMASK_B32 c...

Frederik Harwath via All-commits all-commits at lists.llvm.org
Mon May 26 00:33:30 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d45031ce5281b9fae54f2fdf5edff831e1308976
      https://github.com/llvm/llvm-project/commit/d45031ce5281b9fae54f2fdf5edff831e1308976
  Author: Frederik Harwath <frederik.harwath at amd.com>
  Date:   2025-05-26 (Mon, 26 May 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIPeepholeSDWA.cpp
    A llvm/test/CodeGen/AMDGPU/sdwa-peephole-cndmask-sext.ll
    M llvm/test/CodeGen/AMDGPU/sdwa-peephole-cndmask-wave64.mir

  Log Message:
  -----------
  [AMDGPU] si-peephole-sdwa: Disable V_CNDMASK_B32 conversion with sext (#140760)

The sext modifier on an operand of V_CNDMASK_B32_sdwa gets erroneously
turned into a neg modifier in the assembly output.

As a workaround, to avoid miscompilation, this patch disables the
conversion of V_CNDMASK_B32 to the SDWA form if any operand uses an sext
modifier.

Fixes #138766.

---------

Co-authored-by: Matt Arsenault <arsenm2 at gmail.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