[PATCH] D31924: SROA: Allow eliminating addrspacecasted allocas

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 11:07:35 PDT 2019


arsenm updated this revision to Diff 202756.
arsenm marked 3 inline comments as done.
arsenm added a comment.

Rebase and fix using the pointer type instead of the new indexing type. Don't introduce a new addrspacecast, since it's easily avoidable.

Since the addrspacecast is no longer inserted, I think that avoids some of the questions about pointer wrapping? The addrspacecasts are only eliminated, and ignored for computing the offset.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D31924/new/

https://reviews.llvm.org/D31924

Files:
  docs/LangRef.rst
  include/llvm/Analysis/PtrUseVisitor.h
  lib/Analysis/PtrUseVisitor.cpp
  lib/Transforms/Scalar/SROA.cpp
  test/Transforms/SROA/basictest.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31924.202756.patch
Type: text/x-patch
Size: 8158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190603/253941cc/attachment.bin>


More information about the llvm-commits mailing list