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