PGO: preserve branch-weight metadata when merging two switches where
authorManman Ren <mren@apple.com>
Fri, 14 Sep 2012 17:29:56 +0000 (17:29 +0000)
committerManman Ren <mren@apple.com>
Fri, 14 Sep 2012 17:29:56 +0000 (17:29 +0000)
commita8a2b99aec8fb2e9cb5c5433a59d836e290e4b84
treecbfb336f358d35d991c5d125217dbe0dafbd632f
parentd039b383e76e6658846dca9eee3fe7f221a2f938
PGO: preserve branch-weight metadata when merging two switches where
the default target of the first switch is not the basic block the second switch
is in (PredDefault != BB).

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