1 ; RUN: opt %loadPolly -polly-print-simplify -disable-output < %s | FileCheck %s -match-full-lines
2 ; RUN: opt %loadNPMPolly "-passes=scop(print<polly-simplify>)" -disable-output -aa-pipeline=basic-aa < %s | FileCheck %s -match-full-lines
4 ; Do not remove redundant stores in the middle of region statements.
5 ; The store in region_true could be removed, but in practice we do try to
6 ; determine the relative ordering of block in region statements.
8 ; for (int j = 0; j < n; j += 1) {
16 define void @notredundant_region(i32 %n, ptr noalias nonnull %A) {
21 %j = phi i32 [0, %entry], [%j.inc, %inc]
22 %j.cmp = icmp slt i32 %j, %n
23 br i1 %j.cmp, label %region_entry, label %exit
27 %val = load double, ptr %A
28 %cmp = fcmp oeq double %val, 0.0
29 br i1 %cmp, label %region_true, label %region_false
32 store double %val, ptr %A
36 store double 0.0, ptr %A
44 %j.inc = add nuw nsw i32 %j, 1
55 ; CHECK: SCoP could not be simplified