This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/19590] IVs with the same evolution not eliminated
- From: "rakdver at atrey dot karlin dot mff dot cuni dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Nov 2005 09:27:54 -0000
- Subject: [Bug tree-optimization/19590] IVs with the same evolution not eliminated
- References: <bug-19590-280@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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