xref: /llvm-project/llvm/test/ThinLTO/X86/memprof-old-stackid-summary.ll (revision b35f40688e3079d888932e0a35caa0b02d90db97)
1;; Check that we can read the old STACK_ID summary format that encoded the id as
2;; a VBR8 instead of as a pair of 32-bit fixed-width values.
3;;
4;; The old bitcode was generated by the older compiler from `opt -thinlto-bc`
5;; on the following LLVM assembly:
6;;
7;; target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
8;; target triple = "x86_64-unknown-linux-gnu"
9;;
10;; define void @bar() {
11;;   call void @foo(), !callsite !0
12;;   ret void
13;; }
14;;
15;; declare void @foo()
16;;
17;; !0 = !{i64 9086428284934609951}
18
19; RUN: llvm-dis %S/Inputs/memprof-old-stackid-summary.bc -o - | FileCheck %s
20; CHECK: stackIds: (9086428284934609951)
21