diff options
author | Vitaly Buka <vitalybuka@google.com> | 2020-06-18 02:24:00 -0700 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2020-06-18 16:53:37 -0700 |
commit | fcd67665a8de61223313e1e1582faf17d9ee76b8 (patch) | |
tree | 536ed174e71096feca68049f8e7cf1e3a1bb39e1 /llvm/lib/CodeGen/SafeStack.cpp | |
parent | 8b0df1c1a992d203212901c1139665261e0bbc1c (diff) | |
download | llvm-fcd67665a8de61223313e1e1582faf17d9ee76b8.zip llvm-fcd67665a8de61223313e1e1582faf17d9ee76b8.tar.gz llvm-fcd67665a8de61223313e1e1582faf17d9ee76b8.tar.bz2 |
[StackSafety] Add "Must Live" logic
Summary:
Extend StackLifetime with option to calculate liveliness
where alloca is only considered alive on basic block entry
if all non-dead predecessors had it alive at terminators.
Depends on D82043.
Reviewers: eugenis
Reviewed By: eugenis
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D82124
Diffstat (limited to 'llvm/lib/CodeGen/SafeStack.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SafeStack.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SafeStack.cpp b/llvm/lib/CodeGen/SafeStack.cpp index 1481894..55478c2 100644 --- a/llvm/lib/CodeGen/SafeStack.cpp +++ b/llvm/lib/CodeGen/SafeStack.cpp @@ -497,7 +497,7 @@ Value *SafeStack::moveStaticAllocasToUnsafeStack( DIBuilder DIB(*F.getParent()); - StackLifetime SSC(F, StaticAllocas); + StackLifetime SSC(F, StaticAllocas, StackLifetime::LivenessType::May); static const StackLifetime::LiveRange NoColoringRange(1, true); if (ClColoring) SSC.run(); |