brintos

brintos / llvm-project-archived public Read only

0
0
Text · 894 B · ff5ac24 Raw
28 lines · plain
1# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2# RUN: llc -mtriple aarch64-apple-ios -run-pass regallocfast -o - %s | FileCheck %s3# RUN: llc -mtriple aarch64-apple-ios -passes=regallocfast -o - %s | FileCheck %s4# This test used to crash the fast register alloc.5# Basically, when a basic block has liveins, the fast regalloc6# was deferencing the begin iterator of this block. However,7# when this block is empty and it will just crashed!8---9name:            crashing10tracksRegLiveness: true11body:             |12  ; CHECK-LABEL: name: crashing13  ; CHECK: bb.0:14  ; CHECK:   successors: %bb.1(0x80000000)15  ; CHECK:   liveins: $x0, $x116  ; CHECK: bb.1:17  ; CHECK:   renamable $w0 = MOVi32imm -118  ; CHECK:   RET_ReallyLR implicit killed $w019  bb.1:20    liveins: $x0, $x121 22  bb.2:23    %0:gpr32 = MOVi32imm -124    $w0 = COPY %025    RET_ReallyLR implicit $w026 27...28