[PATCH] D25881: [EarlyCSE] Optimize MemoryPhis and reduce memory clobber queries w/ MemorySSA

Geoff Berry via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 21 13:12:38 PDT 2016


gberry created this revision.
gberry added a reviewer: dberlin.
gberry added subscribers: llvm-commits, mcrosier.

When using MemorySSA, re-optimize MemoryPhis when removing a store since
this may create MemoryPhis with all identical arguments.

Also, when using MemorySSA to check if two MemoryUses are reading from
the same version of the heap, use the defining access instead of calling
getClobberingAccess, since the latter can currently result in many more
AA calls.  Once the MemorySSA use optimization tracking changes are
done, we can remove this limitation, which should result in more loads
being CSE'd.


https://reviews.llvm.org/D25881

Files:
  lib/Transforms/Scalar/EarlyCSE.cpp
  test/Transforms/EarlyCSE/memoryssa.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25881.75472.patch
Type: text/x-patch
Size: 4533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161021/4488e3d5/attachment.bin>


More information about the llvm-commits mailing list