brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · affd2bb Raw
31 lines · plain
1# RUN: llc -o - %s -mtriple=aarch64-- -mattr=+arith-bcc-fusion -run-pass postmisched | FileCheck %s --check-prefixes=CHECK,FUSION2# RUN: llc -o - %s -mtriple=aarch64-- -mattr=+arith-bcc-fusion -passes=postmisched | FileCheck %s --check-prefixes=CHECK,FUSION3# RUN: llc -o - %s -mtriple=aarch64-- -mattr=-arith-bcc-fusion -run-pass postmisched | FileCheck %s --check-prefixes=CHECK,NOFUSION4# RUN: llc -o - %s -mtriple=aarch64-- -mattr=-arith-bcc-fusion -passes=postmisched | FileCheck %s --check-prefixes=CHECK,NOFUSION5# Make sure the last instruction is correctly macro-fused when scheduling6# top-down (post-ra).7---8# CHECK-LABEL: name: fuse_last9# CHECK: $x1 = LDRXui $x0, 010# NOFUSION: $xzr = SUBSXri killed $x2, 0, 0, implicit-def $nzcv11# CHECK: STRXui killed $x0, killed $x1, 012# FUSION: $xzr = SUBSXri killed $x2, 0, 0, implicit-def $nzcv13# CHECK: Bcc 1, %bb.1, implicit killed $nzcv14name: fuse_last15tracksRegLiveness: true16body: |17  bb.0:18    liveins: $x0, $x219 20    $x1 = LDRXui $x0, 021    ; There is latency between these two instructions tempting the scheduler to22    ; move the SUBSXri in between them. However doing so breaks macro fusion.23    STRXui $x0, $x1, 024 25    $xzr = SUBSXri $x2, 0, 0, implicit-def $nzcv26    Bcc 1, %bb.1, implicit killed $nzcv27 28  bb.1:29    RET_ReallyLR implicit undef $x030...31