1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 13:33:37 +02:00
llvm-mirror/test/Transforms/SampleProfile/Inputs/propagate.prof
Dehao Chen 23b3e63a01 Tune basic block annotation algorithm.
Summary:
Instead of using maximum IR weight as the basic block weight, this patch uses the voting algorithm to find the most likely weight for the basic block. This can effectively avoid the cases when some IRs are annotated incorrectly due to code motion of the profiled binary.

This patch also updates propagate.ll unittest to include discriminator in the input file so that it is testing something meaningful.

Reviewers: davidxl, dnovillo

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D19301

llvm-svn: 267519
2016-04-26 04:59:11 +00:00

23 lines
198 B
Plaintext

_Z3fooiil:33168:0
0: 0
1: 0
2: 0
4: 0
4.1: 302
4.2: 315
5: 302
6: 200
7: 308
8: 227
9: 227
10: 227
11: 83
11.1: 7553
11.2: 7479
12: 7479
13: 7479
16: 305
18: 0
19: 0
65533: 308