[llvm] [DAGCombiner] cache negative result from getMergeStoreCandidates() (PR #106949)

Princeton Ferro via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 05:13:34 PDT 2024


================
@@ -191,6 +191,11 @@ namespace {
     // AA - Used for DAG load/store alias analysis.
     AliasAnalysis *AA;
 
+    /// This caches all chains that have already been processed in
+    /// DAGCombiner::getStoreMergeCandidates() and found to have no mergeable
+    /// stores candidates.
+    SmallSet<SDNode *, 32> ChainsWithoutMergeableStores;
----------------
Prince781 wrote:

Updated to use `SmallPtrSet<SDNode *, 4>`.

https://github.com/llvm/llvm-project/pull/106949


More information about the llvm-commits mailing list