llvm-6502/test/Transforms/LICM/sink_critical_edge.ll
John Criswell cc455dea0f Use the new prcontext script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15427 91177308-0d34-0410-b5e6-96231b3b80d8
2004-08-02 22:31:58 +00:00

20 lines
393 B
LLVM

; 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
}