[LLVMbugs] [Bug 13006] New: Codegen tailcall crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jun 1 06:44:50 PDT 2012


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

             Bug #: 13006
           Summary: Codegen tailcall crash
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8668
  --> http://llvm.org/bugs/attachment.cgi?id=8668
testcase .ll

This is a recent regression - probably due to Chris's tailcall work.  Most
likely this is what is causing a bunch of buildbot failures.

$ llc tailcall.ll 
...
7  llc       0x0000000000865a02 bool llvm::isa<llvm::Instruction, llvm::Value
const*>(llvm::Value const* const&) + 24
8  llc       0x0000000000b3f168 llvm::cast_retty<llvm::Instruction, llvm::Value
const*>::ret_type llvm::dyn_cast<llvm::Instruction, llvm::Value
const*>(llvm::Value const* const&) + 24
...
llvm::isInTailCallPosition(llvm::ImmutableCallSite, llvm::Attributes,
llvm::TargetLowering const&) + 1179
...
llvm::SelectionDAGBuilder::LowerCallTo(llvm::ImmutableCallSite, llvm::SDValue,
bool, llvm::MachineBasicBlock*) + 2489
...
Stack dump:
0.    Program arguments: llc tailcall.ll 
1.    Running pass 'Function Pass Manager' on module 'tailcall.ll'.
2.    Running pass 'X86 DAG->DAG Instruction Selection' on function '@foo'
Segmentation fault (core dumped)

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