[LLVMbugs] [Bug 6581] New: Jump table entries emitted twice

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 11 07:02:18 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6581

           Summary: Jump table entries emitted twice
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: ARM
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: richard at xmos.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4479)
 --> (http://llvm.org/bugs/attachment.cgi?id=4479)
switch.ll

Compiling the attached example using llc -march=arm results in the jump table
entries being emitted twice, once inside the function just after the jump and
again after the function. The jump table entries emitted at the end of the jump
are unreferenced.

The ARM backend should be switched over to using the new EK_Inline jump table
encoding type which indicates the jump table entries at emitted by the target
inside the function. This disables emission of the jump table entries after the
function.

Also see http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-March/030111.html

Once this is done I think it should be possible to get rid of the
TargetJITInfo::hasCustomJumpTables() hook

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list