[llvm] r228995 - Testcase for r228988.

Michael Zolotukhin mzolotukhin at apple.com
Thu Feb 12 16:35:45 PST 2015


Author: mzolotukhin
Date: Thu Feb 12 18:35:45 2015
New Revision: 228995

URL: http://llvm.org/viewvc/llvm-project?rev=228995&view=rev
Log:
Testcase for r228988.

Modified:
    llvm/trunk/test/Transforms/LoopUnroll/full-unroll-heuristics.ll

Modified: llvm/trunk/test/Transforms/LoopUnroll/full-unroll-heuristics.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopUnroll/full-unroll-heuristics.ll?rev=228995&r1=228994&r2=228995&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopUnroll/full-unroll-heuristics.ll (original)
+++ llvm/trunk/test/Transforms/LoopUnroll/full-unroll-heuristics.ll Thu Feb 12 18:35:45 2015
@@ -32,6 +32,9 @@
 
 ; Also, we should unroll if the 'unroll-threshold' is big enough:
 ; TEST4-NOT: %array_const_idx = getelementptr inbounds [9 x i32]* @known_constant, i64 0, i64 %iv
+
+; And check that we don't crash when we're not allowed to do any analysis.
+; RUN: opt < %s -loop-unroll -unroll-max-iteration-count-to-analyze=0 -disable-output
 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
 
 @known_constant = internal unnamed_addr constant [9 x i32] [i32 0, i32 -1, i32 0, i32 -1, i32 5, i32 -1, i32 0, i32 -1, i32 0], align 16





More information about the llvm-commits mailing list