Index: lib/Target/AMDGPU/SIInstructions.td =================================================================== --- lib/Target/AMDGPU/SIInstructions.td +++ lib/Target/AMDGPU/SIInstructions.td @@ -426,8 +426,7 @@ [(AMDGPUendpgm)]> { let simm16 = 0; let isBarrier = 1; - let hasCtrlDep = 1; - let hasSideEffects = 1; + let isReturn = 1; } let isBranch = 1 in {