[llvm-bugs] [Bug 47783] New: unable to legalize instruction: G_BRJT

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Oct 9 09:47:23 PDT 2020


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

            Bug ID: 47783
           Summary: unable to legalize instruction: G_BRJT
           Product: libraries
           Version: trunk
          Hardware: PC
               URL: https://godbolt.org/z/hGMqWK
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: GlobalISel
          Assignee: unassignedbugs at nondot.org
          Reporter: andres at anarazel.de
                CC: llvm-bugs at lists.llvm.org, quentin.colombet at gmail.com

Created attachment 24039
  --> https://bugs.llvm.org/attachment.cgi?id=24039&action=edit
simplified reproducer

Hi,

Yesterday, at the LLVM conference, somebody mentioned that he recommends
GlobalIsel for JIT workloads (but I think their experience was for GPUs, so not
really comparable). So I quickly tried enabling it for Postgres' JIT, on X86.

Immediately triggered:
LLVM ERROR: unable to legalize instruction: G_BRJT %39:_(p0), %jump-table.0,
%38:_(s64) (in function: deform_29_1)

Using bugpoint and some further manual work I created a fairly small
reproducer:
https://godbolt.org/z/Wxvdzs (also attached)

Regards,

Andres

-- 
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/20201009/f600b848/attachment.html>


More information about the llvm-bugs mailing list