[Bug tree-optimization/114465] "x % const1 % const2" should be optimized if const1 % const2 == 0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114465 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2024-03-25 Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski --- .
[Bug tree-optimization/114465] "x % const1 % const2" should be optimized if const1 % const2 == 0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114465 --- Comment #1 from Joseph S. Myers --- Note that transforming x % 1 % -1 to x % -1 wouldn't strictly be valid (because of undefined behavior from INT_MIN % -1), though hopefully cases with constant 1 or -1 get optimized to 0 anyway and the undefined behavior is only a problem with a -1 that's not a constant.
[Bug tree-optimization/114465] "x % const1 % const2" should be optimized if const1 % const2 == 0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114465 Xi Ruoyao changed: What|Removed |Added Severity|normal |enhancement Keywords||missed-optimization