2 ; RUN: llc < %s -mtriple=armv8r-eabi -mcpu=cortex-a57 -misched-postra -enable-misched -verify-misched -debug-only=machine-scheduler -o - 2>&1 > /dev/null | FileCheck %s
4 ; CHECK: ********** MI Scheduling **********
5 ; We need second, post-ra scheduling to have VLDM instruction combined from single-loads
6 ; CHECK: ********** MI Scheduling **********
9 ; CHECK-NEXT: Latency : 6
12 ; CHECK-SAME: Latency=5
14 ; CHECK-SAME: Latency=0
16 ; CHECK-SAME: Latency=0
18 define double @foo(double* %a) nounwind optsize {
20 %b = getelementptr double, double* %a, i32 1
21 %c = getelementptr double, double* %a, i32 2
22 %0 = load double, double* %a, align 4
23 %1 = load double, double* %b, align 4
24 %2 = load double, double* %c, align 4
26 %mul1 = fmul double %0, %1
27 %mul2 = fmul double %mul1, %2