forked from OSchip/llvm-project
3e50a5be8f
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 |
||
---|---|---|
.. | ||
bypass-slow-div-constant-numerator.ll | ||
bypass-slow-div-not-exact.ll | ||
bypass-slow-div.ll | ||
dont-sink-nop-addrspacecast.ll | ||
lit.local.cfg |