<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Prefetch instruction not generated for ppc32"
href="https://llvm.org/bugs/show_bug.cgi?id=31165">31165</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Prefetch instruction not generated for ppc32
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: PowerPC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>cs12b1010@iith.ac.in
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=17648" name="attach_17648" title="Loop with conditional prefetch instruction.">attachment 17648</a> <a href="attachment.cgi?id=17648&action=edit" title="Loop with conditional prefetch instruction.">[details]</a></span>
Loop with conditional prefetch instruction.
When I do:
llc -march ppc32 c.ll
the prefetch instruction(dcbtst) is not generated. However it is generated when
march=ppc64.
During codegen it seems that the prefetch dag node is being removed during
legalization in ppc32 case:
Legalizing: t5: ch = Prefetch<ST1[%4]> t0, t2, Constant:i32<1>,
Constant:i32<3>, Constant:i32<1>
... replacing: t5: ch = Prefetch<ST1[%4]> t0, t2, Constant:i32<1>,
Constant:i32<3>, Constant:i32<1>
with: t0: ch = EntryToken</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>