This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/42586] load-modify-store on x86 should be a single instruction
- From: "jamborm at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2010 17:51:24 -0000
- Subject: [Bug tree-optimization/42586] load-modify-store on x86 should be a single instruction
- References: <bug-42586-7834@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #20 from jamborm at gcc dot gnu dot org 2010-01-25 17:51 -------
(In reply to comment #6)
> I think if we get the old SRA behavior back for this code, we will get this
> optimization in 4.5 since we remove the sptr->base and the other unnecessary
> store during PRE.
>
We now should have the "old SRA behavior" back (this was PR 42585). I
have checked only very briefly but I believe that this testcase is now
compiled as requested in the bug summary. I'd be grateful if someone
could double-check this and close this bug if it is indeed so.
Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42586