OSDN Git Service

[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)
commit4f4553914f61a7366e121ecb5f7087bb462f35f2
treef63ecf6c8172546bb892a5be418a0e70b51656b1
parenta88bbf0e225973dcc282e70acb01a883f172ffec
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300992 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/merge-cond-stores.ll