From 1ea0243bd03c93ed29061f9d03393c647aa3d6c0 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Tue, 24 May 2011 00:17:53 +0000 Subject: [PATCH] Test case for r130799 - indvars: Added canExpandBackEdgeTakenCount. llvm-svn: 131939 --- .../IndVarSimplify/phi-uses-value-multiple-times.ll | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/llvm/test/Transforms/IndVarSimplify/phi-uses-value-multiple-times.ll b/llvm/test/Transforms/IndVarSimplify/phi-uses-value-multiple-times.ll index 34d432b4ee16..52c9e5c3ffc9 100644 --- a/llvm/test/Transforms/IndVarSimplify/phi-uses-value-multiple-times.ll +++ b/llvm/test/Transforms/IndVarSimplify/phi-uses-value-multiple-times.ll @@ -1,4 +1,8 @@ -; RUN: opt < %s -indvars +; RUN: opt < %s -indvars -disable-output -stats -info-output-file - | FileCheck %s +; Check that IndVarSimplify is not creating unnecessary canonical IVs +; that will never be used. +; CHECK-NOT: indvars + target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" @ue = external global i64