Fixed a bug that edge weights are not assigned correctly when lowering switch statement.
authorCong Hou <congh@google.com>
Thu, 27 Aug 2015 00:37:40 +0000 (00:37 +0000)
committerCong Hou <congh@google.com>
Thu, 27 Aug 2015 00:37:40 +0000 (00:37 +0000)
commit5bd75b1a3b8fcb83e2e53392bb8f84eb2ebf1368
treeb793272628afe19a86616b3e2c0eefad4770e992
parent76b88692333101bf483b9a7752bf6cfc9973a005
Fixed a bug that edge weights are not assigned correctly when lowering switch statement.

This is a one-line-change patch that moves the update to UnhandledWeights to the correct position: it should be updated for all clusters instead of just range clusters.

Differential Revision: http://reviews.llvm.org/D12391

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246129 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
test/CodeGen/X86/switch-edge-weight.ll [new file with mode: 0644]