]> granicus.if.org Git - llvm/commit
[SimplifyCFG] Skip sinking common lifetime markers of `alloca`.
authorMichael Liao <michael.hliao@gmail.com>
Thu, 29 Aug 2019 16:12:05 +0000 (16:12 +0000)
committerMichael Liao <michael.hliao@gmail.com>
Thu, 29 Aug 2019 16:12:05 +0000 (16:12 +0000)
commit827c4bd1395a693d3d7d761802950af38750dcec
tree724109a13c59eced7594ef2e64875825b4867563
parent1a11ed0ddf813f1eed546edd810a0151d0226f50
[SimplifyCFG] Skip sinking common lifetime markers of `alloca`.

Summary:
- Similar to the workaround in fix of PR30188, skip sinking common
  lifetime markers of `alloca`. They are mostly left there after
  inlining functions in branches.

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@370376 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/sink-common-code.ll