1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 20:12:56 +02:00
llvm-mirror/test/Analysis/BlockFrequencyInfo
Hiroshi Yamauchi 0596ae1e4a Add heuristics for irreducible loop metadata under PGO
Summary:
Add the following heuristics for irreducible loop metadata:

- When an irreducible loop header is missing the loop header weight metadata,
  give it the minimum weight seen among other headers.
- Annotate indirectbr targets with the loop header weight metadata (as they are
  likely to become irreducible loop headers after indirectbr tail duplication.)

These greatly improve the accuracy of the block frequency info of the Python
interpreter loop (eg. from ~3-16x off down to ~40-55% off) and the Python
performance (eg. unpack_sequence from ~50% slower to ~8% faster than GCC) due to
better register allocation under PGO.

Reviewers: davidxl

Reviewed By: davidxl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D39980

llvm-svn: 318693
2017-11-20 21:03:38 +00:00
..
bad_input.ll
basic.ll
double_backedge.ll
double_exit.ll
extremely-likely-loop-successor.ll
irreducible_loop_crash.ll
irreducible_pgo.ll Add heuristics for irreducible loop metadata under PGO 2017-11-20 21:03:38 +00:00
irreducible.ll
loop_with_branch.ll
loops_with_profile_info.ll
nested_loop_with_branches.ll