Index: lib/Target/AMDGPU/SIInstructions.td =================================================================== --- lib/Target/AMDGPU/SIInstructions.td +++ lib/Target/AMDGPU/SIInstructions.td @@ -1365,7 +1365,8 @@ defm SI_SPILL_S512 : SI_SPILL_SGPR ; multiclass SI_SPILL_VGPR { - let UseNamedOperandTable = 1, VGPRSpill = 1 in { + let UseNamedOperandTable = 1, VGPRSpill = 1, + SchedRW = [WriteVMEM] in { def _SAVE : VPseudoInstSI < (outs), (ins vgpr_class:$vdata, i32imm:$vaddr, SReg_128:$scratch_rsrc, @@ -1386,7 +1387,7 @@ // (2 * 4) + (8 * num_subregs) bytes maximum let Size = !add(!shl(!srl(vgpr_class.Size, 5), 3), 8); } - } // End UseNamedOperandTable = 1, VGPRSpill = 1 + } // End UseNamedOperandTable = 1, VGPRSpill = 1, SchedRW = [WriteVMEM] } defm SI_SPILL_V32 : SI_SPILL_VGPR ;