summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp/overloaded-functions/main.cpp
diff options
context:
space:
mode:
authorCong Hou <congh@google.com>2015-11-18 00:52:52 +0000
committerCong Hou <congh@google.com>2015-11-18 00:52:52 +0000
commit41cf1a5dfb499d356398b4bd10e0f874a63bc954 (patch)
treebc07bbcc1fe1d66b2a8cae08255f3fc7b96452b5 /lldb/packages/Python/lldbsuite/test/lang/cpp/overloaded-functions/main.cpp
parentb2d95f0d2e6696540ba7a4aa8325fb6adf1194cf (diff)
downloadbcm5719-llvm-41cf1a5dfb499d356398b4bd10e0f874a63bc954.tar.gz
bcm5719-llvm-41cf1a5dfb499d356398b4bd10e0f874a63bc954.zip
Improving edge probabilities computation when choosing the best successor in machine block placement.
When looking for the best successor from the outer loop for a block belonging to an inner loop, the edge probability computation can be improved so that edges in the inner loop are ignored. For example, suppose we are building chains for the non-loop part of the following code, and looking for B1's best successor. Assume the true body is very hot, then B3 should be the best candidate. However, because of the existence of the back edge from B1 to B0, the probability from B1 to B3 can be very small, preventing B3 to be its successor. In this patch, when computing the probability of the edge from B1 to B3, the weight on the back edge B1->B0 is ignored, so that B1->B3 will have 100% probability. if (...) do { B0; ... // some branches B1; } while(...); else B2; B3; Differential revision: http://reviews.llvm.org/D10825 llvm-svn: 253414
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp/overloaded-functions/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud