From 5f7aff9a0a8b651348b024bd240fdb705d907f12 Mon Sep 17 00:00:00 2001 From: Easwaran Raman Date: Wed, 24 Jan 2018 17:51:23 +0000 Subject: [ThinLTO] Add call edges' relative block frequency to per-module summary. Summary: This allows relative block frequency of call edges to be passed to the thinlink stage where it will be used to compute synthetic entry counts of functions. Reviewers: tejohnson, pcc Subscribers: mehdi_amini, llvm-commits, inglorion Differential Revision: https://reviews.llvm.org/D42212 llvm-svn: 323349 --- .../thinlto-function-summary-callgraph-relbf.ll | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 llvm/test/Bitcode/thinlto-function-summary-callgraph-relbf.ll (limited to 'llvm/test/Bitcode/thinlto-function-summary-callgraph-relbf.ll') diff --git a/llvm/test/Bitcode/thinlto-function-summary-callgraph-relbf.ll b/llvm/test/Bitcode/thinlto-function-summary-callgraph-relbf.ll new file mode 100644 index 00000000000..779acada520 --- /dev/null +++ b/llvm/test/Bitcode/thinlto-function-summary-callgraph-relbf.ll @@ -0,0 +1,35 @@ +; Test to check the callgraph in summary +; RUN: opt -write-relbf-to-summary -module-summary %s -o %t.o +; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s + + +; CHECK: +; CHECK: