[all-commits] [llvm/llvm-project] c9790f: [IR] Use SmallDenseSet (NFC) (#79556)
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Fri Jan 26 17:18:55 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c9790f8f733f6014fdd8bdacb057c9871e624bcc
https://github.com/llvm/llvm-project/commit/c9790f8f733f6014fdd8bdacb057c9871e624bcc
Author: Kazu Hirata <kazu at google.com>
Date: 2024-01-26 (Fri, 26 Jan 2024)
Changed paths:
M llvm/lib/IR/Instruction.cpp
Log Message:
-----------
[IR] Use SmallDenseSet (NFC) (#79556)
The use of SmallDenseSet saves 0.39% of heap allocations during the
compilation of a large preprocessed file, namely X86ISelLowering.cpp,
for the X86 target. During the experiment, WL.size() was 2 or less
99.9% of the time. The inline size of 4 should accommodate up to 2
entries at the 3/4 occupancy rate.
More information about the All-commits
mailing list