[PATCH] D38607: [AMDGPU] New 64 bit div/rem expansion

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 5 16:23:25 PDT 2017


rampitec created this revision.
Herald added subscribers: t-tye, Anastasia, tpr, dstuttard, nhaehnle, wdng, kzhuravl, arsenm.

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


https://reviews.llvm.org/D38607

Files:
  lib/Target/AMDGPU/AMDGPUISelLowering.cpp
  test/CodeGen/AMDGPU/sdivrem64.ll
  test/CodeGen/AMDGPU/udivrem64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38607.117932.patch
Type: text/x-patch
Size: 15096 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171005/fc4f892d/attachment.bin>


More information about the llvm-commits mailing list