aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.h
diff options
context:
space:
mode:
authorAndrzej Turko <andrzej.turko@gmail.com>2023-08-07 11:59:00 +0200
committerRichard Biener <rguenther@suse.de>2023-08-08 15:30:45 +0200
commite6b616c076d4500266d0b2ca185f07a616d552fe (patch)
treefe3ca10d8b7116a89e7efe701424f6b80e7dda2b /gcc/tree-vectorizer.h
parent3bb0bf067b28547c75ad6f96dfe2cb91c75f1a8e (diff)
downloadgcc-e6b616c076d4500266d0b2ca185f07a616d552fe.zip
gcc-e6b616c076d4500266d0b2ca185f07a616d552fe.tar.gz
gcc-e6b616c076d4500266d0b2ca185f07a616d552fe.tar.bz2
genmatch: Reduce variability of generated code
So far genmatch has been using an unordered map to store information about functions to be generated. Since corresponding locations from match.pd were used as keys in the map, even small changes to match.pd which caused line number changes would change the order in which the functions are generated. This would reshuffle the functions between the generated .cc files. This way even a minimal modification to match.pd forces recompilation of all object files originating from match.pd on rebuild. This commit makes sure that functions are generated in the order of their processing (in contrast to the random order based on hashes of their locations in match.pd). This is done by replacing the unordered map with an ordered one. This way small changes to match.pd does not cause function renaming and reshuffling among generated source files. Together with the subsequent change to logging fprintf calls, this removes unnecessary changes to the files generated by genmatch allowing for reuse of already built object files during rebuild. The aim is to make editing of match.pd and subsequent testing easier. Signed-off-by: Andrzej Turko <andrzej.turko@gmail.com> gcc/ChangeLog: * genmatch.cc: Make sinfo map ordered. * Makefile.in: Require the ordered map header for genmatch.o.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions