diff options
author | Richard Biener <rguenther@suse.de> | 2018-03-12 08:45:54 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2018-03-12 08:45:54 +0000 |
commit | b79fa2f609c70a70125c979e363176002d1f9acd (patch) | |
tree | dd226d3a1bc5f86caaa35388d9ea8c042c999f9d /gcc/tree-ssa-loop-ch.c | |
parent | 823835a99d4e88d38b436c1b409e574398d3a34f (diff) | |
download | gcc-b79fa2f609c70a70125c979e363176002d1f9acd.zip gcc-b79fa2f609c70a70125c979e363176002d1f9acd.tar.gz gcc-b79fa2f609c70a70125c979e363176002d1f9acd.tar.bz2 |
re PR tree-optimization/84777 (-Os inhibits all vectorization)
2018-03-12 Richard Biener <rguenther@suse.de>
PR tree-optimization/84777
* tree-ssa-loop-ch.c (should_duplicate_loop_header_p): For
force-vectorize loops ignore whether we are optimizing for size.
From-SVN: r258444
Diffstat (limited to 'gcc/tree-ssa-loop-ch.c')
-rw-r--r-- | gcc/tree-ssa-loop-ch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-loop-ch.c b/gcc/tree-ssa-loop-ch.c index b2dee48..488999d 100644 --- a/gcc/tree-ssa-loop-ch.c +++ b/gcc/tree-ssa-loop-ch.c @@ -57,7 +57,8 @@ should_duplicate_loop_header_p (basic_block header, struct loop *loop, be true, since quite often it is possible to verify that the condition is satisfied in the first iteration and therefore to eliminate it. Jump threading handles these cases now. */ - if (optimize_loop_for_size_p (loop)) + if (optimize_loop_for_size_p (loop) + && !loop->force_vectorize) { if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, |