PGO: preserve branch-weight metadata when simplifying Switch to a sub, an icmp
authorManman Ren <mren@apple.com>
Tue, 18 Sep 2012 00:47:33 +0000 (00:47 +0000)
committerManman Ren <mren@apple.com>
Tue, 18 Sep 2012 00:47:33 +0000 (00:47 +0000)
commit222d6192adeba434d64893de920bd72c36f7e8c8
tree118f201e50fbdeb0a92a7c7b591b04a97c74bb4d
parente4095f95ac2480aabbe289f41723b53ac1c82a98
PGO: preserve branch-weight metadata when simplifying Switch to a sub, an icmp
and a conditional branch; also when removing dead cases from a switch.

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