[PATCH] D124878: [Bitcode] Include indirect users of BlockAddresses in bitcode
Wende Tan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 14:34:52 PDT 2022
twd2 added a comment.
FYI, before the patch:
$ cat repro.c
void f(long);
__attribute__((noinline)) static void fun(long x) {
f(x + 1);
}
void repro(void) {
fun(({
label:
(long)&&label;
}));
}
$ clang -O2 -flto -c repro.c -o repro.i
$ llvm-bcanalyzer -dump repro.i | grep USER
$ ld.lld repro.i
After the patch:
$ clang -O2 -flto -c repro.c -o repro.i
$ llvm-bcanalyzer -dump repro.i | grep USER
<BLOCKADDR_USERS op0=1/>
1 28 BLOCKADDR_USERS
$ ld.lld repro.i
ld.lld: warning: cannot find entry symbol _start; not setting start address
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124878/new/
https://reviews.llvm.org/D124878
More information about the llvm-commits
mailing list