brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1021 B · 443edb7 Raw
41 lines · plain
1; REQUIRES: asserts2 3; RUN: opt < %s -passes='print<regions>' 2>&1 | FileCheck %s4; RUN: opt < %s -passes='print<regions>' -stats 2>&1 | FileCheck -check-prefix=STAT %s5; RUN: opt -passes='print<regions>' -print-region-style=bb < %s 2>&1 | FileCheck -check-prefix=BBIT %s6; RUN: opt -passes='print<regions>' -print-region-style=rn < %s 2>&1 | FileCheck -check-prefix=RNIT %s7 8define internal fastcc zeroext i8 @handle_compress() nounwind {9entry:10  br label %outer11 12outer:13  br label %body14 15body:16  br i1 1, label %body.i, label %if.end17 18body.i:19  br i1 1, label %end, label %if.end20 21if.end:22  br label %if.then6423 24if.then64:25  br label %outer26 27end:28  ret i8 129}30; CHECK-NOT: =>31; CHECK: [0] entry => <Function Return>32; CHECK-NEXT: [1] outer => end33; STAT: 2 region - The # of regions34; STAT: 1 region - The # of simple regions35 36; BBIT: entry, outer, body, body.i, end, if.end, if.then64,37; BBIT: outer, body, body.i, if.end, if.then64,38 39; RNIT: entry, outer => end, end,40; RNIT: outer, body, body.i, if.end, if.then64,41