mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
9b7843d732
This is a fixup for r267304. The test was sensitive to the path in a subtle way: the index in memory is sorted by GUID, which are hashes that include the source filename for local globals. Teresa recently added a directive at the IR level, so we can specify it here to make the test independent of the path. From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 267305
32 lines
1.2 KiB
LLVM
32 lines
1.2 KiB
LLVM
; Test to check the callgraph in summary
|
|
; RUN: opt -module-summary %s -o %t.o
|
|
; RUN: llvm-lto -thinlto-action=thinlink -o %t.index.bc %t.o
|
|
; RUN: llvm-bcanalyzer -dump %t.index.bc | FileCheck %s --check-prefix=COMBINED
|
|
|
|
; COMBINED: <GLOBALVAL_SUMMARY_BLOCK
|
|
; COMBINED-NEXT: <COMBINED
|
|
; COMBINED-NEXT: <COMBINED_ORIGINAL_NAME op0=6699318081062747564/>
|
|
; COMBINED-NEXT: <COMBINED_GLOBALVAR_INIT_REFS
|
|
; COMBINED-NEXT: <COMBINED_ORIGINAL_NAME op0=-2012135647395072713/>
|
|
; COMBINED-NEXT: <COMBINED_ALIAS
|
|
; COMBINED-NEXT: <COMBINED_ORIGINAL_NAME op0=-4170563161550796836/>
|
|
; COMBINED-NEXT: </GLOBALVAL_SUMMARY_BLOCK>
|
|
; COMBINED-NEXT: <VALUE_SYMTAB
|
|
; COMBINED-NEXT: <COMBINED_GVDEFENTRY {{.*}} op2=4947176790635855146/>
|
|
; COMBINED-NEXT: <COMBINED_GVDEFENTRY {{.*}} op2=-6591587165810580810/>
|
|
; COMBINED-NEXT: <COMBINED_GVDEFENTRY {{.*}} op2=-4377693495213223786/>
|
|
; COMBINED-NEXT: </VALUE_SYMTAB>
|
|
|
|
source_filename = "/path/to/source.c"
|
|
|
|
; ModuleID = 'thinlto-function-summary-callgraph.ll'
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
@bar = internal global i32 0
|
|
@fooalias = internal alias void (...), bitcast (void ()* @foo to void (...)*)
|
|
|
|
define internal void @foo() {
|
|
ret void
|
|
}
|