[PATCH] Add NVPTXLowerAlloca pass to convert alloca'ed memory to local address

Xuetian Weng xweng at google.com
Tue Jun 16 12:30:42 PDT 2015

This will depends on http://reviews.llvm.org/D10482 to eliminate alloca across the addrspacecast boundary, otherwise there maybe performance regression because SROA will not work properly.

Though moving SROA before NVPTXLowerAlloca could also resolve the issue, but NVPTXLowerKernelArgs, NVPTXLowerAlloca, NVPTXFavorNonGenericAddrSpaces will merge someday, so it's better to fix this issue in SROA.



More information about the llvm-commits mailing list