[PATCH] D26923: [CodeGenPrepare] Don't sink non-cheap addrspacecasts.
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 21 11:49:50 PST 2016
arsenm accepted this revision.
arsenm added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/lib/CodeGen/CodeGenPrepare.cpp:829-832
+ if (auto *ASC = dyn_cast<AddrSpaceCastInst>(CI))
+ if (!TLI.isCheapAddrSpaceCast(ASC->getSrcAddressSpace(),
+ ASC->getDestAddressSpace()))
+ return false;
----------------
Braces
https://reviews.llvm.org/D26923
More information about the llvm-commits
mailing list