[all-commits] [llvm/llvm-project] 0629ff: [PHIElimination] Reuse existing COPY in predecesso...

Guy David via All-commits all-commits at lists.llvm.org
Thu Jul 3 03:42:03 PDT 2025


  Branch: refs/heads/users/guy-david/phi-elimination-operand-multi-use
  Home:   https://github.com/llvm/llvm-project
  Commit: 0629fffe954d6279a476d8d099565caff6135420
      https://github.com/llvm/llvm-project/commit/0629fffe954d6279a476d8d099565caff6135420
  Author: Guy David <guyda96 at gmail.com>
  Date:   2025-07-03 (Thu, 03 Jul 2025)

  Changed paths:
    M llvm/lib/CodeGen/PHIElimination.cpp
    A llvm/test/CodeGen/AArch64/PHIElimination-reuse-copy.mir
    M llvm/test/CodeGen/PowerPC/vsx.ll

  Log Message:
  -----------
  [PHIElimination] Reuse existing COPY in predecessor basic block

The insertion point of COPY isn't always optimal and could eventually
lead to a worse block layout, see the regression test.

This change affects many architectures but the amount of total
instructions in the test cases seems too be slightly lower.



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