https://bugs.llvm.org/show_bug.cgi?id=39560
Bug ID: 39560
Summary: address of label preventing inlining of
__attribute__((always_inline)) static functions
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Scalar Optimizations
Assignee: unassignedb...@nondot.org
Reporter: ndesaulni...@google.com
CC: echri...@gmail.com, isanb...@gmail.com,
lloz...@chromium.org, llvm-bugs@lists.llvm.org,
srhi...@google.com
Example from the Linux kernel: https://godbolt.org/z/S8FRRs
The kernel uses a GNU statement expression that returns the address of a label
in many many places throughout the code bases. With Clang, it seems that
taking the address of a block prevents a __attribute__((always_inline))
function from being inlined.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs