[SimplifyCFG] Extend SimplifyResume to handle phi of trivial landing pad.
authorChen Li <meloli87@gmail.com>
Sun, 10 Jan 2016 05:48:01 +0000 (05:48 +0000)
committerChen Li <meloli87@gmail.com>
Sun, 10 Jan 2016 05:48:01 +0000 (05:48 +0000)
commita05b979e48ed76d9daa2b56bf20cbc592cb5034c
tree85ad97ee94afca5a9d634279b45c44715d6f9909
parentf3f9d83b922db20cd58db1918420622fc343c58b
[SimplifyCFG] Extend SimplifyResume to handle phi of trivial landing pad.

Summary:
This is a fix of D13718. D13718 was committed but then reverted because of the following bug:
https://llvm.org/bugs/show_bug.cgi?id=25299

This patch fixes the issue shown in the bug.

Reviewers: majnemer, reames

Subscribers: jevinskie, llvm-commits

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

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