This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bugs in SSA-CCP and SSA-PRE optimizers



Stop.
already, you are screwed.
CCP doesn't update the SSA representation, thus, PRE won't have correct data.

I said that backwards, since PRE is run before CCP, but PRE doesn't update the representaiton right now either.

If you run CCP alone, you'll get:
main()
{
int bla;
int foo;
int bar;
int T.1;
bla = 1;
foo = 2;
T.1 = 2;
bar = 3;
goto waffle;
return bar;
waffle:
bla = 1;
return 3;
}


Which PRE won't eliminate any of anyway.
CCP should be run before PRE, and after it.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]