xtensa: Turn on -fsplit-wide-types-early by default
commita2ff389099c325bc1244b1d72744a18c5fa6fda3
authorTakayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
Sun, 14 Aug 2022 09:29:33 +0000 (14 18:29 +0900)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 16 Aug 2022 00:40:32 +0000 (15 17:40 -0700)
tree7b933520383236b2f4366ce391926c501c99c723
parentec63a946ccb7ab16efd0830e5580351f2adff3db
xtensa: Turn on -fsplit-wide-types-early by default

Since GCC10, the "subreg2" optimization pass was no longer tied to enabling
"subreg1" unless -fsplit-wide-types-early was turned on (PR88233).  However
on the Xtensa port, the lack of "subreg2" can degrade the quality of the
output code, especially for those that produce many D[FC]mode pseudos.

This patch turns on -fsplit-wide-types-early by default in order to restore
the previous behavior.

gcc/ChangeLog:

* common/config/xtensa/xtensa-common.cc
(xtensa_option_optimization_table): Add OPT_fsplit_wide_types_early
for OPT_LEVELS_ALL in order to restore pre-GCC10 behavior.
gcc/common/config/xtensa/xtensa-common.cc