[Bug tree-optimization/58508] [Missed-Optimization] Redundant vector load of actual loop invariant in loop body.

2013-11-11 Thread congh at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58508

Cong Hou congh at google dot com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #9 from Cong Hou congh at google dot com ---
(In reply to congh from comment #8)
 Author: congh
 Date: Fri Nov  8 18:44:46 2013
 New Revision: 204590
 
 URL: http://gcc.gnu.org/viewcvs?rev=204590root=gccview=rev
 Log:
 2013-11-08  Cong Hou  co...@google.com
 
   PR tree-optimization/58508
   * gcc.dg/vect/pr58508.c: Update.
 
 
 Modified:
 trunk/gcc/testsuite/ChangeLog
 trunk/gcc/testsuite/gcc.dg/vect/pr58508.c

[Bug tree-optimization/58508] [Missed-Optimization] Redundant vector load of actual loop invariant in loop body.

2013-11-08 Thread congh at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58508

--- Comment #8 from congh at gcc dot gnu.org ---
Author: congh
Date: Fri Nov  8 18:44:46 2013
New Revision: 204590

URL: http://gcc.gnu.org/viewcvs?rev=204590root=gccview=rev
Log:
2013-11-08  Cong Hou  co...@google.com

PR tree-optimization/58508
* gcc.dg/vect/pr58508.c: Update.


Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/vect/pr58508.c


[Bug tree-optimization/58508] [Missed-Optimization] Redundant vector load of actual loop invariant in loop body.

2013-10-29 Thread bernd.edlinger at hotmail dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58508

--- Comment #6 from Bernd Edlinger bernd.edlinger at hotmail dot de ---
(In reply to Cong Hou from comment #5)
 I guess I should add 
 
 /* { dg-require-effective-target vect_int } */
 
 to the test case. It is right?

Yes.


[Bug tree-optimization/58508] [Missed-Optimization] Redundant vector load of actual loop invariant in loop body.

2013-10-29 Thread congh at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58508

--- Comment #7 from Cong Hou congh at google dot com ---
OK. I made a new patch to fix this problem. Waiting to be approved.


thanks,
Cong



diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 9d0f4a5..3d9916d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2013-10-29  Cong Hou  co...@google.com
+
+   * gcc.dg/vect/pr58508.c: Update.
+
 2013-10-15  Cong Hou  co...@google.com

* gcc.dg/vect/pr58508.c: New test.
diff --git a/gcc/testsuite/gcc.dg/vect/pr58508.c
b/gcc/testsuite/gcc.dg/vect/pr58508.c
index 6484a65..fff7a04 100644
--- a/gcc/testsuite/gcc.dg/vect/pr58508.c
+++ b/gcc/testsuite/gcc.dg/vect/pr58508.c
@@ -1,3 +1,4 @@
+/* { dg-require-effective-target vect_int } */
 /* { dg-do compile } */
 /* { dg-options -O2 -ftree-vectorize -fdump-tree-vect-details } */





On Tue, Oct 29, 2013 at 6:50 AM, bernd.edlinger at hotmail dot de
gcc-bugzi...@gcc.gnu.org wrote:
 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58508

 --- Comment #6 from Bernd Edlinger bernd.edlinger at hotmail dot de ---
 (In reply to Cong Hou from comment #5)
 I guess I should add

 /* { dg-require-effective-target vect_int } */

 to the test case. It is right?

 Yes.

 --
 You are receiving this mail because:
 You reported the bug.


[Bug tree-optimization/58508] [Missed-Optimization] Redundant vector load of actual loop invariant in loop body.

2013-10-28 Thread congh at google dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58508

--- Comment #5 from Cong Hou congh at google dot com ---
I guess I should add 

/* { dg-require-effective-target vect_int } */

to the test case. It is right?


[Bug tree-optimization/58508] [Missed-Optimization] Redundant vector load of actual loop invariant in loop body.

2013-10-27 Thread bernd.edlinger at hotmail dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58508

Bernd Edlinger bernd.edlinger at hotmail dot de changed:

   What|Removed |Added

 CC||bernd.edlinger at hotmail dot 
de

--- Comment #4 from Bernd Edlinger bernd.edlinger at hotmail dot de ---
Hi,

the test case is failing on a i686-pc-linux-gnu.
Reason: by default the -msse2 is not enabled.
If I add -msse2 to dg_options the test passes.

Regards
Bernd.


[Bug tree-optimization/58508] [Missed-Optimization] Redundant vector load of actual loop invariant in loop body.

2013-09-24 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58508

Richard Biener rguenth at gcc dot gnu.org changed:

   What|Removed |Added

   Keywords||missed-optimization
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2013-09-24
 Blocks||53947
 Ever confirmed|0   |1

--- Comment #1 from Richard Biener rguenth at gcc dot gnu.org ---
While the observation is correct, the fix is not.  Please just emit the
load on the preheader edge, like we do for other dt_external vectors we
materialize.