Tr : [redundency elimination, code motion, commun expression elimination] GCC optimizations
charfi asma
charfiasma@yahoo.fr
Thu Sep 22 19:59:00 GMT 2011
hello,
If GCC could optimize this code
if (x=1)
{
a=b;
c=d;
e=f;
foo();
}
if (x=2)
{
a=b;
c=d;
e=f;
foo();
}
to this one
if (x=1) || (x=2)
{
a=b;
c=d;
e=f;
foo();
}
it will be implemented in which optimizations ? pre: partiel redundent elimination optimizaion or another one may be code motion ?
thank you very much
Asma
More information about the Gcc-help
mailing list