<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/89207>89207</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp: 2 * pointless vector copy ?
</td>
</tr>
<tr>
<th>Labels</th>
<td>
code-quality,
llvm,
llvm:binary-utilities
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
dcb314
</td>
</tr>
</table>
<pre>
Static analyser cppcheck says:
1.
llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp:58:58: performance: Function parameter 'DefaultProperties' should be passed by const reference. [passedByValue]
Source code is
CodeGenIntrinsic::CodeGenIntrinsic(Record *R,
std::vector<Record *> DefaultProperties) {
2.
llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp:151:38: performance: Function parameter 'DefaultProperties' should be passed by const reference. [passedByValue]
Duplicate.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMkz-P2zwMxj8NvQhn2JQdO4OH5PL6RbfiruguU7xErWKp-nOAv33h-IoL2k5Fhy4CKErgw99DqhjNeWYeoD1CeypUThcXBk2TrJticnoZnpNKhoSalV0iB0He04Xpq4hqiSAPUJ2gejvr8j6y9vUKOOZkbAQcP6nJ8v88A45HFQ0Bjo9Orzcf5hTMHA3FkrwHeWj7H4fwHF5cuKqZeA3HPFMybhZeBXXlxEEAdid-Udmmj8F5DslwBOxEvLhstZhYeBUjazEtgtwckwj8woFn4lJAe9yyx-WzspmhPd238OxyIBbkNAsT7zM_S19JyF9vsX9ickELwMMT4OP2WcSktw-vTMkFkI_vz0D-J37T0F5Ad7xXgH8Jdt3WIA_yH6B9yt4aUonfOiv0IPVe7lXBQ93VspFdtdsVl0F1qm16lrUiKXVLTdW2sup7rfddr6kvzIAVNlVT93XVNLgrFVY7rZqJmj0h1xM0FV-VseXKrXThXJgYMw_9HquusGpiG29Lgbia__AtK2vSAoiriYgb7vtAHiYzq7A8rBaYDQuuOxWGNf8w5XOEprImpvheNZlkefhz8wSuIyO8M3OyHKPYBkqQ84sAORY52OGSkr-tKo6A49mkS55KcmvJt8o3hT64L0wJcLyxWJXccHwPAAD__zxfUfM">