[PATCH] D31924: SROA: Allow eliminating addrspacecasted allocas
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 10 20:52:59 PDT 2017
arsenm created this revision.
Herald added a subscriber: wdng.
This is a resurrection of https://reviews.llvm.org/D10482 and https://reviews.llvm.org/D4501
There is a circular dependency between SROA and
InferAddressSpaces today that requires running both
multiple times in order to be able to eliminate all
simple allocas and addrspacecasts.
InferAddressSpaces can't remove addrspacecasts when
written to memory, and SROA helps move pointers out
of memory.
https://reviews.llvm.org/D31924
Files:
docs/LangRef.rst
include/llvm/Analysis/PtrUseVisitor.h
lib/Transforms/Scalar/SROA.cpp
test/Transforms/SROA/basictest.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31924.94776.patch
Type: text/x-patch
Size: 4751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170411/fbd55822/attachment.bin>
More information about the llvm-commits
mailing list