[llvm-bugs] [Bug 39560] New: address of label preventing inlining of __attribute__((always_inline)) static functions

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Nov 5 11:04:20 PST 2018


            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: unassignedbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: echristo at gmail.com, isanbard at gmail.com,
                    llozano at chromium.org, llvm-bugs at lists.llvm.org,
                    srhines at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181105/f0b6f42f/attachment.html>

More information about the llvm-bugs mailing list