]> granicus.if.org Git - llvm/commitdiff
[LLE] Don't hard-code the name of the preheader in test
authorAdam Nemet <anemet@apple.com>
Fri, 17 Jun 2016 09:13:15 +0000 (09:13 +0000)
committerAdam Nemet <anemet@apple.com>
Fri, 17 Jun 2016 09:13:15 +0000 (09:13 +0000)
Turns out a didn't get this right because symbolic stride versioning
changes the name.  Relax the matching.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@272992 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/LoopLoadElim/symbolic-stride.ll

index a0fc7e6749ebac2815e44f42311fbd6c423a0f11..3e33b3fc173d6600a7f4ea1f28bba4d070244ff2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -loop-load-elim -S < %s | FileCheck %s -check-prefix=CHECK
+; RUN: opt -loop-load-elim -S < %s | FileCheck %s
 
 ; Forwarding in the presence of symbolic strides is currently not supported:
 ;
@@ -15,7 +15,7 @@ entry:
   br label %for.body
 
 for.body:                                         ; preds = %for.body, %entry
-; CHECK-NOT: %store_forwarded = phi i32 [ %load_initial, %entry ], [ %add, %for.body ]
+; CHECK-NOT: %store_forwarded = phi i32 [ %load_initial, {{.*}} ], [ %add, %for.body ]
   %indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ]
   %mul = mul i64 %indvars.iv, %stride
   %arrayidx = getelementptr inbounds i32, i32* %A, i64 %mul