repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
In some rare cases, the register allocator can spill registers but end up not utilizi...
[llvm/msp430.git]
/
test
/
Transforms
/
MergeFunc
/
fold-weak.ll
blob
d98fde0228fb366812fd953147adb227a2219d07
1
; RUN: llvm-as < %s | opt -mergefunc | llvm-dis | grep {alias weak} | count 2
2
3
define weak i32 @sum(i32 %x, i32 %y) {
4
%sum = add i32 %x, %y
5
ret i32 %sum
6
}
7
8
define weak i32 @add(i32 %x, i32 %y) {
9
%sum = add i32 %x, %y
10
ret i32 %sum
11
}