aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/CommandGuide
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2023-08-04 15:14:51 -0700
committerMatthias Braun <matze@braunis.de>2023-09-11 10:38:06 -0700
commit5d7f84ee17f3f601c49f6124a3a51e557de3ab53 (patch)
treec4e8407d4a165bb587ff8699a21bf8e0798b837e /llvm/docs/CommandGuide
parent285e0235f5f649e17eef8f0f25e1680c975dcfe4 (diff)
downloadllvm-5d7f84ee17f3f601c49f6124a3a51e557de3ab53.zip
llvm-5d7f84ee17f3f601c49f6124a3a51e557de3ab53.tar.gz
llvm-5d7f84ee17f3f601c49f6124a3a51e557de3ab53.tar.bz2
LoopRotate: Add code to update branch weights
This adds code to the loop rotation transformation to ensure that the computed block execution counts for the loop bodies are the same before and after the transformation. This isn't always true in practice, but I believe this is because of numeric inaccuracies in the BlockFrequency computation. The invariants this is modeled on and heuristic choice of 0-trip loop amount is explained in a lenghty comment in the new `updateBranchWeights()` function. Differential Revision: https://reviews.llvm.org/D157462
Diffstat (limited to 'llvm/docs/CommandGuide')
0 files changed, 0 insertions, 0 deletions