[LLVMbugs] [Bug 22674] New: r230280 caused assertation
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Feb 24 05:50:00 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22674
Bug ID: 22674
Summary: r230280 caused assertation
Product: new-bugs
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: hjl.tools at gmail.com
CC: llvmbugs at cs.uiuc.edu, sanjoy at playingwithpointers.com
Classification: Unclassified
Created attachment 13935
--> http://llvm.org/bugs/attachment.cgi?id=13935&action=edit
A testcase
[hjl at gnu-mic-2 bin]$ ./llc < /tmp/x.ll > x.s
llc: /export/gnu/import/git/llvm/include/llvm/IR/Instructions.h:2281:
llvm::Value* llvm::PHINode::getOperand(unsigned int) const: Assertion
`i_nocapture < OperandTraits<PHINode>::operands(this) && "getOperand() out of
range!"' failed.
0 llc 0x0000000001de587e llvm::sys::PrintStackTrace(_IO_FILE*) +
38
1 llc 0x0000000001de5b19
2 llc 0x0000000001de47da
3 libpthread.so.0 0x0000003a5520f690
4 libc.so.6 0x0000003a54e35777 gsignal + 55
5 libc.so.6 0x0000003a54e36e68 abort + 328
6 libc.so.6 0x0000003a54e2e6d6
7 libc.so.6 0x0000003a54e2e782
8 llc 0x00000000010b628d
9 llc 0x00000000010b624c
10 llc 0x000000000151965f
llvm::ScalarEvolution::ComputeExitCountExhaustively(llvm::Loop const*,
llvm::Value*, bool) + 327
11 llc 0x0000000001517d00
llvm::ScalarEvolution::ComputeExitLimitFromICmp(llvm::Loop const*,
llvm::ICmpInst*, llvm::BasicBlock*, llvm::BasicBlock*, bool) + 1560
12 llc 0x00000000015175b8
llvm::ScalarEvolution::ComputeExitLimitFromCond(llvm::Loop const*,
llvm::Value*, llvm::BasicBlock*, llvm::BasicBlock*, bool) + 1672
13 llc 0x0000000001516ea6
llvm::ScalarEvolution::ComputeExitLimit(llvm::Loop const*, llvm::BasicBlock*) +
980
14 llc 0x00000000015168f6
llvm::ScalarEvolution::ComputeBackedgeTakenCount(llvm::Loop const*) + 214
15 llc 0x0000000001515920
llvm::ScalarEvolution::getBackedgeTakenInfo(llvm::Loop const*) + 214
16 llc 0x00000000015155d7
llvm::ScalarEvolution::getMaxBackedgeTakenCount(llvm::Loop const*) + 35
17 llc 0x0000000001504557
llvm::ScalarEvolution::getZeroExtendExpr(llvm::SCEV const*, llvm::Type*) + 1245
18 llc 0x0000000001549143
19 llc 0x00000000015499d4
llvm::SCEVExpander::getAddRecExprPHILiterally(llvm::SCEVAddRecExpr const*,
llvm::Loop const*, llvm::Type*, llvm::Type*, llvm::Type*&, bool&) + 2170
20 llc 0x0000000001549e49
llvm::SCEVExpander::expandAddRecExprLiterally(llvm::SCEVAddRecExpr const*) +
829
21 llc 0x000000000154a4c8
llvm::SCEVExpander::visitAddRecExpr(llvm::SCEVAddRecExpr const*) + 74
22 llc 0x000000000154e073
23 llc 0x000000000154bbb1 llvm::SCEVExpander::expand(llvm::SCEV
const*) + 917
24 llc 0x000000000154b78c
llvm::SCEVExpander::expandCodeFor(llvm::SCEV const*, llvm::Type*) + 40
25 llc 0x000000000154b762
llvm::SCEVExpander::expandCodeFor(llvm::SCEV const*, llvm::Type*,
llvm::Instruction*) + 104
26 llc 0x0000000001b45a94
27 llc 0x0000000001b46b22
28 llc 0x0000000001b46e2e
29 llc 0x0000000001b478d4
30 llc 0x0000000001b4807a
31 llc 0x0000000001f60cc5
llvm::LPPassManager::runOnFunction(llvm::Function&) + 965
32 llc 0x0000000001a2855e
llvm::FPPassManager::runOnFunction(llvm::Function&) + 290
33 llc 0x0000000001a286ce
llvm::FPPassManager::runOnModule(llvm::Module&) + 84
34 llc 0x0000000001a28a22
35 llc 0x0000000001a290d0
llvm::legacy::PassManagerImpl::run(llvm::Module&) + 244
36 llc 0x0000000001a292ef
llvm::legacy::PassManager::run(llvm::Module&) + 39
37 llc 0x0000000000ba6253
38 llc 0x0000000000ba5438 main + 237
39 libc.so.6 0x0000003a54e21c65 __libc_start_main + 245
40 llc 0x0000000000ba2619
Stack dump:
0. Program arguments: ./llc
1. Running pass 'Function Pass Manager' on module '<stdin>'.
2. Running pass 'Loop Pass Manager' on function
'@_ZNK4llvm11AttrBuilder13hasAttributesENS_12AttributeSetEy'
3. Running pass 'Loop Strength Reduction' on basic block '%for.body11'
Aborted
--
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/20150224/3189bc58/attachment.html>
More information about the llvm-bugs
mailing list