<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 - [NPM] Pass GlobalMerge does not honour print-before/after-all"
   href="https://bugs.llvm.org/show_bug.cgi?id=48804">48804</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>[NPM] Pass GlobalMerge does not honour print-before/after-all
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </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>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sjoerd.meijer@arm.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Compiling this:

  void foo(int x, int y) {
    static int a = 0;
    static int b = 0;
    a += x;
    b += y;
  }

with e.g.:

  clang -Ofast --target=aarch64 -S -mllvm -print-after-all -mllvm
-aarch64-enable-global-merge -fexperimental-new-pass-manager


won't show something similar as:

  *** IR Dump After GlobalMerge ***

and it doesn't dump the IR. Adding -mllvm -debug to compile command will only
show:

   Trying to merge set, starts with #0

which is the only LLVM_DEBUG message in that pass, just showing that the pass
runs.

This is actually not a problem of the NPM, also the legacy PM shows this
behaviour.
Thus, I don't think this needs to be a blocker, but it would be nice to fix it
and so I have added it as blocker just for visibility.</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>