Mercurial > hg > CbC > CbC_llvm
annotate llvm/test/Transforms/ConstantMerge/2011-01-15-EitherOrder.ll @ 150:1d019706d866
LLVM10
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 15:10:13 +0900 |
parents | |
children | c4bab56944e8 |
rev | line source |
---|---|
150 | 1 ; RUN: opt -constmerge -S < %s | FileCheck %s |
2 ; PR8978 | |
3 | |
4 declare i32 @zed(%struct.foobar*, %struct.foobar*) | |
5 | |
6 %struct.foobar = type { i32 } | |
7 ; CHECK: bar.d | |
8 @bar.d = unnamed_addr constant %struct.foobar zeroinitializer, align 4 | |
9 ; CHECK-NOT: foo.d | |
10 @foo.d = internal constant %struct.foobar zeroinitializer, align 4 | |
11 define i32 @main() nounwind ssp { | |
12 entry: | |
13 ; CHECK: bar.d | |
14 %call2 = tail call i32 @zed(%struct.foobar* @foo.d, %struct.foobar* @bar.d) | |
15 nounwind | |
16 ret i32 0 | |
17 } | |
18 |