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 LDM instruction combined from single-loads
6 ; CHECK: ********** MI Scheduling **********
9 ; CHECK-NEXT: Latency : 3
12 ; CHECK-SAME: Latency=3
14 ; CHECK-SAME: Latency=0
16 define i32 @foo(i32* %a) nounwind optsize {
18 %b = getelementptr i32, i32* %a, i32 1
19 %c = getelementptr i32, i32* %a, i32 2
20 %0 = load i32, i32* %a, align 4
21 %1 = load i32, i32* %b, align 4
22 %2 = load i32, i32* %c, align 4
24 %mul1 = mul i32 %0, %1
25 %mul2 = mul i32 %mul1, %2