[llvm] [RegisterCoalescer]: Try inflated RC for coalescing reg->subreg (PR #134438)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed May 7 08:57:44 PDT 2025


================
@@ -731,7 +731,14 @@ class MachineRegisterInfo {
 
   /// recomputeRegClass - Try to find a legal super-class of Reg's register
   /// class that still satisfies the constraints from the instructions using
-  /// Reg.  Returns true if Reg was upgraded.
+  /// \p Reg. \p return the super-class TargetRegisterClass if one was found,
+  /// otherwise \p return the original TargetRegisterClass.
+  const TargetRegisterClass *
+  getLargestConstrainedSuperClass(Register Reg) const;
----------------
jayfoad wrote:

Fix (or remove) the function name in the comment, line 732.

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


More information about the llvm-commits mailing list