Skip to content

Commit 82cc4aa

Browse files
Use -import-all-index to do backend compile and update distributed_indexes.ll. Revert changes to import_callee_declaration.ll
1 parent 83c2755 commit 82cc4aa

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

llvm/test/ThinLTO/X86/distributed_indexes.ll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@
5050

5151
; function-import pass crashed when alias is imported but aliasee doesn't.
5252
; TODO: Import both alias and aliasee, or neither of them.
53-
; RUN: not --crash opt -passes=function-import -summary-file=%t1.bc.thinlto.bc %t1.bc -o /dev/null 2>&1
53+
; RUN: opt -passes=function-import -import-all-index -summary-file=%t1.bc.thinlto.bc %t1.bc -S -o - 2>&1 | FileCheck %s --check-prefix=IR
54+
55+
; Tests that analias definition is imported.
56+
; IR: define available_externally void @analias
5457

5558
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
5659

llvm/test/ThinLTO/X86/import_callee_declaration.ll

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@
6262
; these two GUIDs are declaration.
6363
;
6464
; RUN: llvm-dis main.bc.thinlto.bc -o - | FileCheck %s --check-prefix=MAIN-DIS
65-
66-
; function-import pass crashed when alias is imported but aliasee doesn't.
67-
; TODO: Import both alias and aliasee, or neither of them.
68-
; RUN: not --crash opt -passes=function-import -summary-file=main.bc.thinlto.bc main.bc -o /dev/null 2>&1
6965
;
7066
; MAIN-DIS: [[LIBMOD:\^[0-9]+]] = module: (path: "lib.bc", hash: (0, 0, 0, 0, 0))
7167
; MAIN-DIS: gv: (guid: 2418497564662708935, summaries: (function: (module: [[LIBMOD]], flags: ({{.*}} importType: declaration), insts: 8, {{.*}})))

0 commit comments

Comments
 (0)