[all-commits] [llvm/llvm-project] 9604da: Greedy: Take hints from copy to physical subreg

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Oct 2 04:43:13 PDT 2025


  Branch: refs/heads/users/arsenm/greedy/collectHintInfo-subreg-insert-hint
  Home:   https://github.com/llvm/llvm-project
  Commit: 9604dab28900f63fce615c31f5f624b031a94fcd
      https://github.com/llvm/llvm-project/commit/9604dab28900f63fce615c31f5f624b031a94fcd
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-10-02 (Thu, 02 Oct 2025)

  Changed paths:
    M llvm/lib/CodeGen/RegAllocGreedy.cpp
    M llvm/test/CodeGen/X86/shift-i128.ll

  Log Message:
  -----------
  Greedy: Take hints from copy to physical subreg

Previously this took hints from subregister extract of physreg,
like  %vreg.sub = COPY $physreg

This now also handles the rarer case:
  $physreg_sub = COPY %vreg

Also make an accidental bug here before explicit; this was
only using the superregister as a hint if it was already
in the copy, and not if using the existing assignment. There are
a handful of regressions in that case, so leave that extension
for a future change.



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