[llvm-bugs] [Bug 48804] New: [NPM] Pass GlobalMerge does not honour print-before/after-all
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jan 19 08:12:23 PST 2021
https://bugs.llvm.org/show_bug.cgi?id=48804
Bug ID: 48804
Summary: [NPM] Pass GlobalMerge does not honour
print-before/after-all
Product: new-bugs
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: sjoerd.meijer at arm.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210119/8c081e73/attachment.html>
More information about the llvm-bugs
mailing list