diff options
author | Wei Mi <wmi@google.com> | 2018-09-14 20:52:59 +0000 |
---|---|---|
committer | Wei Mi <wmi@google.com> | 2018-09-14 20:52:59 +0000 |
commit | 6a14325dffb7a0607e5b3c75d93a837cadad54b4 (patch) | |
tree | b66e8dff99504155918123b84a96f9577a905c10 /llvm/test | |
parent | 11511ab5cf306c7c688917bdd69e47dac7292756 (diff) | |
download | bcm5719-llvm-6a14325dffb7a0607e5b3c75d93a837cadad54b4.tar.gz bcm5719-llvm-6a14325dffb7a0607e5b3c75d93a837cadad54b4.zip |
[SampleFDO] Add FunctionOffsetTable in compact binary format profile.
The patch saves a function offset table which maps function name index to the
offset of its function profile to the start of the binary profile. By using
the function offset table, for those function profiles which will not be used
when compiling a module, the profile reader does't have to read them. For
profile size around 10~20M, it saves ~10% compile time.
Differential Revision: https://reviews.llvm.org/D51863
llvm-svn: 342283
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/Transforms/SampleProfile/Inputs/function_metadata.compact.afdo | bin | 280 -> 295 bytes |
-rw-r--r-- | llvm/test/Transforms/SampleProfile/Inputs/indirect-call.compact.afdo | bin | 497 -> 533 bytes |
-rw-r--r-- | llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo | bin | 172 -> 184 bytes |
3 files changed, 0 insertions, 0 deletions
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/function_metadata.compact.afdo b/llvm/test/Transforms/SampleProfile/Inputs/function_metadata.compact.afdo Binary files differindex 16d7d008301..20bd8967077 100644 --- a/llvm/test/Transforms/SampleProfile/Inputs/function_metadata.compact.afdo +++ b/llvm/test/Transforms/SampleProfile/Inputs/function_metadata.compact.afdo diff --git a/llvm/test/Transforms/SampleProfile/Inputs/indirect-call.compact.afdo b/llvm/test/Transforms/SampleProfile/Inputs/indirect-call.compact.afdo Binary files differindex b43ac6fcd60..579f03c8515 100644 --- a/llvm/test/Transforms/SampleProfile/Inputs/indirect-call.compact.afdo +++ b/llvm/test/Transforms/SampleProfile/Inputs/indirect-call.compact.afdo diff --git a/llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo b/llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo Binary files differindex 805809952f0..6271b3609e9 100644 --- a/llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo +++ b/llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo |