Commit b79fa2f6 by Richard Biener Committed by Richard Biener

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
parent 823835a9
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.
2018-03-12 Chung-Ju Wu <jasonwucj@gmail.com> 2018-03-12 Chung-Ju Wu <jasonwucj@gmail.com>
* config/nds32/nds32.c (nds32_md_asm_adjust): New function. * config/nds32/nds32.c (nds32_md_asm_adjust): New function.
......
...@@ -57,7 +57,8 @@ should_duplicate_loop_header_p (basic_block header, struct loop *loop, ...@@ -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 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 satisfied in the first iteration and therefore to eliminate it. Jump
threading handles these cases now. */ 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)) if (dump_file && (dump_flags & TDF_DETAILS))
fprintf (dump_file, fprintf (dump_file,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment