[llvm-bugs] [Bug 48857] New: miscompile with -mllvm -inline-threshold=2500, aarch64

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jan 23 07:15:46 PST 2021


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

            Bug ID: 48857
           Summary: miscompile with -mllvm -inline-threshold=2500, aarch64
           Product: new-bugs
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: avi at cloudius-systems.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

I have a program that, when compiled with -O3 -mllvm -inline-threshold=2500
substitutes -1 for a pointer-to-function. Without -inline-threshold, the
program compiles and runs correctly.

If needed, I can supply a reproducer, but unfortunately it's quite complex. If
someone wants to investigate the bug I'll happily provide detailed
instructions.

The bug manifests when loading the function pointer from a struct (but it's
already -1 at that time).

-- 
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/20210123/90aefe8c/attachment-0001.html>


More information about the llvm-bugs mailing list