<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 - Unreported changes from rewriteLoopExitValues"
   href="https://bugs.llvm.org/show_bug.cgi?id=47486">47486</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Unreported changes from rewriteLoopExitValues
          </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>Windows NT
          </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>dmajor@mozilla.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lebedev.ri@gmail.com, llvm-bugs@lists.llvm.org, sguelton@redhat.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=23946" name="attach_23946" title="SwitchLoweringUtils.ll">attachment 23946</a> <a href="attachment.cgi?id=23946&action=edit" title="SwitchLoweringUtils.ll">[details]</a></span>
SwitchLoweringUtils.ll

With expensive checks enabled:
$ opt -indvars -S SwitchLoweringUtils.ll
Pass modifies its input and doesn't report it: Induction Variable
Simplification

With some early returns in IndVarSimplify.cpp, I narrowed it down to
rewriteLoopExitValues, but I'm not sure about the specific line.

It's unclear if bugpoint did something bad here: the only predecessor of the
`ret` is the first instruction, so everything in between is an infinite loop. I
can share the original repro if that's better.</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>