1 ; RUN: opt %loadNPMPolly "-passes=scop(print<polly-simplify>)" -disable-output -aa-pipeline=basic-aa < %s | FileCheck %s -match-full-lines
3 ; Remove redundant store (a store that writes the same value already
6 ; for (int j = 0; j < n; j += 1)
9 define void @func(i32 %n, ptr noalias nonnull %A) {
14 %j = phi i32 [0, %entry], [%j.inc, %inc]
15 %j.cmp = icmp slt i32 %j, %n
16 br i1 %j.cmp, label %body, label %exit
19 %val = load double, ptr %A
20 store double %val, ptr %A
24 %j.inc = add nuw nsw i32 %j, 1
36 ; CHECK: Redundant writes removed: 1
37 ; CHECK: Stmts removed: 1
40 ; CHECK: After accesses {