================
@@ -1716,6 +1716,19 @@ bool GCNTargetMachine::parseMachineFunctionInfo(
     MFI->reserveWWMRegister(ParsedReg);
   }
 
+  auto setRegisterFlags = [&](const VRegInfo &Info) {
+    for (uint8_t Flag : Info.Flags) {
+      MFI->setFlag(Info.VReg, Flag);
+    }
----------------
arsenm wrote:

Might as well just inline this and duplicate the code, the loop is trivial 
enough 

https://github.com/llvm/llvm-project/pull/110229
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to