| ; RUN: llc < %s -mtriple=armv8r-eabi -mcpu=cortex-a57 -mattr=use-misched -verify-misched -debug-only=machine-scheduler -o - 2>&1 > /dev/null | FileCheck %s |
| ; CHECK: ********** MI Scheduling ********** |
| ; We need second, post-ra scheduling to have LDM instruction combined from single-loads |
| ; CHECK: ********** MI Scheduling ********** |
| ; CHECK-NEXT: Latency : 3 |
| define i32 @foo(ptr %a) nounwind optsize { |
| %b = getelementptr i32, ptr %a, i32 1 |
| %c = getelementptr i32, ptr %a, i32 2 |
| %0 = load i32, ptr %a, align 4 |
| %1 = load i32, ptr %b, align 4 |
| %2 = load i32, ptr %c, align 4 |
| %mul2 = mul i32 %mul1, %2 |