[all-commits] [llvm/llvm-project] c245d7: [CodeGen] Do not remove IMPLICIT_DEF unless all us...

LU-JOHN via All-commits all-commits at lists.llvm.org
Wed Apr 1 08:12:05 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c245d764b8bd70ff78044f56b2dea619b0d428dc
      https://github.com/llvm/llvm-project/commit/c245d764b8bd70ff78044f56b2dea619b0d428dc
  Author: LU-JOHN <John.Lu at amd.com>
  Date:   2026-04-01 (Wed, 01 Apr 2026)

  Changed paths:
    M llvm/lib/CodeGen/ProcessImplicitDefs.cpp
    M llvm/test/CodeGen/AMDGPU/blender-no-live-segment-at-def-implicit-def.ll
    M llvm/test/CodeGen/AMDGPU/branch-folding-implicit-def-subreg.ll
    M llvm/test/CodeGen/AMDGPU/call-constexpr.ll
    M llvm/test/CodeGen/AMDGPU/call-skip.ll
    M llvm/test/CodeGen/AMDGPU/cross-block-use-is-not-abi-copy.ll
    M llvm/test/CodeGen/AMDGPU/global_atomics_scan_fadd.ll
    M llvm/test/CodeGen/AMDGPU/global_atomics_scan_fmax.ll
    M llvm/test/CodeGen/AMDGPU/global_atomics_scan_fmin.ll
    M llvm/test/CodeGen/AMDGPU/global_atomics_scan_fsub.ll
    M llvm/test/CodeGen/AMDGPU/insert-delay-alu-bug.ll
    M llvm/test/CodeGen/AMDGPU/machine-sink-temporal-divergence-swdev407790.ll
    M llvm/test/CodeGen/AMDGPU/mfma-cd-select.ll
    A llvm/test/CodeGen/AMDGPU/multi-use-implicit-def.mir
    M llvm/test/CodeGen/AMDGPU/phi-av-pressure.ll
    M llvm/test/CodeGen/AMDGPU/promote-constOffset-to-imm.ll
    M llvm/test/CodeGen/AMDGPU/stack-pointer-offset-relative-frameindex.ll
    A llvm/test/CodeGen/AMDGPU/subreg-implicit-def.mir
    M llvm/test/CodeGen/AMDGPU/tuple-allocation-failure.ll
    M llvm/test/CodeGen/AMDGPU/undef-handling-crash-in-ra.ll
    M llvm/test/CodeGen/PowerPC/p10-spill-crun.ll
    M llvm/test/CodeGen/RISCV/miss-sp-restore-eh.ll
    M llvm/test/CodeGen/Thumb2/2010-02-11-phi-cycle.ll
    M llvm/test/CodeGen/X86/issue76416.ll
    M llvm/test/CodeGen/X86/machine-trace-metrics-crash.ll
    A llvm/test/CodeGen/X86/multi-use-implicit-def.mir
    M llvm/test/CodeGen/X86/ragreedy-hoist-spill.ll
    M llvm/test/CodeGen/X86/regalloc-advanced-split-cost.ll
    M llvm/test/CodeGen/X86/statepoint-two-results.ll
    M llvm/test/CodeGen/X86/statepoint-vreg-invoke.ll
    M llvm/test/CodeGen/X86/tail-dup-merge-loop-headers.ll

  Log Message:
  -----------
  [CodeGen] Do not remove IMPLICIT_DEF unless all uses have undef flag added (#188133)

Do not remove IMPLICIT_DEF of a physreg unless all uses have an undef
flag added. Previously, only the first use instruction had undef flags
added. This will cause a failure in machine instruction verification.
Multi-instruction uses tested in AMDGPU/multi-use-implicit-def.mir and
X86/multi-use-implicit-def.mir.

---------

Signed-off-by: John Lu <John.Lu at amd.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