Simplify blockaddress usage before giving up in MergeBlockIntoPredecessor
authorXin Tong <trent.xin.tong@gmail.com>
Mon, 18 Jun 2018 22:59:13 +0000 (22:59 +0000)
committerXin Tong <trent.xin.tong@gmail.com>
Mon, 18 Jun 2018 22:59:13 +0000 (22:59 +0000)
commitbfd8cfcb8dffbcf3b4ecdb5cad00d07fda4310f9
tree4faa2fc4844a48e98aa3cce1ef287f9084f55def
parentd9c3c1cd9d7bf5e58e4bd1ae15701c921acee3f3
Simplify blockaddress usage before giving up in MergeBlockIntoPredecessor

Summary:
Simplify blockaddress usage before giving up in MergeBlockIntoPredecessor

This is a missing small optimization in MergeBlockIntoPredecessor.

This helps with one simplifycfg test which expects this case to be handled.

Reviewers: davide, spatel, brzycki, asbirlea

Subscribers: llvm-commits

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

llvm-svn: 334992
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
llvm/test/Transforms/SimplifyCFG/dce-cond-after-folding-terminator.ll
llvm/unittests/Transforms/Utils/BasicBlockUtils.cpp