This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Tr : [redundency elimination, code motion, commun expression elimination] GCC optimizations
- From: charfi asma <charfiasma at yahoo dot fr>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 22 Sep 2011 20:59:12 +0100 (BST)
- Subject: Tr : [redundency elimination, code motion, commun expression elimination] GCC optimizations
- References: <1316712613.83211.YahooMailNeo@web28503.mail.ukl.yahoo.com>
- Reply-to: charfi asma <charfiasma at yahoo dot fr>
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