From 0fc19e222b5b0a86987ab058e0b34bc7014b56b3 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 28 Apr 2023 14:37:29 +0200 Subject: [PATCH] [SCEV] Use SmallDenseMap in SCEVRewriteVisitor (NFC) --- llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h b/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h index 0a1c900..91848a9 100644 --- a/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h +++ b/llvm/include/llvm/Analysis/ScalarEvolutionExpressions.h @@ -752,7 +752,7 @@ protected: // a SCEV is referenced by multiple SCEVs. Without memoization, this // visit algorithm would have exponential time complexity in the worst // case, causing the compiler to hang on certain tests. - DenseMap RewriteResults; + SmallDenseMap RewriteResults; public: SCEVRewriteVisitor(ScalarEvolution &SE) : SE(SE) {} -- 2.7.4