]> granicus.if.org Git - llvm/commit
[MemorySSA] Extend removeMemoryAccess API to optimize MemoryPhis.
authorAlina Sbirlea <asbirlea@google.com>
Thu, 31 Jan 2019 20:13:47 +0000 (20:13 +0000)
committerAlina Sbirlea <asbirlea@google.com>
Thu, 31 Jan 2019 20:13:47 +0000 (20:13 +0000)
commit4ec5fda1f4491ad8b379532929aa0e8f0d0da7af
treeeac892dd31429fe56564caf752cf2a50236786f6
parentf3a785f249c9d55317cd19bdf2b396f17a6a5e96
[MemorySSA] Extend removeMemoryAccess API to optimize MemoryPhis.

Summary:
EarlyCSE needs to optimize MemoryPhis after an access is removed and has
special handling for it. This should be handled by MemorySSA instead.
The default remains that MemoryPhis are *not* optimized after an access
is removed.

Reviewers: george.burgess.iv

Subscribers: sanjoy, jlebar, llvm-commits, Prazek

Differential Revision: https://reviews.llvm.org/D57199

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352787 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/MemorySSAUpdater.h
lib/Analysis/MemorySSAUpdater.cpp