[all-commits] [llvm/llvm-project] 362d5f: [CodeGen] commuteInstruction should update implici...

Sander de Smalen via All-commits all-commits at lists.llvm.org
Thu Jul 10 07:30:25 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 362d5ffa8d2f521fc2912665270eba15f3c1bf56
      https://github.com/llvm/llvm-project/commit/362d5ffa8d2f521fc2912665270eba15f3c1bf56
  Author: Sander de Smalen <sander.desmalen at arm.com>
  Date:   2025-07-10 (Thu, 10 Jul 2025)

  Changed paths:
    M llvm/lib/CodeGen/TargetInstrInfo.cpp
    A llvm/test/CodeGen/X86/coalesce-commutative-implicit-def.mir

  Log Message:
  -----------
  [CodeGen] commuteInstruction should update implicit-def (#131361)

When the RegisterCoalescer adds an implicit-def when coalescing
a SUBREG_TO_REG (#123632), this causes issues when removing other
COPY nodes by commuting the instruction because it doesn't take
the implicit-def into consideration. This PR fixes that.



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