-; RUN: llvm-as < %s | opt -analyze -scalar-evolution | grep {61 iterations}
+; RUN: llvm-as < %s | opt -analyze -scalar-evolution \
+; RUN: -scalar-evolution-max-iterations=0 | grep {backedge-taken count is 61}
+; PR2364
define i32 @func_6() nounwind {
entry: