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

Xuetian Weng xweng at google.com
Tue Jun 16 18:48:10 PDT 2015


Try to address jingyue's comments.

For line 77 comment, the use iterator may be invalidated by changing
operands below.

for call-with-alloca-buffer.ll comment The %SP + 0 is not a critical
check, and it can appear in other position depending on some other
pass and instruction, so this check is removed and replaced by check
the dest register of cvta.to.local instruction.

The updated patch also move NVPTXLowerAlloca and NVPTXFavorNonGenericAddrSpaces
after SROA pass. So we don't need to depends on http://reviews.llvm.org/D10482 for now. This
can be changed back depending on how http://reviews.llvm.org/D10482 goes.


http://reviews.llvm.org/D10483

Files:
  lib/Target/NVPTX/CMakeLists.txt
  lib/Target/NVPTX/NVPTX.h
  lib/Target/NVPTX/NVPTXLowerAlloca.cpp
  lib/Target/NVPTX/NVPTXTargetMachine.cpp
  test/CodeGen/NVPTX/call-with-alloca-buffer.ll
  test/CodeGen/NVPTX/lower-alloca.ll

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10483.27808.patch
Type: text/x-patch
Size: 8986 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150617/5e20a487/attachment.bin>


More information about the llvm-commits mailing list