commit | d61d1eb165244f62bfd21cdf79e06bc6579950b4 | [log] [tgz] |
---|---|---|
author | Manman Ren <mren@apple.com> | Thu Oct 11 22:28:34 2012 +0000 |
committer | Manman Ren <mren@apple.com> | Thu Oct 11 22:28:34 2012 +0000 |
tree | 07e403972ff4bff4e0165edfa228dc0058ba13f2 | |
parent | aa79721fceb3310db5c6aa98f212b690652a8ab4 [diff] |
PGO: create metadata for switch only if it has more than one targets. When all cases of a switch statement are dead, the weights vector only has one element, and we will get an ssertion failure when calling createBranchWeights. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165759 91177308-0d34-0410-b5e6-96231b3b80d8