[Bug middle-end/112685] missed-optimization: division / modulo loops

2023-11-23 Thread goon.pri.low at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112685 --- Comment #2 from gooncreeper --- (In reply to Andrew Pinski from comment #1) > I thought I had saw this a while back. > > Note the Linux kernel does this kind of loop explicity to avoid the division > though as the cases where it does is kno

[Bug middle-end/112685] missed-optimization: division / modulo loops

2023-11-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112685 --- Comment #1 from Andrew Pinski --- I thought I had saw this a while back. Note the Linux kernel does this kind of loop explicity to avoid the division though as the cases where it does is known to be only a few iterations (1 or 2) to get the

[Bug middle-end/112685] missed-optimization: division / modulo loops

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