[LLVMbugs] [Bug 17709] New: Assertion `CS->getCalledFunction() && "direct call cannot find callee"' failed.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Oct 28 09:04:02 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=17709
Bug ID: 17709
Summary: Assertion `CS->getCalledFunction() && "direct call
cannot find callee"' failed.
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Backend: PTX
Assignee: unassignedbugs at nondot.org
Reporter: maemarcus at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
marcusmae at M17xR4:~/forge/bugs$ kernelgen-opt --version
LLVM (http://llvm.org/):
LLVM version 3.4svn
DEBUG build with assertions.
Built Oct 18 2013 (16:19:23).
Default target: x86_64-unknown-linux-gnu
Host CPU: core-avx-i
marcusmae at M17xR4:~/forge/bugs$ cat fausto_reduced.ll
; ModuleID = '__kernelgen_main_module'
target datalayout =
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v16:16:16-v32:32:32-v64:64:64-v128:128:128-n16:32:64"
target triple = "nvptx64-nvidia-cuda"
define linker_private ptx_device { double, double }
@__utils1_MOD_trace(%"struct.array2_complex(kind=8).43.5.57"* noalias %m) {
entry:
unreachable
}
%struct.descriptor_dimension.0.52 = type { i64, i64, i64 }
%"struct.array2_complex(kind=8).37.18.70" = type { i8*, i64, i64, [2 x
%struct.descriptor_dimension.0.52] }
%"struct.array2_complex(kind=8).43.5.57" = type { i8*, i64, i64, [2 x
%struct.descriptor_dimension.0.52] }
@replacementOfAlloca8 = private global
%"struct.array2_complex(kind=8).37.18.70" zeroinitializer, align 4096
define ptx_kernel void @__kernelgen_main(i32* nocapture %args, i32*) {
entry:
%1 = tail call ptx_device { double, double } bitcast ({ double, double }
(%"struct.array2_complex(kind=8).43.5.57"*)* @__utils1_MOD_trace to { double,
double }
(%"struct.array2_complex(kind=8).37.18.70"*)*)(%"struct.array2_complex(kind=8).37.18.70"*
noalias @replacementOfAlloca8)
ret void
}
marcusmae at M17xR4:~/forge/bugs$ kernelgen-llc fausto_reduced.ll -o -
//
// Generated by LLVM NVPTX Back-End
//
.version 3.1
.target sm_20
.address_size 64
.global .align 4096 .b8 replacementOfAlloca8[72];
// @__utils1_MOD_trace
.func (.param .align 8 .b8 func_retval0[16]) __utils1_MOD_trace(
.param .b64 __utils1_MOD_trace_param_0
)
{
// BB#0: // %entry
}
kernelgen-llc:
/home/marcusmae/rpmbuild/kernelgen/r2190_llvm192445_debug/BUILD/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp:483:
unsigned int llvm::NVPTXTargetLowering::getArgumentAlignment(llvm::SDValue,
const llvm::ImmutableCallSite*, llvm::Type*, unsigned int) const: Assertion
`CS->getCalledFunction() && "direct call cannot find callee"' failed.
0 libLLVM-3.4svn.so 0x00007fb3607688b1 llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1 libLLVM-3.4svn.so 0x00007fb360768b2e
2 libLLVM-3.4svn.so 0x00007fb36076858d
3 libpthread.so.0 0x00007fb35f260a90
4 libc.so.6 0x00007fb35ec624e1 gsignal + 89
5 libc.so.6 0x00007fb35ec63756 abort + 278
6 libc.so.6 0x00007fb35ec5bb74 __assert_fail + 0
7 libc.so.6 0x00007fb35ec5bbb6
8 libLLVM-3.4svn.so 0x00007fb3603e126f
llvm::NVPTXTargetLowering::getArgumentAlignment(llvm::SDValue,
llvm::ImmutableCallSite const*, llvm::Type*, unsigned int) const + 163
9 libLLVM-3.4svn.so 0x00007fb3603e42c7
llvm::NVPTXTargetLowering::LowerCall(llvm::TargetLowering::CallLoweringInfo&,
llvm::SmallVectorImpl<llvm::SDValue>&) const + 12237
10 libLLVM-3.4svn.so 0x00007fb3606cb07d
llvm::TargetLowering::LowerCallTo(llvm::TargetLowering::CallLoweringInfo&)
const + 2699
11 libLLVM-3.4svn.so 0x00007fb3606c37d9
llvm::SelectionDAGBuilder::LowerCallTo(llvm::ImmutableCallSite, llvm::SDValue,
bool, llvm::MachineBasicBlock*) + 2485
12 libLLVM-3.4svn.so 0x00007fb3606c6787
llvm::SelectionDAGBuilder::visitCall(llvm::CallInst const&) + 2341
13 libLLVM-3.4svn.so 0x00007fb3606a0a2a
llvm::SelectionDAGBuilder::visit(unsigned int, llvm::User const&) + 1232
14 libLLVM-3.4svn.so 0x00007fb3606a04c8
llvm::SelectionDAGBuilder::visit(llvm::Instruction const&) + 140
15 libLLVM-3.4svn.so 0x00007fb3606e7815
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::Instruction
const>, llvm::ilist_iterator<llvm::Instruction const>, bool&) + 69
16 libLLVM-3.4svn.so 0x00007fb3606ea41c
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 2990
17 libLLVM-3.4svn.so 0x00007fb3606e6c1a
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 980
18 libLLVM-3.4svn.so 0x00007fb35fefb349
llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 95
19 libLLVM-3.4svn.so 0x00007fb360169966
llvm::FPPassManager::runOnFunction(llvm::Function&) + 290
20 libLLVM-3.4svn.so 0x00007fb360169ad6
llvm::FPPassManager::runOnModule(llvm::Module&) + 84
21 libLLVM-3.4svn.so 0x00007fb360169e2a
llvm::MPPassManager::runOnModule(llvm::Module&) + 556
22 libLLVM-3.4svn.so 0x00007fb36016a420
llvm::PassManagerImpl::run(llvm::Module&) + 244
23 libLLVM-3.4svn.so 0x00007fb36016a62b llvm::PassManager::run(llvm::Module&) +
39
24 kernelgen-llc 0x000000000040ef08
25 kernelgen-llc 0x000000000040dfe7 main + 237
26 libc.so.6 0x00007fb35ec4fa7c __libc_start_main + 376
27 kernelgen-llc 0x000000000040d929
Stack dump:
0. Program arguments: kernelgen-llc fausto_reduced.ll -o -
1. Running pass 'Function Pass Manager' on module 'fausto_reduced.ll'.
2. Running pass 'NVPTX DAG->DAG Pattern Instruction Selection' on function
'@__kernelgen_main'
Aborted (core dumped)
--
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/20131028/7cffe6b5/attachment.html>
More information about the llvm-bugs
mailing list