[LoopInterchange] Hoist isComputableLoopNest() in the control flow (#124247)
[llvm-project.git] / llvm / test / Transforms / NameAnonGlobals / rename.ll
blob4a2e47c67299d6815e3b2b45d41800fd6cbe6794
1 ; RUN: opt -S -passes=name-anon-globals %s | FileCheck %s
2 ; RUN: opt -passes='thinlto-pre-link<O0>,require<module-summary>' -o %t.bc < %s
5 ; foo contribute to the unique hash for the module
6 define void @foo() {
7     ret void
10 ; bar is internal, and does not contribute to the unique hash for the module
11 define internal void @bar() {
12     ret void
15 ; CHECK: @anon.acbd18db4cc2f85cedef654fccc4a4d8.3 = global i8 0
16 ; CHECK: @anon.acbd18db4cc2f85cedef654fccc4a4d8.4 = alias i8, ptr @anon.acbd18db4cc2f85cedef654fccc4a4d8.3
17 ; CHECK: define void @anon.acbd18db4cc2f85cedef654fccc4a4d8.0()
18 ; CHECK: define void @anon.acbd18db4cc2f85cedef654fccc4a4d8.1()
19 ; CHECK: define void @anon.acbd18db4cc2f85cedef654fccc4a4d8.2()
21 define void @0() {
22     ret void
24 define void @1() {
25     ret void
27 define void @2() {
28     ret void
32 @3 = global i8 0
34 @4 = alias i8, ptr @3