[llvm-bugs] [Bug 33776] New: queens.c (From the testsuite) crashes with -fprofile-use + new pass manager
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 13 14:13:27 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33776
Bug ID: 33776
Summary: queens.c (From the testsuite) crashes with
-fprofile-use + new pass manager
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Core LLVM classes
Assignee: unassignedbugs at nondot.org
Reporter: davide at freebsd.org
CC: chandlerc at gmail.com, chisophugis at gmail.com,
davidxl at google.com, llvm-bugs at lists.llvm.org,
simon.f.whittaker at gmail.com
Source:
https://github.com/llvm-mirror/test-suite/blob/master/SingleSource/Benchmarks/McGill/queens.c
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
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170713/058b6ef5/attachment.html>
More information about the llvm-bugs
mailing list