[LLVMbugs] [Bug 12171] New: Assertion in SelectionDAGBuilder::setValue "Already set a value for this node!"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Mar 3 03:59:32 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12171
Bug #: 12171
Summary: Assertion in SelectionDAGBuilder::setValue "Already
set a value for this node!"
Product: libraries
Version: trunk
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Common Code Generator Code
AssignedTo: unassignedbugs at nondot.org
ReportedBy: benh at kernel.crashing.org
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8136
--> http://llvm.org/bugs/attachment.cgi?id=8136
Test case
While trying to track down a different bug, I stumbled upon this with
the attached test case (on both i386 and powerpc 32-bit in linux, the original
bug has to do with incorrect 4 x i1 sign extension to 4 x i32, I will file
it separately).
$ /opt/llvm/bin/lli bug.ll
lli:
/home/benh/hackplace/llvmplay/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h:398:
void llvm::SelectionDAGBuilder::setValue(const llvm::Value*, llvm::SDValue):
Assertion `N.getNode() == 0 && "Already set a value for this node!"' failed.
0 lli 0x10f30d08
1 lli 0x10f309a4
2 0x00100364 __kernel_sigtramp32 + 0
3 0xfffb1448 __kernel_sigtramp32 + 4293595364
4 libc.so.6 0x0fc15138 abort + 600
5 libc.so.6 0x0fc06af0 __assert_fail + 240
6 lli 0x105dc578
7 lli 0x105cb08c
llvm::SelectionDAGBuilder::LowerCallTo(llvm::ImmutableCallSite, llvm::SDValue,
bool, llvm::MachineBasicBlock*) + 3184
8 lli 0x105cebe4 llvm::SelectionDAGBuilder::visitCall(llvm::CallInst
const&) + 9892
9 lli 0x105a7cac llvm::SelectionDAGBuilder::visit(unsigned int,
llvm::User const&) + 1016
10 lli 0x105a77c8 llvm::SelectionDAGBuilder::visit(llvm::Instruction
const&) + 172
11 lli 0x106088dc
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 120
12 lli 0x1060bb44
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 3060
13 lli 0x10607dac
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 960
14 lli 0x10489678
15 lli 0x1085231c
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 148
16 lli 0x10e8e2ac llvm::FPPassManager::runOnFunction(llvm::Function&) +
424
17 lli 0x10e8dea0 llvm::FunctionPassManagerImpl::run(llvm::Function&) +
132
18 lli 0x10e8d884 llvm::FunctionPassManager::run(llvm::Function&) + 228
19 lli 0x107d0a0c llvm::JIT::jitTheFunction(llvm::Function*,
llvm::MutexGuard const&) + 108
20 lli 0x107d08a8 llvm::JIT::runJITOnFunctionUnlocked(llvm::Function*,
llvm::MutexGuard const&) + 112
21 lli 0x107d0ca8 llvm::JIT::getPointerToFunction(llvm::Function*) + 600
22 lli 0x107cf3b8 llvm::JIT::runFunction(llvm::Function*,
std::vector<llvm::GenericValue, std::allocator<llvm::GenericValue> > const&) +
192
23 lli 0x10c85a44
llvm::ExecutionEngine::runFunctionAsMain(llvm::Function*,
std::vector<std::string, std::allocator<std::string> > const&, char const*
const*) + 1200
24 lli 0x103b4cac main + 2256
25 libc.so.6 0x0fbf77ec
26 libc.so.6 0x0fbf79b0
Stack dump:
0. Program arguments: /opt/llvm/bin/lli bug.ll
1. Running pass 'PowerPC DAG->DAG Pattern Instruction Selection' on function
'@main'
Aborted
--
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