This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Store-copyprop not very bright
- From: Steven Bosscher <stevenb at suse dot de>
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 6 Sep 2005 14:21:25 +0200
- Subject: Store-copyprop not very bright
Hi,
Consider this little snippet:
====================================
int x;
int
foo (int a)
{
x = a;
return x + 3;
}
====================================
With -fno-tree-dominator-opts, we do not optimize away the load
from x in "x + 3". I would have expected store-copyprop to do
this, but apparently it doesn't. So, Diego, is this a real bug
in store-copyprop or am I expecting too much of your pass here?
Gr.
Steven