Re: [PATCH PR69848]Introduce special conditional reduction CONST_COND_REDUCTION

2016-08-11 Thread Richard Biener
On Wed, Aug 10, 2016 at 6:01 PM, Bin Cheng wrote: > Hi, > This patch fixes the inefficient code generated by vectorizer as reported by > PR69848. > It introduces new conditional reduction type CONST_COND_REDUCTION. As a > result, > we don't need to compute index vector in loop; also the epilog

[PATCH PR69848]Introduce special conditional reduction CONST_COND_REDUCTION

2016-08-10 Thread Bin Cheng
Hi, This patch fixes the inefficient code generated by vectorizer as reported by PR69848. It introduces new conditional reduction type CONST_COND_REDUCTION. As a result, we don't need to compute index vector in loop; also the epilog reduction code can be simplified using single reduc_max/reduc_