<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/62189>62189</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Longer assembly produced when simple condition is replaced with bool variable (X86)
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          1lyasm
      </td>
    </tr>
</table>

<pre>
    Normal: https://godbolt.org/z/xsrbaGjsx
Conditions replaced with bools: https://godbolt.org/z/eb69oe3nG

I expected that adding bools would be ignored as they are not written to anywhere. GCC produced ~700 more lines of assembly (did some unrolling due to short input I think), so may be it is normal behaviour, but still it seemed simple and safe transformation to do.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMUr1u3DwQfBqqWfggUn-nQoW_M2QY-JA6LSnuSXQorsClfL4UefaAd3EMJE0astjd2dmZ0cxuDoiDaP4TzVOh97RQHKS_al4LQ_Y6fKG4ai-qR1hS2lhUj0KNQo0zWUM-HSjOQo3fhRrfORr9_MrvonwS5eOJgnXJUWCIuHk9oYWLSwsYIs__Aoim7Qmr8HwHvL8vgO8bTgktpEUn0Na6MN9B4UK7t2AQ3BwoogXNkBa8go4IgRJcoksJAyQCHa6XBSMe4Pl0gi2S3TPFH11ZwkoRwbuADHQGzYyr8VcQ6midBaYVYQ-RvM-r7Y4ZjxeKCVzY9gQvkBYXvgnVC3UCJlj19UYrgWMIN0nB4KLfHO0x95g9ASfnfe5hxBUtsFs3j6CDBdZnhBR14HMezrLmnZYOhR0q21e9LnCQ7VF2XdXItliGfmqsqbBqWtnVXVlXZzOdp1K1sql1V8vCDapUVVnLTlXyWLUHaRsp6_LcmFJPdYOiLnHVzh-8f1uzL4Vj3nFolTz2hdcGPd-So1TAC9yKQqkcpDjkmQezzyzq0jtO_ImSXPI4_E9hxvgp7m8HLguGj9unjxBl3f6OEbzp6LTxmK35emyF6os9-uGPZLm07OYw0SrUmFn8-h62SK84JaHGG3cWarzd9jMAAP__QT8IZA">