[PATCH] D85379: Improve dropTriviallyDeadConstantArrays time cost ratio from 17% to 4%
Yuanfang Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 5 22:17:04 PDT 2020
ychen added a comment.
What is time cost ratio?
================
Comment at: llvm/lib/IR/LLVMContextImpl.cpp:149
+ // the initial pass. So the sizes of WorkList and Deleted are much smaller
+ // than the size of ArrayConstants.
+ SmallPtrSet<ConstantArray *, 4> Deleted;
----------------
jdoerfert wrote:
> Please proof read this comment.
I'd go with "When ArrayConstants are of substantial size and only a few in them is dead, starting WorkList with all elements of ArrayConstants can be wasteful. Instead, starting WorkList with only elements that have empty uses."
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D85379/new/
https://reviews.llvm.org/D85379
More information about the llvm-commits
mailing list