[PATCH] D35975: AMDGPU: Look through a bitcast user of an out argument
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 27 20:21:57 PDT 2017
arsenm created this revision.
Herald added subscribers: t-tye, Anastasia, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl.
This allows handling of a lot more of the interesting
cases in Blender. Most of the large functions unlikely
to be inlined have this pattern.
This is a special case for what clang emits for OpenCL 3
element vectors. Annoyingly, these are emitted as
<3 x elt>* pointers, but accessed as <4 x elt>* operations.
This also needs to handle cases where a struct containing
a single vector is used.
https://reviews.llvm.org/D35975
Files:
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
test/CodeGen/AMDGPU/rewrite-out-arguments-address-space.ll
test/CodeGen/AMDGPU/rewrite-out-arguments.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35975.108574.patch
Type: text/x-patch
Size: 22875 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170728/a6cf2610/attachment.bin>
More information about the llvm-commits
mailing list