AMDGPU: Remove deprecated llvm.AMDGPU.kilp intrinsic

Summary: This is no longer used by mesa since its 18.0.0 release.

Reviewers: nhaehnle

Reviewed By: nhaehnle

Subscribers: arsenm, kzhuravl, wdng, yaxunl, dstuttard, tpr, llvm-commits, t-tye

Differential Revision: https://reviews.llvm.org/D45988

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330775 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Tom Stellard 2018-04-24 21:37:57 +00:00
parent 5011204f5c
commit e843f71e41
5 changed files with 6 additions and 34 deletions

View File

@ -13,7 +13,6 @@
let TargetPrefix = "AMDGPU", isTarget = 1 in {
def int_AMDGPU_kill : Intrinsic<[], [llvm_float_ty], []>;
def int_AMDGPU_kilp : Intrinsic<[], [], []>;
}
include "SIIntrinsics.td"

View File

@ -1739,11 +1739,6 @@ def : R600Pat <
>;
// KIL Patterns
def KILP : R600Pat <
(int_AMDGPU_kilp),
(MASK_WRITE (KILLGT (f32 ONE), (f32 ZERO)))
>;
def KIL : R600Pat <
(int_AMDGPU_kill f32:$src0),
(MASK_WRITE (KILLGT (f32 ZERO), $src0))

View File

@ -572,11 +572,6 @@ def : GCNPat<
(SI_ELSE $src, $target, 0)
>;
def : GCNPat <
(int_AMDGPU_kilp),
(SI_KILL_I1_PSEUDO (i1 0), 0)
>;
def : Pat <
// -1.0 as i32 (LowerINTRINSIC_VOID converts all other constants to -1.0)
(AMDGPUkill (i32 -1082130432)),

View File

@ -1,19 +0,0 @@
; RUN: llc -march=amdgcn -mcpu=verde -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
; SI-LABEL: {{^}}kilp_gs_const:
; SI: s_mov_b64 exec, 0
define amdgpu_gs void @kilp_gs_const() {
main_body:
%0 = icmp ule i32 0, 3
%1 = select i1 %0, float 1.000000e+00, float -1.000000e+00
call void @llvm.AMDGPU.kilp(float %1)
%2 = icmp ule i32 3, 0
%3 = select i1 %2, float 1.000000e+00, float -1.000000e+00
call void @llvm.AMDGPU.kilp(float %3)
ret void
}
declare void @llvm.AMDGPU.kilp(float)
!0 = !{!"const", null, i32 1}

View File

@ -9,7 +9,7 @@ define amdgpu_ps void @if_with_kill(i32 %arg) {
br i1 %cmp, label %then, label %endif
then:
tail call void @llvm.AMDGPU.kilp()
tail call void @llvm.amdgcn.kill(i1 false)
br label %endif
endif:
@ -35,7 +35,7 @@ loop:
br i1 %cc, label %loop, label %break
break:
tail call void @llvm.AMDGPU.kilp()
tail call void @llvm.amdgcn.kill(i1 false)
br label %endif
endif:
@ -58,7 +58,7 @@ loop:
%ind = phi i32 [%sub, %then], [%dec, %loop]
%dec = sub i32 %ind, 1
%cc = icmp ne i32 %ind, 0
tail call void @llvm.AMDGPU.kilp()
tail call void @llvm.amdgcn.kill(i1 false)
br i1 %cc, label %loop, label %break
break:
@ -68,4 +68,6 @@ endif:
ret void
}
declare void @llvm.AMDGPU.kilp()
declare void @llvm.amdgcn.kill(i1) #0
attributes #0 = { nounwind }