llvm-6502/test/Transforms/LoopIndexSplit/PR3913.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

25 lines
465 B
LLVM

; RUN: opt < %s -loop-index-split -S | not grep "icmp ne"
define i32 @main() {
entry:
br label %header
header:
%r = phi i32 [ 0, %entry ], [ %r3, %skip ]
%i = phi i32 [ 0, %entry ], [ %i1, %skip ]
%cond = icmp eq i32 %i, 99
br i1 %cond, label %body, label %skip
body:
br label %skip
skip:
%r3 = phi i32 [ %r, %header ], [ 3, %body ]
%i1 = add i32 %i, 1
%exitcond = icmp eq i32 %i1, 10
br i1 %exitcond, label %exit, label %header
exit:
ret i32 %r3
}