<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Function called at the end of multiple paths results in different x86_64 assembly than equivalent call after all paths have completed"
   href="https://bugs.llvm.org/show_bug.cgi?id=43298">43298</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Function called at the end of multiple paths results in different x86_64 assembly than equivalent call after all paths have completed
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jmunxsys@yahoo.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=22490" name="attach_22490" title="Code that exhibits the issue">attachment 22490</a> <a href="attachment.cgi?id=22490&action=edit" title="Code that exhibits the issue">[details]</a></span>
Code that exhibits the issue

<a href="https://godbolt.org/z/37Leg_">https://godbolt.org/z/37Leg_</a>

Clang trunk (371698) is able to reduce "munge" to the same code as "munge2". 
(BTW all versions of gcc, icc, and older clang versions could not.)

However, "munge1" and "munge3" get a slightly longer version that loads and
stores to/from a register instead of using immediates.  As best I can tell
these are all represent equivalent functions and should have the same ASM
representation for a given optimization level.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>