[llvm] [CodeGen] Precompute untyped getMinimalPhysRegClass (PR #193438)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Tue May 5 01:32:02 PDT 2026


================
@@ -1263,6 +1263,10 @@ void RegisterInfoEmitter::runTargetHeader(raw_ostream &OS, raw_ostream &MainOS,
     OS << "  const TargetRegisterClass *getPhysRegBaseClass(MCRegister Reg) "
           "const override;\n";
   }
+  if (!RegisterClasses.empty()) {
+    OS << "  const TargetRegisterClass *getDefaultMinimalPhysRegClass("
----------------
sdesmalen-arm wrote:

Fair enough. I was thinking that if the two are basically implementing basically the same thing that they can be merged. But perhaps it's good to just land this as a self-contained change first as it solves an immediate issue.

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


More information about the llvm-commits mailing list