[LLVMbugs] [Bug 1766] New: Assertion `Reg && "this is not a register!"' failed

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Nov 4 01:53:48 PDT 2007


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

           Summary: Assertion `Reg && "this is not a register!"' failed
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: edwintorok at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=1187)
 --> (http://llvm.org/bugs/attachment.cgi?id=1187)
llc bugpoint-reduced-simplified.bc -f gives assertion failure

Compiling the attached reduced C testcase with llvm-gcc -O1 I get that
assertion failure.
If I compile without -O1 I don't get the error.
If I compile to bitcode, and then generate code I don't get the error.
If I also optimize the bitcode, I get the error at codegen time.

$ llc bugpoint-reduced-simplified.bc -f
llc: /home/edwin/llvm-svn/llvm/include/llvm/Target/MRegisterInfo.h:318: static
bool llvm::MRegisterInfo::isVirtualRegister(unsigned int): Assertion `Reg &&
"this is not a register!"' failed.
llc[0xce97ea]
llc[0xce9a56]
/lib/libc.so.6[0x32d1c31710]
/lib/libc.so.6(gsignal+0x35)[0x32d1c316a5]
/lib/libc.so.6(abort+0x110)[0x32d1c33100]
/lib/libc.so.6(__assert_fail+0xef)[0x32d1c2ac2f]
llc(llvm::MRegisterInfo::isVirtualRegister(unsigned int)+0x2a)[0x800990]
llc(llvm::MRegisterInfo::regsOverlap(unsigned int, unsigned int)
const+0x2b)[0xb5b397]
llc(llvm::LiveIntervals::conflictsWithPhysRegDef(llvm::LiveInterval const&,
llvm::VirtRegMap&, unsigned int)+0x13f)[0xb7811b]
llc[0xb40721]
llc[0xb40d47]
llc[0xb41068]
llc(llvm::MachineFunctionPass::runOnFunction(llvm::Function&)+0x33)[0x773699]
llc(llvm::FPPassManager::runOnFunction(llvm::Function&)+0x10e)[0xc7bf22]
llc(llvm::FunctionPassManagerImpl::run(llvm::Function&)+0x74)[0xc7c148]
llc(llvm::FunctionPassManager::run(llvm::Function&)+0x7f)[0xc7c2a5]
llc(main+0x8ac)[0x7593be]
/lib/libc.so.6(__libc_start_main+0xf4)[0x32d1c1db44]
llc(atan+0x139)[0x757c29]
Aborted

Attaching testcases.


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