From: Sanjoy Das Date: Sun, 25 Sep 2016 23:12:08 +0000 (+0000) Subject: [SCEV] Reserve space in SmallVector; NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72ec6f5ddab7dda58ef8f8c86b97de2f3a92a257;p=llvm [SCEV] Reserve space in SmallVector; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282368 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index a5b1be08df6..d6ea15f3957 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -5670,6 +5670,7 @@ ScalarEvolution::BackedgeTakenInfo::BackedgeTakenInfo( ArrayRef ExitCounts, bool Complete, const SCEV *MaxCount) : MaxAndComplete(MaxCount, Complete) { + ExitNotTaken.reserve(ExitCounts.size()); std::transform( ExitCounts.begin(), ExitCounts.end(), std::back_inserter(ExitNotTaken), [&](const ScalarEvolution::EdgeExitInfo &EEI) {