]> granicus.if.org Git - llvm/commit
AMDGPU/GlobalISel: Avoid creating shift of 0 in arg lowering
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 1 Oct 2019 01:44:46 +0000 (01:44 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 1 Oct 2019 01:44:46 +0000 (01:44 +0000)
commit900bd7250eec2e6659dd8490028b8233fb61e88e
tree73f08e8e6ad727b6ea1a72b148bd33e5c6a646c6
parent56aa8b8eb677df716ddabf30a53f4cb3eb7f27c9
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373293 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.workitem.id.ll