brintos

brintos / llvm-project-archived public Read only

0
0
Text · 789 B · 0bf047d Raw
26 lines · plain
1; RUN: opt -S -passes='loop(indvars,loop-idiom),verify,loop(loop-simplifycfg,loop-idiom)' -simplifycfg-require-and-preserve-domtree=1 < %s | FileCheck %s2 3target triple = "x86_64-unknown-linux-gnu"4 5; CHECK-LABEL: @f1(i1 %arg)6; CHECK-NEXT: entry:7define void @f1(i1 %arg) {8entry:9  br label %lbl110 11lbl1:                                             ; preds = %if.end, %entry12  br label %for13 14for:                                              ; preds = %if.end, %lbl115  br label %lor.end16 17lor.end:                                          ; preds = %for18  br i1 %arg, label %for.end, label %if.end19 20if.end:                                           ; preds = %lor.end21  br i1 %arg, label %lbl1, label %for22 23for.end:                                          ; preds = %lor.end24  ret void25}26