Re: Loop reversal

2017-07-17 Thread Segher Boessenkool
g/ml/gcc-patches/2006-01/msg01851.html by Zdenek > > which never made it to mainline. > > > > For constant loop count, ivcanon pass is adding reverse iv but this > > not selected by ivopt. > > ivopt will never do loop reversal, if it would select this IV it would need t

Re: Loop reversal

2017-07-17 Thread Richard Biener
ine. > > For constant loop count, ivcanon pass is adding reverse iv but this > not selected by ivopt. ivopt will never do loop reversal, if it would select this IV it would need to keep the original one as well or compute the old i based on the new. loop reversal needs dependence analysis and

Loop reversal

2017-07-12 Thread Kugan Vivekanandarajah
I am looking into reversing loop to increased efficiency. There is already a PR22041 for this and an old patch https://gcc.gnu.org/ml/gcc-patches/2006-01/msg01851.html by Zdenek which never made it to mainline. For constant loop count, ivcanon pass is adding reverse iv but this not selected by ivo