forked from OSchip/llvm-project
31 lines
987 B
LLVM
31 lines
987 B
LLVM
; REQUIRES: asserts
|
|
; 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
|
|
|
|
; CHECK: ********** MI Scheduling **********
|
|
; We need second, post-ra scheduling to have VLDM instruction combined from single-loads
|
|
; CHECK: ********** MI Scheduling **********
|
|
; CHECK: VLDMDIA
|
|
; CHECK: rdefs left
|
|
; CHECK-NEXT: Latency : 6
|
|
; CHECK: Successors:
|
|
; CHECK: Data
|
|
; CHECK-SAME: Latency=5
|
|
; CHECK-NEXT: Data
|
|
; CHECK-SAME: Latency=0
|
|
; CHECK-NEXT: Data
|
|
; CHECK-SAME: Latency=0
|
|
|
|
define double @foo(double* %a) nounwind optsize {
|
|
entry:
|
|
%b = getelementptr double, double* %a, i32 1
|
|
%c = getelementptr double, double* %a, i32 2
|
|
%0 = load double, double* %a, align 4
|
|
%1 = load double, double* %b, align 4
|
|
%2 = load double, double* %c, align 4
|
|
|
|
%mul1 = fmul double %0, %1
|
|
%mul2 = fmul double %mul1, %2
|
|
ret double %mul2
|
|
}
|
|
|