[all-commits] [llvm/llvm-project] 9de8a9: [MCP] Fix bug in spill copy elimination folding ch...

Valery Dmitriev via All-commits all-commits at lists.llvm.org
Mon Jul 6 03:13:54 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9de8a97a9e3551a97e342823a9b30960e4186212
      https://github.com/llvm/llvm-project/commit/9de8a97a9e3551a97e342823a9b30960e4186212
  Author: Valery Dmitriev <valeryd at nvidia.com>
  Date:   2026-07-06 (Mon, 06 Jul 2026)

  Changed paths:
    M llvm/lib/CodeGen/MachineCopyPropagation.cpp
    M llvm/test/CodeGen/AArch64/machine-cp-spill-chain-across-call.mir
    M llvm/test/CodeGen/PowerPC/mcp-elim-eviction-chain.mir

  Log Message:
  -----------
  [MCP] Fix bug in spill copy elimination folding chain across a call. (#206858)

findLastSeenDefInCopy interface does not check for possible register
clobbering between the def and current instruction. That may lead to not
having a caller preserved register being preserved across a call.
Replaced with findAvailCopy that also does checks for a regmask operand
between the def and current instruction.



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