diff options
| author | Justin Bogner <mail@justinbogner.com> | 2014-04-04 02:48:51 +0000 |
|---|---|---|
| committer | Justin Bogner <mail@justinbogner.com> | 2014-04-04 02:48:51 +0000 |
| commit | 6acf9ee0e5e7a18998d81281d81de082a6b4b12a (patch) | |
| tree | be65818c097a5e6af5eb42a7e745f713d6eb6907 /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 871b49abfab90c37ff229b6559ef1c1a4c80b6d6 (diff) | |
| download | clang-6acf9ee0e5e7a18998d81281d81de082a6b4b12a.tar.gz clang-6acf9ee0e5e7a18998d81281d81de082a6b4b12a.tar.bz2 clang-6acf9ee0e5e7a18998d81281d81de082a6b4b12a.tar.xz | |
CodeGen: Don't create branch weight metadata from empty profiles
If all of our weights are zero when calculating branch weights, it
means we haven't profiled the code in question. Avoid creating a
metadata node that says all branches are equally likely in this case.
The test also checks constructs that hit the other createBranchWeights
overload. These were already working.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205606 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
