Remove dead code in switch conv pass.
authorMartin Liska <mliska@suse.cz>
Thu, 14 Nov 2019 12:04:45 +0000 (13:04 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 14 Nov 2019 12:04:45 +0000 (12:04 +0000)
commit4c4503bf8c538bdbd8db8940aae3d7000885776e
treeb0e84a86c738beb7f38709c7e6401d61fd3faf19
parente61d0e4e2ed8170491e7dfe597340f86a75a31cd
Remove dead code in switch conv pass.

2019-11-14  Martin Liska  <mliska@suse.cz>

* tree-switch-conversion.c (switch_conversion::switch_conversion):
Do not initialize m_other_count.
(switch_conversion::collect): Do not count m_default_count and
m_other_count as we use frequencies for edges.
* tree-switch-conversion.h: Remove m_default_count and m_other_count.

From-SVN: r278217
gcc/ChangeLog
gcc/tree-switch-conversion.c
gcc/tree-switch-conversion.h