]> gcc.gnu.org Git - gcc.git/commit
LTO: Get rid of 'lto_mode_identity_table'
authorThomas Schwinge <thomas@codesourcery.com>
Thu, 10 Aug 2023 13:23:37 +0000 (15:23 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Tue, 19 Sep 2023 12:13:14 +0000 (14:13 +0200)
commitc81d9b9fabaea25950a5fea91e4f541077078087
treef6decfc419ea4a564d40e4e61def0709001acff8
parente1817426e85f2181a97ac4f71a87baaa9645b1b5
LTO: Get rid of 'lto_mode_identity_table'

This, in particular, resolves LTO ICEs with big 'machine_mode's, as for RISC-V.
('mode_table' in 'lto_file_decl_data' still is 'unsigned char'; changing that
is still to be done (for use in offloading compilation), but is not trivial.)
For now, get rid of 'lto_mode_identity_table' to resolve the RISC-V LTO ICEs;
we don't need an actual table for a 1-to-1 mapping.

gcc/lto/
* lto-common.cc (lto_mode_identity_table): Remove.
(lto_file_finalize) [!ACCEL_COMPILER]: 'NULL'-intialize
'file_data->mode_table'.
(lto_fe_init): Don't initialize 'lto_mode_identity_table'.
* lto-common.h (lto_mode_identity_table): Remove.
gcc/
* tree-streamer.h (bp_unpack_machine_mode): If
'ib->file_data->mode_table' not available, apply 1-to-1 mapping.

Co-authored-by: Pan Li <pan2.li@intel.com>
gcc/lto/lto-common.cc
gcc/lto/lto-common.h
gcc/tree-streamer.h
This page took 0.060621 seconds and 5 git commands to generate.