[PATCH] D62409: TTI: Improve default costs for addrspacecast
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 24 10:04:47 PDT 2019
arsenm created this revision.
arsenm added a reviewer: hfinkel.
Herald added subscribers: dmgreen, zzheng, tpr, nhaehnle, wdng, jvesely.
For some reason multiple places need to do this, and the variant the
loop unroller and inliner use was not handling it.
Also, introduce a new wrapper to be slightly more precise, since on
AMDGPU some addrspacecasts are free, but not no-ops.
https://reviews.llvm.org/D62409
Files:
include/llvm/CodeGen/BasicTTIImpl.h
include/llvm/CodeGen/TargetLowering.h
test/Analysis/CostModel/AMDGPU/addrspacecast.ll
test/Transforms/LoopUnroll/AMDGPU/unroll-cost-addrspacecast.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62409.201281.patch
Type: text/x-patch
Size: 8827 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190524/2ba9a2f0/attachment.bin>
More information about the llvm-commits
mailing list