1 ; RUN: opt %loadPolly -polly-simplify -analyze < %s | FileCheck %s -match-full-lines
3 ; Do not remove dependencies of a phi node within a region statement (%phi).
5 define void @func(i32 %n, double* noalias nonnull %A, double %alpha) {
10 %j = phi i32 [0, %entry], [%j.inc, %inc]
11 %j.cmp = icmp slt i32 %j, %n
12 br i1 %j.cmp, label %body, label %exit
15 %val = fadd double 21.0, 21.0
16 br label %region_entry
20 %region.cmp = fcmp ueq double %alpha, 0.0
21 br i1 %region.cmp, label %region_true, label %region_exit
24 br i1 true, label %region_verytrue, label %region_mostlytrue
27 br label %region_mostlytrue
30 %phi = phi double [%val, %region_true], [0.0, %region_verytrue]
31 store double %phi, double* %A
39 %j.inc = add nuw nsw i32 %j, 1
50 ; CHECK: SCoP could not be simplified