repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
pass machinemoduleinfo down into getSymbolForDwarfGlobalReference,
[llvm/avr.git]
/
test
/
Transforms
/
InstCombine
/
cast-propagate.ll
blob
95c040b140d20c63769b8e42abc7a52ed1180ba0
1
; RUN: opt < %s -instcombine -mem2reg -S | \
2
; RUN: not grep load
3
4
define i32 @test1(i32* %P) {
5
%A = alloca i32 ; <i32*> [#uses=2]
6
store i32 123, i32* %A
7
; Cast the result of the load not the source
8
%Q = bitcast i32* %A to i32* ; <i32*> [#uses=1]
9
%V = load i32* %Q ; <i32> [#uses=1]
10
ret i32 %V
11
}