[llvm] c0a64ec - [MemoryBuiltins] Use SmallDenseMap for visited map (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 15 05:27:07 PDT 2023
Author: Nikita Popov
Date: 2023-09-15T14:26:59+02:00
New Revision: c0a64ec13916e420831cee96b48d3ee938f41a66
URL: https://github.com/llvm/llvm-project/commit/c0a64ec13916e420831cee96b48d3ee938f41a66
DIFF: https://github.com/llvm/llvm-project/commit/c0a64ec13916e420831cee96b48d3ee938f41a66.diff
LOG: [MemoryBuiltins] Use SmallDenseMap for visited map (NFC)
This partially recovers a major compile-time regression introduced
by #65326.
Added:
Modified:
llvm/include/llvm/Analysis/MemoryBuiltins.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/MemoryBuiltins.h b/llvm/include/llvm/Analysis/MemoryBuiltins.h
index 66d1885b92a4905..1d9831889f573ab 100644
--- a/llvm/include/llvm/Analysis/MemoryBuiltins.h
+++ b/llvm/include/llvm/Analysis/MemoryBuiltins.h
@@ -198,7 +198,7 @@ class ObjectSizeOffsetVisitor
ObjectSizeOpts Options;
unsigned IntTyBits;
APInt Zero;
- DenseMap<Instruction *, SizeOffsetType> SeenInsts;
+ SmallDenseMap<Instruction *, SizeOffsetType, 8> SeenInsts;
APInt align(APInt Size, MaybeAlign Align);
More information about the llvm-commits
mailing list