1 ; RUN: opt %loadPolly %defaultOpts -polly-codegen -enable-polly-vector -dce -S %s | FileCheck %s
2 ; ModuleID = 'pr21734_1.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.B = type { %struct.A }
7 %struct.A = type { [4 x i32] }
9 define void @_Z3fooR1B(%struct.B* %b) uwtable {
13 for.cond: ; preds = %for.inc, %entry
14 %tmp = phi i32 [ 0, %entry ], [ %inc, %for.inc ]
15 %exitcond = icmp ne i32 %tmp, 4
16 br i1 %exitcond, label %for.body, label %for.end
18 for.body: ; preds = %for.cond
19 %call = call i32* @_ZN1BixEi(%struct.B* %b, i32 %tmp)
20 store i32 0, i32* %call, align 4
23 for.inc: ; preds = %for.body
24 %inc = add nsw i32 %tmp, 1
27 for.end: ; preds = %for.cond
31 define linkonce_odr i32* @_ZN1BixEi(%struct.B* %this, i32 %i) uwtable align 2 {
33 %tmp = getelementptr inbounds %struct.B* %this, i64 0, i32 0
34 %call = call i32* @_ZN1AixEi(%struct.A* %tmp, i32 %i)
38 define linkonce_odr i32* @_ZN1AixEi(%struct.A* %this, i32 %i) nounwind uwtable align 2 {
40 %idxprom = sext i32 %i to i64
41 %arrayidx = getelementptr inbounds %struct.A* %this, i64 0, i32 0, i64 %idxprom