repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bump version to 19.1.0-rc3
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
MergeFunc
/
merge-unnamed-addr.ll
blob
c1f023fa3d3840d04dc229f6f44f592ef4d5052d
1
; RUN: opt -S -passes=mergefunc < %s | FileCheck %s
2
3
; CHECK-NOT: @b
4
5
@x = constant { ptr, ptr } { ptr @a, ptr @b }
6
; CHECK: { ptr @a, ptr @a }
7
8
define internal i32 @a(i32 %a) unnamed_addr {
9
%b = xor i32 %a, 0
10
%c = xor i32 %b, 0
11
ret i32 %c
12
}
13
14
define internal i32 @b(i32 %a) unnamed_addr {
15
%b = xor i32 %a, 0
16
%c = xor i32 %b, 0
17
ret i32 %c
18
}