This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/66003] missed cse opportunity in addr expressions because of tree pre/lim
- From: "amker at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 05 May 2015 01:31:42 +0000
- Subject: [Bug tree-optimization/66003] missed cse opportunity in addr expressions because of tree pre/lim
- Auto-submitted: auto-generated
- References: <bug-66003-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66003
--- Comment #2 from amker at gcc dot gnu.org ---
(In reply to Richard Biener from comment #1)
> Hmm, I think IVOPTs should be able to undo this code motion?
It can't. Address of all pointer dereferences except the first one are not
even induction variables. The base address is loaded from memory by the first
dereference.