[all-commits] [llvm/llvm-project] eb1ea9: [CodeGen] Add initial multi-def rematerialization ...
Lucas Ramirez via All-commits
all-commits at lists.llvm.org
Wed Jul 15 06:12:55 PDT 2026
Branch: refs/heads/users/lucas-rami/rematerialize-subregs
Home: https://github.com/llvm/llvm-project
Commit: eb1ea94f64e0a81448041568c979e54444234633
https://github.com/llvm/llvm-project/commit/eb1ea94f64e0a81448041568c979e54444234633
Author: Lucas Ramirez <lucas.rami at proton.me>
Date: 2026-07-15 (Wed, 15 Jul 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.
Commit: ac449f76cf2d85ceb1514d56556c0baadebd1f71
https://github.com/llvm/llvm-project/commit/ac449f76cf2d85ceb1514d56556c0baadebd1f71
Author: Lucas Ramirez <lucas.rami at proton.me>
Date: 2026-07-15 (Wed, 15 Jul 2026)
Changed paths:
M llvm/lib/CodeGen/Rematerializer.cpp
Log Message:
-----------
Use is_contained
Commit: 1d269dc3bcd29e9dc00d7120d74736d11921f6ec
https://github.com/llvm/llvm-project/commit/1d269dc3bcd29e9dc00d7120d74736d11921f6ec
Author: Lucas Ramirez <lucas.rami at proton.me>
Date: 2026-07-15 (Wed, 15 Jul 2026)
Changed paths:
M llvm/include/llvm/CodeGen/Rematerializer.h
M llvm/lib/CodeGen/Rematerializer.cpp
Log Message:
-----------
Stray debug + inline closure
Compare: https://github.com/llvm/llvm-project/compare/569a46de2fa3...1d269dc3bcd2
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