[llvm-commits] [llvm] r79491 - /llvm/trunk/test/Analysis/ScalarEvolution/max-trip-count.ll

Dan Gohman gohman at apple.com
Wed Aug 19 16:19:36 PDT 2009


Author: djg
Date: Wed Aug 19 18:19:36 2009
New Revision: 79491

URL: http://llvm.org/viewvc/llvm-project?rev=79491&view=rev
Log:
Loosen up the regex for this test so that it doesn't implicitly
depend on TargetData information.

Modified:
    llvm/trunk/test/Analysis/ScalarEvolution/max-trip-count.ll

Modified: llvm/trunk/test/Analysis/ScalarEvolution/max-trip-count.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/ScalarEvolution/max-trip-count.ll?rev=79491&r1=79490&r2=79491&view=diff

==============================================================================
--- llvm/trunk/test/Analysis/ScalarEvolution/max-trip-count.ll (original)
+++ llvm/trunk/test/Analysis/ScalarEvolution/max-trip-count.ll Wed Aug 19 18:19:36 2009
@@ -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:





More information about the llvm-commits mailing list