[all-commits] [llvm/llvm-project] be62e5: ARM: Don't duplicate the LR def when expanding cal...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon Sep 21 12:13:40 PDT 2026


  Branch: refs/heads/users/arsenm/arm/avoid-duplicating-lr-def-pseudo-call-expand
  Home:   https://github.com/llvm/llvm-project
  Commit: be62e5200a6d4d87e78c5903230419bd5975e216
      https://github.com/llvm/llvm-project/commit/be62e5200a6d4d87e78c5903230419bd5975e216
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-09-21 (Mon, 21 Sep 2026)

  Changed paths:
    M llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
    M llvm/test/CodeGen/ARM/cmse-vlldm-no-reorder.mir

  Log Message:
  -----------
  ARM: Don't duplicate the LR def when expanding call pseudos

Several pseudo expansions in ARMExpandPseudoInsts built a real call and
then copied the pseudo's operands onto the new instruction. Each of these
call opcodes declares LR as an implicit-def, but the original instruction
already had that. The original def may have been marked as dead, so the result
would be a redundant operand with an inconsistent dead flag. This avoids
a failure in a future verifier check.

Co-authored-by: Claude (Claude-Opus-4.8) <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