<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - "opt -indvars -simple-loop-unswitch -indvars" crashing with Assertion `SE->DT.dominates(ENT.ExitingBlock, Latch) && "We should only have known counts for exiting blocks that dominate " "latch!"' failed."
href="https://bugs.llvm.org/show_bug.cgi?id=43972">43972</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>"opt -indvars -simple-loop-unswitch -indvars" crashing with Assertion `SE->DT.dominates(ENT.ExitingBlock, Latch) && "We should only have known counts for exiting blocks that dominate " "latch!"' failed.
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Loop Optimizer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mikael.holmen@ericsson.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=22797" name="attach_22797" title="bbi-35465.ll reproducer">attachment 22797</a> <a href="attachment.cgi?id=22797&action=edit" title="bbi-35465.ll reproducer">[details]</a></span>
bbi-35465.ll reproducer
opt -indvars -simple-loop-unswitch -indvars -S -o - bbi-35465.ll
crashes on trunk (43ff63477) with
opt: ../lib/Analysis/ScalarEvolution.cpp:6912: const llvm::SCEV
*llvm::ScalarEvolution::BackedgeTakenInfo::getExact(const llvm::Loop *,
llvm::ScalarEvolution *, llvm::SCEVUnionPredicate *) const: Assertion
`SE->DT.dominates(ENT.ExitingBlock, Latch) && "We should only have known counts
for exiting blocks that dominate " "latch!"' failed.
Stack dump:
0. Program arguments: /data/repo/master/llvm/build-all-builtins/bin/opt
-indvars -simple-loop-unswitch -indvars -S -o - bbi-35465.ll
1. Running pass 'Function Pass Manager' on module 'bbi-35465.ll'.
2. Running pass 'Loop Pass Manager' on function '@f'
3. Running pass 'Induction Variable Simplification' on basic block '%for.cond'
#0 0x0000000003e2e074 PrintStackTraceSignalHandler(void*)
(/data/repo/master/llvm/build-all-builtins/bin/opt+0x3e2e074)
#1 0x0000000003e2bd8e llvm::sys::RunSignalHandlers()
(/data/repo/master/llvm/build-all-builtins/bin/opt+0x3e2bd8e)
#2 0x0000000003e2e478 SignalHandler(int)
(/data/repo/master/llvm/build-all-builtins/bin/opt+0x3e2e478)
#3 0x00007f147b92f890 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x12890)
#4 0x00007f147a3d8e97 raise
/build/glibc-OTsEL5/glibc-2.27/signal/../sysdeps/unix/sysv/linux/raise.c:51:0
#5 0x00007f147a3da801 abort /build/glibc-OTsEL5/glibc-2.27/stdlib/abort.c:81:0
#6 0x00007f147a3ca39a __assert_fail_base
/build/glibc-OTsEL5/glibc-2.27/assert/assert.c:89:0
#7 0x00007f147a3ca412 (/lib/x86_64-linux-gnu/libc.so.6+0x30412)
#8 0x0000000003141734
llvm::ScalarEvolution::BackedgeTakenInfo::getExact(llvm::Loop const*,
llvm::ScalarEvolution*, llvm::SCEVUnionPredicate*) const
(/data/repo/master/llvm/build-all-builtins/bin/opt+0x3141734)
#9 0x0000000003b9822c (anonymous namespace)::IndVarSimplify::run(llvm::Loop*)
(/data/repo/master/llvm/build-all-builtins/bin/opt+0x3b9822c)
#10 0x0000000003ba8177 (anonymous
namespace)::IndVarSimplifyLegacyPass::runOnLoop(llvm::Loop*,
llvm::LPPassManager&)
(/data/repo/master/llvm/build-all-builtins/bin/opt+0x3ba8177)
#11 0x0000000003096522 llvm::LPPassManager::runOnFunction(llvm::Function&)
(/data/repo/master/llvm/build-all-builtins/bin/opt+0x3096522)
#12 0x00000000036da703 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/data/repo/master/llvm/build-all-builtins/bin/opt+0x36da703)
#13 0x00000000036da9e8 llvm::FPPassManager::runOnModule(llvm::Module&)
(/data/repo/master/llvm/build-all-builtins/bin/opt+0x36da9e8)
#14 0x00000000036db04d llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/data/repo/master/llvm/build-all-builtins/bin/opt+0x36db04d)
#15 0x0000000002069d5d main
(/data/repo/master/llvm/build-all-builtins/bin/opt+0x2069d5d)
#16 0x00007f147a3bbb97 __libc_start_main
/build/glibc-OTsEL5/glibc-2.27/csu/../csu/libc-start.c:344:0
#17 0x000000000205202a _start
(/data/repo/master/llvm/build-all-builtins/bin/opt+0x205202a)
Abort (core dumped)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>