Re: [PATCH] Fix vectorizable_reduction (PR tree-optimization/56350)

2013-02-19 Thread Richard Biener
On Mon, 18 Feb 2013, Jakub Jelinek wrote: > Hi! > > On the following testcase, a = a / 8; looks like reasonable reduction > statement, but we pattern recognize it as > patt_1 = a < 0 ? 7 : 0; > patt_2 = a + patt_1; > a = patt2 >> 3; > and in the first pattern stmt the reduction operand is in the

[PATCH] Fix vectorizable_reduction (PR tree-optimization/56350)

2013-02-18 Thread Jakub Jelinek
Hi! On the following testcase, a = a / 8; looks like reasonable reduction statement, but we pattern recognize it as patt_1 = a < 0 ? 7 : 0; patt_2 = a + patt_1; a = patt2 >> 3; and in the first pattern stmt the reduction operand is in the condition of COND_EXPR, not operands as vectorizable_reduct