[all-commits] [llvm/llvm-project] 16f7e9: [AMDGPU] Allow rematerialization of instructions w...

Jeffrey Byrnes via All-commits all-commits at lists.llvm.org
Thu Feb 6 10:16:51 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 16f7e961c600986de7814822fd118f431e0bb433
      https://github.com/llvm/llvm-project/commit/16f7e961c600986de7814822fd118f431e0bb433
  Author: Jeffrey Byrnes <jeffrey.byrnes at amd.com>
  Date:   2025-02-06 (Thu, 06 Feb 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
    M llvm/lib/Target/AMDGPU/GCNSchedStrategy.h
    M llvm/test/CodeGen/AMDGPU/machine-scheduler-sink-trivial-remats.mir
    M llvm/test/CodeGen/AMDGPU/sched-assert-dead-def-subreg-use-other-subreg.mir

  Log Message:
  -----------
  [AMDGPU] Allow rematerialization of instructions with virtual register uses (#124327)

Remove the restriction that scheduling rematerialization candidates
cannot have virtual reg uses.

Currently, this only allows for virtual reg uses which are already live
at the rematerialization point, so bring in allUsesAvailableAt to check
for this condition. Because of this condition, the uses of the remats
will already be live in to the region, so the remat won't increase
live-in pressure.

Add an expensive check to check this condition.



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