[llvm-bugs] [Bug 46463] New: __attribute((noinline)) not respected

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 25 19:04:54 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=46463

            Bug ID: 46463
           Summary: __attribute((noinline)) not respected
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedbugs at nondot.org
          Reporter: jmuizelaar at mozilla.com
                CC: llvm-bugs at lists.llvm.org

__attribute((noinline))
char *demo(char *s) {
    return s;
}

char *foo()  {
    return demo("input string");
}

compiles to:

demo(char*):                              # @demo(char*)
        movq    %rdi, %rax
        retq
foo():                                # @foo()
        movl    $.L.str, %eax
        retq
.L.str:
        .asciz  "input string"

-- 
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/20200626/63a85681/attachment.html>


More information about the llvm-bugs mailing list