From b915e9e0fc85ba6f398b3fab0db6a81a8913af94 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 2 Jan 2017 19:17:04 +0000 Subject: Vendor import of llvm trunk r290819: https://llvm.org/svn/llvm-project/llvm/trunk@290819 --- test/Bitcode/thinlto-function-summary.ll | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'test/Bitcode/thinlto-function-summary.ll') diff --git a/test/Bitcode/thinlto-function-summary.ll b/test/Bitcode/thinlto-function-summary.ll index f3fb6c4f0105..e42c55c1c2eb 100644 --- a/test/Bitcode/thinlto-function-summary.ll +++ b/test/Bitcode/thinlto-function-summary.ll @@ -1,4 +1,5 @@ -; RUN: opt -name-anon-functions -module-summary < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=BC +; RUN: opt -name-anon-globals -module-summary < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=BC +; RUN: opt -passes=name-anon-globals -module-summary < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=BC ; Check for summary block/records. ; Check the value ids in the summary entries against the @@ -9,15 +10,19 @@ ; BC-NEXT: record string = 'anon. +; BC-NEXT: record string = 'variadic' ; BC-NEXT: record string = 'foo' ; BC-NEXT: record string = 'bar' -; BC-NEXT: record string = 'f' +; BC-NEXT: record string = 'f' +; BC-NEXT: record string = 'anon. + -; RUN: opt -name-anon-functions -module-summary < %s | llvm-dis | FileCheck %s +; RUN: opt -name-anon-globals -module-summary < %s | llvm-dis | FileCheck %s ; Check that this round-trips correctly. ; ModuleID = '' @@ -41,7 +46,7 @@ entry: } ; FIXME: Anonymous function and alias not currently in summary until -; follow on fixes to rename anonymous functions and emit alias summary +; follow on fixes to rename anonymous globals and emit alias summary ; entries are committed. ; Check an anonymous function as well, since in that case only the alias ; ends up in the value symbol table and having a summary. @@ -56,3 +61,7 @@ entry: return: ; preds = %entry ret void } + +define i32 @variadic(...) { + ret i32 42 +} -- cgit v1.3