From 7965c57a0f05dda14b3159810eaff2d44d26ca31 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 19 Aug 2009 23:19:36 +0000 Subject: [PATCH] Loosen up the regex for this test so that it doesn't implicitly depend on TargetData information. llvm-svn: 79491 --- test/Analysis/ScalarEvolution/max-trip-count.ll | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/Analysis/ScalarEvolution/max-trip-count.ll b/test/Analysis/ScalarEvolution/max-trip-count.ll index 05674149da8..8791bb5fcbe 100644 --- a/test/Analysis/ScalarEvolution/max-trip-count.ll +++ b/test/Analysis/ScalarEvolution/max-trip-count.ll @@ -1,5 +1,7 @@ ; RUN: llvm-as < %s | opt -analyze -scalar-evolution -disable-output \ -; RUN: | grep {\{%d,+,4\}} +; RUN: | grep {\{%d,+,\[^\{\}\]\*\}} + +; ScalarEvolution should be able to understand the loop and eliminate the casts. define void @foo(i32* nocapture %d, i32 %n) nounwind { entry: