1; RUN: opt < %s -globalopt -S | FileCheck %s 2 3; The 'X' indices could be larger than 31. Do not SROA the outer 4; indices of this array. 5; CHECK: @mm = {{.*}} [16 x [31 x double]] zeroinitializer 6@mm = internal global [16 x [31 x double]] zeroinitializer, align 32 7 8define void @test(i32 %X) { 9 %P = getelementptr [16 x [31 x double]], [16 x [31 x double]]* @mm, i32 0, i32 0, i32 %X 10 store double 1.0, double* %P 11 ret void 12} 13 14define double @get(i32 %X) { 15 %P = getelementptr [16 x [31 x double]], [16 x [31 x double]]* @mm, i32 0, i32 0, i32 %X 16 %V = load double, double* %P 17 ret double %V 18} 19