[llvm] [CodeGen] Add MachineRegisterClassInfo analysis pass (PR #120690)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 10 04:50:55 PST 2025


================
@@ -594,6 +596,7 @@ void RegisterCoalescer::getAnalysisUsage(AnalysisUsage &AU) const {
   AU.addRequired<MachineLoopInfoWrapperPass>();
   AU.addPreserved<MachineLoopInfoWrapperPass>();
   AU.addPreservedID(MachineDominatorsID);
+  AU.addRequired<MachineRegisterClassInfoWrapperPass>();
----------------
arsenm wrote:

Need to addPreserved in a lot more places? Maybe it belongs in the default MachineFunction getAnalysisUsage, though AMDGPU has a few passes that touch the set of reserved registers 

https://github.com/llvm/llvm-project/pull/120690


More information about the llvm-commits mailing list