<html>
    <head>
      <base href="https://bugs.freedesktop.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 - nir_opt_algebraic.c takes too long to compile"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=111737">111737</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>nir_opt_algebraic.c takes too long to compile
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Mesa
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>not set
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>not set
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>glsl-compiler
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>mesa-dev@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>idr@freedesktop.org
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>intel-3d-bugs@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>One our 72-thread build machine, release builds of Mesa used to take 90
seconds.  They now take closer to 8 minutes.  All of the extra time is spent
compiling nir_opt_algebraic.c.  Debug builds do not seem to be affected.  I
bisected this to:

f097247dd831da9b6e48baebc8b91efec3afcd28 is the first bad commit
commit f097247dd831da9b6e48baebc8b91efec3afcd28
Author: Samuel Iglesias Gonsálvez <<a href="mailto:siglesias@igalia.com">siglesias@igalia.com</a>>
Date:   Wed Dec 12 16:29:13 2018 +0100

    nir/algebraic: disable inexact optimizations depending on float controls
execution mode

    If FLOAT_CONTROLS_SIGNED_ZERO_INF_NAN_PRESERVE or
    FLOAT_CONTROLS_DENORM_FLUSH_TO_ZERO are enabled, do not apply the
    inexact optimizations so the VK_KHR_shader_float_controls execution
    mode is respected.

    v2:
    - Do not apply inexact optimizations if SHADER_DENORM_FLUSH_TO_ZERO is
      enabled (Andres).

    v3:
    - Updated to renamed shader info member (Andres).

    v4:
    - Directly access execution mode instead of dragging it by parameter
(Caio).

    Signed-off-by: Samuel Iglesias Gonsálvez <<a href="mailto:siglesias@igalia.com">siglesias@igalia.com</a>>
    Signed-off-by: Andres Gomez <<a href="mailto:agomez@igalia.com">agomez@igalia.com</a>>
    Reviewed-by: Connor Abbott <<a href="mailto:cwabbott0@gmail.com">cwabbott0@gmail.com</a>> [v1]

:040000 040000 33e076aacc5a6a4f10065cac2c8b06af0a5439a2
2b4a6e086b09648fc67a1f219777d51dc96f60f5 M      src</pre>
        </div>
      </p>


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

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