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: unassignedb...@nondot.org
Reporter: thomas.preudho...@celest.fr
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs