Fix a bug in IfConversion.cpp.
authorCong Hou <congh@google.com>
Tue, 1 Dec 2015 21:50:20 +0000 (21:50 +0000)
committerCong Hou <congh@google.com>
Tue, 1 Dec 2015 21:50:20 +0000 (21:50 +0000)
commitd715c5a2cfd096fc5ac18e81a4b7cdfc55cc4f0f
tree41e010851a830f463f667ed995fe9bd478ec36d1
parenta46d791b1d6433e359764642e4545fab7a10e2cb
Fix a bug in IfConversion.cpp.

The bug is introduced in r254377 which failed some tests on ARM, where a new
probability is assigned to a successor but the provided BB may not be a
successor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254463 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/IfConversion.cpp