Re: Store-copyprop not very bright
On Sep 6, 2005, at 8:21 AM, Steven Bosscher wrote: Hi, Consider this little snippet: int x; int foo (int a) { x = a; return x + 3; } Likewise for: int foo (int a, int *x) { *x = a; return *x + 3; } -- Pinski
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