2017-05-26 05:26:32 +08:00
|
|
|
# RUN: llc -o /dev/null %s -mtriple=arm-eabi -mcpu=cortex-r52 -run-pass machine-scheduler -enable-misched -debug-only=machine-scheduler -misched-topdown 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=TOPDOWN
|
|
|
|
# RUN: llc -o /dev/null %s -mtriple=arm-eabi -mcpu=cortex-r52 -run-pass machine-scheduler -enable-misched -debug-only=machine-scheduler -misched-bottomup 2>&1 | FileCheck %s --check-prefix=CHECK --check-prefix=BOTTOMUP
|
2017-03-28 04:46:37 +08:00
|
|
|
# REQUIRES: asserts
|
|
|
|
--- |
|
|
|
|
; ModuleID = 'foo.ll'
|
|
|
|
source_filename = "foo.ll"
|
|
|
|
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
|
|
|
|
target triple = "arm---eabi"
|
|
|
|
|
|
|
|
%struct.__neon_int8x8x4_t = type { <8 x i8>, <8 x i8>, <8 x i8>, <8 x i8> }
|
|
|
|
; Function Attrs: nounwind
|
|
|
|
define <8 x i8> @foo(i8* %A) {
|
|
|
|
%tmp1 = call %struct.__neon_int8x8x4_t @llvm.arm.neon.vld4.v8i8.p0i8(i8* %A, i32 8)
|
|
|
|
%tmp2 = extractvalue %struct.__neon_int8x8x4_t %tmp1, 0
|
|
|
|
%tmp3 = extractvalue %struct.__neon_int8x8x4_t %tmp1, 1
|
|
|
|
%tmp4 = add <8 x i8> %tmp2, %tmp3
|
|
|
|
ret <8 x i8> %tmp4
|
|
|
|
}
|
|
|
|
declare %struct.__neon_int8x8x4_t @llvm.arm.neon.vld4.v8i8.p0i8(i8*, i32)
|
|
|
|
|
|
|
|
# CHECK: ********** MI Scheduling **********
|
|
|
|
# CHECK: ScheduleDAGMILive::schedule starting
|
2018-03-15 05:52:13 +08:00
|
|
|
# CHECK: SU(1): %1:qqpr = VLD4d8Pseudo %0:gpr, 8, 14, $noreg :: (load 32 from %ir.A, align 8)
|
2017-03-28 04:46:37 +08:00
|
|
|
# CHECK: Latency : 8
|
|
|
|
# CHECK: Single Issue : true;
|
2018-02-01 06:04:26 +08:00
|
|
|
# CHECK: SU(2): %4:dpr = VADDv8i8 %1.dsub_0:qqpr, %1.dsub_1:qqpr, 14, $noreg
|
2017-03-28 04:46:37 +08:00
|
|
|
# CHECK: Latency : 5
|
|
|
|
# CHECK: Single Issue : false;
|
2018-02-01 06:04:26 +08:00
|
|
|
# CHECK: SU(3): %5:gpr, %6:gpr = VMOVRRD %4:dpr, 14, $noreg
|
2017-03-28 04:46:37 +08:00
|
|
|
# CHECK: Latency : 4
|
|
|
|
# CHECK: Single Issue : false;
|
|
|
|
|
2017-12-07 18:40:31 +08:00
|
|
|
# TOPDOWN: Scheduling SU(1) %1:qqpr = VLD4d8Pseudo
|
2017-03-28 04:46:37 +08:00
|
|
|
# TOPDOWN: Bump cycle to end group
|
2017-12-07 18:40:31 +08:00
|
|
|
# TOPDOWN: Scheduling SU(2) %4:dpr = VADDv8i8
|
2017-03-28 04:46:37 +08:00
|
|
|
|
2017-12-07 18:40:31 +08:00
|
|
|
# BOTTOMUP: Scheduling SU(2) %4:dpr = VADDv8i8
|
|
|
|
# BOTTOMUP: Scheduling SU(1) %1:qqpr = VLD4d8Pseudo
|
2017-03-28 04:46:37 +08:00
|
|
|
# BOTTOMUP: Bump cycle to begin group
|
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: foo
|
[Alignment] Use llvm::Align in MachineFunction and TargetLowering - fixes mir parsing
Summary:
This catches malformed mir files which specify alignment as log2 instead of pow2.
See https://reviews.llvm.org/D65945 for reference,
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790
Reviewers: courbet
Subscribers: MatzeB, qcolombet, dschuff, arsenm, sdardis, nemanjai, jvesely, nhaehnle, hiraditya, kbarton, asb, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, atanasyan, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, jsji, Petar.Avramovic, asbirlea, s.egerton, pzheng, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67433
llvm-svn: 371608
2019-09-11 19:16:48 +08:00
|
|
|
alignment: 4
|
2017-03-28 04:46:37 +08:00
|
|
|
exposesReturnsTwice: false
|
|
|
|
legalized: false
|
|
|
|
regBankSelected: false
|
|
|
|
selected: false
|
|
|
|
tracksRegLiveness: true
|
|
|
|
registers:
|
|
|
|
- { id: 0, class: gpr }
|
|
|
|
- { id: 1, class: qqpr }
|
|
|
|
- { id: 2, class: dpr }
|
|
|
|
- { id: 3, class: dpr }
|
|
|
|
- { id: 4, class: dpr }
|
|
|
|
- { id: 5, class: gpr }
|
|
|
|
- { id: 6, class: gpr }
|
|
|
|
liveins:
|
2018-02-01 06:04:26 +08:00
|
|
|
- { reg: '$r0', virtual-reg: '%0' }
|
2017-03-28 04:46:37 +08:00
|
|
|
frameInfo:
|
|
|
|
isFrameAddressTaken: false
|
|
|
|
isReturnAddressTaken: false
|
|
|
|
hasStackMap: false
|
|
|
|
hasPatchPoint: false
|
|
|
|
stackSize: 0
|
|
|
|
offsetAdjustment: 0
|
|
|
|
maxAlignment: 0
|
|
|
|
adjustsStack: false
|
|
|
|
hasCalls: false
|
|
|
|
maxCallFrameSize: 0
|
|
|
|
hasOpaqueSPAdjustment: false
|
|
|
|
hasVAStart: false
|
|
|
|
hasMustTailInVarArgFunc: false
|
|
|
|
body: |
|
|
|
|
bb.0 (%ir-block.0):
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $r0
|
2017-03-28 04:46:37 +08:00
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
%0 = COPY $r0
|
|
|
|
%1 = VLD4d8Pseudo %0, 8, 14, $noreg :: (load 32 from %ir.A, align 8)
|
|
|
|
%4 = VADDv8i8 %1.dsub_0, %1.dsub_1, 14, $noreg
|
|
|
|
%5, %6 = VMOVRRD %4, 14, $noreg
|
|
|
|
$r0 = COPY %5
|
|
|
|
$r1 = COPY %6
|
|
|
|
BX_RET 14, $noreg, implicit $r0, implicit killed $r1
|
2017-03-28 04:46:37 +08:00
|
|
|
|
|
|
|
...
|