<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Adding a redundant single-iteration do-while loop causes different image to be rendered"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=110953#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - Adding a redundant single-iteration do-while loop causes different image to be rendered"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=110953">bug 110953</a>
              from <span class="vcard"><a class="email" href="mailto:idr@freedesktop.org" title="Ian Romanick <idr@freedesktop.org>"> <span class="fn">Ian Romanick</span></a>
</span></b>
        <pre>The problem is this bit of code loop_unroll_visitor::simple_unroll.

   if (limit_if != first_ir->as_if() || exit_branch_has_instructions)
      iterations++;

The check that the first thing in the loop is an if-statement expects that to
only occur when the if-statement is a terminator for the loop (e.g., if (i > 6)
break;).  This loop starts with an if-statement that is not a terminator, so
the loop iteration count is incorrectly incremented.</pre>
        </div>
      </p>


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

      <ul>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>