21 lines · plain
1# RUN: llc -o - -mtriple=x86_64-- -run-pass=regallocfast %s | FileCheck %s2# RUN: llc -o - -mtriple=x86_64-- -passes=regallocfast %s | FileCheck %s3# Fast regalloc used to not collect physical register definitions4# before walking and assigning the virtual definition.5# Therefore it was possible for a virtual definition to end up6# using the same register as a later (in terms of operand list) physical7# register.8# Check this does not happen.9#10# PR4179011---12name: instruction_with_1virtreg_1physreg_defs13tracksRegLiveness: true14body: |15 bb.0:16 ; CHECK-NOT: $rax = KILL implicit-def dead $rax17 %0:gr64 = KILL implicit-def dead $rax18 KILL killed %019 RET 020...21