[Bug tree-optimization/104344] Suboptimal -Os code for manually unrolled loop

2022-02-02 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104344 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

[Bug tree-optimization/104344] Suboptimal -Os code for manually unrolled loop

2022-02-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104344 --- Comment #3 from Richard Biener --- (In reply to Charles Nicholson from comment #2) > For whatever it's worth, clang does recognize both forms and emit optimal > assembly at -Os: > > https://gcc.godbolt.org/z/sehxYb97E > > cast_through_char

[Bug tree-optimization/104344] Suboptimal -Os code for manually unrolled loop

2022-02-02 Thread charles.nicholson at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104344 --- Comment #2 from Charles Nicholson --- For whatever it's worth, clang does recognize both forms and emit optimal assembly at -Os: https://gcc.godbolt.org/z/sehxYb97E cast_through_char_unrolled: # @cast_through_char_unrolled movd eax, xmm0

[Bug tree-optimization/104344] Suboptimal -Os code for manually unrolled loop

2022-02-02 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104344 Richard Biener changed: What|Removed |Added CC||hubicka at gcc dot gnu.org,