1 ; RUN: opt < %s -basicaa -dse -S | FileCheck %s
3 @Table = global [535 x i32] zeroinitializer, align 4
5 ; The store in for.inc block should NOT be removed by non-local DSE.
6 ; CHECK: store i32 64, i32* %arrayidx
13 %i = phi i32 [ 0, %entry ], [ %inc, %for.inc ]
14 %arrayidx = getelementptr inbounds [535 x i32], [535 x i32]* @Table, i32 0, i32 %i
15 store i32 %i, i32* %arrayidx, align 4
16 %cmp1 = icmp slt i32 %i, 64
17 br i1 %cmp1, label %for.inc, label %for.end
20 store i32 64, i32* %arrayidx, align 4
21 %inc = add nsw i32 %i, 1