[all-commits] [llvm/llvm-project] fc27cb: [CodeGen] Add initial multi-def rematerialization ...
Lucas Ramirez via All-commits
all-commits at lists.llvm.org
Thu Jul 16 01:01:32 PDT 2026
Branch: refs/heads/users/lucas-rami/rematerialize-subregs
Home: https://github.com/llvm/llvm-project
Commit: fc27cbb7de0f4b2e5a043fcc856334e56f59db1a
https://github.com/llvm/llvm-project/commit/fc27cbb7de0f4b2e5a043fcc856334e56f59db1a
Author: Lucas Ramirez <lucas.rami at proton.me>
Date: 2026-07-16 (Thu, 16 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: 1d418f9d5031223fcddb00b6f212604ae987c804
https://github.com/llvm/llvm-project/commit/1d418f9d5031223fcddb00b6f212604ae987c804
Author: Lucas Ramirez <lucas.rami at proton.me>
Date: 2026-07-16 (Thu, 16 Jul 2026)
Changed paths:
M llvm/lib/CodeGen/Rematerializer.cpp
Log Message:
-----------
Use is_contained
Commit: e44a8d4910d0817b04d16e060f34a3e0575b49ce
https://github.com/llvm/llvm-project/commit/e44a8d4910d0817b04d16e060f34a3e0575b49ce
Author: Lucas Ramirez <lucas.rami at proton.me>
Date: 2026-07-16 (Thu, 16 Jul 2026)
Changed paths:
M llvm/include/llvm/CodeGen/Rematerializer.h
M llvm/lib/CodeGen/Rematerializer.cpp
Log Message:
-----------
Stray debug + inline closure
Commit: c7127935b4c0e0ec2ffcf1c80f2a80b3ed4cd59b
https://github.com/llvm/llvm-project/commit/c7127935b4c0e0ec2ffcf1c80f2a80b3ed4cd59b
Author: Lucas Ramirez <lucas.rami at proton.me>
Date: 2026-07-16 (Thu, 16 Jul 2026)
Changed paths:
M llvm/test/CodeGen/AMDGPU/sched_mfma_rewrite_copies.mir
Log Message:
-----------
Fix failing test
Compare: https://github.com/llvm/llvm-project/compare/79cdfaaf5b0f...c7127935b4c0
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