[llvm] [CodeGen] Do not retype an already typed vreg in constrainRegAttrs (PR #217410)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 19 10:58:59 PDT 2026


================
@@ -111,7 +111,7 @@ MachineRegisterInfo::constrainRegAttrs(Register Reg,
     } else if (RegCB != ConstrainingRegCB)
       return false;
   }
-  if (ConstrainingRegTy.isValid())
+  if (ConstrainingRegTy.isValid() && !RegTy.isValid())
----------------
arsenm wrote:

I'd kind of expect this to refuse to constrain? 

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


More information about the llvm-commits mailing list