repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git]
/
test
/
Transforms
/
LICM
/
2003-02-28-PromoteDifferentType.ll
blob
c759e6eff8e7e9d8b5077ec9a1f8670d3ab74e65
1
; Test that hoisting is disabled for pointers of different types...
2
;
3
; RUN: opt < %s -licm
4
5
define void @test(i32* %P) {
6
br label %Loop
7
Loop: ; preds = %Loop, %0
8
store i32 5, i32* %P
9
%P2 = bitcast i32* %P to i8* ; <i8*> [#uses=1]
10
store i8 4, i8* %P2
11
br i1 true, label %Loop, label %Out
12
Out: ; preds = %Loop
13
ret void
14
}
15