[PATCH] D77621: ADT: SmallVector size/capacity use word-size integers when elements are small

Andrew via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 24 15:12:17 PDT 2020


browneee updated this revision to Diff 260006.
browneee marked 4 inline comments as done.
browneee added a comment.

- Change SizeTypeMax to a static constexpr function.
- Fix comment typos.
- Add comment to alert others to possible performance loss if that function is moved to the header.

@nikic: Thank you for detecting, analyzing, and solving the performance regression!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77621/new/

https://reviews.llvm.org/D77621

Files:
  llvm/include/llvm/ADT/SmallVector.h
  llvm/lib/Support/SmallVector.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77621.260006.patch
Type: text/x-patch
Size: 8342 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200424/78239360/attachment.bin>


More information about the llvm-commits mailing list