Skip to content

Commit c76968d

Browse files
committed
[test][NPM] Fix already-vectorized.ll under NPM
The NPM runs SpeculateAroundPHIs which breaks critical edges, causing a branch we check for to not directly jump back to the same block.
1 parent edd0cb1 commit c76968d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/test/Transforms/LoopVectorize/X86/already-vectorized.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; RUN: opt < %s -disable-loop-unrolling -debug-only=loop-vectorize -passes='default<O3>' -S 2>&1 | FileCheck %s
12
; RUN: opt < %s -disable-loop-unrolling -debug-only=loop-vectorize -O3 -S 2>&1 | FileCheck %s
23
; REQUIRES: asserts
34
; We want to make sure that we don't even try to vectorize loops again
@@ -32,7 +33,7 @@ for.body: ; preds = %for.body, %entry
3233
; CHECK: vector.body:
3334
; CHECK: br {{.*}} label %vector.body, !llvm.loop [[vect:![0-9]+]]
3435
; CHECK: for.body:
35-
; CHECK: br {{.*}} label %for.body, !llvm.loop [[scalar:![0-9]+]]
36+
; CHECK: br {{.*}} label %for.body{{.*}}, !llvm.loop [[scalar:![0-9]+]]
3637

3738
for.end: ; preds = %for.body
3839
ret i32 %add

0 commit comments

Comments
 (0)