[llvm-branch-commits] [llvm] [MIR][AMDGPU] Serialize register allocation anti-hints (PR #218073)

Syadus Sefat via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Sep 5 09:24:28 PDT 2026


================
@@ -772,6 +772,23 @@ bool MIRParserImpl::parseRegisterInfo(PerFunctionMIParsingState &PFS,
                          FlagStringValue.Value + "'");
       Info.Flags |= FlagValue;
     }
+    if (!VReg.AntiHints.empty() && Info.Kind != VRegInfo::NORMAL)
+      return error(VReg.AntiHints.front().SourceRange.Start,
+                   Twine("anti-hints can only be set for normal vregs"));
----------------
mssefat wrote:

Fixed it.

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


More information about the llvm-branch-commits mailing list