[llvm] Remove obsolete assert (PR #112392)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 15 09:22:51 PDT 2024


https://github.com/Sterling-Augustine created https://github.com/llvm/llvm-project/pull/112392

None

>From a5d9828a91e82b219a5c6c8644ec1fe6104201b6 Mon Sep 17 00:00:00 2001
From: Sterling Augustine <saugustine at google.com>
Date: Tue, 15 Oct 2024 09:21:55 -0700
Subject: [PATCH] Remove obsolete assert

---
 .../llvm/Transforms/Vectorize/SandboxVectorizer/SeedCollector.h  | 1 -
 1 file changed, 1 deletion(-)

diff --git a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SeedCollector.h b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SeedCollector.h
index 626fcb5afcb90b..6bad38b637d2a8 100644
--- a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SeedCollector.h
+++ b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SeedCollector.h
@@ -236,7 +236,6 @@ class SeedContainer {
     }
     // Iterators iterate over the bundles
     iterator &operator++() {
-      assert(VecIdx >= 0 && "Already at end!");
       ++VecIdx;
       if (VecIdx >= Vec->size()) {
         assert(MapIt != Map->end() && "Already at end!");



More information about the llvm-commits mailing list