<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 - [WebAssembly] Add a way to run binaryen's wasm-opt automatically"
   href="https://bugs.llvm.org/show_bug.cgi?id=43796">43796</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[WebAssembly] Add a way to run binaryen's wasm-opt automatically
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </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>-New Bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>dan433584@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>aardappel@gmail.com, aheejin@gmail.com, htmldeveloper@gmail.com, kripkensteinr@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk, sbc@chromium.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Alon asked me recently if it would make sense for the clang driver to run
Binaryen's wasm-opt automatically. My initial reaction was that LLVM/clang
tools don't typically run external optimization tools to post-process their
output, but thinking about it more, it seems like it might be ok if we take
care.

As background, while the in-tree LLVM WebAssembly target emits correct output,
and does some wasm-specific optimizations, there are a lot more such
optimizations possible that it doesn't do. Binaryen (which is not part of LLVM)
has a tool called wasm-opt which does do many more of these optimizations, so
it can be quite beneficial to run it on LLVM's output. LLVM could conceivably
be made to do those optimizations too, but right now, no one is actively
working on this, so unless this changes, it's desirable to use wasm-opt.

We'd still want to ensure that LLVM doesn't *depend* on having these tools
available. But if they are available, it would be convenient for users to be
able to have the clang driver run them automatically.</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>