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: [tree-ssa] New regressions as of 2003-11-04


On Tue, Nov 04, 2003 at 05:08:09PM -0700, law@redhat.com wrote:
> Another dom pass isn't going to improve this kind of code.

I mostly meant using domwalk and a custom widget to detect
what you want.

> Either the
> useless statement remover needs to be updated, or we need something to
> eliminate the PHI, or the out-of-ssa pass needs to get a lot smarter.

The best solution, of course, is to change

	# bb 1
	if (x.1 == -1) goto L2; else goto L3;
	...
	# bb 4
	L4:
	x.4 = PHI< -1(2), 0(3) >;

to 

	x.4 = PHI< x.1(1), 0(3) >;

Though likely after ccp, since we want the chance to prove constants
first.


r~


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