aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.cc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2022-08-02 13:46:28 +0200
committerRichard Biener <rguenther@suse.de>2022-08-09 10:26:55 +0200
commit9aa08cd48490183382371bff4fd53573b5adabe8 (patch)
tree03f3e0aca4d6084237878011caa483f215002909 /gcc/fold-const.cc
parentc64ef5cd92c2e340caabc95f4a28c9a125e8b5b8 (diff)
downloadgcc-9aa08cd48490183382371bff4fd53573b5adabe8.zip
gcc-9aa08cd48490183382371bff4fd53573b5adabe8.tar.gz
gcc-9aa08cd48490183382371bff4fd53573b5adabe8.tar.bz2
autopar TLC
The following removes all excessive update_ssa calls from OMP expansion, thereby rewriting the atomic load and store cases to GIMPLE code generation. I don't think autopar ever exercises the atomics code though. There's not much test coverage overall so I've built SPEC 2k17 with -floop-parallelize-all -ftree-parallelize-loops=2 with and without LTO (and otherwise -Ofast plus -march=haswell) without fallout. If there's any fallout it's not OK to update SSA form for each and every OMP stmt lowered. * omp-expand.cc (expand_omp_atomic_load): Emit GIMPLE directly. Avoid update_ssa when in SSA form. (expand_omp_atomic_store): Likewise. (expand_omp_atomic_fetch_op): Avoid update_ssa when in SSA form. (expand_omp_atomic_pipeline): Likewise. (expand_omp_atomic_mutex): Likewise. * tree-parloops.cc (gen_parallel_loop): Use TODO_update_ssa_no_phi after loop_version.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions