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