[Bug tree-optimization/23094] store ccp, or store copy prop misses an optimization
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Mar 18 15:32:00 GMT 2008
------- Comment #10 from rguenth at gcc dot gnu dot org 2008-03-18 15:31 -------
Similar case that SCCVN could also handle (store_ccp and DOM handle this):
int G;
void __attribute__((noinline))
foo (int i)
{
if (i > 0)
G = 3;
else
G = 3;
if (G != 3)
link_error ();
}
int
main ()
{
foo (0);
return 0;
}
(I have a patch for this as well, the above testcase is the same as
gcc.dg/tree-ssa/20040721-1.c)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23094
More information about the Gcc-bugs
mailing list