[llvm] [SLPVectorizer] Clear `TreeEntryToStridedPtrInfoMap`. (PR #160544)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 29 09:44:44 PDT 2025
================
@@ -2099,6 +2099,8 @@ class BoUpSLP {
UserIgnoreList = nullptr;
PostponedGathers.clear();
ValueToGatherNodes.clear();
+ TreeEntryToStridedPtrInfoMap.clear();
+ assert(TreeEntryToStridedPtrInfoMap.empty() && "TreeEntryToStridedPtrInfoMap is not cleared");
----------------
alexey-bataev wrote:
Better to have the assertion in buildTree() functions
https://github.com/llvm/llvm-project/pull/160544
More information about the llvm-commits
mailing list