From 4e9c1e3a793b6120ac6a0f8075ea26d0762c5888 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 28 Oct 2016 23:00:38 +0000 Subject: [PATCH] AMDGPU: Fix instruction flags for s_endpgm Set isReturn, remove hasSideEffects. Also remove hasCtrlDep, I'm not really sure what that does. llvm-svn: 285476 --- llvm/lib/Target/AMDGPU/SOPInstructions.td | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/SOPInstructions.td b/llvm/lib/Target/AMDGPU/SOPInstructions.td index 7056b41..0d376b9 100644 --- a/llvm/lib/Target/AMDGPU/SOPInstructions.td +++ b/llvm/lib/Target/AMDGPU/SOPInstructions.td @@ -743,8 +743,7 @@ def S_ENDPGM : SOPP <0x00000001, (ins), "s_endpgm", [(AMDGPUendpgm)]> { let simm16 = 0; let isBarrier = 1; - let hasCtrlDep = 1; - let hasSideEffects = 1; + let isReturn = 1; } let isBranch = 1, SchedRW = [WriteBranch] in { -- 2.7.4