[llvm-commits] [llvm] r139578 - /llvm/trunk/test/Transforms/LoopSimplify/single-backedge.ll
Andrew Trick
atrick at apple.com
Mon Sep 12 20:17:25 PDT 2011
Author: atrick
Date: Mon Sep 12 22:17:25 2011
New Revision: 139578
URL: http://llvm.org/viewvc/llvm-project?rev=139578&view=rev
Log:
Generalize test case to handle multiple indvars modes.
Modified:
llvm/trunk/test/Transforms/LoopSimplify/single-backedge.ll
Modified: llvm/trunk/test/Transforms/LoopSimplify/single-backedge.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopSimplify/single-backedge.ll?rev=139578&r1=139577&r2=139578&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopSimplify/single-backedge.ll (original)
+++ llvm/trunk/test/Transforms/LoopSimplify/single-backedge.ll Mon Sep 12 22:17:25 2011
@@ -1,8 +1,11 @@
-; The loop canonicalization pass should guarantee that there is one backedge
-; for all loops. This allows the -indvars pass to recognize the %IV
+; The loop canonicalization pass should guarantee that there is one backedge
+; for all loops. This allows the -indvars pass to recognize the %IV
; induction variable in this testcase.
-; RUN: opt < %s -indvars -S | grep indvar
+; RUN: opt < %s -indvars -S | FileCheck %s
+; CHECK: Loop.backedge:
+; CHECK-NOT: br
+; CHECK: br label %Loop
define i32 @test(i1 %C) {
; <label>:0
More information about the llvm-commits
mailing list