[all-commits] [llvm/llvm-project] f9510b: TwoAddressInstructions: Use the per-operand early ...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Sep 29 23:49:27 PDT 2026


  Branch: refs/heads/users/arsenm/codegen/twoaddr-mixed-early-clobber-tied
  Home:   https://github.com/llvm/llvm-project
  Commit: f9510b1865cd177cbb51d7f89492bf19279f4673
      https://github.com/llvm/llvm-project/commit/f9510b1865cd177cbb51d7f89492bf19279f4673
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-09-30 (Wed, 30 Sep 2026)

  Changed paths:
    M llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
    A llvm/test/CodeGen/X86/twoaddr-mixed-early-clobber-tied-defs.ll
    A llvm/test/CodeGen/X86/twoaddr-mixed-early-clobber-tied-defs.mir

  Log Message:
  -----------
  TwoAddressInstructions: Use the per-operand early clobber flag for tied copies

The live interval update for the copy inserted for a tied operand ended
the new segment at getRegSlot(IsEarlyClobber), using a flag computed
once per instruction for any tied pairs. Use the flag
of the def actually being processed.

With an inline asm mixing "=&r" and "=r" outputs tied to the same input,
the copy for the plain def ended at the early clobber slot, leaving a
hole before its own def. That splits the live range into multiple
connected components and asserts in updatePressureDiffs.

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