Skip to content

Commit

Permalink
AMDGPU: Remove deprecated llvm.AMDGPU.kilp intrinsic
Browse files Browse the repository at this point in the history
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

llvm-svn: 330775
  • Loading branch information
tstellar committed Apr 24, 2018
1 parent 257882f commit a2be8f4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 34 deletions.
1 change: 0 additions & 1 deletion llvm/lib/Target/AMDGPU/AMDGPUIntrinsics.td
Expand Up @@ -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"
5 changes: 0 additions & 5 deletions llvm/lib/Target/AMDGPU/R600Instructions.td
Expand Up @@ -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))
Expand Down
5 changes: 0 additions & 5 deletions llvm/lib/Target/AMDGPU/SIInstructions.td
Expand Up @@ -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)),
Expand Down
19 changes: 0 additions & 19 deletions llvm/test/CodeGen/AMDGPU/llvm.amdgpu.kilp.ll

This file was deleted.

10 changes: 6 additions & 4 deletions llvm/test/CodeGen/AMDGPU/si-lower-control-flow-kill.ll
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -68,4 +68,6 @@ endif:
ret void
}

declare void @llvm.AMDGPU.kilp()
declare void @llvm.amdgcn.kill(i1) #0

attributes #0 = { nounwind }

0 comments on commit a2be8f4

Please sign in to comment.