1 ; RUN: opt %loadPolly -polly-import-jscop -polly-import-jscop-postfix=transformed -polly-simplify -analyze < %s | FileCheck %s -match-full-lines
3 ; Remove redundant store (a store that writes the same value already
4 ; at the destination) in a region.
6 define void @redundant_region(i32 %n, double* noalias nonnull %A) {
11 %j = phi i32 [0, %entry], [%j.inc, %inc]
12 %j.cmp = icmp slt i32 %j, %n
13 br i1 %j.cmp, label %region_entry, label %exit
17 %val = load double, double* %A
18 %cmp = fcmp oeq double %val, 0.0
19 br i1 %cmp, label %region_true, label %region_exit
28 store double %val, double* %A
33 %j.inc = add nuw nsw i32 %j, 1
45 ; CHECK: Redundant writes removed: 2
48 ; CHECK: After accesses {