]> granicus.if.org Git - llvm/commit
[MSSA] Avoid unnecessary use walks when calling getClobberingMemoryAccess
authorDaniel Berlin <dberlin@dberlin.org>
Thu, 20 Oct 2016 20:13:45 +0000 (20:13 +0000)
committerDaniel Berlin <dberlin@dberlin.org>
Thu, 20 Oct 2016 20:13:45 +0000 (20:13 +0000)
commit6d6a5e6250b5c02bc30dfa272ed660b80cdbc840
treecb5d262bc1431045e8e11a6addbd04d9cdd11ef1
parentd6842a6b778aaf08e648ff4620ff439a04741475
[MSSA] Avoid unnecessary use walks when calling getClobberingMemoryAccess

Summary:
This allows us to mark when uses have been optimized.
This lets us avoid rewalking (IE when people call getClobberingAccess on everything), and also
enables us to later relax the requirement of use optimization during updates with less cost.

Reviewers: george.burgess.iv

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284771 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/MemorySSA.h
lib/Transforms/Utils/MemorySSA.cpp
unittests/Transforms/Utils/MemorySSA.cpp