PGO: preserve branch-weight metadata when simplifying Switch
authorManman Ren <mren@apple.com>
Mon, 17 Sep 2012 23:07:43 +0000 (23:07 +0000)
committerManman Ren <mren@apple.com>
Mon, 17 Sep 2012 23:07:43 +0000 (23:07 +0000)
commitb010277b599a6298b079d5ba2750df25c20c0b9d
tree5d21dd3c9ff8efef0ca1ed23aa5a99971a092a45
parentf23ddf54eabb0b3b15c22e166e7f6ff966caafb4
PGO: preserve branch-weight metadata when simplifying Switch

Hanlde the case when we split the default edge if the default target has "icmp"
and unconditinal branch.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164076 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/SimplifyCFG.cpp
test/Transforms/SimplifyCFG/preserve-branchweights.ll