tree-cfg.c (struct locus_discrim_map): Store line, not location.
authorRichard Biener <rguenther@suse.de>
Tue, 5 Jun 2018 11:10:25 +0000 (11:10 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 5 Jun 2018 11:10:25 +0000 (11:10 +0000)
commit62761a0f888a69870bd24371dd9e4c191de81f1d
tree7046ce6cd79a9d513040cb517e836e0ce702a15f
parentfa385ff4d7d3a8375ded8cb951041d5acaa92325
tree-cfg.c (struct locus_discrim_map): Store line, not location.

2018-06-05  Richard Biener  <rguenther@suse.de>

* tree-cfg.c (struct locus_discrim_map): Store line, not location.
(locus_discrim_hasher::hash): Adjust.
(locus_discrim_hasher::equal): Likewise.
(next_discriminator_for_locus): Work on line directly.
(same_line_p): Pass in expanded locus1 as well.
(assign_discriminators): Avoid redundant location expansions.

From-SVN: r261194
gcc/ChangeLog
gcc/tree-cfg.c