[PATCH] Remove dead code in switch conv pass.
Martin Liška
mliska@suse.cz
Thu Nov 14 12:04:00 GMT 2019
Hi.
The patch is a clean up of unused code.
Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
I'm going to install the patch.
Thanks,
Martin
gcc/ChangeLog:
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.
---
gcc/tree-switch-conversion.c | 6 +-----
gcc/tree-switch-conversion.h | 6 ------
2 files changed, 1 insertion(+), 11 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Remove-dead-code-in-switch-conv-pass.patch
Type: text/x-patch
Size: 1688 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191114/4c210a81/attachment.bin>
More information about the Gcc-patches
mailing list