[all-commits] [llvm/llvm-project] e38181: [MachineLICM] Let targets decide if copy-like inst...

Guy David via All-commits all-commits at lists.llvm.org
Tue Jul 1 13:34:48 PDT 2025


  Branch: refs/heads/users/guy-david/licm-hoist-copy-like
  Home:   https://github.com/llvm/llvm-project
  Commit: e38181c96ff9b9c6a4fe5d93a5ad0616e292c61c
      https://github.com/llvm/llvm-project/commit/e38181c96ff9b9c6a4fe5d93a5ad0616e292c61c
  Author: Guy David <guyda96 at gmail.com>
  Date:   2025-07-01 (Tue, 01 Jul 2025)

  Changed paths:
    M llvm/lib/CodeGen/MachineLICM.cpp
    M llvm/test/CodeGen/AArch64/dag-combine-concat-vectors.ll
    M llvm/test/CodeGen/PowerPC/vsx-fma-m-early.ll
    M llvm/test/CodeGen/X86/break-false-dep.ll
    M llvm/test/CodeGen/X86/dag-update-nodetomatch.ll
    R llvm/test/CodeGen/X86/memfold-mov32r0.ll
    A llvm/test/CodeGen/X86/memfold-mov32r0.mir
    M llvm/test/CodeGen/X86/pr57673.ll
    M llvm/test/CodeGen/X86/reverse_branches.ll

  Log Message:
  -----------
  [MachineLICM] Let targets decide if copy-like instructions are cheap

When checking whether it is profitable to hoist an instruction, the pass
may override a target's ruling because it assumes that all COPY
instructions are cheap, and that may not be the case for all
micro-architectures.

On AArch64 there's 0% difference in performance in LLVM's test-suite.
Additionally, very few tests were affected by this change which shows
how useful it is to keep it.



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