llvm.org GIT mirror llvm / release_21 test / Transforms / LICM / 2003-02-28-PromoteDifferentType.ll
release_21

Tree @release_21 (Download .tar.gz)

2003-02-28-PromoteDifferentType.ll @release_21raw · history · blame

; Test that hoisting is disabled for pointers of different types...
;
; RUN: llvm-upgrade < %s | llvm-as | opt -licm

void %test(int* %P) {
	br label %Loop
Loop:
	store int 5, int* %P
	%P2 = cast int* %P to sbyte*
	store sbyte 4, sbyte* %P2
	br bool true, label %Loop, label %Out
Out:
	ret void
}