[LLVMbugs] [Bug 14601] New: Assertion in SROA when alloca is memset'ted with variable length
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Dec 13 14:21:18 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14601
Bug #: 14601
Summary: Assertion in SROA when alloca is memset'ted with
variable length
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: opt
AssignedTo: unassignedbugs at nondot.org
ReportedBy: jvoung at google.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 9697
--> http://llvm.org/bugs/attachment.cgi?id=9697
reproducer
With the attached temp2.ll run:
> opt -o bugpoint-output.bc -sroa temp2.ll
See the log:
opt: /usr/local/home/llvm-w-git/llvm/lib/Transforms/Scalar/SROA.cpp:2321: bool
{anonymous}::AllocaPartitionRewriter::visitUsers({anonymous}::AllocaPartitioning::const_use_iterator,
{anonymous}::AllocaPartitioning::const_use_iterator): Assertion `CanSROA'
failed.
0 opt 0x000000000119d43f
1 opt 0x000000000119d969
2 libpthread.so.0 0x00007f6270d40cb0
3 libc.so.6 0x00007f626ff92425 gsignal + 53
4 libc.so.6 0x00007f626ff95b8b abort + 379
5 libc.so.6 0x00007f626ff8b0ee
6 libc.so.6 0x00007f626ff8b192
7 opt 0x0000000000d40e35
8 opt 0x0000000000d453ca
9 opt 0x0000000000d456e6
10 opt 0x00000000011317af
llvm::FPPassManager::runOnFunction(llvm::Function&) + 607
11 opt 0x000000000113181b
llvm::FPPassManager::runOnModule(llvm::Module&) + 43
12 opt 0x0000000001131470
llvm::MPPassManager::runOnModule(llvm::Module&) + 688
13 opt 0x0000000001134607 llvm::PassManagerImpl::run(llvm::Module&)
+ 247
14 opt 0x00000000005522d7 main + 5815
15 libc.so.6 0x00007f626ff7d76d __libc_start_main + 237
16 opt 0x0000000000568425
Stack dump:
0. Program arguments: opt -o bugpoint-output.bc -sroa temp2.ll
1. Running pass 'Function Pass Manager' on module 'temp2.ll'.
2. Running pass 'SROA' on function '@channel_post_port_listener'
Aborted (core dumped)
--
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