[all-commits] [llvm/llvm-project] 272bbd: TwoAddressInstructions: Don't treat an undef use a...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Sep 29 06:25:33 PDT 2026


  Branch: refs/heads/users/arsenm/codegen/twoaddr-undef-use-not-killed
  Home:   https://github.com/llvm/llvm-project
  Commit: 272bbda97a3c8368998d3728f25761988459cd67
      https://github.com/llvm/llvm-project/commit/272bbda97a3c8368998d3728f25761988459cd67
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-09-29 (Tue, 29 Sep 2026)

  Changed paths:
    M llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
    A llvm/test/CodeGen/X86/twoaddr-undef-use-not-killed.mir

  Log Message:
  -----------
  TwoAddressInstructions: Don't treat an undef use as a kill

An undef use does not read a value, so LiveIntervals does not extend the
live range to cover it. Previously this would hit the assert on an
undef use.

Exposed by #225174, which made LiveIntervals available here by default.

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