<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 - [LSR] Formula is Non-canonical Assert in InsertFormula"
href="https://bugs.llvm.org/show_bug.cgi?id=47329">47329</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[LSR] Formula is Non-canonical Assert in InsertFormula
</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>Scalar Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>chenmindong120@gmail.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=23899" name="attach_23899" title="reproducer">attachment 23899</a> <a href="attachment.cgi?id=23899&action=edit" title="reproducer">[details]</a></span>
reproducer
$clang -O2 -fuse-ld=lld -flto=full test.c
ld.lld:
/home/chenmindong/llvm-project/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:1525:
bool {anonymous}::LSRUse::InsertFormula(const {anonymous}::Formula&, const
llvm::Loop&): Assertion `F.isCanonical(L) && "Invalid canonical
representation"' failed.
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.
Stack dump:
0. Program arguments: /home/chenmindong/llvm-project/install/bin/ld.lld
-EL --eh-frame-hdr -m aarch64linux -dynamic-linker /lib/ld-linux-aarch64.so.1
-o a.out /usr/lib/gcc/aarch64-linux-gnu/7.3.0/../../../../lib64/crt1.o
/usr/lib/gcc/aarch64-linux-gnu/7.3.0/../../../../lib64/crti.o
/usr/lib/gcc/aarch64-linux-gnu/7.3.0/crtbegin.o
-L/usr/lib/gcc/aarch64-linux-gnu/7.3.0
-L/usr/lib/gcc/aarch64-linux-gnu/7.3.0/../../../../lib64 -L/lib/../lib64
-L/usr/lib/../lib64 -L/usr/lib/gcc/aarch64-linux-gnu/7.3.0/../../..
-L/home/chenmindong/llvm-project/install/bin/../lib -L/lib -L/usr/lib
-plugin-opt=mcpu=generic -plugin-opt=O2 -L/home/chenmindong/gcc10-install/lib64
/tmp/test-c39cd4.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc
--as-needed -lgcc_s --no-as-needed
/usr/lib/gcc/aarch64-linux-gnu/7.3.0/crtend.o
/usr/lib/gcc/aarch64-linux-gnu/7.3.0/../../../../lib64/crtn.o
1. Running pass 'Function Pass Manager' on module 'ld-temp.o'.
2. Running pass 'Loop Pass Manager' on function '@main'
3. Running pass 'Loop Strength Reduction' on basic block '%39'</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>