https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36770
Segher Boessenkool changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36770
Segher Boessenkool changed:
What|Removed |Added
Last reconfirmed|2008-07-09 18:22:19 |2015-11-22
CC|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36770
Steven Bosscher steven at gcc dot gnu.org changed:
What|Removed |Added
CC||steven at gcc
--- Comment #4 from bonzini at gnu dot org 2008-07-18 13:41 ---
auto-inc-dec should be taught about transforming
a - b + c
...
*(b + c)
into
a - b
...
*(a += c) pre
--
bonzini at gnu dot org changed:
What|Removed |Added
--- Comment #5 from bonzini at gnu dot org 2008-07-18 14:13 ---
Hmm, even that wouldn't restore the optimization. The problem here is that
there is another access via b, like
a - b + c
*b
*(b + c)
The bad placement of the first assignment (bad because doing it the other way
--- Comment #3 from bonzini at gnu dot org 2008-07-11 11:56 ---
Yes, the code produced shows that something (probably fwprop, I trust Andrew
though I'd like to see dumps) is turning the GIMPLE code
temp = a[0];
a[1] = temp;
temp++;
into something harder to optimize. It might be