[PATCH GCC]Udate best_cost for start cand if it has lower overall cost in iv set narrowing

2015-07-09 Thread Bin Cheng
Hi, When I going through the code, I spot this minor issue. When start_cand/orig_cand/third_cand have overall cost in order like start_cand third_cand orig_cand, GCC chooses the third_cand instead of start_cand because we haven't set best_cost for start_cand. This is an obvious fix to it. So

Re: [PATCH GCC]Udate best_cost for start cand if it has lower overall cost in iv set narrowing

2015-07-09 Thread Richard Biener
On Thu, Jul 9, 2015 at 11:37 AM, Bin Cheng bin.ch...@arm.com wrote: Hi, When I going through the code, I spot this minor issue. When start_cand/orig_cand/third_cand have overall cost in order like start_cand third_cand orig_cand, GCC chooses the third_cand instead of start_cand because we

Re: [PATCH GCC]Udate best_cost for start cand if it has lower overall cost in iv set narrowing

2015-07-09 Thread Bin.Cheng
On Thu, Jul 9, 2015 at 5:49 PM, Richard Biener richard.guent...@gmail.com wrote: On Thu, Jul 9, 2015 at 11:37 AM, Bin Cheng bin.ch...@arm.com wrote: Hi, When I going through the code, I spot this minor issue. When start_cand/orig_cand/third_cand have overall cost in order like start_cand