<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 - [NPM] LoopFlatten not running"
href="https://bugs.llvm.org/show_bug.cgi?id=48738">48738</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[NPM] LoopFlatten not running
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>sjoerd.meijer@arm.com
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Looks like LoopFlatten is not running under the NPM. This pass is not enabled
by default, so needs -mllvm -enable-loop-flatten on the command line. For
example, compiling this:
void add(unsigned N, short *A, short val) {
for (unsigned i = 0; i < N; i++)
for (unsigned j = 0; j < N; j++)
A[i*N+j] += val;
}
with:
bin/clang --target=arm-arm-none-eabi -mcpu=cortex-m33 -O3 -mllvm
-enable-loop-flatten t.c
Doesn't trigger loop flatten.
>From a quick grep, LoopFlatten is added to
`buildO1FunctionSimplificationPipeline`, but I guess it also needs to be added
to `buildFunctionSimplificationPipeline` which must have been on oversight when
I added LoopFlatten.
Raising this for visibility, probably on me to fix.</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>