[PATCH] D63918: [LoopPeeling] Better handling of branch weights for small values

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 28 00:05:30 PDT 2019


skatkov created this revision.
skatkov added reviewers: reames, mkuper, iajbar, fhahn.
Herald added a subscriber: zzheng.

If the original exit weight for latch to exit is small the new
weights for copies of latch will be non-informative like
[0,1] if original exit weight is 1.

This CL tries to scale original exit weight to get reasonable values.


https://reviews.llvm.org/D63918

Files:
  lib/Transforms/Utils/LoopUnrollPeel.cpp
  test/Transforms/LoopUnroll/peel-loop-pgo-small-weigth.ll
  test/Transforms/LoopUnroll/peel-loop-pgo.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63918.206998.patch
Type: text/x-patch
Size: 5532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190628/616abf5e/attachment.bin>


More information about the llvm-commits mailing list