RE: [PATCH GCC]Improve IVOPT to handle outside and inside loop iv uses differently in GCC

2013-11-21 Thread bin.cheng
: [PATCH GCC]Improve IVOPT to handle outside and inside loop iv uses differently in GCC Hi, GCC IVOPT has a problem that it doesn't differentiate between iv uses outside of loop from inside ones. It computes cost for outside iv use just like inside ones, which is wrong because outside iv use

[PATCH GCC]Improve IVOPT to handle outside and inside loop iv uses differently in GCC

2013-11-06 Thread bin.cheng
Hi, GCC IVOPT has a problem that it doesn't differentiate between iv uses outside of loop from inside ones. It computes cost for outside iv use just like inside ones, which is wrong because outside iv use should be computed along loop exit edge and the cost should be amortized against loop