[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / polly / test / CodeGen / reduction_simple_binary.ll
blobc7c5501bb7ed467ae766e17bfba0934f723f6455
1 ; RUN: opt %loadPolly -polly-print-ast -polly-ast-detect-parallel -disable-output < %s | FileCheck %s
3 ; CHECK: pragma simd reduction
5 ; int prod;
6 ; void f() {
7 ;   for (int i = 0; i < 100; i++)
8 ;     prod *= i;
9 ; }
11 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-n32-S64"
13 @prod = common global i32 0, align 4
15 define void @f() {
16 entry:
17   br label %for.cond
19 for.cond:                                         ; preds = %for.inc, %entry
20   %i1.0 = phi i32 [ 0, %entry ], [ %inc, %for.inc ]
21   %exitcond = icmp ne i32 %i1.0, 100
22   br i1 %exitcond, label %for.body, label %for.end
24 for.body:                                         ; preds = %for.cond
25   %add2 = add nsw i32 %i1.0, 3
26   %tmp1 = load i32, ptr @prod, align 4
27   %mul3 = mul nsw i32 %tmp1, %add2
28   store i32 %mul3, ptr @prod, align 4
29   br label %for.inc
31 for.inc:                                          ; preds = %for.body
32   %inc = add nsw i32 %i1.0, 1
33   br label %for.cond
35 for.end:                                          ; preds = %for.cond
36   ret void