1 ; RUN: opt %loadNPMPolly -polly -O0 -S < %s | FileCheck %s --check-prefix=CHECK --check-prefix=OFF
2 ; RUN: opt %loadNPMPolly -polly -O1 -S < %s | FileCheck %s --check-prefix=CHECK --check-prefix=ON
3 ; RUN: opt %loadNPMPolly -polly -O2 -S < %s | FileCheck %s --check-prefix=CHECK --check-prefix=ON
4 ; RUN: opt %loadNPMPolly -polly -O3 -S < %s | FileCheck %s --check-prefix=CHECK --check-prefix=ON
5 ; RUN: opt %loadNPMPolly -polly -Os -S < %s | FileCheck %s --check-prefix=CHECK --check-prefix=OFF
6 ; RUN: opt %loadNPMPolly -polly -Oz -S < %s | FileCheck %s --check-prefix=CHECK --check-prefix=OFF
8 ; Check that Polly's default pipeline works from detection to code generation
9 ; with either pass manager.
10 ; The presence of the BB polly.stmt.body.lr.ph indicates that the statement
11 ; has been re-generated by Polly. It should not have been merged with other
14 ; for (int j = 0; j < n; j += 1) {
18 define void @func(i32 %n, ptr noalias nonnull %A) {
23 %j = phi i32 [0, %entry], [%j.inc, %inc]
24 %j.cmp = icmp slt i32 %j, %n
25 br i1 %j.cmp, label %body, label %exit
28 store double 42.0, ptr %A
32 %j.inc = add nuw nsw i32 %j, 1
43 ; CHECK-LABEL: define void @func(
44 ; ON: polly.stmt.body.lr.ph:
45 ; ON-NEXT: store double 4.200000e+01, ptr %A, align 8