https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108419

--- Comment #4 from Andrew Macleod <amacleod at redhat dot com> ---
Not easily. I have started working on a phi analyzer for ranger to assist with
various issues like this. 

It will analyze phi patterns to weed out the ssa-names that are just copies,
and then allow the few remaining ssa-names that actually change the values in
the phi seqeuence to be looked at more easily.

It will help develop better initial ranges. So cases where the non-phi names
are  starting value and an increment or decrement can start with something
better than VARYING. This will help with cases like
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107986

It can help identify cases where values will have restricted smallish ranges,
such as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107822.  

Cases like this one with the second IV are trickier as there isnt a relation to
dicover between the two IVs...  at leats not easily. 
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107639 is a case like that too I
think.

When there are 2 IVs I dont suppose there is any way to indicate there is a
connection?  then if we can end up counting one, we might be able to do
something with the other.

Reply via email to