[PATCH] D34969: [tablegen] Avoid creating a temporary vector in getInstructionCase
Alexander Shaposhnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 3 22:12:02 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL307059: [tablegen] Avoid creating a temporary vector in getInstructionCase (authored by alexshap).
Changed prior to commit:
https://reviews.llvm.org/D34969?vs=105129&id=105135#toc
Repository:
rL LLVM
https://reviews.llvm.org/D34969
Files:
llvm/trunk/include/llvm/ProfileData/InstrProf.h
Index: llvm/trunk/include/llvm/ProfileData/InstrProf.h
===================================================================
--- llvm/trunk/include/llvm/ProfileData/InstrProf.h
+++ llvm/trunk/include/llvm/ProfileData/InstrProf.h
@@ -753,11 +753,8 @@
uint32_t InstrProfRecord::getNumValueData(uint32_t ValueKind) const {
uint32_t N = 0;
- const std::vector<InstrProfValueSiteRecord> &SiteRecords =
- getValueSitesForKind(ValueKind);
- for (auto &SR : SiteRecords) {
+ for (auto &SR : getValueSitesForKind(ValueKind))
N += SR.ValueData.size();
- }
return N;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D34969.105135.patch
Type: text/x-patch
Size: 582 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170704/8a690ae4/attachment-0001.bin>
More information about the llvm-commits
mailing list