summaryrefslogtreecommitdiffstats
path: root/llvm/test/Analysis
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-19 23:19:36 +0000
committerDan Gohman <gohman@apple.com>2009-08-19 23:19:36 +0000
commit463d3407e24fb0bcb2568430255100a253a4754a (patch)
treedd38ff7380d4e83076c191a7289dcc5a0e71c9be /llvm/test/Analysis
parent6e32e5cf0c13d8be64dc2b6166b883c9649dbc3a (diff)
downloadbcm5719-llvm-463d3407e24fb0bcb2568430255100a253a4754a.tar.gz
bcm5719-llvm-463d3407e24fb0bcb2568430255100a253a4754a.zip
Loosen up the regex for this test so that it doesn't implicitly
depend on TargetData information. llvm-svn: 79491
Diffstat (limited to 'llvm/test/Analysis')
-rw-r--r--llvm/test/Analysis/ScalarEvolution/max-trip-count.ll4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/test/Analysis/ScalarEvolution/max-trip-count.ll b/llvm/test/Analysis/ScalarEvolution/max-trip-count.ll
index 05674149da8..8791bb5fcbe 100644
--- a/llvm/test/Analysis/ScalarEvolution/max-trip-count.ll
+++ b/llvm/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\}<bb>}
+; RUN: | grep {\{%d,+,\[^\{\}\]\*\}<bb>}
+
+; ScalarEvolution should be able to understand the loop and eliminate the casts.
define void @foo(i32* nocapture %d, i32 %n) nounwind {
entry:
OpenPOWER on IntegriCloud