[all-commits] [llvm/llvm-project] f541a3: [AMDGPU] SIInstrInfo: Fix resultDependsOnExec for ...

Frederik Harwath via All-commits all-commits at lists.llvm.org
Tue Apr 22 01:17:57 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f541a3aad8e70b613ea411bf2d3e64a220f98e82
      https://github.com/llvm/llvm-project/commit/f541a3aad8e70b613ea411bf2d3e64a220f98e82
  Author: Frederik Harwath <frederik.harwath at amd.com>
  Date:   2025-04-22 (Tue, 22 Apr 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    M llvm/lib/Target/AMDGPU/SIInstrInfo.h
    A llvm/test/CodeGen/AMDGPU/si-instr-info-vopc-exec.mir

  Log Message:
  -----------
  [AMDGPU] SIInstrInfo: Fix resultDependsOnExec for VOPC instructions (#134629)

SIInstrInfo::resultDependsOnExec assumes that operand 0 of a comparison
is always the destination of the instruction. This is not true for
instructions in VOPC form where it is "src0". This led to a crash in
machine-cse.

---------

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