[llvm] 7b9f5cb - [LV] Extend check lines for pr34681.ll to cover foldable select.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 13 08:45:50 PST 2022
Author: Florian Hahn
Date: 2022-01-13T16:42:47Z
New Revision: 7b9f5cbfa71f56173e7acb028ca28d15635ddfa8
URL: https://github.com/llvm/llvm-project/commit/7b9f5cbfa71f56173e7acb028ca28d15635ddfa8
DIFF: https://github.com/llvm/llvm-project/commit/7b9f5cbfa71f56173e7acb028ca28d15635ddfa8.diff
LOG: [LV] Extend check lines for pr34681.ll to cover foldable select.
Added:
Modified:
llvm/test/Transforms/LoopVectorize/pr34681.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/LoopVectorize/pr34681.ll b/llvm/test/Transforms/LoopVectorize/pr34681.ll
index 9952336b276b1..4eaf4d0845555 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
More information about the llvm-commits
mailing list