[LLVMbugs] [Bug 10077] New: Crash with -O0 -regalloc=greedy
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jun 3 16:12:43 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=10077
Summary: Crash with -O0 -regalloc=greedy
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Register Allocator
AssignedTo: unassignedbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
$ cat test.ll
%bar = type { i32 }
define i32 @foo() {
%tmp = extractvalue %bar undef, 0
ret i32 %tmp
}
Starting program: /Users/espindola/llvm/build-dbg/Debug+Asserts/bin/llc test.ll
-O0 -regalloc=greedy
Reading symbols for shared libraries ++. done
Assertion failed: (MRI->getVRegDef(reg) && "Register use before def!"),
function HandleVirtRegUse, file
/Users/espindola/llvm/llvm/lib/CodeGen/LiveVariables.cpp, line 128.
Program received signal SIGABRT, Aborted.
0x9906051e in __pthread_kill ()
(gdb) bt
#0 0x9906051e in __pthread_kill ()
#1 0x9905fdcb in pthread_kill ()
#2 0x00e36ce0 in raise (sig=6) at Signals.inc:281
#3 0x00e36dd2 in abort () at Signals.inc:298
#4 0x00e36da2 in __assert_rtn (func=0xf40729 "HandleVirtRegUse", file=0xf40680
"/Users/espindola/llvm/llvm/lib/CodeGen/LiveVariables.cpp", line=128,
expr=0xf4073a "MRI->getVRegDef(reg) && \"Register use before def!\"") at
Signals.inc:294
#5 0x0085f197 in llvm::LiveVariables::HandleVirtRegUse (this=0x2905800,
reg=2147483649, MBB=0x3031a84, MI=0x3031b04) at
/Users/espindola/llvm/llvm/lib/CodeGen/LiveVariables.cpp:128
#6 0x00861284 in llvm::LiveVariables::runOnMachineFunction (this=0x2905800,
mf=@0x2909220) at /Users/espindola/llvm/llvm/lib/CodeGen/LiveVariables.cpp:557
#7 0x00890b93 in llvm::MachineFunctionPass::runOnFunction (this=0x2905800,
F=@0x29016b0) at
/Users/espindola/llvm/llvm/lib/CodeGen/MachineFunctionPass.cpp:33
#8 0x00d0f852 in llvm::FPPassManager::runOnFunction (this=0x29024b0,
F=@0x29016b0) at /Users/espindola/llvm/llvm/lib/VMCore/PassManager.cpp:1513
#9 0x00d0fc31 in llvm::FPPassManager::runOnModule (this=0x29024b0,
M=@0x29013f0) at /Users/espindola/llvm/llvm/lib/VMCore/PassManager.cpp:1535
#10 0x00d0feb7 in llvm::MPPassManager::runOnModule (this=0x2902180,
M=@0x29013f0) at /Users/espindola/llvm/llvm/lib/VMCore/PassManager.cpp:1589
#11 0x00d10657 in llvm::PassManagerImpl::run (this=0x2901fc0, M=@0x29013f0) at
/Users/espindola/llvm/llvm/lib/VMCore/PassManager.cpp:1671
#12 0x00d10b57 in llvm::PassManager::run (this=0xbffff768, M=@0x29013f0) at
/Users/espindola/llvm/llvm/lib/VMCore/PassManager.cpp:1715
#13 0x00002954 in main (argc=4, argv=0xbffff8b4) at
/Users/espindola/llvm/llvm/tools/llc/llc.cpp:338
--
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