[llvm] [CodeGen][NewPM] Port RegisterUsageInfo to NPM (PR #113873)
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 30 14:14:20 PDT 2024
================
@@ -66,6 +63,52 @@ class PhysicalRegisterUsageInfo : public ImmutablePass {
const LLVMTargetMachine *TM = nullptr;
};
+class PhysicalRegisterUsageInfoWrapperLegacy : public ImmutablePass {
+ std::unique_ptr<PhysicalRegisterUsageInfo> PRUI;
----------------
MatzeB wrote:
>From what I remember this analysis is basically equivalent to `MachineRegisterInfo::UsedPhysRegMask` however I think for interprocedural regalloc we did not want to keep the full `MachineRegisterInfo` around for every function in the module, and that's why this simpler analysis pass exists? (and I think this analysis is not used anyway when IPRA is not enabled)
https://github.com/llvm/llvm-project/pull/113873
More information about the llvm-commits
mailing list