mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
f2f6ce65b7
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
22 lines
513 B
LLVM
22 lines
513 B
LLVM
; RUN: opt < %s -loop-reduce -S \
|
|
; RUN: | grep {icmp eq i2 %lsr.iv.next, %xmp4344}
|
|
|
|
; Don't reverse the iteration if the rhs of the compare is defined
|
|
; inside the loop.
|
|
|
|
define void @Fill_Buffer() nounwind {
|
|
entry:
|
|
br label %bb8
|
|
|
|
bb8:
|
|
%indvar34 = phi i32 [ 0, %entry ], [ %indvar.next35, %bb8 ]
|
|
%indvar3451 = trunc i32 %indvar34 to i2
|
|
%xmp4344 = xor i2 0, -1
|
|
%xmp104 = icmp eq i2 %indvar3451, %xmp4344
|
|
%indvar.next35 = add i32 %indvar34, 1
|
|
br i1 %xmp104, label %bb10, label %bb8
|
|
|
|
bb10:
|
|
unreachable
|
|
}
|