1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py 2# RUN: llc -mtriple aarch64-apple-ios -run-pass regallocfast -o - %s | FileCheck %s 3# This test used to crash the fast register alloc. 4# Basically, when a basic block has liveins, the fast regalloc 5# was deferencing the begin iterator of this block. However, 6# when this block is empty and it will just crashed! 7--- 8name: crashing 9tracksRegLiveness: true 10body: | 11 ; CHECK-LABEL: name: crashing 12 ; CHECK: bb.0: 13 ; CHECK: successors: %bb.1(0x80000000) 14 ; CHECK: liveins: $x0, $x1 15 ; CHECK: bb.1: 16 ; CHECK: renamable $w0 = MOVi32imm -1 17 ; CHECK: RET_ReallyLR implicit killed $w0 18 bb.1: 19 liveins: $x0, $x1 20 21 bb.2: 22 %0:gpr32 = MOVi32imm -1 23 $w0 = COPY %0 24 RET_ReallyLR implicit $w0 25 26... 27