42 lines · plain
1; RUN: llc < %s | FileCheck %s2; RUN: llc --lanai-nop-delay-filler < %s | \3; RUN: FileCheck %s --check-prefix=NOP4 5; CHECK: bt f6; CHECK-NEXT: or7; NOP: bt f8; NOP-NEXT: nop9 10; ModuleID = 'delay_filler.c'11target datalayout = "E-m:e-p:32:32-i64:64-a:0:32-n32-S64"12target triple = "lanai"13 14; Function Attrs: nounwind15define i32 @g(i32 inreg %n) #0 {16entry:17 %cmp5 = icmp sgt i32 %n, 018 br i1 %cmp5, label %for.body.preheader, label %for.cond.cleanup19 20for.body.preheader: ; preds = %entry21 br label %for.body22 23for.cond.cleanup.loopexit: ; preds = %for.body24 %call.lcssa = phi i32 [ %call, %for.body ]25 br label %for.cond.cleanup26 27for.cond.cleanup: ; preds = %for.cond.cleanup.loopexit, %entry28 %a.0.lcssa = phi i32 [ undef, %entry ], [ %call.lcssa, %for.cond.cleanup.loopexit ]29 ret i32 %a.0.lcssa30 31for.body: ; preds = %for.body.preheader, %for.body32 %i.07 = phi i32 [ %inc, %for.body ], [ 0, %for.body.preheader ]33 %a.06 = phi i32 [ %call, %for.body ], [ undef, %for.body.preheader ]34 %call = tail call i32 @f(i32 inreg %a.06) #235 %inc = add nuw nsw i32 %i.07, 136 %exitcond = icmp eq i32 %inc, %n37 br i1 %exitcond, label %for.cond.cleanup.loopexit, label %for.body38}39 40declare i32 @f(i32 inreg) #141 42