[llvm] [SandboxVectorizer][NFC] Remove erroneous expensive check assert (PR #111425)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 7 12:35:29 PDT 2024
https://github.com/Sterling-Augustine created https://github.com/llvm/llvm-project/pull/111425
None
>From d52b26a976e0f167074cfcbe5f43f160053f0c22 Mon Sep 17 00:00:00 2001
From: Sterling Augustine <saugustine at google.com>
Date: Mon, 7 Oct 2024 12:33:52 -0700
Subject: [PATCH] [SandboxVectorizer][NFC] Remove erroneous expensive check
assert
---
.../Transforms/Vectorize/SandboxVectorizer/SeedCollector.h | 5 -----
1 file changed, 5 deletions(-)
diff --git a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SeedCollector.h b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SeedCollector.h
index 06fb41ac58db2c..460e3f675fa797 100644
--- a/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SeedCollector.h
+++ b/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/SeedCollector.h
@@ -50,11 +50,6 @@ class SeedBundle {
/// by symbol, symbol-offset, and program order (which depends if scheduling
/// bottom-up or top-down).
void insertAt(iterator Pos, Instruction *I) {
-#ifdef EXPENSIVE_CHECKS
- for (auto Itr : Seeds) {
- assert(*Itr != I && "Attempt to insert an instruction twice.");
- }
-#endif
Seeds.insert(Pos, I);
NumUnusedBits += Utils::getNumBits(I);
}
More information about the llvm-commits
mailing list