Record::getValues returns ArrayRef which has a cast operator to std::vector,
as a result a temporary is created if the type of the variable is const std::vector & .
Test plan: make check-all
Differential D34969
[tablegen] Avoid creating a temporary vector in getInstructionCase alexander-shaposhnikov on Jul 3 2017, 5:23 PM. Authored by
Details
Record::getValues returns ArrayRef which has a cast operator to std::vector, Test plan: make check-all
Diff Detail
Event TimelineComment Actions Might be better to range-for-ify the loops that use Vals, and call R->getValues() directly in the range for range expression? |