Richard.

Here is update patch with test-case and new ChangeLog.

gcc/ChangeLog
2014-06-04  Yuri Rumyantsev  <ysrum...@gmail.com>

PR tree-optimization/61319
* tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
stmt belongs to loop.

gcc/testsuite/ChangeLog
* gcc.dg/torture/pr61319.c: New test.


2014-06-04 17:37 GMT+04:00 Richard Biener <richard.guent...@gmail.com>:
> On Wed, Jun 4, 2014 at 3:37 PM, Richard Biener
> <richard.guent...@gmail.com> wrote:
>> On Wed, Jun 4, 2014 at 3:17 PM, Yuri Rumyantsev <ysrum...@gmail.com> wrote:
>>> Hi All,
>>>
>>> Here is a simple fix for 61391 - missed a check that statement basic
>>> block is inside loop. With this fix test-case from bug is compiled
>>> successfully.
>>>
>>> Bootstrap and regression testing did not show any new failures.
>>>
>>> Is it OK for trunk?
>>
>> Ok.
>
> Please also add the testcase.
>
>> Thanks,
>> Richard.
>>
>>> ChangeLog:
>>>
>>> 2014-06-04  Yuri Rumyantsev  <ysrum...@gmail.com>
>>>
>>> PR tree-optimization/61319
>>> * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
>>> stmt belongs to loop.

Attachment: patch1
Description: Binary data

Reply via email to