[all-commits] [llvm/llvm-project] 569a46: [CodeGen] Add initial multi-def rematerialization ...
Lucas Ramirez via All-commits
all-commits at lists.llvm.org
Tue Jun 9 07:30:06 PDT 2026
Branch: refs/heads/users/lucas-rami/rematerialize-subregs
Home: https://github.com/llvm/llvm-project
Commit: 569a46de2fa3f1f5238c3d7746e2a55a4f1bf93b
https://github.com/llvm/llvm-project/commit/569a46de2fa3f1f5238c3d7746e2a55a4f1bf93b
Author: Lucas Ramirez <lucas.rami at proton.me>
Date: 2026-06-09 (Tue, 09 Jun 2026)
Changed paths:
M llvm/include/llvm/CodeGen/Rematerializer.h
M llvm/lib/CodeGen/Rematerializer.cpp
M llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
M llvm/test/CodeGen/AMDGPU/machine-scheduler-sink-trivial-remats.mir
M llvm/unittests/CodeGen/RematerializerTest.cpp
Log Message:
-----------
[CodeGen] Add initial multi-def rematerialization support
This significantly improves support for rematerializing registers
with more than one definition. In particular, this includes cases where
different lanes of a register are defined over multiple instructions.
There are still a few restrictions that can hopefully be relaxed in the
future.
- All defining instructions must be part of the same rematerialization
region.
- No pure user of the register (i.e., an MI that doesn't also defined a
part of the register) must read the register before its last
definition.
These constraints ensure that the underlying DAG representation
maintained by the rematerializer is still valid, making this a
relatively incremental improvement.
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