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 | f3aefca7c1bcdd3a6445b7ae04a9f69af567a7e7 (patch) | |
tree | c218bc20650b5f7f7d4f26c1fa4870c56aaab52c /lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp | |
parent | 08d57b951c2ff9c5f710d4f66e71393cee573733 (diff) | |
download | bcm5719-llvm-f3aefca7c1bcdd3a6445b7ae04a9f69af567a7e7.tar.gz bcm5719-llvm-f3aefca7c1bcdd3a6445b7ae04a9f69af567a7e7.zip |
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.
llvm-svn: 205606
Diffstat (limited to 'lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp')
0 files changed, 0 insertions, 0 deletions