[LLVMbugs] [Bug 13826] New: unreachable prevents tail calls

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 12 18:36:47 PDT 2012


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

             Bug #: 13826
           Summary: unreachable prevents tail calls
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu, nicholas at mxc.ca
    Classification: Unclassified


we produce a tail call for

define void @g() {
  tail call void @f()
  ret void
}
declare void @f()

but not for

define void @g() {
  tail call void @f()
  unreachable
}
declare void @f()

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