llvm.org GIT mirror llvm / 2676f83 test / Transforms / LICM / sink_critical_edge.ll
2676f83

Tree @2676f83 (Download .tar.gz)

sink_critical_edge.ll @2676f83raw · history · blame

; This testcase checks to make sure the sinker does not cause problems with
; critical edges.

; RUN: llvm-as < %s | opt -licm | llvm-dis | %prcontext add 1 | grep Exit

implementation   ; Functions:

void %test() {
Entry:
	br bool false, label %Loop, label %Exit

Loop:
	%X = add int 0, 1
	br bool false, label %Loop, label %Exit

Exit:
	%Y = phi int [ 0, %Entry ], [ %X, %Loop ]
	ret void
}