brintos

brintos / llvm-project-archived public Read only

0
0
Text · 894 B · 2f14bfb Raw
24 lines · plain
1; REQUIRES: asserts2; RUN: llc < %s -mtriple=arm64-linux-gnu -mcpu=cortex-a57 -enable-misched=0 -debug-only=machine-scheduler -o - 2>&1 > /dev/null | FileCheck %s3 4 5@G1 = common dso_local global [100 x i32] zeroinitializer, align 46@G2 = common dso_local global [100 x i32] zeroinitializer, align 47 8; Check that no scheduling dependencies are created between the paired loads and the store during post-RA MI scheduling.9;10; CHECK-LABEL: # Machine code for function foo:11; CHECK: SU(2):   renamable $w{{[0-9]+}}, renamable $w{{[0-9]+}} = LDPWi12; CHECK: Successors:13; CHECK-NOT: ch SU(4)14; CHECK: SU(3)15; CHECK: SU(4):   STRWui $wzr, renamable $x{{[0-9]+}}16define dso_local i32 @foo() {17entry:18  %0 = load i32, ptr @G2, align 419  %1 = load i32, ptr getelementptr inbounds ([100 x i32], ptr @G2, i64 0, i64 1), align 420  store i32 0, ptr @G1, align 421  %add = add nsw i32 %1, %022  ret i32 %add23}24