From a86343512845c9c1fdbac865fea88aa5fce7142a Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 17 Apr 2019 02:12:23 +0000 Subject: Temporarily Revert "Add basic loop fusion pass." As it's causing some bot failures (and per request from kbarton). This reverts commit r358543/ab70da07286e618016e78247e4a24fcb84077fda. llvm-svn: 358546 --- .../ThinLTOBitcodeWriter/circular-reference.ll | 9 --- .../test/Transforms/ThinLTOBitcodeWriter/comdat.ll | 80 ---------------------- .../ThinLTOBitcodeWriter/filter-alias.ll | 20 ------ .../ThinLTOBitcodeWriter/function-alias.ll | 25 ------- .../test/Transforms/ThinLTOBitcodeWriter/new-pm.ll | 9 --- .../Transforms/ThinLTOBitcodeWriter/no-type-md.ll | 36 ---------- .../Transforms/ThinLTOBitcodeWriter/pr33536.ll | 37 ---------- .../ThinLTOBitcodeWriter/split-internal-typeid.ll | 40 ----------- .../ThinLTOBitcodeWriter/split-internal1.ll | 27 -------- .../ThinLTOBitcodeWriter/split-internal2.ll | 32 --------- .../ThinLTOBitcodeWriter/split-vfunc-internal.ll | 21 ------ .../Transforms/ThinLTOBitcodeWriter/split-vfunc.ll | 79 --------------------- llvm/test/Transforms/ThinLTOBitcodeWriter/split.ll | 44 ------------ .../test/Transforms/ThinLTOBitcodeWriter/symver.ll | 25 ------- .../ThinLTOBitcodeWriter/unsplittable.ll | 35 ---------- .../ThinLTOBitcodeWriter/x86/lit.local.cfg | 3 - .../ThinLTOBitcodeWriter/x86/module-asm.ll | 12 ---- 17 files changed, 534 deletions(-) delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/circular-reference.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/comdat.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/filter-alias.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/function-alias.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/new-pm.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/no-type-md.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/pr33536.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/split-internal-typeid.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/split-internal1.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/split-internal2.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/split-vfunc-internal.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/split-vfunc.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/split.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/symver.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/unsplittable.ll delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/x86/lit.local.cfg delete mode 100644 llvm/test/Transforms/ThinLTOBitcodeWriter/x86/module-asm.ll (limited to 'llvm/test/Transforms/ThinLTOBitcodeWriter') diff --git a/llvm/test/Transforms/ThinLTOBitcodeWriter/circular-reference.ll b/llvm/test/Transforms/ThinLTOBitcodeWriter/circular-reference.ll deleted file mode 100644 index fb239b0a8a2..00000000000 --- a/llvm/test/Transforms/ThinLTOBitcodeWriter/circular-reference.ll +++ /dev/null @@ -1,9 +0,0 @@ -; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s -; RUN: llvm-modextract -b -n 0 -o - %t | llvm-dis | FileCheck --check-prefix=M0 %s -; RUN: llvm-modextract -b -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=M1 %s - -; M0: @g = external constant -; M1: @g = constant -@g = constant i8* bitcast (i8** @g to i8*), !type !0 - -!0 = !{i32 0, !"typeid"} diff --git a/llvm/test/Transforms/ThinLTOBitcodeWriter/comdat.ll b/llvm/test/Transforms/ThinLTOBitcodeWriter/comdat.ll deleted file mode 100644 index a43fa1cf3eb..00000000000 --- a/llvm/test/Transforms/ThinLTOBitcodeWriter/comdat.ll +++ /dev/null @@ -1,80 +0,0 @@ -; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s -; RUN: llvm-modextract -n 0 -o - %t | llvm-dis | FileCheck --check-prefix=THIN %s -; RUN: llvm-modextract -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=MERGED %s - -target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128" -target triple = "x86_64-pc-windows-msvc19.0.24215" - -; Internal comdat leader with type metadata. All comdat members need to live -; in the merged module, and the comdat needs to be renamed. -; MERGED: ${{"?lwt[^ ]+}} = comdat any -$lwt = comdat any - -; External comdat leader, type metadata on non-leader. All comdat -; members need to live in the merged module, internal members need to -; be renamed. -; MERGED: $nlwt = comdat any -$nlwt = comdat any - -; Comdat with two members without type metadata. All comdat members live in -; the ThinLTO module and no renaming needs to take place. -; THIN: $nt = comdat any -$nt = comdat any - -; MERGED: @lwt_aliasee = private unnamed_addr global -; MERGED-SAME: comdat(${{"?lwt[^ ]+}}) -@lwt_aliasee = private unnamed_addr global [1 x i8*] [i8* null], comdat($lwt), !type !0 - -; MERGED: {{@"?lwt_nl[^ ]+}} = hidden unnamed_addr global -; MERGED-SAME: comdat(${{"?lwt[^ ]+}}) -; THIN: {{@"?lwt_nl[^ ]+}} = external hidden -@lwt_nl = internal unnamed_addr global i32 0, comdat($lwt) - -; MERGED: @nlwt_aliasee = private unnamed_addr global -; MERGED-SAME: comdat($nlwt) -@nlwt_aliasee = private unnamed_addr global [1 x i8*] [i8* null], comdat($nlwt), !type !0 - -; MERGED: @nlwt = unnamed_addr global -; MERGED-SAME: comdat -; THIN: @nlwt = external -@nlwt = unnamed_addr global i32 0, comdat - -; THIN: @nt = internal -; THIN-SAME: comdat -@nt = internal unnamed_addr global [1 x i8*] [i8* null], comdat - -; THIN: @nt_nl = internal -; THIN-SAME: comdat($nt) -@nt_nl = internal unnamed_addr global i32 0, comdat($nt) - -; MERGED: {{@"?lwt[^ ]+}} = hidden unnamed_addr alias -; THIN: {{@"?lwt[^ ]+}} = external hidden -@lwt = internal unnamed_addr alias [1 x i8*], [1 x i8*]* @lwt_aliasee - -; MERGED: {{@"?nlwt_nl[^ ]+}} = hidden unnamed_addr alias -; THIN: {{@"?nlwt_nl[^ ]+}} = external hidden -@nlwt_nl = internal unnamed_addr alias [1 x i8*], [1 x i8*]* @nlwt_aliasee - -; The functions below exist just to make sure the globals are used. -define i8* @lwt_fun() { - %1 = load i32, i32* @lwt_nl - %2 = getelementptr inbounds [1 x i8*], [1 x i8*]* @lwt, i32 0, i32 %1 - %3 = load i8*, i8** %2 - ret i8* %3 -} - -define i8* @nlwt_fun() { - %1 = load i32, i32* @nlwt - %2 = getelementptr inbounds [1 x i8*], [1 x i8*]* @nlwt_nl, i32 0, i32 %1 - %3 = load i8*, i8** %2 - ret i8* %3 -} - -define i8* @nt_fun() { - %1 = load i32, i32* @nt_nl - %2 = getelementptr inbounds [1 x i8*], [1 x i8*]* @nt, i32 0, i32 %1 - %3 = load i8*, i8** %2 - ret i8* %3 -} - -!0 = !{i64 8, !"?AVA@@"} diff --git a/llvm/test/Transforms/ThinLTOBitcodeWriter/filter-alias.ll b/llvm/test/Transforms/ThinLTOBitcodeWriter/filter-alias.ll deleted file mode 100644 index 200d494f247..00000000000 --- a/llvm/test/Transforms/ThinLTOBitcodeWriter/filter-alias.ll +++ /dev/null @@ -1,20 +0,0 @@ -; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s -; RUN: llvm-modextract -n 0 -o - %t | llvm-dis | FileCheck --check-prefix=CHECK0 %s -; RUN: llvm-modextract -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=CHECK1 %s -; CHECK0-NOT: @{{.*}}anon{{.*}}= -; CHECK0: @al = external global i8* -; CHECK0-NOT: @{{.*}}anon{{.*}}= -; CHECK1: @al = unnamed_addr alias i8*, - -target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128" -target triple = "x86_64-pc-windows-msvc19.0.24215" - -$al = comdat any - -@anon = private unnamed_addr constant { [1 x i8*] } { [1 x i8*] [i8* null] }, comdat($al), !type !0 - -@al = external unnamed_addr alias i8*, getelementptr inbounds ({ [1 x i8*] }, { [1 x i8*] }* @anon, i32 0, i32 0, i32 1) - -@foo = global i32 1 - -!0 = !{i64 8, !"?AVA@@"} diff --git a/llvm/test/Transforms/ThinLTOBitcodeWriter/function-alias.ll b/llvm/test/Transforms/ThinLTOBitcodeWriter/function-alias.ll deleted file mode 100644 index a1dbd963296..00000000000 --- a/llvm/test/Transforms/ThinLTOBitcodeWriter/function-alias.ll +++ /dev/null @@ -1,25 +0,0 @@ -; RUN: opt -thinlto-bc -thinlto-split-lto-unit -o %t %s -; RUN: llvm-modextract -n 1 -o - %t | llvm-dis | FileCheck --check-prefix=CHECK1 %s - -target triple = "x86_64-unknown-linux-gnu" - -define hidden void @Func() !type !0 { - ret void -} - -; CHECK1: !aliases = !{![[A1:[0-9]+]], ![[A2:[0-9]+]], ![[A3:[0-9]+]]} - -; CHECK1: ![[A1]] = !{!"Alias", !"Func", i8 1, i8 0} -; CHECK1: ![[A2]] = !{!"Hidden_Alias", !"Func", i8 1, i8 0} -; CHECK1: ![[A3]] = !{!"Weak_Alias", !"Func", i8 0, i8 1} -@Alias = hidden alias void (), void ()* @Func -@Hidden_Alias = hidden alias void (), void ()* @Func -@Weak_Alias = weak alias void (), void ()* @Func - -@Variable = global i32 0 - -; Only generate summary alias information for aliases to functions -; CHECK1-NOT: Variable_Alias -@Variable_Alias = alias i32, i32* @Variable - -!0 = !{i64 0, !"_ZTSFvvE"} diff --git a/llvm/test/Transforms/ThinLTOBitcodeWriter/new-pm.ll b/llvm/test/Transforms/ThinLTOBitcodeWriter/new-pm.ll deleted file mode 100644 index 03facd072b3..00000000000 --- a/llvm/test/Transforms/ThinLTOBitcodeWriter/new-pm.ll +++ /dev/null @@ -1,9 +0,0 @@ -; RUN: opt -passes='no-op-module' -debug-pass-manager -thinlto-bc -thin-link-bitcode-file=%t2 -o %t %s 2>&1 | FileCheck %s --check-prefix=DEBUG_PM -; RUN: llvm-bcanalyzer -dump %t2 | FileCheck %s --check-prefix=BITCODE - -; DEBUG_PM: ThinLTOBitcodeWriterPass -; BITCODE: Foo - -define void @Foo() { - ret void -} diff --git a/llvm/test/Transforms/ThinLTOBitcodeWriter/no-type-md.ll b/llvm/test/Transforms/ThinLTOBitcodeWriter/no-type-md.ll deleted file mode 100644 index 9b78ed8021c..00000000000 --- a/llvm/test/Transforms/ThinLTOBitcodeWriter/no-type-md.ll +++ /dev/null @@ -1,36 +0,0 @@ -; Generate bitcode files with summary, as well as minimized bitcode without -; the debug metadata for the thin link. -; RUN: opt -thinlto-bc -thin-link-bitcode-file=%t.thinlink.bc -o %t.bc %s -; RUN: llvm-dis -o - %t.bc | FileCheck %s -; RUN: llvm-bcanalyzer -dump %t.bc | FileCheck --check-prefix=BCA %s - -; Make sure the combined index files produced by both the normal and the -; thin link bitcode files are identical -; RUN: llvm-lto -thinlto -o %t3 %t.bc -; Copy the minimized bitcode to the regular bitcode path so the module -; paths in the index are the same (save and restore the regular bitcode -; for use again further down). -; RUN: mv %t.bc %t.bc.sv -; RUN: cp %t.thinlink.bc %t.bc -; RUN: llvm-lto -thinlto -o %t4 %t.bc -; RUN: mv %t.bc.sv %t.bc -; RUN: diff %t3.thinlto.bc %t4.thinlto.bc - -; Try again using -thinlto-action to produce combined index -; RUN: rm -f %t3.thinlto.bc %t4.thinlto.bc -; RUN: llvm-lto -thinlto-action=thinlink -o %t3.thinlto.bc %t.bc -; Copy the minimized bitcode to the regular bitcode path so the module -; paths in the index are the same. -; RUN: cp %t.thinlink.bc %t.bc -; RUN: llvm-lto -thinlto-action=thinlink -o %t4.thinlto.bc %t.bc -; RUN: diff %t3.thinlto.bc %t4.thinlto.bc - -; BCA: &1 | FileCheck --check-prefix=ERROR %s -; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=M0 %s -; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=M1 %s -; RUN: llvm-bcanalyzer -dump %t0 | FileCheck --check-prefix=BCA0 %s -; RUN: llvm-bcanalyzer -dump %t1 | FileCheck --check-prefix=BCA1 %s - -; ERROR: llvm-modextract: error: module index out of range; bitcode file contains 2 module(s) - -; BCA0: &1 | FileCheck --check-prefix=ERROR %s -; RUN: llvm-dis -o - %t0 | FileCheck --check-prefix=M0 %s -; RUN: llvm-dis -o - %t1 | FileCheck --check-prefix=M1 %s -; RUN: llvm-bcanalyzer -dump %t0 | FileCheck --check-prefix=BCA0 %s -; RUN: llvm-bcanalyzer -dump %t1 | FileCheck --check-prefix=BCA1 %s - -; ERROR: llvm-modextract: error: module index out of range; bitcode file contains 2 module(s) - -; BCA0: