Fixed an issue on updating profile data when lowering switch statement.
authorCong Hou <congh@google.com>
Wed, 23 Sep 2015 00:20:27 +0000 (00:20 +0000)
committerCong Hou <congh@google.com>
Wed, 23 Sep 2015 00:20:27 +0000 (00:20 +0000)
commit20afacc0596e89cff23e30dbafd68117e0f93aea
treea1b8722db697b17feb3a1bc1c4d86bd93871f461
parent826813ee9f8882bf7bb9ad258bbcaa30ebfed1c1
Fixed an issue on updating profile data when lowering switch statement.

Fixed the issue that when there is an edge from the jump table to the default statement, we should check it directly instead of checking if the sibling of the jump table header is a successor of the jump table header, which may not be the default statment but a successor of it.

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