<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 - "[AggressiveInstCombine] Generalize foldGuardedRotateToFunnelShift to generic funnel shifts" broke ARM/AArch64 targets"
   href="https://bugs.llvm.org/show_bug.cgi?id=48068">48068</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"[AggressiveInstCombine] Generalize foldGuardedRotateToFunnelShift to generic funnel shifts" broke ARM/AArch64 targets
          </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>Transformation Utilities
          </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>llvm-bugs@lists.llvm.org, llvm-dev@redking.me.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Since "[AggressiveInstCombine] Generalize foldGuardedRotateToFunnelShift to
generic funnel shifts", git commit 59b22e495c15d2830f41381a327f5d6bf49ff416,
the following reduced test case errors triggers asserts during compilation:

$ cat apedec-reduced.c
a;
b(e) {

int c;
unsigned d = f();
c = d >> 32 - e;
return c;
}
g() {

int h = i();
if (a)
  h = h << a | b(a);
return h;
}
$ clang -target aarch64-linux-gnu -w -c -O3 apedec-reduced.c
clang: ../lib/Transforms/InstCombine/InstructionCombining.cpp:3656: bool
llvm::InstCombinerImpl::run(): Assertion `DT.dominates(BB, UserParent) &&
"Dominance relation broken?"' failed.

The same happens with e.g. an armv7-linux-gnueabihf target.

The problematic commit was reverted in
36cf1e7d0e0e8aaea1f33bfa12d7a285756b75ba.</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>