[PATCH] D48586: [AMDGPU] Early expansion of 32 bit udiv/urem

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 25 23:39:01 PDT 2018


rampitec created this revision.
rampitec added reviewers: b-sumner, arsenm.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl.

This allows hoisting of a common code, for instance if denominator
is loop invariant. Current change is expansion only, adding licm to
the target pass list going to be a separate patch. Given this patch
changes to codegen are minor as the expansion is similar to that on
DAG. DAG expansion still must remain for R600.


https://reviews.llvm.org/D48586

Files:
  lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  test/CodeGen/AMDGPU/amdgpu-codegenprepare-i16-to-i32.ll
  test/CodeGen/AMDGPU/dagcombine-select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48586.152843.patch
Type: text/x-patch
Size: 19903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180626/9eb2a6b0/attachment.bin>


More information about the llvm-commits mailing list