[LLVMbugs] [Bug 15608] New: X86: llc -O3 crashes with "cast<Ty>() argument of incompatible type!"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Mar 26 23:12:33 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15608
Bug ID: 15608
Summary: X86: llc -O3 crashes with "cast<Ty>() argument of
incompatible type!"
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Backend: X86
Assignee: unassignedbugs at nondot.org
Reporter: kai at redstar.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
The attached .ll crashes llc on X86/X86_64 if llc is invoked with -O3.
The file was created by LDC linked against LLVM 3.1 and then reduced by
bugpoint.
The resulting file crashes on all LLVM versions since 3.0 including ToT.
Stacktrace is:
llc: /xtra/llvm-3.2.src/include/llvm/Support/Casting.h:208: typename
cast_retty<X, Y>::ret_type llvm::cast(const Y &) [X = llvm::CondCodeSDNode, Y =
llvm::SDValue]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible
type!"' failed.
0 llc 0x000000000148764e
1 llc 0x0000000001487b4a
2 libpthread.so.0 0x00007f6d24736b00
3 libc.so.6 0x00007f6d2399dfa5 gsignal + 53
4 libc.so.6 0x00007f6d2399f428 abort + 328
5 libc.so.6 0x00007f6d23996f92
6 libc.so.6 0x00007f6d23997042
7 llc 0x00000000006b3d46
8 llc 0x0000000000be04cf
9 llc 0x0000000000bc70ef
10 llc 0x0000000000bc66ae
11 llc 0x0000000000bc6186
12 llc 0x0000000000bc5f09
llvm::SelectionDAG::Combine(llvm::CombineLevel, llvm::AliasAnalysis&,
llvm::CodeGenOpt::Level) + 73
13 llc 0x0000000000cebb27
llvm::SelectionDAGISel::CodeGenAndEmitDAG() + 695
14 llc 0x0000000000ceb85d
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 253
15 llc 0x0000000000ceb6dc
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 3180
16 llc 0x0000000000ce9dae
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 830
17 llc 0x0000000000ef9d5e
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 110
18 llc 0x0000000001391dda
llvm::FPPassManager::runOnFunction(llvm::Function&) + 442
19 llc 0x00000000013920dd
llvm::FPPassManager::runOnModule(llvm::Module&) + 125
20 llc 0x000000000139232d
llvm::MPPassManager::runOnModule(llvm::Module&) + 493
21 llc 0x00000000013929b7 llvm::PassManagerImpl::run(llvm::Module&)
+ 167
22 llc 0x0000000001392b91 llvm::PassManager::run(llvm::Module&) +
33
23 llc 0x00000000005f9cd6 main + 5062
24 libc.so.6 0x00007f6d2398a6c5 __libc_start_main + 245
25 llc 0x00000000005f8835
Stack dump:
0. Program arguments: /usr/local/llvm-3.2/bin/llc -O3
bugpoint-reduced-simplified.ll
1. Running pass 'Function Pass Manager' on module
'bugpoint-reduced-simplified.ll'.
2. Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_D3std5range18__unittestL6598_89FZv'
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130327/d5a86898/attachment.html>
More information about the llvm-bugs
mailing list