summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2018-09-14 20:52:59 +0000
committerWei Mi <wmi@google.com>2018-09-14 20:52:59 +0000
commit6a14325dffb7a0607e5b3c75d93a837cadad54b4 (patch)
treeb66e8dff99504155918123b84a96f9577a905c10 /llvm/test
parent11511ab5cf306c7c688917bdd69e47dac7292756 (diff)
downloadbcm5719-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.afdobin280 -> 295 bytes
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/indirect-call.compact.afdobin497 -> 533 bytes
-rw-r--r--llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdobin172 -> 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
index 16d7d008301..20bd8967077 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/function_metadata.compact.afdo
+++ b/llvm/test/Transforms/SampleProfile/Inputs/function_metadata.compact.afdo
Binary files differ
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/indirect-call.compact.afdo b/llvm/test/Transforms/SampleProfile/Inputs/indirect-call.compact.afdo
index b43ac6fcd60..579f03c8515 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/indirect-call.compact.afdo
+++ b/llvm/test/Transforms/SampleProfile/Inputs/indirect-call.compact.afdo
Binary files differ
diff --git a/llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo b/llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo
index 805809952f0..6271b3609e9 100644
--- a/llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo
+++ b/llvm/test/Transforms/SampleProfile/Inputs/inline.compactbinary.afdo
Binary files differ
OpenPOWER on IntegriCloud