28 lines · plain
1# RUN: llc -run-pass=livevars,twoaddressinstruction -mtriple=x86_64-- -o - %s | FileCheck %s2---3name: foo4tracksRegLiveness: true5body: |6 bb.0:7 liveins: $edi8 9 %0:gr32 = COPY killed $edi10 %1:gr32 = COPY killed %011 %4:gr32 = XOR32ri %1, 1, implicit-def dead $eflags12 DBG_VALUE %413 %5:gr32 = COPY %414 PUSH32r killed %1, implicit-def $esp, implicit $esp15 $eax = COPY killed %516 RET64 implicit killed $eax17 18...19 20# Verify that the DBG_VALUE instruction does not inhibit21# TwoAddressInstructionPass::rescheduleMIBelowKill optimization22 23# CHECK: PUSH32r %1, implicit-def $esp, implicit $esp24# CHECK-NEXT: %2:gr32 = COPY killed %125# CHECK-NEXT: %2:gr32 = XOR32ri %2, 1, implicit-def dead $eflags26# CHECK-NEXT: DBG_VALUE %227# CHECK-NEXT: %3:gr32 = COPY killed %228