[llvm-bugs] [Bug 50080] New: empty jump past the end of the function

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Apr 22 13:32:30 PDT 2021


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

            Bug ID: 50080
           Summary: empty jump past the end of the function
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: ndesaulniers at google.com
                CC: craig.topper at gmail.com, hans at chromium.org,
                    llvm-bugs at lists.llvm.org, llvm-dev at redking.me.uk,
                    natechancellor at gmail.com, pengfei.wang at intel.com,
                    spatel+llvm at rotateright.com, srhines at google.com
            Blocks: 4068

Similar to: https://reviews.llvm.org/D68131

This test case: https://godbolt.org/z/1hq4oe8KP

We have a switch with some bitwise operations, but in the generated code
there's:

f:
        ...
        jmpq    *.LJTI0_0(,%rax,8)
        ...
        retq
.LJTI0_0

via: https://github.com/ClangBuiltLinux/linux/issues/621


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=4068
[Bug 4068] [Meta] Compiling the Linux kernel with clang
-- 
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/20210422/1958d1f3/attachment.html>


More information about the llvm-bugs mailing list