[PATCH] D23749: [NVPTX] Add NVPTXHoistAddrSpaceCast pass.
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 20 20:40:41 PDT 2016
arsenm added a subscriber: arsenm.
================
Comment at: llvm/lib/Target/NVPTX/NVPTXHoistAddrSpaceCast.cpp:156-160
@@ +155,7 @@
+ if (AddrSpaceCastInst *ASC = dyn_cast<AddrSpaceCastInst>(&I))
+ if (ASC->getSrcAddressSpace() == AddressSpace::ADDRESS_SPACE_GENERIC &&
+ ASC->getDestAddressSpace() != AddressSpace::ADDRESS_SPACE_GENERIC &&
+ ASC->getSrcTy()->getPointerElementType() ==
+ ASC->getDestTy()->getPointerElementType())
+ Worklist.push_back(ASC);
+
----------------
Can you put this into a TTI hook?
https://reviews.llvm.org/D23749
More information about the llvm-commits
mailing list