[llvm] [BOLT][AArch64]support `inline-small-functions` for AArch64 (PR #120187)
Alexey Moksyakov via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 25 05:56:28 PST 2024
================
@@ -0,0 +1,48 @@
+## This test checks that inline is properly handled by BOLT on aarch64.
+
+# REQUIRES: system-linux, asserts
+
+# RUN: llvm-mc -filetype=obj -triple aarch64-unknown-unknown %s -o %t.o
+# RUN: %clang %cflags -O0 %t.o -o %t.exe -Wl,-q
+# RUN: llvm-bolt --inline-small-functions --print-inline --print-only=_Z3barP1A \
+# RUN: %t.exe -o %t.bolt | FileCheck %s
+
+# CHECK: BOLT-INFO: inlined 0 calls at 1 call sites in 2 iteration(s). Change in binary size: 4 bytes.
----------------
yavtuk wrote:
"inlined 0 calls" here due to lack of fdata file
https://github.com/llvm/llvm-project/pull/120187
More information about the llvm-commits
mailing list