[all-commits] [llvm/llvm-project] 65053f: [NFC] Use more appropriate SmallVectorImpl::append...
yurai007 via All-commits
all-commits at lists.llvm.org
Sat Jul 30 01:14:01 PDT 2022
Author: Dawid Jurczak <dawid_jurek at vp.pl>
Date: 2022-07-30 (Sat, 30 Jul 2022)
[NFC] Use more appropriate SmallVectorImpl::append call in std::initializer_list SmallVector constructor
Since we are in constructor there is no need to perform redundant call to SmallVectorImpl::clear() inside assign function.
Although calling cheaper append function instead assign doesn't make any difference on optimized builds
(DSE does the job removing stores), we still save some cycles for debug binaries.
Differential Revision: https://reviews.llvm.org/D130361
More information about the All-commits