diff options
author | Kazu Hirata <kazu@google.com> | 2024-06-15 13:59:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-15 13:59:40 -0700 |
commit | f05b15b21b46835efeb88eb8bfd456e82582722c (patch) | |
tree | 137aab1615af11dc0865a638f5d3536c124cb7a4 /llvm/lib/Transforms/Scalar/JumpThreading.cpp | |
parent | 7c0c9d640dac33ac9c7f0997c736dce023b84a2e (diff) | |
download | llvm-f05b15b21b46835efeb88eb8bfd456e82582722c.zip llvm-f05b15b21b46835efeb88eb8bfd456e82582722c.tar.gz llvm-f05b15b21b46835efeb88eb8bfd456e82582722c.tar.bz2 |
[JumpThreading] Use SmallPtrSet (NFC) (#95674)
The use of SmallPtrSet here saves 0.66% of heap allocations during
the compilation of a large preprocessed file, namely
X86ISelLowering.cpp, for the X86 target.
Diffstat (limited to 'llvm/lib/Transforms/Scalar/JumpThreading.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/JumpThreading.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/JumpThreading.cpp b/llvm/lib/Transforms/Scalar/JumpThreading.cpp index b958383..1aef280 100644 --- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp +++ b/llvm/lib/Transforms/Scalar/JumpThreading.cpp @@ -558,7 +558,7 @@ static Constant *getKnownConstant(Value *Val, ConstantPreference Preference) { /// This returns true if there were any known values. bool JumpThreadingPass::computeValueKnownInPredecessorsImpl( Value *V, BasicBlock *BB, PredValueInfo &Result, - ConstantPreference Preference, DenseSet<Value *> &RecursionSet, + ConstantPreference Preference, SmallPtrSet<Value *, 4> &RecursionSet, Instruction *CxtI) { const DataLayout &DL = BB->getModule()->getDataLayout(); |