brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.7 KiB · 4277473 Raw
79 lines · plain
1# RUN: llc --verify-machineinstrs -mtriple=aarch64 -o - %s -run-pass pipeliner -aarch64-enable-pipeliner -debug-only=pipeliner 2>&1 | FileCheck %s2# REQUIRES: asserts3 4# An unacceptable loop by pipeliner: No exits5# CHECK: Unable to analyzeLoop, can NOT pipeline Loop6 7--- |8  define dso_local void @func(ptr noalias nocapture noundef writeonly %a, ptr nocapture noundef readonly %b, i32 noundef %n) local_unnamed_addr #0 {9  entry:10    %cmp6 = icmp sgt i32 %n, 011    br i1 %cmp6, label %for.body.preheader, label %for.cond.cleanup12 13  for.body.preheader:                               ; preds = %entry14    %wide.trip.count = zext nneg i32 %n to i6415    br label %for.body16 17  for.cond.cleanup:                                 ; preds = %for.body, %entry18    ret void19 20  for.body:                                         ; preds = %for.body.preheader, %for.body21    %lsr.iv11 = phi i64 [ %wide.trip.count, %for.body.preheader ], [ %lsr.iv.next, %for.body ]22    %lsr.iv9 = phi ptr [ %b, %for.body.preheader ], [ %scevgep10, %for.body ]23    %lsr.iv = phi ptr [ %a, %for.body.preheader ], [ %scevgep, %for.body ]24    %0 = load float, ptr %lsr.iv9, align 425    %add = fadd float %0, 1.000000e+0026    store float %add, ptr %lsr.iv, align 427    %scevgep = getelementptr i8, ptr %lsr.iv, i64 428    %scevgep10 = getelementptr i8, ptr %lsr.iv9, i64 429    %lsr.iv.next = add nsw i64 %lsr.iv11, -130    %exitcond.not = icmp eq i64 %lsr.iv.next, 031    br i1 %exitcond.not, label %for.cond.cleanup, label %for.body32  }33 34...35---36name:            func37tracksRegLiveness: true38liveins:39  - { reg: '$x0', virtual-reg: '%7' }40  - { reg: '$x1', virtual-reg: '%8' }41  - { reg: '$w2', virtual-reg: '%9' }42body:             |43  bb.0.entry:44    successors: %bb.1(0x50000000), %bb.2(0x30000000)45    liveins: $x0, $x1, $w246 47    %9:gpr32common = COPY $w248    %8:gpr64 = COPY $x149    %7:gpr64 = COPY $x050    dead $wzr = SUBSWri %9, 1, 0, implicit-def $nzcv51    Bcc 11, %bb.2, implicit $nzcv52    B %bb.153 54  bb.1.for.body.preheader:55    %11:gpr32 = ORRWrs $wzr, %9, 056    %0:gpr64all = SUBREG_TO_REG 0, killed %11, %subreg.sub_3257    %14:fpr32 = FMOVSi 11258    B %bb.359 60  bb.2.for.cond.cleanup:61    RET_ReallyLR62 63  bb.3.for.body:64    successors: %bb.3(0x7c000000)65 66    %1:gpr64sp = PHI %0, %bb.1, %6, %bb.367    %2:gpr64sp = PHI %8, %bb.1, %5, %bb.368    %3:gpr64sp = PHI %7, %bb.1, %4, %bb.369    early-clobber %12:gpr64sp, %13:fpr32 = LDRSpost %2, 4 :: (load (s32) from %ir.lsr.iv9)70    %15:fpr32 = nofpexcept FADDSrr killed %13, %14, implicit $fpcr71    early-clobber %16:gpr64sp = STRSpost killed %15, %3, 4 :: (store (s32) into %ir.lsr.iv)72    %4:gpr64all = COPY %1673    %5:gpr64all = COPY %1274    %17:gpr64 = nsw SUBSXri %1, 1, 0, implicit-def $nzcv75    %6:gpr64all = COPY %1776    B %bb.377 78...79