[all-commits] [llvm/llvm-project] ec460b: CodeGen: Fix SplitCriticalEdge using wrong VNInfo ...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Sep 24 08:58:38 PDT 2026


  Branch: refs/heads/users/arsenm/codegen/split-critical-edge-subrange-vninfo
  Home:   https://github.com/llvm/llvm-project
  Commit: ec460b0befe68b40f2b5009dc93bc6ac1041a5e6
      https://github.com/llvm/llvm-project/commit/ec460b0befe68b40f2b5009dc93bc6ac1041a5e6
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-09-24 (Thu, 24 Sep 2026)

  Changed paths:
    M llvm/lib/CodeGen/MachineBasicBlock.cpp
    A llvm/test/CodeGen/AMDGPU/phi-elimination-split-critical-edge-subranges.mir

  Log Message:
  -----------
  CodeGen: Fix SplitCriticalEdge using wrong VNInfo for subranges

This fixes verifier errors when LiveIntervals is run before phi
elimination.

When extending a live interval across a newly split critical edge for a
PHI source operand, the subrange segments were added using the VNInfo of
the main range instead of the subrange's own value. Look up the
subrange's value at the predecessor's last index, as the other subrange
loop in the same function already does, and skip subranges with no value
there.

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