2 ; RUN: opt -passes=slsr -S -debug-counter=slsr-counter=1 < %s | FileCheck %s
\r
4 ; Test that, with debug counters on, we will skip the first slsr opportunity.
\r
6 define void @stride_is_2s(i32 %b, i32 %s) {
\r
7 ; CHECK-LABEL: @stride_is_2s(
\r
8 ; CHECK-NEXT: %s2 = shl i32 %s, 1
\r
9 ; CHECK-NEXT: %t1 = add i32 %b, %s2
\r
10 ; CHECK-NEXT: call void @foo(i32 %t1)
\r
11 ; CHECK-NEXT: %s4 = shl i32 %s, 2
\r
12 ; CHECK-NEXT: %t2 = add i32 %b, %s4
\r
13 ; CHECK-NEXT: call void @foo(i32 %t2)
\r
14 ; CHECK-NEXT: ret void
\r
17 %t1 = add i32 %b, %s2
\r
18 call void @foo(i32 %t1)
\r
20 %t2 = add i32 %b, %s4
\r
21 call void @foo(i32 %t2)
\r
25 declare void @foo(i32)
\r