[llvm-branch-commits] [llvm] [AMDGPU] Serialize WWM_REG vreg flag (PR #110229)

Akshat Oke via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Sep 30 00:40:46 PDT 2024


================
@@ -684,8 +684,8 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction,
 
   void setFlag(Register Reg, uint8_t Flag) {
     assert(Reg.isVirtual());
-    if (VRegFlags.inBounds(Reg))
-      VRegFlags[Reg] |= Flag;
+    VRegFlags.grow(Reg);
----------------
Akshat-Oke wrote:

The MIR function is parsed after parsing the options, so the `noteNewVirtualRegister` callback doesn't take effect.

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


More information about the llvm-branch-commits mailing list