<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJylUj2P2zAM_TXyQlygSHFsDx4uF1yHLl1vKvRB2zrIVirRAS6_vpKToEDRrYK-Hki-R4rSwX71hInAqIRMvgLjZ8Zf2ZE_5gbdQlC8fkrBRFuQYuINykUz0QFrTo9AyCMirXEBBUy-g37ZQ-HNfqc9k08_1pz_qXTf38J8UREtUIDRmKJlvFpGuMRgV4MJknfjRP4L5hARrhh1SAgmWIQhxKyd8NeKi8E74UR0STkNJt7zHIPVwdMuxDGjW171D_z4uF2_fa9sL20nO1WplaYQ--tgh6Fao-__4nA0rXpnwpyB99fn8ZJT_ERDGbqUVkyFXfJmX019p1sheFu33DTNodkrfuwGKXmrTBbtjpVXGn3qWX1i9bn6f0nXC54V9_ne8Ea0u4PSreGmq-tWHoSw7MBxVs7vCk95jyr2G6Vex5SN3iVKf4wqJTcuiM8MyZHfQLiQm91NkQtLNpSmwYgLRkUIGokw3ptDk1oevdT5x0HIKCzWlUDlcz8T-lxKRtVWS78V8huhbNLb>53071</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[optimization] gcc generate better code than clang base on conditionally selection
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
vfdff
</td>
</tr>
</table>
<pre>
test case:
```
int test_32(int a, int b) {
return a ? b-1 : b+1;
}
```
Compared to gcc, clang produces slightly more verbose code for a sequence
https://godbolt.org/z/5PeYYzvGK
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtkEtv6yAQhX8N3owaYYjjeOFF06hddNNtV1c8xjZX2OTCOFLz6wt56EpVEWAfMWfOBzrYr54wERiVkMlnYPzI-DPb8fu8SrcQlKo_UjCxL0ox8QLlRzPRAWsPdyPkEZHWuIACJl9BP9VQ-ua6Q83ko461x1-TbvtLmE8qogUKMBpTsoxXywinGOxqMEHybpzIf8EcIsIZow4JwQSLMISYsxP-W3ExeGs4EZ1SxmDiNc8xWB08bUIcs7rk1Xzg5-fl_PZe2V7aTnaqIkcee9Ycwonc7C6KXFhYcyxAMOKCURGCRiKMt2Ca1HLn1Pk1IWQVFuuKUfnMmtCjKapao-9_MDmaVr0xYc7C-_Pj85Sv_De7snQprZgKreRtXU19Kzqh9H7oJKK2hje12TViK6Qa9G7X2MorjT6VS2TwyvWCC8HrbG55K_abbTYbbrqm2cutEJZtOc7K-U0JLq9Txf7KoNcx5UPvEqX_hyolNy6Ij_5qpSnE_jzYYaiusP2V9BuVdr59">