From 7b9f5cbfa71f56173e7acb028ca28d15635ddfa8 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Thu, 13 Jan 2022 15:11:14 +0000 Subject: [PATCH] [LV] Extend check lines for pr34681.ll to cover foldable select. --- llvm/test/Transforms/LoopVectorize/pr34681.ll | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/llvm/test/Transforms/LoopVectorize/pr34681.ll b/llvm/test/Transforms/LoopVectorize/pr34681.ll index 9952336b276b..4eaf4d084555 100644 --- a/llvm/test/Transforms/LoopVectorize/pr34681.ll +++ b/llvm/test/Transforms/LoopVectorize/pr34681.ll @@ -80,7 +80,10 @@ for.end: ; CHECK-LABEL: @foo2 -; CHECK: for.body.lr.ph +; CHECK: vector.scevcheck: +; CHECK-NEXT: add nsw i32 %conv, -1 +; CHECK-NEXT: [[NEG:%.+]] = sub i32 0, %conv +; CHECK-NEXT: = select i1 false, i32 [[NEG]], i32 %conv ; CHECK-NOT: %ident.check = icmp ne i16 %N, 1 ; CHECK-NOT: %{{[0-9]+}} = or i1 false, %ident.check ; CHECK-NOT: br i1 %{{[0-9]+}}, label %scalar.ph, label %vector.ph