brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 1db7d5d Raw
52 lines · plain
1; RUN: llc -mtriple=x86_64-- < %s | FileCheck %s2; rdar://90810943 4; LSR shouldn't create lots of redundant address computations.5 6%0 = type { i32, [3 x i32] }7%1 = type { ptr, i32, i32, [3 x i32], ptr, ptr, ptr }8 9@pgm = external hidden unnamed_addr global [5 x %0], align 3210@isa = external hidden unnamed_addr constant [13 x %1], align 3211 12define void @main_bb.i() nounwind {13; CHECK: main_bb.i:14; CHECK-NOT: ret15; CHECK: addq $-16,16; CHECK-NOT: ret17; CHECK: ret18 19bb:20  br label %bb3821 22bb38:                                             ; preds = %bb200, %bb23  %tmp39 = phi i64 [ %tmp201, %bb200 ], [ 0, %bb ]24  %tmp40 = sub i64 0, %tmp3925  %tmp47 = getelementptr [5 x %0], ptr @pgm, i64 0, i64 %tmp40, i32 026  %tmp34 = load i32, ptr %tmp47, align 1627  %tmp203 = icmp slt i32 %tmp34, 1228  br i1 %tmp203, label %bb215, label %bb20029 30bb200:                                            ; preds = %bb3831  %tmp201 = add i64 %tmp39, 132  br label %bb3833 34bb215:                                            ; preds = %bb3835  %tmp50 = getelementptr [5 x %0], ptr @pgm, i64 0, i64 %tmp40, i32 1, i64 236  %tmp49 = getelementptr [5 x %0], ptr @pgm, i64 0, i64 %tmp40, i32 1, i64 137  %tmp48 = getelementptr [5 x %0], ptr @pgm, i64 0, i64 %tmp40, i32 1, i64 038  %tmp216 = add nsw i32 %tmp34, 139  store i32 %tmp216, ptr %tmp47, align 1640  %tmp217 = sext i32 %tmp216 to i6441  %tmp218 = getelementptr inbounds [13 x %1], ptr @isa, i64 0, i64 %tmp217, i32 3, i64 042  %tmp219 = load i32, ptr %tmp218, align 843  store i32 %tmp219, ptr %tmp48, align 444  %tmp220 = getelementptr inbounds [13 x %1], ptr @isa, i64 0, i64 %tmp217, i32 3, i64 145  %tmp221 = load i32, ptr %tmp220, align 446  store i32 %tmp221, ptr %tmp49, align 447  %tmp222 = getelementptr inbounds [13 x %1], ptr @isa, i64 0, i64 %tmp217, i32 3, i64 248  %tmp223 = load i32, ptr %tmp222, align 849  store i32 %tmp223, ptr %tmp50, align 450  ret void51}52