enable_unary_reductions(graph) in -Jred cause runtime errors of 18 llvm-test-suite tests · Issue #304 · phate/jlm · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recreate
Modify jlm/llvm/opt/reduction.cpp (line 134)
static void
reduce(RvsdgModule & rm, util::StatisticsCollector & statisticsCollector)
{
and disable all optimizations except the load_reduction, i.e.,
// enable_mux_reductions(graph);
// enable_store_reductions(graph);
// enable_load_reductions(graph);
// enable_gamma_reductions(graph);
enable_unary_reductions(graph);
// enable_binary_reductions(graph);
Compile the file separately to avoid having to comment out unused functions:
/usr/lib/llvm-16/bin/clang++ -c --std=c++17 -gdwarf-4 -g -DJLM_DEBUG -DJLM_ENABLE_ASSERTS -I. -I/usr/lib/llvm-16/include -I. -I/usr/lib/llvm-16/include -o build/jlm/llvm/opt/reduction.la jlm/llvm/opt/reduction.cpp
Then compile jlm with debug:
make jlm-debug -j nproc
Then run the llvm-test-suite
make llvm-run-red
Output
Failed Tests (18):
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-20001009-1.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-20020614-1.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-920908-2.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-921016-1.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-arith-rand-ll.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-arith-rand.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-bf-sign-1.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-bitfld-1.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-pr16790-1.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-pr48973-1.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-pr48973-2.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-pr49123.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-pr55750.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-pr58726.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-pr61306-2.test
test-suite :: SingleSource/Regression/C/gcc-c-torture/execute/GCC-C-execute-struct-ini-2.test
test-suite :: SingleSource/UnitTests/2005-05-13-SDivTwo.test
test-suite :: SingleSource/UnitTests/2006-01-23-UnionInit.test
The text was updated successfully, but these errors were encountered: