1 ; RUN: opt %loadPolly %defaultOpts -polly-codegen -enable-polly-vector -dce -S %s | FileCheck %s
2 ; ModuleID = 'pr21734_2.s'
3 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"
4 target triple = "x86_64-unknown-linux-gnu"
6 %struct.A = type { [4 x i32] }
8 define void @_Z3foo1ARS_(i64 %a1.coerce0, i64 %a1.coerce1, %struct.A* %a2) uwtable {
10 %a1 = alloca { i64, i64 }, align 8
11 %tmpcast = bitcast { i64, i64 }* %a1 to %struct.A*
12 %tmp = getelementptr { i64, i64 }* %a1, i64 0, i32 0
13 store i64 %a1.coerce0, i64* %tmp, align 8
14 %tmp1 = getelementptr { i64, i64 }* %a1, i64 0, i32 1
15 store i64 %a1.coerce1, i64* %tmp1, align 8
16 %call = call i32* @_ZN1AixEi(%struct.A* %tmpcast, i32 1)
17 %arrayidx = getelementptr inbounds i32* %call, i64 1
18 store i32 0, i32* %arrayidx, align 4
21 for.cond: ; preds = %for.inc, %entry
22 %indvar = phi i64 [ %indvar.next, %for.inc ], [ 0, %entry ]
23 %arrayidx3 = getelementptr %struct.A* %a2, i64 0, i32 0, i64 %indvar
24 %exitcond = icmp ne i64 %indvar, 4
25 br i1 %exitcond, label %for.body, label %for.end
27 for.body: ; preds = %for.cond
28 store i32 0, i32* %arrayidx3, align 4
31 for.inc: ; preds = %for.body
32 %indvar.next = add i64 %indvar, 1
35 for.end: ; preds = %for.cond
39 define linkonce_odr i32* @_ZN1AixEi(%struct.A* %this, i32 %i) nounwind uwtable align 2 {
41 %idxprom = sext i32 %i to i64
42 %arrayidx = getelementptr inbounds %struct.A* %this, i64 0, i32 0, i64 %idxprom