[SimplifyCFG] Fix the determination of PostBB in conditional store merging to handle...
authorCraig Topper <craig.topper@gmail.com>
Fri, 21 Apr 2017 15:53:42 +0000 (15:53 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 21 Apr 2017 15:53:42 +0000 (15:53 +0000)
commit7af078847cd287256213b2db061a4e14eae6bb5d
tree8489678d509cbd3800f5d6bfe061af9a0e51697f
parentd3326a04e061f082798790f6befb097ddf4ffde3
[SimplifyCFG] Fix the determination of PostBB in conditional store merging to handle the targets on the second branch being commuted

Currently we choose PostBB as the single successor of QFB, but its possible that QTB's single successor is QFB which would make QFB the correct choice.

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

llvm-svn: 300992
llvm/lib/Transforms/Utils/SimplifyCFG.cpp
llvm/test/Transforms/SimplifyCFG/merge-cond-stores.ll