diff options
author | Jan Wen Voung <jvoung@google.com> | 2013-03-12 16:27:52 +0000 |
---|---|---|
committer | Jan Wen Voung <jvoung@google.com> | 2013-03-12 16:27:52 +0000 |
commit | 6dc3076080a40c29f503cbf1e6ce72ead1e63fb6 (patch) | |
tree | be0438e782d385284467c2921fbc917c15d26a66 /llvm/test/Analysis/RegionInfo/nested_loops.ll | |
parent | 00253592c77666fed0d1d80a54ec674103dec717 (diff) | |
download | bcm5719-llvm-6dc3076080a40c29f503cbf1e6ce72ead1e63fb6.tar.gz bcm5719-llvm-6dc3076080a40c29f503cbf1e6ce72ead1e63fb6.zip |
Revert the test moves from 176733. Use "REQUIRES: asserts" instead.
llvm-svn: 176873
Diffstat (limited to 'llvm/test/Analysis/RegionInfo/nested_loops.ll')
-rw-r--r-- | llvm/test/Analysis/RegionInfo/nested_loops.ll | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/llvm/test/Analysis/RegionInfo/nested_loops.ll b/llvm/test/Analysis/RegionInfo/nested_loops.ll new file mode 100644 index 00000000000..3e73b3a328f --- /dev/null +++ b/llvm/test/Analysis/RegionInfo/nested_loops.ll @@ -0,0 +1,34 @@ +; REQUIRES: asserts +; RUN: opt -regions -analyze < %s | FileCheck %s +; RUN: opt -regions -stats < %s 2>&1 | FileCheck -check-prefix=STAT %s + +; RUN: opt -regions -print-region-style=bb -analyze < %s 2>&1 | FileCheck -check-prefix=BBIT %s +; RUN: opt -regions -print-region-style=rn -analyze < %s 2>&1 | FileCheck -check-prefix=RNIT %s + +define internal fastcc zeroext i8 @handle_compress() nounwind { +entry: + br label %outer + +outer: + br label %body + +body: + br i1 1, label %exit172, label %end + +exit172: + br i1 1, label %end, label %outer + +end: + ret i8 1 +} +; CHECK-NOT: => +; CHECK: [0] entry => <Function Return> +; CHECK-NEXT: [1] outer => end + +; STAT: 2 region - The # of regions + +; BBIT: entry, outer, body, exit172, end, +; BBIT: outer, body, exit172, + +; RNIT: entry, outer => end, end, +; RNIT: outer, body, exit172, |