<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 - queens.c (From the testsuite) crashes with -fprofile-use + new pass manager"
href="https://bugs.llvm.org/show_bug.cgi?id=33776">33776</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>queens.c (From the testsuite) crashes with -fprofile-use + new pass manager
</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>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>Core LLVM classes
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>davide@freebsd.org
</td>
</tr>
<tr>
<th>CC</th>
<td>chandlerc@gmail.com, chisophugis@gmail.com, davidxl@google.com, llvm-bugs@lists.llvm.org, simon.f.whittaker@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Source:
<a href="https://github.com/llvm-mirror/test-suite/blob/master/SingleSource/Benchmarks/McGill/queens.c">https://github.com/llvm-mirror/test-suite/blob/master/SingleSource/Benchmarks/McGill/queens.c</a>
Basically, just run queens.c with PGO (IR instrumentation).
CLANG_PATH="/home/davide/work/llvm/build-release/bin/clang"
PROFDATA_PATH="/home/davide/work/llvm/build-release/bin/llvm-profdata"
OPT_VIEWER_PATH="/home/davide/work/llvm/tools/opt-viewer/opt-viewer.py"
OPT_LEVEL="-O3"
TEST_NAME="queens"
rm -f ${TEST_NAME} ${TEST_NAME}.pgo o3.yaml pgo.yaml default.profraw
default.profdata
rm -rf pgotrace
mkdir pgotrace
# PGO + -O3
${CLANG_PATH} -fprofile-generate=pgotrace -fexperimental-new-pass-manager
${OPT_LEVEL} ${TEST_NAME}.c -o ${TEST_NAME}
env LLVM_PROFILE_FILE=pgotrace/default.profraw ./${TEST_NAME}
${PROFDATA_PATH} merge pgotrace/default.profraw -o default.profdata
Crashes with: (during -fprofile-use)
[...]
fatal error: error in backend: LICM: OptimizationRemarkEmitterAnalysis not
cached at at a higher level</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>