diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-10-01 01:44:46 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-10-01 01:44:46 +0000 |
commit | 8f6bdb76684fdb053166f6fa615a109bfc535709 (patch) | |
tree | 6e3caad7596fcc02f6cc2eedc741bd9eb3c800c0 /llvm/test/CodeGen/AMDGPU/GlobalISel | |
parent | f24ac13aaae63d92317dac839ce57857a7b444dc (diff) | |
download | bcm5719-llvm-8f6bdb76684fdb053166f6fa615a109bfc535709.tar.gz bcm5719-llvm-8f6bdb76684fdb053166f6fa615a109bfc535709.zip |
AMDGPU/GlobalISel: Avoid creating shift of 0 in arg lowering
This is sort of papering over the fact that we don't run a combiner
anywhere, but avoiding creating 2 instructions in the first place is
easy.
llvm-svn: 373293
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/GlobalISel')
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.workitem.id.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.workitem.id.ll b/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.workitem.id.ll index fb5f881ad85..946a138bee4 100644 --- a/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.workitem.id.ll +++ b/llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.workitem.id.ll @@ -89,7 +89,7 @@ bb2: } ; ALL-LABEL: {{^}}test_workitem_id_x_func: -; ALL: v_lshrrev_b32_e32 v2, 0, v2 +; ALL: s_waitcnt ; ALL-NEXT: v_and_b32_e32 v2, 0x3ff, v2 define void @test_workitem_id_x_func(i32 addrspace(1)* %out) #1 { %id = call i32 @llvm.amdgcn.workitem.id.x() |