Skip to content

Commit 83c2755

Browse files
[NFC]Update test case
1 parent 9270328 commit 83c2755

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

llvm/test/ThinLTO/X86/distributed_indexes.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
; RUN: llvm-dis %t1.bc.thinlto.bc -o - | FileCheck %s --check-prefix=DIS
4949
; DIS: aliasee: null
5050

51+
; function-import pass crashed when alias is imported but aliasee doesn't.
52+
; 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
54+
5155
target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
5256

5357
declare void @g(...)

llvm/test/ThinLTO/X86/import_callee_declaration.ll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@
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
6569
;
6670
; MAIN-DIS: [[LIBMOD:\^[0-9]+]] = module: (path: "lib.bc", hash: (0, 0, 0, 0, 0))
6771
; MAIN-DIS: gv: (guid: 2418497564662708935, summaries: (function: (module: [[LIBMOD]], flags: ({{.*}} importType: declaration), insts: 8, {{.*}})))

0 commit comments

Comments
 (0)