aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-if-conv.c
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@baylibre.com>2025-07-24 12:58:31 +0000
committerAndrew Stubbs <ams@baylibre.com>2025-07-30 13:00:56 +0000
commit6847a222ba5f411584e20f5ed2e946ca19c9fcb4 (patch)
treead7de53a7ff978cadb6c4abec59ed9eb87c6910a /gcc/tree-if-conv.c
parent4ff3d0d40af181140ecad42fb23047e374967f4d (diff)
downloadgcc-6847a222ba5f411584e20f5ed2e946ca19c9fcb4.zip
gcc-6847a222ba5f411584e20f5ed2e946ca19c9fcb4.tar.gz
gcc-6847a222ba5f411584e20f5ed2e946ca19c9fcb4.tar.bz2
Don't pass vector params through to offload targets
The optimization options are deliberately passed through to the LTO compiler, but when the same mechanism is reused for offloading it ends up forcing the host compiler settings onto the device compiler. Maybe this should be removed completely, but this patch just fixes a few of them. In particular, param_vect_partial_vector_usage is disabled by x86 and this really hurts amdgcn. I also fixed an ambiguous else warning in the generated file by adding braces. gcc/ChangeLog: * config/gcn/gcn.cc (gcn_option_override): Add note to set default for param_vect_partial_vector_usage to "1". * optc-save-gen.awk: Don't pass through options marked "NoOffload". * params.opt (-param=vect-epilogues-nomask): Add NoOffload. (-param=vect-partial-vector-usage): Likewise. (-param=vect-inner-loop-cost-factor): Likewise. (cherry picked from commit b31fa1ce19542e14bea10f46240f39cb37277b80)
Diffstat (limited to 'gcc/tree-if-conv.c')
0 files changed, 0 insertions, 0 deletions