[LLVMbugs] [Bug 2154] New: invoke+terminate could be simplified at codegen time

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Mar 14 11:00:02 PDT 2008


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

           Summary: invoke+terminate could be simplified at codegen time
           Product: new-bugs
           Version: unspecified
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu


A call in a gcc must-not-throw region results in an invoke
that calls terminate in the unwind basic block.  This could
be turned into a call at codegen time as long as a "nothrow"
entry is entered into the dwarf eh table, resulting in a
reduction in code size.  Since this is C++ specific, the
transform should only be done when the llvm.selector call
uses the C++ personality function.  We used not to need this
transform because we enforced must-not-throw region by adding
funky meaning to the 'nounwind' attribute, but we don't do
that anymore.


-- 
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