[llvm-bugs] [Bug 44001] New: Assert failure in getFunctionLocalOffsetAfterInsn on Hexagon

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Nov 14 06:07:26 PST 2019


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

            Bug ID: 44001
           Summary: Assert failure in getFunctionLocalOffsetAfterInsn on
                    Hexagon
           Product: tools
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llc
          Assignee: unassignedbugs at nondot.org
          Reporter: thomas.preudhomme at celest.fr
                CC: llvm-bugs at lists.llvm.org

Created attachment 22812
  --> https://bugs.llvm.org/attachment.cgi?id=22812&action=edit
Code generating a call in bundle at -O3 on Hexagon

I'm hitting an assert failure in getFunctionLocalOffsetAfterInsn on our
out-of-tree target when a call is in a bundle which can be reproduced on
Hexagon with the attached testcase when compiling with -O3.

This is due to EmitFunctionBody browsing MI without entering into bundles and
thus label being inserted after bundles with call instructions while
constructCallSiteEntryDIEs() browse all MIs. When calling
getFunctionLocalOffsetAfterInsn() with the call MI no label can be found after
it and the assert fails.

This does not hit ARM target which also uses bundles and allows call in them
because bundles are unpacked before this code is executed and thus labels are
inserted after the call MI.

-- 
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/20191114/16278b5d/attachment.html>


More information about the llvm-bugs mailing list