llvm-project/llvm/test/Transforms/CodeGenPrepare/NVPTX
Justin Lebar 3e50a5be8f [CodeGenPrepare] Don't sink non-cheap addrspacecasts.
Summary:
Previously, CGP would unconditionally sink addrspacecast instructions,
even going so far as to sink them into a loop.

Now we check that the cast is "cheap", as defined by TLI.

We introduce a new "is-cheap" function to TLI rather than using
isNopAddrSpaceCast because some GPU platforms want the ability to ask
for non-nop casts to be sunk.

Reviewers: arsenm, tra

Subscribers: jholewinski, wdng, llvm-commits

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

llvm-svn: 287591
2016-11-21 22:49:15 +00:00
..
bypass-slow-div-constant-numerator.ll [BypassSlowDivision] Handle division by constant numerators better. 2016-11-16 00:44:47 +00:00
bypass-slow-div-not-exact.ll
bypass-slow-div.ll
dont-sink-nop-addrspacecast.ll [CodeGenPrepare] Don't sink non-cheap addrspacecasts. 2016-11-21 22:49:15 +00:00
lit.local.cfg Add missing lit.local.cfg to llvm/test/Transforms/CodeGenPrepare/NVPTX. 2016-10-28 21:56:07 +00:00