summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/GlobalModuleIndex.cpp
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2014-04-14 16:56:19 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2014-04-14 16:56:19 +0000
commit5638b89944f796f2df7c2734a3f92a488eb3b269 (patch)
treeb09324efb2e5191860ee68ecb9a437b5d4e19346 /clang/lib/Serialization/GlobalModuleIndex.cpp
parent3df79775c56d68513e4d423ec85f78987c1764b2 (diff)
downloadbcm5719-llvm-5638b89944f796f2df7c2734a3f92a488eb3b269.tar.gz
bcm5719-llvm-5638b89944f796f2df7c2734a3f92a488eb3b269.zip
Fix a bug in which BranchProbabilityInfo wasn't setting branch weights of basic blocks inside loops correctly.
Previously, BranchProbabilityInfo::calcLoopBranchHeuristics would determine the weights of basic blocks inside loops even when it didn't have enough information to estimate the branch probabilities correctly. This patch fixes the function to exit early if it doesn't see any exit edges or back edges and let the later heuristics determine the weights. This fixes PR18705 and <rdar://problem/15991090>. Differential Revision: http://reviews.llvm.org/D3363 llvm-svn: 206194
Diffstat (limited to 'clang/lib/Serialization/GlobalModuleIndex.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud