diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2016-03-21 21:25:39 +0000 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2016-03-21 21:25:39 +0000 |
commit | 3887a4172528d14b88b5d254866c4466fbddcfc9 (patch) | |
tree | 85a3e730da692c202635ea1c1add7e3c83c4f489 /lldb/packages/Python/lldbsuite/test/python_api | |
parent | 67e6ae5e2a44388bf46f5f1281085ff8b6d5f5d2 (diff) | |
download | bcm5719-llvm-3887a4172528d14b88b5d254866c4466fbddcfc9.tar.gz bcm5719-llvm-3887a4172528d14b88b5d254866c4466fbddcfc9.zip |
[MemorySSA] Consider def-only BBs for live-in calculations.
If we have a BB with only MemoryDefs, live-in calculations will ignore
it. This means we get results like this:
define void @foo(i8* %p) {
; 1 = MemoryDef(liveOnEntry)
store i8 0, i8* %p
br i1 undef, label %if.then, label %if.end
if.then:
; 2 = MemoryDef(1)
store i8 1, i8* %p
br label %if.end
if.end:
; 3 = MemoryDef(1)
store i8 2, i8* %p
ret void
}
...When there should be a MemoryPhi in the `if.end` BB.
This patch fixes that behavior.
llvm-svn: 263991
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api')
0 files changed, 0 insertions, 0 deletions