[LLVMbugs] [Bug 13498] New: assertion in greedy with PIC enabled

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 31 18:50:02 PDT 2012


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

             Bug #: 13498
           Summary: assertion in greedy with PIC enabled
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Crash in greedy register allocator:

llc: SplitKit.cpp:504: llvm::SlotIndex
llvm::SplitEditor::enterIntvAfter(llvm::SlotIndex): Assertion `MI &&
"enterIntvAfter called with invalid index"' failed.
0  llc             0x000000000151a4b5
1  llc             0x000000000151aac8
2  libpthread.so.0 0x00007f63405ba8f0
3  libc.so.6       0x00007f633f8a9a75 gsignal + 53
4  libc.so.6       0x00007f633f8ad5c0 abort + 384
5  libc.so.6       0x00007f633f8a2941 __assert_fail + 241
6  llc             0x000000000106c118
llvm::SplitEditor::enterIntvAfter(llvm::SlotIndex) + 552
7  llc             0x00000000010728d5
llvm::SplitEditor::splitRegOutBlock(llvm::SplitAnalysis::BlockInfo const&,
unsigned int, llvm::SlotIndex) + 1637
8  llc             0x0000000001000fb2
9  llc             0x0000000000ffefdd
10 llc             0x0000000000ffc181
11 llc             0x0000000000ff9dfd
12 llc             0x0000000000ffa2c4
13 llc             0x00000000010f368f llvm::RegAllocBase::allocatePhysRegs() +
719
14 llc             0x0000000000ff98b5
15 llc             0x0000000000f6df20
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 112
16 llc             0x000000000148c505
llvm::FPPassManager::runOnFunction(llvm::Function&) + 389
17 llc             0x000000000148c853
llvm::FPPassManager::runOnModule(llvm::Module&) + 131
18 llc             0x000000000148cae3
llvm::MPPassManager::runOnModule(llvm::Module&) + 515
19 llc             0x000000000148d267 llvm::PassManagerImpl::run(llvm::Module&)
+ 167
20 llc             0x000000000148d46d llvm::PassManager::run(llvm::Module&) +
29
21 llc             0x00000000005f459f main + 6063
22 libc.so.6       0x00007f633f894c4d __libc_start_main + 253
23 llc             0x00000000005f0cc9
Stack dump:
0.      Program arguments: llvm/Debug+Asserts/bin/llc -relocation-model=pic
b.ll 
1.      Running pass 'Function Pass Manager' on module 'b.ll'.
2.      Running pass 'Greedy Register Allocator' on function
'@cvBackProjectPCA'
Aborted

Apologies for the testcase, but this is bugpoint+hand reduction for hours. It's
sensitive to things like basic block ordering.

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