OSDN Git Service

[AMDGPU] New 64 bit div/rem expansion
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 6 Oct 2017 17:24:45 +0000 (17:24 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 6 Oct 2017 17:24:45 +0000 (17:24 +0000)
commit287608ccc376fbc64dc319796139e5381438a1e5
tree53afced6be155ead1356df9698af74a16163a4fd
parent91aeb5cbd2791f5b20f5a9e4b96faf6ff10e3e7e
[AMDGPU] New 64 bit div/rem expansion

Old expansion was 20 VGPRs, 78 SGPRs and ~380 instructions.
This expansion is 11 VGPRs, 12 SGPRs and ~120 instructions.

Passes OpenCL conformance test_integer_ops quick_[u]long_math

Differential Revision: https://reviews.llvm.org/D38607

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@315081 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUISelLowering.cpp
test/CodeGen/AMDGPU/sdivrem64.ll
test/CodeGen/AMDGPU/udivrem64.ll