1; RUN: opt %loadPolly -basic-aa -polly-codegen -polly-vectorizer=polly -dce -S < %s | FileCheck %s 2target 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" 3 4@A = common global [1024 x float] zeroinitializer, align 16 5@B = common global [1024 x float] zeroinitializer, align 16 6 7define void @simple_vec_large_width() nounwind { 8; <label>:0 9 br label %1 10 11; <label>:1 ; preds = %4, %0 12 %indvar = phi i64 [ %indvar.next, %4 ], [ 0, %0 ] 13 %scevgep = getelementptr [1024 x float], [1024 x float]* @B, i64 0, i64 %indvar 14 %scevgep1 = getelementptr [1024 x float], [1024 x float]* @A, i64 0, i64 %indvar 15 %exitcond = icmp ne i64 %indvar, 15 16 br i1 %exitcond, label %2, label %5 17 18; <label>:2 ; preds = %1 19 %3 = load float, float* %scevgep1, align 4 20 store float %3, float* %scevgep, align 4 21 br label %4 22 23; <label>:4 ; preds = %2 24 %indvar.next = add i64 %indvar, 1 25 br label %1 26 27; <label>:5 ; preds = %1 28 ret void 29} 30 31define i32 @main() nounwind { 32 call void @simple_vec_large_width() 33 %1 = load float, float* getelementptr inbounds ([1024 x float], [1024 x float]* @A, i64 0, i64 42), align 8 34 %2 = fptosi float %1 to i32 35 ret i32 %2 36} 37 38; CHECK: [[VEC1:%[a-zA-Z0-9_]+_full]] = load <15 x float>, <15 x float>* 39; CHECK: store <15 x float> [[VEC1]] 40