[LLVMbugs] [Bug 868] NEW: llvm::isInstructionTriviallyDead crash

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Aug 3 14:23:43 PDT 2006


           Summary: llvm::isInstructionTriviallyDead crash
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Scalar Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: dpatel at apple.com

big.bc test case causes this failure.

$opt -instcombine -load-vn -gcse -simplifycfg -f -o=/tmp/o.bc big.bc

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000010
0x00108a54 in llvm::isInstructionTriviallyDead (I=0x9d14b10) at Local.cpp:328
328       if (!I->mayWriteToMemory()) return true;
(gdb) where
#0  0x00108a54 in llvm::isInstructionTriviallyDead (I=0x9d14b10) at Local.cpp:328
#1  0x00115a40 in ErasePossiblyDeadInstructionTree (I=0x9d14b10) at SimplifyCFG.cpp:462
#2  0x00115b5c in ErasePossiblyDeadInstructionTree (I=0x9d3ba50) at SimplifyCFG.cpp:467
#3  0x0011b198 in llvm::SimplifyCFG (BB=0x9fee8d0) at SimplifyCFG.cpp:1829
#4  0x000c52a4 in (anonymous namespace)::CFGSimplifyPass::runOnFunction (this=0x6b037c0, 
F=@0x6b696a0) at SimplifyCFG.cpp:121
#5  0x005845a8 in llvm::FunctionPassManagerT::runPass (this=0x6ba91b0, P=0x6b037c0, 
F=0x6b696a0) at PassManagerT.h:795
#6  0x005a2e38 in llvm::PassManagerT<llvm::FTraits>::runPasses (this=0x6ba91c8, M=0x6b696a0, 
LastUserOf=@0xbffff058) at PassManagerT.h:596
#7  0x005a6500 in llvm::PassManagerT<llvm::FTraits>::runOnUnit (this=0x6ba91c8, M=0x6b696a0) at 
#8  0x00584774 in llvm::FunctionPassManagerT::runOnFunction (this=0x6ba91b0, F=@0x6b696a0) at 
#9  0x00181dfc in llvm::FunctionPass::runOnModule (this=0x6ba91b0, M=@0x6b03700) at Pass.cpp:
#10 0x005846ac in llvm::ModulePassManager::runPass (this=0x6bb2e00, P=0x6ba91b0, 
M=0x6b03700) at PassManagerT.h:837
#11 0x005a2730 in llvm::PassManagerT<llvm::MTraits>::runPasses (this=0x6bb2e18, M=0x6b03700, 
LastUserOf=@0xbffff278) at PassManagerT.h:596
#12 0x005a4924 in llvm::PassManagerT<llvm::MTraits>::runOnUnit (this=0x6bb2e18, M=0x6b03700) 
at PassManagerT.h:282
#13 0x00180b1c in llvm::ModulePassManager::runOnModule (this=0x6bb2e00, M=@0x6b03700) at 
#14 0x00180df4 in llvm::PassManager::run (this=0xbffff66c, M=@0x6b03700) at Pass.cpp:85
#15 0x000044fc in main (argc=8, argv=0xbffff7a4) at opt.cpp:169

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list