[Bug tree-optimization/19590] IVs with the same evolution not eliminated

rakdver at atrey dot karlin dot mff dot cuni dot cz gcc-bugzilla@gcc.gnu.org
Mon Nov 14 09:27:00 GMT 2005



------- Comment #5 from rakdver at atrey dot karlin dot mff dot cuni dot cz  2005-11-14 09:27 -------
Subject: Re:  IVs with the same evolution not eliminated

> They can happen due to macro expansion or C++ template inlining.

And do they?

> I wonder if PRE for scalar-evolutions would be useful ;)

I would guess that this would be unnecessarily expensive.  The only
place where scev should give you some useful information should be for
induction variables inside loops, in which case you can simply pass over
the loop phi nodes and merge the variables with the same evolution.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19590



More information about the Gcc-bugs mailing list