[AMDGPU] Rename pass "isel" to "amdgpu-isel"
Summary: The AMDGPU target specific pass "isel" is a misleading name.
Reviewers: tstellar, echristo, javed.absar, arsenm
Reviewed By: arsenm
Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, kristof.beyls, llvm-commits
Differential Revision: https://reviews.llvm.org/D52759
llvm-svn: 343659
2018-10-03 11:38:22 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tahiti -verify-machineinstrs -stop-after=amdgpu-isel -o - %s | FileCheck -check-prefix=GCN %s
|
2018-06-05 22:52:24 +08:00
|
|
|
|
|
|
|
; Type legalization for illegal FP type results was dropping invariant
|
|
|
|
; and dereferenceable flags.
|
|
|
|
|
2018-08-03 06:53:57 +08:00
|
|
|
; GCN: BUFFER_LOAD_USHORT{{.*}} :: (dereferenceable invariant load 2 from %ir.ptr, addrspace 4)
|
2018-06-05 22:52:24 +08:00
|
|
|
define half @legalize_f16_load(half addrspace(4)* dereferenceable(4) %ptr) {
|
|
|
|
%load = load half, half addrspace(4)* %ptr, !invariant.load !0
|
|
|
|
%add = fadd half %load, 1.0
|
|
|
|
ret half %add
|
|
|
|
}
|
|
|
|
|
|
|
|
!0 = !{}
|