Skip to content

Commit 7b9f5cb

Browse files
committed
[LV] Extend check lines for pr34681.ll to cover foldable select.
1 parent 4eaf584 commit 7b9f5cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/test/Transforms/LoopVectorize/pr34681.ll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,10 @@ for.end:
8080

8181

8282
; CHECK-LABEL: @foo2
83-
; CHECK: for.body.lr.ph
83+
; CHECK: vector.scevcheck:
84+
; CHECK-NEXT: add nsw i32 %conv, -1
85+
; CHECK-NEXT: [[NEG:%.+]] = sub i32 0, %conv
86+
; CHECK-NEXT: = select i1 false, i32 [[NEG]], i32 %conv
8487
; CHECK-NOT: %ident.check = icmp ne i16 %N, 1
8588
; CHECK-NOT: %{{[0-9]+}} = or i1 false, %ident.check
8689
; CHECK-NOT: br i1 %{{[0-9]+}}, label %scalar.ph, label %vector.ph

0 commit comments

Comments
 (0)