[LLVMbugs] [Bug 6760] New: The -globalopt pass assertions on the given code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 1 15:21:58 PDT 2010


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

           Summary: The -globalopt pass assertions on the given code
           Product: libraries
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Interprocedural Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: criswell at uiuc.edu
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4622)
 --> (http://llvm.org/bugs/attachment.cgi?id=4622)
Reduced test case from 164.gzip

The Global Variable optimization pass asserts when run on the attached LLVM
bitcode.  It occurs when using the release_27 branch.

opt -f -o /dev/null -globalopt bugpoint-reduced-simplified.bc 
Assertion failed: (GEPI->getNumOperands() >= 3 &&
isa<ConstantInt>(GEPI->getOperand(2)) && "Unexpected GEPI!"), function
RewriteHeapSROALoadUser, file
/Users/criswell/src/llvm27/lib/Transforms/IPO/GlobalOpt.cpp, line 1197.
0  opt               0x000000010041c557 PrintStackTrace(void*) + 38
1  opt               0x000000010041ca4e SignalHandler(int) + 336
2  libSystem.B.dylib 0x00007fff83053eaa _sigtramp + 26
3  libSystem.B.dylib 0x00000001013f5000 _sigtramp + 2117734768
4  libSystem.B.dylib 0x00007fff830cfe74 __pthread_markcancel + 0
5  opt               0x0000000100083a33
RewriteHeapSROALoadUser(llvm::Instruction*, llvm::DenseMap<llvm::Value*,
std::vector<llvm::Value*, std::allocator<llvm::Value*> >,
llvm::DenseMapInfo<llvm::Value*>, llvm::DenseMapInfo<std::vector<llvm::Value*,
std::allocator<llvm::Value*> > > >&, std::vector<std::pair<llvm::PHINode*,
unsigned int>, std::allocator<std::pair<llvm::PHINode*, unsigned int> > >&) +
574
6  opt               0x0000000100083dfc
RewriteUsesOfLoadForHeapSRoA(llvm::LoadInst*, llvm::DenseMap<llvm::Value*,
std::vector<llvm::Value*, std::allocator<llvm::Value*> >,
llvm::DenseMapInfo<llvm::Value*>, llvm::DenseMapInfo<std::vector<llvm::Value*,
std::allocator<llvm::Value*> > > >&, std::vector<std::pair<llvm::PHINode*,
unsigned int>, std::allocator<std::pair<llvm::PHINode*, unsigned int> > >&) +
109
7  opt               0x0000000100084c3c
PerformHeapAllocSRoA(llvm::GlobalVariable*, llvm::CallInst*, llvm::Value*,
llvm::TargetData*) + 2457
8  opt               0x0000000100085e5d
TryToOptimizeStoreOfMallocToGlobal(llvm::GlobalVariable*, llvm::CallInst*,
llvm::Type const*, llvm::ilist_iterator<llvm::GlobalVariable>&,
llvm::TargetData*) + 1173
9  opt               0x000000010008660d
OptimizeOnceStoredGlobal(llvm::GlobalVariable*, llvm::Value*,
llvm::ilist_iterator<llvm::GlobalVariable>&, llvm::TargetData*) + 309
10 opt               0x0000000100087bcd (anonymous
namespace)::GlobalOpt::ProcessInternalGlobal(llvm::GlobalVariable*,
llvm::ilist_iterator<llvm::GlobalVariable>&) + 2081
11 opt               0x0000000100087dbe (anonymous
namespace)::GlobalOpt::OptimizeGlobalVars(llvm::Module&) + 360
12 opt               0x0000000100087e75 (anonymous
namespace)::GlobalOpt::runOnModule(llvm::Module&) + 137
13 opt               0x00000001003ab5fe
llvm::MPPassManager::runOnModule(llvm::Module&) + 376
14 opt               0x00000001003ad4d1
llvm::PassManagerImpl::run(llvm::Module&) + 111
15 opt               0x00000001003ad533 llvm::PassManager::run(llvm::Module&) +
33
16 opt               0x000000010006090f main + 3130
17 opt               0x00000001000568cc start + 52
18 opt               0x0000000000000006 start + 4294612846

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