From b5b289339b51e4f180ffca55e31d62429275ee67 Mon Sep 17 00:00:00 2001 From: Mehdi Amini Date: Wed, 13 Apr 2016 17:20:07 +0000 Subject: Revert "Make aliases explicit in the summary" Inadvertently commited... This reverts commit e618ec93786d99df2ddf280ad2d5e02f5516cecf. From: Mehdi Amini llvm-svn: 266215 --- llvm/test/Bitcode/Inputs/thinlto-alias.ll | 13 -------- llvm/test/Bitcode/thinlto-alias.ll | 45 --------------------------- llvm/test/Bitcode/thinlto-function-summary.ll | 8 ++--- 3 files changed, 4 insertions(+), 62 deletions(-) delete mode 100644 llvm/test/Bitcode/Inputs/thinlto-alias.ll delete mode 100644 llvm/test/Bitcode/thinlto-alias.ll (limited to 'llvm/test/Bitcode') diff --git a/llvm/test/Bitcode/Inputs/thinlto-alias.ll b/llvm/test/Bitcode/Inputs/thinlto-alias.ll deleted file mode 100644 index 5a628e8a3b9..00000000000 --- a/llvm/test/Bitcode/Inputs/thinlto-alias.ll +++ /dev/null @@ -1,13 +0,0 @@ -target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" -target triple = "x86_64-unknown-linux-gnu" - - - -@analias = alias void (...), bitcast (void ()* @aliasee to void (...)*) - -; Function Attrs: nounwind uwtable -define void @aliasee() #0 { -entry: - ret void -} - diff --git a/llvm/test/Bitcode/thinlto-alias.ll b/llvm/test/Bitcode/thinlto-alias.ll deleted file mode 100644 index 7fe6d43ca48..00000000000 --- a/llvm/test/Bitcode/thinlto-alias.ll +++ /dev/null @@ -1,45 +0,0 @@ -; Test to check the callgraph in summary -; RUN: opt -module-summary %s -o %t.o -; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s -; RUN: opt -module-summary %p/Inputs/thinlto-alias.ll -o %t2.o -; RUN: llvm-lto -thinlto -o %t3 %t.o %t2.o -; RUN: llvm-bcanalyzer -dump %t3.thinlto.bc | FileCheck %s --check-prefix=COMBINED - -; CHECK: -; CHECK-NEXT: -; CHECK-NEXT: - -; COMBINED: -; Followed by the alias and aliasee -; COMBINED-NEXT: -; COMBINED-NEXT: -; COMBINED-NEXT: - -; 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" - -; Function Attrs: nounwind uwtable -define i32 @main() { -entry: - call void (...) @analias() - ret i32 0 -} - -declare void @analias(...) diff --git a/llvm/test/Bitcode/thinlto-function-summary.ll b/llvm/test/Bitcode/thinlto-function-summary.ll index b763a847026..04a316585a4 100644 --- a/llvm/test/Bitcode/thinlto-function-summary.ll +++ b/llvm/test/Bitcode/thinlto-function-summary.ll @@ -1,4 +1,4 @@ -; RUN: opt -name-anon-functions -module-summary < %s | llvm-bcanalyzer -dump | FileCheck %s -check-prefix=BC +; RUN: opt -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 @@ -7,13 +7,13 @@ ; BC: record string = 'foo' +; BC-NEXT: record string = 'foo' ; BC-NEXT: record string = 'bar' ; BC-NEXT: record string = 'f' -; RUN: opt -name-anon-functions -module-summary < %s | llvm-dis | FileCheck %s +; RUN: opt -module-summary < %s | llvm-dis | FileCheck %s ; Check that this round-trips correctly. ; ModuleID = '' -- cgit v1.2.3