1 ; RUN: opt %loadNPMPolly "-passes=scop(print<polly-simplify>)" -disable-output -aa-pipeline=basic-aa < %s | FileCheck -match-full-lines %s
3 ; Do not remove overwrites when the value is read before.
5 ; for (int j = 0; j < n; j += 1) {
15 define void @overwritten(i32 %n, ptr noalias nonnull %A, ptr noalias nonnull %B) {
20 %j = phi i32 [0, %entry], [%j.inc, %inc]
21 %j.cmp = icmp slt i32 %j, %n
22 br i1 %j.cmp, label %body, label %exit
25 store double 21.0, ptr %A
26 %val = load double, ptr %A
27 store double 42.0, ptr %A
31 store double %val, ptr %B
35 %j.inc = add nuw nsw i32 %j, 1
46 ; CHECK: SCoP could not be simplified