<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 - [windows] The VS compiler optimizes out fieldFromInstruction in Release builds when LLVM_ENABLE_ASSERTIONS is set to OFF"
   href="https://bugs.llvm.org/show_bug.cgi?id=38292">38292</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[windows] The VS compiler optimizes out fieldFromInstruction in Release builds when LLVM_ENABLE_ASSERTIONS is set to OFF
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>tools
          </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>TableGen
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>stilis@microsoft.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The VS compiler (on Windows) has a bug which results in fieldFromInstruction
being optimized out in some circumstances. This only happens in *release no
debug info* builds that have assertions *turned off* - in all other situations
the function is not inlined, so the functionality is correct.

All of the bots have assertions turned on, so this path is not regularly
tested. 

The workaround is to not inline the function on Windows - if the bug is fixed
in a later release of the VS compiler, the noinline specification can be
removed.

The test that consistently reproduces this is Lanai v11.txt test.

This bug is to track the workaround in FixedLenDecoderEmitter.cpp (and it's
potential future removal).</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>