[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / polly / test / ScopInfo / reduction_simple_w_iv.ll
blobb6c3229d08d5c4534f7a3d5b2626eb6accd4f70b
1 ; RUN: opt %loadPolly -polly-print-scops -disable-output < %s | FileCheck %s
3 ; CHECK: Reduction Type: +
5 ; void f(int* sum) {
6 ;   for (int i = 0; i <= 100; i++)
7 ;     sum += i * 3;
8 ; }
9 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-n32-S64"
11 define void @f(ptr %sum) {
12 entry:
13   br label %for.cond
15 for.cond:                                         ; preds = %for.cond, %entr
16   %i1.0 = phi i32 [ 0, %entry ], [ %inc, %for.cond ]
17   %sum.reload = load i32, ptr %sum
18   %mul = mul nsw i32 %i1.0, 3
19   %add = add nsw i32 %sum.reload, %mul
20   %inc = add nsw i32 %i1.0, 1
21   store i32 %add, ptr %sum
22   %cmp = icmp slt i32 %i1.0, 100
23   br i1 %cmp, label %for.cond, label %for.end
25 for.end:                                          ; preds = %for.cond
26   ret void