[Bug tree-optimization/102032] missed optimization on 2 equivalent expressions when -fwrapv is not used

2023-09-24 Thread vincent-gcc at vinc17 dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102032 --- Comment #4 from Vincent Lefèvre --- Note that as said in PR111560 comment 6, re-association may break CSE, e.g. if there are also a + b + d and a + c + e with my example. So, re-association for global optimal CSE, in addition to being diffic

[Bug tree-optimization/102032] missed optimization on 2 equivalent expressions when -fwrapv is not used

2021-08-24 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102032 --- Comment #3 from Richard Biener --- (In reply to Andrew Pinski from comment #1) > Confirmed, one way of fixing this is to have a "lower" gimple where signed > integer overflow does not matter and then we can reassociate all we want. > There i

[Bug tree-optimization/102032] missed optimization on 2 equivalent expressions when -fwrapv is not used

2021-08-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102032 --- Comment #2 from Andrew Pinski --- Note for the RTL level PLUS for SImode has no knowledge of signed vs unsigned, it is just an add and will always wrap.

[Bug tree-optimization/102032] missed optimization on 2 equivalent expressions when -fwrapv is not used

2021-08-24 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102032 Andrew Pinski changed: What|Removed |Added Component|target |tree-optimization Last reconfirmed|