[all-commits] [llvm/llvm-project] a734ad: Hexagon: Don't duplicate the PC def when convertin...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon Sep 21 03:56:34 PDT 2026


  Branch: refs/heads/users/arsenm/hexagon/avoid-duplicate-pc-return-defs
  Home:   https://github.com/llvm/llvm-project
  Commit: a734ad908e616dd5d41682e9697812581386b761
      https://github.com/llvm/llvm-project/commit/a734ad908e616dd5d41682e9697812581386b761
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2026-09-21 (Mon, 21 Sep 2026)

  Changed paths:
    M llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp
    M llvm/test/CodeGen/Hexagon/copy-to-combine-const64.mir
    M llvm/test/CodeGen/MIR/Hexagon/bundled-call-site-info.mir

  Log Message:
  -----------
  Hexagon: Don't duplicate the PC def when converting a return to L4_return

When replacing a PS_jmpret return with L4_return in the epilogue, the code built
L4_return which automatically inserted pc and r29 implicit-defs. This then copied
the original return's implicit operands, duplicating the overlapped pc operand
(which also would have inconsistent dead flags). Also update a few mir test inputs
which demonstrate the duplicated operand pattern.

This avoids a future verifier check failure.

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