AMDGPU: Enable integer division bypass
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 17 Feb 2020 23:16:59 +0000 (18:16 -0500)
committerMatt Arsenault <arsenm2@gmail.com>
Wed, 19 Feb 2020 22:50:19 +0000 (17:50 -0500)
commit4bb0c8f91cb7448ef6de913367f2b46b46392fda
treeb762f085803df3fbc12ac507077334be5bacb0dc
parented07c89fc50f38c4f1403b19897468edd7e5cbf3
AMDGPU: Enable integer division bypass

We probably want this, and I've meant to turn this on for a long
time. SC actually emits a special case to early-out for a 1
denominator, which perhaps should also be considered.
llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-idiv.ll
llvm/test/CodeGen/AMDGPU/bypass-div.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/sdiv64.ll
llvm/test/CodeGen/AMDGPU/sdivrem64.r600.ll
llvm/test/CodeGen/AMDGPU/srem64.ll
llvm/test/CodeGen/AMDGPU/udiv64.ll
llvm/test/CodeGen/AMDGPU/urem64.ll