[LLVMbugs] [Bug 7707] New: Assertion in TwoAddressInstructionPass
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jul 25 05:34:38 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7707
Summary: Assertion in TwoAddressInstructionPass
Product: libraries
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: asl at math.spbu.ru
CC: llvmbugs at cs.uiuc.edu
Created an attachment (id=5261)
--> (http://llvm.org/bugs/attachment.cgi?id=5261)
Testcase
Consider the attached .ll file.
Running llc -O0 yields:
$ ./llc -O0 bugpoint-reduced-simplified2.ll
Assertion failed: (i < getNumOperands() && "getOperand() out of range!"),
function getOperand, file
/Users/asl/Projects/llvm/src-git/include/llvm/CodeGen/MachineInstr.h, line 159.
0 llc 0x00000001006f3430 PrintStackTrace(void*) + 38
1 llc 0x00000001006f393e SignalHandler(int) + 254
2 libSystem.B.dylib 0x00007fff83fbf35a _sigtramp + 26
3 libSystem.B.dylib 0x0000000101f12760 _sigtramp + 2113221664
4 libSystem.B.dylib 0x00007fff8403a9b4 __pthread_markcancel + 0
5 llc 0x00000001000ae31d llvm::MachineInstr::getOperand(unsigned
int) const + 79
6 llc 0x000000010037c832
llvm::MachineInstr::isRegTiedToDefOperand(unsigned int, unsigned int*) const +
604
7 llc 0x0000000100466d6d (anonymous
namespace)::TwoAddressInstructionPass::runOnMachineFunction(llvm::MachineFunction&)
+ 1249
8 llc 0x000000010037b057
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 85
9 llc 0x0000000100649846
llvm::FPPassManager::runOnFunction(llvm::Function&) + 348
10 llc 0x0000000100649a19
llvm::FPPassManager::runOnModule(llvm::Module&) + 81
11 llc 0x0000000100649518
llvm::MPPassManager::runOnModule(llvm::Module&) + 384
12 llc 0x000000010064acc1
llvm::PassManagerImpl::run(llvm::Module&) + 111
13 llc 0x000000010064ad23 llvm::PassManager::run(llvm::Module&) +
33
14 llc 0x00000001000252fb main + 2143
15 llc 0x00000001000242a4 start + 52
16 llc 0x0000000000000003 start + 4294819219
The problem seems to be hidden by -ON with N > 0
--
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