diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2018-08-23 21:29:11 +0000 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2018-08-23 21:29:11 +0000 |
commit | 6f6fe701a09549988cb590f58e368e3978e8c7d2 (patch) | |
tree | c5bb970fcd21eb7a1fc7fbb1f7e6d8ca0d522f18 /llvm/lib/IR/DebugInfoMetadata.cpp | |
parent | 14b838a1ca404bef35edb8458ae4fc12d33fc09a (diff) | |
download | bcm5719-llvm-6f6fe701a09549988cb590f58e368e3978e8c7d2.tar.gz bcm5719-llvm-6f6fe701a09549988cb590f58e368e3978e8c7d2.zip |
[MemorySSA] Fix def optimization handling
In order for more complex updates of MSSA to happen (e.g. those in
D45299), MemoryDefs need to be actual `Use`s of what they're optimized
to. This patch makes that happen.
In addition, this patch changes our optimization behavior for Defs
slightly: we'll now consider a Def optimization invalid if the
MemoryAccess it's optimized to changes. That we weren't doing this
before was a bug, but given that we were tracking these with a WeakVH
before, it was sort of difficult for that to matter.
We're already have both of these behaviors for MemoryUses. The
difference is that a MemoryUse's defining access is always its optimized
access, and defining accesses are always `Use`s (in the LLVM sense).
Nothing exploded when testing a stage3 clang+llvm locally, so...
This also includes the test-case promised in r340461.
llvm-svn: 340577
Diffstat (limited to 'llvm/lib/IR/DebugInfoMetadata.cpp')
0 files changed, 0 insertions, 0 deletions