[PATCH] D139732: [AMDGPU] Add pass to rewrite partially used virtual superregisters after RenameIndependentSubregs pass with registers of minimal size (WIP)
Valery Pykhtin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 14 09:40:33 PST 2022
vpykhtin marked 3 inline comments as done.
vpykhtin added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/GCNRewritePartialRegUses.cpp:302-305
+ if (LIS) {
+ LIS->removeInterval(Reg);
+ LIS->createAndComputeVirtRegInterval(NewReg);
+ }
----------------
arsenm wrote:
> Can you do better than delete and recreate the liveness? Can we do this before liveness is computed?
Liveness is required by the previous pass but this pass doesn't use it so I decided not to require it.
Liveness subranges aren't touched by this pass but some of them become main range instead of subrange. Subreg indexes and lanemasks need to be updated.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D139732/new/
https://reviews.llvm.org/D139732
More information about the llvm-commits
mailing list