[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-06-08 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 Bug 65443 depends on bug 66442, which changed state. Bug 66442 Summary: [6 regression] FAIL: gcc.dg/autopar/pr46885.c (test for excess errors) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66442 What|Removed |Ad

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-06-05 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 vries at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-06-05 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 --- Comment #18 from vries at gcc dot gnu.org --- Author: vries Date: Fri Jun 5 15:57:34 2015 New Revision: 224154 URL: https://gcc.gnu.org/viewcvs?rev=224154&root=gcc&view=rev Log: Add transform_to_exit_first_loop_alt 2015-06-05 Tom de Vries

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-05-28 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 --- Comment #17 from vries at gcc dot gnu.org --- Author: vries Date: Thu May 28 21:23:54 2015 New Revision: 223848 URL: https://gcc.gnu.org/viewcvs?rev=223848&root=gcc&view=rev Log: Add transform_to_exit_first_loop_alt 2015-05-28 Tom de Vries

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-04-16 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 --- Comment #16 from vries at gcc dot gnu.org --- ping: - https://gcc.gnu.org/ml/gcc-patches/2015-04/msg00763.html

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-04-03 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 --- Comment #15 from vries at gcc dot gnu.org --- Submitted updated patch: https://gcc.gnu.org/ml/gcc-patches/2015-04/msg00115.html

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-03-27 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 vries at gcc dot gnu.org changed: What|Removed |Added Keywords||patch --- Comment #14 from vri

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-03-26 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 --- Comment #13 from vries at gcc dot gnu.org --- Created attachment 35145 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35145&action=edit WIP patch Added reduction example to testcases. Patch runs test-cases successfully.

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-03-26 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 vries at gcc dot gnu.org changed: What|Removed |Added Attachment #35103|0 |1 is obsolete|

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-03-23 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 vries at gcc dot gnu.org changed: What|Removed |Added Attachment #35092|0 |1 is obsolete|

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-03-22 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 vries at gcc dot gnu.org changed: What|Removed |Added Attachment #35078|0 |1 is obsolete|

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-03-20 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 --- Comment #9 from vries at gcc dot gnu.org --- Created attachment 35080 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35080&action=edit parloops dump with -ftry

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-03-20 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 --- Comment #8 from vries at gcc dot gnu.org --- Created attachment 35079 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35079&action=edit parloops dump with -fno-try

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-03-20 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 --- Comment #7 from vries at gcc dot gnu.org --- Created attachment 35078 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35078&action=edit WIP patch WIP patch, works on included testcase only.

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-03-19 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 --- Comment #6 from vries at gcc dot gnu.org --- After looking into it a bit further, I think what we're trying to get is: ... : goto ; : i_17 = (int) ivtmp_y; _7 = (long unsigned int) i_17; _8 = _7 * 4; _9 = pretmp_24 + _8; _10 =

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-03-18 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-03-17 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 --- Comment #4 from vries at gcc dot gnu.org --- (In reply to vries from comment #3) > (In reply to vries from comment #2) > > The problem with this transformation is that '_20 + 1' might overflow, > > that's what the comment 'This may need some a

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-03-16 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 --- Comment #3 from vries at gcc dot gnu.org --- (In reply to vries from comment #2) > The problem with this transformation is that '_20 + 1' might overflow, > that's what the comment 'This may need some additional preconditioning in > case NIT =

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-03-16 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 --- Comment #2 from vries at gcc dot gnu.org --- AFAIU, this is meant with the todo: ... : goto ; : i_17 = (int) ivtmp_6; _7 = (long unsigned int) i_17; _8 = _7 * 4; _9 = pretmp_24 + _8; _10 = *_9; sum_11 = _10 + sum_y; i_12 =

[Bug tree-optimization/65443] Don't peel last iteration from loop in transform_to_exit_first_loop

2015-03-16 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65443 --- Comment #1 from vries at gcc dot gnu.org --- Consider test.c, compiled with -O2 -tree-parallelize-loops=2: ... #include extern unsigned int *a; void f (unsigned int n) { int i; unsigned int sum = 1; #pragma omp parallel { #pragma omp