[LLVMbugs] [Bug 4716] New: Another regscavenger assertion

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Aug 14 00:18:26 PDT 2009


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

           Summary: Another regscavenger assertion
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: ARM
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: asl at math.spbu.ru
                CC: evan.cheng at apple.com, llvmbugs at cs.uiuc.edu,
                    ojomojo at gmail.com, stoklund at 2pi.dk


Created an attachment (id=3310)
 --> (http://llvm.org/bugs/attachment.cgi?id=3310)
regscav.ll

Consider the attached testcase. It currently causes the following assertion:

Assertion failed: ((KillRegs.test(Reg) || isUnused(Reg) ||
isLiveInButUnusedBefore(Reg, MI, MBB, TRI, MRI)) && "Re-defining a live
register!"), function forward, file
/Users/asl/Projects/llvm/src/lib/CodeGen/RegisterScavenging.cpp, line 245.
0   llc               0x00adf040 llvm::sys::SetInterruptFunction(void (*)()) +
82
1   llc               0x00adf42f llvm::sys::SetInterruptFunction(void (*)()) +
1089
2   libSystem.B.dylib 0x9329c2bb _sigtramp + 43
3   libSystem.B.dylib 0xffffffff _sigtramp + 1825979759
4   libSystem.B.dylib 0x9331023a raise + 26
5   libSystem.B.dylib 0x9331c679 abort + 73
6   libSystem.B.dylib 0x933113db __assert_rtn + 101
7   llc               0x0088f03c llvm::RegScavenger::forward() + 1418
8   llc               0x0037f94d
llvm::RegScavenger::forward(llvm::ilist_iterator<llvm::MachineInstr>) + 107
9   llc               0x008558dd
llvm::PEI::replaceFrameIndices(llvm::MachineFunction&) + 1221
10  llc               0x00857881
llvm::PEI::runOnMachineFunction(llvm::MachineFunction&) + 407
11  llc               0x00823f8f
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 77
12  llc               0x00a56db8
llvm::FPPassManager::runOnFunction(llvm::Function&) + 304
13  llc               0x00a57028
llvm::FunctionPassManagerImpl::run(llvm::Function&) + 112
14  llc               0x00a5713c
llvm::FunctionPassManager::run(llvm::Function&) + 130
15  llc               0x000038ba main + 3664
16  llc               0x00002436 start + 54
17  llc               0x00000003 start + 18446744073709542403
Stack dump:
0.      Program arguments: ./llc regscav4.bc -debug 
1.      Running pass 'Prolog/Epilog Insertion & Frame Finalization' on function
'@_start'


I believe that this testcase worked fine ~month ago, so this should be some
fallout from recent changes


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