<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 --- - SROA replaces atomic volatile load with volatile load" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_bugs_show-5Fbug.cgi-3Fid-3D23737&d=AwMBaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=pF93YEPyB-J_PERP4DUZOJDzFVX5ZQ57vQk33wu0vio&m=MpRtpVDUxobIYKE-o8iqv4_iBps0cUNWha-MFKLCwc8&s=DLAB6WSwN7z5UirqaQoBcVE90FsbB7ercyg1-iOzhBE&e=">23737</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>SROA replaces atomic volatile load with volatile load
</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>Scalar Optimizations
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>david.majnemer@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>consider:
target triple = "x86_64-pc-linux"
define void @f(i64** %x) {
entry:
%ptr = alloca i64, align 8
store i64 0, i64* %ptr, align 8
%load = load atomic volatile i64, i64* %ptr seq_cst, align 8
ret void
}
running -sroa results in:
target triple = "x86_64-pc-linux"
define void @f(i64** %x) {
entry:
%ptr = alloca i64, align 8
store i64 0, i64* %ptr, align 8
%ptr.0.load = load volatile i64, i64* %ptr, align 8
ret void
}
This doesn't seem correct.</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>