summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-04-04 02:48:51 +0000
committerJustin Bogner <mail@justinbogner.com>2014-04-04 02:48:51 +0000
commitf3aefca7c1bcdd3a6445b7ae04a9f69af567a7e7 (patch)
treec218bc20650b5f7f7d4f26c1fa4870c56aaab52c /lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
parent08d57b951c2ff9c5f710d4f66e71393cee573733 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud