<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/99640>99640</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
(Missed optimization for clang) Redundant copies to the stack
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
user202729
</td>
</tr>
</table>
<pre>
https://godbolt.org/z/648KWzof7
The 2 codes are identical except for int, 12 versus long long, 6.
In the long long version, there's only one set of copies. In the other one, there are two sets.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckUGPmz4QxT-NuViLYDAkPviw__8Kqap6qSr1bPAkuHU8ETOk3Xz6ymzUXfUySPi95_HveeZ4zohO9f-p_qXymyy0uo1xhQYOYKuJwqtTzYtqnt_mInJl1T0rGBWMZwoTJalpPSsY7wrGwRw_f7_T6fDR9G1BDXqmgKz9ijoGzBJnnzT-nvEq-kSrjlkU_K9b0DdceWOdKJ_3UX4P9cfAT1nLgu-K3RIpF6UsuKKCA2vK6VVTRs0omk56pmtErvXDTUVZzv-69uXkFxUD11VwXbCd9RW69gBtZ5tugGpxU-O96QHMsYVgGj8PBswJe-iGHjqcquigAdMcWtu2vQWoYTJH8DYc51NJtMo0ePEx1SndLoVeFZk3dNYOpqmSnzDxXgrAnHwhAKWf1RX907SdWZkmRRZ-T5AoCZ2C45fIjEHTVeIl3r1EyjvgR5LVXzFsOfgsDyJaaAfC4uef1bYm90_LUZZtqme6KBjLfY_P03WlHziLgnFfnxWMby-4OfgTAAD__9dAvvY">