aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/IRObjectFile.cpp
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-11-21 22:49:15 +0000
committerJustin Lebar <jlebar@google.com>2016-11-21 22:49:15 +0000
commit3e50a5be8f5259bc256f39830e72525dd9f90626 (patch)
treeb99385ff21dbca7fb6474649ed54e31953b3cb28 /llvm/lib/Object/IRObjectFile.cpp
parent838c7f5a85a96f642fea0e2167c92e32682222b6 (diff)
downloadllvm-3e50a5be8f5259bc256f39830e72525dd9f90626.zip
llvm-3e50a5be8f5259bc256f39830e72525dd9f90626.tar.gz
llvm-3e50a5be8f5259bc256f39830e72525dd9f90626.tar.bz2
[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
Diffstat (limited to 'llvm/lib/Object/IRObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions