<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 - Regression since SVN r341136, "[ARM] Enable GEP offset splitting for 32-bit ARM.""
   href="https://bugs.llvm.org/show_bug.cgi?id=40013">40013</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Regression since SVN r341136, "[ARM] Enable GEP offset splitting for 32-bit ARM."
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>libraries
          </td>
        </tr>

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

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

        <tr>
          <th>OS</th>
          <td>All
          </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>Backend: ARM
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>martin@martin.st
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>efriedma@codeaurora.org, llvm-bugs@lists.llvm.org, peter.smith@linaro.org, Ties.Stuij@arm.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=21221" name="attach_21221" title="Compressed reproduction sample">attachment 21221</a> <a href="attachment.cgi?id=21221&action=edit" title="Compressed reproduction sample">[details]</a></span>
Compressed reproduction sample

Since SVN r341136, "[ARM] Enable GEP offset splitting for 32-bit ARM.",
compiling for ARM can trigger the error "Instruction does not dominate all
uses!".

To reproduce, compile the attached sample code with "clang++ -target
armv7-w64-mingw32 -c -O3 repro.cpp", which results in the following error:

Instruction does not dominate all uses!
  %splitgep = getelementptr i8, i8* %47, i32 4
  %46 = bitcast i8* %splitgep to i48*
fatal error: error in backend: Broken function found, compilation aborted!
clang-8: error: clang frontend command failed with exit code 70 (use -v to see
invocation)


(The same issue can also be reproduced with an armv7-linux-gnueabihf target,
while the source code will produce a few C++ level warnings in that case.)</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>