Re: [PATCH PR62631]Return shiftadd cost only when it's smaller than normal one

2014-09-04 Thread Richard Biener
On Thu, Sep 4, 2014 at 10:59 AM, Bin Cheng wrote: > Hi, > As reported by pr62631, case ivopts-lt-2.c is failed on sparc64. The root > cause is shiftadd_cost calculated on sparc64 is huge which prevents gcc from > choosing the wanted candidate. The problem with IVOPT is it always assumes > that s

[PATCH PR62631]Return shiftadd cost only when it's smaller than normal one

2014-09-04 Thread Bin Cheng
Hi, As reported by pr62631, case ivopts-lt-2.c is failed on sparc64. The root cause is shiftadd_cost calculated on sparc64 is huge which prevents gcc from choosing the wanted candidate. The problem with IVOPT is it always assumes that shiftadd_cost is smaller than the normal cost, while it's not