mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
02ccf5b7ea
This patch implements the Cortex-A57 scheduling model. The main code is in ARMScheduleA57.td, ARMScheduleA57WriteRes.td. Small changes in cpp,.h files to support required scheduling predicates. Scheduling model implemented according to: http://infocenter.arm.com/help/topic/com.arm.doc.uan0015b/Cortex_A57_Software_Optimization_Guide_external.pdf. Patch by : Andrew Zhogin (submitted on his behalf, as requested). Rewiewed by: Renato Golin, Diana Picus, Javed Absar, Kristof Beyls. Differential Revision: https://reviews.llvm.org/D28152 llvm-svn: 304530
30 lines
911 B
LLVM
30 lines
911 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
|
|
; N=3 STMIB should have latency 2cyc
|
|
|
|
; CHECK: ********** MI Scheduling **********
|
|
; We need second, post-ra scheduling to have STM instruction combined from single-stores
|
|
; CHECK: ********** MI Scheduling **********
|
|
; CHECK: schedule starting
|
|
; CHECK: STMIB
|
|
; CHECK: rdefs left
|
|
; CHECK-NEXT: Latency : 2
|
|
|
|
define i32 @test_stm(i32 %v0, i32 %v1, i32* %addr) {
|
|
|
|
%addr.1 = getelementptr i32, i32* %addr, i32 1
|
|
store i32 %v0, i32* %addr.1
|
|
|
|
%addr.2 = getelementptr i32, i32* %addr, i32 2
|
|
store i32 %v1, i32* %addr.2
|
|
|
|
%addr.3 = getelementptr i32, i32* %addr, i32 3
|
|
%val = ptrtoint i32* %addr to i32
|
|
store i32 %val, i32* %addr.3
|
|
|
|
%rv = add i32 %v0, %v1
|
|
|
|
ret i32 %rv
|
|
}
|
|
|