1 ; RUN: opt %loadPolly -polly-scops -analyze -polly-ignore-func=f.*,g.* < %s | FileCheck %s
3 ; Check that the flag `-polly-ignore-func` works with regexes.
6 ; CHECK-NEXT: Region: %for.cond---%for.end
11 ; for (int i = 0; i <= 100; i++)
15 ; for (int i = 0; i <= 100; i++)
19 ; for (int i = 0; i <= 100; i++)
23 ; for (int i = 0; i <= 100; i++)
26 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-n32-S64"
28 define void @f1(i32* %sum) {
30 br label %entry.split1
32 entry.split1: ; preds = %entry
35 entry.split: ; preds = %entry.split1
38 for.cond: ; preds = %for.cond, %entry.split
39 %i1.0 = phi i32 [ 0, %entry.split ], [ %inc, %for.cond ]
40 %sum.reload = load i32, i32* %sum
41 %mul = mul nsw i32 %i1.0, 3
42 %add = add nsw i32 %sum.reload, %mul
43 %inc = add nsw i32 %i1.0, 1
44 store i32 %add, i32* %sum
45 %cmp = icmp slt i32 %i1.0, 100
46 br i1 %cmp, label %for.cond, label %for.end
48 for.end: ; preds = %for.cond
53 define void @f2(i32* %sum) {
55 br label %entry.split1
57 entry.split1: ; preds = %entry
60 entry.split: ; preds = %entry.split1
63 for.cond: ; preds = %for.cond, %entry.split
64 %i1.0 = phi i32 [ 0, %entry.split ], [ %inc, %for.cond ]
65 %sum.reload = load i32, i32* %sum
66 %mul = mul nsw i32 %i1.0, 3
67 %add = add nsw i32 %sum.reload, %mul
68 %inc = add nsw i32 %i1.0, 1
69 store i32 %add, i32* %sum
70 %cmp = icmp slt i32 %i1.0, 100
71 br i1 %cmp, label %for.cond, label %for.end
73 for.end: ; preds = %for.cond
77 define void @g1(i32* %sum) {
79 br label %entry.split1
81 entry.split1: ; preds = %entry
84 entry.split: ; preds = %entry.split1
87 for.cond: ; preds = %for.cond, %entry.split
88 %i1.0 = phi i32 [ 0, %entry.split ], [ %inc, %for.cond ]
89 %sum.reload = load i32, i32* %sum
90 %mul = mul nsw i32 %i1.0, 3
91 %add = add nsw i32 %sum.reload, %mul
92 %inc = add nsw i32 %i1.0, 1
93 store i32 %add, i32* %sum
94 %cmp = icmp slt i32 %i1.0, 100
95 br i1 %cmp, label %for.cond, label %for.end
97 for.end: ; preds = %for.cond
101 define void @h(i32* %sum) {
103 br label %entry.split1
105 entry.split1: ; preds = %entry
106 br label %entry.split
108 entry.split: ; preds = %entry.split1
111 for.cond: ; preds = %for.cond, %entry.split
112 %i1.0 = phi i32 [ 0, %entry.split ], [ %inc, %for.cond ]
113 %sum.reload = load i32, i32* %sum
114 %mul = mul nsw i32 %i1.0, 3
115 %add = add nsw i32 %sum.reload, %mul
116 %inc = add nsw i32 %i1.0, 1
117 store i32 %add, i32* %sum
118 %cmp = icmp slt i32 %i1.0, 100
119 br i1 %cmp, label %for.cond, label %for.end
121 for.end: ; preds = %for.cond