1 ; RUN: opt %loadNPMPolly '-passes=polly-import-jscop,print<polly-simplify>' -polly-import-jscop-postfix=transformed -disable-output < %s | FileCheck %s -match-full-lines
3 ; Remove redundant scalar stores.
5 ; for (int j = 0; j < n; j += 1) {
13 define void @redundant_scalarwrite(i32 %n, ptr noalias nonnull %A) {
18 %j = phi i32 [0, %entry], [%j.inc, %inc]
19 %j.cmp = icmp slt i32 %j, %n
20 br i1 %j.cmp, label %bodyA, label %exit
24 %val = load double, ptr %A
28 store double %val, ptr %A
33 %j.inc = add nuw nsw i32 %j, 1
45 ; CHECK: Redundant writes removed: 2
48 ; CHECK: After accesses {