[LLVMbugs] [Bug 8069] New: llvm+checking never finishes compiling

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Sep 2 22:02:17 PDT 2010


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

           Summary: llvm+checking never finishes compiling
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: astrange at ithinksw.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=5448)
 --> (http://llvm.org/bugs/attachment.cgi?id=5448)
preprocessed source

Attached file didn't stop compiling after 20 minutes with x86-64-apple-darwin10
+ llvm/clang trunk with checking enabled and:
> /usr/local/llvm/bin/clang -O3 -Xclang -ftime-report -c fft.i

Seems to be caused by the inliner causing the size of fft65536() to explode.

llvm::SmallPtrSetImpl::FindBucketFor () at
/Users/astrange/Projects/src/llvm/lib/Support/SmallPtrSet.cpp:122
122        Bucket = (Bucket + ProbeAmt++) & (ArraySize-1);
(gdb) bt
#0  llvm::SmallPtrSetImpl::FindBucketFor () at
/Users/astrange/Projects/src/llvm/lib/Support/SmallPtrSet.cpp:122
#1  0x000000010235e220 in llvm::SmallPtrSetImpl::insert_imp
(this=0x7fff5fbf8a00, Ptr=0x104376010) at
/Users/astrange/Projects/src/llvm/lib/Support/SmallPtrSet.cpp:61
#2  0x00000001015653cb in llvm::SmallPtrSet<llvm::SDNode const*, 32u>::erase ()
at /Users/astrange/Projects/src/llvm/include/llvm/ADT/SmallPtrSet.h:6457
#3  0x00000001015653cb in checkForCyclesHelper (N=0x1044f6010,
Visited=@0x7fff5fbf8b30, Checked=@0x7fff5fbf8a00) at
/Users/astrange/Projects/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:61
…
#3570 0x00000001015653b8 in checkForCyclesHelper (N=0x104664a10,
Visited=@0x7fff5fbf8b30, Checked=@0x7fff5fbf8a00) at
/Users/astrange/Projects/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:61
#3571 0x00000001015653b8 in checkForCyclesHelper (N=0x104664b10,
Visited=@0x7fff5fbf8b30, Checked=@0x7fff5fbf8a00) at
/Users/astrange/Projects/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:61
#3572 0x00000001015653b8 in checkForCyclesHelper (N=0x104664c10,
Visited=@0x7fff5fbf8b30, Checked=@0x7fff5fbf8a00) at
/Users/astrange/Projects/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:61
#3573 0x00000001015653b8 in checkForCyclesHelper (N=0x104664d10,
Visited=@0x7fff5fbf8b30, Checked=@0x7fff5fbf8a00) at
/Users/astrange/Projects/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:61
#3574 0x0000000101565501 in ~SmallPtrSet [inlined] () at
/Users/astrange/Projects/src/llvm/include/llvm/ADT/SmallPtrSet.h:6467
#3575 0x0000000101565501 in llvm::checkForCycles (N=0x104664d10) at
/Users/astrange/Projects/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:61
#3576 0x0000000100ef4d88 in llvm::SelectionDAG::setRoot (this=0x103ec7f20,
N={Node = 0x104664d10, ResNo = 0}) at SelectionDAG.h:61
#3577 0x00000001015df94f in llvm::SelectionDAGBuilder::LowerCallTo
(this=0x103ec8930, CS=<value temporarily unavailable, due to optimizations>,
Callee={Node = 0x1041ba710, ResNo = 0}, isTailCall=false, LandingPad=0x0) at
/Users/astrange/Projects/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:61
#3578 0x00000001015eee4a in llvm::SelectionDAGBuilder::visitCall
(this=0x103ec8930, I=@0x103e43232) at
/Users/astrange/Projects/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:61
#3579 0x00000001015d241d in llvm::SelectionDAGBuilder::visit (this=0x103ec8930,
Opcode=<value temporarily unavailable, due to optimizations>, I=@0x103e43230)
at Instruction.def:61
#3580 0x0000000101606f83 in llvm::SelectionDAGBuilder::visit (this=0x103ec8930,
I=@0x103e43230) at
/Users/astrange/Projects/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:61
#3581 0x0000000101658788 in
llvm::ilist_nextprev_traits<llvm::Instruction>::getNext () at
/Users/astrange/Projects/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:356
#3582 llvm::ilist_node<llvm::Instruction>::getNext () at
/Users/astrange/Projects/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:217
#3583 llvm::ilist_iterator<llvm::Instruction const>::operator++ () at
/Users/astrange/Projects/src/llvm/include/llvm/ADT/ilist_node.h:58
#3584 0x0000000101658788 in llvm::SelectionDAGISel::SelectBasicBlock
(this=0x103ec7a20, Begin=<value temporarily unavailable, due to optimizations>,
End={<std::iterator<std::bidirectional_iterator_tag,const
llvm::Instruction,long int,const llvm::Instruction*,const llvm::Instruction&>>
= {<No data fields>}, NodePtr = 0x103e31ad0}, HadTailCall=@0x7fff5fbf959e) at
/Users/astrange/Projects/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:61
#3585 0x0000000101661690 in llvm::SelectionDAGISel::SelectAllBasicBlocks
(this=0x103ec7a20, Fn=<value temporarily unavailable, due to optimizations>) at
/Users/astrange/Projects/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:61
#3586 0x0000000101661da4 in llvm::SelectionDAGISel::runOnMachineFunction
(this=0x103ec7a20, mf=@0x104a49d70) at
/Users/astrange/Projects/src/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:61
#3587 0x0000000101926ec3 in llvm::MachineFunctionPass::runOnFunction
(this=0x103ec7a20, F=<value temporarily unavailable, due to optimizations>) at
/Users/astrange/Projects/src/llvm/lib/CodeGen/MachineFunctionPass.cpp:61
#3588 0x00000001021fdae4 in llvm::FPPassManager::runOnFunction
(this=0x103ebf440, F=@0x103e31ee0) at
/Users/astrange/Projects/src/llvm/lib/VMCore/PassManager.cpp:61
#3589 0x00000001021fdd62 in llvm::FunctionPassManagerImpl::run
(this=0x103ebf100, F=@0x103e31ee0) at
/Users/astrange/Projects/src/llvm/lib/VMCore/PassManager.cpp:61
#3590 0x00000001021fe0fc in llvm::FunctionPassManager::run (this=0x103ec02e0,
F=@0x103e31ee0) at
/Users/astrange/Projects/src/llvm/lib/VMCore/PassManager.cpp:61
#3591 0x00000001002ca145 in clang::EmitBackendOutput (Diags=<value temporarily
unavailable, due to optimizations>, CGOpts=<value temporarily unavailable, due
to optimizations>, TOpts=<value temporarily unavailable, due to optimizations>,
M=<value temporarily unavailable, due to optimizations>, Action=<value
temporarily unavailable, due to optimizations>, OS=<value temporarily
unavailable, due to optimizations>) at
/Users/astrange/Projects/src/llvm/tools/clang/lib/CodeGen/BackendUtil.cpp:61
#3592 0x000000010043e8be in (anonymous
namespace)::BackendConsumer::HandleTranslationUnit (this=0x103e17840, C=<value
temporarily unavailable, due to optimizations>) at
/Users/astrange/Projects/src/llvm/tools/clang/lib/CodeGen/CodeGenAction.cpp:61
#3593 0x000000010049b1fe in clang::ParseAST (S=@0x10402d200, PrintStats=false)
at /Users/astrange/Projects/src/llvm/tools/clang/lib/Parse/ParseAST.cpp:61
#3594 0x000000010043f4cc in clang::CodeGenAction::ExecuteAction
(this=0x103e12680) at
/Users/astrange/Projects/src/llvm/tools/clang/lib/CodeGen/CodeGenAction.cpp:61
#3595 0x00000001000fb5cf in ~TimeRegion [inlined] () at
/Users/astrange/Projects/src/llvm/include/llvm/Support/Timer.h:182
#3596 0x00000001000fb5cf in clang::FrontendAction::Execute (this=0x103e12680)
at
/Users/astrange/Projects/src/llvm/tools/clang/lib/Frontend/FrontendAction.cpp:61
#3597 0x00000001000bbcf1 in clang::CompilerInstance::ExecuteAction
(this=0x103e112b0, Act=@0x103e12680) at
/Users/astrange/Projects/src/llvm/tools/clang/lib/Frontend/CompilerInstance.cpp:61
#3598 0x000000010004744a in clang::ExecuteCompilerInvocation
(Clang=0x103e112b0) at
/Users/astrange/Projects/src/llvm/tools/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:61
#3599 0x000000010002fb63 in cc1_main (ArgBegin=0x7fff5fbfd608, ArgEnd=0x21,
Argv0=0x103e10688 "/usr/local/llvm/bin/clang", MainAddr=0x100036710) at
/Users/astrange/Projects/src/llvm/tools/clang/tools/driver/cc1_main.cpp:61
#3600 0x000000010003befe in main (argc_=35, argv_=0x7fff5fbfe8f0) at
/Users/astrange/Projects/src/llvm/tools/clang/tools/driver/driver.cpp:61

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