Store-copyprop not very bright
Steven Bosscher
stevenb@suse.de
Tue Sep 6 12:21:00 GMT 2005
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
More information about the Gcc
mailing list