1 ; RUN: opt %loadPolly %defaultOpts -polly-codegen -enable-polly-vector -dce -S %s | FileCheck %s
2 ; Obtained from C source as:
3 ; clang -S -emit-llvm -O0 nodump-pr23073.c
4 ; opt -correlated-propagation -mem2reg -instcombine -loop-simplify -indvars -instnamer nodump-pr23073.s > nodump-pr23073.ll
6 ; ModuleID = 'nodump-pr23073.s'
7 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
8 target triple = "x86_64-unknown-linux-gnu"
10 %struct.anon = type { [2 x i32], [2 x i32] }
12 @d = external global %struct.anon
14 define void @C() nounwind uwtable {
18 for.cond: ; preds = %for.inc, %entry
19 %indvar = phi i64 [ %indvar.next, %for.inc ], [ 0, %entry ]
20 %arrayidx4 = getelementptr %struct.anon* @d, i64 0, i32 1, i64 %indvar
21 %arrayidx = getelementptr %struct.anon* @d, i64 0, i32 0, i64 %indvar
22 %exitcond = icmp ne i64 %indvar, 2
23 br i1 %exitcond, label %for.body, label %for.end
25 for.body: ; preds = %for.cond
26 store i32 0, i32* %arrayidx, align 4
27 store i32 0, i32* %arrayidx4, align 4
30 for.inc: ; preds = %for.body
31 %indvar.next = add i64 %indvar, 1
34 for.end: ; preds = %for.cond