OSDN Git Service

[LoopSimplify] Preserve LCSSA when merging exit blocks.
authorMichael Zolotukhin <mzolotukhin@apple.com>
Wed, 8 Jun 2016 23:13:21 +0000 (23:13 +0000)
committerMichael Zolotukhin <mzolotukhin@apple.com>
Wed, 8 Jun 2016 23:13:21 +0000 (23:13 +0000)
commit92be720123012831796454850b3f3d684fd1433f
tree1393daf9b15d2e1b84285e05a79ffecd0f691712
parentdc32f35c6808b7bce5ef4a357a15ba6f8e48b7c9
[LoopSimplify] Preserve LCSSA when merging exit blocks.

Summary:
This fixes PR26682. Also add LCSSA as a preserved pass to LoopSimplify,
that looks correct to me and allows to write a test for the issue.

Reviewers: chandlerc, bogner, sanjoy

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D21112

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272224 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/LoopSimplify.cpp
test/Transforms/LoopSimplify/pr26682.ll [new file with mode: 0644]