[Bug tree-optimization/33245] Missed opportunities for vectorization due to invariant condition

2007-09-01 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Severity|normal |enhancement http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33245

[Bug tree-optimization/33245] Missed opportunities for vectorization due to invariant condition

2007-08-31 Thread dorit at gcc dot gnu dot org
--- Comment #1 from dorit at gcc dot gnu dot org 2007-08-31 13:39 --- (In reply to comment #0) The innermost loop in j cannot be vectorized because of the irregular code in that loop, i.e. the condition IF ( l.NE.k ). But the cond expression is invariant in that loop, so the whole

[Bug tree-optimization/33245] Missed opportunities for vectorization due to invariant condition

2007-08-31 Thread dorit at gcc dot gnu dot org
--- Comment #3 from dorit at gcc dot gnu dot org 2007-08-31 14:18 --- (In reply to comment #2) Subject: Re: Missed opportunities for vectorization due to invariant condition Looks like -fno-tree-pre is not enough, because if PRE doesn't do it, then sink does it. When I use

[Bug tree-optimization/33245] Missed opportunities for vectorization due to invariant condition

2007-08-31 Thread spop at gcc dot gnu dot org
--- Comment #2 from spop at gcc dot gnu dot org 2007-08-31 14:06 --- Subject: Re: Missed opportunities for vectorization due to invariant condition Looks like -fno-tree-pre is not enough, because if PRE doesn't do it, then sink does it. When I use -O3 -ftree-vectorize -msse2