This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/81540] tree-switch-conversion leads to code bloat


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81540

Georg-Johann Lay <gjl at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|avr                         |avr,x86_64

--- Comment #2 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Similar on x86_64:

$ gcc-8 cswtch.c -Os -c && size -A cswtch.o
cswtch.o  :
section           size   addr
.text               20      0
.rodata            200      0

[snipped irrelevant sections]

$ gcc-8 cswtch.c -Os -c -fno-tree-switch-conversion && size -A cswtch.o
cswtch.o  :
section           size   addr
.text               35      0


So it grows by a factor of > 5 there.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]