llvm-6502/test/Transforms/GVNPRE/2007-06-12-PhiTranslate.ll
Dan Gohman f2f6ce65b7 Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
input filename so that opt doesn't print the input filename in the
output so that grep lines in the tests don't unintentionally match
strings in the input filename.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
2009-09-11 18:01:28 +00:00

20 lines
562 B
LLVM

; RUN: opt < %s -gvnpre | llvm-dis
define void @strength_test5(i32* %data) {
entry:
br i1 false, label %cond_next16.preheader, label %cond_true
cond_true: ; preds = %entry
%tmp12 = icmp sgt i32 0, 0 ; <i1> [#uses=1]
br i1 %tmp12, label %return, label %cond_next16.preheader
cond_next16.preheader: ; preds = %cond_true, %entry
%i.01.1.ph = phi i32 [ 1, %entry ], [ 1, %cond_true ] ; <i32> [#uses=1]
%i.01.1 = add i32 0, %i.01.1.ph ; <i32> [#uses=0]
%indvar.next = add i32 0, 1 ; <i32> [#uses=0]
ret void
return: ; preds = %cond_true
ret void
}