Skip to content

Commit

Permalink
[MemoryBuiltins] Use SmallDenseMap for visited map (NFC)
Browse files Browse the repository at this point in the history
This partially recovers a major compile-time regression introduced
by #65326.
  • Loading branch information
nikic committed Sep 15, 2023
1 parent ff9ae3f commit c0a64ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/include/llvm/Analysis/MemoryBuiltins.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c0a64ec

Please sign in to comment.