<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 - New Pass Manager does not always use -pass-remarks-output"
   href="https://bugs.llvm.org/show_bug.cgi?id=33951">33951</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>New Pass Manager does not always use -pass-remarks-output
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

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

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>ashe2@cs.washington.edu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>When trying to use the `-pass-remarks-output` flag with the new pass manager,
it doesn't always work.

Using `opt <input> -passes='require<opt-remark-emit>,...' -pass-remarks='.*'
-pass-remarks-output=<remark_file> -o <output>`, the
`-pass-remarks-output=<remark_file>` is only sometimes used, based on its
value:

- if `-pass-remarks-output=-` is passed, then the yaml is printed to stdout, as
it should be.
- if `-pass-remarks-output=<remark_file>` is passed, then that file is not
created, and no yaml is printed into it.

In all of these cases, using the old pass manager (ie, `opt -inline` or
similar), then the `-pass-remarks-output=...` option does indeed print to
either stdout or the given filename.

I can provide patches for some of the opt remark tests which show this failing
only with the new pass manager.</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>