1 2019-12-04 Julian Brown <julian@codesourcery.com>
3 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
5 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
8 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
10 (altivec_overloaded_builtins): Move to rs6000-call.c.
11 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
13 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
14 (altivec_overloaded_builtins): Moved from rs6000-c.c.
15 (rs6000_common_init_builtins): Do no define builtins that overload
16 builtins that have been disabled.
18 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
20 * config/arm/arm.c (arm_option_override_internal):
21 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
23 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
25 * config/aarch64/aarch64.c
26 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
27 (thunderx_tunings): Likewise.
28 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
29 (thunderx2t99_tunings): Likewise.
30 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
31 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
33 2019-12-04 Richard Biener <rguenther@suse.de>
35 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
36 empty CTOR and memset partial-def registering. Take advantage
37 of fancy offset analysis in memset handling.
39 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
41 * fold-const.c (native_encode_vector_part): Handle
42 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
43 (native_decode_vector_tree): Delete, moving the bulk of the code to...
44 (native_interpret_vector_part): ...this new function. Use a pointer
45 and length instead of a vec<> and start index.
46 (native_interpret_vector): Use native_interpret_vector_part.
47 (fold_view_convert_vector_encoding): Likewise.
49 2019-12-04 Richard Biener <rguenther@suse.de>
51 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
52 non-constant defs in the most trivial way.
53 (vn_reference_lookup_3): Also push down SSA partial defs.
55 2019-12-04 Martin Liska <mliska@suse.cz>
57 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
58 Initialize count of newly created BB.
60 2019-12-04 Jakub Jelinek <jakub@redhat.com>
62 PR tree-optimization/92734
63 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
64 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
66 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
69 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
70 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
72 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
74 * ipa-fnsummary.c: Include tree-into-ssa.h.
75 (compute_fn_summary): Call update_ssa.
77 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
79 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
80 is set only for symbol in comdat group.
81 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
83 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
85 * cgraph.c: Include tree-into-ssa.h
86 (cgraph_node::get_body): Call update_ssa.
87 * cgraphunit.c (cgraph_node::expand): Likewise.
88 * lto-streamer-in.c (input_function): Do not call update_ssa.
90 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
92 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
93 an array element size if array_element_size is already an invariant.
94 Similarly don't gimplify and install a field offset if
95 component_ref_field_offset is already an invariant.
97 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
99 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
100 with POLY_INT_CST size is made to a fixed-size object, force the
101 object to live in memory.
103 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
105 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
108 2019-12-03 Richard Biener <rguenther@suse.de>
110 PR tree-optimization/92758
111 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
112 operation on uniform vectors.
114 2019-12-03 Richard Biener <rguenther@suse.de>
116 PR tree-optimization/92645
117 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
118 from or to a properly aligned register variable.
120 2019-12-03 Matthias Klose <doko@ubuntu.com>
122 * Makefile.in (SOURCES): Add doc/lto-dump.1.
123 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
124 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
126 2019-12-03 Richard Biener <rguenther@suse.de>
128 PR tree-optimization/92751
129 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
130 when a clobber ends up in the partial-def vector.
131 (vn_reference_lookup_3): Let clobbers be handled by the
132 assignment from CTOR handling.
134 2019-12-03 Jakub Jelinek <jakub@redhat.com>
136 PR tree-optimization/92734
137 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
138 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
141 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
142 Jakub Jelinek <jakub@redhat.com>
145 * config/i386/i386.md (peephole2 for *swap<mode>): Use
146 general_reg_operand predicates instead of register_operand.
148 2019-12-03 Richard Biener <rguenther@suse.de>
150 PR tree-optimization/92645
151 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
152 a full def of a vector via a BIT_INSERT_EXPR.
154 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
156 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
158 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
161 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
164 * fold-const.c (fold_convertible_p): Check vector types more
167 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
169 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
170 (aarch64_expand_mov_immediate): Use it when attempting to measure
171 the length of an SVE vector.
172 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
175 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
177 * config/aarch64/aarch64-sve-builtins.h
178 (gimple_folder::force_vector): Declare.
179 * config/aarch64/aarch64-sve-builtins.cc
180 (gimple_folder::force_vector): New function.
181 * config/aarch64/aarch64-sve-builtins-base.cc
182 (svcmp_impl::fold): Likewise.
183 (svdup_impl::fold): Handle svdup_z too.
185 2019-12-02 Martin Liska <mliska@suse.cz>
187 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
189 (debug_tree_odr_name): New.
190 * ipa-utils.h (get_odr_name_for_type): New.
192 2019-12-02 Richard Biener <rguenther@suse.de>
194 PR tree-optimization/92742
195 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
196 touch the def-type but verify it is consistent with the
199 2019-12-02 Jakub Jelinek <jakub@redhat.com>
201 PR tree-optimization/92712
202 * match.pd ((A * B) +- A -> (B +- 1) * A,
203 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
204 even when we don't know anything about range of A, but do know
205 something about range of B and the simplification won't introduce
208 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
211 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
212 (ipa-cp-min-recursive-probability): Likewise.
213 * params.opt (ipa-cp-max-recursive-depth): New.
214 (ipa-cp-min-recursive-probability): Likewise.
215 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
217 (self_recursively_generated_p): New function.
218 (get_val_across_arith_op): Likewise.
219 (propagate_vals_across_arith_jfunc): Add constant propagation for
220 self-recursive function.
221 (incorporate_penalties): Do not penalize pure self-recursive function.
222 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
223 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
224 (get_info_about_necessary_edges): Relax hotness check for edge to
225 self-recursive function.
226 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
228 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
232 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
233 objects of flexible types to be small if they have internal linkage
234 or are declared extern.
235 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
236 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
237 instead of the size of the object initializer.
238 * tree.c (flexible_array_type_p): Move from C front end, and
239 generalize to handle fields in non-C structures.
240 * tree.h (flexible_array_type_p): Declare.
242 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
244 * profile-count.h (profile_count::operator<): Use IPA value for
246 (profile_count::operator>): Likewise.
247 (profile_count::operator<=): Likewise.
248 (profile_count::operator>=): Likewise.
249 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
251 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
253 * ipa-inline.c (compute_max_insns): Return int64_t.
254 (inline_small_functions): Simplify.
256 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
258 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
261 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
263 * cgraph.h (symtab_node): Add symver flag.
264 * cgraphunit.c (process_symver_attribute): New.
265 (process_common_attributes): Use process_symver_attribute.
266 * lto-cgraph.c (lto_output_node): Stream symver.
267 (lto_output_varpool_node): Stream symver.
268 (input_overwrite_node): Stream symver.
269 (input_varpool_node): Stream symver.
270 * output.h (do_assemble_symver): Decalre.
271 * symtab.c (symtab_node::dump_base): Dump symver.
272 (symtab_node::verify_base): Verify symver.
273 (symtab_node::resolve_alias): Handle symver.
274 * varasm.c (do_assemble_symver): New function.
275 * varpool.c (varpool_node::assemble_aliases): Use it.
276 * doc/extend.texi: (symver attribute): Document.
277 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
279 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
281 * target.h (type_context_kind): New enum.
282 (verify_type_context): Declare.
283 * target.def (verify_type_context): New target hook.
284 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
285 * doc/tm.texi: Regenerate.
286 * tree.c (verify_type_context): New function.
287 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
289 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
291 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
292 (TARGET_VERIFY_TYPE_CONTEXT): Define.
294 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
296 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
297 * cgraph.h (cgraph_node): Add unit_id and
298 merged_extern_inline.
299 (symbol_table): Add max_unit.
300 (symbol_table::symbol_table): Initialize it.
301 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
302 merged_comdat, merged_extern_inline.
303 (cgraph_node::create_clone): Likewise.
304 (cgraph_node::create_version_clone): Likewise.
305 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
307 * ipa-fnsummary.h (cross_module_call_p): New inline function.
308 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
309 * ipa-inline.c (inline_small_functions): Likewise.
310 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
311 copy merged_comdat and merged_extern_inline.
312 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
313 merged_extern_inline and unit_id.
314 (input_overwrite_node): Stream in these.
315 (input_cgraph_1): Set unit_base.
316 * lto-streamer.h (lto_file_decl_data): Add unit_base.
317 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
319 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
321 * gcc.c (process_command): Only warn about an ineffective `-x'
322 option if any input files have actually been supplied.
324 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
326 * doc/install.texi (Options specification): Remove the list of
327 target library subdirectories supporting
328 `--enable-version-specific-runtime-libs'. Document defaults for
331 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
333 PR rtl-optimization/92283
334 * lra.c (lra): Update reg notes after inheritance sub-pass and
335 before constraint sub-pass.
337 2019-11-29 Richard Biener <rguenther@suse.de>
339 PR tree-optimization/91003
340 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
341 operand number, avoid handling the non-condition operands of
342 COND_EXPRs as comparisons.
343 (vect_get_constant_vectors): Pass down the operand number.
344 (vect_get_slp_defs): Likewise.
346 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
348 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
349 generic_expr_could_trap_p to check if the condition of COND_EXPR or
350 VEC_COND_EXPR can trap.
352 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
354 PR tree-optimization/92677
355 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
356 to zero when dissolving a group of strided accesses.
358 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
360 PR tree-optimization/92596
361 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
363 (vectorizable_operation): Likewise, instead of relying on
364 vect_get_mask_type_for_stmt to do this.
365 (vect_get_vector_types_for_stmt): Always return a vector type
366 immediately, rather than deferring the choice for boolean results.
367 Use a vector mask type instead of a normal vector if
368 vect_use_mask_type_p.
369 (vect_get_mask_type_for_stmt): Delete.
370 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
371 mask_producers argument and special boolean_type_node handling.
372 (vect_determine_vf_for_stmt): Remove mask_producers argument and
373 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
374 (vect_determine_vectorization_factor): Update call accordingly.
375 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
376 boolean_type_node handling.
377 (vect_slp_analyze_node_operations_1): Likewise.
379 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
381 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
382 (vect_use_mask_type_p): New function.
383 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
384 mask precision to the pattern statement.
385 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
386 and use it to initialize the new stmt's mask precision.
387 (search_type_for_mask_1): Delete.
388 (search_type_for_mask): Replace with...
389 (integer_type_for_mask): ...this new function. Use the information
390 cached in the stmt_vec_info.
391 (vect_recog_bool_pattern): Update accordingly.
392 (build_mask_conversion): Pass the scalar type associated with the
393 mask type to append_pattern_def_seq.
394 (vect_recog_mask_conversion_pattern): Likewise. Call
395 integer_type_for_mask instead of search_type_for_mask.
396 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
397 of search_type_for_mask.
398 (possible_vector_mask_operation_p): New function.
399 (vect_determine_mask_precision): Likewise.
400 (vect_determine_stmt_precisions): Call it.
402 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
404 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
405 the slp_tree parameter with a group size parameter.
406 (vect_get_mask_type_for_stmt): Likewise.
407 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
408 (vect_get_mask_type_for_stmt): Likewise.
409 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
412 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
414 * tree-vect-stmts.c (vectorizable_operation): Punt early
415 on codes that are handled elsewhere.
417 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
419 * doc/sourcebuild.texi (vect_bool_cmp): Document.
420 * tree-vect-patterns.c (search_type_for_mask_1): If neither
421 operand to a boolean comparison is a natural vector mask,
422 handle both operands like normal integers instead.
424 2019-11-29 Richard Biener <rguenther@suse.de>
426 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
427 out early for too large objects.
429 2019-11-29 Martin Jambor <mjambor@suse.cz>
432 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
433 the summary only if the summary exists.
434 (find_more_scalar_values_for_callers_subset): Check node_dead in
435 the summary only if the summary exists.
436 (ipcp_store_bits_results): Ignore nodes without lattices.
437 (ipcp_store_vr_results): Likewise.
438 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
439 header files required by them.
440 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
442 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
444 PR tree-optimization/92710
445 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
446 vector mask arguments.
448 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
450 * profile-count.c (profile_count::to_cgraph_frequency,
451 profile_count::to_sreal_scale): Check for compaibility of counts.
452 * profile-count.h (compatible_p): Make public; add checking for
453 global0 versus global types.
454 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
456 2019-11-29 Richard Biener <rguenther@suse.de>
458 PR tree-optimization/92715
459 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
460 out for uniform vectors and source vectors with less elements
461 than the destination.
463 2019-11-29 Martin Liska <mliska@suse.cz>
466 * ipa-devirt.c (types_same_for_odr): Check for existence
469 2019-11-29 Richard Biener <rguenther@suse.de>
471 PR tree-optimization/92704
472 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
473 in loops performing only loads.
475 2019-11-29 Julian Brown <julian@codesourcery.com>
477 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
478 BT_DFLOAT128_PTR) Remove.
479 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
480 TI_DFLOAT128_PTR_TYPE): Remove.
481 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
482 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
483 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
484 dfloat128_ptr_type_node): Remove macros.
486 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
488 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
490 (*movdi_internal64): Ditto.
492 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
495 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
496 indexed_or_indirect_operand to be memory_operand.
497 (bswap<mode>2_store for HSI): Ditto.
498 (bswapdi2_load): Ditto.
499 (bswapdi2_store): Ditto.
501 2019-11-28 Martin Liska <mliska@suse.cz>
504 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
505 headers for translation.
507 2019-11-28 Martin Liska <mliska@suse.cz>
510 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
513 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
515 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
518 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
520 * profile-count.c (profile_count::combine_with_ipa_count): Return
521 uninitialized count if called on ininitialized count.
523 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
525 * ipa-inline-transform.c (inline_transform): Scale profile before
528 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
530 * profile-count.h (profile_count::max): Work on profiles of different
532 (profile_count::apply_scale): Be sure that ret is not local or global0
533 type if num is global.
535 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
537 * profile-count.h (profile_count::max): Work on profiles of different
539 (profile_count::apply_scale): Be sure that ret is not local or global0
540 type if num is global.
542 2019-11-28 Martin Jambor <mjambor@suse.cz>
545 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
547 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
548 Removed trailig whitespace.
550 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
552 * profile-count.h (profile_count::combine_with_ipa_count_within):
554 * profile-count.c (profile_count::combine_with_ipa_count_within):
556 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
559 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
561 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
562 of counters are done same way.
564 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
566 * ipa-cp.c (update_profiling_info): Fix scaling.
568 2019-11-28 Richard Biener <rguenther@suse.de>
570 PR tree-optimization/92645
571 * tree-inline.c (remap_gimple_stmt): When the return value
572 is not wanted, elide GIMPLE_RETURN.
574 2019-11-28 Richard Biener <rguenther@suse.de>
576 PR tree-optimization/92645
577 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
578 conversions inside a mode class. Remove restriction on
579 preserving the element size.
580 (simplify_vector_constructor): Deal with the above and for
581 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
582 and VEC_PACK_TRUNC_EXPR.
584 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
586 Must use push insn to pass varargs arguments of DFmode because
587 otherwise the middle-end generates wrong code.
590 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
592 2019-11-28 Jakub Jelinek <jakub@redhat.com>
594 PR tree-optimization/92691
595 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
597 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
598 calls, return !handle_printf_call rather than always returning true.
599 (check_and_optimize_stmt): Describe return value meaning in function
600 comment. Formatting fix.
602 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
604 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
605 combination of globa0 and global counters..
607 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
610 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
611 by VECTOR_UNIT_NONE_P instead.
613 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
615 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
616 Refine VF to VF_AVX512VL.
618 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
620 * config/rs6000/rs6000.md (movsi_internal): Reformat.
621 (movdi_internal64): Reformat.
623 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
626 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
627 builtin if we don't have an actual type.
628 (builtin_function_type): If the builtin function uses a DFP type
629 and decimal float has been disabled, then return NULL_TREE.
631 2019-11-27 Jakub Jelinek <jakub@redhat.com>
633 PR rtl-optimization/92510
634 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
635 of comparison into a comparison with different mode if both imode and
636 omode are scalar integral modes.
638 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
640 PR rtl-optimization/90007
641 * recog.c (constrain_operands): Permit hard registers too for
642 memory when LRA is used.
644 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
646 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
647 between Coldfire and regular m68k.
648 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
650 2019-11-27 Richard Biener <rguenther@suse.de>
652 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
653 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
654 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
655 * optabs-tree.c (supportable_convert_operation): Do not call
656 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
657 * optabs-tree.h (supportable_convert_operation): Adjust.
658 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
659 * doc/tm.texi: Regenerate.
660 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
661 * tree-vect-generic.c (expand_vector_conversion): Likewise.
662 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
663 unused decl parameter and adjust.
664 (vect_create_vectorized_promotion_stmts): Likewise.
665 (vectorizable_conversion): Adjust.
667 2019-11-27 Richard Biener <rguenther@suse.de>
669 PR tree-optimization/92690
670 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
671 converting elements not originally converted.
673 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
676 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
677 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
678 mpfr_rnd_t instead of mp_rnd_t.
679 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
680 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
681 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
682 Use mpfr_exp_t instead of mp_exp_t.
683 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
684 MPFR_RNDx instead of GMP_RNDx.
685 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
686 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
687 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
688 of mp_rnd_t and remove MPFR_RNDx poisoning.
689 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
691 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
693 PR tree-optimization/91790
694 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
695 DR for vect_setup_realignment when first_stmt_info is different
696 from first_stmt_info_for_drptr.
698 2019-11-27 Richard Biener <rguenther@suse.de>
700 PR tree-optimization/92645
701 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
702 CTORs with just a subset of the original vectors.
704 2019-11-27 Richard Biener <rguenther@suse.de>
707 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
708 edges and instead record blocks in bitmap.
709 (gimple_expand_calls_inline): Adjust.
710 (fold_marked_statements): Delay EH cleanup until all folding is
712 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
715 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
717 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
719 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
722 2019-11-27 Jakub Jelinek <jakub@redhat.com>
725 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
727 2019-11-26 Martin Sebor <msebor@redhat.com>
729 PR tree-optimization/92683
730 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
731 inadvertently removed in a previous change. Rename local variable
734 2019-11-26 Richard Biener <rguenther@suse.de>
737 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
740 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
742 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
744 2019-11-26 Jakub Jelinek <jakub@redhat.com>
746 PR tree-optimization/92644
747 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
748 next to INTEGER_CST checks.
750 2019-11-26 Richard Biener <rguenther@suse.de>
752 PR tree-optimization/92645
753 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
754 do not build the operation from scalars if the operand is.
756 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
758 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
759 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
762 2019-11-25 Martin Liska <mliska@suse.cz>
764 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
765 up used dump message.
767 2019-11-25 Martin Liska <mliska@suse.cz>
770 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
771 too strict checking assert.
773 2019-11-25 Joseph Myers <joseph@codesourcery.com>
776 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
777 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
778 error_mark_node if corresponding global tree node is NULL.
779 * tree.c (build_common_tree_nodes): Do not initialize
780 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
781 decimal floating-point not supported.
783 2019-11-25 Joseph Myers <joseph@codesourcery.com>
785 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
788 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
790 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
791 Replace code for non-CONST_INT constants with gcc_unreachable.
792 * config/m68k/m68k.md (cbranchdi): Don't generate individual
794 (CMPMODE): New mode_iterator.
795 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
797 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
799 (cmp<mode>_68881): Remove 'F' constraint from first comparison
801 (bit test insns patterns): Use nonimmediate_operand, not
802 register_operand, for source operands that allow memory in
804 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
805 Use register_operand, not nonimmediate_operand, for the
807 (DBCC): New mode_iterator.
808 (dbcc peepholes): Use it to reduce duplication.
809 (trap): Use const_true_rtx, not const1_rtx.
810 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
811 from m68k_subword_comparison_operand and changed to handle
815 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
817 (m68k_init_cc): New declaration.
818 (m68k_output_compare_di, m68k_output_compare_si)
819 (m68k_output_compare_hi, m68k_output_compare_qi)
820 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
821 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
822 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
823 m68k_output_branch_float, m68k_output_branch_float_rev):
825 (valid_dbcc_comparison_p_2, flags_in_68881)
826 (output_btst): Remove declaration.
827 * config/m68k/m68k.c (INCLDUE_STRING): Define.
828 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
829 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
830 (flags_compare_op0, flags_compare_op1, flags_operand1,
831 flags_operand2, flags_valid): New static variables.
832 (m68k_find_flags_value, m68k_init_cc): New functions.
833 (handle_flags_for_move, m68k_asm_final_postscan_insn,
834 remember_compare_flags): New static functions.
835 (output_dbcc_and_branch): New argument CODE. Use it, and add
836 PLUS and MINUS to the possible codes. All callers changed.
837 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
838 and INSN arguments, add CODE arg. Return the comparison code
839 to use. All callers changed. Use CODE instead of
840 next_insn_tests_no_inequality, and replace cc_status management
841 with changing the return code.
842 (m68k_rtx_costs): Instead of testing for COMPARE, test for
843 RTX_COMPARE or RTX_COMM_COMPARE.
844 (output_move_simode, output_move_qimode): Call
845 handle_flags_for_move.
846 (notice_update_cc): Delete function.
847 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
848 m68k_output_compare_hi, m68k_output_compare_qi,
849 m68k_output_compare_fp, m68k_output_branch_integer,
850 m68k_output_branch_integer_rev, m68k_output_scc,
851 m68k_output_branch_float, m68k_output_branch_float_rev,
852 m68k_output_scc_float): New functions.
853 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
854 once at the start, and set flags_valid and flags_operand1 if the
856 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
857 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
859 (CC_STATUS_INIT): Define.
860 * config/m68k/m68k.md (flags_valid): New define_attr.
861 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
862 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
863 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
864 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
865 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
866 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
867 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
868 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
869 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
870 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
871 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
872 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
873 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
874 ctrapqi4, conditional_trap): Delete patterns.
875 (cbranchdi4_insn): New pattern.
876 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
877 test high part only. When testing EQ or NE, generate beq0_di
878 and bne0_di patterns directly.
879 (cstoredi4): When testing LT or GE, test high part only.
880 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
882 (scc0_constraints, cmp1_constraints, cmp2_constraints,
883 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
884 cmp2_cf_predicate): New define_mode_attrs.
885 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
886 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
887 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
889 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
890 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
891 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
893 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
894 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
896 (BTST): New define_mode_iterator.
897 (btst_predicate, btst_constraint, btst_range): New
899 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
901 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
902 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
903 patterns): Set attr "flags_valid".
904 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
905 management. Set attr "flags_valid".
906 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
907 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
908 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
909 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
910 manual CC_STATUS management.
911 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
912 unnamed strict_lowpart subhi and subqi patterns): Set attr
914 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
915 Remove code to operate on address regs and assert the case
917 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
918 manual CC_STATUS_INIT.
919 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
920 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
921 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
922 one_cmplqi2, unnamed strict_lowpart patterns
923 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
924 one_cmplhi and one_cmplqi): Set attr "flags_valid".
925 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
926 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
928 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
929 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
930 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
931 unnamed strict_low_part patterns for HI and
932 QI versions): Set attr "flags_valid".
933 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
934 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
935 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
936 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
937 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
938 (various unnamed peepholes): Adjust compare/branch sequences
939 for new cbranch patterns.
940 (dbcc peepholes): Likewise, and output the comparison here
942 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
943 (fp_src_operand): Allow constant zero.
944 (address_reg_operand): New predicate.
946 * rtl.h (inequality_comparisons_p): Remove declaration.
947 * recog.h (next_insn_tests_no_inequality): Likewise.
948 * rtlanal.c (inequality_comparisons_p): Delete function.
949 * recog.c (next_insn_tests_no_inequality): Likewise.
951 2019-11-25 Richard Biener <rguenther@suse.de>
953 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
954 (vect_detect_hybrid_slp): Swap lane and instance iteration,
955 properly re-building the visited hash-map for each lane.
957 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
959 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
960 gcn_md_reorg): Remove unused variables.
961 (gcn_emutls_var_init): Add missing (but unreachable) return
963 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
964 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
965 an uninitialized variable.
967 2019-11-25 Martin Jambor <mjambor@suse.cz>
970 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
971 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
972 (cgraph_materialize_clone): Move removel from clone tree to the
973 the new method and use it instead.
974 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
975 bodies of clones, also remove it from the clone tree.
977 2019-11-25 Martin Jambor <mjambor@suse.cz>
980 * ipa-sra.c (process_isra_node_results): Put the new node to the
981 same comdat group as the original node.
983 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
985 Build double32 / long-double32 multilibs if needed.
989 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
990 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
991 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
992 tm_defines and pass to genmultilib.awk.
993 * config/avr/genmultilib.awk: Use these variables to add double32
994 and / or long-double32 multilib(s) as needed.
995 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
997 2019-11-25 Richard Biener <rguenther@suse.de>
999 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1000 loop body, defaulted to NULL.
1001 (single_likely_exit): Add exit vector argument
1002 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1003 (number_of_iterations_exit): Likewise.
1004 (number_of_iterations_exit_assumptions): Likewise.
1005 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1007 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1008 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1009 Compute exit vector around call to single_likely_exit.
1010 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1011 loop body to loop_only_exit_p.
1012 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1014 (number_of_iterations_exit_assumptions): Get loop body from caller
1016 (number_of_iterations_exit): Pass through new loop body arg.
1017 (infer_loop_bounds_from_undefined): Get loop body from caller.
1018 (estimate_numbers_of_iterations): Compute loop body once.
1020 2019-11-25 Richard Biener <rguenther@suse.de>
1022 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1023 auto_bb_flag instead of an sbitmap for visited handling.
1025 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1027 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1029 (vector_fp_comparison_complex): Likewise.
1030 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1032 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1034 (vector_lt<mode> for VEC_F): Refactor with
1035 vector_fp_comparison_simple.
1036 (vector_le<mode> for VEC_F): Likewise.
1037 (vector_unge<mode> for VEC_F): Likewise.
1038 (vector_unle<mode> for VEC_F): Likewise.
1039 (vector_ne<mode> for VEC_F): Likewise.
1040 (vector_ungt<mode> for VEC_F): Likewise.
1041 (vector_unlt<mode> for VEC_F): Likewise.
1042 (vector_ltgt<mode> for VEC_F): Refactor with
1043 vector_fp_comparison_complex.
1044 (vector_ordered<mode> for VEC_F): Likewise.
1045 (vector_uneq<mode> for VEC_F): Likewise.
1046 (vector_unordered<mode> for VEC_F): Likewise.
1048 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1050 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1051 COMPARE, representing an overflow detection.
1053 * combine.c (combine_instructions): Record costs for jumps.
1055 * combine.c (can_combine_p): Allow autoinc in jumps.
1057 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1059 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1060 * doc/invoke.texi (max-inline-insns-single-O2,
1061 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1062 early-inlining-insns-O2): Remove documentation.
1063 * ipa-fnsummary.c (analyze_function_body,
1064 compute_fn_summary): Use opt_for_fn when accessing parameters.
1065 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1066 inline_insns_auto, can_inline_edge_by_limits_p,
1067 want_early_inline_function_p, big_speedup_p,
1068 want_inline_small_function_p, want_inline_self_recursive_call_p,
1069 recursive_inlining, compute_max_insns, inline_small_functions):
1071 * opts.c (default_options): Add -O3 defaults for
1072 OPT__param_early_inlining_insns_,
1073 OPT__param_inline_heuristics_hint_percent_,
1074 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1075 * params.opt (-param=early-inlining-insns-O2=,
1076 -param=inline-heuristics-hint-percent-O2=,
1077 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1078 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1079 -param=inline-min-speedup=, -param=inline-unit-growth=,
1080 -param=large-function-growth=, -param=large-stack-frame=,
1081 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1082 -param=max-inline-insns-recursive=,
1083 -param=max-inline-insns-recursive-auto=,
1084 -param=max-inline-insns-single=,
1085 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1086 -param=max-inline-recursive-depth=,
1087 -param=max-inline-recursive-depth-auto=,
1088 -param=min-inline-recursive-probability=,
1089 -param=partial-inlining-entry-probability=,
1090 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1091 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1094 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1096 * ipa-fnsummary.c: Fix comment typos.
1097 * ipa-ref.h: Likewise.
1098 * ipa-predicate.h: Likewise.
1099 * ipa-split.c: Likewise.
1100 * ipa-inline-analysis.c: Likewise.
1101 * ipa-predicate.c: Likewise.
1102 * ipa-devirt.c: Likewise.
1103 * ipa-icf.h: Likewise.
1104 * profile-count.c: Likewise.
1105 * ipa-icf.c: Likewise.
1106 (sem_function::equals_wpa): Fix typos in dump messages.
1107 * ipa-icf-gimple.h: Fix comment typos.
1108 * ipa-inline-transform.c: Likewise.
1109 * ipa-polymorphic-call.c: Likewise.
1110 * ipa-fnsummary.h: Likewise.
1111 * ipa-inline.c: Likewise.
1112 (dump_inline_stats): Fix typo in debug dump message.
1113 * profile-count.h: Fix comment typos.
1116 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1117 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1118 register_operand, force x into register before storing it into dest.
1122 * doc/extend.texi (attribute access): Fix a typo.
1124 PR rtl-optimization/92610
1125 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1126 cse_cfg_altered is set, even when tem is 0.
1127 (rest_of_handle_cse_after_global_opts): Likewise.
1129 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1132 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1133 tree_hash): Move to ...
1134 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1135 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1137 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1139 PR tree-optimization/92618
1140 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1141 containing the auto_vec and a tree.
1142 (undistribute_bitref_for_vector): Handle the case when element type
1143 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1146 2019-11-22 Martin Sebor <msebor@redhat.com>
1149 * attribs.h (struct attr_access): New.
1150 * attribs.c (decl_attributes): Add an informational note.
1151 * builtins.c (check_access): Make extern. Consistently set no-warning
1152 after issuing a warning. Handle calls through function pointers. Set
1154 * builtins.h (check_access): Declare.
1155 * calls.c (rdwr_access_hash): New type.
1157 (init_attr_rdwr_indices): New function.
1158 (maybe_warn_rdwr_sizes): Same.
1159 (initialize_argument_information): Call init_attr_rdwr_indices.
1160 Call maybe_warn_rdwr_sizes.
1161 (get_size_range): Avoid null argument.
1162 * doc/extend.texi (attribute access): Document new attribute.
1164 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1166 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1167 (ACC_LDS_SIZE): Define.
1168 (OTHER_LDS_SIZE): Define.
1169 (LDS_SIZE): Redefine using above.
1170 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1172 2019-11-22 Martin Sebor <msebor@redhat.com>
1175 * builtins.c (check_nul_terminated_array): New function.
1176 (fold_builtin_0): Remove declaration.
1177 (fold_builtin_1): Same.
1178 (fold_builtin_2): Same.
1179 (fold_builtin_3): Same.
1180 (fold_builtin_strpbrk): Add argument.
1181 (fold_builtin_strspn): Same.
1182 (fold_builtin_strcspn): Same.
1183 (expand_builtin_strcat): Call it. Remove unused argument.
1184 (expand_builtin_stpncpy): Same.
1185 (expand_builtin_strncat): Same.
1186 (expand_builtin_strncpy): Same. Adjust indentation.
1187 (expand_builtin_strcmp): Same.
1188 (expand_builtin_strncmp): Same.
1189 (expand_builtin_fork_or_exec): Same.
1190 (expand_builtin): Handle more built-ins.
1191 (fold_builtin_2): Add argument.
1192 (fold_builtin_n): Make static. Add argument.
1193 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1194 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1195 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1196 (fold_call_stmt): Pass new argument to fold_builtin_n.
1197 * builtins.h: Correct a comment.
1198 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1199 check_nul_terminated_array.
1200 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1201 check_nul_terminated_array.
1202 (handle_builtin_strchr): Same.
1203 (handle_builtin_string_cmp): Same.
1205 2019-11-22 Martin Sebor <msebor@redhat.com>
1207 PR tree-optimization/92501
1208 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1209 handle unterminated arrays. Rename local variables for clarity.
1211 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1213 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1214 granulated_sgprs according to architecture.
1216 2019-11-22 Jan Hubicka <jh@suse.cz>
1218 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1219 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1220 (memory_block_pool::reduce_free_list): ... this one.
1221 (memory_block_pool::trim): New static function.
1222 * memory-block.h (memory_block_pool::freelist_size): New constant
1223 (memory_block_pool::clear_free_list): Rename to ...
1224 (memory_block_pool::reduce_free_list): ... this one.
1225 (memory_block_pool::trim): Declare.
1227 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1229 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1231 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1233 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1235 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1237 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1238 (bic_cmp0_noout): New pattern.
1239 (bic_cmp0): Likewise.
1240 (neg_scc_insn): Remove pattern.
1241 (not_scc_insn): Likewise.
1243 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1245 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1247 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1249 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1250 pedwarn instead of warning_at for fallthrough not preceding a case
1253 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1255 PR tree-optimization/92608
1256 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1259 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1261 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1263 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1264 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1265 special for FP comparisons that need a cror instruction eventually.
1266 (rs6000_emit_fp_cror): New function.
1267 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1268 instruction, for normal FP modes, with HONOR_NANS.
1269 (rs6000_emit_cbranch): Reformat.
1270 * config/rs6000/rs6000.md (fp_rev): New iterator.
1271 (fp_two): New iterator.
1272 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1273 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1274 *cbranch_2insn: New define_insn_and_split.
1276 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1278 PR tree-optimization/92526
1279 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1280 versioning for alignment if the accesses do not have a consistent
1281 mask, rather than asserting that the masks are consistent.
1283 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1285 PR tree-optimization/92595
1286 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1288 (vectorizable_store, vectorizable_load): Likewise.
1290 2019-11-21 Jan Hubicka <jh@suse.cz>
1292 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1293 (resolve_noninline_speculation, inline_small_functions): Avoid
1296 2019-11-21 Richard Biener <rguenther@suse.de>
1298 * lra.c (lra_insn_recog_data_pool): New.
1299 (free_insn_recog_data): Adjust.
1300 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1301 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1303 2019-11-21 Richard Biener <rguenther@suse.de>
1305 PR tree-optimization/92596
1306 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1308 2019-11-21 Jan Hubicka <jh@suse.cz>
1310 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1311 ready for some vectors to not be allocated.
1312 (evaluate_properties_for_edge): Document better; make
1313 known_vals and known_aggs caller allocated; avoid determining
1314 values of parameters which are not used.
1315 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1317 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1318 (do_estimate_edge_size): Likewise.
1319 (do_estimate_edge_hints): Likewise.
1320 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1321 values are not known.
1322 (ipa_release_agg_values): Add option to not release vector itself.
1323 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1325 2019-11-21 Richard Biener <rguenther@suse.de>
1327 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1328 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1329 (loop_iterator::loop_iterator): Adjust.
1330 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1331 (compute_dominance_frontiers): ... this. Hoist invariant
1332 get_immediate_dominator call.
1333 (compute_idf): Use a work-set instead of a work-list for more
1334 optimal iteration order and duplicate avoidance.
1335 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1336 the vector all the time, instead pre-allocate the vector only
1338 (delete_update_ssa): Simplify.
1339 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1341 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1343 PR tree-optimization/91355
1344 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1345 for early_bb scaled count with best_bb count comparison.
1347 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1349 * ipa-inline.c (edge_badness): Likewise.
1350 * lto-streamer.h (class lto_location_cache): Likewise.
1351 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1352 gratutious -> gratuitous.
1354 2019-11-21 Richard Biener <rguenther@suse.de>
1357 2019-09-17 Richard Biener <rguenther@suse.de>
1359 PR tree-optimization/91790
1360 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1361 use the correct DR for setting up realignment.
1363 2019-11-21 Richard Biener <rguenther@suse.de>
1365 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1366 (equiv_class_obstack): New.
1367 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1368 (perform_var_substitution): Initialize equiv_class_obstack.
1369 (free_var_substitution_info): Free equiv_class_obstack.
1371 2019-11-20 Jan Hubicka <jh@suse.cz>
1373 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1374 edge growth when callee function is very large.
1375 * ipa-inline.h (estimate_min_edge_growth): New.
1377 2019-11-20 Jan Hubicka <jh@suse.cz>
1379 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1380 negative time in calls summary; correct roundoff errors
1381 leading to negative times.
1382 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1384 (ipa_update_overall_fn_summary): Add RESET parameter.
1385 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1386 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1388 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1390 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1391 def types for two-operation SLP.
1393 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1396 * doc/sourcebuild.texi (vect_char_add): Document.
1398 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1400 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1401 * function.c (record_final_call): Record even calls that might
1402 have been in the cgraph.
1403 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1406 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1408 * configure.ac: Use https for gcc.gnu.org
1409 * configure: Regenerated.
1410 * doc/install.texi: Use https for gcc.gnu.org.
1411 * doc/sourcebuild.texi: Likewise.
1413 2019-11-20 Julian Brown <julian@codesourcery.com>
1415 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1417 2019-11-20 Jan Hubicka <jh@suse.cz>
1419 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1420 parameter and update call_size_time_table.
1421 (ipa_fn_summary::max_size_time_table_size): New constant.
1422 (estimate_calls_size_and_time_1): Break out from ...
1423 (estimate_calls_size_and_time): ... here; implement summary production.
1424 (summarize_calls_size_and_time): New function.
1425 (ipa_call_context::estimate_size_and_time): Bypass
1426 estimate_calls_size_and_time for leaf functions.
1427 (ipa_update_overall_fn_summary): Likewise.
1428 * ipa-fnsummary.h (call_size_time_table): New.
1429 (ipa_fn_summary::account_size_time): Update prototype.
1431 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1433 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1435 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1438 * common.opt (fcommon): Change init to 1.
1439 * doc/invoke.texi (-fcommon): Update documentation.
1441 2019-11-20 Jan Hubicka <jh@suse.cz>
1443 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1446 2019-11-20 Jan Hubicka <jh@suse.cz>
1448 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1449 Add allocator parameter.
1450 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1451 (fibonacci_heap<K,V>::m_allocator): New.
1452 (fibonacci_heap<K,V>::m_own_allocator): New.
1453 (fibonacci_heap<K,V>::insert): Use allocator.
1454 (fibonacci_heap<K,V>::extract_min): Likewise.
1455 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1457 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1459 * fibonacci_heap.c: Include alloc-pool
1460 (test_empty_heap): Initialize allocator.
1461 (test_union): Likewise.
1462 * bb-reorder.c: Include alloc-pool.h.
1463 * tracer.c: Inlclude alloc-pool.h.
1465 2019-11-20 Jan Hubicka <jh@suse.cz>
1467 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1468 Preallocate for 32 entries.
1469 (DFS::worklist): Likewise.
1470 (DFS::DFS): Do not initialize sccstack and worklist.
1471 (DFS::~DFS): Do not release sccstack.
1473 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1476 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1477 Handle UNORDERED if !HONOR_NANS.
1479 2019-11-20 Jan Hubicka <jh@suse.cz>
1481 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1482 (edge_badness): ... here.
1483 (inline_small_functions): Use monotonicity of badness calculation
1484 to avoid redundant updates.
1486 2019-11-20 Richard Biener <rguenther@suse.de>
1488 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1489 constructors we are actually analyzing.
1490 (vect_slp_check_for_constructors): Do not vectorize uniform
1491 constuctors, do not dump here.
1493 2019-11-20 Richard Biener <rguenther@suse.de>
1495 PR tree-optimization/92537
1496 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1497 vectorization validity check...
1498 (vect_slp_analyze_operations): ... here.
1500 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1502 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1503 (make_pass_arc_predicate_delay_insns): Likewise.
1504 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1505 method, remove clone.
1506 (class pass_arc_predicate_delay_insns): Likewise.
1507 (arc_init): Remove registering of ARC specific passes.
1508 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1509 * config/arc/arc-passes.def: New file.
1511 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1514 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1515 and has a mode that doesn't have corresponding integral type.
1518 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1519 clear opts->x_ix86_isa_flags{,2} here...
1520 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1521 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1524 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1526 (insert_clobbers_for_var): Fix a typo in function comment.
1528 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1529 Jakub Jelinek <jakub@redhat.com>
1532 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1533 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1536 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1538 Make 0-series device specs work with older versions of avr-gcc.
1541 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1542 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1543 <*link_pm_base_address>: Don't write spec.
1544 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1546 2019-11-20 Richard Biener <rguenther@suse.de>
1549 * builtins.c (compute_objsize): Deal with VLAs.
1551 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1553 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1555 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1557 (power9_sched_reorder2): Call new function.
1558 (rs6000_sched_reorder2): Likewise.
1560 2019-11-18 Jan Hubicka <jh@suse.cz>
1562 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1563 (estimate_calls_size_and_time): Update.
1565 2019-11-18 Jan Hubicka <jh@suse.cz>
1567 * ipa-inline.c (inlining_speedup): New function.
1568 (edge_badness): Use it.
1570 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1571 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1573 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1574 Mark as not having "likely" version.
1575 * config/mips/mips.md (insn_count): The simd_div instruction with
1576 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1577 (can_delay): Exclude simd_branch.
1578 (defile_delay *): Add simd_branch instructions.
1579 They have one regular delay slot.
1581 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1584 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1586 * cse.c (cse_insn): Delete no-op register moves too.
1587 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1588 Take a second comparison to control the value for NE.
1589 (mask_to_comparison): Handle unsigned comparisons.
1590 (simplify_logical_relational_operation): Likewise. Update call
1591 to comparison_to_mask. Handle AND if !HONOR_NANs.
1592 (simplify_binary_operation_1): Call the above for AND too.
1594 2019-11-19 Martin Liska <mliska@suse.cz>
1596 * toplev.c (general_init): Move the call...
1597 (toplev::main): ... here as we need init_options_struct
1600 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1603 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1606 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1608 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1609 (armv7-a): Likewise.
1610 (armv7ve): Likewise.
1612 2019-11-19 Richard Biener <rguenther@suse.de>
1614 PR tree-optimization/92581
1615 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1616 condition reduction chains gather all conditions involved
1617 for computing the index reduction vector.
1619 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1621 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1622 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1623 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1624 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1625 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1626 (aarch64_init_memtag_builtins): New.
1627 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1628 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1629 (aarch64_expand_builtin_memtag): New.
1630 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1631 (AARCH64_BUILTIN_SUBCODE): New macro.
1632 (aarch64_resolve_overloaded_memtag): New.
1633 (aarch64_resolve_overloaded_builtin_general): New. Call
1634 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1635 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1636 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1637 (aarch64_resolve_overloaded_builtin): Call
1638 aarch64_resolve_overloaded_builtin_general.
1639 * config/aarch64/aarch64-protos.h
1640 (aarch64_resolve_overloaded_builtin_general): New declaration.
1641 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1642 (TARGET_MEMTAG): Likewise.
1643 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1644 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1645 (irg, gmi, subp, addg, ldg, stg): New instructions.
1646 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1647 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1648 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1649 (__arm_mte_get_tag): Likewise.
1650 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1651 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1652 * config/arm/types.md (memtag): New.
1653 * doc/invoke.texi (-memtag): Update description.
1655 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1657 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1658 to define __GCC_ASM_FLAG_OUTPUTS__.
1659 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1660 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1661 depending on TARGET_THUMB1.
1662 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1664 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1667 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1670 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1671 operand is negative and one non-negative, compare the non-negative
1672 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1673 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1674 and s2 == 0, unless one of them is known to be negative. Remove
1675 tem2 variable, use tem where tem2 has been used before.
1677 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1679 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1681 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1683 PR tree-optimization/92557
1684 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1685 vmode rather than asserting it always is.
1687 2019-11-19 Richard Biener <rguenther@suse.de>
1689 PR tree-optimization/92554
1690 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1691 for the actual condition stmt and deal with sign-changes.
1693 2019-11-19 Richard Biener <rguenther@suse.de>
1695 PR tree-optimization/92555
1696 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1699 2019-11-19 Martin Liska <mliska@suse.cz>
1702 * config/riscv/riscv.c (riscv_address_insns): Initialize
1703 addr in order to remove boostrap -Wmaybe-uninitialized
1706 2019-11-18 Martin Sebor <msebor@redhat.com>
1708 PR tree-optimization/92493
1709 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1712 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1714 * cfgloop.c (get_loop_body_in_custom_order): New.
1715 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1716 * tree-loop-distribution.c (class loop_distribution): New.
1717 (bb_top_order_cmp): Remove.
1718 (bb_top_order_cmp_r): New.
1719 (create_rdg_vertices): Move into class loop_distribution.
1720 (stmts_from_loop): Same as above.
1721 (update_for_merge): Same as above.
1722 (partition_merge_into): Same as above.
1723 (get_data_dependence): Same as above.
1724 (data_dep_in_cycle_p): Same as above.
1725 (update_type_for_merge): Same as above.
1726 (build_rdg_partition_for-vertex): Same as above.
1727 (classify_builtin_ldst): Same as above.
1728 (classify_partition): Same as above.
1729 (share_memory_accesses): Same as above.
1730 (rdg_build_partitions): Same as above.
1731 (pg_add_dependence_edges): Same as above.
1732 (build_partition_graph): Same as above.
1733 (merge_dep_scc_partitions): Same as above.
1734 (break_alias_scc_partitions): Same as above.
1735 (finalize_partitions): Same as above.
1736 (distribute_loop): Same as above.
1737 (bb_top_order_init): New method
1738 (bb_top_order_destroy): New method.
1739 (get_bb_top_order_index_size): New method.
1740 (get_bb_top_order_index_index): New method.
1741 (get_bb_top_order_index_index): New method.
1742 (loop_distribution::execute): New method.
1743 (pass_loop_distribution::execute): Instantiate loop_distribution.
1745 2019-11-18 Jan Hubicka <jh@suse.cz>
1748 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1750 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1752 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1754 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1755 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1756 * doc/md.texi: Document them.
1757 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1759 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1760 * internal-fn.c (check_ptrs_direct): New macro.
1761 (expand_check_ptrs_optab_fn): Likewise.
1762 (direct_check_ptrs_optab_supported_p): Likewise.
1763 (internal_check_ptrs_fn_supported_p): New fuction.
1764 * tree-data-ref.c: Include internal-fn.h.
1765 (create_ifn_alias_checks): New function.
1766 (create_intersect_range_checks): Use it.
1767 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1768 (optab, cmp_op): Handle it.
1769 (raw_war, unspec): New int attributes.
1770 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1772 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1774 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1776 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1779 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1781 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1784 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1786 * cse.c (cse_insn): Delete no-op register moves too.
1787 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1788 Take a second comparison to control the value for NE.
1789 (mask_to_comparison): Handle unsigned comparisons.
1790 (simplify_logical_relational_operation): Likewise. Update call
1791 to comparison_to_mask. Handle AND if !HONOR_NANs.
1792 (simplify_binary_operation_1): Call the above for AND too.
1794 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1796 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1797 splitting the main code out into...
1798 (native_encode_vector_part): ...this new function.
1799 (native_decode_vector_tree): New function.
1800 (fold_view_convert_vector_encoding): Likewise.
1801 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1804 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1806 * tree-data-ref.c (create_intersect_range_checks_index): If the
1807 alias pair describes simple WAW and WAR dependencies, just check
1808 whether the first B access overlaps later A accesses.
1809 (create_waw_or_war_checks): New function that performs the same
1810 optimization on addresses.
1811 (create_intersect_range_checks): Call it.
1813 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1815 * lra-constraints.c (valid_address_p): Take the operand and a
1816 constraint as argument. If the operand is a MEM and the constraint
1817 is a memory constraint, check whether the eliminated form of the
1818 MEM already satisfies the constraint.
1819 (process_address_1): Update calls accordingly.
1821 2019-11-18 Tom Tromey <tromey@adacore.com>
1823 * doc/tm.texi: Rebuild.
1824 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1825 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1827 2019-11-18 Richard Biener <rguenther@suse.de>
1829 PR tree-optimization/92516
1830 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1831 argument, hoist bst_map creation/destruction to ...
1832 (vect_analyze_slp): ... here, forming a true graph with
1833 SLP instances being the entries.
1834 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1835 (vect_detect_hybrid_slp): Use one visited set for all
1837 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1838 to hash-sets of slp_tree.
1839 (vect_slp_analyze_operations): Likewise.
1840 (vect_bb_slp_scalar_cost): Remove wrapper.
1841 (vect_bb_vectorization_profitable_p): Use one visited set for
1843 (vect_schedule_slp_instance): Elide bst_map use.
1844 (vect_schedule_slp): Likewise.
1846 2019-11-18 Richard Biener <rguenther@suse.de>
1848 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1849 was vectorized with just external refs fail.
1851 2019-11-18 Martin Liska <mliska@suse.cz>
1854 * ipa-icf.c (sem_function::init): Unset m_checker
1855 at the end of the function.
1857 2019-11-18 Richard Biener <rguenther@suse.de>
1859 PR tree-optimization/92558
1860 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1861 reducting the width of a reduction vector def update new_phis.
1863 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1865 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1866 and s390*-*-linux-musl* targets.
1867 * configure: Regenerate.
1869 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1871 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1872 (MUSL_DYNAMIC_LINKER64): Define.
1874 2019-11-18 Martin Liska <mliska@suse.cz>
1876 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1877 message for an unknown counter.
1878 (dbg_cnt_process_single_pair): Support 0 as minimum value.
1879 (dbg_cnt_process_opt): Remove unreachable code.
1881 2019-11-18 Martin Liska <mliska@suse.cz>
1884 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
1885 Compare LHS types of NOP_EXPR.
1887 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
1889 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
1890 "initial_pass_name" argument -- by running "*clean_state" pass.
1891 Also free the "initial_pass_name" when done.
1893 2019-11-18 Richard Biener <rguenther@suse.de>
1895 PR rtl-optimization/92462
1896 * alias.c (find_base_term): Restrict the look through ANDs.
1897 (find_base_value): Likewise.
1899 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
1901 Add support for AVR devices from the 0-series.
1904 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
1905 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
1906 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
1907 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
1908 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1909 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
1910 for spec definitions.
1911 * doc/avr-mmcu.texi: Regenerate.
1913 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
1916 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
1917 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
1918 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
1919 (ix86_reassociation_width): Ditto.
1920 * config/i386/i386-options.c (ix86_option_override_internal):
1921 Replace TARGET_AVX128_OPTIAML with
1922 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
1923 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
1924 (TARGET_AVX128_OPTIMAL): Deleted.
1925 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
1928 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1930 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
1931 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
1933 (cceq_rev_compare): Rename to...
1934 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
1936 (define_split for <bd>tf_<mode>): Add SImode first argument to
1937 gen_cceq_ior_compare.
1939 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
1941 * common/config/powerpcspe: Delete.
1943 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1945 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
1946 output in UNSPEC_WRFFR.
1948 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1950 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
1951 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
1953 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1955 * tree-data-ref.c (create_intersect_range_checks_index)
1956 (create_intersect_range_checks): Print dump messages.
1958 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1960 * tree-data-ref.c (dump_alias_pair): New function.
1961 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
1963 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1965 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
1966 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
1967 merging data references with different steps.
1968 (create_intersect_range_checks_index): Take a
1969 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
1970 Bail out if DR_ALIAS_MIXED_STEPS is set.
1971 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
1972 instead of two dr_with_seg_lens. Update call to
1973 create_intersect_range_checks_index.
1974 (create_runtime_alias_checks): Update call accordingly.
1976 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1978 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
1979 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
1980 (dr_with_seg_len_pair_t::sequencing): New enum.
1981 (dr_with_seg_len_pair_t::flags): New member variable.
1982 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
1983 parameter and initialize the flags member variable.
1984 * tree-loop-distribution.c (compute_alias_check_pairs): Update
1986 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
1987 Ensure the two data references in an alias pair are in statement
1988 order, if there is a defined order.
1989 * tree-data-ref.c (prune_runtime_alias_test_list): Use
1990 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
1991 swapped the references in a dr_with_seg_len_pair_t. OR together
1992 the flags when merging two dr_with_seg_len_pair_ts. After merging,
1993 try to restore the original dr_with_seg_len order, updating the
1994 flags if that fails.
1996 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
1998 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
1999 swapping the dr_as based on init values until we've decided
2000 whether to merge them.
2002 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2004 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2005 two accesses in each dr_with_seg_len_pair_t before trying to
2006 combine separate dr_with_seg_len_pair_ts.
2007 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2009 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2011 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2013 * config/aarch64/aarch64-sve.md
2014 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2015 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2016 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2017 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2018 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2019 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2020 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2022 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2023 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2024 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2025 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2027 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2029 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2030 (SVE_4HSI): New mode iterators.
2031 (ANY_EXTEND2): New code iterator.
2032 * config/aarch64/aarch64-sve.md
2033 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2035 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2036 ...this, handling extension to partial modes as well as full modes.
2037 Describe the extension as a predicated rather than unpredicated
2039 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2040 Likewise extend to...
2041 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2042 ...this, making the same adjustments.
2043 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2044 Likewise extend to...
2045 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2046 ...this, making the same adjustments.
2047 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2048 Likewise extend to...
2049 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2050 ...this, making the same adjustments.
2051 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2053 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2054 extension predicate.
2055 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2056 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2057 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2058 Describe the extension as a predicated rather than unpredicated
2060 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2061 Likewise. Canonicalize to a constant extension predicate.
2062 * config/aarch64/aarch64-sve-builtins-base.cc
2063 (svld1_gather_extend_impl::expand): Add an extra predicate for
2065 (svldff1_gather_extend_impl::expand): Likewise.
2067 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2069 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2071 * config/aarch64/aarch64-sve.md
2072 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2073 (gather_load<SVE_24:mode><v_int_container>): ...this.
2074 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2075 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2076 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2077 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2078 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2080 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2081 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2082 Allow the nominal extension predicate to be different from the
2084 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2085 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2087 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2089 * config/aarch64/aarch64-sve.md
2090 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2091 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2093 (aarch64_sve_adjust_stmt_cost): Call it.
2095 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2097 * config/aarch64/aarch64-sve.md
2098 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2099 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2100 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2102 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2103 ...this new pattern, handling extension to partial modes as well
2104 as full modes. Describe the extension as a predicated rather than
2105 unpredicated extension.
2106 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2107 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2108 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2110 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2111 ...this new pattern, handling extension to partial modes as well
2112 as full modes. Describe the extension as a predicated rather than
2113 unpredicated extension.
2114 * config/aarch64/aarch64-sve-builtins.cc
2115 (function_expander::use_contiguous_load_insn): Add an extra
2116 predicate for extending loads.
2117 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2118 (aarch64_sve_adjust_stmt_cost): Likewise.
2119 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2120 the cost of SVE vector stmts.
2122 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2124 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2125 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2126 * config/aarch64/aarch64-sve.md
2127 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2128 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2129 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2130 comment. Avoid new narrower_mask ambiguity.
2131 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2132 (*cond_uxt<mode>_2): Update comment.
2133 (*cond_uxt<mode>_any): Likewise.
2135 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2137 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2139 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2141 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2142 new vector float modes.
2143 (aarch64_sve_container_bits): New function.
2144 (aarch64_sve_pred_mode): Likewise.
2145 (aarch64_get_mask_mode): Use it.
2146 (aarch64_sve_element_int_mode): Handle structure modes and partial
2148 (aarch64_sve_container_int_mode): New function.
2149 (aarch64_vectorize_related_mode): Return SVE modes when given
2150 SVE modes. Handle partial modes, taking the preferred number
2151 of units from the size of the given mode.
2152 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2154 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2155 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2156 (aarch64_split_sve_subreg_move): Use the mode form of
2157 aarch64_sve_pred_mode.
2158 (aarch64_secondary_reload): Handle partial modes in the same way
2159 as full big-endian vectors.
2160 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2161 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2162 merging with the Advanced SIMD modes. If two modes have the
2163 same size, try the Advanced SIMD mode first.
2164 (aarch64_simd_valid_immediate): Use the container rather than
2165 the element mode for INDEX constants.
2166 (aarch64_simd_vector_alignment): Make the alignment of partial
2167 SVE vector modes the same as their minimum size.
2168 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2169 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2170 (mov<SVE_ALL:mode>): ...this.
2171 (movmisalign<SVE_FULL:mode>): Extend to...
2172 (movmisalign<SVE_ALL:mode>): ...this.
2173 (*aarch64_sve_mov<mode>_le): Rename to...
2174 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2175 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2176 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2177 partial modes regardless of endianness.
2178 (aarch64_sve_reload_be): Rename to...
2179 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2180 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2181 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2182 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2183 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2184 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2185 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2186 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2187 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2188 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2189 (maskload<SVE_FULL:mode><vpred>): Extend to...
2190 (maskload<SVE_ALL:mode><vpred>): ...this.
2191 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2192 (maskstore<SVE_ALL:mode><vpred>): ...this.
2193 (vec_duplicate<SVE_FULL:mode>): Extend to...
2194 (vec_duplicate<SVE_ALL:mode>): ...this.
2195 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2196 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2197 (sve_ld1r<SVE_FULL:mode>): Extend to...
2198 (sve_ld1r<SVE_ALL:mode>): ...this.
2199 (vec_series<SVE_FULL_I:mode>): Extend to...
2200 (vec_series<SVE_I:mode>): ...this.
2201 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2202 (*vec_series<SVE_I:mode>_plus): ...this.
2203 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2204 new VPRED ambiguity.
2205 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2206 (add<SVE_FULL_I:mode>3): Extend to...
2207 (add<SVE_I:mode>3): ...this.
2208 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2209 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2210 (VPRED, vpred): Likewise.
2211 (Vctype): New iterator.
2212 (vw): Remove SVE modes.
2214 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2216 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2217 (SVE_PARTIAL_I): ...this.
2218 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2220 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2222 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2223 (SVE_FULL): ...this.
2224 (SVE_I): Rename to...
2225 (SVE_FULL_I): ...this.
2226 (SVE_F): Rename to...
2227 (SVE_FULL_F): ...this.
2228 (SVE_BHSI): Rename to...
2229 (SVE_FULL_BHSI): ...this.
2230 (SVE_HSD): Rename to...
2231 (SVE_FULL_HSD): ...this.
2232 (SVE_HSDI): Rename to...
2233 (SVE_FULL_HSDI): ...this.
2234 (SVE_HSF): Rename to...
2235 (SVE_FULL_HSF): ...this.
2236 (SVE_SD): Rename to...
2237 (SVE_FULL_SD): ...this.
2238 (SVE_SDI): Rename to...
2239 (SVE_FULL_SDI): ...this.
2240 (SVE_SDF): Rename to...
2241 (SVE_FULL_SDF): ...this.
2242 (SVE_S): Rename to...
2243 (SVE_FULL_S): ...this.
2244 (SVE_D): Rename to...
2245 (SVE_FULL_D): ...this.
2246 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2247 * config/aarch64/aarch64-sve2.md: Likewise.
2249 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2251 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2253 * doc/invoke.texi: Document it.
2254 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2255 By default, return VECT_COMPARE_COSTS for SVE.
2257 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2259 * target.h (VECT_COMPARE_COSTS): New constant.
2260 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2261 * doc/tm.texi: Regenerate.
2262 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2263 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2264 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2266 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2267 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2268 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2269 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2270 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2271 (_loop_vec_info::vec_inside_cost): New member variables.
2272 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2273 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2274 (vect_analyze_loop): When autovectorize_vector_modes returns
2275 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2276 vector mode and picking the one with the lowest cost.
2277 (vect_estimate_min_profitable_iters): Record the computed costs
2278 in the loop_vec_info.
2280 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2282 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2283 element type rather than an element mode.
2284 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2285 Use get_vectype_for_scalar_type to query the natural types
2286 for a given element type rather than basing everything on
2287 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2288 query to MAX_FIXED_MODE_SIZE.
2289 (duplicate_and_interleave): Update call accordingly.
2290 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2292 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2294 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2295 optional maximum nunits.
2296 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2298 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2299 (vect_get_mask_type_for_stmt): Likewise.
2300 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2301 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2302 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2303 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2304 to get an assumed vector type for data references.
2305 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2306 (vect_update_all_shared_vectypes): Likewise.
2307 (vect_build_slp_tree_1): Pass the group size to
2308 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2309 for BB vectorization.
2310 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2311 before building the vectof from scalars.
2312 (vect_analyze_slp_instance): Pass the group size to
2313 get_vectype_for_scalar_type.
2314 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2315 types for BB vectorization here; just handle the case in which
2316 we deferred the choice for booleans.
2317 (vect_get_constant_vectors): Pass the slp_tree to
2318 get_vectype_for_scalar_type.
2319 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2320 (vectorizable_call): Likewise.
2321 (vectorizable_simd_clone_call): Likewise.
2322 (vectorizable_conversion): Likewise.
2323 (vectorizable_shift): Likewise.
2324 (vectorizable_operation): Likewise.
2325 (vectorizable_comparison): Likewise.
2326 (vect_is_simple_cond): Take the slp_tree as argument and
2327 pass it to get_vectype_for_scalar_type.
2328 (vectorizable_condition): Update call accordingly.
2329 (get_vectype_for_scalar_type): Take a group_size argument.
2330 For BB vectorization, limit the the vector to that number
2331 of elements. Also define an overload that takes an slp_tree.
2332 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2333 pass it to get_vectype_for_scalar_type.
2334 (vect_get_vector_types_for_stmt): Add a group_size argument
2335 and pass it to get_vectype_for_scalar_type. Don't use the
2336 cached vector type for BB vectorization if a group size is given.
2337 Handle data references in that case.
2338 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2339 pass it to get_mask_type_for_scalar_type.
2341 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2343 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2345 (estimate_edge_time): Use it.
2346 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2347 ret_nonspec_time parameter.
2349 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2351 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2353 2019-11-15 Nick Clifton <nickc@redhat.com>
2354 Szabolcs Nagy <szabolcs.nagy@arm.com>
2357 * config/microblaze/microblaze.c (print_operand): Print value as long.
2359 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2361 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2364 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2366 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2367 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2369 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2371 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2372 (gcn_conditional_register_usage): Use constants in place of hard-coded
2374 (gcn_hsa_declare_function_name): Set lower bound for number of
2375 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2376 MAX_NORMAL_VGPR_COUNT.
2378 2019-11-15 Martin Jambor <mjambor@suse.cz>
2380 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2383 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2385 * config/gcn/gcn.c (default_requested_args): New.
2386 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2387 set with default_requested_args.
2388 (gcn_conditional_register_usage): Limit register usage of non-kernel
2389 functions. Reassign fixed registers if a non-standard set of args is
2391 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2393 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2396 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2397 aggregate jump function when inlined-to caller has no edge summary.
2399 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2401 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2403 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2405 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2407 (print_operand_address): Use v1 for zero vector offset.
2409 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2411 PR tree-optimization/92515
2412 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2413 types when converting a vector/scalar shift into a vector/vector one,
2414 using tree_nop_conversion_p instead of useless_type_conversion_p.
2415 Move the conversion code to the transform block.
2417 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2419 * read-rtl-function.c
2420 (function_reader::add_fixup_source_location): Take additional
2421 parameter of a column.
2422 (function_reader::maybe_read_location): Optionally parse column
2423 information and pass to add_fixup_source_location.
2425 2019-11-15 Richard Biener <rguenther@suse.de>
2427 PR tree-optimization/92512
2428 * tree-vect-loop.c (check_reduction_path): Fix operand index
2429 computability check. Add check for second use in COND_EXPRs.
2431 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2434 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2435 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2437 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2439 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2440 register class for VCC_LO and VCC_HI.
2441 (gcn_spill_class): Use SGPR_REGS to spill registers in
2442 VCC_CONDITIONAL_REG.
2444 2019-11-15 Richard Biener <rguenther@suse.de>
2446 PR tree-optimization/92324
2447 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2448 singedness of SLP reduction epilouge operations. Also reduce
2449 the vector width for SLP reductions before doing elementwise
2450 operations if possible.
2452 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2454 * passes.c (skip_pass): Set epilogue_completed if skipping the
2455 pro_and_epilogue pass.
2457 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2459 * passes.c (should_skip_pass_p): Always run "dfinish".
2461 2019-11-15 Richard Biener <rguenther@suse.de>
2463 * ipa-inline.c (inline_small_functions): Move assignment
2464 to next before call destroying edge.
2466 2019-11-15 Richard Biener <rguenther@suse.de>
2468 PR tree-optimization/92039
2469 PR tree-optimization/91975
2470 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2471 previous change, treat invariants consistently as non-constant.
2472 (tree_estimate_loop_size): Ternary ops with just the first op
2473 constant are not optimized away.
2475 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2477 * gimplify.c (gimplify_call_expr): Don't call
2478 omp_resolve_declare_variant after gimplification.
2479 * omp-general.c (omp_context_selector_matches): For isa that might
2480 match in some other function, defer if in declare simd function.
2481 (omp_context_compute_score): Don't look for " score" in construct
2482 trait set. Set *score to -1 if it can't ever match.
2483 (omp_resolve_declare_variant): If any variants need to be deferred,
2484 don't punt immediately, but compute scores of all variants and if
2485 ther eis a score winner that doesn't need to be deferred, return that.
2487 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2489 * ipa-comdats.c: Fix comments typo.
2490 * ipa-profile.c: Fix comments typo.
2491 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2492 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2493 (gimple_gen_ic_func_profiler): Likewise.
2494 (pass_ipa_tree_profile::gate): Fix comments typo.
2496 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2498 * ipa-inline.c (inline_small_functions): Update iterator of next.
2500 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2502 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2503 register is suitable for the mode.
2505 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2507 * range-op.h (range_operator::fold_range): Return a bool.
2508 * range-op.cc (range_operator::wi_fold): Assert supported type.
2509 (range_operator::fold_range): Assert supported type and return true.
2510 (operator_equal::fold_range): Return true.
2511 (operator_not_equal::fold_range): Same.
2512 (operator_lt::fold_range): Same.
2513 (operator_le::fold_range): Same.
2514 (operator_gt::fold_range): Same.
2515 (operator_ge::fold_range): Same.
2516 (operator_plus::op1_range): Adjust call to fold_range.
2517 (operator_plus::op2_range): Same.
2518 (operator_minus::op1_range): Same.
2519 (operator_minus::op2_range): Same.
2520 (operator_exact_divide::op1_range): Same.
2521 (operator_lshift::fold_range): Return true and adjust fold_range call.
2522 (operator_rshift::fold_range): Same.
2523 (operator_cast::fold_range): Return true.
2524 (operator_logical_and::fold_range): Same.
2525 (operator_logical_or::fold_range): Same.
2526 (operator_logical_not::fold_range): Same.
2527 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2528 (operator_bitwise_not::op1_range): Same.
2529 (operator_cst::fold_range): Return true.
2530 (operator_identity::fold_range): Return true.
2531 (operator_negate::fold_range): Return true and adjust fold_range call.
2532 (operator_addr_expr::fold_range): Return true.
2533 (operator_addr_expr::op1_range): Adjust call to fold_range.
2535 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2536 (range_fold_unary_symbolics_p): Same.
2538 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2540 PR tree-optimization/92506
2541 * range-op.cc (range_operator::fold_range): Start with range undefined.
2542 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2543 overflow is varying.
2545 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2547 * range-op.cc (*operator*::*range): Remove calls to
2548 range_intersect, range_invert, and range_union in favor of calling
2549 the in-place API methods.
2550 (range_tests): Same.
2551 * range.cc (range_intersect): Remove.
2552 (range_union): Remove.
2553 (range_invert): Remove.
2554 * range.h (range_intersect): Remove.
2555 (range_union): Remove.
2556 (range_intersect): Remove.
2558 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2560 PR rtl-optimization/92430
2561 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2562 (pass_jump_after_combine::execute): Perform jump threading
2565 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2566 Doug Rupp <rupp@adacore.com>
2567 Olivier Hainque <hainque@adacore.com>
2569 * config.gcc: Collapse the arm-vxworks entries into
2570 a single arm-wrs-vxworks7* one, bpabi based. Update
2571 the default cpu from arm8 to armv7-a
2572 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2573 we always use ARM_UNWIND_INFO.
2574 (DWARF2_UNWIND_INFO): Remove redefinition.
2575 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2576 (VXWORKS_PERSONALITY): Define, to "llvm".
2577 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2579 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2581 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2582 _VX_CPU instead of CPU and handle arm_arch8.
2584 2019-11-14 Doug Rupp <rupp@adacore.com>
2585 Olivier Hainque <hainque@adacore.com>
2586 Jerome Lambourg <lambourg@adacore.com>
2588 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2589 * config/aarch64/aarch64-vxworks.h: New file.
2590 * config/aarch64/t-aarch64-vxworks: New file.
2592 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2593 Olivier Hainque <hainque@adacore.com>
2595 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2596 definition, pointless with a VxWorks specific version
2598 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2599 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2600 New local macros, controlling the addition of vxworks specific
2601 crtstuff objects depending on the EH mechanism and kind of
2602 module being linked.
2603 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2605 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2606 Jerome Lambourg <lambourg@adacore.com>
2607 Olivier Hainque <hainque@adacore.com>
2609 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2610 common macro definitions, conveying VXWORKS7 or 64bit general
2611 variations. Add a block to set gcc_cv_initfini_array
2612 unconditionally to "yes" for VxWorks7.
2613 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2614 by default. Update some comments.
2615 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2616 default, to be added the end of VXWORKS_LIBS_RTP.
2617 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2618 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2620 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2621 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2622 to account for the now available TLS abilities.
2623 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2624 (VXWORKS_HAVE_TLS): Likewise.
2626 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2628 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2629 (vect_slp_convert_to_external): Likewise.
2630 (vect_slp_analyze_node_operations): If analysis fails, try building
2631 the node from scalars instead.
2633 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2635 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2636 between vector types.
2637 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2638 non-widening and non-narrowing path to handle standard
2639 conversion codes, if the target supports them.
2640 * expr.c (convert_move): Try using the extend and truncate optabs
2642 * optabs-tree.c (supportable_convert_operation): Likewise.
2643 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2644 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2645 (trunc<mode><Vnarrowq>2): New patterns.
2647 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2649 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2650 require vectype and nunits_vectype to have the same size;
2651 instead assert that nunits_vectype has at least as many
2652 elements as vectype. Don't compute a separate nunits_vectype
2653 if the scalar type is obviously the same as vectype's.
2654 Tweak dump messages.
2656 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2658 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2660 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2661 (TARGET_VECTORIZE_RELATED_MODE): Define.
2663 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2665 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2666 (vec_info::used_vector_mode): New member variable.
2667 (vect_chooses_same_modes_p): Declare.
2668 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2669 chosen vector mode in vec_info::used_vector_mode.
2670 (vect_chooses_same_modes_p): New function.
2671 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2672 the same vector statements multiple times.
2673 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2675 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2677 * machmode.h (opt_machine_mode::operator==): New function.
2678 (opt_machine_mode::operator!=): Likewise.
2679 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2680 (get_related_vectype_for_scalar_type): Delete.
2681 (get_vectype_for_scalar_type_and_size): Declare.
2682 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2683 whether analysis passed or failed, and with what vector modes.
2684 Use related_vector_mode to check whether trying a particular
2685 vector mode would be redundant with the autodetected mode,
2686 and print a dump message if we decide to skip it.
2687 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2688 (vect_create_epilog_for_reduction): Use
2689 get_related_vectype_for_scalar_type instead of
2690 get_vectype_for_scalar_type_and_size.
2691 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2693 (get_related_vectype_for_scalar_type): ...this new function.
2694 Take a starting/"prevailing" vector mode rather than a vector size.
2695 Take an optional nunits argument, with the same meaning as for
2696 related_vector_mode. Use related_vector_mode when not
2697 auto-detecting a mode, falling back to mode_for_vector if no
2699 (get_vectype_for_scalar_type): Update accordingly.
2700 (get_same_sized_vectype): Likewise.
2701 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2703 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2705 * tree-vect-stmts.c (vectorizable_call): Require the types
2706 to have the same size.
2708 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2710 * tree-vect-stmts.c (vectorizable_call): If an operand is
2711 constant or external, use get_vectype_for_scalar_type
2712 rather than get_same_sized_vectype to get its vector type.
2713 (vectorizable_conversion, vectorizable_shift): Likewise.
2714 (vectorizable_operation): Likewise.
2716 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2718 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2719 (vec_info::vector_mode): ...this new field.
2720 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2721 (vect_analyze_loop, vect_transform_loop): Likewise.
2722 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2723 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2724 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2725 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2726 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2728 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2730 * target.h (vector_sizes, auto_vector_sizes): Delete.
2731 (vector_modes, auto_vector_modes): New typedefs.
2732 * target.def (autovectorize_vector_sizes): Replace with...
2733 (autovectorize_vector_modes): ...this new hook.
2734 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2736 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2737 * doc/tm.texi: Regenerate.
2738 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2739 (default_autovectorize_vector_modes): New function.
2740 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2741 (default_autovectorize_vector_modes): New function.
2742 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2743 of autovectorize_vector_sizes. Use the number of units in the mode
2744 to calculate the maximum VF.
2745 * omp-low.c (omp_clause_aligned_alignment): Use
2746 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2747 Use a loop based on related_mode to iterate through all supported
2748 vector modes for a given scalar mode.
2749 * optabs-query.c (can_vec_mask_load_store_p): Use
2750 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2751 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2752 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2753 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2755 (aarch64_autovectorize_vector_modes): ...this new function.
2756 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2757 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2758 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2759 (arc_autovectorize_vector_modes): ...this new function.
2760 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2761 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2762 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2763 (arm_autovectorize_vector_modes): ...this new function.
2764 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2765 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2766 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2767 (ix86_autovectorize_vector_modes): ...this new function.
2768 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2769 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2770 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2771 (mips_autovectorize_vector_modes): ...this new function.
2772 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2773 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2775 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2777 * tree-vect-stmts.c (vectorizable_shift): Check the number
2778 of vector elements as well as the type mode when deciding
2779 whether an op1_vectype is compatible. Reuse the result of
2780 this check when generating vector statements.
2782 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2784 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2785 targetm.vectorize.preferred_simd_mode returns an integer mode,
2786 use mode_for_vector to decide what the vector type's mode
2787 should actually be. Use build_vector_type_for_mode instead
2788 of build_vector_type.
2790 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2792 * target.def (get_mask_mode): Take a vector mode itself as argument,
2793 instead of properties about the vector mode.
2794 * doc/tm.texi: Regenerate.
2795 * targhooks.h (default_get_mask_mode): Update to reflect new
2796 get_mode_mask interface.
2797 * targhooks.c (default_get_mask_mode): Likewise. Use
2798 related_int_vector_mode.
2799 * optabs-query.c (can_vec_mask_load_store_p): Update call
2801 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2802 first that the original mode really is a vector.
2803 * tree.c (build_truth_vector_type_for): Likewise.
2804 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2805 get_mode_mask interface.
2806 (aarch64_expand_sve_vcond): Update call accordingly.
2807 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2808 get_mode_mask interface.
2809 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2811 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2813 * tree.h (build_truth_vector_type): Delete.
2814 (build_same_sized_truth_vector_type): Likewise.
2815 * tree.c (build_truth_vector_type): Rename to...
2816 (build_truth_vector_type_for): ...this. Make static and take
2817 a vector type as argument.
2818 (truth_type_for): Update accordingly.
2819 (build_same_sized_truth_vector_type): Delete.
2820 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2821 instead of build_same_sized_truth_vector_type.
2822 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2823 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2824 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2825 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2826 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2827 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2828 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2829 (vectorizable_store, vectorizable_condition): Likewise.
2830 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2831 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2832 build_truth_vector_type.
2833 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2834 Use truth_type_for instead of build_same_sized_truth_vector_type.
2835 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2837 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2839 * tree.h (build_truth_vector_type_for_mode): Declare.
2840 * tree.c (build_truth_vector_type_for_mode): New function,
2842 (build_truth_vector_type): ...here.
2843 (build_opaque_vector_type): Fix head comment.
2844 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2846 (vect_halve_mask_nunits): Replace vec_info parameter with the
2847 mode of the new vector.
2848 (vect_double_mask_nunits): Likewise.
2849 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2850 (vect_double_mask_nunits): Likewise.
2851 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2852 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2853 to vect_halve_mask_nunits, getting the required mode from the unpack
2855 (vect_set_loop_condition_masked): Update call accordingly.
2856 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2857 parameter and update call to vect_double_mask_nunits.
2858 (vectorizable_conversion): Update call accordingly.
2859 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2860 (vectorizable_call): Update call accordingly.
2861 (supportable_widening_operation): Update call to
2862 vect_halve_mask_nunits.
2863 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2864 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2866 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2868 * machmode.h (mode_for_int_vector): Delete.
2869 (related_int_vector_mode): Declare.
2870 * stor-layout.c (mode_for_int_vector): Delete.
2871 (related_int_vector_mode): New function.
2872 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2873 instead of mode_for_int_vector.
2874 (expand_vec_perm_const): Likewise.
2875 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2876 (aarch64_evpc_sve_tbl): Likewise.
2877 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2878 (s390_expand_vcond): Likewise.
2880 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2882 * target.def (related_mode): New hook.
2883 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2884 * doc/tm.texi: Regenerate.
2885 * targhooks.h (default_vectorize_related_mode): Declare.
2886 * targhooks.c (default_vectorize_related_mode): New function.
2887 * machmode.h (related_vector_mode): Declare.
2888 * stor-layout.c (related_vector_mode): New function.
2889 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
2890 * optabs-query.c (qimode_for_vec_perm): Likewise.
2891 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
2892 (vectorizable_store, vectorizable_load): Likewise
2894 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
2896 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
2897 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
2898 * config/arm/arm-c.c (arm_cpu_builtins): Define
2899 __GCC_ASM_FLAG_OUTPUTS__.
2900 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
2901 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
2902 Define __GCC_ASM_FLAG_OUTPUTS__.
2903 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
2904 * doc/extend.texi (FlagOutputOperands): Add documentation
2905 for ARM and AArch64.
2907 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
2908 * config/arm/predicates.md (nz_comparison_operator): Rename
2909 from noov_comparison_operator.
2910 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
2911 (arm_gen_dicompare_reg): Likewise.
2912 (maybe_get_arm_condition_code): Likewise.
2913 (thumb1_final_prescan_insn): Likewise.
2914 (arm_emit_coreregs_64bit_shift): Likewise.
2915 * config/arm/arm.md (addsi3_compare0): Likewise.
2916 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
2917 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
2918 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
2919 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
2920 (*mulsi3addsi_compare0_scratch): Likewise.
2921 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2922 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
2923 (*zeroextractsi_compare0_scratch): Likewise.
2924 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
2925 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
2926 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
2927 (andsi_not_shiftsi_si_scc): Likewise.
2928 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
2929 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
2930 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
2931 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
2932 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
2933 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
2934 (return_addr_mask, *check_arch2): Likewise.
2935 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
2936 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
2937 (compare_scc splitters): Likewise.
2938 (movcond_addsi): Likewise.
2939 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
2940 (*thumb2_addsi3_compare0_scratch): Likewise.
2941 (*thumb2_mulsi_short_compare0): Likewise.
2942 (*thumb2_mulsi_short_compare0_scratch): Likewise.
2943 (compare peephole2s): Likewise.
2944 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
2945 nz_comparison_operator names.
2946 (cbranchsi4_insn): Likewise.
2948 * config/arm/constraints.md (c): Use cc_register predicate.
2950 * config/aarch64/constraints.md (c): New constraint.
2952 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2954 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
2955 ipa_merge_fn_summary_after_inlining): Micro optimize.
2957 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2959 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
2961 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
2963 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
2964 (ipa_value_range_from_jfunc): New function.
2965 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
2966 known_value_ranges parameter; use it to evalulate conditions.
2967 (evaluate_properties_for_edge): Compute known value ranges.
2968 (ipa_fn_summary_t::duplicate): Update use of
2969 evaluate_conditions_for_known_args.
2970 (estimate_ipcp_clone_size_and_time): Likewise.
2971 (ipa_merge_fn_summary_after_inlining): Likewise.
2972 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
2974 2019-11-14 Martin Liska <mliska@suse.cz>
2976 * ipa-inline.c (want_inline_small_function_p): Use
2977 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
2978 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
2980 2019-11-14 Martin Liska <mliska@suse.cz>
2982 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
2983 of a callee to get value of the param.
2984 * ipa-inline.c (inline_insns_auto): Use proper
2986 * opts.c (maybe_default_option): Do not overwrite param
2987 value if optimization level does not match. Note that
2988 params usually have default value set via Init() keyword.
2989 * params.opt: Remove -param=max-inline-insns-auto-O2.
2990 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
2991 * doc/invoke.texi: Remove documentation of
2992 max-inline-insns-auto-O2.
2994 2019-11-14 Martin Liska <mliska@suse.cz>
2996 * tree-switch-conversion.c (switch_conversion::switch_conversion):
2997 Do not initialize m_other_count.
2998 (switch_conversion::collect): Do not count m_default_count and
2999 m_other_count as we use frequencies for edges.
3000 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3002 2019-11-14 Martin Liska <mliska@suse.cz>
3005 * doc/invoke.texi: Document -fallocation-dce.
3007 2019-11-14 Martin Liska <mliska@suse.cz>
3010 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3011 PTA_ICELAKE_CLIENT which is later interited by
3012 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3014 2019-11-14 Martin Liska <mliska@suse.cz>
3016 * ipa-icf.c (sem_item_optimizer::execute): Save
3018 (sem_item_optimizer::parse_nonsingleton_classes):
3019 Return number of loaded symbols.
3020 (sem_item_optimizer::merge_classes): Print
3021 statistics about totally needed symbols.
3022 * ipa-icf.h (parse_nonsingleton_classes): Change return
3024 (merge_classes): Add one argument.
3026 2019-11-14 Martin Liska <mliska@suse.cz>
3028 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3029 func_checker::hash_operand by handling of FIELD_DECLs.
3031 2019-11-14 Martin Liska <mliska@suse.cz>
3033 * ipa-icf-gimple.h (func_checker::func_checker): Add
3034 default constructor.
3035 * ipa-icf.c (sem_function::init): Make operand_equal_p
3036 and hash_operand public.
3037 (sem_item::add_expr): Remove.
3038 (sem_item::add_type): Remove.
3039 (sem_function::hash_stmt): Use m_checker for hashing
3040 of GIMPLE statements.
3041 (sem_function::parse): Init with checker.
3042 (sem_variable::parse): Pass NULL as checker.
3043 (sem_item_optimizer::parse_funcs_and_vars):
3044 Pass checker to ::parse function.
3045 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3046 (sem_variable::parse): New function.
3047 (sem_variable::get_hash): Only return computed hash value.
3048 (sem_variable::init): Initialize hash of a variable.
3049 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3050 to couple of functions as a new argument.
3052 2019-11-14 Martin Liska <mliska@suse.cz>
3054 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3056 (func_checker::compare_gimple_assign): Likewise.
3058 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3060 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3061 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3062 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3064 * omp-general.c (omp_context_name_list_prop): New function.
3065 (omp_context_selector_matches): Use it. Return 0 if it returns
3067 (omp_context_selector_props_compare): Allow equivalency of an
3068 identifier and a string literal containing no embedded zeros.
3070 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3072 * range-op.cc (RANGE3): Remove.
3073 (range_tests): Remove all selftest that check for multi-ranges.
3074 Put tests in namespace selftest.
3075 * selftest.h: Move range_tests into namespace selftest.
3076 * value-range.h (class value_range): Unfriend range_tests.
3078 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3080 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3081 normalize_symbolics and normalize_addresses working in place.
3082 (range_fold_unary_symbolics_p): Same.
3083 (range_fold_unary_symbolics_p): Same.
3084 * value-range.cc (num_pairs): Same.
3085 (lower_bound): Same.
3086 (upper_bound): Same.
3088 (normalize_addresses): Same.
3089 (normalize_symbolics): Same.
3090 * value-range.h (normalize_symbolics): Same.
3091 (normalize_addresses): Same.
3093 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3096 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3097 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3098 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3099 (ipa_agg_jump_function): Remove member function equal_to.
3100 (ipa_agg_jump_function_p): Remove typedef.
3101 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3102 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3103 information for aggregate jump function.
3104 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3105 record last definition statement.
3106 (load_from_unmodified_param_or_agg): New function.
3107 (ipa_known_agg_contents_list): Add new field type and value, remove
3109 (build_agg_jump_func_from_list): Rename parameter const_count to
3110 value_count, build aggregate jump function from ipa_load_agg_data.
3111 (analyze_agg_content_value): New function.
3112 (extract_mem_content): Analyze memory store assignment to prepare
3113 information for aggregate jump function generation.
3114 (determine_known_aggregate_parts): Add new parameter fbi, remove
3115 parameter aa_walk_budeget_p.
3116 (update_jump_functions_after_inlining): Update aggregate jump function.
3117 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3118 (try_make_edge_direct_simple_call): Add new parameter new_root.
3119 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3121 (update_indirect_edges_after_inlining): Pass new argument to
3122 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3123 (ipa_write_jump_function): Write aggregate jump function to file.
3124 (ipa_read_jump_function): Read aggregate jump function from file.
3125 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3126 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3127 (ipa_agg_value_from_node): Likewise.
3128 (ipa_agg_value_set_from_jfunc): Likewise.
3129 (propagate_vals_across_arith_jfunc): Likewise.
3130 (propagate_aggregate_lattice): Likewise.
3131 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3132 (propagate_vals_across_pass_through): Call
3133 propagate_vals_across_arith_jfunc.
3134 (get_clone_agg_value): Move forward.
3135 (propagate_aggs_across_jump_function): Handle value propagation for
3136 aggregate jump function.
3137 (agg_jmp_p_vec_for_t_vec): Remove.
3138 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3139 with vec<ipa_agg_value>.
3140 (copy_plats_to_inter, intersect_with_plats): Likewise.
3141 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3142 (intersect_aggregate_with_edge): Likewise.
3143 (find_aggregate_values_for_callers_subset): Likewise.
3144 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3145 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3146 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3147 (gather_context_independent_values): Likewise.
3148 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3149 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3150 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3151 (evaluate_properties_for_edge): Likewise.
3152 (estimate_edge_devirt_benefit): Likewise.
3153 (estimate_edge_size_and_time): Likewise.
3154 (estimate_calls_size_and_time): Likewise.
3155 (ipa_call_context::ipa_call_context): Likewise.
3156 (estimate_ipcp_clone_size_and_time): Likewise.
3157 * ipa-fnsummary.h (ipa_call_context): Replace
3158 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3159 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3160 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3161 (do_estimate_edge_size): Likewise.
3162 (do_estimate_edge_hints): Likewise.
3164 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3166 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3169 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3171 * ipa-profile.c (check_argument_count): Check properly that e_info
3172 is non-NULL; do not check descriptors.
3174 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3176 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3177 check for ipa profiles.
3179 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3182 * ipa-prop.c (update_indirect_edges_after_inlining):
3183 Mark parameter as used.
3184 * ipa-inline.c (recursive_inlining): Reset node cache
3186 (inline_small_functions): Remove checking ifdef.
3187 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3190 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3193 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3195 (ipa_profile): Fix reversed test.
3197 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3199 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3200 (propagate_constants_topo): Fix typo.
3202 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3204 * Makefile.in (OBJS): Add value-range.o.
3205 (GTFILES): Add value-range.h.
3206 * gengtype.c (open_base_files): Add value-range.h to list of
3208 * tree-vrp.c: Move the following value_range related functions:
3209 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3210 constant_p, set_undefined, set_varying, may_contain_p,
3211 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3212 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3213 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3214 value_inside_range, ranges_from_anti_range, union_ranges,
3215 intersect_ranges, intersect_helper, union_helper, union_,
3216 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3217 upper_bound, contains_p, invert, intersect...
3218 * value-range.cc: ...to here.
3219 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3220 associated inline methods from here...
3221 * value-range.h: ...to here.
3223 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3225 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3226 instead of asserting its value.
3228 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3230 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3231 constructors and set methods so value_range_kind is the last
3232 argument and defaults to VR_RANGE.
3233 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3234 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3235 * ipa-prop.c (ipa_get_value_range): Same.
3236 (ipa_compute_jump_functions_for_edge): Same.
3237 * range-op.cc (value_range_from_overflowed_bounds): Same.
3238 (operator_cast::op1_range): Same.
3239 (range_tests): Same.
3240 * range.cc (range_nonzero): Same.
3241 * tree-ssanames.c (get_range_info): Same.
3242 * tree-vrp.c (value_range_equiv::set): Same.
3243 (value_range::value_range): Same.
3244 (value_range_equiv::value_range_equiv): Same.
3245 (value_range_equiv::update): Same.
3246 (value_range_equiv::deep_copy): Same.
3247 (value_range_equiv::move): Same.
3248 (value_range_equiv::set_undefined): Same.
3249 (value_range::set): Same.
3250 (value_range::set_nonzero): Same.
3251 (ranges_from_anti_range): Same.
3252 (extract_range_from_plus_minus_expr): Same.
3253 (value_range::intersect_helper): Same.
3254 (value_range_equiv::intersect): Same.
3255 (value_range::union_helper): Same.
3256 (value_range_equiv::union_): Same.
3257 (value_range::normalize_symbolics): Same.
3258 (value_range::invert): Same.
3259 (determine_value_range_1): Same.
3260 * tree-vrp.h (class value_range): Same.
3261 (class value_range_equiv): Same.
3262 * vr-values.c (set_value_range_to_nonnegative): Same.
3263 (set_value_range_to_truthvalue): Same.
3264 (vr_values::update_value_range): Same.
3265 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3266 (vr_values::extract_range_from_binary_expr): Same.
3267 (vr_values::extract_range_from_comparison): Same.
3268 (vr_values::extract_range_basic): Same.
3269 (vr_values::adjust_range_with_scev): Same.
3270 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3271 (vr_values::extract_range_from_phi_node): Same.
3273 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3275 * tree-dump.c (dequeue_and_dump): Print first tree operand
3276 for VIEW_CONVERT_EXPR.
3278 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3280 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3281 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3282 * real.c (get_max_float): Add norm_max argument.
3283 * real.h (get_max_float): Update prototype.
3284 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3287 2019-11-13 Martin Liska <mliska@suse.cz>
3289 * dbgcnt.c (test_sorted_dbg_counters): New.
3290 (dbgcnt_c_tests): Likewise.
3291 * selftest-run-tests.c (selftest::run_tests): Likewise.
3292 * selftest.h (dbgcnt_c_tests): Likewise.
3294 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3295 Martin Jambor <mjambor@suse.cz>
3298 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3299 (identify_dead_nodes): Likewise.
3301 2019-11-13 Martin Liska <mliska@suse.cz>
3303 * ipa-icf.c (sem_function::equals_private): Do not overuse
3304 push/pop_cfun functions.
3306 2019-11-13 Martin Liska <mliska@suse.cz>
3308 * common.opt: Document change of -fdbg-cnt option.
3309 * dbgcnt.c (DEBUG_COUNTER): Remove.
3310 (dbg_cnt_is_enabled): Remove.
3311 (dbg_cnt): Work with new intervals.
3312 (dbg_cnt_set_limit_by_index): Set to new
3314 (dbg_cnt_set_limit_by_name): Likewise.
3315 (dbg_cnt_process_single_pair): Process new format.
3316 (dbg_cnt_process_opt): Likewise.
3317 (dbg_cnt_list_all_counters): Likewise.
3318 * doc/invoke.texi: Document change of -fdbg-cnt option.
3321 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3323 * ipa-inline.c (ipa_inline): Check that function is defined before
3326 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3327 Julian Brown <julian@codesourcery.com>
3329 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3330 flag_worker_partitioning is not set.
3331 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3332 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3334 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3336 * config/gcn/gcn-run.c (heap_region): New global variable.
3337 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3338 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3339 (get_kernarg_region): Move contents to ....
3340 (get_memory_region): .... here.
3341 (get_heap_region): New function.
3342 (init_device): Initialize the heap_region.
3343 (device_malloc): Add region parameter.
3344 (struct kernargs): Move heap ....
3345 (heap): ... to global scope.
3346 (main): Allocate heap separate to kernargs.
3348 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3350 * ipa-prop.c (ipa_print_node_jump_functions,
3351 ipa_print_node_params): Print info about missing summaries.
3353 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3355 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3356 the cost of generating loop masks.
3358 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3360 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3362 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3363 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3364 (vect_transform_loop): Likewise.
3365 (vect_analyze_loop_costing): Don't take the cost of versioning
3366 into account for the static profitability threshold if it turns
3367 out that no versioning is needed.
3369 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3371 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3372 and target_option_default_node to get -fprofile-generate ctors working
3375 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3377 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3378 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3379 (vectorizable_assignment): Don't add a cost for nop conversions.
3380 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3382 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3384 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3386 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3387 number of ncopies as an additional argument.
3388 (vectorizable_conversion): Update call accordingly. Use "modifier"
3389 to check whether a conversion is between vectors with the same
3392 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3394 * config/aarch64/aarch64-sve-builtins-functions.h
3395 (unary_count::expand): Use aarch64_sve_int_mode instead of
3396 mode_for_int_vector.
3398 2019-11-13 Martin Liska <mliska@suse.cz>
3400 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3402 2019-11-13 Martin Liska <mliska@suse.cz>
3404 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3405 Remove call to finalize_options_struct.
3407 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3410 * config/avr/t-avr (avr-mcus): Do not depend on
3411 $(srcdir)/config/avr/t-multilib.
3413 2019-11-13 Richard Biener <rguenther@suse.de>
3415 PR tree-optimization/92473
3416 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3417 direct optab reduction in the correct type.
3419 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3421 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3422 hexadecimal literal.
3424 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3426 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3427 UNORDERED if !HONOR_NANS (DFmode).
3428 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3429 if !HONOR_NANS (<MODE>mode).
3431 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3433 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3434 (ipcp_verify_propagated_values): Likewise.
3435 (propagate_constants_across_call): Likewise.
3436 (propagate_constants_topo): Likewise.
3437 (ipcp_propagate_stage): Likewise.
3439 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3442 * ipa-profile.c (check_argument_count): Break out from ...;
3443 watch for missing summaries.
3444 (ipa_profile): Here.
3446 2019-11-12 Martin Sebor <msebor@redhat.com>
3448 PR tree-optimization/92412
3449 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3452 2019-11-12 Martin Sebor <msebor@redhat.com>
3455 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3456 (directive::argno): New member.
3457 (format_result::aliases, format_result::alias_count): New data members.
3458 (format_result::append_alias): New member function.
3459 (fmtresult::dst_offset): New data member.
3460 (pass_sprintf_length::call_info::dst_origin): New data member.
3461 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3462 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3463 (get_origin_and_offset): Same.
3464 (format_string): Call it.
3465 (format_directive): Call append_alias and set directive argument
3467 (maybe_warn_overlap): New function.
3468 (pass_sprintf_length::compute_format_length): Call it.
3469 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3470 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3472 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3474 PR rtl-optimization/92430
3475 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3476 dominance info at the beginning.
3478 2019-11-12 Richard Biener <rguenther@suse.de>
3480 PR tree-optimization/92460
3481 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3482 expression before gimplifying.
3484 2019-11-12 Richard Biener <rguenther@suse.de>
3486 PR tree-optimization/92461
3487 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3488 stmt after propagation.
3490 2019-11-12 Martin Liska <mliska@suse.cz>
3492 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3493 Use SET_OPTION_IF_UNSET.
3494 (ix86_option_override_internal): Likewise.
3495 * opts.c (default_options_optimization): Likewise.
3496 (finish_options): Likewise.
3497 (enable_fdo_optimizations): Likewise.
3498 (common_handle_option): Likewise.
3500 2019-11-12 Martin Liska <mliska@suse.cz>
3502 * common/common-target.def: Remove option_validate_param and
3503 option_default_params.
3504 * common/common-targhooks.c (default_option_validate_param):
3506 * common/common-targhooks.h (default_option_validate_param):
3508 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3509 Remove usage of this.
3510 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3511 (aarch64_option_validate_param): Likewise.
3512 (aarch64_option_default_params): Likewise
3513 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3514 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3515 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3516 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3517 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3518 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3519 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3520 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3521 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3522 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3523 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3525 * doc/tm.texi: Remove option_default_params and option_validate_param.
3526 * doc/tm.texi.in: Likewise.
3528 2019-11-12 Martin Liska <mliska@suse.cz>
3530 * common/common-target.def:
3531 Do not mention set_default_param_value
3532 and set_param_value.
3533 * doc/tm.texi: Likewise.
3535 2019-11-12 Martin Liska <mliska@suse.cz>
3537 * common.opt: Remove param_values.
3538 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3539 Remove finalize_options_struct.
3540 * gcc.c (driver::decode_argv): Do not call global_init_params
3542 (driver::finalize): Do not call params_c_finalize
3543 and finalize_options_struct.
3544 * opt-suggestions.c (option_proposer::get_completions): Remove
3545 special casing of params.
3546 (option_proposer::find_param_completions): Remove.
3547 (test_completion_partial_match): Update expected output.
3548 * opt-suggestions.h: Remove find_param_completions.
3549 * opts-common.c (add_misspelling_candidates): Add
3550 --param with a space.
3551 * opts.c (handle_param): Remove.
3552 (init_options_struct):. Remove init_options_struct and
3554 (finalize_options_struct): Remove.
3555 (common_handle_option): Use SET_OPTION_IF_UNSET.
3556 * opts.h (finalize_options_struct): Remove.
3557 * toplev.c (general_init): Do not call global_init_params.
3558 (toplev::finalize): Do not call params_c_finalize and
3559 finalize_options_struct.
3561 2019-11-12 Martin Liska <mliska@suse.cz>
3563 * Makefile.in: Remove PARAMS_H and params.list
3565 * params-enum.h: Remove.
3566 * params-list.h: Remove.
3567 * params-options.h: Remove.
3569 * params.def: Remove.
3571 * asan.c: Do not include params.h.
3572 * auto-profile.c: Likewise.
3573 * bb-reorder.c: Likewise.
3574 * builtins.c: Likewise.
3575 * cfgcleanup.c: Likewise.
3576 * cfgexpand.c: Likewise.
3577 * cfgloopanal.c: Likewise.
3578 * cgraph.c: Likewise.
3579 * combine.c: Likewise.
3580 * common/config/aarch64/aarch64-common.c: Likewise.
3581 * common/config/gcn/gcn-common.c: Likewise.
3582 * common/config/ia64/ia64-common.c: Likewise.
3583 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3584 * common/config/rs6000/rs6000-common.c: Likewise.
3585 * common/config/sh/sh-common.c: Likewise.
3586 * config/aarch64/aarch64.c: Likewise.
3587 * config/alpha/alpha.c: Likewise.
3588 * config/arm/arm.c: Likewise.
3589 * config/avr/avr.c: Likewise.
3590 * config/csky/csky.c: Likewise.
3591 * config/i386/i386-builtins.c: Likewise.
3592 * config/i386/i386-expand.c: Likewise.
3593 * config/i386/i386-features.c: Likewise.
3594 * config/i386/i386-options.c: Likewise.
3595 * config/i386/i386.c: Likewise.
3596 * config/ia64/ia64.c: Likewise.
3597 * config/rs6000/rs6000-logue.c: Likewise.
3598 * config/rs6000/rs6000.c: Likewise.
3599 * config/s390/s390.c: Likewise.
3600 * config/sparc/sparc.c: Likewise.
3601 * config/visium/visium.c: Likewise.
3602 * coverage.c: Likewise.
3603 * cprop.c: Likewise.
3605 * cselib.c: Likewise.
3607 * emit-rtl.c: Likewise.
3608 * explow.c: Likewise.
3609 * final.c: Likewise.
3610 * fold-const.c: Likewise.
3613 * ggc-common.c: Likewise.
3614 * ggc-page.c: Likewise.
3615 * gimple-loop-interchange.cc: Likewise.
3616 * gimple-loop-jam.c: Likewise.
3617 * gimple-loop-versioning.cc: Likewise.
3618 * gimple-ssa-split-paths.c: Likewise.
3619 * gimple-ssa-sprintf.c: Likewise.
3620 * gimple-ssa-store-merging.c: Likewise.
3621 * gimple-ssa-strength-reduction.c: Likewise.
3622 * gimple-ssa-warn-alloca.c: Likewise.
3623 * gimple-ssa-warn-restrict.c: Likewise.
3624 * graphite-isl-ast-to-gimple.c: Likewise.
3625 * graphite-optimize-isl.c: Likewise.
3626 * graphite-scop-detection.c: Likewise.
3627 * graphite-sese-to-poly.c: Likewise.
3628 * graphite.c: Likewise.
3629 * haifa-sched.c: Likewise.
3630 * hsa-gen.c: Likewise.
3631 * ifcvt.c: Likewise.
3632 * ipa-cp.c: Likewise.
3633 * ipa-fnsummary.c: Likewise.
3634 * ipa-inline-analysis.c: Likewise.
3635 * ipa-inline.c: Likewise.
3636 * ipa-polymorphic-call.c: Likewise.
3637 * ipa-profile.c: Likewise.
3638 * ipa-prop.c: Likewise.
3639 * ipa-split.c: Likewise.
3640 * ipa-sra.c: Likewise.
3641 * ira-build.c: Likewise.
3642 * ira-conflicts.c: Likewise.
3643 * loop-doloop.c: Likewise.
3644 * loop-invariant.c: Likewise.
3645 * loop-unroll.c: Likewise.
3646 * lra-assigns.c: Likewise.
3647 * lra-constraints.c: Likewise.
3648 * modulo-sched.c: Likewise.
3649 * opt-suggestions.c: Likewise.
3651 * postreload-gcse.c: Likewise.
3652 * predict.c: Likewise.
3653 * reload.c: Likewise.
3654 * reorg.c: Likewise.
3655 * resource.c: Likewise.
3656 * sanopt.c: Likewise.
3657 * sched-deps.c: Likewise.
3658 * sched-ebb.c: Likewise.
3659 * sched-rgn.c: Likewise.
3660 * sel-sched-ir.c: Likewise.
3661 * sel-sched.c: Likewise.
3662 * shrink-wrap.c: Likewise.
3664 * targhooks.c: Likewise.
3665 * toplev.c: Likewise.
3666 * tracer.c: Likewise.
3667 * trans-mem.c: Likewise.
3668 * tree-chrec.c: Likewise.
3669 * tree-data-ref.c: Likewise.
3670 * tree-if-conv.c: Likewise.
3671 * tree-inline.c: Likewise.
3672 * tree-loop-distribution.c: Likewise.
3673 * tree-parloops.c: Likewise.
3674 * tree-predcom.c: Likewise.
3675 * tree-profile.c: Likewise.
3676 * tree-scalar-evolution.c: Likewise.
3677 * tree-sra.c: Likewise.
3678 * tree-ssa-ccp.c: Likewise.
3679 * tree-ssa-dom.c: Likewise.
3680 * tree-ssa-dse.c: Likewise.
3681 * tree-ssa-ifcombine.c: Likewise.
3682 * tree-ssa-loop-ch.c: Likewise.
3683 * tree-ssa-loop-im.c: Likewise.
3684 * tree-ssa-loop-ivcanon.c: Likewise.
3685 * tree-ssa-loop-ivopts.c: Likewise.
3686 * tree-ssa-loop-manip.c: Likewise.
3687 * tree-ssa-loop-niter.c: Likewise.
3688 * tree-ssa-loop-prefetch.c: Likewise.
3689 * tree-ssa-loop-unswitch.c: Likewise.
3690 * tree-ssa-math-opts.c: Likewise.
3691 * tree-ssa-phiopt.c: Likewise.
3692 * tree-ssa-pre.c: Likewise.
3693 * tree-ssa-reassoc.c: Likewise.
3694 * tree-ssa-sccvn.c: Likewise.
3695 * tree-ssa-scopedtables.c: Likewise.
3696 * tree-ssa-sink.c: Likewise.
3697 * tree-ssa-strlen.c: Likewise.
3698 * tree-ssa-structalias.c: Likewise.
3699 * tree-ssa-tail-merge.c: Likewise.
3700 * tree-ssa-threadbackward.c: Likewise.
3701 * tree-ssa-threadedge.c: Likewise.
3702 * tree-ssa-uninit.c: Likewise.
3703 * tree-switch-conversion.c: Likewise.
3704 * tree-vect-data-refs.c: Likewise.
3705 * tree-vect-loop.c: Likewise.
3706 * tree-vect-slp.c: Likewise.
3707 * tree-vrp.c: Likewise.
3709 * value-prof.c: Likewise.
3710 * var-tracking.c: Likewise.
3712 2019-11-12 Martin Liska <mliska@suse.cz>
3714 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3715 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3717 (asan_sanitize_allocas_p): Likewise.
3718 (asan_emit_stack_protection): Likewise.
3719 (asan_protect_global): Likewise.
3720 (instrument_derefs): Likewise.
3721 (instrument_builtin_call): Likewise.
3722 (asan_expand_mark_ifn): Likewise.
3723 * auto-profile.c (auto_profile): Likewise.
3724 * bb-reorder.c (copy_bb_p): Likewise.
3725 (duplicate_computed_gotos): Likewise.
3726 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3727 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3728 (try_crossjump_bb): Likewise.
3729 * cfgexpand.c (defer_stack_allocation): Likewise.
3730 (stack_protect_classify_type): Likewise.
3731 (pass_expand::execute): Likewise.
3732 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3733 (estimate_reg_pressure_cost): Likewise.
3734 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3735 * combine.c (combine_instructions): Likewise.
3736 (record_value_for_reg): Likewise.
3737 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3738 (aarch64_option_default_params): Likewise.
3739 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3740 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3741 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3742 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3743 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3744 (aarch64_allocate_and_probe_stack_space): Likewise.
3745 (aarch64_expand_epilogue): Likewise.
3746 (aarch64_override_options_internal): Likewise.
3747 * config/alpha/alpha.c (alpha_option_override): Likewise.
3748 * config/arm/arm.c (arm_option_override): Likewise.
3749 (arm_valid_target_attribute_p): Likewise.
3750 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3751 * config/i386/i386.c (get_probe_interval): Likewise.
3752 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3753 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3754 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3755 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3756 (get_stack_clash_protection_guard_size): Likewise.
3757 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3758 * config/s390/s390.c (allocate_stack_space): Likewise.
3759 (s390_emit_prologue): Likewise.
3760 (s390_option_override_internal): Likewise.
3761 * config/sparc/sparc.c (sparc_option_override): Likewise.
3762 * config/visium/visium.c (visium_option_override): Likewise.
3763 * coverage.c (get_coverage_counts): Likewise.
3764 (coverage_compute_profile_id): Likewise.
3765 (coverage_begin_function): Likewise.
3766 (coverage_end_function): Likewise.
3767 * cse.c (cse_find_path): Likewise.
3768 (cse_extended_basic_block): Likewise.
3769 (cse_main): Likewise.
3770 * cselib.c (cselib_invalidate_mem): Likewise.
3771 * dse.c (dse_step1): Likewise.
3772 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3773 (get_max_insn_count): Likewise.
3774 (make_debug_insn_raw): Likewise.
3775 (init_emit): Likewise.
3776 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3777 * final.c (compute_alignments): Likewise.
3778 * fold-const.c (fold_range_test): Likewise.
3779 (fold_truth_andor): Likewise.
3780 (tree_single_nonnegative_warnv_p): Likewise.
3781 (integer_valued_real_single_p): Likewise.
3782 * gcse.c (want_to_gcse_p): Likewise.
3783 (prune_insertions_deletions): Likewise.
3784 (hoist_code): Likewise.
3785 (gcse_or_cprop_is_too_expensive): Likewise.
3786 * ggc-common.c: Likewise.
3787 * ggc-page.c (ggc_collect): Likewise.
3788 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3789 (MAX_DATAREFS): Likewise.
3790 (OUTER_STRIDE_RATIO): Likewise.
3791 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3792 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3793 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3794 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3795 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3796 (imm_store_chain_info::output_merged_store): Likewise.
3797 (pass_store_merging::process_store): Likewise.
3798 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3799 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3800 (scop_to_isl_ast): Likewise.
3801 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3802 (optimize_isl): Likewise.
3803 * graphite-scop-detection.c (build_scops): Likewise.
3804 * haifa-sched.c (set_modulo_params): Likewise.
3805 (rank_for_schedule): Likewise.
3806 (model_add_to_worklist): Likewise.
3807 (model_promote_insn): Likewise.
3808 (model_choose_insn): Likewise.
3809 (queue_to_ready): Likewise.
3810 (autopref_multipass_dfa_lookahead_guard): Likewise.
3811 (schedule_block): Likewise.
3812 (sched_init): Likewise.
3813 * hsa-gen.c (init_prologue): Likewise.
3814 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3815 (cond_move_process_if_block): Likewise.
3816 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3817 (merge_agg_lats_step): Likewise.
3818 (devirtualization_time_bonus): Likewise.
3819 (hint_time_bonus): Likewise.
3820 (incorporate_penalties): Likewise.
3821 (good_cloning_opportunity_p): Likewise.
3822 (ipcp_propagate_stage): Likewise.
3823 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3824 (set_switch_stmt_execution_predicate): Likewise.
3825 (analyze_function_body): Likewise.
3826 (compute_fn_summary): Likewise.
3827 * ipa-inline-analysis.c (estimate_growth): Likewise.
3828 * ipa-inline.c (caller_growth_limits): Likewise.
3829 (inline_insns_single): Likewise.
3830 (inline_insns_auto): Likewise.
3831 (can_inline_edge_by_limits_p): Likewise.
3832 (want_early_inline_function_p): Likewise.
3833 (big_speedup_p): Likewise.
3834 (want_inline_small_function_p): Likewise.
3835 (want_inline_self_recursive_call_p): Likewise.
3836 (edge_badness): Likewise.
3837 (recursive_inlining): Likewise.
3838 (compute_max_insns): Likewise.
3839 (early_inliner): Likewise.
3840 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3841 * ipa-profile.c (ipa_profile): Likewise.
3842 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3843 (ipa_analyze_node): Likewise.
3844 (ipcp_transform_function): Likewise.
3845 * ipa-split.c (consider_split): Likewise.
3846 * ipa-sra.c (allocate_access): Likewise.
3847 (process_scan_results): Likewise.
3848 (ipa_sra_summarize_function): Likewise.
3849 (pull_accesses_from_callee): Likewise.
3850 * ira-build.c (loop_compare_func): Likewise.
3851 (mark_loops_for_removal): Likewise.
3852 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3853 * loop-doloop.c (doloop_optimize): Likewise.
3854 * loop-invariant.c (gain_for_invariant): Likewise.
3855 (move_loop_invariants): Likewise.
3856 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3857 (decide_unroll_runtime_iterations): Likewise.
3858 (decide_unroll_stupid): Likewise.
3859 (expand_var_during_unrolling): Likewise.
3860 * lra-assigns.c (spill_for): Likewise.
3861 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3862 * modulo-sched.c (sms_schedule): Likewise.
3863 (DFA_HISTORY): Likewise.
3864 * opts.c (default_options_optimization): Likewise.
3865 (finish_options): Likewise.
3866 (common_handle_option): Likewise.
3867 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3869 * predict.c (get_hot_bb_threshold): Likewise.
3870 (maybe_hot_count_p): Likewise.
3871 (probably_never_executed): Likewise.
3872 (predictable_edge_p): Likewise.
3873 (predict_loops): Likewise.
3874 (expr_expected_value_1): Likewise.
3875 (tree_predict_by_opcode): Likewise.
3876 (handle_missing_profiles): Likewise.
3877 * reload.c (find_equiv_reg): Likewise.
3878 * reorg.c (redundant_insn): Likewise.
3879 * resource.c (mark_target_live_regs): Likewise.
3880 (incr_ticks_for_insn): Likewise.
3881 * sanopt.c (pass_sanopt::execute): Likewise.
3882 * sched-deps.c (sched_analyze_1): Likewise.
3883 (sched_analyze_2): Likewise.
3884 (sched_analyze_insn): Likewise.
3885 (deps_analyze_insn): Likewise.
3886 * sched-ebb.c (schedule_ebbs): Likewise.
3887 * sched-rgn.c (find_single_block_region): Likewise.
3888 (too_large): Likewise.
3889 (haifa_find_rgns): Likewise.
3890 (extend_rgns): Likewise.
3891 (new_ready): Likewise.
3892 (schedule_region): Likewise.
3893 (sched_rgn_init): Likewise.
3894 * sel-sched-ir.c (make_region_from_loop): Likewise.
3895 * sel-sched-ir.h (MAX_WS): Likewise.
3896 * sel-sched.c (process_pipelined_exprs): Likewise.
3897 (sel_setup_region_sched_flags): Likewise.
3898 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3899 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
3900 * toplev.c (print_version): Likewise.
3901 (process_options): Likewise.
3902 * tracer.c (tail_duplicate): Likewise.
3903 * trans-mem.c (tm_log_add): Likewise.
3904 * tree-chrec.c (chrec_fold_plus_1): Likewise.
3905 * tree-data-ref.c (split_constant_offset): Likewise.
3906 (compute_all_dependences): Likewise.
3907 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
3908 * tree-inline.c (remap_gimple_stmt): Likewise.
3909 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
3910 * tree-parloops.c (MIN_PER_THREAD): Likewise.
3911 (create_parallel_loop): Likewise.
3912 * tree-predcom.c (determine_unroll_factor): Likewise.
3913 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
3914 * tree-sra.c (analyze_all_variable_accesses): Likewise.
3915 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
3916 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
3917 (dse_optimize_redundant_stores): Likewise.
3918 (dse_classify_store): Likewise.
3919 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
3920 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
3921 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
3922 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
3923 (try_peel_loop): Likewise.
3924 (tree_unroll_loops_completely): Likewise.
3925 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3926 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
3927 (MAX_CONSIDERED_GROUPS): Likewise.
3928 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
3929 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
3930 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
3931 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
3932 (L1_CACHE_SIZE_BYTES): Likewise.
3933 (L2_CACHE_SIZE_BYTES): Likewise.
3934 (should_issue_prefetch_p): Likewise.
3935 (schedule_prefetches): Likewise.
3936 (determine_unroll_factor): Likewise.
3937 (volume_of_references): Likewise.
3938 (add_subscript_strides): Likewise.
3939 (self_reuse_distance): Likewise.
3940 (mem_ref_count_reasonable_p): Likewise.
3941 (insn_to_prefetch_ratio_too_small_p): Likewise.
3942 (loop_prefetch_arrays): Likewise.
3943 (tree_ssa_prefetch_arrays): Likewise.
3944 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
3945 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
3946 (convert_mult_to_fma): Likewise.
3947 (math_opts_dom_walker::after_dom_children): Likewise.
3948 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
3949 (hoist_adjacent_loads): Likewise.
3950 (gate_hoist_loads): Likewise.
3951 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3952 (compute_partial_antic_aux): Likewise.
3953 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
3954 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
3955 (vn_reference_lookup): Likewise.
3956 (do_rpo_vn): Likewise.
3957 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
3958 * tree-ssa-sink.c (select_best_block): Likewise.
3959 * tree-ssa-strlen.c (new_stridx): Likewise.
3960 (new_addr_stridx): Likewise.
3961 (get_range_strlen_dynamic): Likewise.
3962 (class ssa_name_limit_t): Likewise.
3963 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
3964 (create_variable_info_for_1): Likewise.
3965 (init_alias_vars): Likewise.
3966 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
3967 (tail_merge_optimize): Likewise.
3968 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
3969 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
3970 (thread_jumps::find_jump_threads_backwards): Likewise.
3971 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
3972 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
3973 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
3974 (jump_table_cluster::can_be_handled): Likewise.
3975 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
3976 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
3977 (param_switch_conversion_branch_ratio): Likewise.
3978 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
3979 (vect_enhance_data_refs_alignment): Likewise.
3980 (vect_prune_runtime_alias_test_list): Likewise.
3981 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
3982 (vect_get_datarefs_in_loop): Likewise.
3983 (vect_analyze_loop): Likewise.
3984 * tree-vect-slp.c (vect_slp_bb): Likewise.
3985 * tree-vectorizer.h: Likewise.
3986 * tree-vrp.c (find_switch_asserts): Likewise.
3987 (vrp_prop::check_mem_ref): Likewise.
3988 * tree.c (wide_int_to_tree_1): Likewise.
3989 (cache_integer_cst): Likewise.
3990 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
3991 (reverse_op): Likewise.
3992 (vt_find_locations): Likewise.
3994 2019-11-12 Martin Liska <mliska@suse.cz>
3996 * Makefile.in: Include params.opt.
3997 * flag-types.h (enum parloops_schedule_type): Add
3998 parloops_schedule_type used in params.opt.
3999 * params.opt: New file.
4001 2019-11-12 Martin Liska <mliska@suse.cz>
4003 * common.opt: Remove --param and --param= options.
4004 * opt-functions.awk: Mark CL_PARAMS for options
4005 that have Param keyword.
4006 * opts-common.c (decode_cmdline_options_to_array):
4007 Replace --param key=value with --param=key=value.
4008 * opts.c (print_filtered_help): Remove special
4010 (print_specific_help): Update title for params.
4011 (common_handle_option): Do not handle OPT__param.
4012 opts.h (SET_OPTION_IF_UNSET): New macro.
4013 * doc/options.texi: Document Param keyword.
4015 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4016 Frederik Harwath <frederik@codesourcery.com>
4017 Thomas Schwinge <thomas@codesourcery.com>
4020 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4021 enumeration constant.
4022 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4023 (is_gimple_omp_offloaded): Likewise.
4024 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4025 constant. Adjust the value of ORT_NONE accordingly.
4026 (is_gimple_stmt): Handle OACC_SERIAL.
4027 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4028 (gomp_needs_data_present): Likewise.
4029 (gimplify_adjust_omp_clauses): Likewise.
4030 (gimplify_omp_workshare): Handle OACC_SERIAL.
4031 (gimplify_expr): Likewise.
4032 * omp-expand.c (expand_omp_target):
4033 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4034 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4035 * omp-low.c (is_oacc_parallel): Rename function to...
4036 (is_oacc_parallel_or_serial): ... this.
4037 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4038 (scan_sharing_clauses): Adjust accordingly.
4039 (scan_omp_for): Likewise.
4040 (lower_oacc_head_mark): Likewise.
4041 (convert_from_firstprivate_int): Likewise.
4042 (lower_omp_target): Likewise.
4043 (check_omp_nesting_restrictions): Handle
4044 GF_OMP_TARGET_KIND_OACC_SERIAL.
4045 (lower_oacc_reductions): Likewise.
4046 (lower_omp_target): Likewise.
4047 * tree.def (OACC_SERIAL): New tree code.
4048 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4050 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4052 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4055 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4056 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4058 PR tree-optimization/92452
4059 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4060 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4063 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4065 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4068 2019-11-12 Alan Modra <amodra@gmail.com>
4070 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4071 element of unspec vec.
4072 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4074 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4075 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4076 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4077 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4079 2019-11-12 Alan Modra <amodra@gmail.com>
4081 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4082 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4083 (IS_NOMARK_TLSGETADDR): Likewise.
4084 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4085 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4086 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4087 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4088 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4089 (rs6000_indirect_call_template_1): Likewise.
4090 (rs6000_pltseq_template): Likewise.
4091 (rs6000_opt_vars): Remove "tls-markers" entry.
4092 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4094 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4095 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4096 (pltseq_plt_pcrel<mode>): Likewise.
4097 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4098 (call_value_local64): Likewise.
4099 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4100 output and length attribute sub-expression.
4101 (call_value_nonlocal_sysv<mode>),
4102 (call_value_nonlocal_sysv_secure<mode>),
4103 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4104 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4105 (call_value_indirect_pcrel<mode>): Likewise.
4106 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4107 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4108 * configure: Regenerate.
4109 * config.in: Regenerate.
4111 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4113 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4114 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4115 address being a prefixed load/store.
4116 (stack_protect_testdi): Deal with either address being a prefixed
4119 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4122 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4123 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4126 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4128 PR tree-optimization/92420
4129 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4131 (get_group_load_store_type): Use it for reversed SLP accesses.
4133 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4135 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4137 (ipcp_transformation_t::duplicate): Break out from ...
4138 (ipa_node_params_t::duplicate): ... here; add copying of agg
4140 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4141 (ipcp_transformation_t): Add duplicate.
4143 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4146 * doc/install.texi: Document that the minimum MPFR version is
4149 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4151 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4152 use new register constraint letters.
4154 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4156 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4157 as well, if interesting recover the symbol and re-legitimize the
4160 2019-11-11 Martin Liska <mliska@suse.cz>
4162 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4165 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4167 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4168 account when checking if there are enough iterations to vectorize
4171 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4172 Kwok Cheung Yeung <kcy@codesourcery.com>
4174 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4175 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4176 (LANG_HOOKS_DECLS): Rename also here.
4177 * langhooks.h (lang_hooks_for_decls): Rename
4178 omp_is_optional_argument to omp_check_optional_argument; take
4179 additional bool argument.
4180 * omp-general.h (omp_check_optional_argument): Likewise.
4181 * omp-general.h (omp_check_optional_argument): Likewise.
4182 * omp-low.c (lower_omp_target): Update calls; handle absent
4183 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4185 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4188 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4189 -fPIC and -shared the last to create offload image.
4191 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4193 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4196 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4197 (config.status): Use/depend on it.
4198 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4199 * configure: Regenerate.
4201 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4203 PR tree-optimization/88760
4204 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4205 * gcc/common/config/rs6000/rs6000-common.c
4206 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4207 Turn on -funroll-loops and -munroll-only-small-loops.
4208 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4209 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4210 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4211 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4212 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4213 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4215 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4217 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4218 Make scalar_load, vector_load, unaligned_load and
4219 vector_gather_load cost more to conform hardware latency and
4222 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4224 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4225 (MACHO_SYMBOL_LINKER_VIS_P): New.
4227 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4229 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4230 registers in eliminable_regset.
4232 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4234 * ipa-inline.c (compute_uninlined_call_time,
4235 compute_inlined_call_time): Take edge frequency as
4236 parameter rather than computing it by itself.
4237 (big_speedup_p, edge_badness): Manually CSE sreal
4238 frequency calculations.
4240 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4242 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4243 case where profiles are same.
4245 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4247 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4249 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4251 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4252 args summaries of inlined edge unless it holds info about
4253 described reference.
4255 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4257 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4258 (*movcc_internal1): Rename to...
4259 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4261 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4263 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4264 (cgraph_node::create_virtual_clone): Copy it.
4265 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4267 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4268 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4270 (propagate_constants_across_call): If callee is not analyzed, give up.
4271 (propagate_constants_topo): Lower to bottom latties of all callees of
4272 functions with ipa-cp disabled.
4273 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4274 (cgraph_edge_brings_value_p): Check for availability first.
4275 (create_specialized_node): Set ipcp_clone.
4276 (ipcp_store_bits_results): Check that info is present.
4277 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4279 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4280 conservative when callee summary is missing.
4281 (remap_edge_summaries): Lookup call summary only when needed.
4282 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4283 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4285 (ipa_analyze_node): Use get_create.
4286 (propagate_controlled_uses): Do not propagate when function is not
4288 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4289 (ipa_read_node_info): Use get_create.
4290 * ipa-prop.h (IPA_NODE_REF): Use get.
4291 (IPA_NODE_REF_GET_CREATE): New.
4293 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4295 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4298 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4300 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4301 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4302 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4303 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4305 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4307 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4308 capping the growth cumulated.
4309 (offline_size): Break out from ...
4310 (estimate_growth): ... here.
4311 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4313 (growth_likely_positive): Turn to ...
4314 (growth_positive_p): Re-implement.
4315 * ipa-inline.h (growth_likely_positive): Remove.
4316 (growth_positive_p): Declare.
4317 * ipa-inline.c (want_inline_small_function_p): Use
4319 (want_inline_function_to_all_callers_p): Likewise.
4321 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4323 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4324 calculation of min_size.
4325 (ipa_update_overall_fn_summary): Likewise.
4327 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4329 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4330 estimate_edge_devirt_benefit when not computing hints;
4331 do not compute time when not asked for.
4332 (estimate_calls_size_and_time): Pass NULL hints and time when
4333 these are not computed; do not evaluate hint predicates when these are
4335 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4338 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4340 PR tree-optimization/92401
4341 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4342 if res_op->code is an expression with code length 1.
4343 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4344 if res_op->code is an expression with code length 2.
4345 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4346 if res_op->code is an expression with code length 3.
4348 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4350 * config/darwin.c (machopic_mcount_stub_name): Validate the
4351 symbol stub name when it is created.
4352 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4355 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4357 * symtab.c: Fix comment typos.
4358 * cgraphunit.c: Likewise.
4359 * cgraph.h: Likewise.
4360 * cgraphclones.c: Likewise.
4361 * cgraph.c: Likewise.
4362 * varpool.c: Likewise.
4363 * tree-ssa-strlen.c: Likewise.
4364 * ipa-sra.c: Likewise.
4365 (scan_expr_access, check_all_callers_for_issues): Fix typo
4368 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4370 * config/darwin-protos.h: Add include quard.
4372 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4374 * range-op.h (range_operator::fold_range): Return result in a
4375 reference parameter instead of by value.
4376 (range_operator::wi_fold): Same.
4377 * range-op.cc (range_operator::wi_fold): Return result in a reference
4378 parameter instead of by value.
4379 (range_operator::fold_range): Same.
4380 (value_range_from_overflowed_bounds): Same.
4381 (value_range_with_overflow): Same
4382 (create_possibly_reversed_range): Same.
4383 (operator_equal::fold_range): Same.
4384 (operator_not_equal::fold_range): Same.
4385 (operator_lt::fold_range): Same.
4386 (operator_le::fold_range): Same.
4387 (operator_gt::fold_range): Same.
4388 (operator_ge::fold_range): Same.
4389 (operator_plus::wi_fold): Same.
4390 (operator_plus::op1_range): Change call to fold_range.
4391 (operator_plus::op2_range): Change call to fold_range.
4392 (operator_minus::wi_fold): Return result via reference parameter.
4393 (operator_minus::op1_range): Change call to fold_range.
4394 (operator_minus::op2_range): Change call to fold_range.
4395 (operator_min::wi_fold): Return result via reference parameter.
4396 (operator_max::wi_fold): Same.
4397 (cross_product_operator::wi_cross_product): Same.
4398 (operator_mult::wi_fold): Same.
4399 (operator_div::wi_fold): Same.
4400 (operator_div op_floor_div): Fix whitespace.
4401 (operator_exact_divide::op1_range): Change call to fold_range.
4402 (operator_lshift::fold_range): Return result via reference parameter.
4403 (operator_lshift::wi_fold): Same.
4404 (operator_rshift::fold_range): Same.
4405 (operator_rshift::wi_fold): Same.
4406 (operator_cast::fold_range): Same.
4407 (operator_cast::op1_range): Change calls to fold_range.
4408 (operator_logical_and::fold_range): Return result via reference.
4409 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4410 (operator_bitwise_and::wi_fold): Return result via reference.
4411 (operator_logical_or::fold_range): Same.
4412 (operator_bitwise_or::wi_fold): Same.
4413 (operator_bitwise_xor::wi_fold): Same.
4414 (operator_trunc_mod::wi_fold): Same.
4415 (operator_logical_not::fold_range): Same.
4416 (operator_bitwise_not::fold_range): Same.
4417 (operator_bitwise_not::op1_range): Change call to fold_range.
4418 (operator_cst::fold_range): Return result via reference.
4419 (operator_identity::fold_range): Same.
4420 (operator_abs::wi_fold): Same.
4421 (operator_absu::wi_fold): Same.
4422 (operator_negate::fold_range): Same.
4423 (operator_negate::op1_range): Change call to fold_range.
4424 (operator_addr_expr::fold_range): Return result via reference.
4425 (operator_addr_expr::op1_range): Change call to fold_range.
4426 (operator_pointer_plus::wi_fold): Return result via reference.
4427 (operator_pointer_min_max::wi_fold): Same.
4428 (operator_pointer_and::wi_fold): Same.
4429 (operator_pointer_or::wi_fold): Same.
4430 (range_op_handler): Change call to fold_range.
4432 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4434 (range_fold_unary_symbolics_p): Same.
4435 (range_fold_binary_expr): Same.
4436 (range_fold_unary_expr): Same.
4438 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4440 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4441 vector type as an argument rather than reading it from the
4443 (vect_create_epilog_for_reduction): Update accordingly.
4444 (vectorizable_reduction): Likewise.
4445 (vect_transform_cycle_phi): Likewise.
4447 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4449 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4450 the comparison codes that make sense for the mode used, and only the
4451 codes that can be done with a single branch instruction.
4453 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4455 PR tree-optimization/92351
4456 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4457 peeling the main loop for alignment, make sure to set the misalignment
4458 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4460 2019-11-08 Richard Biener <rguenther@suse.de>
4462 * dbgcnt.def (ivopts_loop): Add.
4463 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4464 ivopts_loop before optimizing a loop.
4466 2019-11-08 Richard Biener <rguenther@suse.de>
4469 * tree-inline.c (declare_return_variable): Properly handle
4470 type mismatches for the return slot.
4472 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4475 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4476 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4478 (got_helper_needed): New static variable.
4479 (output_load_pcrel_sym): New function.
4480 (get_pc_thunk_name): Remove after inlining...
4481 (load_got_register): ...here. Rework the initialization of the GOT
4482 register and of the GOT helper.
4483 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4484 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4485 helper must be emitted. Use output_asm_insn instead of fprintf.
4486 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4487 if optimization is enabled.
4488 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4489 by calling output_load_pcrel_sym.
4491 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4493 * tree-sra.c (create_access): Delay disqualifying the base
4494 for poly_int values until we know we have a base.
4496 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4498 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4499 for loops with SIMDUID set. Enable epilogue vectorization for loops
4500 with SIMDLEN set after finding a main loop with a VF that matches it.
4502 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4505 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4506 value only, return non-NULL if there is a single non-clobber
4507 constituent store even if there are constituent clobbers and return
4508 one of clobber constituent stores if all constituent stores are
4510 (split_group): Handle clobbers.
4511 (imm_store_chain_info::output_merged_store): When computing
4512 bzero_first, look after all clobbers at the start. Don't count
4513 clobber stmts in orig_num_stmts, except if the first orig store is
4514 a clobber covering the whole area and split_stores cover the whole
4515 area, consider equal number of stmts ok. Punt if split_stores
4516 contains only ->orig stores and their number plus number of original
4517 clobbers is equal to original number of stmts. For ->orig, look past
4518 clobbers in the constituent stores.
4519 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4521 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4523 (store_valid_for_store_merging_p): Allow clobber stmts.
4524 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4527 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4528 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4530 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4531 force creation of a unique data.stack_parm slot.
4533 2019-11-08 Richard Biener <rguenther@suse.de>
4535 * genmatch.c (expr::gen_transform): Use the resimplify
4536 member function instead of hard-coding the gimple_resimplifyN variant.
4537 (dt_simplify::gen_1): Likewise.
4539 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4541 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4544 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4546 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4547 instead of INTEGER_CST.
4549 2019-11-08 Richard Biener <rguenther@suse.de>
4551 PR tree-optimization/92324
4552 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4553 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4554 sign-conversions as necessary.
4555 (vectorizable_reduction): Reject conversions in the chain
4556 that are not sign-conversions, base analysis on a non-converting
4557 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4558 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4560 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4561 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4563 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4566 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4567 Fix a missing '-' when displaying these options in the
4570 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4572 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4574 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4576 * config/aarch64/aarch64-builtins.c
4577 (aarch64_builtin_vectorized_function): Remove bswap handling.
4579 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4581 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4582 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4583 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4584 Treat the vector types as indivisible.
4586 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4588 * optabs.def (gather_load_optab, mask_gather_load_optab)
4589 (scatter_store_optab, mask_scatter_store_optab): Turn into
4590 conversion optabs, with the offset mode given explicitly.
4591 * doc/md.texi: Update accordingly.
4592 * config/aarch64/aarch64-sve-builtins-base.cc
4593 (svld1_gather_impl::expand): Likewise.
4594 (svst1_scatter_impl::expand): Likewise.
4595 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4596 (expand_scatter_store_optab_fn): Likewise.
4597 (direct_gather_load_optab_supported_p): Likewise.
4598 (direct_scatter_store_optab_supported_p): Likewise.
4599 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4601 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4602 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4603 argument with the offset vector type. Require the two vector
4604 types to have the same number of elements but allow their element
4605 sizes to be different. Treat the optabs as conversion optabs.
4606 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4607 prototype accordingly.
4608 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4609 (supports_vec_convert_optab_p): ...this new function.
4610 (supports_vec_gather_load_p): Update accordingly.
4611 (supports_vec_scatter_store_p): Likewise.
4612 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4613 Replace the offset sign and bits parameters with a scalar type tree.
4614 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4615 Pass back the offset vector type instead of the scalar element type.
4616 Allow the offset to be wider than the memory elements. Search for
4617 an offset type that the target supports, stopping once we've
4618 reached the maximum of the element size and pointer size.
4619 Update call to internal_gather_scatter_fn_supported_p.
4620 (vect_check_gather_scatter): Update calls accordingly.
4621 When testing a new scale before knowing the final offset type,
4622 check whether the scale is supported for any signed or unsigned
4623 offset type. Check whether the target supports the source and
4624 target types of a conversion before deciding whether to look
4625 through the conversion. Record the chosen offset_vectype.
4626 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4627 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4628 directly from the gs_info's offset_vectype instead. Pass a zero
4629 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4630 * tree-vect-stmts.c (check_load_store_masking): Update call to
4631 internal_gather_scatter_fn_supported_p, passing the offset vector
4632 type recorded in the gs_info.
4633 (vect_truncate_gather_scatter_offset): Update call to
4634 vect_check_gather_scatter, leaving it to search for a valid
4636 (vect_use_strided_gather_scatters_p): Convert the offset to the
4637 element type of the gs_info's offset_vectype.
4638 (vect_get_gather_scatter_ops): Get the offset vector type directly
4640 (vect_get_strided_load_store_ops): Likewise.
4641 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4642 and IFN_MASK_GATHER_LOAD.
4643 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4644 (gather_load<mode><v_int_equiv>): ...this.
4645 (mask_gather_load<mode>): Rename to...
4646 (mask_gather_load<mode><v_int_equiv>): ...this.
4647 (scatter_store<mode>): Rename to...
4648 (scatter_store<mode><v_int_equiv>): ...this.
4649 (mask_scatter_store<mode>): Rename to...
4650 (mask_scatter_store<mode><v_int_equiv>): ...this.
4652 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4655 * config/rs6000/predicates.md
4656 (signed_or_equality_comparison_operator): New predicate.
4657 (unsigned_or_equality_comparison_operator): Likewise.
4658 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4659 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4660 * config/rs6000/vector.md
4661 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4662 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4663 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4664 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4665 vector modes and same-size integer vector modes.
4666 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4667 (vector_lt<mode> for VEC_F): New expand.
4668 (vector_le<mode> for VEC_F): Likewise.
4669 (vector_ne<mode> for VEC_F): Likewise.
4670 (vector_unge<mode> for VEC_F): Likewise.
4671 (vector_ungt<mode> for VEC_F): Likewise.
4672 (vector_unle<mode> for VEC_F): Likewise.
4673 (vector_unlt<mode> for VEC_F): Likewise.
4674 (vector_uneq<mode>): Expose name.
4675 (vector_ltgt<mode>): Likewise.
4676 (vector_unordered<mode>): Likewise.
4677 (vector_ordered<mode>): Likewise.
4679 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4682 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4683 Enhance ix86_expand_vector_init_concat.
4685 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4687 * doc/invoke.texi (-Wold-style-definition): Document () not being
4688 considered an old-style definition for C2x.
4690 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4692 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4694 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4695 insn patterns using ldcw instruction.
4696 (memory_barrier): Remove insn pattern using sync instruction.
4697 * config/pa/pa.opt (coherent-ldcw): New option.
4698 (ordered): New option.
4700 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4702 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4705 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4707 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4708 typo - mistmatch -> mismatch.
4709 * ipa-profile.c (ipa_profile): Likewise.
4710 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4711 - mistmatch -> mismatch.
4713 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4715 * simplify-rtx.c (comparison_to_mask): New function.
4716 (mask_to_comparison): New function.
4717 (simplify_logical_relational_operation): New function.
4718 (simplify_binary_operation_1): Call
4719 simplify_logical_relational_operation.
4721 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4724 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4725 modes for integer constants.
4727 2019-11-07 Jan Hubicka <jh@suse.cz>
4730 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4733 2019-11-07 Jan Hubicka <jh@suse.cz>
4735 * optc-save-gen.awk: Generate cl_target_option_free
4736 and cl_optimization_option_free.
4737 * opth-en.awk: Declare cl_target_option_free
4738 and cl_optimization_option_free.
4739 * tree.c (free_node): Use it.
4741 2019-11-06 Jan Hubicka <jh@suse.cz>
4743 * lto-streamer-in.c: Include alloc-pool.h.
4744 (freeing_string_slot_hasher): Remove.
4745 (string_slot_allocator): New object allocator.
4746 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4747 (file_name_obstack): New obstack.
4748 (canon_file_name): Allocate in obstack and allocator.
4749 (lto_reader_init): Initialize obstack and allocator.
4750 (lto_free_file_name_hash): New function.
4751 * lto-streamer.h (lto_free_file_name_hash): New.
4753 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4755 PR tree-optimization/89134
4756 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4757 * params.def: Add min-loop-cond-split-prob.
4758 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4759 outside checks on loop into the function.
4760 (split_info): New class.
4761 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4762 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4763 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4764 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4765 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4766 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4767 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4768 (split_loop_on_cond): Likewise.
4769 (tree_ssa_split_loops): Add loop split on conditional statement.
4771 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4773 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4776 2019-11-07 Richard Biener <rguenther@suse.de>
4778 PR tree-optimization/92405
4779 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4780 restrict lane-reducing ops to single stmt chains.
4782 2019-11-07 Martin Jambor <mjambor@suse.cz>
4785 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4786 * cgraph.h (gimple_check_call_matching_types): Remove
4787 * cgraph.c (gimple_check_call_args): Likewise.
4788 (gimple_check_call_matching_types): Likewise.
4789 (symbol_table::create_edge): Do not call
4790 gimple_check_call_matching_types.
4791 (cgraph_edge::make_direct): Likewise.
4792 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4793 * value-prof.h (check_ic_target): Remove.
4794 * value-prof.c (check_ic_target): Remove.
4795 (gimple_ic_transform): Do nat call check_ic_target.
4796 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4797 (afdo_indirect_call): Likewise.
4798 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4799 gimple_check_call_matching_types.
4800 * ipa-inline.c (early_inliner): Likewise.
4802 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4804 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4805 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4806 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4807 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4808 * config/arm/iterators.md (USSAT16): New int_iterator.
4809 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4811 * config/arm/predicates.md (ssat16_imm): New predicate.
4812 (usat16_imm): Likewise.
4813 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4815 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4817 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4819 (arm_<simd32_op>): New define_expands.
4820 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4821 __smuad, __smuadx): Define.
4822 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4823 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4824 (SIMD32_BINOP_Q): Likewise.
4825 (simd32_op): Handle the above.
4826 * config/arm/unspecs.md: Define unspecs for the above.
4828 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4830 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4831 * config/arm/arm.md (APSRGE_REGNUM): Define.
4832 (arm_<simd32_op>): New define_insn.
4833 (arm_sel): Likewise.
4834 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4835 (CALL_USED_REGISTERS): Likewise.
4836 (REG_ALLOC_ORDER): Likewise.
4837 (FIRST_PSEUDO_REGISTER): Update value.
4838 (ARM_GE_BITS_READ): Define.
4839 * config/arm/arm.c (arm_conditional_register_usage): Clear
4840 APSRGE_REGNUM from operand_reg_set.
4841 (arm_ge_bits_access): Define.
4842 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4844 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4845 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4846 FAIL if ARM_GE_BITS_READ.
4847 (*arm_add<mode>3): New define_insn.
4848 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4849 (*arm_sub<mode>3): New define_insn.
4850 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4851 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4853 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4854 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4855 (simd32_op): Handle the above.
4856 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4857 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4858 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4859 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4861 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4863 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4864 (arm_smlabb): New define_expand.
4865 (*maddhisi4tb): Rename to...
4866 (maddhisi4tb): ... This.
4867 (*maddhisi4tt): Rename to...
4868 (maddhisi4tt): ... This.
4869 (arm_smlatb_setq): New define_insn.
4870 (arm_smlatb): New define_expand.
4871 (arm_smlatt_setq): New define_insn.
4872 (arm_smlatt): New define_expand.
4873 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4874 (arm_<smlaw_op>): New define_expand.
4875 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4876 __smlawb, __smlawt): Define.
4877 * config/arm_acle_builtins.def: Define builtins for the above.
4878 * config/arm/iterators.md (SMLAWBT): New int_iterator.
4879 (slaw_op): New int_attribute.
4880 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4882 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4884 * config/arm/arm.md (arm_<ss_op>): New define_expand.
4885 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
4886 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
4887 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
4888 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
4889 (ss_op): New code_attr.
4891 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4893 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
4894 * config/arm/arm.md (APSRQ_REGNUM): Define.
4895 (add_setq): New define_subst.
4896 (add_clobber_q_name): New define_subst_attr.
4897 (add_clobber_q_pred): Likewise.
4898 (maddhisi4): Change to define_expand. Split into mult and add if
4900 (arm_maddhisi4): New define_insn.
4901 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
4902 (*maddhisi4tt): Likewise.
4903 (arm_ssat): New define_expand.
4904 (arm_usat): Likewise.
4905 (arm_get_apsr): New define_insn.
4906 (arm_set_apsr): Likewise.
4907 (arm_saturation_occurred): New define_expand.
4908 (arm_set_saturation): Likewise.
4909 (*satsi_<SAT:code>): Rename to...
4910 (satsi_<SAT:code><add_clobber_q_name>): ... This.
4911 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
4912 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
4913 (CALL_USED_REGISTERS): Mark apsrq.
4914 (FIRST_PSEUDO_REGISTER): Update value.
4915 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
4916 (machine_function): Add q_bit_access.
4917 (ARM_Q_BIT_READ): Define.
4918 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
4919 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
4921 (arm_q_bit_access): Define.
4922 * config/arm/arm-builtins.c: Include stringpool.h.
4923 (arm_sat_binop_imm_qualifiers,
4924 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
4925 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
4926 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
4927 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
4928 SET_SAT_QUALIFIERS): Likewise.
4929 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
4930 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
4931 Handle 0 argument expander.
4932 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
4933 (arm_check_builtin_call): Define.
4934 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
4935 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
4936 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
4937 (arm_q_bit_access): Likewise.
4938 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
4939 __saturation_occurred, __set_saturation_occurred): Define.
4940 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
4941 saturation_occurred, set_saturation_occurred.
4942 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
4943 (UNSPEC_APSR_READ): Likewise.
4944 (VUNSPEC_APSR_WRITE): Likewise.
4945 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
4946 (*arm_ssadd<mode>3): New define_insn.
4947 (sssub<mode>3): Convert to define_expand.
4948 (*arm_sssub<mode>3): New define_insn.
4949 (ssmulsa3): Convert to define_expand.
4950 (*arm_ssmulsa3): New define_insn.
4951 (usmulusa3): Convert to define_expand.
4952 (*arm_usmulusa3): New define_insn.
4953 (ssmulha3): FAIL if ARM_Q_BIT_READ.
4954 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
4955 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
4957 2019-11-07 Martin Liska <mliska@suse.cz>
4960 * cgraph.c (delete_function_version): Clear global
4961 variable version_info_node if equal to deleted
4964 2019-11-07 Martin Liska <mliska@suse.cz>
4966 * fold-const.c (operand_compare::operand_equal_p): Add comparison
4967 of CONSTRUCTOR_NO_CLEARING.
4968 (operand_compare::hash_operand): Likewise.
4970 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
4972 Support 64-bit double and 64-bit long double configurations.
4975 * config.gcc (tm_defines) [avr]: Set from --with-double=,
4976 --with-long-double=.
4977 * config/avr/t-multilib: Remove.
4978 * config/avr/t-avr: Output of genmultilib.awk is now fully
4979 dynamically generated and no more part of the repo.
4980 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
4981 Pass them down to...
4982 * config/avr/genmultilib.awk: ...here and handle them.
4983 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
4984 (-mlong-double=, avr_long_double). New option and var.
4985 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
4986 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
4987 Set default as requested by --with-double=
4988 (TARGET_HANDLE_OPTION): Define to this...
4989 (avr_handle_option): ...new hook worker.
4990 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
4991 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
4992 (avr_double_lib): New proto for spec function.
4993 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
4994 (DRIVER_SELF_SPECS): Call %:double-lib.
4995 * config/avr/avr.c (avr_option_override): Assert
4996 sizeof(long double) >= sizeof(double) for the target.
4997 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
4998 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
4999 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5000 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5001 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5002 New built-in define depending on --with-double=, --with-long-double=.
5003 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5004 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5005 * doc/install.texi (Cross-Compiler-Specific Options)
5006 <--with-double=, --with-long-double=>: Doc.
5008 2019-11-07 Richard Biener <rguenther@suse.de>
5010 * dbgcnt.def (gimple_unroll): New.
5011 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5012 gimple_unroll debug counter before applying transform.
5013 (try_peel_loop): Likewise.
5015 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5017 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5018 frame pointer in multiple registers.
5019 (ira_setup_eliminable_regset): Setup eliminable_regset,
5020 ira_no_alloc_regs and regs_ever_live for frame pointer in
5023 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5025 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5028 2019-11-06 Jan Hubicka <jh@suse.cz>
5030 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5032 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5033 Do not silently ignore summary corruptions.
5035 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5037 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5038 the epilogue if there are peeled iterations for it to handle.
5040 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5042 * config/arc/arc.c (arc_split_ior): Add asserts.
5043 (arc_split_mov_const): Likewise.
5044 (arc_check_ior_const): Do not match known short immediate values.
5045 * config/arc/arc.md (movsi): Don't split predicated instructions
5048 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5050 * config/arc/arc.opt (mea): Update help string.
5051 * doc/invoke.texi(ARC): Update mea option info.
5053 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5055 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5056 (zero_extendqisi2_ac): Likewise.
5057 (zero_extendhisi2_i): Likewise.
5058 (extendqihi2_i): Likewise.
5059 (extendqisi2_ac): Likewise.
5060 (extendhisi2_i): Likewise.
5062 2019-11-06 Richard Biener <rguenther@suse.de>
5064 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5065 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5066 Simplify single_defuse_cycle condition.
5068 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5070 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5071 epilogue loop, make sure that the VF is small enough or that
5072 the epilogue loop can be fully-masked.
5074 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5076 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5077 loop when we've finished, rather than returning directly from
5078 the loop. Use a local variable to track whether we're still
5079 searching for the preferred simdlen. Make vect_epilogues
5080 record whether the next iteration should try to treat the
5081 loop as an epilogue.
5083 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5085 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5086 __arc_hard_float__, __ARC_HARD_FLOAT__,
5087 __arc_soft_float__, __ARC_SOFT_FLOAT__
5089 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5091 PR tree-optimization/92317
5092 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5093 update phi's with constant phi arguments.
5095 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5096 Alexandre Oliva <oliva@adacore.com>
5098 * common.opt (-fcallgraph-info[=]): New option.
5099 * doc/invoke.texi (Developer options): Document it.
5100 * opts.c (common_handle_option): Handle it.
5101 * builtins.c (expand_builtin_alloca): Record allocation if
5102 -fcallgraph-info=da.
5103 * calls.c (expand_call): If -fcallgraph-info, record the call.
5104 (emit_library_call_value_1): Likewise.
5105 * flag-types.h (enum callgraph_info_type): New type.
5106 * explow.c: Include stringpool.h.
5107 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5108 * function.c (allocate_stack_usage_info): New.
5109 (allocate_struct_function): Call it for -fcallgraph-info.
5110 (prepare_function_start): Call it otherwise.
5111 (record_final_call, record_dynamic_alloc): New.
5112 * function.h (struct callinfo_callee): New.
5113 (CALLEE_FROM_CGRAPH_P): New.
5114 (struct callinfo_dalloc): New.
5115 (struct stack_usage): Add callees and dallocs.
5116 (record_final_call, record_dynamic_alloc): Declare.
5117 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5118 object if -fcallgraph-info=da.
5119 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5120 * print-tree.h (print_decl_identifier): Declare.
5121 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5122 * print-tree.c: Include print-tree.h.
5123 (print_decl_identifier): New function.
5124 * toplev.c: Include print-tree.h.
5125 (callgraph_info_file): New global variable.
5126 (callgraph_info_external_printed): Likewise.
5127 (output_stack_usage): Rename to...
5128 (output_stack_usage_1): ... this. Make it static, add cf
5129 parameter. If -fcallgraph-info=su, print stack usage to cf.
5130 If -fstack-usage, use print_decl_identifier for
5132 (INDIRECT_CALL_NAME): New.
5133 (dump_final_node_vcg_start): New.
5134 (dump_final_callee_vcg, dump_final_node_vcg): New.
5135 (output_stack_usage): New.
5136 (lang_dependent_init): Open and start file if
5137 -fcallgraph-info. Allocated callgraph_info_external_printed.
5138 (finalize): If callgraph_info_file is not null, finish it,
5139 close it, and release callgraph_info_external_printed.
5141 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5142 Frederik Harwath <frederik@codesourcery.com>
5143 Thomas Schwinge <thomas@codesourcery.com>
5145 * omp-low.c (struct omp_context): New fields
5146 local_reduction_clauses, outer_reduction_clauses.
5147 (new_omp_context): Initialize these.
5148 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5149 (scan_omp_for): Check reduction clauses for incorrect nesting.
5151 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5154 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5155 operands with non-memory constraints.
5157 2019-11-05 Martin Sebor <msebor@redhat.com>
5159 PR tree-optimization/92373
5160 * tree.c (component_ref_size): Only consider initializers of objects
5161 of matching struct types.
5162 Return null for instances of interior zero-length arrays.
5164 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5166 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5168 2019-11-05 Jason Merrill <jason@redhat.com>
5170 PR tree-optimization/91825
5171 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5173 2019-11-05 Jim Wilson <jimw@sifive.com>
5176 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5177 optimize_insn_for_speed_p is true.
5179 2019-11-05 Martin Sebor <msebor@redhat.com>
5183 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5185 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5186 name and location for a temporary variable.
5188 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5190 * tree-vrp.c (value_range::value_range): Fix whitespace.
5191 (defined_ranges_p): Same.
5192 (range_fold_binary_symbolics_p): Same.
5193 (value_range::intersect_helper): Same.
5194 (value_range::union_helper): Same.
5195 * tree-vrp.h (range_fold_binary_expr): Same.
5197 2019-11-04 Martin Sebor <msebor@redhat.com>
5201 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5202 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5203 of message printed in a warning for empty arrays.
5204 (vrp_prop::check_mem_ref): Also handle function parameters and
5207 2019-11-05 Richard Biener <rguenther@suse.de>
5209 PR tree-optimization/92371
5210 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5211 on the original stmt of live stmts in the chain.
5212 (vectorizable_live_operation): Look at the original stmt when
5213 checking STMT_VINFO_REDUC_DEF.
5215 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5217 * gimple-fold.c, gimple-loop-versioning.cc,
5218 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5219 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5220 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5221 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5222 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5223 value_range_equiv, and value_range_base to value_range.
5225 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5227 * expr.c (build_personality_function): Fix generated type to
5228 match actual personality functions.
5230 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5232 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5233 enough bytes for the NULL character.
5235 2019-11-05 Richard Biener <rguenther@suse.de>
5237 PR tree-optimization/92280
5238 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5239 had a single use do not create a new CTOR.
5240 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5241 BIT_FIELD_REF of a CTOR via GENERIC.
5243 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5245 * config/s390/s390.c (s390_vector_alignment): Check if the value
5246 fits into uhwi before using it.
5248 2019-11-05 Martin Liska <mliska@suse.cz>
5250 * symbol-summary.h: Use ggc_delete.
5252 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5254 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5255 Change vec_perm field to 10.
5257 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5259 * doc/install.texi: Further fix syntax for html generation.
5261 2019-11-05 Martin Liska <mliska@suse.cz>
5263 * symbol-summary.h: Rename allocator to m_allocator and
5266 2019-11-05 Richard Biener <rguenther@suse.de>
5268 PR tree-optimization/92324
5269 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5270 all signed or unsigned operations.
5272 2019-11-05 Jan Hubicka <jh@suse.cz>
5274 * hsa-brig.c: Include alloc-pool.h
5275 * hsa-dump.c: Likewise.
5276 * hsa-gen.c: Likewise.
5277 * hse-regalloc.c: Likewise.
5278 * ipa-hsa.c: Likewise.
5279 * ipa-predicate.c: Likewise.
5280 * ipa-reference.c: Likewise.
5281 * ipa-sra.c: Likewise.
5282 * omp-expand.c: Likewise.
5283 * omp-general.c: Likewise.
5284 * omp-low.c: Likewise.
5285 * sumbol-summary.h (function_summary_base): Add allocator.
5286 (function_summary<T *>::function_summary): Update construction.
5287 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5288 (call_summary_base): Add allcator.
5289 (call_summary<T *>::call_summary): Update construction.
5290 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5292 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5294 PR tree-optimization/91945
5295 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5296 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5299 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5301 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5302 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5303 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5304 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5305 (vrp_set_zero_nonzero_bits): Move to...
5306 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5307 (vr_values::simplify_bit_ops_using_ranges): Rename
5308 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5310 2019-11-05 Martin Liska <mliska@suse.cz>
5313 * fold-const.c (operand_compare::hash_operand): Remove
5314 FIELD_DECL handling.
5316 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5318 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5319 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5322 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5324 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5325 properly handle symbolics.
5326 (range_compatible_p): Remove.
5328 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5330 * common.opt (-fabi-version): Document =14.
5331 * doc/invoke.texi (C++ Dialect Options): Likewise.
5333 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5335 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5337 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5339 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5340 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5341 gcn_omp_device_kind_arch_isa.
5342 * config/gcn/t-omp-device: New file.
5343 * configure.ac: Support gcn for omp_device_property.
5344 * configure: Regenerate.
5346 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5348 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5349 (vrp_val_max): Same.
5350 (vrp_val_is_min): Same.
5351 (vrp_val_is_max): Same.
5352 (value_range_base::nonzero_p): Remove last argument to
5354 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5355 (vrp_val_max): Same.
5356 (vrp_val_is_min): Same.
5357 (vrp_val_is_max): Same.
5358 (value_range_base::set_varying): Remove last argument to vrp_val*.
5359 (value_range_base::dump): Same.
5360 (value_range_base::set): Same.
5361 (value_range_base::normalize_symbolics): Same.
5362 (value_range_base::num_pairs): Same.
5363 (value_range_base::lower_bound): Same.
5364 (value_range_base::upper_bound): Same.
5365 (ranges_from_anti_range): Remove handle_pointers argument.
5366 (value_range_base::singleton_p): Remove last argument to
5367 ranges_from_anti_range.
5369 2019-11-04 Jan Hubicka <jh@suse.cz>
5371 * ipa-reference.c (init_function_info): Initialize
5372 info->global.statics_read.
5374 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5376 * tree-vrp.c (value_range_base::invert): Use constructors to build
5379 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5381 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5382 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5384 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5386 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5389 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5391 * tree-vrp.c (dump_assert_info): New.
5392 (dump_asserts_info): New.
5394 2019-11-04 Jan Hubicka <jh@suse.cz>
5396 * ipa-inline-transform.c: Include ipa-utils.h
5397 (inline_call): Set thunk_expansion flag.
5398 * ipa-utils.h (thunk_expansion): Declare.
5399 * ipa-devirt.c (thunk_expansion): New global var.
5400 (devirt_node_removal_hook): Do not invalidate cache while
5401 doing thunk expansion.
5403 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5405 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5407 2019-11-04 Martin Sebor <msebor@redhat.com>
5409 PR tree-optimization/92349
5410 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5411 memebers have constant sizes.
5413 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5415 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5417 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5418 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5421 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5423 * expr.c (store_constructor): Modify to handle single element vectors.
5424 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5426 (vect_slp_check_for_constructors): New function.
5427 (vect_slp_analyze_bb_1): Call new function to check for vector
5429 (vectorize_slp_instance_root_stmt): New function.
5430 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5432 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5434 2019-11-04 Richard Biener <rguenther@suse.de>
5436 PR tree-optimization/92345
5437 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5438 we produced a reduction chain.
5439 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5440 LOOP_VINFO_REDUCTIONS.
5442 2019-11-04 Jan Hubicka <jh@suse.cz>
5444 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5445 duplicate summaries.
5446 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5448 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5449 access call summaries.
5450 (dump_ipa_call_summary): Be ready for missing edge summaries.
5451 (analyze_function_body): Use get instead of get_create to access
5453 (estimate_calls_size_and_time): Do not access summaries of
5454 inlined edges; sanity check they are missing.
5455 (ipa_call_context::estimate_size_and_time): Use get instead
5456 of get_create to access node summary.
5457 (inline_update_callee_summaries): Do not update depth of
5459 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5461 (ipa_merge_fn_summary_after_inlining): Use get instead
5463 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5464 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5466 (initialize_growth_caches): Update.
5467 (do_estimate_edge_time): Remove redundant copy of context.
5468 (ipa_remove_from_growth_caches): New function.
5469 * ipa-inline.c (flatten_function): Update overall summary
5470 only when optimizing.
5471 (inline_to_all_callers): Update overall summary of function
5473 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5474 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5477 2019-11-04 Richard Biener <rguenther@suse.de>
5479 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5480 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5482 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5484 * ggc-common.c: Include system.h before malloc.h.
5486 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5488 * configure.ac: Pass --enable-obsolete=* and
5489 --enable-option-checking=* down to build configure, and fail
5490 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5491 * configure: Rebuild.
5492 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5493 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5495 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5497 * config.in: Regenerate.
5498 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5499 -mtiny-printf is used without GCC being configured with
5500 --enable-newlib-nano-formatted-io.
5501 * config/msp430/msp430.h (LINK_SPEC): Pass
5502 "--wrap puts --wrap printf" when -mtiny-printf is used.
5503 * config/msp430/msp430.opt: Document -mtiny-printf.
5504 * configure: Regenerate.
5505 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5506 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5507 --enable-newlib-nano-formatted-io is passed.
5508 * doc/invoke.texi: Document -mtiny-printf.
5510 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5512 * configure: Regenerate.
5514 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5516 * config/msp430/driver-msp430.c
5517 (msp430_get_linker_devices_include_path): New spec function.
5518 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5519 (extract_devices_dir_from_exec_prefix): New function.
5520 (extract_devices_dir_from_collect_gcc): New function.
5521 (msp430_check_env_var_for_devices): New function.
5522 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5523 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5524 devices.csv was not found using other methods.
5525 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5527 (msp430_dirname): Likewise.
5528 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5529 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5530 msp430_get_linker_devices_include_path.
5531 (TARGET_EXTRA_PRE_INCLUDES): Define.
5532 * doc/invoke.texi: Document new ways of searching for support files.
5534 2019-11-04 Richard Biener <rguenther@suse.de>
5536 PR tree-optimization/92301
5537 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5538 as required by epilogue generation
5540 2019-11-04 Martin Liska <mliska@suse.cz>
5543 * fold-const.c (operand_compare::hash_operand): Fix field
5544 hashing of CONSTRUCTOR.
5546 2019-11-04 Martin Liska <mliska@suse.cz>
5548 * ggc.h (ggc_delete): New function.
5549 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5550 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5551 (ipa_free_all_node_params): Likewise.
5552 * ipa-sra.c (ipa_sra_analysis): Likewise.
5554 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5556 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5557 set_switch_stmt_execution_predicate, compute_bb_predicates,
5558 will_be_nonconstant_expr_predicate,
5559 phi_result_unknown_predicate,
5560 analyze_function_body): Pass arround params summary.
5561 (ipa_call_context::duplicate_from): New comment;
5562 only duplicate useful values.
5563 (ipa_call_context::equal_to): Only compare useful values.
5564 (remap_edge_summaries): Pass params_summary.
5565 (remap_hint_predicate): Likewise.
5566 (ipa_merge_fn_summary_after_inlining): Likewise.
5567 (inline_read_section): Initialize params summary used flags.
5568 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5569 around param_summary.
5570 (add_condition): Initialized used params summary flags.
5571 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5572 (inline_param_summary::useless_p): New predicate.
5573 (remap_after_inlining, add_condition): Update prototype
5574 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5576 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5578 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5579 (ipa_analyze_virtual_call_uses): Likewise.
5580 (update_indirect_edges_after_inlining): Update param summaries.
5581 (ipa_print_node_params): Print used flags.
5582 (ipa_read_indirect_edge_info): Update param summareis.
5583 * ipa-prop.h (ipa_param_descriptor): Add
5584 used_by_ipa_predicates, used_by_indirect_call
5585 and used_by_polymorphic_call.
5586 (ipa_set_param_used_by_ipa_predicates,
5587 ipa_set_param_used_by_indirect_call,
5588 ipa_set_param_used_by_polymorphic_call,
5589 ipa_is_param_used_by_ipa_predicates,
5590 ipa_is_param_used_by_indirect_call,
5591 ipa_is_param_used_by_polymorphic_call): New inline functions.
5593 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5595 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5597 (ipa_call_context::release): Add ALL parameter.
5598 (ipa_call_context::equal_to): New member function.
5599 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5600 duplicate_form, release, equal_to and exists_p member functoins.
5601 * ipa-inline-analysis.c (node_context_cache_entry): New
5603 (node_context_summary): Likewise.
5604 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5605 node_context_clear): New static vars.
5606 (initialize_growth_caches): New function.
5607 (free_growth_caches): Also delete node_context_cache; output stats.
5608 (do_estimate_edge_time): Cache contexts.
5609 (reset_node_cache): New function.
5610 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5611 (inline_small_functions): Initialize growth caches.
5612 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5614 * ipa-predicate.h (inline_param_summary::equal_to): New.
5615 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5616 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5617 (ipa_agg_jump_function): Implement equal_to member function.
5619 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5621 * ipa-fnsummary.c (inline_read_section): Set vector size
5624 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5626 * ipa-fnsummary.c (ipa_call_context): New constructor.
5627 (estimate_node_size_and_time): Turn to ...
5628 (ipa_call_context::estimate_size_and_time): ... this one.
5629 (ipa_call_context::release): New.
5630 * ipa-fnsummary.h (ipa_call_context): New class.
5631 (estimate_node_size_and_time): Remove.
5632 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5633 do_estimate_edge_hints): Update.
5635 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5637 * config.in: Regenerate.
5638 * configure: Regenerate.
5639 * configure.ac: Check for mallinfo.
5640 * ggc-common.c: Include malloc.h if available;
5642 (report_heap_memory_use): New functoin.
5643 * ggc-page.c (ggc_grow): Do not print "start".
5644 * ggc.h (report_heap_memory_use): Declare.
5645 * pases.c (execute_one_pass): Report memory after IPA passes.
5646 (ipa_read_summaries_1): Likewise.
5647 (ipa_read_optimization_summaries_1): Likewise.
5649 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5651 * gimplify.h (omp_construct_selector_matches): Change return
5652 type to int, add a new SCORES argument.
5653 * gimplify.c (omp_construct_selector_matches): Likewise. If
5654 SCORES is non-NULL, compute scores of each construct.
5655 * omp-general.h (omp_get_context_selector): Declare.
5656 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5657 Adjust omp_construct_selector_matches callers.
5658 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5659 (omp_context_compute_score): New function.
5660 (omp_resolve_declare_variant): Compute scores and decide based on
5664 * configure.ac: Don't look for omp-device-properties files from
5665 installed offloading compilers. Instead add tmake_file snippets
5666 for configured offloading targets and use files they generate.
5667 * Makefile.in (install): Don't depend on
5668 install-omp-device-properties.
5669 (install-omp-device-properties): Remove goal.
5670 * config/i386/t-omp-device: New file.
5671 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5672 * config/nvptx/t-omp-device: New file.
5673 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5674 * configure: Regenerated.
5676 * omp-general.h (omp_context_selector_set_compare): Declare.
5677 * omp-general.c (omp_construct_simd_compare,
5678 omp_context_selector_props_compare, omp_context_selector_set_compare,
5679 omp_context_selector_compare): New functions.
5680 (omp_resolve_declare_variant): Prune variants that are strict subset
5683 2019-11-01 Martin Sebor <msebor@redhat.com>
5689 * doc/invoke.texi (-Wzero-length-bounds): Document.
5690 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5691 instead of a hand-rolled loop to avoid PR 92323.
5692 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5694 (vrp_prop::check_mem_ref): Handle declared struct objects.
5695 * tree.c (last_field): New function.
5696 (array_at_struct_end_p): Handle MEM_REF.
5697 (get_initializer_for): New helper.
5698 (component_ref_size): Add argument. Rename locals. Call
5699 get_initializer_for instead of fold_ctor_reference. Correct handling
5700 of flexible array members.
5701 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5703 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5705 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5706 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5707 UNSPEC_VSX_CVSPUXDS): Remove.
5708 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5709 (vsx_xvcvspdp_be): ... this. New. And...
5710 (vsx_xvcvspdp_le): ... this. New.
5711 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5712 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5713 (vsx_xvcv<su>xwdp_le): ... this. New.
5714 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5715 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5716 (vsx_xvcvsp<su>xds_le): ... this. New.
5718 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5720 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5721 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5722 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5723 UNSPEC_VSX_XVCVSPSXWS): Remove.
5724 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5725 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5727 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5729 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5730 (UNSPEC_VSX_XVCDPSP): Remove.
5731 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5732 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5734 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5736 * hooks.c (hook_tree_tree_bool_null): New.
5737 * hooks.h (hook_tree_tree_bool_null): Declare.
5738 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5739 (LANG_HOOKS_DECLS): Add it.
5740 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5741 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5742 (lower_omp_target): Handle Fortran array with descriptor in
5743 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5745 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5747 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5748 Assert that the type we store in abi_vector_types is its own
5750 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5752 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5754 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5755 from a CONST_INT address when TARGET_THUMB2.
5757 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5759 * config/arm/arm.md (add_not_cin): New insn.
5760 (add_not_shift_cin): Likewise.
5762 2019-10-31 Martin Liska <mliska@suse.cz>
5764 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5765 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5766 and compare_memory_operand.
5768 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5770 * configure.ac: Compute and substitute omp_device_properties and
5771 omp_device_property_deps.
5772 * Makefile.in (generated_files): Add omp-device-properties.h.
5773 (omp-general.o): Depend on omp-device-properties.h.
5774 (omp_device_properties): New make variable.
5775 (omp-device-properties.h, s-omp-device-properties-h,
5776 install-omp-device-properties): New goals.
5777 (install): Depend on install-omp-device-properties for accelerators.
5778 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5779 * target.h (enum omp_device_kind_arch_isa): New enum.
5780 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5782 * omp-general.c: Include omp-device-properties.h.
5783 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5784 colon instead of comma.
5785 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5787 (omp_context_selector_matches): Implement device set arch/isa
5788 selectors, improve device set kind selector handling.
5789 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5790 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5791 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5792 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5793 ix86_omp_device_kind_arch_isa.
5794 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5795 definition from ix86_target_string to file scope.
5796 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5798 (ix86_omp_device_kind_arch_isa): New function.
5799 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5800 isa_opts definitions to file scope.
5801 * config/i386/t-intelmic (omp-device-properties): New goal.
5802 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5803 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5804 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5805 nvptx_omp_device_kind_arch_isa.
5806 * configure: Regenerate.
5807 * doc/tm.texi: Regenerate.
5810 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5811 DECL_BUILT_IN in comment. Remove redundant ()s around return
5813 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5814 before calling fndecl_built_in_p.
5815 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5816 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5817 fndecl_built_in_p on it.
5819 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5821 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5823 2019-10-31 Martin Liska <mliska@suse.cz>
5825 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5826 of cgraph_local_info and use local_info_node instead.
5827 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5828 (bfin_function_ok_for_sibcall): Likewise.
5829 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5830 (must_reload_pic_reg_p): Likewise.
5832 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5835 * tree.h (type_initializer_zero_p): Remove.
5836 * tree.c (type_initializer_zero_p): Remove.
5838 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5840 * doc/invoke.texi (-Wshadow, -Wshadow=global
5841 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5843 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5845 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5846 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5847 and 'target exit data'.
5849 2019-10-30 Martin Jambor <mjambor@suse.cz>
5852 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5853 availability comparison.
5855 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5857 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5858 calls to __mspabi_mpy* functions.
5859 * config/msp430/msp430.md (mulhisi3): New define_expand.
5860 (umulhisi3): New define_expand.
5861 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5862 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5864 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5866 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5867 (msp430_check_plus_not_high_mem): New.
5868 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5869 might be in low memory.
5870 Indicate that a 16-bit absolute address is in lower memory.
5872 2019-10-30 Martin Jambor <mjambor@suse.cz>
5874 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5875 ultimate_alias_target.
5877 2019-10-30 Richard Biener <rguenther@suse.de>
5879 PR tree-optimization/92275
5880 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5881 Copy all loop-closed PHIs.
5883 2019-10-30 Martin Liska <mliska@suse.cz>
5885 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
5886 const_tree as function argument.
5887 (func_checker::compare_decl): Likewise.
5888 (func_checker::operand_equal_p): Likewise.
5889 (func_checker::compare_variable_decl): Likewise.
5890 (func_checker::parse_labels): Likewise.
5891 * ipa-icf-gimple.h: Likewise.
5893 2019-10-30 Martin Liska <mliska@suse.cz>
5895 * ipa-icf-gimple.c (func_checker::compatible_types_p):
5896 Do not compare alias sets. It's handled by operand_equal_p.
5898 2019-10-30 Martin Liska <mliska@suse.cz>
5900 * ipa-icf-gimple.c (func_checker::func_checker): Do not
5901 initialize m_compare_polymorphic.
5902 (func_checker::compare_decl): Do not compare polymorphic types.
5903 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
5904 * ipa-icf.c (sem_function::equals_private): Do not call
5905 compare_polymorphic_p.
5907 2019-10-30 Martin Liska <mliska@suse.cz>
5909 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
5911 (func_checker::compare_memory_operand): Remove.
5912 (func_checker::compare_cst_or_decl): Remove.
5913 (func_checker::operand_equal_valueize): Do not handle
5915 (func_checker::compare_gimple_call): Call compare_operand.
5916 (func_checker::compare_gimple_assign): Likewise.
5917 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
5918 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
5919 * ipa-icf.h (icf_handled_component_p): Remove.
5921 2019-10-30 Martin Liska <mliska@suse.cz>
5923 * ipa-icf-gimple.c (func_checker::hash_operand): New.
5924 (func_checker::compare_cst_or_decl): Remove handling
5926 (func_checker::compare_operand): Transform to ...
5927 (func_checker::operand_equal_p): ... this.
5928 * ipa-icf-gimple.h (class func_checker): Add
5929 operand_equal_p and hash_operand.
5930 * ipa-icf.c (sem_function::equals_private): Fix
5931 pushing and popping of cfun.
5933 2019-10-30 Martin Liska <mliska@suse.cz>
5935 * fold-const.c (operand_equal_p): Move to ...
5936 (operand_compare::operand_equal_p): ... here.
5937 (operand_compare::verify_hash_value): New.
5938 (add_expr): Move to ...
5939 (operand_compare::hash_operand): ... here.
5940 * fold-const.h (operand_equal_p): Move to the class.
5941 (class operand_compare): New.
5942 * tree.c (add_expr): Remove.
5944 2019-10-30 Martin Liska <mliska@suse.cz>
5946 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
5947 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
5949 2019-10-30 Martin Liska <mliska@suse.cz>
5953 * cgraph.c (cgraph_node::get_create): Overwrite node->order
5954 from a first_clone in order to get proper LTO section
5956 (cgraph_node::get_untransformed_body):
5957 Use lto_get_section_data where symtab_node::order
5959 * cgraphclones.c (cgraph_node::find_replacement):
5960 Update also symbol order.
5961 * ipa-fnsummary.c (ipa_fn_summary_read):
5962 Use new function lto_get_summary_section_data.
5963 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
5964 * ipa-icf.c (sem_item_optimizer::read_summary):
5966 * ipa-prop.c (ipa_prop_read_jump_functions):
5968 (ipcp_read_transformation_summaries): Likewise.
5969 * ipa-sra.c (ipa_sra_read_summary): Likewise.
5970 * lto-cgraph.c (input_node): Add also order_base.
5971 (input_varpool_node): Likewise.
5972 (input_cgraph_1): Assign the order_base.
5973 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
5974 * lto-opts.c (lto_write_options): Pass new argument.
5975 * lto-section-in.c (lto_get_section_data): Add new argumente order.
5976 (lto_get_summary_section_data): New.
5977 (lto_get_raw_section_data): Add order argument.
5978 (lto_create_simple_input_block): Likewise.
5979 * lto-section-out.c (lto_destroy_simple_output_block):
5981 * lto-streamer-in.c (lto_input_toplevel_asms):
5982 Use lto_get_summary_section_data.
5983 (lto_input_mode_table): Likewise.
5984 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
5985 (lto_output_toplevel_asms): Pass new argument.
5986 (copy_function_or_variable): Likewise.
5987 (produce_lto_section):Likewise.
5988 (produce_symtab): Likewise.
5989 (lto_write_mode_table): Likewise.
5990 (produce_asm_for_decls): Likewise.
5991 * lto-streamer.c (lto_get_section_name): Concat symbol name
5993 * lto-streamer.h (lto_get_section_data): Add order argument.
5994 (lto_get_summary_section_data): New.
5995 (lto_get_raw_section_data): Add order argument.
5996 (lto_get_section_name): Likewise.
5997 * varpool.c (varpool_node::get_constructor): Pass order argument.
5999 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6001 PR tree-optimization/92262
6002 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6003 ubase or cbase here.
6004 (remove_unused_ivs): Unshare comp before using it.
6006 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6008 * ipa-prop.c (update_jump_functions_after_inlining):
6009 Watch for missing summaries.
6011 2019-10-30 Richard Biener <rguenther@suse.de>
6013 PR tree-optimization/65930
6014 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6015 chains also allow a leading and trailing conversion.
6016 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6017 intermediate reduction chains.
6018 (vect_analyze_slp_instance): Likewise. Build a SLP
6019 node for a trailing conversion manually.
6021 2019-10-30 Martin Liska <mliska@suse.cz>
6023 * cgraph.c (cgraph_node::local_info): Transform to ...
6024 (cgraph_node::local_info_node): ... this.
6025 (cgraph_node::dump): Remove cgraph_local_info and
6026 put its fields directly into cgraph_node.
6027 (cgraph_node::get_availability): Likewise.
6028 (cgraph_node::make_local): Likewise.
6029 (cgraph_node::verify_node): Likewise.
6030 * cgraph.h (struct GTY): Likewise.
6031 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6032 (duplicate_thunk_for_node): Likewise.
6033 (cgraph_node::create_clone): Likewise.
6034 (cgraph_node::create_virtual_clone): Likewise.
6035 (cgraph_node::create_version_clone): Likewise.
6036 * cgraphunit.c (cgraph_node::reset): Likewise.
6037 (cgraph_node::finalize_function): Likewise.
6038 (cgraph_node::add_new_function): Likewise.
6039 (analyze_functions): Likewise.
6040 * combine.c (setup_incoming_promotions): Likewise.
6041 * config/i386/i386.c (ix86_function_regparm): Likewise.
6042 (ix86_function_sseregparm): Likewise.
6043 (init_cumulative_args): Likewise.
6044 * ipa-cp.c (determine_versionability): Likewise.
6045 (count_callers): Likewise.
6046 (set_single_call_flag): Likewise.
6047 (initialize_node_lattices): Likewise.
6048 (estimate_local_effects): Likewise.
6049 (create_specialized_node): Likewise.
6050 (identify_dead_nodes): Likewise.
6051 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6052 (ipa_fn_summary_generate): Likewise.
6053 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6054 (process_hsa_functions): Likewise.
6055 * ipa-icf.c (set_local): Likewise.
6056 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6057 * ipa-inline.c (speculation_useful_p): Likewise.
6058 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6059 (ipa_profile): Likewise.
6060 * ipa-split.c (split_function): Likewise.
6061 (execute_split_functions): Likewise.
6062 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6063 (ipa_sra_ipa_function_checks): Likewise.
6064 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6065 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6066 * lto-cgraph.c (lto_output_node): Likewise.
6067 (input_overwrite_node): Likewise.
6068 * multiple_target.c (expand_target_clones): Likewise.
6069 * omp-simd-clone.c (simd_clone_create): Likewise.
6070 * trans-mem.c (expand_call_tm): Likewise.
6071 (ipa_tm_mayenterirr_function): Likewise.
6072 (ipa_tm_diagnose_tm_safe): Likewise.
6073 (ipa_tm_diagnose_transaction): Likewise.
6074 (ipa_tm_create_version): Likewise.
6075 (ipa_tm_transform_calls_redirect): Likewise.
6076 (ipa_tm_execute): Likewise.
6077 * tree-inline.c (expand_call_inline): Likewise.
6079 2019-10-29 Martin Liska <mliska@suse.cz>
6081 * symbol-summary.h (function_summary): Pass memory location
6082 to underlaying hash_map (or vec).
6083 (V>::fast_function_summary): Likewise.
6085 2019-10-29 Martin Liska <mliska@suse.cz>
6087 * ggc.h (ggc_alloc_no_dtor): New function.
6088 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6089 destructor and ggc_free.
6090 (ipa_free_size_summary): Call delete instead
6092 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6093 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6094 (ipa_free_all_edge_args): Call destructor and ggc_free.
6095 (ipa_free_all_node_params): Likewise.
6096 (ipcp_free_transformation_sum): Likewise.
6097 * ipa-prop.h (ipa_check_create_node_params):
6098 Call new ggc_alloc_no_dtor.
6099 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6100 (ipa_sra_analysis): Call destructor and ggc_free.
6101 Replace release with delete operator.
6102 * symbol-summary.h (release): Remove ..
6103 (V>::~fast_function_summary): and move logic here.
6104 Likewise for other classes.
6106 2019-10-29 Richard Biener <rguenther@suse.de>
6108 PR tree-optimization/92260
6109 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6112 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6114 PR tree-optimization/88915
6115 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6116 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6117 and make the valueize function pointer also take a void pointer.
6118 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6119 around vn_valueize, to call it without a context.
6120 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6121 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6122 (~_loop_vec_info): Release epilogue_vinfos.
6123 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6124 number of iterations of epilogue.
6125 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6126 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6127 versioning threshold needed for main loop.
6128 (vect_analyze_loop): Likewise.
6129 (find_in_mapping): New helper function.
6130 (update_epilogue_loop_vinfo): New function.
6131 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6132 on main loop and call update_epilogue_loop_vinfo to update it.
6133 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6134 stmts on loop preheader edge.
6135 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6136 we decided to vectorize epilogues. Update epilogues NITERS and
6137 construct ADVANCE to update epilogues data references where needed.
6138 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6139 (vect_do_peeling, vect_update_inits_of_drs,
6140 determine_peel_for_niter, vect_analyze_loop): Add or update
6142 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6143 created loop_vec_info's for epilogues when available. Otherwise analyse
6144 epilogue separately.
6146 2019-10-29 Richard Biener <rguenther@suse.de>
6148 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6151 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6153 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6154 index for the COND_EXPR from stmt_info rather than reduc_info.
6156 2019-10-29 Richard Biener <rguenther@suse.de>
6158 PR tree-optimization/65930
6159 * tree-vect-loop.c (check_reduction_path): Relax single-use
6160 check allowing out-of-loop uses.
6161 (vect_is_simple_reduction): SLP reduction chains cannot have
6162 intermediate stmts used outside of the loop.
6163 (vect_create_epilog_for_reduction): The adjustment might need
6165 (vectorizable_reduction): Annotate live stmts of the reduction
6166 chain with STMT_VINFO_REDUC_DEF.
6167 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6169 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6171 * calls.c (pass_by_reference): Leave the target to decide whether
6172 POLY_INT_CST-sized arguments should be passed by value or reference,
6173 rather than forcing them to be passed by reference.
6174 (must_pass_in_stack_var_size): Likewise.
6175 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6176 V31_REGNUM to P15_REGNUM.
6177 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6178 Take an extra "silent_p" parameter, defaulting to false.
6179 (aarch64_sve::svbool_type_p): Declare.
6180 (aarch64_sve::nvectors_if_data_type): Likewise.
6181 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6182 (aarch64_frame::reg_offset): Turn into poly_int64s.
6183 (aarch64_frame::save_regs_size): Likewise.
6184 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6185 (aarch64_frame::sve_callee_adjust): Likewise.
6186 (aarch64_frame::spare_reg_reg): Likewise.
6187 (ARM_PCS_SVE): New arm_pcs value.
6188 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6189 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6190 (CUMULATIVE_ARGS::silent_p): Likewise.
6191 (BITS_PER_SVE_PRED): New macro.
6192 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6193 function. Reject aarch64_vector_pcs attributes on SVE functions.
6194 (aarch64_attribute_table): Use the above handler.
6195 (aarch64_sve_abi): New function.
6196 (aarch64_sve_argument_p): Likewise.
6197 (aarch64_returns_value_in_sve_regs_p): Likewise.
6198 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6199 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6200 descriptor for them.
6201 (aarch64_simd_decl_p): Delete.
6202 (aarch64_emit_cfi_for_reg_p): New function.
6203 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6204 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6205 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6206 as partly clobbered for the SVE PCS.
6207 (aarch64_function_ok_for_sibcall): Check whether the two functions
6208 use the same ABI, rather than checking specifically for whether
6209 they're aarch64_vector_pcs functions.
6210 (aarch64_pass_by_reference): Raise an error for attempts to pass
6211 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6212 if there are not enough free registers left, or if the argument is
6214 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6215 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6217 (aarch64_layout_arg): Take a function_arg_info rather than
6218 individual properties. Handle SVE predicates, vectors and tuples.
6219 Raise an error if they are passed to unprototyped functions.
6220 (aarch64_function_arg): If the silent_p flag is set, suppress the
6221 usual error about using float registers without TARGET_FLOAT.
6222 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6223 it in the cumulative_args structure. Initialize aapcs_nprn and
6224 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6225 error about using float registers without TARGET_FLOAT.
6226 If the silent_p flag is not set, also raise an error about
6227 using SVE functions when SVE is disabled.
6228 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6229 and call it for SVE functions too. Update aapcs_nprn similarly
6230 to the other register counts.
6231 (aarch64_layout_frame): If a big-endian function needs to save
6232 and restore Z8-Z15, search for a spare predicate that it can use.
6233 Store SVE predicates at the bottom of the register save area,
6234 followed by SVE vectors, then followed by the normal slots.
6235 Keep pointing the hard frame pointer at the base of the normal slots,
6236 above the SVE vectors. Update the various frame creation and
6237 tear-down strategies for the new layout, initializing the new
6238 sve_callee_adjust field. Add an additional layout for frames
6239 whose saved registers are all SVE registers.
6240 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6241 (aarch64_return_address_signing_enabled): Likewise.
6242 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6243 aarch64_reg_save_mode.
6244 (aarch64_adjust_sve_callee_save_base): New function.
6245 (aarch64_add_cfa_expression): Move earlier in file. Take the
6246 saved register as an rtx rather than a register number and use
6247 its mode for the MEM slot.
6248 (aarch64_save_callee_saves): Remove the mode argument and instead
6249 use aarch64_reg_save_mode to get the mode of each save slot.
6250 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6251 offsets. Allow GP offsets to be saved at a VL-based offset from
6252 the stack, handling this case using the frame pointer if available
6253 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6254 big-endian SVE functions; use normal moves for other SVE saves.
6255 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6256 returns true. Add explicit CFA notes when not storing via the
6257 stack pointer. Do not try to pair SVE saves.
6258 (aarch64_restore_callee_saves): Cope with poly_int64 register
6259 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6260 use normal moves for other SVE restores. Only add CFA restore notes
6261 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6263 (aarch64_get_separate_components): Always keep the first SVE save
6264 in the prologue if we need to use it as a stack probe. Don't allow
6265 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6266 Likewise the spare predicate register that they need. Update the
6267 offset calculation to account for the SVE save area. Use the
6268 appropriate range check for SVE LDR and STR instructions.
6269 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6270 (aarch64_process_components): Likewise. Update the offset
6271 calculation to account for the SVE save area. Only mark the
6272 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6273 Do not try to pair SVE saves.
6274 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6275 reg_offsets. When handling the final allocation, expect the
6276 first SVE register save to be part of the initial allocation
6277 and for it to act as a probe at SP. Account for the SVE callee
6278 save area in the dump information.
6279 (aarch64_expand_prologue): Update the frame diagram. Fold the
6280 SVE callee allocation into the initial allocation if stack clash
6281 protection is enabled. Use new variables to track the offset
6282 of the frame chain (and hard frame pointer) from the current
6283 stack pointer, and likewise the offset of the bottom of the
6284 register save area. Update calls to aarch64_save_callee_saves
6285 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6286 saving the FP&SIMD registers. Save the predicate registers.
6287 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6288 into account when setting the stack pointer from the frame pointer,
6289 and when deciding whether we can inherit the initial adjustment
6290 amount from the prologue. Restore the predicate registers after
6291 the vector registers, then apply sve_callee_adjust, then restore
6292 the general registers.
6293 (aarch64_secondary_reload): Don't use secondary SVE reloads
6295 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6296 (aarch64_short_vector_p): Return false for SVE types.
6297 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6298 at the start of the function. Return false for SVE types.
6299 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6301 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6302 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6303 to big-endian targets for bytewise moves.
6304 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6306 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6307 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6308 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6310 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6311 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6312 aarch64-sve-builtins-base.o to extra_objs. Add
6313 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6314 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6315 (aarch64-sve-builtins-shapes.o): Likewise.
6316 (aarch64-sve-builtins-base.o): New rules.
6317 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6318 (aarch64_resolve_overloaded_builtin): Likewise.
6319 (aarch64_check_builtin_call): Likewise.
6320 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6321 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6323 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6324 (aarch64_svprfop): New enum.
6325 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6326 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6327 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6328 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6329 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6330 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6331 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6332 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6333 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6334 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6335 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6336 (aarch64_sve::mangle_builtin_type): Likewise.
6337 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6338 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6339 (aarch64_sve::expand_builtin): Likewise.
6340 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6341 (aarch64_sve_int_mode): Likewise.
6342 (aarch64_ptrue_all_mode): New function.
6343 (aarch64_convert_sve_data_to_pred): Make public.
6344 (svprfop_token): New function.
6345 (aarch64_output_sve_prefetch): Likewise.
6346 (aarch64_fold_sve_cnt_pat): Likewise.
6347 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6348 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6349 instead of gen_while_ult.
6350 (aarch64_replace_reg_mode): Make public.
6351 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6352 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6353 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6354 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6355 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6356 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6357 (aarch64_sve_ptrue_svpattern_p): Likewise.
6358 (aarch64_sve_pred_valid_immediate): Check
6359 aarch64_sve_ptrue_svpattern_p.
6360 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6361 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6363 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6364 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6365 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6366 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6367 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6368 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6370 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6371 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6372 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6373 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6374 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6375 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6376 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6377 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6378 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6379 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6380 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6381 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6382 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6383 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6384 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6385 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6386 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6387 (Vesize): Handle partial vector modes.
6388 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6390 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6392 (s, paired_extend, inc_dec): New code attributes.
6393 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6394 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6395 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6396 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6397 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6398 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6400 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6401 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6402 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6403 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6404 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6405 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6406 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6407 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6408 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6409 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6410 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6411 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6412 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6413 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6414 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6415 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6417 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6418 (binqops_op, binqops_op_rev, last_op): New int attributes.
6419 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6420 (fn, ab): New int attributes.
6421 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6422 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6423 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6424 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6426 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6427 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6428 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6429 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6430 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6432 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6433 (brk_reg_con, brk_reg_opno): New int attributes.
6434 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6435 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6436 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6438 (max_elem_bits): New int attribute.
6439 (min_elem_bits): Handle UNSPEC_RBIT.
6440 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6441 TRUNCATE as well as SUBREG.
6442 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6443 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6444 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6445 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6446 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6447 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6448 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6449 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6450 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6451 (aarch64_gather_scale_operand_h): New predicates.
6452 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6453 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6454 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6455 (*aarch64_sve_reinterpret<mode>): Allow any source register
6456 instead of requiring an exact match.
6457 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6458 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6459 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6460 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6461 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6462 (aarch64_update_ffrt): New patterns.
6463 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6464 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6465 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6466 (@aarch64_ld<fn>f1<mode>): New patterns.
6467 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6468 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6469 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6470 (@aarch64_ldnt1<mode>): New patterns.
6471 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6472 the scalar part of the address.
6473 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6474 scalar part of the addresse and add an alternative for handling
6476 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6477 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6478 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6479 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6480 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6481 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6482 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6483 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6484 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6485 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6486 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6487 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6488 (@aarch64_sve_prefetch<mode>): New patterns.
6489 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6490 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6491 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6492 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6493 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6494 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6495 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6496 (@aarch64_stnt1<mode>): New patterns.
6497 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6498 the scalar part of the address.
6499 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6500 the scalar part of the addresse and add an alternative for handling
6502 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6503 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6504 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6505 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6506 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6507 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6509 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6510 (extract_last_<mode>): Generalize to...
6511 (@extract_<LAST:last_op>_<mode>): ...this.
6512 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6513 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6514 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6515 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6516 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6517 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6518 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6519 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6520 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6521 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6522 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6523 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6524 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6525 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6526 (*aarch64_adr_uxtw_unspec): Likewise.
6527 (*aarch64_adr_uxtw): Rename to...
6528 (*aarch64_adr_uxtw_and): ...this.
6529 (@aarch64_adr<mode>_shift): New expander.
6530 (*aarch64_adr_shift_sxtw): New pattern.
6531 (aarch64_<su>abd<mode>_3): Rename to...
6532 (@aarch64_pred_<su>abd<mode>): ...this.
6533 (<su>abd<mode>_3): Update accordingly.
6534 (@aarch64_cond_<su>abd<mode>): New expander.
6535 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6536 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6537 (*<su>mul<mode>3_highpart): Rename to...
6538 (@aarch64_pred_<optab><mode>): ...this.
6539 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6540 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6541 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6542 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6543 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6544 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6545 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6546 (*v<ASHIFT:optab><mode>3): Rename to...
6547 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6548 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6549 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6550 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6551 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6552 (@cond_asrd<mode>): New expander.
6553 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6554 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6555 (*sdiv_pow2<mode>3): Delete.
6556 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6557 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6558 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6559 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6560 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6561 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6562 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6563 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6564 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6565 (*add<SVE_F:mode>3): Rename to...
6566 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6568 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6569 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6570 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6571 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6572 (*sub<SVE_F:mode>3): Rename to...
6573 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6575 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6576 (*fabd<SVE_F:mode>3): Rename to...
6577 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6578 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6579 (*mul<SVE_F:mode>3): Rename to...
6580 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6582 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6583 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6585 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6586 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6587 (*<nlogical><PRED_ALL:mode>3): Rename to...
6588 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6589 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6590 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6591 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6592 (aarch64_pred_<logical_nn><mode>_z): ...this.
6593 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6594 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6595 (*fma<SVE_I:mode>4): Rename to...
6596 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6597 (*fnma<SVE_I:mode>4): Rename to...
6598 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6599 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6600 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6601 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6602 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6603 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6604 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6605 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6606 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6607 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6608 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6609 (@aarch64_sve_tmad<mode>): Likewise.
6610 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6611 (*aarch64_sel_dup<mode>): Rename to...
6612 (@aarch64_sel_dup<mode>): ...this.
6613 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6614 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6615 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6616 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6617 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6618 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6619 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6620 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6621 (*fcm<cmp_op><mode>): Rename to...
6622 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6623 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6624 (*fcmuo<mode>): Rename to...
6625 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6626 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6627 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6628 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6629 (fold_extract_last_<mode>): Generalize to...
6630 (@fold_extract_<last_op>_<mode>): ...this.
6631 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6632 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6633 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6634 DImode result explicit.
6635 (reduc_plus_scal_<mode>): Update accordingly.
6636 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6637 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6638 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6639 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6640 (*aarch64_sve_tbl<mode>): Rename to...
6641 (@aarch64_sve_tbl<mode>): ...this.
6642 (@aarch64_sve_compact<mode>): New pattern.
6643 (*aarch64_sve_dup_lane<mode>): Rename to...
6644 (@aarch64_sve_dup_lane<mode>): ...this.
6645 (@aarch64_sve_dupq_lane<mode>): New pattern.
6646 (@aarch64_sve_splice<mode>): Likewise.
6647 (aarch64_sve_<perm_insn><mode>): Rename to...
6648 (@aarch64_sve_<perm_insn><mode>): ...this.
6649 (*aarch64_sve_ext<mode>): Rename to...
6650 (@aarch64_sve_ext<mode>): ...this.
6651 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6652 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6654 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6655 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6657 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6659 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6660 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6661 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6662 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6664 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6665 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6667 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6668 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6669 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6671 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6672 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6673 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6674 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6675 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6677 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6678 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6679 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6680 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6681 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6682 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6683 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6684 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6685 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6686 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6687 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6688 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6689 (aarch64_sve_cnt_pat): Likewise.
6690 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6691 (*aarch64_sve_incsi_pat): Likewise.
6692 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6693 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6694 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6695 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6696 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6697 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6698 (*aarch64_sve_decsi_pat): Likewise.
6699 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6700 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6701 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6702 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6703 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6704 (@aarch64_pred_cntp<mode>): Likewise.
6705 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6707 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6708 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6709 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6711 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6713 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6714 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6715 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6716 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6717 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6718 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6719 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6721 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6722 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6723 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6725 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6727 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6729 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6730 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6732 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6733 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6735 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6736 * config/aarch64/arm_sve.h: New file.
6737 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6738 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6739 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6740 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6741 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6742 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6743 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6744 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6745 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6747 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6749 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6751 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6754 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6756 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6757 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6759 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6760 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6761 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6762 (aarch64_hard_regno_nregs): Handle the new register classes.
6763 (aarch64_hard_regno_mode_ok): Likewise.
6764 (aarch64_regno_regclass): Likewise.
6765 (aarch64_class_max_nregs): Likewise.
6766 (aarch64_register_move_cost): Likewise.
6767 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6768 as general register_operands.
6770 2019-10-29 Martin Liska <mliska@suse.cz>
6772 * ggc-common.c: One can't subtract unsigned types
6773 in compare function.
6775 2019-10-29 Martin Liska <mliska@suse.cz>
6777 * cgraphunit.c (symbol_table::compile): Pass
6778 title as dump_memory_report argument.
6779 * toplev.c (dump_memory_report): New argument.
6780 (finalize): Pass new argument.
6781 * toplev.h (dump_memory_report): Add argument.
6783 2019-10-29 Martin Liska <mliska@suse.cz>
6785 * ggc-common.c: Move Leak to the first column.
6787 2019-10-29 Martin Liska <mliska@suse.cz>
6789 * cgraphunit.c (symbol_table::compile): Remove argument
6790 for dump_memory_report.
6791 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6792 (compare_final): Remove in order to make report
6794 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6795 * mem-stats.h (mem_alloc_description::get_list):
6797 (mem_alloc_description::dump): Likewise here.
6798 * toplev.c (dump_memory_report): Remove final
6800 (finalize): Likewise.
6801 * toplev.h (dump_memory_report): Remove argument.
6803 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6805 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6806 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6807 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6808 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6811 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6813 * coretypes.h (string_int_pair): New typedef.
6814 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6815 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6816 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6818 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6820 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6821 (simulate_builtin_function_decl): Declare.
6822 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6823 (LANG_HOOKS_INITIALIZER): Include it.
6824 * langhooks.c (add_builtin_function_common): Rename to...
6825 (build_builtin_function): ...this. Add a location parameter and use
6826 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6828 (add_builtin_function): Update accordingly, passing the returned
6829 decl to the lang hook.
6830 (add_builtin_function_ext_scope): Likewise
6831 (simulate_builtin_function_decl): New function.
6833 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6835 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6836 example, use actual names of supported offload targets.
6839 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6841 2019-10-28 Martin Sebor <msebor@redhat.com>
6843 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6844 (handle_store): Pass argument to get_addr_stridx.
6846 2019-10-28 Martin Sebor <msebor@redhat.com>
6848 PR tree-optimization/92226
6849 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6850 the offset is in the open range outlined by SI's length.
6852 2019-10-28 Martin Sebor <msebor@redhat.com>
6855 * doc/cpp.texi (__has_builtin): Document.
6856 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6858 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6861 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6862 doubleword and low doubleword result of multiplication on
6865 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6866 pure qualifier to the built-in.
6867 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6869 (struct mips_builtin_description): Add is_pure flag.
6870 (mips_init_builtins): Mark built-in as pure if the flag in the
6871 corresponding mips_builtin_description struct is set.
6873 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6874 alternative which covers the floating-point input value. Also
6875 forbid the split of insert.d pattern for floating-point values.
6877 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
6879 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6880 * config/riscv/riscv-sr.c: New file.
6881 * config/riscv/riscv.c (riscv_reorg): New function.
6882 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6883 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6884 (riscv_remove_unneeded_save_restore_calls): Declare.
6885 * config/riscv/t-riscv (riscv-sr.o): New build rule.
6887 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6889 PR tree-optimization/92163
6890 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
6891 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
6892 before calling bitmap_set_bit.
6893 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
6894 delete_dead_or_redundant_assignment.
6895 (dse_dom_walker::dse_optimize_stmt): Likewise.
6896 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
6898 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6901 * tree-vect-stmts.c (vectorizable_condition): Support
6902 EXTRACT_LAST_REDUCTION with fully-masked loops.
6904 2019-10-28 Richard Biener <rguenther@suse.de>
6906 PR tree-optimization/92252
6907 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
6908 STMT_VINFO_REDUC_IDX when swapping operands.
6910 2019-10-28 Richard Biener <rguenther@suse.de>
6912 PR tree-optimization/92241
6913 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
6914 we failed to update the reduction index do not use the pattern
6915 stmts for the reduction chain.
6916 (vectorizable_reduction): When the reduction chain is corrupt,
6918 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
6919 fail to update the reduction chain.
6921 2019-10-28 Richard Biener <rguenther@suse.de>
6923 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
6924 STMT_VINFO_REDUC_IDX from the actual stmt.
6925 (vect_transform_reduction): Likewise.
6926 (vectorizable_reduction): Compute the reduction chain length,
6927 do not recompute the reduction operand index. Remove no longer
6928 necessary restriction for condition reduction chains.
6930 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6933 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
6934 condition for V2DImode.
6936 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
6938 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
6939 Remove %k operand modifier.
6940 (*vec_extractv2df_1_sse): Remove %q operand modifier.
6942 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
6944 PR rtl-optimization/92007
6945 * cfgcleanup.c (thread_jump): Add an assertion that we don't
6946 call it after reload if hot/cold partitioning has been done.
6947 (class pass_postreload_jump): Rename to
6948 pass_jump_after_combine.
6949 (make_pass_postreload_jump): Rename to
6950 make_pass_jump_after_combine.
6951 * passes.def(pass_postreload_jump): Move before reload, rename
6952 to pass_jump_after_combine.
6953 * tree-pass.h (make_pass_postreload_jump): Rename to
6954 make_pass_jump_after_combine.
6956 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
6959 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
6960 for missing EDGE_REF
6961 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
6963 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
6965 PR tree-optimization/88760
6966 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
6967 Enable -funroll-loops for -O2 and above.
6968 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
6969 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
6970 do not turn on web and rngreg implicitly, if the unroller is not
6973 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6975 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
6978 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
6980 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
6981 * cgraph.h (cgraph_node::rtl_info): Likewise.
6983 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
6985 * ipa-cp.c (propagate_constants_across_call): If args are not available
6986 just drop everything to varying.
6987 (find_aggregate_values_for_callers_subset): Watch for missing
6989 (find_more_scalar_values_for_callers_subs): Likewise.
6990 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
6991 update_jump_functions_after_inlining, propagate_controlled_uses):
6992 Watch for missing summaries.
6993 (ipa_propagate_indirect_call_infos): Remove summary after propagation
6995 (ipa_write_node_info): Watch for missing summaries.
6996 (ipa_read_edge_info): Create new ref.
6997 (ipa_edge_args_sum_t): Add remove.
6998 (IPA_EDGE_REF_GET_CREATE): New macro.
6999 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7001 (remap_edge_change_prob): Likewise.
7003 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7005 * ipa-inline-transform.c (inline_call): update function summaries
7006 after expanidng thunk.
7008 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7010 * ipa-icf.c (sem_function::merge): Update function summaries.
7011 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7013 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7015 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7016 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7017 operand already has scalar mode.
7018 (iptr): Remove SF/DF.
7020 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7023 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7024 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7027 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7029 * config/i386/sse.md
7030 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7031 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7032 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7033 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7034 <sse>_vmmaskcmp<mode>3):
7035 Change predicates from vector_operand to nonimmediate_operand,
7036 constraints xBm to xm, since scalar operations don't need
7037 memory address alignment.
7038 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7039 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7040 round_saeonly_nimm_predicate with
7041 round_saeonly_nimm_scalar_predicate.
7042 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7043 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7044 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7045 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7046 avx512f_vmfmadd_<mode>_mask3<round_name>,
7047 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7048 *avx512f_vmfmsub_<mode>_mask<round_name>,
7049 avx512f_vmfmsub_<mode>_mask3<round_name>,
7050 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7051 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7052 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7053 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7054 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7055 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7056 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7057 cvtusi2<ssescalarmodesuffix>32<round_name>,
7058 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7059 round_nimm_predicate with round_nimm_scalr_predicate.
7060 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7061 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7062 avx512er_vmrcp28<mode><round_saeonly_name>,
7063 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7064 ): Replace round_saeonly_nimm_predicate with
7065 round_saeonly_nimm_scalar_predicate.
7066 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7067 vector_operand with nonimmediate_operand.
7068 * config/i386/subst.md (round_scalar_nimm_predicate,
7069 round_saeonly_scalar_nimm_predicate): Replace
7070 vector_operand with nonimmediate_operand.
7072 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7075 * config/i386/i386.md (*rcpsf2_sse): Add
7076 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7077 (*rsqrtsf2_sse): Ditto.
7078 (*sqrt<mode>2_sse): Ditto.
7079 (sse4_1_round<mode>2): separate constraint vm, add
7080 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7081 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7083 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7085 (*sse_vmrsqrtv4sf2): Ditto.
7086 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7087 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7088 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7089 <iptr> pointer size modifier since vround support memory operand.
7091 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7094 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7097 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7098 Tobias Burnus <tobias@codesourcery.com>
7100 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7101 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7104 2019-10-25 Richard Biener <rguenther@suse.de>
7106 PR tree-optimization/92222
7107 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7108 (_slp_oprnd_info::second_pattern): Likewise.
7109 (_slp_oprnd_info::any_pattern): New.
7110 (vect_create_oprnd_info): Adjust.
7111 (vect_get_and_check_slp_defs): Compute whether any stmt is
7113 (vect_build_slp_tree_2): Avoid building up a node from scalars
7114 if any of the operand defs, not just the first, is in a pattern.
7116 2019-10-25 Richard Biener <rguenther@suse.de>
7118 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7119 swapping if we actually have to modify the IL on a shared stmt.
7120 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7121 because we no longer modify the IL.
7123 2019-10-25 Martin Liska <mliska@suse.cz>
7125 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7127 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7129 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7130 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7131 handled by vect_transform_reduction. Allow fully-masked loops
7132 to be used with reduction chains.
7133 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7134 operations in fully-masked loops.
7135 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7136 operations in fully-masked loops.
7138 2019-10-25 Richard Biener <rguenther@suse.de>
7140 * tree-vect-loop.c (vectorizable_reduction): Verify
7141 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7143 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7144 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7147 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7149 * gimplify.h (omp_construct_selector_matches): Declare.
7150 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7151 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7152 called function if needed for flag_openmp.
7153 (gimplify_scan_omp_clauses): Set ctx->code.
7154 (omp_construct_selector_matches): New function.
7155 * omp-general.h (omp_constructor_traits_to_codes,
7156 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7157 * omp-general.c (omp_constructor_traits_to_codes,
7158 omp_context_selector_matches, omp_resolve_declare_variant): New
7161 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7163 * config/rx/rx.c (rx_print_operand): Likewise.
7164 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7165 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7166 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7168 * genemit.c (emit_c_code): Likewise.
7169 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7171 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7173 * symbols-summary.h (fast_function_summary<T *, V>::release,
7174 fast_call_summary<T *, V>::release): Free m_vector.
7176 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7178 * cgraphunit.c (symbol_table::process_new_functions): Call
7179 ipa_free_size_summary.
7180 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7181 (devirtualization_time_bonus): Update.
7182 (ipcp_propagate_stage): Update.
7183 * ipa-fnsummary.c (ipa_size_summaries): New.
7184 (ipa_fn_summary_alloc): Alloc size summary.
7185 (dump_ipa_call_summary): Update.
7186 (ipa_dump_fn_summary): Update.
7187 (analyze_function_body): Update.
7188 (compute_fn_summary): Likewise.
7189 (ipa_get_stack_frame_offset): New function.
7190 (inline_update_callee_summaries): Do not update frame offsets.
7191 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7192 remove call and function summary.
7193 (ipa_update_overall_fn_summary): Update.
7194 (inline_read_section): Update.
7195 (ipa_fn_summary_write): Update.
7196 (ipa_free_fn_summary): Do not remove summaries.
7197 (ipa_free_size_summary): New.
7198 (release summary pass): Also run at WPA.
7199 * ipa-fnsummary.h (ipa_size_summary): Declare.
7200 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7201 estimated_self_stack_size.
7202 (ipa_size_summary_t): New type.
7203 (ipa_size_summaries): Declare.
7204 (ipa_free_size_summary): Declare.
7205 (ipa_get_stack_frame_offset): Declare.
7206 * ipa-icf.c (sem_function::merge): Update.
7207 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7208 (estimate_growth): Update.
7209 (growth_likely_positive): Update.
7210 (clone_inlined_nodes): Update.
7211 (inline_call): Update.
7212 * ipa-inline.c (caller_growth_limits): Update.
7213 (edge_badness): Update.
7214 (recursive_inlining): Update.
7215 (inline_small_functions): Update.
7216 (inline_to_all_callers_1): Update.
7217 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7219 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7221 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7222 (uavg<mode>3_ceil): ... This.
7223 (altivec_vavgs<VI_char>): Rename to...
7224 (avg<mode>3_ceil): ... This.
7225 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7226 VAVGUW, VAVGSW): Adjust.
7228 2019-10-24 Nathan Sidwell <nathan@acm.org>
7230 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7232 2019-10-24 Martin Liska <mliska@suse.cz>
7234 * symbol-summary.h (gt_pch_nx): Mark all functions
7235 with gcc_unreachable as we do not expect to be called.
7237 2019-10-24 Richard Biener <rguenther@suse.de>
7239 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7240 chains try harder with operand swapping and instead of
7241 putting a shifted chain into the reduction operands put
7242 a repetition of the final reduction op there as if we'd
7243 reassociate the expression.
7245 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7247 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7248 statics_not_read and statics_not_written to statics_read and
7249 statics_written respectively.
7250 (no_module_statics): New static var.
7251 (ipa_reference_get_not_read_global): Rename to ...
7252 (ipa_reference_get_read_global): ... this.
7253 (ipa_reference_get_not_written_global): Rename to ...
7254 (ipa_reference_get_written_global): ... this.
7255 (dump_static_vars_set_to_file): Dump no_module_statics.
7256 (copy_static_var_set): Add for propagation parameter.
7257 (ipa_init): Initialize no_module_statics.
7258 (ipa_ref_opt_summary_t::duplicate): Update.
7259 (ipa_ref_opt_summary_t::remove): Update.
7260 (propagate): Update.
7261 (write_node_summary_p): Look correctly for bitmap differences.
7262 (ipa_reference_write_optimization_summary): Update.
7263 (ipa_reference_read_optimization_summary): Update.
7265 (ipa_reference_get_not_read_global): Rename to ...
7266 (ipa_reference_get_read_global): ... this.
7267 (ipa_reference_get_not_written_global): Rename to ...
7268 (ipa_reference_get_written_global): ... this.
7269 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7270 (call_may_clobber_ref_p_1): Update.
7272 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7274 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7276 (msp430_hard_regno_nregs_with_padding): Remove.
7278 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7280 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7281 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7282 shift amount is between 1 and 4.
7283 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7286 2019-10-24 Richard Biener <rguenther@suse.de>
7288 PR tree-optimization/92205
7289 * tree-vect-loop.c (vectorizable_reduction): Restrict
7290 search for alternate vectype_in to lane-reducing patterns
7293 2019-10-24 Richard Biener <rguenther@suse.de>
7295 PR tree-optimization/92203
7296 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7297 Skip eliminating conversion stmts inserted by insertion.
7299 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7301 * config/s390/s390.c (s390_get_thread_pointer): Use
7302 gen_get_thread_pointer.
7303 (s390_expand_split_stack_prologue): Likewise.
7304 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7305 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7306 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7307 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7310 2019-10-24 Richard Biener <rguenther@suse.de>
7312 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7313 SLP discovery fails try to handle the reduction as part
7314 of SLP reduction discovery.
7316 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7318 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7320 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7321 attribute if it exists, rather than the insn size. If we use the
7322 insn size, adjust the size to remove the extra size that prefixed
7324 (rs6000_adjust_insn_length): New function.
7325 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7326 update the instruction sized if prefixed instructions are used.
7327 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7328 (non_prefixed_length attribute): Delete.
7329 (num_insns attribute): New insn attribute to return the number of
7331 (max_prefixed_insns attribute): New insn attribute to return the
7332 maximum number of prefixed instructions in an insn.
7333 (length attribute): Do not adjust for prefix instructions here,
7334 punt to ADJUST_INSN_LENGTH.
7335 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7336 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7337 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7338 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7339 max_prefixed_insns and num_insns.
7341 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7342 (movtd_64bit_nodm): Reformat.
7343 (mov<mode>_32bit): Reformat.
7344 (mov<mode>_softfloat): Reformat.
7345 (FMOVE128_GPR splitter): Reformat.
7346 (DIFD splitter): Reformat.
7347 (TI2 splitter): Reformat.
7348 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7349 bits of the offset for the memory address are non-zero, use PLWA
7350 if prefixed instructions are available.
7352 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7354 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7356 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7358 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7361 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7363 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7364 (cmp_symbol_files): New.
7365 (lto_output): Copy sections in file order.
7366 * lto-streamer.h (lto_file_decl_data): Add field order.
7368 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7370 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7371 * ipa-reference.c (reference_vars_map_t): new type.
7372 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7373 (ipa_reference_var_uid): Implement.
7374 (varpool_node_hooks): New static var.
7375 (varpool_removal_hook): New function.
7376 (is_improper): Do not check bitmap for id==-1
7377 (get_static_name): Update.
7378 (ipa_init): Initialize new datastructures.
7379 (analyze_function): Do not recompute ids.
7380 (propagate): Free reference_vars_to_consider.
7381 (stream_out_bitmap): Update.
7382 (ipa_reference_read_optimization_summary): Update.
7384 2019-10-23 qing zhao <qing.zhao@oracle.com>
7386 PR gcov-profile/91971
7387 * coverage.c (coverage_init): Mangle the full path of filename when
7388 filename is a absolute path.
7390 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7392 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7393 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7394 (msp430_has_hwmult): New.
7395 (msp430_output_labelref):
7396 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7397 * config/msp430/msp430.md (mulhisi3): Likewise.
7398 (umulhisi3): Likewise.
7399 (mulsidi3): Likewise.
7400 (umulsidi3): Likewise.
7402 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7405 * params.def (inline-heuristics-hint-percent): Set to 600.
7407 2019-10-23 Richard Biener <rguenther@suse.de>
7409 PR tree-optimization/65930
7410 * tree-vect-loop.c (check_reduction_path): Allow conversions
7411 that only change the sign.
7412 (vectorizable_reduction): Relax latch def stmts we handle further.
7414 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7417 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7418 (remove_unused_ivs): Use it instead of get_computation_at. When
7419 choosing best candidate, only consider candidates where
7420 get_debug_computation_at actually returns non-NULL.
7422 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7424 PR tree-optimization/92131
7425 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7426 range would be symbolic, drop to varying for any explicit overflow
7427 in the constant part or if neither range is a singleton.
7429 2019-10-23 Martin Liska <mliska@suse.cz>
7432 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7435 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7437 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7438 int_mode_for_mode rather than mode_for_int_vector for scalars.
7440 2019-10-23 Richard Biener <rguenther@suse.de>
7442 PR tree-optimization/92179
7443 * tree-vect-stmts.c (vectorizable_shift): For shift args
7444 that are all the same remove type restriction in the SLP case.
7445 Adjust SLP code to handle converting of the shift arg to
7446 only apply in case the modes are different.
7448 2019-10-23 Martin Liska <mliska@suse.cz>
7451 * ipa-inline.c (recursive_inlining): Do not print
7452 when curr->count is not initialized.
7454 2019-10-23 Richard Biener <rguenther@suse.de>
7456 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7457 op from scalars in case there's a constant operand in its
7460 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7462 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7463 against out of range max skip or log values.
7465 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7467 * cgraph.c (dump_graphviz): Change name to dump_name
7469 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7471 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7472 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7473 subtraction from a carry operation.
7475 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7477 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7479 2019-10-22 Richard Biener <rguenther@suse.de>
7481 PR tree-optimization/92173
7482 * tree-vect-loop.c (vectorizable_reduction): If
7483 vect_transform_reduction cannot handle code-generation try without
7484 the single-def-use-cycle optimization. Pass optab_vector to
7485 optab_for_tree_code to get vector shifts as that's what we'd
7488 2019-10-22 Michael Matz <matz@suse.de>
7491 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7492 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7493 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7495 2019-10-22 Richard Biener <rguenther@suse.de>
7497 PR tree-optimization/92173
7498 * tree-vect-loop.c (vectorizable_reduction): If
7499 vect_transform_reduction cannot handle code-generation try without
7500 the single-def-use-cycle optimization. Pass optab_vector to
7501 optab_for_tree_code to get vector shifts as that's what we'd
7504 2019-10-22 Martin Liska <mliska@suse.cz>
7506 * diagnostic-format-json.cc (json_from_expanded_location):
7507 Use json::integer_number.
7508 * gcov.c (output_intermediate_json_line): Use new
7509 json::integer_number.
7510 (output_json_intermediate_file): Likewise.
7511 * json.cc (number::print): Move to ...
7512 (float_number::print): ... this.
7513 (integer_number::print): New.
7514 (test_writing_numbers): Move to ...
7515 (test_writing_float_numbers): ... this.
7516 (test_writing_integer_numbers): New.
7517 (json_cc_tests): Register test_writing_integer_numbers.
7518 * json.h (class value): Add forward declaration
7519 for float_number and integer_number.
7520 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7521 (class number): Move to ...
7522 (class float_number): ... this.
7523 (class integer_number): New.
7524 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7525 Use json::integer_number.
7526 (optrecord_json_writer::location_to_json): Likewise.
7527 (optrecord_json_writer::profile_count_to_json): Likewise.
7528 (optrecord_json_writer::pass_to_json): Likewise.
7530 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7532 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7533 autodetected_vector_size rather than vector_size is zero.
7534 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7535 Set autodetected_vector_size immediately after calling
7536 vect_analyze_loop_2. Check for a fatal error before advancing
7539 2019-10-21 Jason Merrill <jason@redhat.com>
7541 * lock-and-run.sh: Check for process existence rather than timeout.
7543 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7545 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7546 widening multiplication.
7548 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7550 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7551 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7553 (subsi3_carryin_shift): Separate into register and constant controlled
7554 alternatives. Use shift_amount_operand for operand 4. Set shift
7555 attribute and simplify type attribute.
7556 (subsi3_carryin_shift_alt): Likewise.
7557 (rsbsi3_carryin_shift): Likewise.
7558 (rsbsi3_carryin_shift_alt): Likewise.
7559 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7560 and register controlled shifts into distinct alternatives.
7561 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7562 (andsi_not_shiftsi_si_scc): Likewise.
7563 (arm_cmpsi_negshiftsi_si): Likewise.
7564 (not_shiftsi): Remove redundant M constraint from alternative 1.
7565 (not_shiftsi_compare0): Likewise.
7566 (arm_cmpsi_insn): Remove redundant alternative 2.
7567 (cmpsi_shift_swp): Likewise.
7568 (sub_shiftsi): Likewise.
7569 (sub_shiftsi_compare0_scratch): Likewise.
7570 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7571 (thumb2_cmpsi_neg_shiftsi): Likewise.
7573 2019-10-21 Richard Biener <rguenther@suse.de>
7575 PR tree-optimization/92162
7576 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7577 STMT_VINFO_REDUC_IDX in reduc_info.
7578 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7580 2019-10-21 Richard Biener <rguenther@suse.de>
7582 * tree-vectorizer.h (_slp_tree::ops): New member.
7583 (SLP_TREE_SCALAR_OPS): New.
7584 (vect_get_slp_defs): Adjust prototype.
7585 * tree-vect-slp.c (vect_free_slp_tree): Release
7586 SLP_TREE_SCALAR_OPS.
7587 (vect_create_new_slp_node): Initialize it. New overload for
7588 initializing by an operands array.
7589 (_slp_oprnd_info::ops): New member.
7590 (vect_create_oprnd_info): Initialize it.
7591 (vect_free_oprnd_info): Release it.
7592 (vect_get_and_check_slp_defs): Populate the operands array.
7593 Do not swap operands in the IL when not necessary.
7594 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7595 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7596 swap operands in the operands array. Do not swap operands in
7598 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7599 (vect_gather_slp_loads): Fix.
7600 (vect_detect_hybrid_slp_stmts): Likewise.
7601 (vect_slp_analyze_node_operations_1): Search for a internal
7602 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7603 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7604 the def-type push/pop dance.
7605 (vect_get_constant_vectors): Compute number_of_vectors here.
7606 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7607 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7608 (vect_get_slp_defs): Simplify greatly.
7609 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7610 (vect_transform_reduction): Likewise.
7611 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7612 (vectorizable_call): Likewise.
7613 (vectorizable_operation): Likewise.
7614 (vectorizable_load): Likewise.
7615 (vectorizable_condition): Likewise.
7616 (vectorizable_comparison): Likewise.
7618 2019-10-21 Richard Biener <rguenther@suse.de>
7620 PR tree-optimization/92161
7621 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7624 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7626 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7627 (aarch64_rndr): New define_insn.
7628 (aarch64_rndrrs): Likewise.
7629 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7630 (TARGET_RNG): Likewise.
7631 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7633 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7634 Add fourth argument in prototype.
7635 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7636 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7637 (aarch64_init_rng_builtins): Define.
7638 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7639 (aarch64_expand_rng_builtin): Define.
7640 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7642 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7643 __ARM_FEATURE_RNG when TARGET_RNG.
7644 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7646 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7648 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7649 alignment is more restrictive.
7651 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7653 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7654 (vect_update_max_nunits): Update comment.
7655 (current_vector_size): Delete.
7656 * tree-vect-stmts.c (current_vector_size): Likewise.
7657 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7658 of current_vector_size.
7659 (get_mask_type_for_scalar_type): Likewise.
7660 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7661 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7662 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7663 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7664 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7665 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7667 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7669 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7670 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7671 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7674 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7676 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7677 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7678 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7680 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7682 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7684 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7686 (vect_set_loop_condition_masked): Update call accordingly.
7688 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7690 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7691 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7692 (simple_integer_narrowing): Update call accordingly.
7693 (vectorizable_conversion): Likewise.
7695 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7697 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7698 (vectorizable_call): Update call accordingly.
7700 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7702 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7703 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7704 (duplicate_and_interleave): Update call accordingly.
7705 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7707 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7709 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7710 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7711 (vect_get_constant_vectors): Update call accordingly.
7712 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7714 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7716 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7717 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7718 (vect_prologue_cost_for_slp_op): Update call accordingly.
7719 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7720 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7721 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7722 (get_mask_type_for_scalar_type): Likewise.
7723 (vect_get_vector_types_for_stmt): Likewise.
7724 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7725 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7726 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7727 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7728 (vect_split_statement, vect_convert_input): Likewise.
7729 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7730 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7731 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7732 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7733 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7734 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7735 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7736 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7737 (vect_recog_mask_conversion_pattern): Likewise.
7738 (vect_add_conversion_to_pattern): Likewise.
7739 (vect_recog_gather_scatter_pattern): Likewise.
7740 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7741 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7743 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7745 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7746 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7747 (vect_check_load_store_mask): Update call accordingly.
7748 (vect_get_mask_type_for_stmt): Likewise.
7749 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7750 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7751 (vect_convert_mask_for_vectype): Likewise.
7753 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7755 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7757 (vect_recog_dot_prod_pattern): Update call accordingly.
7758 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7759 (vect_recog_widen_sum_pattern): Likewise.
7761 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7763 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7764 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7765 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7768 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7770 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7771 get_vectype_for_scalar_type_and_size instead of
7772 get_vectype_for_scalar_type.
7774 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7776 * common.opt (-fcommon): Fix description.
7778 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7780 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7781 * config/i386/i386.c (ix86_pre_reload_split): New function.
7782 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7783 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7784 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7785 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7786 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7787 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7788 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7789 *<shift_insn><dwi>3_doubleword_mask,
7790 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7791 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7792 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7793 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7794 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7795 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7796 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7797 *avx2_<code>v8qiv8si2<mask_name>_2,
7798 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7799 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7800 *avx512f_<code>v8qiv8di2<mask_name>_2,
7801 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7802 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7803 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7804 sse4_2_pcmpistr): Likewise.
7806 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7808 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7809 now defaults to https.
7811 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7813 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7814 skip non-zero array accesses.
7816 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7818 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7819 and return a boolean success value. Move the allocation and
7820 initialization of the bb_vec_info to...
7821 (vect_slp_bb_region): ...here. Update call accordingly.
7822 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7823 than in vect_slp_analyze_bb_1.
7825 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7827 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7828 when processing the given datarefs for the first time and
7829 check_datarefs subsequently.
7830 (vect_slp_bb_region): New function, split out of...
7831 (vect_slp_bb): ...here. Don't recompute the region bounds and
7832 dataref sets when retrying with a different vector size.
7834 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7835 Uroš Bizjak <ubizjak@gmail.com>
7838 * config/i386/predicates.md (int_nonimmediate_operand): New special
7840 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7841 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7842 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7843 define_insn_and_split patterns.
7845 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7847 * config/rs6000/rs6000.md: Delete out--of-date comment about
7848 special-casing integer loads.
7850 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7852 * escaped_string.h (escaped_string): New header.
7853 * tree.c (escaped_string): Remove escaped_string class.
7855 2019-10-18 Martin Sebor <msebor@redhat.com>
7857 PR tree-optimization/92157
7858 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7859 compute_string_length to return a negative result.
7861 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7863 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7864 (negvsi3, negvdi3): Delete.
7865 (negdi2_compare): Delete.
7867 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7869 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7871 (subdi3_compare1): Delete pattern.
7872 (subvsi3_borrow): New insn pattern.
7873 (subvsi3_borrow_imm): Likewise.
7875 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7877 * config/arm/arm.md (subv<mode>4): Delete.
7878 (subvdi4): New expander pattern.
7879 (subvsi4): Likewise. Handle some immediate values.
7880 (subvsi3_intmin): New insn pattern.
7881 (subvsi3): Likewise.
7882 (subvsi3_imm1): Likewise.
7883 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
7886 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7888 * config/arm/arm.md (usubvdi4): Allow registers or integers for
7889 incoming operands. Early split the calculation into SImode
7891 (usubvsi3_borrow): New insn pattern.
7892 (usubvsi3_borrow_imm): Likewise.
7894 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7896 * config/arm/arm.md (usubv<mode>4): Delete expansion.
7897 (usubvsi4): New pattern. Allow some immediate values for inputs.
7898 (usubvdi4): New pattern.
7900 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7902 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
7903 or second operand of the PLUS inside a DImode equality test to be
7904 sign-extend when selecting CC_Vmode.
7905 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
7907 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
7909 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
7910 (addsi3_cin_vout_0): Likewise.
7911 (adddi3_compareV): Delete.
7913 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7915 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
7916 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
7917 to transform this back into the summation version when that leads
7920 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7922 * config/arm/arm.md (addv<mode>4): Delete.
7923 (addvsi4): New pattern. Handle immediate values that the architecture
7925 (addvdi4): New pattern.
7926 (addsi3_compareV): Rename to ...
7927 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
7928 and use COMPARE rather than NE.
7929 (addsi3_compareV_imm): New pattern.
7930 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
7931 a signed-overflow check.
7933 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7935 * config/arm/arm-modes.def (CC_ADC): New CC mode.
7936 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
7938 (maybe_get_arm_condition_code): Handle CC_ADCmode.
7939 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
7941 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
7943 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
7944 (addsi3_cin_cout_imm_insn): Likewise.
7945 (adddi3_compareC): Delete insn.
7946 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
7948 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7950 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
7951 * (uaddv<mode>4): Delete expansion pattern.
7952 (uaddvsi4): New pattern.
7953 (uaddvdi4): Likewise.
7954 (addsi3_compareC): Delete pattern, change callers to use
7956 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
7957 reduce the number of alternatives and re-work type attribute handling.
7958 (addsi3_compare_op2): Clean up constraints to reduce the number of
7959 alternatives and re-work type attribute handling.
7960 (compare_addsi2_op0): Likewise.
7961 (compare_addsi2_op1): Likewise.
7963 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7965 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
7966 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
7967 for DImode operands.
7968 (arm_gen_dicompare_reg): Remove unreachable expansion code.
7969 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
7971 * config/arm/arm.md (arm_cmpdi_insn): Delete.
7972 (arm_cmpdi_unsigned): Delete.
7974 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7976 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
7977 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
7978 unchanged only if that will be cheaper.
7979 (arm_select_cc_mode): Recognize a swapped comparison that will
7980 be regenerated using RSBS or RSCS. Relax restriction on selecting
7982 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
7984 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
7986 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
7988 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
7989 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
7991 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7993 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
7994 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
7996 (arm_gen_dicompare_reg): New code to early expand the sub-operations
7997 of EQ, NE, LT, GE, LTU and GEU.
7998 * config/arm/iterators.md (CC_EXTEND): New code attribute.
7999 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8000 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8001 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8002 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8004 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8006 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8008 (cstoredi4): Similarly, but for operand 3.
8009 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8010 canonicalization of unsigned compares with a constant on Arm.
8011 Prefer using const+1 and adjusting the comparison over swapping the
8012 operands whenever the original constant was not valid.
8013 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8015 (arm_validize_comparison): Do not force invalid DImode operands to
8018 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8020 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8021 return CC_Zmode if comparing against a constant where one word is
8023 (arm_gen_compare_reg): Split DImode handling to ...
8024 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8025 against simple constants.
8026 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8028 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8030 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8031 (rsbsi3_carryin_shift_alt): Likewise.
8033 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8035 * config/arm/arm.md (negscc_borrow): New pattern.
8036 (mov_negscc): Don't split if the insn would match negscc_borrow.
8037 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8038 (thumb2_mov_negscc_strict_it): Likewise.
8040 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8042 * config/arm/arm.c (arm_insn_cost): New function.
8043 (TARGET_INSN_COST): Override default definition.
8045 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8047 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8050 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8052 * config/arm/arm.c (strip_carry_operation): New function.
8053 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8056 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8058 * config/arm/predicates.md (arm_carry_operation): New special
8060 * config/arm/iterators.md (LTUGEU): Delete iterator.
8061 (cnb): Delete code attribute.
8062 (optab): Delete ltu and geu elements.
8063 * config/arm/arm.md (addsi3_carryin): Renamed from
8064 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8065 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8066 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8067 (addsi3_carryin_clobercc): Similarly.
8068 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8071 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8073 * config/arm/arm.md (arm_subdi3): Delete insn.
8074 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8076 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8078 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8079 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8080 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8082 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8083 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8085 (subdi3): Rewrite to early-expand the sub-operations.
8086 (rsb_im_compare): New pattern.
8088 (negdi2_insn): Delete.
8089 (arm_negsi2): Correct type attribute to alu_imm.
8090 (negsi2_0compare): New insn pattern.
8091 (negsi2_carryin): New insn pattern.
8093 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8095 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8098 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8100 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8101 to match canonical form.
8103 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8105 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8106 (extend<mode>di2): Likewise.
8108 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8110 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8111 * config/arm/arm.c (arm_decompose_di_binop): New function.
8112 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8113 If not generating Thumb-1 code, decompose the operation into 32-bit
8115 * add0si_carryin_<optab>: New pattern.
8117 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8119 * arm.md (adddi3): Only accept register operands.
8120 (arm_adddi3): Convert to simple insn with no split. Do not accept
8122 (adddi_sesidi_di): Delete patern.
8123 (adddi_zesidi_di): Likewise.
8124 (uaddv<mode>4): Use LTU as condition for branch.
8125 (adddi3_compareV): Convert to simple insn with no split.
8126 (addsi3_compareV_upper): Delete pattern.
8127 (adddi3_compareC): Convert to simple insn with no split. Correct
8128 flags setting expression.
8129 (addsi3_compareC_upper): Delete pattern.
8130 (addsi3_compareC): Correct flags setting expression.
8131 (subdi3_compare1): Convert to simple insn with no split.
8132 (subsi3_carryin_compare): Delete pattern.
8133 (arm_subdi3): Convert to simple insn with no split.
8134 (subdi_zesidi): Delete pattern.
8135 (subdi_di_sesidi): Delete pattern.
8136 (subdi_zesidi_di): Delete pattern.
8137 (subdi_sesidi_di): Delete pattern.
8138 (subdi_zesidi_zesidi): Delete pattern.
8139 (negvdi3): Use s_register_operand.
8140 (negdi2_compare): Convert to simple insn with no split.
8141 (negdi2_insn): Likewise.
8142 (negsi2_carryin_compare): Delete pattern.
8143 (negdi_zero_extendsidi): Delete pattern.
8144 (arm_cmpdi_insn): Convert to simple insn with no split.
8145 (negdi2): Don't call gen_negdi2_neon.
8146 * config/arm/neon.md (adddi3_neon): Delete pattern.
8147 (subdi3_neon): Delete pattern.
8148 (negdi2_neon): Delete pattern.
8149 (splits for negdi2_neon): Delete splits.
8151 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8154 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8157 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8159 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8160 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8161 new multilib variants and new mappings.
8163 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8166 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8168 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8169 Richard Sandiford <richard.sandiford@arm.com>
8172 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8173 and define hashmap traits for it.
8174 (loop_vec_info::scalar_cond_masked_set): New member.
8175 (vect_record_loop_mask): Adjust prototype.
8176 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8178 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8179 vect_record_loop_mask.
8180 (vectorizable_live_operation): Likewise.
8181 (vect_record_loop_mask): New param scalar_mask. Add entry
8182 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8183 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8184 Pass it as last arg to vect_record_loop_mask.
8185 (vectorizable_call): Pass scalar_mask as last arg to
8186 vect_record_loop_mask.
8187 (vectorizable_store): Likewise.
8188 (vectorizable_load): Likewise.
8189 (vectorizable_condition): Check if another part of vectorized code
8190 applies loop_mask to condition or to it's inverse, and if yes,
8191 apply loop_mask to result of vector comparison.
8193 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8195 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8197 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8199 PR tree-optimization/92056
8200 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8201 before calling compute_builtin_object_size.
8203 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8206 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8207 (movdi_low_st): Delete.
8208 * config/rs6000/rs6000.c
8209 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8210 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8211 * config/rs6000/rs6000.md (movsi_low): Delete.
8213 2019-10-17 Jason Merrill <jason@redhat.com>
8215 * gimplify.h (get_initialized_tmp_var): Add default argument to
8217 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8218 NULL post_p argument.
8219 * targhooks (std_gimplify_va_arg_expr): Likewise.
8221 2019-10-17 Richard Biener <rguenther@suse.de>
8223 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8224 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8225 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8226 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8227 * tree-vect-loop.c (vect_is_simple_reduction): Set
8228 STMT_VINFO_REDUC_CODE.
8229 (vectorizable_reduction): Remove dead and redundant code, use
8230 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8232 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8234 Fix breakage introduced by r276985.
8236 * config/avr/avr.c (avr_option_override): Remove set of
8237 PARAM_ALLOW_STORE_DATA_RACES.
8238 * common/config/avr/avr-common.c (avr_option_optimization_table)
8239 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8241 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8243 * config/i386/i386.h (processor_costs): Add clear_ratio.
8244 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8245 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8246 of 6 and move_ratio in all cost models.
8248 2019-10-17 Richard Biener <rguenther@suse.de>
8250 * tree-vect-loop.c (check_reduction_path): Compute reduction
8252 (vect_is_simple_reduction): Remove special-case of single-stmt
8253 reduction path detection.
8255 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8257 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8259 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8261 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8262 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8263 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8264 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8265 New combine patterns.
8266 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8268 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8270 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8272 * tree-vrp.c (value_range_base::dump): Display +INF for both
8273 pointers and integers when appropriate.
8275 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8277 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8278 when to use versioning threshold.
8280 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8282 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8283 outlined code from ...
8284 (vect_analyze_loop_2): ... here.
8286 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8288 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8289 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8290 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8292 2019-10-17 Richard Biener <rguenther@suse.de>
8294 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8295 (vect_is_simple_reduction): Move all validity checks ...
8296 (vectorizable_reduction): ... here. Compute whether we
8297 need a fold-left reduction here.
8298 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8299 both overloads, check needs_fold_left_reduction_p directly.
8300 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8302 2019-10-17 Richard Biener <rguenther@suse.de>
8304 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8305 TARGET_MEM_REF creation.
8307 2019-10-17 Richard Biener <rguenther@suse.de>
8309 PR tree-optimization/92129
8310 * tree-vect-loop.c (vectorizable_reduction): Also fail
8311 on GIMPLE_SINGLE_RHS.
8313 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8315 PR tree-optimization/92056
8316 * tree-object-size.c (cond_expr_object_size): Return early if then_
8317 processing resulted in unknown size.
8319 PR tree-optimization/92115
8320 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8321 temporary if it could trap.
8323 2019-10-17 Richard Biener <rguenther@suse.de>
8326 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8327 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8329 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8331 * tree-ssa-strlen.c (maybe_invalidate): Use
8332 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8334 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8335 Jim Wilson <jimw@sifive.com>
8337 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8338 regs to SIBCALL_REGS.
8339 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8340 passing regs to SIBCALL_REGS.
8342 2019-10-16 Martin Sebor <msebor@redhat.com>
8344 PR tree-optimization/83821
8345 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8346 the length of a string when available.
8347 (handle_builtin_memset) Add argument.
8348 (handle_store, strlen_check_and_optimize_call): Same.
8349 (check_and_optimize_stmt): Same. Pass it to callees.
8351 2019-10-16 Martin Sebor <msebor@redhat.com>
8353 PR tree-optimization/91996
8354 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8356 (compare_nonzero_chars): Add an overload.
8357 (count_nonzero_bytes): Add an argument. Call overload above.
8358 Handle non-constant lengths in some range.
8359 (handle_store): Add an argument.
8360 (check_and_optimize_stmt): Pass an argument to handle_store.
8362 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8364 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8366 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8368 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8369 operands which correspond to the same input-output register to
8370 have the same pseudo assigned to them.
8372 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8374 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8376 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8378 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8379 Apply reasonable limit to symbol offsets.
8381 2019-10-16 Richard Biener <rguenther@suse.de>
8383 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8384 (vect_is_simple_reduction): Delay checking to
8385 vectorizable_reduction and relax the checking.
8386 (vectorizable_reduction): Check we have a simple use. Check
8387 for bogus condition reductions.
8388 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8389 are looking at the last stmt in a pattern sequence when
8390 filling in backedge PHI values.
8392 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8393 Jiufu Guo <guojiufu@linux.ibm.com>
8396 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8397 the callee explicitly disables some isa_flags the caller is using.
8399 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8401 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8403 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8405 * genmodes.c (mode_data::order): New field.
8406 (blank_mode): Update accordingly.
8407 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8408 (make_vector_modes): Likewise.
8409 (VECTOR_MODES): Update use accordingly.
8410 (cmp_modes): Sort by the new order field ahead of sorting by size.
8411 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8412 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8413 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8414 (aarch64_classify_vector_mode): Handle the new partial modes.
8415 (aarch64_vl_bytes): New function.
8416 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8417 when counting the number of registers in an SVE mode.
8418 (aarch64_class_max_nregs): Likewise.
8419 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8421 (aarch64_classify_address): Treat partial vectors analogously
8423 (aarch64_print_address_internal): Consolidate the printing of
8424 MUL VL addresses, using aarch64_vl_bytes as the number of
8425 bytes represented by "VL".
8426 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8428 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8430 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8431 rather than known_lt when choosing frame layouts.
8433 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8435 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8436 that all the adjustments add up to the full frame size.
8437 Use crtl->outgoing_args_size directly as the final adjustment
8440 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8442 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8443 "frame" reference instead of always referring directly to
8444 "cfun->machine->frame".
8446 2019-10-16 Richard Biener <rguenther@suse.de>
8448 PR tree-optimization/92119
8449 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8450 against missing bswap lhs.
8452 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8455 * poly-int.h (constant_lower_bound_with_limit): New function.
8456 (constant_upper_bound_with_limit): Likewise.
8457 * doc/poly-int.texi: Document them.
8458 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8459 into the worst-case INTEGER_CST bounds.
8461 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8464 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8465 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8466 * ipa-predicat.h (struct expr_eval_op): New struct.
8467 (expr_eval_ops): New typedef.
8468 (struct condition): Add type and param_ops fields, remove size field.
8469 (add_condition): Replace size parameter with type parameter, add
8470 param_ops parameter.
8471 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8472 (predicate::add_clause): Add comparisons on type and param_ops.
8473 (dump_condition): Add debug dump for param_ops.
8474 (remap_after_inlining): Adjust call arguments to add_condition.
8475 (add_condition): Replace size parameter with type parameter, add
8476 param_ops parameter. Unshare constant value used in conditions.
8477 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8478 parameter expressions using param_ops.
8479 (decompose_param_expr): New function.
8480 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8481 to replace call to unmodified_parm_or_parm_agg_item.
8482 (set_switch_stmt_execution_predicate): Likewise.
8483 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8485 (inline_read_section): Read param_ops from summary stream.
8486 (ipa_fn_summary_write): Write param_ops to summary stream.
8488 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8490 PR rtl-optimization/92107
8491 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8494 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8496 * config/darwin.c: Update description of fix and continue.
8498 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8500 * config/darwin.c (darwin_binds_local_p): Update to call
8501 default_binds_local_p_3 () directly. amend comments.
8503 2019-10-15 Richard Biener <rguenther@suse.de>
8505 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8506 (tree_is_indexable): Use it.
8507 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8508 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8509 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8511 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8513 * config/msp430/msp430.md (zero_extendqipsi2): New.
8514 (zero_extendqisi2): Optimize case where src register and base dst
8515 register are the same.
8516 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8517 (zero_extendpsisi2): Optimize r->m case.
8518 Add unnamed insn patterns to catch insns combine searches for when
8519 optimizing pointer manipulation.
8521 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8523 * config/msp430/msp430.md: Group zero_extend* insns together.
8525 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8527 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8529 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8531 (msp430_subreg): Likewise.
8532 (msp430_split_addsi): Likewise.
8533 (msp430_print_operand_addr): Likewise.
8534 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8535 (USE_STORE_POST_INCREMENT): Define.
8536 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8537 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8538 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8539 (msp430_general_dst_operand): New.
8540 (msp430_general_dst_nonv_operand): New.
8541 (msp430_nonsubreg_operand): Remove.
8542 (msp430_nonsubreg_dst_operand): New.
8543 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8544 of defunct msp430_nonsubreg_operand.
8545 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8547 2019-10-15 Richard Biener <rguenther@suse.de>
8549 PR tree-optimization/91929
8550 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8551 (get_or_alloc_expr_for_name): Initialize it.
8552 (get_or_alloc_expr_for_constant): Likewise.
8553 (phi_translate_1): Copy it.
8554 (create_expression_by_pieces): Use the original location
8555 of the expression for the inserted stmt.
8556 (compute_avail): Record the location of the stmt for the
8557 expressions created.
8559 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8561 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8562 before using tree_to_uhwi.
8564 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8566 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8568 2019-10-15 Richard Biener <rguenther@suse.de>
8570 PR tree-optimization/92094
8571 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8572 do not adjust the reduction definition def type.
8573 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8574 defines the latch argument of the PHI.
8576 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8579 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8580 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8581 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8582 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8583 _mm_maskz_roundscale_round_sd): New intrinsics.
8584 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8585 __builtin_ia32_rndscales?_mask_round builtins instead of
8586 __builtin_ia32_rndscales?_round.
8587 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8588 __builtin_ia32_rndscalesd_round): Remove.
8589 (__builtin_ia32_rndscaless_mask_round,
8590 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8591 * config/i386/sse.md
8592 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8593 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8594 ... this, adjust and add subst atrributes to make it maskable.
8596 2019-10-15 Richard Biener <rguenther@suse.de>
8599 * common.opt (fallow-store-data-races): New.
8600 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8601 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8602 * doc/invoke.texi (fallow-store-data-races): Document.
8603 (--param allow-store-data-races): Remove docs.
8604 * opts.c (default_options_table): Enable -fallow-store-data-races
8606 (default_options_optimization): Do not enable --param
8607 allow-store-data-races at -Ofast.
8608 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8609 instead of PARAM_ALLOW_STORE_DATA_RACES.
8610 * tree-ssa-loop-im.c (execute_sm): Likewise.
8612 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8614 PR tree-optimization/92085
8615 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8616 instead of calling it unconditionally after
8617 delete_dead_or_redundant_assignment and fix indentation.
8619 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8621 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8623 (*fmsub<SDF:mode>4): Likewise.
8624 *fnmsub<SDF:mode>4): Likewise.
8625 (*fnmadd<SDF:mode>4): Likewise.
8627 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8629 * doc/tree-ssa.texi: Update renamed macro name.
8631 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8633 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8636 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8638 * config/darwin.c: Use unsigned ints for the picbase label
8639 counters, initialise the vars explicitly.
8640 (update_pic_label_number_if_needed): Move a variable declaration
8641 to where it's needed.
8642 (machopic_output_function_base_name): Use a more strict checking
8643 assert, and and unsigned int for the picbase label counter.
8644 (machopic_get_function_picbase): Likewise.
8646 2019-10-14 Richard Biener <rguenther@suse.de>
8649 * dse.c (scan_insn): Use param max_active_local_stores.
8650 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8651 based on optimization level.
8652 * loop-invariant.c (move_loop_invariants): Adjust
8653 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8654 * opts.c (default_options_optimization): Do not adjust
8655 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8656 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8658 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8660 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8662 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8664 * config/arm/arm.c (arm_option_override): Don't override sched
8667 2019-10-14 Richard Biener <rguenther@suse.de>
8669 PR tree-optimization/92069
8670 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8671 cycles do not set vect_nested_cycle on the latch definition.
8673 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8675 * function-abi.h (expr_callee_abi): Declare.
8676 * function-abi.cc (expr_callee_abi): New function.
8678 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8680 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8682 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8683 non-zero being represented as [1,MAX].
8685 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8687 * tree-sra.c (dump_access): Add missing braces.
8689 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8691 * config/darwin.c (machopic_indirection_name): Rework the
8692 function to emit linker-visible symbols only for indirections
8693 in the data section. Clean up the code and update comments.
8695 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8697 * config/darwin.c (machopic_indirect_data_reference): Remove
8700 2019-10-13 Nathan Sidwell <nathan@acm.org>
8702 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8704 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8706 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8709 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8711 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8712 so non-virutal are before virutals.
8713 (output_function): Avoid body modifications.
8715 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8717 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8718 %r22. Load function address before global pointer.
8719 (pa_attr_length_indirect_call): Adjust length of inline versions of
8721 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8722 before normal cases. Update inline $$dyncall sequences to preserve
8723 function descriptor address in register %r22.
8724 (TRAMPOLINE_CODE_SIZE): Adjust.
8725 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8726 register %r22 contains trampoline address.
8727 (pa_trampoline_init): Adjust offsets.
8728 (pa_trampoline_adjust_address): Likewise.
8729 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8731 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8734 * config/darwin.c (machopic_indirection): New field to flag
8735 non-lazy-symbol-pointers in the data section.
8736 (machopic_indirection_name): Compute if an indirection should
8737 appear in the data section.
8738 (machopic_output_data_section_indirection): New callback split
8739 from machopic_output_indirection.
8740 (machopic_output_stub_indirection): Likewise.
8741 (machopic_output_indirection): Retain the code for non-lazy
8742 symbol pointers in their regular section.
8743 (machopic_finish): Use the new callbacks to order the indirection
8746 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8748 * config/darwin-protos.h (machopic_finish): Delete.
8749 * config/darwin.c (machopic_finish): Make static.
8751 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8753 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8754 sections when building kernel extension code.
8756 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8758 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8761 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8763 * config/pa/pa.c (pa_option_override): Remove trailing comma
8766 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8769 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8770 <case VEC_COND_EXPR>: Return false with *handled = false.
8771 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8772 recursing on the first operand.
8773 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8774 instead of tree_could_trap_p.
8775 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8777 2019-10-11 Jim Wilson <jimw@sifive.com>
8779 PR rtl-optimization/91860
8780 * combine.c (subst): If new_rtx is a constant, also check for
8781 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8783 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8785 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8786 INTVAL when calling store_bit_field.
8788 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8790 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8793 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8795 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8796 vectorizable_live_operation.
8797 (vectorizable_live_operation): Adjust parameters.
8798 * tree-vect-stmts.c (vect_init_vector,
8799 vect_gen_widened_results_half): Fix typo in function comment.
8800 (can_vectorize_live_stmts): Adjust function comment.
8801 Adjust parameters. Adjust call to vectorizable_live_operation.
8802 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8803 (vect_transform_stmt): Adjust function comment. Adjust call to
8804 can_vectorize_live_stmts.
8805 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8807 2019-10-11 Richard Biener <rguenther@suse.de>
8809 PR tree-optimization/90883
8810 PR tree-optimization/91091
8811 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8812 alias-sets both for recording VN table entries and continuing
8813 walking after translating through copies. Handle same-sized
8814 reads from SSA names by returning the plain SSA name.
8815 (eliminate_dom_walker::eliminate_stmt): Properly handle
8816 non-size precision stores in redundant store elimination.
8818 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8820 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8821 (ggc_collect): Dump later to not interfere with release_page dump.
8822 (ggc_trim): New function.
8823 * ggc-none.c (ggc_trim): New.
8824 * ggc.h (ggc_trim): Declare.
8826 2019-10-11 Richard Biener <rguenther@suse.de>
8828 PR tree-optimization/92066
8829 PR tree-optimization/92046
8830 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8831 Fix bogus cost model check.
8833 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8835 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8836 (LANG_HOOKS_DECLS): Add it.
8837 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8838 update comment for omp_is_optional_argument.
8839 * omp-general.c (omp_is_allocatable_or_ptr): New.
8840 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8841 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8842 Fortran's optional arguments and allocatable/pointer scalars
8843 with use_device_addr.
8845 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8848 * config/s390/2827.md: Add new opcodes.
8849 * config/s390/2964.md: Likewise.
8850 * config/s390/3906.md: Likewise.
8851 * config/s390/8561.md: Likewise.
8852 * config/s390/s390-builtins.def (s390_vfchesb): Use
8853 the new vec_cmpgev4sf_quiet_nocc.
8854 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8855 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8856 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8857 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8858 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8859 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8860 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8861 * config/s390/s390-modes.def (CCSFPS): New mode.
8862 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8863 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8864 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8865 (s390_expand_vec_compare): Use non-signaling patterns where
8867 (s390_reverse_condition): Support CCSFPS.
8868 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8869 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8870 (asm_fcmp_op): Likewise.
8871 (*smaxv2df3_vx): Use pattern for quiet comparison.
8872 (*sminv2df3_vx): Likewise.
8873 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8874 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8875 (vec_cmpgt<mode>_quiet_nocc): Likewise.
8876 (vec_cmplt<mode>_quiet_nocc): New expander.
8877 (vec_cmpge<mode>_quiet_nocc): New pattern.
8878 (vec_cmple<mode>_quiet_nocc): New expander.
8879 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8880 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8881 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8882 (*vec_cmpge<mode>_signaling_nocc): Likewise.
8883 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8884 (vec_cmpungt<mode>): New expander.
8885 (vec_cmpunge<mode>): Likewise.
8886 (vec_cmpuneq<mode>): Use quiet patterns.
8887 (vec_cmpltgt<mode>): Allow only on z14+.
8888 (vec_cmpordered<mode>): Use quiet patterns.
8889 (vec_cmpunordered<mode>): Likewise.
8890 (VEC_CMP_EXPAND): Add ungt and unge.
8892 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8894 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
8896 * lto-streamer-out.c: Include tree-dfa.h.
8897 (output_cfg): Do not use cfun.
8898 (lto_prepare_function_for_streaming): New.
8899 (output_function): Do not push cfun; do not initialize loop optimizer.
8900 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
8901 * passes.c (ipa_write_summaries): Use it.
8902 (ipa_write_optimization_summaries): Do not modify bodies.
8903 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
8904 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
8905 * tree-ssa-dse.c (pass_dse::execute): Update use of
8906 renumber_gimple_stmt_uids.
8907 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
8909 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
8911 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8912 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
8914 2019-10-10 Joseph Myers <joseph@codesourcery.com>
8916 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
8918 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
8919 Also define DFP macros for these conditions.
8920 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
8921 DEC128_SUBNORMAL_MIN): Do not define.
8922 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
8923 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
8925 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
8926 Sandra Loosemore <sandra@codesourcery.com>
8929 * doc/lto.texi (IPA): Reference to the IPA passes.
8930 * doc/passes.texi (Pass manager): Add node IPA passes and
8931 description for each IPA pass.
8933 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8935 * ipa-reference.c: Do not include splay-tree.h
8936 (reference_vars_to_consider): Turn to hash map.
8937 (get_static_name, ipa_init, analyze_function, propagate,
8938 stream_out_bitmap, ipa_reference_write_optimization_summary,
8939 ipa_reference_write_optimization_summary): Update.
8941 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
8943 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
8945 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
8947 * config/darwin.c: Lookup Objective C metadata and force indirection
8950 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
8952 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
8954 (mem_operand_gpr): Add check for prefixed addresses.
8955 (mem_operand_ds_form): Add check for prefixed addresses.
8956 (rs6000_legitimate_offset_address_p): If we support prefixed
8957 addresses, check for a 34-bit offset instead of 16-bit.
8958 (rs6000_legitimate_address_p): Add check for prefixed addresses.
8959 Do not allow load/store with update if the address is prefixed.
8960 (rs6000_mode_dependent_address): If we support prefixed
8961 addresses, check for a 34-bit offset instead of 16-bit.
8963 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
8966 * config/s390/vector.md (vcond_comparison_operator): New
8968 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
8970 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8973 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
8975 * configure.ac (--with-documentation-root-url): New option.
8976 * configure: Regenerate.
8977 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
8978 option URL, add it as a new string field of the diagnostic option.
8979 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
8980 (print_option_information): If get_option_url is non-NULL, call
8981 it, and if the result is non-NULL, potentially emit an escape
8982 sequence to markup the option text with the resulting URL.
8983 * diagnostic.h (diagnostic_context::get_option_url): New callback.
8984 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
8985 example of JSON output.
8986 * opts-diagnostic.h (get_option_url): New decl.
8987 * opts.c (get_option_url): New function.
8988 * toplev.c (general_init): Initialize the get_option_url callback.
8990 2019-10-10 David Malcolm <dmalcolm@redhat.com>
8993 * common.opt (fdiagnostics-urls=): New option.
8994 (diagnostic-url.h): Add SourceInclude.
8995 (diagnostic_url_rule): New enum.
8996 * diagnostic-color.c: Include "diagnostic-url.h".
8997 (diagnostic_urls_enabled_p): New function.
8998 * diagnostic-url.h: New file.
8999 * diagnostic.c: Include "diagnostic-url.h".
9000 (diagnostic_urls_init): New function.
9001 * diagnostic.h (diagnostic_urls_init): New decl.
9002 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9003 -fdiagnostics-urls to the list.
9004 (-fdiagnostics-urls): New option.
9005 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9006 (driver::global_initializations): Call diagnostic_urls_init.
9007 * opts-global.c (init_options_once): Likewise.
9008 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9009 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9011 (pp_begin_url): New function.
9012 (pp_end_url): New function.
9013 (selftest::test_urls): New selftest.
9014 (selftest::pretty_print_c_tests): Call it.
9015 * pretty-print.h (pretty_printer::show_urls): New field.
9016 (pp_begin_url): New decl.
9017 (pp_end_url): New decl.
9019 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9022 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9024 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9027 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9028 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9029 also for TARGET_FPU_SH4_300.
9030 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9032 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9033 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9034 (*negsf2_i): Split into ...
9035 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9036 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9037 (**abssf2_i): Split into ...
9038 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9039 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9040 (*negdf2_i): Split into ...
9041 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9042 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9043 (**abssf2_i): Split into ...
9044 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9046 2019-10-10 Richard Biener <rguenther@suse.de>
9049 * opts.c (finish_options): Do not influence global --params
9050 from options that are adjustable per function.
9051 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9052 Apply --param adjustment based on active cost-model.
9053 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9054 further store-sinking when vectorization or if-conversion
9057 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9060 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9061 rather than ggc_alloc_cleared to alloc symbol table.
9062 * toplev.c (general_init): Likewise.
9063 * cgraph.h (symbol_table): Explicitly construct every field.
9065 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9067 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9069 * config.gcc: Add z15 as option for --with-arch and --with-tune
9071 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9072 error reporting for unsupported builtins.
9073 * config/s390/s390-opts.h (enum processor_type): Rename
9074 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9075 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9076 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9078 * config/s390/s390-builtins.def: Likewise.
9079 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9080 (s390_expand_builtin): Add missing check for unsupported builtins.
9081 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9082 (s390_rtx_costs): Likewise.
9083 (s390_get_sched_attrmask): Rename arch13 to z15.
9084 (s390_get_unit_mask): Likewise.
9085 (s390_is_fpd): Likewise.
9086 (s390_is_fxd): Likewise.
9087 * config/s390/s390.h (enum processor_flags): Likewise.
9088 * config/s390/s390.md: Likewise.
9089 * config/s390/vector.md: Likewise.
9090 * config/s390/vx-builtins.md: Likewise.
9091 * config/s390/s390.opt: Add z15 to processor_type value.
9093 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9096 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9098 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9099 ("split_stack_data", "split_stack_call")
9100 ("split_stack_call_<mode>", "split_stack_cond_call")
9101 ("split_stack_cond_call_<mode>"): Remove.
9102 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9104 * config/s390/s390.c (s390_output_split_stack_data): New function.
9105 (s390_expand_split_stack_prologue): Use the merged expander.
9107 2019-10-09 Martin Sebor <msebor@redhat.com>
9109 PR tree-optimization/90879
9110 * builtins.c (check_access): Avoid using maxbound when null.
9111 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9112 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9113 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9115 (get_range_strlen): Overwrite initial maxbound when non-null.
9116 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9118 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9119 (used_only_for_zero_equality): New function.
9120 (handle_builtin_memcmp): Call it.
9121 (determine_min_objsize): Return an integer instead of tree.
9122 (get_len_or_size, strxcmp_eqz_result): New functions.
9123 (maybe_warn_pointless_strcmp): New function.
9124 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9125 between a longer string and a smaller array.
9126 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9128 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9130 * config/darwin.c (darwin_override_options): Make the check for
9131 Objective-C ABI version more specific for 64bit code.
9133 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9135 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9136 indicate that the new symbol is an indirection.
9137 (machopic_indirect_call_target): Likewise.
9138 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9139 (MACHO_SYMBOL_INDIRECTION_P): New.
9140 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9142 2019-10-08 Jason Merrill <jason@redhat.com>
9144 * doc/invoke.texi: Document -fconcepts-ts.
9146 2019-10-09 Richard Biener <rguenther@suse.de>
9148 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9149 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9151 2019-10-08 Richard Biener <rguenther@suse.de>
9153 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9154 (_stmt_vec_info::force_single_cycle): Likewise.
9155 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9156 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9157 * tree-vect-loop.c (vectorizable_reduction): Set
9158 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9159 (vect_transform_reduction): Use them to remove redundant code.
9160 (vect_transform_cycle_phi): Likewise.
9162 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9164 PR tree-optimization/90836
9165 * match.pd (popcount): New pattern.
9167 2019-10-08 Martin Sebor <msebor@redhat.com>
9171 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9172 again once nbytes has been set. Set the access size when not yet set.
9174 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9176 * config/darwin.c (machopic_select_section): Remove dead code for
9177 old Objective-C section selection method, replace with unreachable.
9179 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9181 * config/darwin.c (machopic_indirect_data_reference): Check for
9182 required indirections before making direct access to defined
9184 (machopic_output_indirection): Place the indirected pointes for
9185 required indirections into the non-lazy symbol pointers section.
9186 (darwin_encode_section_info):
9187 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9188 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9190 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9193 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9194 instead of ALL_SSE_REG to check if function call preserves some
9195 256-bit SSE registers.
9197 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9199 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9200 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9201 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9203 2019-10-08 Richard Biener <rguenther@suse.de>
9205 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9206 (_stmt_vec_info::is_reduc_info): Add.
9207 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9208 (vectorizable_condition): Remove.
9209 (vectorizable_shift): Likewise.
9210 (vectorizable_reduction): Adjust.
9211 (info_for_reduction): New.
9212 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9213 (vect_analyze_scalar_cycles_1): ... here.
9214 (vect_analyze_loop_operations): Adjust.
9215 (needs_fold_left_reduction_p): Simplify for single caller.
9216 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9217 for nested cycles not part of double reductions.
9218 (vect_model_reduction_cost): Pass in the reduction type.
9219 (info_for_reduction): New function.
9220 (vect_create_epilog_for_reduction): Use it, access reduction
9221 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9222 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9223 (vectorize_fold_left_reduction): Remove pointless assert.
9224 (vectorizable_reduction): Analyze the full reduction when
9225 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9226 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9227 stmt code-generation to vectorizable_* in most cases. Verify
9228 code-generation only for cases handled by
9229 vect_transform_reductuon.
9230 (vect_transform_reduction): Use info_for_reduction to get at
9231 reduction meta. Simplify.
9232 (vect_transform_cycle_phi): Likewise.
9233 (vectorizable_live_operation): Likewise.
9234 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9235 at the PHI node for STMT_VINFO_REDUC_TYPE.
9236 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9237 longer necessary code.
9238 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9239 (vectorizable_condition): Likewise. Get at reduction related
9240 info via info_for_reduction.
9241 (vect_analyze_stmt): Adjust.
9242 (vect_transform_stmt): Likewise.
9243 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9244 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9246 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9248 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9249 -fno-fp-int-builtin-inexact default for C2X.
9251 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9252 Richard Biener <rguenther@suse.de>
9254 PR tree-optimization/91532
9255 * tree-if-conv.c: Include tree-ssa-dse.h.
9256 (ifcvt_local_dce): Change param from bb to loop,
9257 and call dse_classify_store.
9258 (tree_if_conversion): Pass loop instead of loop->header as arg
9260 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9261 (delete_dead_or_redundant_assignment): Remove static qualifier from
9262 declaration, and add prototype in tree-ssa-dse.h.
9263 (dse_store_status): Move to tree-ssa-dse.h.
9264 (dse_classify_store): Remove static qualifier and add new tree param
9265 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9266 * tree-ssa-dse.h: New header.
9268 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9270 * config/darwin.c (machopic_output_indirection): Don't put
9271 hidden symbol indirections into the .data section, use the
9272 non-lazy symbol pointers section as normal.
9273 (darwin_encode_section_info): Record if a symbol is hidden.
9274 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9275 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9277 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9279 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9280 predicates instead of accessing bits directly.
9281 (machopic_indirect_call_target): Likewise.
9282 (machopic_output_indirection): Likewise.
9283 (darwin_encode_section_info): Improve description. Use renamed
9284 symbol flags. Use predicate macros for variables and functions.
9286 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9287 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9288 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9289 (MACHO_SYMBOL_VARIABLE_P): New.
9290 (MACHO_SYMBOL_DEFINED_P):New.
9291 (MACHO_SYMBOL_STATIC_P): New.
9292 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9293 (SYMBOL_FLAG_SUBT_DEP): New.
9294 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9296 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9298 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9299 (msp430_expand_epilogue): Likewise.
9300 * config/msp430/predicates.md: Likewise.
9301 * config/msp430/msp430.md: Likewise.
9302 Replace blocks of 8 spaces with tabs.
9304 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9306 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9307 * config/msp430/msp430.c (msp430_split_addsi): New.
9308 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9309 a block of C code for splitting addsi.
9311 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9313 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9314 ix86_expand_rounddf_32): Reorder functions.
9315 * config/i386/i386-protos.h: Update.
9317 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9319 * config.in: Regenerate.
9320 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9321 Add new "Yx" constraint.
9322 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9324 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9326 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9327 code/data region to be selected in the small memory model.
9328 (msp430_section_attr): Don't warn if the "section" and "lower"
9329 attributes are used together.
9330 (msp430_handle_generic_attribute): Likewise.
9331 (msp430_var_in_low_mem): New function.
9332 (TARGET_ENCODE_SECTION_INFO): Define.
9333 (msp430_encode_section_info): New function.
9334 (gen_prefix): Return early in the small memory model.
9335 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9336 ".lower" prefix if -m{code,data}-region=lower have been passed.
9337 (msp430_output_aligned_decl_common): Emit common symbols when
9338 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9340 (TARGET_ASM_FILE_END): Define.
9341 (msp430_file_end): New function.
9342 (msp430_do_not_relax_short_jumps): Allow relaxation when
9343 function will be in the lower region.
9344 (msp430_op_not_in_high_mem): New function.
9345 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9346 the 'X' operand selector.
9347 Clarify comment for 'x' operand selector.
9348 * config/msp430/msp430.h (LINK_SPEC): Propagate
9349 -m{code,data}-region to the linker via spec function
9350 msp430_propagate_region_opt.
9351 (msp430_propagate_region_opt): New prototype.
9352 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9353 (SYMBOL_FLAG_LOW_MEM): Define.
9354 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9356 (zero_extendqihi2): Fix operand number used by "%X" selector.
9357 (zero_extendqisi2): Likewise.
9358 (zero_extendhisi2): Likewise.
9359 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9364 (addhi3_cy): Likewise.
9365 (addchi4_cy): Likewise.
9369 (bic<mode>3): Likewise.
9370 (and<mode>3): Likewise.
9371 (ior<mode>3): Likewise.
9372 (xor<mode>3): Likewise.
9373 (slli_1): Add missing "%X" operand selector.
9381 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9383 (cbranchhi4_real): Likewise.
9384 (cbranchqi4_reversed): Likewise.
9385 (cbranchhi4_reversed): Likewise.
9386 (*bitbranch<mode>4): Likewise.
9387 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9388 * config/msp430/msp430.opt (mcode-region=): Set default to
9389 MSP430_REGION_LOWER. Improve docstring.
9390 (mdata-region=): Likewise.
9391 (muse-lower-region-prefix): New option.
9392 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9393 mdata-region=none multilib.
9394 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9395 mdata-region=none multilib.
9396 MULTILIB_EXCEPTIONS: Remove.
9397 MULTILIB_REQUIRED: Define.
9398 * configure: Regenerate.
9399 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9400 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9401 * doc/extend.texi: Clarify comment for {upper,lower,either}
9402 function attributes.
9403 Add separate description for "lower" variable attribute.
9405 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9408 * optabs-tree.c (vcond_icode_p): New function.
9409 (vcond_eq_icode_p): Likewise.
9410 (expand_vec_cond_expr_p): Use vcond_icode_p and
9412 * optabs.c (can_vcond_compare_p): New function.
9413 * optabs.h (can_vcond_compare_p): Likewise.
9415 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9418 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9419 caller passes a non-trapping condition.
9420 (is_gimple_condexpr): Allow trapping conditions.
9421 (is_gimple_condexpr_1): New helper function.
9422 (is_gimple_condexpr_for_cond): New function, acts like old
9424 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9425 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9426 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9427 * gimplify.c (gimplify_cond_expr): Use
9428 is_gimple_condexpr_for_cond.
9429 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9430 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9432 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9433 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9434 is_gimple_condexpr_for_cond, remove pointless tmp check
9435 (forward_propagate_into_cond): Remove pointless tmp check.
9437 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9439 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9440 match that of other gsi_next_* functions. Adjust the comment.
9441 (gsi_start_nonvirtual_phis): New function.
9442 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9443 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9445 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9447 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9448 setjmp situation here. Fix a verb's ending: "the exact variables or
9449 elements for which there are warnings depends" -> "... depend".
9451 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9453 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9455 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9457 * ipa-prop.c (ipa_vr::nonzero_p): New.
9458 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9460 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9461 * tree-vrp.c (range_has_numeric_bounds_p): New.
9462 (range_int_cst_p): Use range_has_numeric_bounds_p.
9463 (get_range_op_handler): New.
9464 (supported_types_p): New.
9465 (defined_ranges_p): New.
9466 (drop_undefines_to_varying): New.
9467 (range_fold_binary_symbolics_p): New.
9468 (range_fold_unary_symbolics_p): New.
9469 (range_fold_unary_expr): Extract out into above functions.
9470 (range_fold_binary_expr): Same.
9471 (value_range_base::normalize_addresses): New.
9472 (value_range_base::normalize_symbolics): Normalize addresses.
9473 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9475 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9477 * tree-vrp.c (value_range_base::singleton_p): Use
9478 value_range_base::num_pairs instead of vrp_val_is* to check
9479 if a range has one sub-range.
9481 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9483 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9484 DEF is not a true earlyclobber but is tied to a specific input
9485 operand, and so is effectively earlyclobber wrt inputs that have
9487 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9489 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9491 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9492 (pod_mode): Mark operators likewise.
9493 (scalar_int_mode): Mark non-default constructors and
9494 operators with CONSTEXPR.
9495 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9496 (fixed_size_mode): Likewise.
9498 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9501 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9502 and wrap the unspec_volatile in a parallel.
9503 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9504 the unspec_volatile.
9505 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9506 unspec_volatile to be wrapped in a parallel.
9507 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9508 (ix86_add_reg_usage_to_vzerouppers): New functions.
9509 (rest_of_handle_insert_vzeroupper): Use them to add register
9510 usage information to the vzeroupper instructions.
9512 2019-10-07 Richard Biener <rguenther@suse.de>
9514 PR tree-optimization/91975
9515 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9518 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9520 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9521 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9523 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9525 * config/darwin.c (darwin_override_options): Adjust objective-c
9526 ABI version error messages to avoid punctuation and contracted
9529 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9531 * ipa-inline.c: Fix type; compute size rather than self_size
9532 for size of caller function.
9534 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9537 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9538 choose const_data section for constants with relocations.
9539 (machopic_select_section): Pass relocation flag to
9540 darwin_rodata_section ().
9542 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9544 PR tree-optimization/91734
9545 * generic-match-head.c: Include fold-const-call.h.
9546 * match.pd (sqrt(x) cmp c): Check the boundary value and
9547 in case inexact computation of c*c affects comparison of the boundary,
9548 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9549 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9550 for -frounding-math. For c2, try the next smaller or larger floating
9551 point constant depending on comparison code and if it has the same
9552 sqrt as c2, use it instead of c2.
9554 2019-10-04 Martin Sebor <msebor@redhat.com>
9557 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9558 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9559 uninitialized objects.
9561 2019-10-04 Martin Sebor <msebor@redhat.com>
9563 * builtins.c (compute_objsize): Add an argument.
9564 * tree-object-size.c (addr_object_size): Same.
9565 (compute_builtin_object_size): Same.
9566 * tree-object-size.h (compute_builtin_object): Same.
9568 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9570 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9572 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9574 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9576 2019-10-04 Martin Jambor <mjambor@suse.cz>
9578 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9579 fntype when switching to calling memcpy instead of memset.
9581 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9583 * hash-table.h (hash_table::empty_slow): Don't assign
9584 size_t values to int variables.
9586 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9588 * expr.c (convert_mode_scalar): Remove shadowing local var.
9589 (emit_block_move): Rename local vars.
9590 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9591 (emit_push_insn): Rename local vars.
9592 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9593 shadowing local vars.
9594 (store_constructor): Remove shadowing local vars. Rename local var.
9595 (store_field, expand_cond_expr_using_cmove,
9596 expand_expr_real_2): Remove shadowing local vars.
9597 (expand_expr_real_1,
9598 do_store_flag): Remove shadowing local vars. Rename local vars.
9600 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9602 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9604 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9606 * genmatch.c (commutate): Rename local var.
9607 (lower_cond): Reuse local var.
9608 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9609 dt_operand::gen, dt_operand::gen_gimple_expr,
9610 dt_simplify::gen): Add a param. Rename generated vars.
9611 (decision_tree::insert_operand,
9612 (capture_info::walk_match, capture_info::walk_result,
9613 capture_info::walk_c_expr): Rename local vars.
9614 (expr::gen_transform): Rename generated vars.
9615 Use snprintf. Rename local vars.
9616 (capture::gen_transform, dt_operand::get_name,
9617 dt_operand::gen_opname): Rename generated vars.
9618 (write_predicate): Adjust call to gen_kids.
9619 (parser::get_internal_capture_id): Rename generated vars.
9620 (parser::parse_expr): Rename local vars.
9621 (parser::parse_if): Remove local var.
9622 (parser::parse_pattern, add_operator): Rename local vars.
9624 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9626 * builtins.def (DEF_C2X_BUILTIN): New macro.
9627 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9628 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9629 (strndup): Use DEF_C2X_BUILTIN.
9630 * coretypes.h (enum function_class): Add function_c2x_misc.
9632 2019-10-04 Maya Rashish <coypu@sdf.org>
9634 * ira-color.c (update_costs_from_allocno): Call
9635 ira_init_register_move_cost_if_necessary.
9637 2019-10-04 Jeff Law <law@redhat.com>
9639 * config/h8300/h8300.md (cpymemsi): Disable.
9640 (movmd, movmd_internal_<mode>, movstr, movsd):
9641 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9642 (movmd splitter, movsd splitter): Likewise.
9644 * range-op.cc (range_tests): Avoid two tests when ints and
9645 shorts are the same size.
9647 2019-10-04 Richard Biener <rguenther@suse.de>
9650 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9653 2019-10-04 Richard Biener <rguenther@suse.de>
9655 PR tree-optimization/91982
9656 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9657 against EXTRACT_LAST_REDUCTION.
9658 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9660 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9662 * range-op.o (value_range_from_overflowed_bounds): Rename from
9663 adjust_overflow_bound.
9664 (value_range_with_overflow): Rename from
9665 create_range_with_overflow.
9666 (create_possibly_reversed_range): Adjusted for above renames.
9667 (operator_*::wi_fold): Same.
9668 (cross_product_operator::wi_cross_productor): Same.
9670 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9672 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9673 -Wshadow=compatible-local): Fix description.
9674 Add an example where -Wshadow=compatible-local does not
9677 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9679 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9681 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9682 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9684 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9686 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9687 can_move_by_pieces issue.
9689 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9692 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9693 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9694 is available and the user has not set one on the command line.
9696 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9699 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9700 instead of REGNO equality check on addr.reg.
9702 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9704 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9705 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9706 * doc/invoke.texi (inline-heuristics-hint-percent,
9707 inline-heuristics-hint-percent-O2): Document.
9708 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9710 (can_inline_edge_by_limits_p): Use it.
9712 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9714 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9715 to print CONST_DOUBLEs.
9717 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9719 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9720 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9721 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9723 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9725 * Makefile.in (OBJS): Add range.o and range-op.o.
9726 Remove wide-int-range.o.
9727 * function-tests.c (test_ranges): New.
9728 (function_tests_c_tests): Call test_ranges.
9729 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9730 range_fold_unary_expr instead of extract_range_from_unary_expr.
9731 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9732 * range-op.cc: New file.
9733 * range-op.h: New file.
9734 * range.cc: New file.
9735 * range.h: New file.
9736 * selftest.h (range_tests): New prototype.
9737 * ssa.h: Include range.h.
9738 * tree-vrp.c (value_range_base::value_range_base): New
9740 (value_range_base::singleton_p): Do not call
9741 ranges_from_anti_range until sure we will need to.
9742 (value_range_base::type): Rename gcc_assert to
9743 gcc_checking_assert.
9744 (vrp_val_is_max): New argument.
9745 (vrp_val_is_min): Same.
9746 (wide_int_range_set_zero_nonzero_bits): Move from
9748 (extract_range_into_wide_ints): Remove.
9749 (extract_range_from_multiplicative_op): Remove.
9750 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9751 from extract_range_from_binary_expr.
9752 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9753 from extract_range_from_binary_expr.
9754 (extract_range_from_binary_expr): Remove.
9755 (normalize_for_range_ops): New.
9756 (range_fold_binary_expr): New.
9757 (range_fold_unary_expr): New.
9758 (value_range_base::num_pairs): New.
9759 (value_range_base::lower_bound): New.
9760 (value_range_base::upper_bound): New.
9761 (value_range_base::upper_bound): New.
9762 (value_range_base::contains_p): New.
9763 (value_range_base::invert): New.
9764 (value_range_base::union_): New.
9765 (value_range_base::intersect): New.
9766 (range_compatible_p): New.
9767 (value_range_base::operator==): New.
9768 (determine_value_range_1): Call range_fold_*expr instead of
9769 extract_range_from_*expr.
9770 * tree-vrp.h (class value_range_base): Add new constructors.
9771 Add methods for union_, intersect, operator==, contains_p,
9772 num_pairs, lower_bound, upper_bound, invert.
9773 (vrp_val_is_min): Add handle_pointers argument.
9774 (vrp_val_is_max): Same.
9775 (extract_range_from_unary_expr): Remove.
9776 (extract_range_from_binary_expr): Remove.
9777 (range_fold_unary_expr): New.
9778 (range_fold_binary_expr): New.
9779 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9780 range_fold_binary_expr instead of extract_range_from_binary_expr.
9781 (vr_values::extract_range_basic): Same.
9782 (vr_values::extract_range_from_unary_expr): Call
9783 range_fold_unary_expr instead of extract_range_from_unary_expr.
9784 * wide-int-range.cc: Remove.
9785 * wide-int-range.h: Remove.
9787 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9789 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9790 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9791 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9792 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9795 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9797 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9798 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9799 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9800 * glimits.h: Likewise.
9802 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9804 PR rtl-optimization/91976
9805 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9806 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9807 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9809 2019-10-02 Martin Sebor <msebor@redhat.com>
9811 PR tree-optimization/80936
9812 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9814 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9816 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9817 instead of reg_class_contents[ALL_REGS].
9819 2019-09-30 Jason Merrill <jason@redhat.com>
9821 Add some hash_map_safe_* functions like vec_safe_*.
9822 * hash-map.h (default_hash_map_size): New variable.
9823 (create_ggc): Use it as default argument.
9824 (hash_map_maybe_create, hash_map_safe_get)
9825 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9827 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9829 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9830 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9831 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9832 (can_inline_edge_by_limits_p): Use it.
9833 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9834 (want_inline_small_function_p): Use O2 bounds.
9835 (edge_badness): LIkewise.
9836 * opts.c (default_options): Add OPT_finline_functions.
9837 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9838 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9840 * doc/invoke.texi (-finline-functions): Update documentation.
9841 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9842 inline-min-speedup-O2): Document.
9843 (early-inlining-insns-O2): Simplify docs.
9845 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9847 PR rtl-optimization/87047
9848 * ifcvt.c (average_cost): New static function. Use it...
9849 (noce_process_if_block): ... here.
9851 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9853 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9854 * config/rs6000/rs6000-string.c (expand_block_move): Add
9856 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9857 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9859 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9861 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9862 (expand_builtin_memcpy): Use might_overlap parm.
9863 (expand_builtin_mempcpy_args): Use might_overlap parm.
9864 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9865 (expand_builtin_memory_copy_args): Add might_overlap parm.
9866 * expr.c (emit_block_move_via_cpymem): Rename to
9867 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9868 or movmem optab as appropriate.
9869 (emit_block_move_hints): Add might_overlap parm, do the right
9870 thing for might_overlap==true.
9871 * expr.h (emit_block_move_hints): Update prototype.
9873 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
9875 * tree-eh.h (unsplit_eh_edges): Declare.
9876 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9877 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9878 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9879 (struct store_immediate_info): Add lp_nr field.
9880 (store_immediate_info::store_immediate_info): Add NR2 parameter and
9881 initialize lp_nr with it.
9882 (struct merged_store_group): Add lp_nr and only_constants fields.
9883 (merged_store_group::merged_store_group): Initialize them.
9884 (merged_store_group::can_be_merged_into): Deal with them.
9885 (pass_store_merging): Rename terminate_and_release_chain into
9886 terminate_and_process_chain.
9887 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
9888 renaming and remove useless assertions.
9889 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
9890 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
9891 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
9892 instead of always recomputing it and compare lp_nr.
9893 (imm_store_chain_info::output_merged_store): If the group is in an
9894 active EH region, register new stores if they can throw. Moreover,
9895 if the insertion has created new basic blocks, adjust the PHI nodes
9896 of the post landing pad.
9897 (imm_store_chain_info::output_merged_stores): If the original stores
9898 are in an active EH region, deregister them.
9899 (lhs_valid_for_store_merging_p): Prettify.
9900 (adjust_bit_pos): New function extracted from...
9901 (mem_valid_for_store_merging): ...here. Use it for the base address
9902 and also for the offset if it is the addition of a constant.
9903 (lp_nr_for_store): New function.
9904 (pass_store_merging::process_store): Change return type to bool.
9905 Call lp_nr_for_store to initialize the store info. Propagate the
9906 return status of various called functions to the return value.
9907 (store_valid_for_store_merging_p): New predicate.
9908 (enum basic_block_status): New enumeration.
9909 (get_status_for_store_merging): New function.
9910 (pass_store_merging::execute): If the function can throw and catch
9911 non-call exceptions, unsplit the EH edges on entry and clean up the
9912 CFG on exit if something changed. Call get_status_for_store_merging
9913 for every basic block and keep the chains open across basic blocks
9914 when possible. Terminate and process open chains at the end, if any.
9916 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9918 * reginfo.c (globalize_reg): Fix shadowed variable in
9921 2019-10-02 Martin Jambor <mjambor@suse.cz>
9923 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
9924 do not compute some stuff when set.
9925 (cgraph_node::create_edge): Likewise.
9926 (cgraph_node::create_indirect_edge): Renamed last parameter to
9927 coning_p and flipped its meaning, don't even calculate
9928 inline_failed when set.
9929 * cgraph.h (cgraph_node::create_edge): Add new parameter.
9930 (symbol_table::::create_edge): Likewise.
9931 (cgraph_node::create_indirect_edge): Rename last parameter, flip
9933 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
9934 call graph edge creating functions.
9936 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
9939 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
9942 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
9944 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
9946 2019-10-02 Richard Biener <rguenther@suse.de>
9948 * tree-vectorizer.h (vect_transform_reduction): Declare.
9949 * tree-vect-stmts.c (vect_transform_stmt): Use it.
9950 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
9951 stmt transform to ...
9952 (vect_transform_reduction): ... this.
9954 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
9956 * omp-low.c (lower_omp_target): Dereference optional argument
9957 to work with the right pointer.
9959 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
9961 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
9963 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
9964 * langhooks.h (omp_is_optional_argument): New hook.
9965 * omp-general.c (omp_is_optional_argument): New.
9966 * omp-general.h (omp_is_optional_argument): New declaration.
9967 * omp-low.c (lower_omp_target): Create temporary for received value
9968 and take the address for new_var if the original variable was a
9969 DECL_BY_REFERENCE. Use size of referenced object when a
9970 pass-by-reference optional argument used as argument to firstprivate.
9972 2019-10-02 Jakub Jelinek <jakub@redhat.com>
9974 PR tree-optimization/91940
9975 * tree-vect-patterns.c: Include tree-vector-builder.h and
9977 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
9978 unpromoting the argument back to uint16_t, or by converting into a
9979 rotate, or into shifts plus ior.
9981 2019-10-02 Richard Biener <rguenther@suse.de>
9983 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
9985 (vect_transform_cycle_phi): Declare.
9986 * tree-vect-stmts.c (vect_transform_stmt): Call
9987 vect_transform_cycle_phi.
9988 * tree-vect-loop.c (vectorizable_reduction): Split out
9989 PHI transformation stage to ...
9990 (vect_transform_cycle_phi): ... here.
9992 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9995 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
9996 eliminable registers.
9997 (make_hard_regno_live): Likewise, and don't make them live.
9999 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10001 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10002 Call pp_emit_prefix.
10003 (layout::print_source_line): Likewise.
10004 (layout::start_annotation_line): Likewise.
10005 (diagnostic_show_locus): Remove call to temporarily clear the
10007 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10008 interaction of pp_set_prefix with rulers and fix-it hints.
10009 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10010 prefix when calling diagnostic_show_locus, rather than destroying
10012 (print_parseable_fixits): Temporarily clear prefix.
10013 * pretty-print.c (pp_format): Save and restore line_length, rather
10014 than assuming it is zero.
10015 (pp_output_formatted_text): Remove assertion that line_length is
10018 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10020 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10022 (nonoverlapping_refs_since_match_p): ... this; handle also
10024 (alias_stats): Update stats.
10025 (dump_alias_stats): Likewise.
10026 (cheap_array_ref_low_bound): New function.
10027 (aliasing_matching_component_refs_p): Add partial_overlap
10029 pass it to nonoverlapping_refs_since_match_p.
10030 (aliasing_component_refs_walk): Update call of
10031 aliasing_matching_component_refs_p
10032 (nonoverlapping_array_refs_p): New function.
10033 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10034 indirect_refs_may_alias_p): Update calls of
10035 nonoverlapping_refs_since_match_p.
10037 2019-10-01 Maya Rashish <coypu@sdf.org>
10040 * ira-color.c (allocno_copy_cost_saving): Call
10041 ira_init_register_move_cost_if_necessary.
10043 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10045 * Makefile.in (gnat_install_lib): New variable.
10046 * configure.ac: Substitute it.
10047 * configure: Regenerate.
10049 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10052 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10053 is matched with non-C++ type
10055 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10057 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10060 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10062 * doc/invoke.texi (early-inlining-insns-O2): Document.
10063 (early-inlining-insns): Update.
10064 * params.def (early-inlining-insns-O2): New bound.
10065 (early-inlining-insns): Update docs.
10066 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10068 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10071 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10072 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10073 a memory access insn.
10075 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10077 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10080 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10083 * config/s390/s390.c (s390_expand_vec_compare): Use
10084 gen_vec_cmpordered and gen_vec_cmpunordered.
10085 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10086 vec_unordered): Delete.
10087 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10088 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10089 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10090 (vec_cmp<code>): Generic dispatcher.
10092 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10095 * config/s390/vector.md (V_HW): Add V1TI in order to make
10096 vcond$a$b generate vcondv1tiv1tf.
10098 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10100 PR rtl-optimization/91948
10101 * ira-build.c (ira_create_allocno): Initialize
10102 ALLOCNO_CROSSED_CALLS_ABIS.
10103 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10104 than regno to ira_need_caller_save_p.
10106 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10108 * config/i386/i386-options.c
10109 (ix86_recompute_optlev_based_flags): New, moved out of...
10110 (ix86_option_override_internal): ... this. Call it.
10111 (ix86_override_options_after_change): Call it here too.
10114 * dwarf2out.c (override_type_for_decl_p): New.
10115 (gen_variable_die): Use it.
10117 2019-10-01 Richard Biener <rguenther@suse.de>
10119 * tree-vect-loop.c (vectorizable_reduction): Move variables
10120 to where they are used.
10122 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10124 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10125 (build_def_use): Use PC instead of CC0 in a comment.
10127 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10129 * rtl.def (CLOBBER_HIGH): Delete.
10130 * doc/rtl.texi (clobber_high): Remove documentation.
10131 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10132 (reg_is_clobbered_by_clobber_high): Delete.
10133 (gen_hard_reg_clobber_high): Likewise.
10134 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10135 * cfgexpand.c (expand_gimple_stmt): Likewise.
10136 * combine-stack-adj.c (single_set_for_csa): Likewise.
10137 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10138 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10139 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10140 * cse.c (invalidate_reg): Remove clobber_high parameter.
10141 (invalidate): Update call accordingly.
10142 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10143 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10144 (count_reg_usage, insn_live_p): Likewise.
10145 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10146 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10147 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10148 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10149 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10150 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10151 (mark_nonreg_stores_2): Likewise.
10152 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10153 (df_get_call_refs): Likewise.
10154 * dwarf2out.c (mem_loc_descriptor): Likewise.
10155 * emit-rtl.c (verify_rtx_sharing): Likewise.
10156 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10157 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10158 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10159 * genemit.c (gen_exp, gen_insn): Likewise.
10160 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10161 * haifa-sched.c (haifa_classify_rtx): Likewise.
10162 * ira-build.c (create_insn_allocnos): Likewise.
10163 * ira-costs.c (scan_one_insn): Likewise.
10164 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10165 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10166 * jump.c (mark_jump_label_1): Likewise.
10167 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10168 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10170 (mark_not_eliminable): Likewise.
10171 * lra-lives.c (process_bb_lives): Likewise.
10172 * lra.c (new_insn_reg): Remove clobber_high parameter.
10173 (collect_non_operand_hard_regs): Likewise. Update call to new
10174 insn_reg. Remove CLOBBER_HIGH handling.
10175 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10176 to collect_non_operand_hard_regs.
10177 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10178 Update call to new_insn_reg.
10179 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10180 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10181 (move2add_note_store): Likewise.
10182 * print-rtl.c (print_pattern): Likewise.
10183 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10184 (if_test_bypass_p): Likewise.
10185 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10186 * reginfo.c (reg_scan_mark_refs): Likewise.
10187 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10188 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10189 (forget_old_reloads_1): Likewise.
10190 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10191 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10192 (dbr_schedule): Likewise.
10193 * resource.c (update_live_status, mark_referenced_resources)
10194 (mark_set_resources): Likewise.
10195 * rtl.c (copy_rtx): Likewise.
10196 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10197 (note_pattern_stores): Likewise.
10198 (reg_is_clobbered_by_clobber_high): Delete.
10199 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10200 CLOBBER_HIGH handling.
10202 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10205 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10206 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10207 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10208 Handle ARM_PCS_TLSDESC.
10209 (aarch64_tlsdesc_abi_id): New function.
10210 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10211 rtx instead of a list of clobbers and clobber_highs.
10212 (tlsdesc_small_<mode>): Update accordingly.
10214 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10216 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10217 extra callee_abi argument.
10218 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10219 Insert a CALLEE_ABI unspec into the call pattern as the second
10220 element in the PARALLEL.
10221 (aarch64_simd_call_p): Delete.
10222 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10223 the new CALLEE_ABI element of the PARALLEL.
10224 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10225 from the function type, if given.
10226 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10227 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10228 when passed the function_arg_info end marker.
10229 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10230 final argument of gen_sibcall.
10231 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10232 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10233 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10235 (call_value): Likewise operand 3.
10236 (sibcall): Likewise operand 2. Place the unspec before rather than
10238 (sibcall_value): Likewise operand 3.
10239 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10240 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10241 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10242 constraint strings.
10243 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10245 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10247 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10248 choose_hard_reg_mode.
10249 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10251 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10253 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10254 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10255 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10257 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10259 * diagnostic-show-locus.c (line_label::line_label): Initialize
10261 (line_label::comparator): Reverse the sort order by m_state_idx,
10262 so that when the list is walked backwards the labels appear in
10263 order of insertion into the rich_location.
10264 (line_label::m_has_vbar): New field.
10265 (layout::print_any_labels): When dealing with multiple labels at
10266 the same line and column, only print vertical bars for the one
10267 with the highest label_line.
10268 (selftest::test_one_liner_labels): Update test for multiple labels
10269 to expect the labels to be in the order of insertion into the
10270 rich_location. Add a test for many such labels, where the column
10271 numbers are out-of-order relative to the insertion order.
10273 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10275 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10276 (ix86_frame::expensive_count): Likewise.
10277 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10278 of use_fast_prologue_epilogue robust against incidental changes
10281 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10284 * config/s390/vector.md (vec_unordered<mode>): Call
10285 gen_vec_ordered<mode>.
10287 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10289 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10290 New pattern for ASRD.
10291 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10292 * internal-fn.def (IFN_DIV_POW2): New internal function.
10293 * optabs.def (sdiv_pow2_optab): New optab.
10294 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10295 Modify pattern to support new operation.
10296 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10297 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10298 Document new target selector.
10300 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10302 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10303 to test whether we're compiling a vector PCS function and to test
10304 whether the function needs to save a particular register.
10305 Remove the vector PCS handling of df_set_regs_ever_live.
10306 (aarch64_components_for_bb): Use crtl->abi to test whether
10307 the function needs to save a particular register.
10308 (aarch64_process_components): Use crtl->abi to test whether
10309 we're compiling a vector PCS function.
10310 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10311 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10313 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10315 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10317 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10318 whether the block calls a function that clobbers more registers
10319 than the current function is allowed to.
10320 (aarch64_use_simple_return_insn_p): Delete.
10321 * config/aarch64/aarch64.md (simple_return): Remove condition.
10323 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10325 * function-abi.h (function_abi_aggregator): New class.
10326 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10328 * ira.c (update_equiv_regs_prescan): New function. Call
10329 set_paradoxical_subreg here rather than...
10330 (update_equiv_regs): ...here.
10331 (ira): Call update_equiv_regs_prescan.
10333 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10335 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10337 (call_used_or_fixed_regs): Likewise.
10338 (call_used_or_fixed_reg_p): Likewise.
10339 * reginfo.c (regs_invalidated_by_call): New macro.
10341 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10343 * shrink-wrap.c: Include function-abi.h.
10344 (requires_stack_frame_p): Use crtl->abi to test whether the
10345 current function can use a register without saving it first.
10347 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10349 * sel-sched-ir.h (_def::crosses_call): Replace with...
10350 (_def::crossed_call_abis): ..this new field.
10351 (def_list_add): Take a mask of ABIs instead of a crosses_call
10353 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10354 of _def accordingly.
10355 * sel-sched.c: Include function-abi.h.
10356 (hard_regs_data::regs_for_call_clobbered): Delete.
10357 (reg_rename::crosses_call): Replace with...
10358 (reg_rename::crossed_call_abis): ...this new field.
10359 (fur_static_params::crosses_call): Replace with...
10360 (fur_static_params::crossed_call_abis): ...this new field.
10361 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10362 (init_hard_regs_data): Use crtl->abi to test which registers the
10363 current function would need to save before it uses them.
10364 (mark_unavailable_hard_regs): Update handling of call-clobbered
10365 registers, using call_clobbers_in_region to find out which registers
10366 might be call-clobbered (but without taking -fipa-ra into account
10367 for now). Remove separate handling of partially call-clobbered
10369 (verify_target_availability): Use crossed_call_abis instead of
10371 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10372 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10374 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10376 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10377 function to test whether a register is fully or partly clobbered.
10379 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10381 * rtlanal.c: Include function-abi.h.
10382 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10383 function and clobbers_reg_p to test whether the register
10385 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10386 to get the ABI of the called function and full_reg_clobbers to
10387 get the set of fully call-clobbered registers. Warn about the
10388 pitfalls of using this mode.
10390 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10392 * reload.c: Include function-abi.h.
10393 (find_equiv_reg): Use clobbers_reg_p to test whether either
10394 of the equivalent registers is clobbered by a call.
10395 * reload1.c: Include function-abi.h.
10396 (reg_reloaded_call_part_clobbered): Delete.
10397 (reload): Use crtl->abi to test which registers would need
10398 saving in the prologue before use.
10399 (find_reg): Likewise.
10400 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10401 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10402 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10404 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10406 * regrename.h (du_head::call_clobber_mask): New field.
10407 (du_head::need_caller_save_reg): Replace with...
10408 (du_head::call_abis): ...this new field.
10409 * regrename.c: Include function-abi.h.
10410 (call_clobbered_in_chain_p): New function.
10411 (check_new_reg_p): Use crtl->abi when deciding whether a register
10412 is free for use after RA. Use call_clobbered_in_chain_p to test
10413 whether a candidate register would be clobbered by a call.
10414 (find_rename_reg): Don't add call-clobber conflicts here.
10415 (rename_chains): Check call_abis instead of need_caller_save_reg.
10416 (merge_chains): Update for changes to du_head.
10417 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10418 target. Record the ABI identifier in call_abis and the set of
10419 fully or partially clobbered registers in call_clobber_mask.
10420 Add fully-clobbered registers to hard_conflicts here rather
10421 than in find_rename_reg.
10422 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10423 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10424 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10426 * config/c6x/c6x.c: Likewise.
10428 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10430 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10431 mode of the register when deciding whether it is no longer
10432 available after a call.
10434 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10436 * recog.c: Include function-abi.h.
10437 (peep2_find_free_register): Use crtl->abi when deciding whether
10438 a register is free for use after RA.
10440 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10442 * postreload-gcse.c: Include regs.h and function-abi.h.
10443 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10444 call insn target. Conservatively assume that partially-clobbered
10445 registers are altered.
10447 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10449 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10450 when deciding whether a register is free for use after RA.
10451 (reload_combine): Remove unnecessary use of fixed_reg_set.
10452 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10453 call insn target. Use reg_mode when testing whether a register
10454 is no longer available.
10456 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10458 * target.def (return_call_with_max_clobbers): Delete.
10459 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10460 * doc/tm.texi: Regenerate.
10461 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10462 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10463 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10464 (lra_reg::call_insn): Delete.
10465 * lra.c: Include function-abi.h.
10466 (initialize_lra_reg_info_element): Don't initialize the fields above.
10467 (lra): Use crtl->abi to test whether the current function needs to
10468 save a register in the prologue. Remove special pre-inheritance
10469 lra_create_live_ranges pass for flag_ipa_ra.
10470 * lra-assigns.c: Include function-abi.h
10471 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10472 function needs to save a register in the prologue.
10473 (lra_assign): Assert that registers aren't allocated to a
10474 conflicting register, rather than checking only for overlaps
10475 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10476 and for registers that are not live across a call.
10477 * lra-constraints.c (last_call_for_abi): New variable.
10478 (full_and_partial_call_clobbers): Likewise.
10479 (setup_next_usage_insn): Remove the register from
10480 full_and_partial_call_clobbers.
10481 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10482 whether the register needs a caller save.
10483 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10484 of call_used_or_fixed_regs.
10485 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10486 full_and_partial_call_clobbers.
10487 * lra-lives.c (check_pseudos_live_through_calls): Replace
10488 last_call_used_reg_set and call_insn arguments with an abi argument.
10489 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10490 as the set of conflicting registers.
10491 (calls_have_same_clobbers_p): Delete.
10492 (process_bb_lives): Track the ABI of the last call instead of an
10493 insn/HARD_REG_SET pair. Update calls to
10494 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10495 the set of registers that could be clobbered by an EH edge.
10496 Include partially-clobbered as well as fully-clobbered registers.
10497 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10498 * lra-remat.c: Include function-abi.h.
10499 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10500 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10501 registers and bitmap_view to combine them into dead_regs.
10502 (call_used_input_regno_present_p): Take a function_abi argument
10503 and use it to test whether a register is call-clobbered.
10504 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10505 call insn target. Update tje call to call_used_input_regno_present_p.
10506 (do_remat): Likewise.
10507 (lra_remat): Remove the initialization of call_used_regs_arr_len
10508 and call_used_regs_arr.
10510 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10512 * loop-iv.c: Include regs.h and function-abi.h.
10513 (simplify_using_initial_values): Use insn_callee_abi to get the
10514 ABI of the call insn target. Conservatively assume that
10515 partially-clobbered registers are altered.
10517 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10519 * function-abi.h (call_clobbers_in_region): Declare.
10520 (call_clobbered_in_region_p): New function.
10521 * function-abi.cc (call_clobbers_in_region): Likewise.
10522 * ira-int.h: Include function-abi.h.
10523 (ira_allocno::crossed_calls_abis): New field.
10524 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10525 (ira_need_caller_save_regs): New function.
10526 (ira_need_caller_save_p): Likewise.
10527 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10528 of call_used_or_fixed_regs.
10529 (do_reload): Use crtl->abi to test whether the current function
10530 needs to save a register in the prologue. Count registers that
10531 need to be saved rather than registers that don't.
10532 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10533 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10534 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10535 (propagate_some_info_from_allocno): Likewise.
10536 (copy_info_to_removed_store_destinations): Likewise.
10537 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10538 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10539 (ira_build): Use ira_need_caller_save_regs instead of
10540 call_used_or_fixed_regs.
10541 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10542 whether the current function would need to save a register
10544 (calculate_spill_cost): Likewise.
10545 (allocno_reload_assign): Use ira_need_caller_save_regs and
10546 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10547 * ira-conflicts.c (ira_build_conflicts): Use
10548 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10549 as the set of call-clobbered registers. Remove the
10550 call_used_or_fixed_regs mask from the calculation of
10551 temp_hard_reg_set and mask its use instead. Remove special
10552 handling of partially-clobbered registers.
10553 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10554 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10555 calculate the set of conflicting registers for calls that
10556 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10557 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10558 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10559 Use eh_edge_abi to calculate the set of registers that could
10560 be clobbered by an EH edge. Include partially-clobbered as
10561 well as fully-clobbered registers.
10563 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10565 * haifa-sched.c: Include function-abi.h.
10566 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10567 the function would need to save a register before using it.
10569 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10571 * gcse.c: Include function-abi.h.
10572 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10573 the call insn target. Invalidate partially call-clobbered
10574 registers as well as fully call-clobbered ones.
10576 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10578 * function.c (aggregate_value_p): Work out which ABI the
10579 function is using before testing which registers are at least
10580 partly preserved by a call.
10582 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10584 * early-remat.c: Include regs.h and function-abi.h.
10585 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10587 (early_remat::restrict_remat_for_unavail_regs): New function.
10588 (early_remat::restrict_remat_for_call): Likewise.
10589 (early_remat::process_block): Before calling emit_remat_insns
10590 for a previous call in the block, invalidate any candidates
10591 that would clobber call-preserved registers.
10592 (early_remat::emit_remat_insns_for_block): Likewise for the
10593 final call in a block. Do the same thing for live-in registers
10594 when calling emit_remat_insns at the head of a block.
10596 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10598 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10599 whether the current function needs to save at least part of a
10600 register before using it.
10601 (df_get_exit_block_use_set): Likewise for epilogue restores.
10603 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10605 * df-problems.c: Include regs.h and function-abi.h.
10606 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10607 sparse_invalidated_by_eh and dense_invalidated_by_call to
10608 dense_invalidated_by_eh.
10609 (df_print_bb_index): Update accordingly.
10610 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10611 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10612 that are clobbered by an EH edge. Clobber partially-clobbered
10613 registers as well as fully-clobbered ones.
10614 (df_md_confluence_n): Likewise.
10615 (df_rd_local_compute): Likewise. Update for changes to
10616 df_rd_problem_data.
10617 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10618 of registers that are clobbered by an EH edge. Includde partially-
10619 clobbered registers as well as fully-clobbered ones.
10621 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10623 * cselib.c (cselib_process_insn): If we know what mode a
10624 register was set in, check whether it is clobbered in that
10625 mode by a call. Only fall back to reg_raw_mode if that fails.
10627 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10629 * cse.c: Include regs.h and function-abi.h.
10630 (invalidate_for_call): Take the call insn as an argument.
10631 Use insn_callee_abi to get the ABI of the call and invalidate
10632 partially clobbered registers as well as fully clobbered ones.
10633 (cse_insn): Update call accordingly.
10635 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10637 * combine.c: Include function-abi.h.
10638 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10639 of the target of call insns. Invalidate partially-clobbered
10640 registers as well as fully-clobbered ones.
10642 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10644 * cfgloopanal.c: Include regs.h and function-abi.h.
10645 (init_set_costs): Use default_function_abi to test whether
10646 a general register is call-clobbered.
10648 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10650 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10651 instead of the call-clobbered sets.
10653 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10655 * caller-save.c (setup_save_areas): Remove redundant |s of
10657 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10658 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10661 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10663 * rtl.h (predefined_function_abi): Declare.
10664 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10665 instead of a boolean call_save flag.
10666 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10668 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10669 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10670 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10671 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10672 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10673 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10674 * reginfo.c (init_reg_modes_target): Likewise.
10675 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10676 instead of a boolean call_save flag.
10677 * targhooks.c: Include function-abi.h.
10678 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10679 using eh_edge_abi to choose the mode.
10681 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10683 * target.def (hard_regno_call_part_clobbered): Take an ABI
10684 identifier instead of an rtx_insn.
10685 * doc/tm.texi: Regenerate.
10686 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10687 (hook_bool_uint_uint_mode_false): New function.
10688 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10689 (hook_bool_uint_uint_mode_false): New function.
10690 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10691 Take an ABI identifier instead of an rtx_insn.
10692 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10693 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10694 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10695 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10696 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10698 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10699 * cselib.c: Include function-abi.h.
10700 (cselib_process_insn): Update call to
10701 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10702 to get the appropriate ABI identifier.
10703 * function-abi.cc (predefined_function_abi::initialize): Update call
10704 to targetm.hard_regno_call_part_clobbered.
10705 * ira-conflicts.c (ira_build_conflicts): Likewise.
10706 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10707 * lra-constraints.c: Include function-abi.h.
10708 (need_for_call_save_p): Update call to
10709 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10710 to get the appropriate ABI identifier.
10711 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10712 * regcprop.c (copyprop_hardreg_forward_1): Update call
10713 to targetm.hard_regno_call_part_clobbered.
10714 * reginfo.c (choose_hard_reg_mode): Likewise.
10715 * regrename.c (check_new_reg_p): Likewise.
10716 * reload.c (find_equiv_reg): Likewise.
10717 * reload1.c (emit_reload_insns): Likewise.
10718 * sched-deps.c: Include function-abi.h.
10719 (deps_analyze_insn): Update call to
10720 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10721 to get the appropriate ABI identifier.
10722 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10723 call to targetm.hard_regno_call_part_clobbered.
10724 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10726 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10728 * config/i386/i386.c: Include function-abi.h.
10729 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10730 if they preserve some 256-bit or 512-bit SSE registers.
10732 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10734 * target.def (insn_callee_abi): New hook.
10735 (remove_extra_call_preserved_regs): Delete.
10736 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10737 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10738 * doc/tm.texi: Regenerate.
10739 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10740 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10741 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10743 (aarch64_remove_extra_call_preserved_regs): Delete.
10744 (aarch64_insn_callee_abi): New function.
10745 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10746 (TARGET_INSN_CALLEE_ABI): New macro.
10747 * rtl.h (get_call_fndecl): Declare.
10748 (cgraph_rtl_info): Fix formatting. Tweak comment for
10749 function_used_regs. Remove function_used_regs_valid.
10750 * rtlanal.c (get_call_fndecl): Moved from final.c
10751 * function-abi.h (insn_callee_abi): Declare.
10752 (target_function_abi_info): Mention insn_callee_abi.
10753 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10754 way to get_call_reg_set_usage did.
10755 (insn_callee_abi): New function.
10756 * regs.h (get_call_reg_set_usage): Delete.
10757 * final.c: Include function-abi.h.
10758 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10759 function_used_regs before the main loop rather than afterwards.
10760 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10761 if function_used_regs ends up not being useful.
10762 (get_call_fndecl): Move to rtlanal.c
10763 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10764 * caller-save.c: Include function-abi.h.
10765 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10766 instead of get_call_reg_set_usage.
10767 * cfgcleanup.c: Include function-abi.h.
10768 (old_insns_match_p): Use insn_callee_abi instead of
10769 get_call_reg_set_usage.
10770 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10772 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10773 function_used_regs.
10774 * df-scan.c: Include function-abi.h.
10775 (df_get_call_refs): Use insn_callee_abi instead of
10776 get_call_reg_set_usage.
10777 * ira-lives.c: Include function-abi.h.
10778 (process_bb_node_lives): Use insn_callee_abi instead of
10779 get_call_reg_set_usage.
10780 * lra-lives.c: Include function-abi.h.
10781 (process_bb_lives): Use insn_callee_abi instead of
10782 get_call_reg_set_usage.
10783 * postreload.c: Include function-abi.h.
10784 (reload_combine): Use insn_callee_abi instead of
10785 get_call_reg_set_usage.
10786 * regcprop.c: Include function-abi.h.
10787 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10788 get_call_reg_set_usage.
10789 * resource.c: Include function-abi.h.
10790 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10791 instead of get_call_reg_set_usage.
10792 * var-tracking.c: Include function-abi.h.
10793 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10794 get_call_reg_set_usage.
10796 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10798 * target.def (fntype_abi): New target hook.
10799 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10800 * doc/tm.texi: Regenerate.
10801 * target.h (predefined_function_abi): Declare.
10802 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10804 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10805 * config/aarch64/aarch64.c: Include function-abi.h.
10806 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10807 (TARGET_FNTYPE_ABI): Define.
10809 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10811 * Makefile.in (OBJS): Add function-abi.o.
10812 (GTFILES): Add function-abi.h.
10813 * function-abi.cc: New file.
10814 * function-abi.h: Likewise.
10815 * emit-rtl.h (rtl_data::abi): New field.
10816 * function.c: Include function-abi.h.
10817 (prepare_function_start): Initialize crtl->abi.
10818 * read-rtl-function.c: Include regs.h and function-abi.h.
10819 (read_rtl_function_body): Initialize crtl->abi.
10820 (read_rtl_function_body_from_file_range): Likewise.
10821 * reginfo.c: Include function-abi.h.
10822 (init_reg_sets_1): Initialize default_function_abi.
10823 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10824 when making a register global.
10825 * target-globals.h (this_target_function_abi_info): Declare.
10826 (target_globals::function_abi_info): New field.
10827 (restore_target_globals): Copy it.
10828 * target-globals.c: Include function-abi.h.
10829 (default_target_globals): Initialize the function_abi_info field.
10830 (target_globals): Allocate it.
10831 (save_target_globals): Free it.
10833 2019-09-30 Nick Clifton <nickc@redhat.com>
10836 * config/frv/frv.c (frv_register_move_cost): Add break statements
10837 to avoid falling through to the wrong cases. Tidy code.
10839 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10841 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10842 For multi-registers modes, test how big each register part is.
10844 2019-09-30 Nick Clifton <nickc@redhat.com>
10847 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10848 (TARGET_ASM_SELECT_SECTION): Remove definition.
10849 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10851 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10853 * emit-rtl.c (init_raw_REG): New function.
10854 (gen_raw_REG): Use init_raw_REG.
10855 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10857 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10858 * rtl.h (rtx_init): New function.
10859 (rtx_alloca): New function.
10860 (init_raw_REG): New function.
10861 (alloca_raw_REG): New macro.
10863 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10865 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10866 (pcrel_local_address): Replace pcrel_address predicate, use the
10867 new function address_to_insn_form.
10868 (pcrel_external_address): Replace with new implementation using
10869 address_to_insn_form..
10870 (prefixed_mem_operand): Delete predicate which is now unused.
10871 (pcrel_external_mem_operand): Delete predicate which is now
10873 * config/rs6000/rs6000-protos.h (enum insn_form): New
10875 (enum non_prefixed_form): New enumeration.
10876 (address_to_insn_form): New declaration.
10877 (prefixed_load_p): New declaration.
10878 (prefixed_store_p): New declaration.
10879 (prefixed_paddi_p): New declaration.
10880 (rs6000_asm_output_opcode): New declaration.
10881 (rs6000_final_prescan_insn): Move declaration and update calling
10883 (address_is_prefixed): New helper inline function.
10884 * config/rs6000/rs6000.c(print_operand_address): Check for either
10885 PC-relative local symbols or PC-relative external symbols.
10886 (rs6000_emit_move): Support loading PC-relative addresses.
10887 (mode_supports_prefixed_address_p): Delete, no longer used.
10888 (rs6000_prefixed_address_mode_p): Delete, no longer used.
10889 (address_to_insn_form): New function to decode an address format.
10890 (reg_to_non_prefixed): New function to identify what the
10891 non-prefixed memory instruction format is for a register.
10892 (prefixed_load_p): New function to identify prefixed loads.
10893 (prefixed_store_p): New function to identify prefixed stores.
10894 (prefixed_paddi_p): New function to identify prefixed load
10896 (next_insn_prefixed_p): New static state variable.
10897 (rs6000_final_prescan_insn): New function to determine if an insn
10898 uses a prefixed instruction.
10899 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
10900 prefixed instruction.
10901 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
10902 (ASM_OUTPUT_OPCODE): New target hook.
10903 * config/rs6000/rs6000.md (prefixed): New insn attribute for
10904 prefixed instructions.
10905 (prefixed_length): New insn attribute for the size of prefixed
10907 (non_prefixed_length): New insn attribute for the size of
10908 non-prefixed instructions.
10909 (pcrel_local_addr): New insn to load up a local PC-relative
10911 (pcrel_extern_addr): New insn to load up an external PC-relative
10913 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
10914 GPR and loading a 128-bit floating point type to a GPR.
10916 2019-09-30 Richard Biener <rguenther@suse.de>
10918 * gimple.c (gimple_get_lhs): For PHIs return the result.
10919 * tree-vectorizer.h (vectorizable_live_operation): Also get the
10920 SLP instance as argument.
10921 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
10922 double-reduction PHIs with vectorizable_lc_phi.
10923 (vect_analyze_loop_operations): Adjust.
10924 (vect_create_epilog_for_reduction): Remove all code not dealing
10925 with reduction LC PHI or epilogue generation.
10926 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
10927 for live stmts of reductions.
10928 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
10929 do not handle defs that are not vect_internal_def.
10930 (can_vectorize_live_stmts): Adjust.
10931 (vect_analyze_stmt): When the vectorized stmt defined a value
10932 used on backedges adjust the backedge uses of vectorized PHIs.
10934 2019-09-30 Martin Jambor <mjambor@suse.cz>
10937 * tree-inline.c (force_value_to_type): New function.
10938 (setup_one_parameter): Use force_value_to_type to convert type.
10939 * tree-inline.c (force_value_to_type): Declare.
10940 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
10941 with register type mismatches.
10943 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
10945 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
10947 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
10948 * config/rs6000/t-freebsd64: Make use of the above define and build
10949 the 32-bit libraries with secure-plt.
10951 2019-09-30 Jakub Jelinek <jakub@redhat.com>
10954 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
10955 gen_int_mode instead of GEN_INT.
10957 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
10959 * config/darwin.c (gen_macho_low): Amend to include the mode
10961 (machopic_indirect_data_reference): Amend gen_macho_low call
10962 to include mode argument
10963 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
10964 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
10965 the macho_high expander and two define_insn entries.
10967 2019-09-29 Jakub Jelinek <jakub@redhat.com>
10970 * optc-save-gen.awk: Fix up printing string option differences.
10972 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10974 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
10975 vec_perm cost to 1 for non-Power7 VSX architectures.
10977 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
10979 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
10980 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
10981 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
10983 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
10985 * config/darwin.c (gen_macho_high): Amend to include the mode
10987 (machopic_indirect_data_reference): Amend gen_macho_high call
10988 to include mode argument.
10989 (machopic_legitimize_pic_address): Likewise.
10990 * config/rs6000/rs6000.c (rs6000_legitimize_address):
10991 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
10992 the macho_high expander and two define_insn entries.
10994 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
10997 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
10999 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11002 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11003 std::string::compare instead of std::string::find.
11005 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11007 * configure: Regenerate.
11009 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11011 PR middle-end/91920
11012 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11013 variables as shared.
11015 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11017 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11018 replaces the expander and two define_insn entries.
11019 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11021 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11023 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11025 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11026 (fibonacci_heap::nodes): Likewise.
11027 (fibonacci_heap::min_key): Likewise.
11028 (fibonacci_heap::min): Likewise.
11030 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11032 * cgraph.c (cgraph_node::get_fun): Make const.
11033 * cgraph.h (cgraph_node::get_fun): Likewise.
11035 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11038 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11041 2019-09-27 Richard Biener <rguenther@suse.de>
11043 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11044 (STMT_VINFO_REDUC_FN): Likewise.
11045 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11046 STMT_VINFO_REDUC_FN.
11047 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11048 for condition reductions.
11049 (vect_create_epilog_for_reduction): Compute all required state
11050 from the stmt to be vectorized.
11051 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11052 invocation and remove then dead code. For single def-use chains
11053 record only a single vector stmt.
11055 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11057 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11058 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11059 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11060 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11061 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11062 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11063 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11064 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11065 (aarch64_general_builtin_rsqrt): Declare.
11066 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11068 (aarch64_mangle_builtin_type): Rename to...
11069 (aarch64_general_mangle_builtin_type): ...this.
11070 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11071 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11072 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11073 aarch64_general_add_builtin instead of add_builtin_function.
11074 (aarch64_init_builtins): Rename to...
11075 (aarch64_general_init_builtins): ...this. Use
11076 aarch64_general_add_builtin instead of add_builtin_function.
11077 (aarch64_builtin_decl): Rename to...
11078 (aarch64_general_builtin_decl): ...this and remove the unused
11080 (aarch64_expand_builtin): Rename to...
11081 (aarch64_general_expand_builtin): ...this and remove the unused
11083 (aarch64_builtin_rsqrt): Rename to...
11084 (aarch64_general_builtin_rsqrt): ...this.
11085 (aarch64_fold_builtin): Rename to...
11086 (aarch64_general_fold_builtin): ...this. Take the function subcode
11087 and return type as arguments. Remove the "ignored" argument.
11088 (aarch64_gimple_fold_builtin): Rename to...
11089 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11090 subcode and gcall as arguments, and return the new function call.
11091 * config/aarch64/aarch64.c (aarch64_init_builtins)
11092 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11093 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11094 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11095 instead of aarch64_builtin_rsqrt.
11096 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11097 instead of aarch64_mangle_builtin_type.
11099 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11101 * target.def (check_builtin_call): New target hook.
11102 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11103 * doc/tm.texi: Regenerate.
11105 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11107 PR tree-optimization/91909
11108 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11109 reduc_index parameter. When handling COND_REDUCTION, make sure
11110 that the reduction phi operand is in the correct arm of the
11112 (vectorizable_reduction): Pass reduc_index to the above.
11114 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11116 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11117 New combine pattern.
11119 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11121 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11122 loop instruction into new basic block before the loop when basic
11123 block that precedes the loop is empty.
11125 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11127 * function.c (gimplify_parameters): Use build_clobber function.
11128 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11129 * tree-inline.c (expand_call_inline): Likewise.
11130 * tree-sra.c (clobber_subtree): Likewise.
11131 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11132 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11133 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11134 lower_omp_target): Likewise.
11135 * omp-expand.c (expand_omp_for_generic): Likewise.
11136 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11138 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11140 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11141 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11142 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11143 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11144 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11145 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11146 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11147 LD_ELEMREV_V16QI): Use the PURE attribute.
11149 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11151 * config/rs6000/darwin.md: Replace the expanders for
11152 load_macho_picbase and reload_macho_picbase with use of '@'
11153 and <mode> in their respective define_insns.
11154 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11155 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11156 Pmode to gen_load_macho_picbase.
11157 * config/rs6000/rs6000.md: Likewise.
11159 2019-09-25 Richard Biener <rguenther@suse.de>
11161 PR tree-optimization/91896
11162 * tree-vect-loop.c (vectorizable_reduction): The single
11163 def-use cycle optimization cannot apply when there's more
11164 than one pattern stmt involved.
11166 2019-09-26 Richard Biener <rguenther@suse.de>
11168 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11169 loop-closed PHIs that are vect_internal_def.
11170 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11172 (vectorizable_lc_phi): New.
11173 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11174 (vect_transform_stmt): Likewise.
11175 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11176 (vectorizable_lc_phi): Declare.
11178 2019-09-26 Richard Biener <rguenther@suse.de>
11180 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11181 vectorizable_reduction for vect_double_reduction_def.
11182 (vect_transform_loop): Likewise.
11183 (vect_create_epilog_for_reduction): Move double-reduction
11184 PHI creation and preheader argument setting of PHIs ...
11185 (vectorizable_reduction): ... here. Also process
11186 vect_double_reduction_def PHIs, creating the vectorized
11187 PHI nodes, remembering the scalar adjustment computed for
11188 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11189 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11190 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11191 Initialize STMT_VINFO_REDUC_CODE.
11192 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11193 (_stmt_vec_info::reduc_code): Likewise.
11194 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11195 (STMT_VINFO_REDUC_CODE): Likewise.
11197 2019-09-26 Matt Turner <mattst88@gmail.com>
11200 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11201 (mtune=): Add Negative(mtune=).
11202 (mcpu=): Add Negative(mcpu=).
11203 * config/arm/arm.opt: Likewise.
11205 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11207 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11208 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11210 * config/arm/arm_acle.h: Define builtins for the above.
11211 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11212 (simd32_op): Handle the above.
11213 * config/arm/unspecs.md: Define unspecs for the above.
11215 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11217 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11218 (arm_<sup>xtb16): Likewise.
11219 (arm_usada8): Likewise.
11220 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11221 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11222 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11223 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11224 __sxtb16, __uxtab16, __uxtb16): Define.
11225 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11226 * config/arm/unspecs.md: Define unspecs for the above.
11227 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11228 (USXTB16): Likewise.
11229 (simd32_op): New int_attribute.
11230 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11231 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11233 2019-09-26 Martin Jambor <mjambor@suse.cz>
11235 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11238 2019-09-26 Martin Jambor <mjambor@suse.cz>
11240 * ipa-sra.c (process_scan_results): Fix continue condition.
11242 2019-09-26 Martin Liska <mliska@suse.cz>
11244 PR tree-optimization/91885
11245 * tree-vectorizer.c (try_vectorize_loop_1): Add
11246 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11248 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11250 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11251 aarch64_plus_immediate rather than aarch64_uimm12_shift
11252 to test for valid PLUS immediates.
11254 2019-09-25 Martin Jambor <mjambor@suse.cz>
11256 * tree-sra.c (no_accesses_p): Remove.
11257 (no_accesses_representant): Likewise.
11259 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11261 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11263 (vaba_s16): Likewise.
11264 (vaba_s32): Likewise.
11265 (vaba_u8): Likewise.
11266 (vaba_u16): Likewise.
11267 (vaba_u32): Likewise.
11268 (vabal_high_s8): Likewise.
11269 (vabal_high_s16): Likewise.
11270 (vabal_high_s32): Likewise.
11271 (vabal_high_u8): Likewise.
11272 (vabal_high_u16): Likewise.
11273 (vabal_high_u32): Likewise.
11274 (vabal_s8): Likewise.
11275 (vabal_s16): Likewise.
11276 (vabal_s32): Likewise.
11277 (vabal_u8): Likewise.
11278 (vabal_u16): Likewise.
11279 (vabal_u32): Likewise.
11280 (vabaq_s8): Likewise.
11281 (vabaq_s16): Likewise.
11282 (vabaq_s32): Likewise.
11283 (vabaq_u8): Likewise.
11284 (vabaq_u16): Likewise.
11285 (vabaq_u32): Likewise.
11286 (vabd_s8): Likewise.
11287 (vabd_s16): Likewise.
11288 (vabd_s32): Likewise.
11289 (vabd_u8): Likewise.
11290 (vabd_u16): Likewise.
11291 (vabd_u32): Likewise.
11292 (vabdl_high_s8): Likewise.
11293 (vabdl_high_s16): Likewise.
11294 (vabdl_high_s32): Likewise.
11295 (vabdl_high_u8): Likewise.
11296 (vabdl_high_u16): Likewise.
11297 (vabdl_high_u32): Likewise.
11298 (vabdl_s8): Likewise.
11299 (vabdl_s16): Likewise.
11300 (vabdl_s32): Likewise.
11301 (vabdl_u8): Likewise.
11302 (vabdl_u16): Likewise.
11303 (vabdl_u32): Likewise.
11304 (vabdq_s8): Likewise.
11305 (vabdq_s16): Likewise.
11306 (vabdq_s32): Likewise.
11307 (vabdq_u8): Likewise.
11308 (vabdq_u16): Likewise.
11309 (vabdq_u32): Likewise.
11310 (vaddlv_s8): Likewise.
11311 (vaddlv_s16): Likewise.
11312 (vaddlv_u8): Likewise.
11313 (vaddlv_u16): Likewise.
11314 (vaddlvq_s8): Likewise.
11315 (vaddlvq_s16): Likewise.
11316 (vaddlvq_s32): Likewise.
11317 (vaddlvq_u8): Likewise.
11318 (vaddlvq_u16): Likewise.
11319 (vaddlvq_u32): Likewise.
11320 (vcvtx_f32_f64): Likewise.
11321 (vcvtx_high_f32_f64): Likewise.
11322 (vcvtxd_f32_f64): Likewise.
11323 (vmla_n_f32): Likewise.
11324 (vmla_n_s16): Likewise.
11325 (vmla_n_s32): Likewise.
11326 (vmla_n_u16): Likewise.
11327 (vmla_n_u32): Likewise.
11328 (vmla_s8): Likewise.
11329 (vmla_s16): Likewise.
11330 (vmla_s32): Likewise.
11331 (vmla_u8): Likewise.
11332 (vmla_u16): Likewise.
11333 (vmla_u32): Likewise.
11334 (vmlal_high_n_s16): Likewise.
11335 (vmlal_high_n_s32): Likewise.
11336 (vmlal_high_n_u16): Likewise.
11337 (vmlal_high_n_u32): Likewise.
11338 (vmlal_high_s8): Likewise.
11339 (vmlal_high_s16): Likewise.
11340 (vmlal_high_s32): Likewise.
11341 (vmlal_high_u8): Likewise.
11342 (vmlal_high_u16): Likewise.
11343 (vmlal_high_u32): Likewise.
11344 (vmlal_n_s16): Likewise.
11345 (vmlal_n_s32): Likewise.
11346 (vmlal_n_u16): Likewise.
11347 (vmlal_n_u32): Likewise.
11348 (vmlal_s8): Likewise.
11349 (vmlal_s16): Likewise.
11350 (vmlal_s32): Likewise.
11351 (vmlal_u8): Likewise.
11352 (vmlal_u16): Likewise.
11353 (vmlal_u32): Likewise.
11354 (vmlaq_n_f32): Likewise.
11355 (vmlaq_n_s16): Likewise.
11356 (vmlaq_n_s32): Likewise.
11357 (vmlaq_n_u16): Likewise.
11358 (vmlaq_n_u32): Likewise.
11359 (vmlaq_s8): Likewise.
11360 (vmlaq_s16): Likewise.
11361 (vmlaq_s32): Likewise.
11362 (vmlaq_u8): Likewise.
11363 (vmlaq_u16): Likewise.
11364 (vmlaq_u32): Likewise.
11365 (vmls_n_f32): Likewise.
11366 (vmls_n_s16): Likewise.
11367 (vmls_n_s32): Likewise.
11368 (vmls_n_u16): Likewise.
11369 (vmls_n_u32): Likewise.
11370 (vmls_s8): Likewise.
11371 (vmls_s16): Likewise.
11372 (vmls_s32): Likewise.
11373 (vmls_u8): Likewise.
11374 (vmls_u16): Likewise.
11375 (vmls_u32): Likewise.
11376 (vmlsl_high_n_s16): Likewise.
11377 (vmlsl_high_n_s32): Likewise.
11378 (vmlsl_high_n_u16): Likewise.
11379 (vmlsl_high_n_u32): Likewise.
11380 (vmlsl_high_s8): Likewise.
11381 (vmlsl_high_s16): Likewise.
11382 (vmlsl_high_s32): Likewise.
11383 (vmlsl_high_u8): Likewise.
11384 (vmlsl_high_u16): Likewise.
11385 (vmlsl_high_u32): Likewise.
11386 (vmlsl_n_s16): Likewise.
11387 (vmlsl_n_s32): Likewise.
11388 (vmlsl_n_u16): Likewise.
11389 (vmlsl_n_u32): Likewise.
11390 (vmlsl_s8): Likewise.
11391 (vmlsl_s16): Likewise.
11392 (vmlsl_s32): Likewise.
11393 (vmlsl_u8): Likewise.
11394 (vmlsl_u16): Likewise.
11395 (vmlsl_u32): Likewise.
11396 (vmlsq_n_f32): Likewise.
11397 (vmlsq_n_s16): Likewise.
11398 (vmlsq_n_s32): Likewise.
11399 (vmlsq_n_u16): Likewise.
11400 (vmlsq_n_u32): Likewise.
11401 (vmlsq_s8): Likewise.
11402 (vmlsq_s16): Likewise.
11403 (vmlsq_s32): Likewise.
11404 (vmlsq_u8): Likewise.
11405 (vmlsq_u16): Likewise.
11406 (vmlsq_u32): Likewise.
11407 (vmovl_high_s8): Likewise.
11408 (vmovl_high_s16): Likewise.
11409 (vmovl_high_s32): Likewise.
11410 (vmovl_high_u8): Likewise.
11411 (vmovl_high_u16): Likewise.
11412 (vmovl_high_u32): Likewise.
11413 (vmovl_s8): Likewise.
11414 (vmovl_s16): Likewise.
11415 (vmovl_s32): Likewise.
11416 (vmovl_u8): Likewise.
11417 (vmovl_u16): Likewise.
11418 (vmovl_u32): Likewise.
11419 (vmovn_high_s16): Likewise.
11420 (vmovn_high_s32): Likewise.
11421 (vmovn_high_s64): Likewise.
11422 (vmovn_high_u16): Likewise.
11423 (vmovn_high_u32): Likewise.
11424 (vmovn_high_u64): Likewise.
11425 (vmovn_s16): Likewise.
11426 (vmovn_s32): Likewise.
11427 (vmovn_s64): Likewise.
11428 (vmovn_u16): Likewise.
11429 (vmovn_u32): Likewise.
11430 (vmovn_u64): Likewise.
11431 (vmull_high_n_s16): Likewise.
11432 (vmull_high_n_s32): Likewise.
11433 (vmull_high_n_u16): Likewise.
11434 (vmull_high_n_u32): Likewise.
11435 (vmull_high_p8): Likewise.
11436 (vmull_high_s8): Likewise.
11437 (vmull_high_s16): Likewise.
11438 (vmull_high_s32): Likewise.
11439 (vmull_high_u8): Likewise.
11440 (vmull_high_u16): Likewise.
11441 (vmull_high_u32): Likewise.
11442 (vmull_n_s16): Likewise.
11443 (vmull_n_s32): Likewise.
11444 (vmull_n_u16): Likewise.
11445 (vmull_n_u32): Likewise.
11446 (vmull_p8): Likewise.
11447 (vmull_s8): Likewise.
11448 (vmull_s16): Likewise.
11449 (vmull_s32): Likewise.
11450 (vmull_u8): Likewise.
11451 (vmull_u16): Likewise.
11452 (vmull_u32): Likewise.
11453 (vpadal_s8): Likewise.
11454 (vpadal_s16): Likewise.
11455 (vpadal_s32): Likewise.
11456 (vpadal_u8): Likewise.
11457 (vpadal_u16): Likewise.
11458 (vpadal_u32): Likewise.
11459 (vpadalq_s8): Likewise.
11460 (vpadalq_s16): Likewise.
11461 (vpadalq_s32): Likewise.
11462 (vpadalq_u8): Likewise.
11463 (vpadalq_u16): Likewise.
11464 (vpadalq_u32): Likewise.
11465 (vpaddl_s8): Likewise.
11466 (vpaddl_s16): Likewise.
11467 (vpaddl_s32): Likewise.
11468 (vpaddl_u8): Likewise.
11469 (vpaddl_u16): Likewise.
11470 (vpaddl_u32): Likewise.
11471 (vpaddlq_s8): Likewise.
11472 (vpaddlq_s16): Likewise.
11473 (vpaddlq_s32): Likewise.
11474 (vpaddlq_u8): Likewise.
11475 (vpaddlq_u16): Likewise.
11476 (vpaddlq_u32): Likewise.
11477 (vpaddq_s8): Likewise.
11478 (vpaddq_s16): Likewise.
11479 (vpaddq_s32): Likewise.
11480 (vpaddq_s64): Likewise.
11481 (vpaddq_u8): Likewise.
11482 (vpaddq_u16): Likewise.
11483 (vpaddq_u32): Likewise.
11484 (vpaddq_u64): Likewise.
11485 (vqdmulh_n_s16): Likewise.
11486 (vqdmulh_n_s32): Likewise.
11487 (vqdmulhq_n_s16): Likewise.
11488 (vqdmulhq_n_s32): Likewise.
11489 (vqmovn_high_s16): Likewise.
11490 (vqmovn_high_s32): Likewise.
11491 (vqmovn_high_s64): Likewise.
11492 (vqmovn_high_u16): Likewise.
11493 (vqmovn_high_u32): Likewise.
11494 (vqmovn_high_u64): Likewise.
11495 (vqmovun_high_s16): Likewise.
11496 (vqmovun_high_s32): Likewise.
11497 (vqmovun_high_s64): Likewise.
11498 (vqrdmulh_n_s16): Likewise.
11499 (vqrdmulh_n_s32): Likewise.
11500 (vqrdmulhq_n_s16): Likewise.
11501 (vqrdmulhq_n_s32): Likewise.
11502 (vrsqrte_u32): Likewise.
11503 (vrsqrteq_u32): Likewise.
11504 (vtst_p8): Likewise.
11505 (vtst_p16): Likewise.
11506 (vtst_p64): Likewise.
11507 (vtstq_p8): Likewise.
11508 (vtstq_p16): Likewise.
11509 (vtstq_p64): Likewise.
11510 (vaddlv_s32): Likewise.
11511 (vaddlv_u32): Likewise.
11512 (vqtbl1_p8): Likewise.
11513 (vqtbl1_s8): Likewise.
11514 (vqtbl1_u8): Likewise.
11515 (vqtbl1q_p8): Likewise.
11516 (vqtbl1q_s8): Likewise.
11517 (vqtbl1q_u8): Likewise.
11518 (vqtbx1_s8): Likewise.
11519 (vqtbx1_u8): Likewise.
11520 (vqtbx1_p8): Likewise.
11521 (vqtbx1q_s8): Likewise.
11522 (vqtbx1q_u8): Likewise.
11523 (vqtbx1q_p8): Likewise.
11524 (vtbl1_s8): Likewise.
11525 (vtbl1_u8): Likewise.
11526 (vtbl1_p8): Likewise.
11527 (vtbl2_s8): Likewise.
11528 (vtbl2_u8): Likewise.
11529 (vtbl2_p8): Likewise.
11530 (vtbl3_s8): Likewise.
11531 (vtbl3_u8): Likewise.
11532 (vtbl3_p8): Likewise.
11533 (vtbl4_s8): Likewise.
11534 (vtbl4_u8): Likewise.
11535 (vtbl4_p8): Likewise.
11536 (vtbx2_s8): Likewise.
11537 (vtbx2_u8): Likewise.
11538 (vtbx2_p8): Likewise.
11539 (vld1_f32): Likewise.
11540 (vld1_f64): Likewise.
11541 (vld1_p8): Likewise.
11542 (vld1_p16): Likewise.
11543 (vld1_p64): Likewise.
11544 (vld1_s8): Likewise.
11545 (vld1_s16): Likewise.
11546 (vld1_s32): Likewise.
11547 (vld1_s64): Likewise.
11548 (vld1_u8): Likewise.
11549 (vld1_u16): Likewise.
11550 (vld1_u32): Likewise.
11551 (vld1_u64): Likewise.
11552 (vld1q_f32): Likewise.
11553 (vld1q_f64): Likewise.
11554 (vld1q_p8): Likewise.
11555 (vld1q_p16): Likewise.
11556 (vld1q_p64): Likewise.
11557 (vld1q_s8): Likewise.
11558 (vld1q_s16): Likewise.
11559 (vld1q_s32): Likewise.
11560 (vld1q_s64): Likewise.
11561 (vld1q_u8): Likewise.
11562 (vld1q_u16): Likewise.
11563 (vld1q_u32): Likewise.
11564 (vld1q_u64): Likewise.
11565 (vpmax_s8): Likewise.
11566 (vpmax_s16): Likewise.
11567 (vpmax_s32): Likewise.
11568 (vpmax_u8): Likewise.
11569 (vpmax_u16): Likewise.
11570 (vpmax_u32): Likewise.
11571 (vpmaxq_s8): Likewise.
11572 (vpmaxq_s16): Likewise.
11573 (vpmaxq_s32): Likewise.
11574 (vpmaxq_u8): Likewise.
11575 (vpmaxq_u16): Likewise.
11576 (vpmaxq_u32): Likewise.
11577 (vpmax_f32): Likewise.
11578 (vpmaxq_f32): Likewise.
11579 (vpmaxq_f64): Likewise.
11580 (vpmaxqd_f64): Likewise.
11581 (vpmaxs_f32): Likewise.
11582 (vpmaxnm_f32): Likewise.
11583 (vpmaxnmq_f32): Likewise.
11584 (vpmaxnmq_f64): Likewise.
11585 (vpmaxnmqd_f64): Likewise.
11586 (vpmaxnms_f32): Likewise.
11587 (vpmin_s8): Likewise.
11588 (vpmin_s16): Likewise.
11589 (vpmin_s32): Likewise.
11590 (vpmin_u8): Likewise.
11591 (vpmin_u16): Likewise.
11592 (vpmin_u32): Likewise.
11593 (vpminq_s8): Likewise.
11594 (vpminq_s16): Likewise.
11595 (vpminq_s32): Likewise.
11596 (vpminq_u8): Likewise.
11597 (vpminq_u16): Likewise.
11598 (vpminq_u32): Likewise.
11599 (vpmin_f32): Likewise.
11600 (vpminq_f32): Likewise.
11601 (vpminq_f64): Likewise.
11602 (vpminqd_f64): Likewise.
11603 (vpmins_f32): Likewise.
11604 (vpminnm_f32): Likewise.
11605 (vpminnmq_f32): Likewise.
11606 (vpminnmq_f64): Likewise.
11607 (vpminnmqd_f64): Likewise.
11608 (vpminnms_f32): Likewise.
11609 (vmla_f32): Likewise.
11610 (vmlaq_f32): Likewise.
11611 (vmlaq_f64): Likewise.
11612 (vmls_f32): Likewise.
11613 (vmlsq_f32): Likewise.
11614 (vmlsq_f64): Likewise.
11615 (vqtbl2_s8): Likewise.
11616 (vqtbl2_u8): Likewise.
11617 (vqtbl2_p8): Likewise.
11618 (vqtbl2q_s8): Likewise.
11619 (vqtbl2q_u8): Likewise.
11620 (vqtbl2q_p8): Likewise.
11621 (vqtbl3_s8): Likewise.
11622 (vqtbl3_u8): Likewise.
11623 (vqtbl3_p8): Likewise.
11624 (vqtbl3q_s8): Likewise.
11625 (vqtbl3q_u8): Likewise.
11626 (vqtbl3q_p8): Likewise.
11627 (vqtbl4_s8): Likewise.
11628 (vqtbl4_u8): Likewise.
11629 (vqtbl4_p8): Likewise.
11630 (vqtbl4q_s8): Likewise.
11631 (vqtbl4q_u8): Likewise.
11632 (vqtbl4q_p8): Likewise.
11633 (vqtbx2_s8): Likewise.
11634 (vqtbx2_u8): Likewise.
11635 (vqtbx2_p8): Likewise.
11636 (vqtbx2q_s8): Likewise.
11637 (vqtbx2q_u8): Likewise.
11638 (vqtbx2q_p8): Likewise.
11639 (vqtbx3_s8): Likewise.
11640 (vqtbx3_u8): Likewise.
11641 (vqtbx3_p8): Likewise.
11642 (vqtbx3q_s8): Likewise.
11643 (vqtbx3q_u8): Likewise.
11644 (vqtbx3q_p8): Likewise.
11645 (vqtbx4_s8): Likewise.
11646 (vqtbx4_u8): Likewise.
11647 (vqtbx4_p8): Likewise.
11648 (vqtbx4q_s8): Likewise.
11649 (vqtbx4q_u8): Likewise.
11650 (vqtbx4q_p8): Likewise.
11651 (vrev16_p8): Likewise.
11652 (vrev16_s8): Likewise.
11653 (vrev16_u8): Likewise.
11654 (vrev16q_p8): Likewise.
11655 (vrev16q_s8): Likewise.
11656 (vrev16q_u8): Likewise.
11657 (vrev32_p8): Likewise.
11658 (vrev32_p16): Likewise.
11659 (vrev32_s8): Likewise.
11660 (vrev32_s16): Likewise.
11661 (vrev32_u8): Likewise.
11662 (vrev32_u16): Likewise.
11663 (vrev32q_p8): Likewise.
11664 (vrev32q_p16): Likewise.
11665 (vrev32q_s8): Likewise.
11666 (vrev32q_s16): Likewise.
11667 (vrev32q_u8): Likewise.
11668 (vrev32q_u16): Likewise.
11669 (vrev64_f32): Likewise.
11670 (vrev64_p8): Likewise.
11671 (vrev64_p16): Likewise.
11672 (vrev64_s8): Likewise.
11673 (vrev64_s16): Likewise.
11674 (vrev64_s32): Likewise.
11675 (vrev64_u8): Likewise.
11676 (vrev64_u16): Likewise.
11677 (vrev64_u32): Likewise.
11678 (vrev64q_f32): Likewise.
11679 (vrev64q_p8): Likewise.
11680 (vrev64q_p16): Likewise.
11681 (vrev64q_s8): Likewise.
11682 (vrev64q_s16): Likewise.
11683 (vrev64q_s32): Likewise.
11684 (vrev64q_u8): Likewise.
11685 (vrev64q_u16): Likewise.
11686 (vrev64q_u32): Likewise.
11687 (vsha1cq_u32): Likewise.
11688 (vsha1mq_u32): Likewise.
11689 (vsha1pq_u32): Likewise.
11690 (vsha1h_u32): Likewise.
11691 (vsha1su0q_u32): Likewise.
11692 (vsha1su1q_u32): Likewise.
11693 (vsha256hq_u32): Likewise.
11694 (vsha256h2q_u32): Likewise.
11695 (vsha256su0q_u32): Likewise.
11696 (vsha256su1q_u32): Likewise.
11697 (vmull_p64): Likewise.
11698 (vmull_high_p64): Likewise.
11699 (vsqrt_f32): Likewise.
11700 (vsqrtq_f32): Likewise.
11701 (vsqrt_f64): Likewise.
11702 (vsqrtq_f64): Likewise.
11703 (vst1_f32): Likewise.
11704 (vst1_f64): Likewise.
11705 (vst1_p8): Likewise.
11706 (vst1_p16): Likewise.
11707 (vst1_p64): Likewise.
11708 (vst1_s8): Likewise.
11709 (vst1_s16): Likewise.
11710 (vst1_s32): Likewise.
11711 (vst1_s64): Likewise.
11712 (vst1_u8): Likewise.
11713 (vst1_u16): Likewise.
11714 (vst1_u32): Likewise.
11715 (vst1_u64): Likewise.
11716 (vst1q_f32): Likewise.
11717 (vst1q_f64): Likewise.
11718 (vst1q_p8): Likewise.
11719 (vst1q_p16): Likewise.
11720 (vst1q_p64): Likewise.
11721 (vst1q_s8): Likewise.
11722 (vst1q_s16): Likewise.
11723 (vst1q_s32): Likewise.
11724 (vst1q_s64): Likewise.
11725 (vst1q_u8): Likewise.
11726 (vst1q_u16): Likewise.
11727 (vst1q_u32): Likewise.
11728 (vst1q_u64): Likewise.
11729 (vst1_s64_x2): Likewise.
11730 (vst1_u64_x2): Likewise.
11731 (vst1_f64_x2): Likewise.
11732 (vst1_s8_x2): Likewise.
11733 (vst1_p8_x2): Likewise.
11734 (vst1_s16_x2): Likewise.
11735 (vst1_p16_x2): Likewise.
11736 (vst1_s32_x2): Likewise.
11737 (vst1_u8_x2): Likewise.
11738 (vst1_u16_x2): Likewise.
11739 (vst1_u32_x2): Likewise.
11740 (vst1_f16_x2): Likewise.
11741 (vst1_f32_x2): Likewise.
11742 (vst1_p64_x2): Likewise.
11743 (vst1q_s8_x2): Likewise.
11744 (vst1q_p8_x2): Likewise.
11745 (vst1q_s16_x2): Likewise.
11746 (vst1q_p16_x2): Likewise.
11747 (vst1q_s32_x2): Likewise.
11748 (vst1q_s64_x2): Likewise.
11749 (vst1q_u8_x2): Likewise.
11750 (vst1q_u16_x2): Likewise.
11751 (vst1q_u32_x2): Likewise.
11752 (vst1q_u64_x2): Likewise.
11753 (vst1q_f16_x2): Likewise.
11754 (vst1q_f32_x2): Likewise.
11755 (vst1q_f64_x2): Likewise.
11756 (vst1q_p64_x2): Likewise.
11757 (vst1_s64_x3): Likewise.
11758 (vst1_u64_x3): Likewise.
11759 (vst1_f64_x3): Likewise.
11760 (vst1_s8_x3): Likewise.
11761 (vst1_p8_x3): Likewise.
11762 (vst1_s16_x3): Likewise.
11763 (vst1_p16_x3): Likewise.
11764 (vst1_s32_x3): Likewise.
11765 (vst1_u8_x3): Likewise.
11766 (vst1_u16_x3): Likewise.
11767 (vst1_u32_x3): Likewise.
11768 (vst1_f16_x3): Likewise.
11769 (vst1_f32_x3): Likewise.
11770 (vst1_p64_x3): Likewise.
11771 (vst1q_s8_x3): Likewise.
11772 (vst1q_p8_x3): Likewise.
11773 (vst1q_s16_x3): Likewise.
11774 (vst1q_p16_x3): Likewise.
11775 (vst1q_s32_x3): Likewise.
11776 (vst1q_s64_x3): Likewise.
11777 (vst1q_u8_x3): Likewise.
11778 (vst1q_u16_x3): Likewise.
11779 (vst1q_u32_x3): Likewise.
11780 (vst1q_u64_x3): Likewise.
11781 (vst1q_f16_x3): Likewise.
11782 (vst1q_f32_x3): Likewise.
11783 (vst1q_f64_x3): Likewise.
11784 (vst1q_p64_x3): Likewise.
11785 (vst2_s64): Likewise.
11786 (vst2_u64): Likewise.
11787 (vst2_f64): Likewise.
11788 (vst2_s8): Likewise.
11789 (vst2_p8): Likewise.
11790 (vst2_s16): Likewise.
11791 (vst2_p16): Likewise.
11792 (vst2_s32): Likewise.
11793 (vst2_u8): Likewise.
11794 (vst2_u16): Likewise.
11795 (vst2_u32): Likewise.
11796 (vst2_f16): Likewise.
11797 (vst2_f32): Likewise.
11798 (vst2_p64): Likewise.
11799 (vst2q_s8): Likewise.
11800 (vst2q_p8): Likewise.
11801 (vst2q_s16): Likewise.
11802 (vst2q_p16): Likewise.
11803 (vst2q_s32): Likewise.
11804 (vst2q_s64): Likewise.
11805 (vst2q_u8): Likewise.
11806 (vst2q_u16): Likewise.
11807 (vst2q_u32): Likewise.
11808 (vst2q_u64): Likewise.
11809 (vst2q_f16): Likewise.
11810 (vst2q_f32): Likewise.
11811 (vst2q_f64): Likewise.
11812 (vst2q_p64): Likewise.
11813 (vst3_s64): Likewise.
11814 (vst3_u64): Likewise.
11815 (vst3_f64): Likewise.
11816 (vst3_s8): Likewise.
11817 (vst3_p8): Likewise.
11818 (vst3_s16): Likewise.
11819 (vst3_p16): Likewise.
11820 (vst3_s32): Likewise.
11821 (vst3_u8): Likewise.
11822 (vst3_u16): Likewise.
11823 (vst3_u32): Likewise.
11824 (vst3_f16): Likewise.
11825 (vst3_f32): Likewise.
11826 (vst3_p64): Likewise.
11827 (vst3q_s8): Likewise.
11828 (vst3q_p8): Likewise.
11829 (vst3q_s16): Likewise.
11830 (vst3q_p16): Likewise.
11831 (vst3q_s32): Likewise.
11832 (vst3q_s64): Likewise.
11833 (vst3q_u8): Likewise.
11834 (vst3q_u16): Likewise.
11835 (vst3q_u32): Likewise.
11836 (vst3q_u64): Likewise.
11837 (vst3q_f16): Likewise.
11838 (vst3q_f32): Likewise.
11839 (vst3q_f64): Likewise.
11840 (vst3q_p64): Likewise.
11841 (vst4_s64): Likewise.
11842 (vst4_u64): Likewise.
11843 (vst4_f64): Likewise.
11844 (vst4_s8): Likewise.
11845 (vst4_p8): Likewise.
11846 (vst4_s16): Likewise.
11847 (vst4_p16): Likewise.
11848 (vst4_s32): Likewise.
11849 (vst4_u8): Likewise.
11850 (vst4_u16): Likewise.
11851 (vst4_u32): Likewise.
11852 (vst4_f16): Likewise.
11853 (vst4_f32): Likewise.
11854 (vst4_p64): Likewise.
11855 (vst4q_s8): Likewise.
11856 (vst4q_p8): Likewise.
11857 (vst4q_s16): Likewise.
11858 (vst4q_p16): Likewise.
11859 (vst4q_s32): Likewise.
11860 (vst4q_s64): Likewise.
11861 (vst4q_u8): Likewise.
11862 (vst4q_u16): Likewise.
11863 (vst4q_u32): Likewise.
11864 (vst4q_u64): Likewise.
11865 (vst4q_f16): Likewise.
11866 (vst4q_f32): Likewise.
11867 (vst4q_f64): Likewise.
11868 (vst4q_p64): Likewise.
11869 (vtbx4_s8): Likewise.
11870 (vtbx4_u8): Likewise.
11871 (vtbx4_p8): Likewise.
11872 (vtrn_f32): Likewise.
11873 (vtrn_p8): Likewise.
11874 (vtrn_p16): Likewise.
11875 (vtrn_s8): Likewise.
11876 (vtrn_s16): Likewise.
11877 (vtrn_s32): Likewise.
11878 (vtrn_u8): Likewise.
11879 (vtrn_u16): Likewise.
11880 (vtrn_u32): Likewise.
11881 (vtrnq_f32): Likewise.
11882 (vtrnq_p8): Likewise.
11883 (vtrnq_p16): Likewise.
11884 (vtrnq_s8): Likewise.
11885 (vtrnq_s16): Likewise.
11886 (vtrnq_s32): Likewise.
11887 (vtrnq_u8): Likewise.
11888 (vtrnq_u16): Likewise.
11889 (vtrnq_u32): Likewise.
11890 (vrsqrte_f16): Likewise.
11891 (vrsqrteq_f16): Likewise.
11892 (vsqrt_f16): Likewise.
11893 (vsqrtq_f16): Likewise.
11894 (vabd_f16): Likewise.
11895 (vabdq_f16): Likewise.
11896 (vpadd_f16): Likewise.
11897 (vpaddq_f16): Likewise.
11898 (vpmax_f16): Likewise.
11899 (vpmaxq_f16): Likewise.
11900 (vpmaxnm_f16): Likewise.
11901 (vpmaxnmq_f16): Likewise.
11902 (vpmin_f16): Likewise.
11903 (vpminq_f16): Likewise.
11904 (vpminnm_f16): Likewise.
11905 (vpminnmq_f16): Likewise.
11906 (vrsqrts_f16): Likewise.
11907 (vrsqrtsq_f16): Likewise.
11909 2019-09-25 Richard Biener <rguenther@suse.de>
11911 PR tree-optimization/91896
11912 * tree-vect-loop.c (vectorizable_reduction): The single
11913 def-use cycle optimization cannot apply when there's more
11914 than one pattern stmt involved.
11916 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11918 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
11919 the 'P' mode iterator, replacing the (removed) SI and DI variants.
11920 (reload_macho_picbase_<mode>): Likewise.
11922 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
11924 * config/rs6000/rs6000.md: Move darwin.md include until
11925 after the definition of the mode iterators.
11927 2019-09-23 Martin Sebor <msebor@redhat.com>
11929 PR tree-optimization/91570
11930 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
11931 non-constant minlen, maxlen and maxbound.
11933 2019-09-24 Richard Biener <rguenther@suse.de>
11935 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
11937 (_stmt_vec_info::cond_reduc_code): ... this.
11938 (_stmt_vec_info::induc_cond_initial_val): Add.
11939 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
11940 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
11941 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
11942 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
11943 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
11944 the reduction code.
11945 (vect_create_epilog_for_reduction): Drop special
11946 induction condition reduction params, pass in reduction code
11948 (vectorizable_reduction): Perform condition reduction kind
11949 selection only at analysis time. Adjust passing on state.
11951 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11953 * config/aarch64/aarch64.md (mov<mode>): Don't call
11954 aarch64_split_dimode_const_store on volatile MEM.
11956 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
11958 * config/aarch64/aarch64-option-extensions.def (fp16fml):
11959 Update hwcap string for fp16fml.
11961 2019-09-24 Jakub Jelinek <jakub@redhat.com>
11963 PR middle-end/91866
11964 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
11965 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
11967 2019-09-24 Martin Liska <mliska@suse.cz>
11969 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
11970 instead of if-elseif-elseif-...
11971 * gimple-expr.c (extract_ops_from_tree): Likewise.
11972 * gimple.c (get_gimple_rhs_num_ops): Likewise.
11973 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
11975 2019-09-24 Martin Jambor <mjambor@suse.cz>
11978 * ipa-param-manipulation.c (carry_over_param): Make a method of
11979 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
11980 in case of a context mismatch.
11981 (ipa_param_body_adjustments::common_initialization): Adjust call to
11983 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
11984 private method carry_over_param.
11986 2019-09-24 Martin Jambor <mjambor@suse.cz>
11989 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
11991 2019-09-24 Richard Biener <rguenther@suse.de>
11993 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
11996 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11998 * config/arm/t-arm (arm-builtins.o): Add dependency on
11999 arm_acle_builtins.def.
12001 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12004 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12005 canonical CONST_INTs. Use gen_rtvec.
12007 2019-09-23 Richard Biener <rguenther@suse.de>
12009 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12010 avoid adjusting by + 0 or * 1.
12011 (vect_create_epilog_for_reduction): Get reduction code only
12012 when necessary. Deal with adjustment_def only when necessary.
12014 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12016 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12019 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12022 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12025 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12027 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12028 code. Merge code blocks with common conditionals. Use declared
12029 macro instead of a magic number for PIC level.
12031 2019-09-21 Martin Sebor <msebor@redhat.com>
12033 PR middle-end/91830
12034 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12035 Simplify computation of the offset of the referenced subobject.
12037 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12039 * config/darwin.c (machopic_legitimize_pic_address): Check
12040 for lra not reload.
12042 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12044 * ira-conflicts.c (can_use_same_reg_p): New function.
12045 (process_reg_shuffles): Take an insn parameter. Ignore cases
12046 in which input operand op_num could seemingly never be allocated
12047 to the same register as the destination.
12048 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12050 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12052 * simplify-rtx.c (neg_const_int): Replace with...
12053 (neg_poly_int_rtx): ...this new function.
12054 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12055 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12056 (simplify_plus_minus): Likewise for constant terms here.
12058 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12060 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12061 HOST_WIDE_PRINT_UNSIGNED.
12063 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12065 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12068 2019-09-20 Maya Rashish <coypu@sdf.org>
12071 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12072 Define to speculation_safe_value_not_needed.
12074 2019-09-20 Richard Biener <rguenther@suse.de>
12075 Uros Bizjak <ubizjak@gmail.com>
12078 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12080 (general_scalar_chain::convert_op): Force not suitable memory
12081 operands to a register.
12083 2019-09-20 Richard Biener <rguenther@suse.de>
12085 PR tree-optimization/91821
12086 * tree-vect-loop.c (check_reduction_path): Check we can compute
12088 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12089 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12090 operands in canonical order.
12091 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12092 STMT_VINFO_REDUC_IDX.
12093 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12094 (STMT_VINFO_REDUC_IDX): Likewise.
12096 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12099 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12101 2019-09-20 Richard Biener <rguenther@suse.de>
12103 PR tree-optimization/91822
12104 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12106 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12107 for reduc_index in nested cycles, adjust vectorizable_condition
12109 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12111 (vect_analyze_stmt): Adjust.
12112 (vect_transform_stmt): Likewise.
12114 2019-09-20 Richard Biener <rguenther@suse.de>
12117 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12118 Ensure there's a sequence point between allocating the new register
12119 and passing a reference to a reg via regno_reg_rtx.
12121 2019-09-20 Martin Jambor <mjambor@suse.cz>
12123 * coretypes.h (cgraph_edge): Declare.
12124 * ipa-param-manipulation.c: Rewrite.
12125 * ipa-param-manipulation.h: Likewise.
12126 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12127 (OBJS): Added ipa-sra.o.
12128 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12129 and ref_p, added fields param_adjustments and performed_splits.
12130 (struct cgraph_clone_info): Remove ags_to_skip and
12131 combined_args_to_skip, new field param_adjustments.
12132 (cgraph_node::create_clone): Changed parameters to use
12133 ipa_param_adjustments.
12134 (cgraph_node::create_virtual_clone): Likewise.
12135 (cgraph_node::create_virtual_clone_with_body): Likewise.
12136 (tree_function_versioning): Likewise.
12137 (cgraph_build_function_type_skip_args): Removed.
12138 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12139 using ipa_param_adjustments.
12140 (clone_of_p): Likewise.
12141 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12142 (build_function_decl_skip_args): Likewise.
12143 (duplicate_thunk_for_node): Adjust parameters using
12144 ipa_param_body_adjustments, copy param_adjustments instead of
12146 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12147 (cgraph_node::create_virtual_clone): Likewise.
12148 (cgraph_node::create_version_clone_with_body): Likewise.
12149 (cgraph_materialize_clone): Likewise.
12150 (symbol_table::materialize_all_clones): Likewise.
12151 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12152 ipa_replace_map check.
12153 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12154 (initialize_node_lattices): Make aware that some parameters might have
12155 already been removed.
12156 (want_remove_some_param_p): New function.
12157 (create_specialized_node): Convert to using ipa_param_adjustments and
12158 deal with possibly pre-existing adjustments.
12159 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12160 (output_node_opt_summary): Do not stream removed fields. Stream
12161 parameter adjustments instead of argumetns to skip.
12162 (input_node_opt_summary): Likewise.
12163 (input_node_opt_summary): Likewise.
12164 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12165 * lto-streamer.h (lto_section_type): Likewise.
12166 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12168 (copy_decl_to_var): Declare.
12169 * tree-inline.c (update_clone_info): Do not remap old_tree.
12170 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12171 statements, walk all extra generated statements and remap their
12173 (redirect_all_calls): Add killed SSA names to a hash set.
12174 (remap_ssa_name): Do not remap killed SSA names.
12175 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12176 half of functionality moved to ipa_param_body_adjustments.
12177 (copy_decl_to_var): Make exported.
12178 (copy_body): Destroy killed_new_ssa_names hash set.
12179 (expand_call_inline): Remap performed splits.
12180 (update_clone_info): Likewise.
12181 (tree_function_versioning): Simplify tree_map processing. Updated to
12182 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12183 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12184 for the new interface.
12185 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12186 (simd_clone_compute_base_data_type): Likewise.
12187 (simd_clone_init_simd_arrays): Adjust for the new interface.
12188 (simd_clone_adjust_argument_types): Likewise.
12189 (struct modify_stmt_info): Likewise.
12190 (ipa_simd_modify_stmt_ops): Likewise.
12191 (ipa_simd_modify_function_body): Likewise.
12192 (simd_clone_adjust): Likewise.
12193 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12194 (type_internals_preclude_sra_p): Make public.
12195 * tree-sra.h: New file.
12196 * ipa-inline-transform.c (save_inline_function_body): Update to
12197 refelct new tree_function_versioning signature.
12198 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12199 ipa_param_adjustments to get current parameter indices.
12200 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12201 (ipcp_update_bits): Likewise.
12202 (ipcp_update_vr): Likewise.
12203 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12204 * ipa-sra.c: New file.
12205 * multiple_target.c (create_target_clone): Update to reflet new type
12206 of create_version_clone_with_body.
12207 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12208 tree_function_versioning.
12209 (modify_function): Update to reflect new type of
12210 tree_function_versioning.
12211 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12212 * passes.def: Remove old IPA-SRA and add new one.
12213 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12214 (make_pass_ipa_sra): Declare.
12215 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12217 * doc/invoke.texi (ipa-sra-max-replacements): New.
12219 2019-09-19 Martin Sebor <msebor@redhat.com>
12221 PR middle-end/91631
12222 * builtins.c (component_size): Correct trailing array computation,
12223 rename to component_ref_size and move...
12224 (compute_objsize): Adjust.
12225 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12226 (builtin_access::strict): Do not consider memmove.
12227 (builtin_access::write_off): New function.
12228 (builtin_memref::builtin_memref): Initialize refsize.
12229 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12231 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12233 (builtin_access::builtin_access): Initialize dstoff to destination
12234 refeence offset here instead of in maybe_diag_overlap. Adjust
12235 referencess even to unrelated objects. Adjust sizrange of bounded
12236 string functions to reflect bound. For strcat, adjust destination
12237 sizrange by that of source.
12238 (builtin_access::strcat_overlap): Adjust offsets and sizes
12239 to reflect the increase in destination sizrange above.
12240 (builtin_access::overlap): Do not set dstoff here but instead
12241 in builtin_access::builtin_access.
12242 (check_bounds_or_overlap): Use builtin_access::write_off.
12243 (maybe_diag_access_bounds): Add argument. Add informational notes.
12244 (dump_builtin_memref, dump_builtin_access): New functions.
12245 * tree.c (component_ref_size): ...to here.
12246 * tree.h (component_ref_size): Declare.
12247 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12248 nul in the size of the source string.
12250 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12253 * doc/cpp.texi: Document support for extended characters in
12255 * doc/cppopts.texi: Likewise.
12257 2019-09-19 Richard Biener <rguenther@suse.de>
12259 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12260 (check_reduction_path): New overload having the path as result.
12261 (vect_is_simple_reduction): From the detected reduction
12262 path build a SLP reduction chain if possible.
12264 2019-09-19 Richard Biener <rguenther@suse.de>
12267 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12268 Force operand to a register if it isn't nonimmediate_operand.
12270 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12272 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12273 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12274 (logical_op): Remove code attribute.
12275 (logical_OP): Likewise.
12277 2019-09-19 Martin Liska <mliska@suse.cz>
12279 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12280 Use proper casting.
12282 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12284 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12287 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12288 for NE comparison of TImode values.
12289 (aarch64_emit_load_exclusive): Add support for TImode.
12290 (aarch64_emit_store_exclusive): Likewise.
12291 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12292 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12293 Change iterator from ALLI to ALLI_TI.
12294 (@atomic_compare_and_swap<JUST_TI>): New.
12295 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12296 (aarch64_load_exclusive_pair): New.
12297 (aarch64_store_exclusive_pair): New.
12298 * config/aarch64/iterators.md (JUST_TI): New.
12300 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12301 strong_zero_p for aarch64_track_speculation; unify some code paths;
12302 use aarch64_gen_compare_reg instead of open-coding.
12304 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12305 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12306 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12307 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12308 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12309 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12310 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12311 (atomic_<atomic_op><ALLI>): Likewise.
12312 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12313 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12314 * doc/invoke.texi: Document -moutline-atomics.
12316 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12318 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12319 trivial predicate for condition branch.
12320 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12322 (compute_bb_predicates): Update predicate based on post-dominating
12324 (analyze_function_body): Calculate post-dominating information.
12326 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12328 * tree-vectorizer.h (vectorizable_condition): Take an int
12329 reduction index instead of a boolean flag.
12330 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12331 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12332 reductions if the reduction accumulator is the "then" rather
12333 than the "else" value.
12334 (vect_analyze_stmt): Update call accordingly.
12335 (vect_transform_stmt): Likewise.
12336 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12337 asserting that the index is > 0.
12339 2019-09-19 Martin Liska <mliska@suse.cz>
12341 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12342 (sort_congruence_classes_by_decl_uid): Likewise.
12343 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12345 (sem_item_optimizer::merge_classes): Likewise.
12347 2019-09-19 Richard Biener <rguenther@suse.de>
12349 PR tree-optimization/91812
12350 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12353 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12355 * defaults.h (TARGET_UNIT): New macro.
12356 (target_unit): New type.
12357 * rtl.h (native_encode_rtx, native_decode_rtx)
12358 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12359 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12360 * rtlanal.c (subreg_lsb_1): Delete.
12361 (subreg_size_lsb): New function.
12362 * simplify-rtx.c: Include rtx-vector-builder.h
12363 (simplify_immed_subreg): Delete.
12364 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12365 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12367 (simplify_subreg): Use them.
12368 (test_vector_subregs_modes, test_vector_subregs_repeating)
12369 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12370 (test_vector_subregs): New functions.
12371 (test_vector_ops): Call test_vector_subregs for integer vector
12372 modes with at least 2 elements.
12374 2019-09-19 Richard Biener <rguenther@suse.de>
12376 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12377 LOOP_VINFO_OPERANDS_SWAPPED.
12378 (parloops_is_simple_reduction): Likewise.
12379 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12380 initialize operands_swapped.
12381 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12382 (vect_is_slp_reduction): Do not swap operands.
12383 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12384 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12386 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12389 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12390 Add avx_partial_xmm_update.
12392 2019-09-18 Jim Wilson <jimw@sifive.com>
12395 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12396 (riscv_move_integer): Likewise.
12397 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12398 riscv_move_integer arg.
12399 (riscv_legitimize_move): Likewise.
12400 (riscv_force_temporary): New parameter in_splitter. Don't call
12402 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12404 (riscv_add_offset): Likewise.
12405 (riscv_split_symbol): New parameter in_splitter. Pass to
12406 riscv_force_temporary.
12407 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12409 (riscv_move_integer): New parameter in_splitter. New local
12410 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12412 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12413 riscv_split_symbol, and riscv_force_temporary args.
12414 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12415 riscv_move_integer arg.
12416 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12418 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12421 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12422 hard register store cost to 6.
12424 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12427 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12428 pseudo register store cost from 3 to 6 to make it the same as
12431 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12434 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12435 (one_cmpldi2): Likewise.
12436 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12437 of the constant parts is simple.
12438 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12439 (logical_op): Add new code attribute.
12440 (logical_OP): Likewise.
12441 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12442 (arm_iordi_operand): Add predicate.
12443 (arm_xordi_operand): Add predicate.
12445 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12447 * config/arm/arm.md (maddsidi4): Remove expander.
12448 (mulsidi3adddi): Remove pattern.
12449 (mulsidi3adddi_v6): Likewise.
12450 (mulsidi3_nov6): Likewise.
12451 (mulsidi3_v6): Likewise.
12452 (umulsidi3): Remove expander.
12453 (umulsidi3_nov6): Remove pattern.
12454 (umulsidi3_v6): Likewise.
12455 (umulsidi3adddi): Likewise.
12456 (umulsidi3adddi_v6): Likewise.
12457 (<Us>mulsidi3): Add combined expander.
12458 (<Us>maddsidi4): Likewise.
12459 (<US>mull): Add combined umull and smull pattern.
12460 (<US>mlal): Likewise.
12461 * config/arm/iterators.md (Us): Add new iterator.
12463 2019-09-18 Richard Biener <rguenther@suse.de>
12465 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12467 (vectorize_fold_left_reduction): Remove assert.
12468 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12469 operand in position 2. Remove assert.
12471 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12473 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12474 (smulsi3_highpart_nov6): Remove pattern.
12475 (smulsi3_highpart_v6): Likewise.
12476 (umulsi3_highpart): Likewise.
12477 (umulsi3_highpart_nov6): Likewise.
12478 (umulsi3_highpart_v6): Likewise.
12479 (<US>mull_high): Add new combined multiply pattern.
12481 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12483 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12484 (arm_mulsi3_v6): Likewise.
12485 (mulsi3addsi_v6): Likewise.
12486 (mulsi3subsi): Likewise.
12487 (mul): Add new multiply pattern.
12491 2019-09-18 Richard Biener <rguenther@suse.de>
12493 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12494 (parloops_valid_reduction_input_p): Copy from
12495 valid_reduction_input_p.
12496 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12497 (parloops_needs_fold_left_reduction_p): Copy from
12498 needs_fold_left_reduction_p.
12499 (parloops_is_simple_reduction): Copy from
12500 vect_is_simple_reduction.
12501 (parloops_force_simple_reduction): Copy from
12502 vect_force_simple_reduction.
12503 (gather_scalar_reductions): Adjust.
12504 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12505 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12507 2019-09-18 Richard Biener <rguenther@suse.de>
12509 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12510 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12512 (vect_create_epilog_for_reduction): Remove dead code.
12514 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12516 * varasm.c (assemble_real): Generate canonical const_ints.
12518 2019-09-18 Richard Biener <rguenther@suse.de>
12521 * lto-streamer-in.c (input_eh_regions): Move EH init to
12522 lto_materialize_function.
12523 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12526 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12528 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12531 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12533 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12534 of checking specifically for INTEGER_CST.
12536 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12538 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12539 sizes instead of uhwi sizes.
12541 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12543 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12544 (add_const_value_attribute): Handle CONST_POLY_INT.
12546 2019-09-18 Martin Liska <mliska@suse.cz>
12548 * dbgcnt.def (store_merging): New counter.
12549 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12550 Use it in store merging.
12552 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12554 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12556 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12557 * config/arm/arm.c (arm_sched_variable_issue): New function.
12558 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12560 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12562 * config/arm/types.md (no_reservation): New reservation.
12563 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12565 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12566 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12567 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12568 * config/arm/arm1020e.md (1020alu_op): Likewise.
12569 * config/arm/arm1026ejs.md (alu_op): Likewise.
12570 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12571 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12572 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12573 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12574 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12575 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12576 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12577 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12578 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12579 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12580 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12581 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12582 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12583 * config/arm/fa526.md (526_alu_op): Likewise.
12584 * config/arm/fa606te.md (606te_alu_op): Likewise.
12585 * config/arm/fa626te.md (626te_alu_op): Likewise.
12586 * config/arm/fa726te.md (726te_alu_op): Likewise.
12587 * config/arm/xgene1.md (xgene1_nop): Likewise.
12589 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12591 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12592 "no_insn" to "branch".
12594 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12596 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12598 2019-09-17 Richard Biener <rguenther@suse.de>
12601 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12602 was missing generate locations only once.
12604 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12607 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12609 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12610 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12611 for switch default case using range analysis information.
12613 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12616 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12617 mode attributed is supported by FDPIC.
12619 2019-09-17 Richard Biener <rguenther@suse.de>
12621 PR tree-optimization/91790
12622 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12623 use the correct DR for setting up realignment.
12625 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12628 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12629 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12630 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12631 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12633 2019-09-16 Jason Merrill <jason@redhat.com>
12635 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12637 2019-09-16 Martin Liska <mliska@suse.cz>
12639 * gimple-fold.c (or_comparisons_1): Remove rules moved
12641 * match.pd: ... here.
12643 2019-09-16 Martin Liska <mliska@suse.cz>
12645 * gimple-fold.c (or_comparisons_1): Remove rules
12647 * match.pd: ... here.
12649 2019-09-16 Martin Liska <mliska@suse.cz>
12651 * genmatch.c (dt_node::append_simplify): Do not print
12652 warning when we have duplicate patterns belonging
12653 to a same simplify rule.
12654 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12655 (maybe_fold_comparisons_from_match_pd): Handle
12656 tcc_comparison as a results.
12657 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12659 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12660 Qi Feng <ffengqi@linux.ibm.com>
12662 PR middle-end/88784
12663 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12664 (x > y && x == XXX_MIN): Optimize into 'false'.
12665 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12666 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12667 (x < y && x == XXX_MAX): Optimize into 'false'.
12668 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12669 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12670 (x <= y || x != XXX_MIN): Optimize into 'true'.
12671 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12672 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12673 (x >= y || x != XXX_MAX): Optimize into 'true'.
12674 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12676 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12677 Martin Liska <mliska@suse.cz>
12679 * gimple-fold.c (and_comparisons_1): Add type as first
12681 (and_var_with_comparison): Likewise.
12682 (and_var_with_comparison_1): Likewise.
12683 (or_comparisons_1): Likewise.
12684 (or_var_with_comparison): Likewise.
12685 (or_var_with_comparison_1): Likewise.
12686 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12687 (maybe_fold_or_comparisons): Likewise.
12688 (maybe_fold_comparisons_from_match_pd): New.
12689 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12690 (maybe_fold_or_comparisons): Likewise.
12691 * gimple.c (gimple_size): Make it public and add num_ops argument.
12692 (gimple_init): New function.
12693 (gimple_alloc): Call gimple_init.
12694 * gimple.h (gimple_size): New.
12695 (gimple_init): Likewise.
12696 * tree-if-conv.c (fold_or_predicates): Pass type.
12697 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12698 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12699 (optimize_vec_cond_expr): Likewise.
12700 (ovce_extract_ops): Return type of conditional expression.
12701 * tree-ssanames.c (init_ssa_name_imm_use): New.
12702 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12703 * tree-ssanames.h (init_ssa_name_imm_use): New.
12705 2019-09-16 Richard Biener <rguenther@suse.de>
12707 PR tree-optimization/91756
12708 PR tree-optimization/87132
12709 * tree-ssa-alias.h (enum translate_flags): New.
12710 (get_continuation_for_phi): Use it instead of simple bool flag.
12711 (walk_non_aliased_vuses): Likewise.
12712 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12713 (get_continuation_for_phi): When looking across backedges only
12714 disallow valueization.
12715 (walk_non_aliased_vuses): Adjust.
12716 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12719 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12721 PR middle-end/80791
12722 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12723 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12724 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12725 * target.def (have_count_reg_decr_p): New hook.
12726 (doloop_cost_for_generic): Likewise.
12727 (doloop_cost_for_address): Likewise.
12728 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12729 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12730 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12731 * doc/tm.texi: Regenerate.
12732 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12734 (record_group): Init doloop_p.
12735 (add_candidate_1): Add optional argument doloop, change the handlings
12737 (add_candidate): Likewise.
12738 (generic_predict_doloop_p): Update attribute.
12739 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12740 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12741 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12743 (get_computation_cost): Update for doloop IV cand extra cost.
12744 (determine_group_iv_cost_cond): Update for doloop IV cand.
12745 (determine_iv_cost): Likewise.
12746 (ivopts_estimate_reg_pressure): Likewise.
12747 (may_eliminate_iv): Update handlings for doloop IV cand.
12748 (add_iv_candidate_for_doloop): New function.
12749 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12750 (iv_ca_set_no_cp): Update for doloop IV cand.
12751 (iv_ca_set_cp): Likewise.
12752 (iv_ca_dump): Dump register cost.
12753 (find_doloop_use): New function.
12754 (analyze_and_mark_doloop_use): Likewise.
12755 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12757 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12759 PR middle-end/91708
12760 * cse.c (cse_insn): Do not replace anything with a
12763 2019-09-13 Ian Lance Taylor <iant@golang.org>
12765 * doc/invoke.texi (Optimize Options): Fix typo.
12767 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12769 PR tree-optimization/89386
12770 * config/i386/sse.md (smulhrs<mode>3): New expander.
12771 (smulhrsv4hi3): Ditto.
12773 2019-09-12 Richard Biener <rguenther@suse.de>
12775 PR tree-optimization/91750
12776 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12777 in the type of the evolution.
12779 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12781 PR tree-optimization/89386
12782 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12783 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12784 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12785 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12786 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12787 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12788 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12789 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12790 (su, r): Handle the unspecs above.
12791 (bt): New int attribute.
12792 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12793 * internal-fn.c (first_commutative_argument): Commutativity info for
12795 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12796 (umulhrs_optab): New optabs.
12797 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12798 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12799 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12801 (vect_vect_recog_func_ptrs): Add it.
12803 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12805 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12808 2019-09-11 Nathan Sidwell <nathan@acm.org>
12810 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12811 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12813 2019-09-11 Richard Biener <rguenther@suse.de>
12815 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12816 * lto-wrapper.c (merge_and_complain): Pick up -g.
12817 (append_compiler_options): Likewise.
12818 (run_gcc): Re-instantiate handling -g0 at link-time.
12819 * doc/invoke.texi (flto): Document debug info generation.
12821 2019-09-11 Richard Biener <rguenther@suse.de>
12823 PR tree-optimization/90387
12824 * vr-values.c (vr_values::extract_range_basic): After inlining
12825 simplify non-constant __builtin_constant_p to false.
12827 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12829 PR rtl-optimization/89795
12830 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12831 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12833 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12835 PR tree-optimization/91723
12836 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12837 instead of pointer equality when checking if argument vectypes are
12840 PR middle-end/91725
12841 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12842 of get_nonzero_bits, only call it for integral types.
12844 2019-09-11 Richard Biener <rguenther@suse.de>
12847 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12849 * match.pd: Add flag_unsafe_math_optimizations check
12850 before deciding on the widest type in a binary math operation.
12852 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12854 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12855 and CALL_REALLY_USED_REGISTERS must be defined, and that
12856 CALL_REALLY_USED_REGISTERS is preferred.
12857 * doc/tm.texi: Regenerate.
12858 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12859 (call_really_used_regs): Likewise.
12860 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12861 CALL_REALLY_USED_REGISTERS are defined.
12862 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12863 initial value if defined.
12864 (initial_call_really_used_regs): Delete.
12865 (saved_call_really_used_regs): Likewise.
12866 (CALL_REALLY_USED_REGNO_P): Likewise.
12867 (init_reg_sets): Remove handling of call_really_used_regs.
12868 (save_register_info, restore_register_info, globalize_reg): Likewise.
12869 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12870 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12871 outside operand_reg_set.
12872 (fix_register): Don't change call_used_regs if
12873 CALL_REALLY_USED_REGISTERS is defined.
12874 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12875 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12876 instead of call_really_used_regs.
12877 (csky_conditional_register_usage): Remove the old handling of
12878 call_used_regs and change the handling of call_really_used_regs
12879 to use call_used_regs instead.
12880 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12881 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12882 making a register fixed.
12883 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12884 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
12885 instead of call_really_used_regs.
12886 (m32r_conditional_register_usage): Don't set call_used_regs when
12887 making a register fixed.
12888 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
12889 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
12890 instead of call_really_used_regs.
12891 (mips_interrupt_extra_call_saved_reg_p): Likewise.
12892 (mips_cfun_call_saved_reg_p): Likewise.
12893 (mips_swap_registers): Remove the old handling of call_used_regs
12894 and change the handling of call_really_used_regs to use call_used_regs
12896 (mips_conditional_register_usage): Likewise.
12897 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
12898 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
12899 instead of call_really_used_regs.
12900 (mn10300_get_live_callee_saved_regs): Likewise.
12901 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
12902 (mn10300_conditional_register_usage): Don't set call_used_regs when
12903 making a register fixed.
12904 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
12905 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
12906 Remove the old handling of call_used_regs and change the handling
12907 of call_really_used_regs to use call_used_regs instead.
12908 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
12909 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
12910 instead of call_really_used_regs.
12911 (s390_register_info_gprtofpr, s390_register_info): Likewise.
12912 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
12913 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
12914 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
12915 (s390_conditional_register_usage): Remove the old handling of
12916 call_used_regs and change the handling of call_really_used_regs
12917 to use call_used_regs instead.
12918 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
12919 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
12920 (sh_fix_range, reg_unused_after): Likewise.
12921 (sh_conditional_register_usage): Remove the old handling of
12922 call_used_regs and change the handling of call_really_used_regs
12923 to use call_used_regs instead.
12924 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
12925 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
12926 call_used_regs when making a register fixed.
12927 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
12928 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
12929 call_used_regs when making a register fixed.
12930 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
12931 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
12932 set call_used_regs when making a register fixed.
12933 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
12934 * config/visium/visium.c (visium_conditional_register_usage): Remove
12935 the old handling of call_used_regs and change the handling of
12936 call_really_used_regs to use call_used_regs instead.
12938 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12940 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
12941 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
12942 * reginfo.c (call_used_regs): New macro.
12944 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12946 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
12948 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12949 (bpf_expand_epilogue): Likewise.
12950 * config/c6x/c6x.c (c6x_save_reg): Likewise.
12951 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
12952 (ft32_expand_epilogue): Likewise.
12953 * config/i386/i386.c (ix86_save_reg): Likewise.
12954 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
12955 (moxie_expand_epilogue): Likewise.
12956 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
12957 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
12958 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
12960 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12962 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
12963 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
12964 instead of testing call_used_regs directly.
12965 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
12966 (aarch64_components_for_bb): Likewise.
12967 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
12968 * config/arc/arc.c (arc_must_save_register): Likewise.
12969 (arc_epilogue_uses): Likewise.
12970 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
12971 (legitimize_pic_address, callee_saved_reg_p): Likewise.
12972 (arm_compute_save_reg0_reg12_mask): Likewise.
12973 (arm_compute_save_core_reg_mask): Likewise.
12974 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
12975 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
12976 (cmse_nonsecure_entry_clear_before_return): Likewise.
12977 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
12978 (arm_expand_epilogue): Likewise.
12979 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
12980 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
12981 (_reg_unused_after): Likewise.
12982 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
12983 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
12984 (add_to_reg, hwloop_optimize): Likewise.
12985 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
12986 (bpf_expand_epilogue): Likewise.
12987 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
12988 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
12989 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
12990 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
12991 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
12992 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
12993 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
12994 * config/frv/frv.c (frv_stack_info): Likewise.
12995 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
12996 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
12997 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
12998 (move_callee_saved_registers): Likewise.
12999 * config/h8300/h8300.c (byte_reg): Likewise.
13000 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13001 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13002 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13003 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13004 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13005 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13006 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13007 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13008 * config/m32c/m32c.c (need_to_save): Likewise.
13009 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13010 * config/mcore/mcore.c (calc_live_regs): Likewise.
13011 * config/microblaze/microblaze.c (microblaze_must_save_register):
13013 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13014 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13015 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13016 (mmix_expand_epilogue): Likewise.
13017 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13018 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13019 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13020 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13021 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13022 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13023 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13024 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13025 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13026 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13027 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13028 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13029 * config/rl78/rl78.c (need_to_save): Likewise.
13030 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13031 (rs6000_stack_info, generate_set_vrsave): Likewise.
13032 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13033 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13034 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13035 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13036 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13037 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13038 (save_local_or_in_reg_p): Likewise.
13039 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13040 (xstormy16_epilogue_uses): Likewise.
13041 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13042 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13043 * config/v850/v850.c (compute_register_save_size): Likewise.
13044 * config/vax/vax.c (vax_expand_prologue): Likewise.
13045 * config/visium/visium.c (visium_save_reg_p): Likewise.
13046 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13047 * cselib.c (cselib_process_insn): Likewise.
13048 * df-scan.c (df_get_entry_block_def_set): Likewise.
13049 * function.c (aggregate_value_p): Likewise.
13050 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13051 * ira-lives.c (process_bb_node_lives): Likewise.
13052 * ira.c (do_reload): Likewise.
13053 * lra-lives.c (process_bb_lives): Likewise.
13054 * lra-remat.c (lra_remat): Likewise.
13055 * lra.c (lra): Likewise.
13056 * postreload.c (reload_combine_recognize_pattern): Likewise.
13057 (reload_cse_move2add): Likewise.
13058 * recog.c (peep2_find_free_register): Likewise.
13059 * regrename.c (check_new_reg_p): Likewise.
13060 * reload.c (find_equiv_reg): Likewise.
13061 * reload1.c (reload, find_reg): Likewise.
13062 * sel-sched.c (init_hard_regs_data): Likewise.
13064 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13066 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13067 regs_invalidated_by_call & ~fixed_reg_set instead of
13068 call_used_or_fixed_regs & ~fixed_reg_set.
13069 * config/sh/sh.c (output_stack_adjust): Likewise.
13071 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13073 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13074 (call_used_reg_set): Delete.
13075 (call_used_or_fixed_regs): New macro.
13076 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13077 of call_used_reg_set.
13078 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13079 instead of call_used_regs.
13080 (save_call_clobbered_regs): Likewise.
13081 * cfgcleanup.c (old_insns_match_p): Likewise.
13082 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13083 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13085 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13086 * config/sh/sh.c (output_stack_adjust): Likewise.
13087 * final.c (collect_fn_hard_reg_usage): Likewise.
13088 * ira-build.c (ira_build): Likewise.
13089 * ira-color.c (calculate_saved_nregs): Likewise.
13090 (allocno_reload_assign, calculate_spill_cost): Likewise.
13091 * ira-conflicts.c (ira_build_conflicts): Likewise.
13092 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13093 * ira-lives.c (process_bb_node_lives): Likewise.
13094 * ira.c (setup_reg_renumber): Likewise.
13095 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13096 * lra-constraints.c (need_for_call_save_p): Likewise.
13097 (need_for_split_p, inherit_in_ebb): Likewise.
13098 * lra-lives.c (process_bb_lives): Likewise.
13099 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13100 * postreload.c (reload_combine): Likewise.
13101 * regrename.c (find_rename_reg): Likewise.
13102 * reload1.c (reload_as_needed): Likewise.
13103 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13104 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13105 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13107 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13109 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13110 (no_caller_save_reg_set): Delete.
13111 * caller-save.c (init_caller_save): Don't initialize it.
13112 * ira-conflicts.c (ira_build_conflicts): Calculate
13113 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13115 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13117 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13118 (target_hard_regs::x_savable_regs): New field.
13119 (call_fixed_reg_set): Delete.
13120 (savable_regs): New macro,
13121 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13122 (init_reg_sets_1): Likewise. Initialize savable_regs.
13123 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13124 for all registers. Set savable_regs instead of call_fixed_reg_set.
13125 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13126 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13127 * config/sh/sh.c (output_stack_adjust): Likewise.
13129 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13131 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13132 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13133 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13135 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13137 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13138 * rtlanal.c (get_call_rtx_from): Likewise.
13139 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13140 than the pattern to get_call_rtx_from.
13141 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13142 an rtx_insn * instead of an rtx.
13143 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13145 2019-09-10 Martin Liska <mliska@suse.cz>
13147 * common.opt: Use newly added WarnRemoved.
13148 * config/aarch64/aarch64.opt: Likewise.
13149 * config/arm/arm.opt: Likewise.
13150 * config/i386/i386.opt: Likewise.
13151 * config/ia64/ia64.opt: Likewise.
13152 * config/rs6000/rs6000.opt: Likewise.
13153 * doc/options.texi: Document WarnRemoved properly.
13154 * dwarf2out.c (gen_producer_string): Handle renamed
13155 OPT_SPECIAL_warn_removed.
13156 * lto-opts.c (lto_write_options): Likewise.
13157 * lto-wrapper.c (merge_and_complain): Likewise.
13158 * opts-common.c (decode_cmdline_option): Likewise.
13159 (prune_options): Likewise.
13160 (read_cmdline_option): Likewise.
13161 (control_warning_option): Likewise.
13162 * opts.c (print_filtered_help): Likewise.
13163 * optc-gen.awk: Parse for WarnRemoved and make usage
13164 of Deprecated an error.
13165 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13167 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13169 * doc/install.texi: Fix syntax for html generation.
13171 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13173 PR middle-end/91680
13174 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13175 the shift type to type.
13177 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13179 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13181 (stack_protect_combined_test_insn): Likewise.
13183 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13184 Mickaël Guêné <mickael.guene@st.com>
13186 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13187 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13188 (load_tp_soft_fdpic): New pattern.
13189 (load_tp_soft): Disable in FDPIC mode.
13191 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13192 Mickaël Guêné <mickael.guene@st.com>
13194 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13195 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13196 (arm_call_tls_get_addr): Add FDPIC support.
13197 (legitimize_tls_address): Likewise.
13198 (arm_emit_tls_decoration): Likewise.
13200 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13201 Mickaël Guêné <mickael.guene@st.com>
13203 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13205 (arm_trampoline_init): Likewise.
13206 (arm_trampoline_adjust_address): Likewise.
13207 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13209 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13210 Mickaël Guêné <mickael.guene@st.com>
13212 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13213 (legitimize_pic_address): Enforce binding rules on function
13214 pointers in FDPIC mode.
13215 (arm_assemble_integer): Likewise.
13217 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13218 Mickaël Guêné <mickael.guene@st.com>
13220 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13221 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13224 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13225 Mickaël Guêné <mickael.guene@st.com>
13227 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13230 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13231 Mickaël Guêné <mickael.guene@st.com>
13233 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13235 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13237 * config/arm/arm.c (arm_option_override): Define pic register to
13239 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13240 have no decl or go through PLT.
13241 (calculate_pic_address_constant): New function.
13242 (legitimize_pic_address): Call calculate_pic_address_constant.
13243 (arm_load_pic_register): Handle TARGET_FDPIC.
13244 (arm_is_segment_info_known): New function.
13245 (arm_pic_static_addr): Add support for FDPIC.
13246 (arm_load_function_descriptor): New function.
13247 (arm_emit_call_insn): Add support for FDPIC.
13248 (arm_assemble_integer): Add support for FDPIC.
13249 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13250 Define. (FDPIC_REGNUM): New define.
13251 * config/arm/arm.md (call): Add support for FDPIC.
13252 (call_value): Likewise.
13253 (restore_pic_register_after_call): New pattern.
13254 (untyped_call): Disable if FDPIC.
13255 (untyped_return): Likewise.
13256 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13258 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13259 Mickaël Guêné <mickael.guene@st.com>
13261 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13262 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13263 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13264 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13265 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13266 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13267 * config/arm/uclinuxfdpiceabi.h: New file.
13269 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13271 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13273 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13274 Mickaël Guêné <mickael.guene@st.com>
13276 * config/arm/arm.opt: Add -mfdpic option.
13277 * doc/invoke.texi: Add documentation for -mfdpic.
13279 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13281 * expmed.c (extract_bit_field): Update function comment
13283 * expr.c (expand_expr_real): Update function comment
13285 (expand_misaligned_mem_ref): New helper function.
13286 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13287 Remove duplicate assignment to "base" at case MEM_REF.
13288 Remove a shadowed variable "unsignedp" at case VCE.
13290 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13292 * regset.h (regs_invalidated_by_call_regset): Delete.
13293 (fixed_reg_set_regset): Likewise.
13294 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13295 (fixed_reg_set_regset, persistent_obstack): Likewise.
13296 (init_reg_sets_1, globalize_reg): Update accordingly.
13297 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13298 instead of a bitmap.
13299 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13300 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13301 instead of regs_invalidated_by_call_regset.
13302 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13303 * df-scan.c (df_scan_start_dump): Likewise.
13304 * dse.c (copy_fixed_regs): Likewise.
13305 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13307 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13309 * array-traits.h: New file.
13310 * coretypes.h (array_traits, bitmap_view): New types.
13311 * bitmap.h: Include "array-traits.h"
13312 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13313 (base_bitmap_view, bitmap_view): New classes.
13314 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13315 * hard-reg-set.h: Include array-traits.h.
13316 (array_traits<HARD_REG_SET>): New struct.
13317 * regset.h (IOR_REG_SET_HRS): New macro.
13318 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13319 rather than iterating over each hard register.
13320 * sched-deps.c (sched_analyze_insn): Likewise.
13321 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13323 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13325 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13326 instead of a HARD_REG_SET *.
13327 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13328 (ira_build): Update call accordingly.
13329 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13331 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13333 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13334 (HARD_REG_SET::operator!=): Likewise.
13335 (hard_reg_set_equal_p): Delete.
13336 * cfgcleanup.c (old_insns_match_p): Use == instead of
13337 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13338 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13339 (add_allocno_hard_regs_to_forest): Likewise.
13340 (setup_allocno_available_regs_num): Likewise.
13341 * ira.c (setup_pressure_classes): Likewise.
13342 (setup_allocno_and_important_classes): Likewise.
13343 (setup_reg_class_relations): Likewise.
13344 * lra-lives.c (process_bb_lives): Likewise.
13345 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13347 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13349 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13350 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13351 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13352 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13354 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13355 * ira.c (setup_reg_renumber): Likewise.
13356 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13357 * regrename.c (regrename_find_superclass): Likewise.
13358 * reload1.c (find_reg): Likewise.
13360 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13362 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13363 * caller-save.c (setup_save_areas): Use "&~" instead of
13364 AND_COMPL_HARD_REG_SET.
13365 (save_call_clobbered_regs): Likewise.
13366 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13368 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13369 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13370 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13371 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13372 (mips_conditional_register_usage): Likewise.
13373 * config/sh/sh.c (output_stack_adjust): Likewise.
13374 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13375 (setup_profitable_hard_regs): Likewise.
13376 (get_conflict_and_start_profitable_regs): Likewise.
13377 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13378 (ira_build_conflicts): Likewise.
13379 * ira-costs.c (restrict_cost_classes): Likewise.
13380 (setup_regno_cost_classes_by_aclass): Likewise.
13381 * ira-lives.c (process_bb_node_lives): Likewise.
13382 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13383 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13384 (setup_allocno_and_important_classes, setup_class_translate_array)
13385 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13387 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13388 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13389 (process_alt_operands, inherit_in_ebb): Likewise.
13390 * lra-eliminations.c (update_reg_eliminate): Likewise.
13391 * lra-lives.c (process_bb_lives): Likewise.
13392 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13393 * resource.c (find_dead_or_set_registers): Likewise.
13394 (mark_target_live_regs): Likewise.
13395 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13396 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13397 (implicit_clobber_conflict_p): Likewise.
13398 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13399 (try_shrink_wrapping): Likewise.
13401 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13403 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13404 (HARD_REG_SET::operator|=): Likewise.
13405 (IOR_HARD_REG_SET): Delete.
13406 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13408 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13409 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13410 * final.c (collect_fn_hard_reg_usage): Likewise.
13411 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13412 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13413 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13414 (propagate_some_info_from_allocno): Likewise.
13415 (copy_info_to_removed_store_destinations): Likewise.
13416 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13417 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13418 (fast_allocation): Likewise.
13419 * ira-conflicts.c (ira_build_conflicts): Likewise.
13420 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13421 (process_bb_node_lives): Likewise.
13422 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13423 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13424 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13425 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13426 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13427 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13428 (process_bb_lives): Likewise.
13429 * lra-spills.c (assign_spill_hard_regs): Likewise.
13430 * postreload.c (reload_combine): Likewise.
13431 * reginfo.c (init_reg_sets_1): Likewise.
13432 * regrename.c (merge_overlapping_regs, find_rename_reg)
13433 (merge_chains): Likewise.
13434 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13435 (find_reload_regs, finish_spills, choose_reload_regs_init)
13436 (emit_reload_insns): Likewise.
13437 * reorg.c (redundant_insn): Likewise.
13438 * resource.c (find_dead_or_set_registers, mark_set_resources)
13439 (mark_target_live_regs): Likewise.
13440 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13441 * sched-deps.c (sched_analyze_insn): Likewise.
13442 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13443 (find_best_reg_for_expr): Likewise.
13444 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13446 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13448 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13449 (HARD_REG_SET::operator&): Likewise.
13450 (AND_HARD_REG_SET): Delete.
13451 * caller-save.c (setup_save_areas): Use "&" instead of
13453 (save_call_clobbered_regs): Likewise.
13454 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13455 * config/m32c/m32c.c (reduce_class): Likewise.
13456 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13457 * final.c (get_call_reg_set_usage): Likewise.
13458 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13459 (setup_left_conflict_sizes_p): Likewise.
13460 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13461 (ira_build_conflicts): Likewise.
13462 * ira-costs.c (restrict_cost_classes): Likewise.
13463 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13464 (setup_reg_class_relations): Likewise.
13465 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13466 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13467 * resource.c (find_dead_or_set_registers): Likewise.
13468 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13470 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13472 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13473 (COMPL_HARD_REG_SET): Delete.
13474 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13475 of COMPL_HARD_REG_SET.
13476 (try_rename_operands): Likewise.
13477 * config/sh/sh.c (push_regs): Likewise.
13478 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13479 * lra-constraints.c (contains_reg_p): Likewise.
13480 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13482 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13484 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13485 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13486 of COPY_HARD_REG_SET.
13487 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13488 (epiphany_conditional_register_usage): Likewise.
13489 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13490 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13491 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13492 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13493 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13494 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13495 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13496 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13497 * config/sh/sh.c (output_stack_adjust): Likewise.
13498 * final.c (collect_fn_hard_reg_usage): Likewise.
13499 (get_call_reg_set_usage): Likewise.
13500 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13501 (ira_flattening): Likewise.
13502 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13503 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13504 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13505 (ira_reassign_pseudos): Likewise.
13506 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13507 (ira_build_conflicts): Likewise.
13508 * ira-costs.c (restrict_cost_classes): Likewise.
13509 (setup_regno_cost_classes_by_aclass): Likewise.
13510 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13511 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13512 (setup_stack_reg_pressure_class, setup_pressure_classes)
13513 (setup_allocno_and_important_classes, setup_class_translate_array)
13514 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13515 (ira_setup_eliminable_regset): Likewise.
13516 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13517 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13518 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13519 (process_alt_operands, inherit_in_ebb): Likewise.
13520 * lra-lives.c (process_bb_lives): Likewise.
13521 * lra-spills.c (assign_spill_hard_regs): Likewise.
13522 * lra.c (lra): Likewise.
13523 * mode-switching.c (new_seginfo): Likewise.
13524 * postreload.c (reload_combine): Likewise.
13525 * reg-stack.c (straighten_stack): Likewise.
13526 * reginfo.c (save_register_info, restore_register_info): Likewise.
13527 (init_reg_sets_1, record_subregs_of_mode): Likewise
13528 * regrename.c (create_new_chain, rename_chains): Likewise.
13529 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13530 (find_reload_regs): Likewise.
13531 * resource.c (find_dead_or_set_registers): Likewise.
13532 (mark_target_live_regs): Likewise.
13533 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13535 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13537 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13538 (note_pattern_stores): Declare.
13539 (note_stores): Take an rtx_insn *.
13540 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13541 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13542 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13543 (note_stores): Take an rtx_insn * as argument and process
13544 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13545 (note_pattern_stores): ...this.
13546 (find_first_parameter_load): Pass the insn rather than
13547 its pattern to note_stores.
13548 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13549 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13550 (insert_one_insn): Likewise.
13551 * combine.c (combine_instructions): Likewise.
13552 (likely_spilled_retval_p): Likewise.
13553 (try_combine): Use note_pattern_stores instead of note_stores.
13554 (record_dead_and_set_regs): Pass the insn rather than its pattern
13556 (reg_dead_at_p): Likewise.
13557 * config/bfin/bfin.c (workaround_speculation): Likewise.
13558 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13559 rather than an rtx.
13560 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13561 instead of note_stores.
13562 (frv_optimize_membar_local): Pass the insn rather than its pattern
13564 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13565 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13566 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13567 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13568 (mips_reorg_process_insns): Likewise.
13569 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13570 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13572 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13573 its pattern to note_stores.
13574 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13576 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13577 the insn to note_stores.
13578 (prescan_insns_for_dce): Update call accordingly.
13579 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13581 * df-problems.c (can_move_insns_across): Likewise.
13582 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13583 * function.c (assign_parm_setup_reg): Likewise.
13584 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13585 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13586 (single_set_gcse): Likewise.
13587 * ira.c (validate_equiv_mem): Likewise.
13588 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13590 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13591 pattern to note_stores.
13592 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13593 * loop-iv.c (simplify_using_initial_values): Likewise.
13594 * mode-switching.c (optimize_mode_switching): Likewise.
13595 * optabs.c (emit_libcall_block_1): Likewise.
13596 (expand_atomic_compare_and_swap): Likewise.
13597 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13598 (record_opr_changes): Likewise. Remove explicit handling of
13599 CALL_INSN_FUNCTION_USAGE.
13600 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13601 * regcprop.c (kill_clobbered_values): Likewise.
13602 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13604 * regrename.c (build_def_use): Likewise.
13605 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13606 for mark_not_eliminable.
13607 (reload_as_needed): Pass the insn rather than its pattern
13609 (emit_output_reload_insns): Likewise.
13610 * resource.c (mark_target_live_regs): Likewise.
13611 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13612 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13613 instead of note_stores.
13614 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13615 its pattern to note_stores.
13616 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13617 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13619 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13621 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13622 than a #define. Use a structure rather than an array as the
13623 fallback definition. Remove special cases for low array sizes.
13624 (const_hard_reg_set): New typedef.
13625 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13626 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13627 (hard_reg_set_empty_p): Likewise.
13628 (SET_HARD_REG_BIT): Use a function rather than a macro to
13629 handle the case in which HARD_REG_SET is a structure.
13630 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13631 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13632 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13633 (IOR_COMPL_HARD_REG_SET): Likewise.
13634 (hard_reg_set_iterator::pset): Constify the pointer target.
13635 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13636 of a "const HARD_REG_SET". Update the handling of non-integer
13638 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13639 * reload.h: Likewise.
13640 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13641 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13642 of a "const HARD_REG_SET".
13643 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13644 (range_in_hard_reg_set_p): Likewise.
13645 * ira-costs.c (restrict_cost_classes): Likewise.
13646 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13647 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13648 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13649 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13650 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13651 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13652 take an unsigned int and open-code the HARD_REG_SET operations.
13654 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13656 * Makefile.in (OBJS): Remove bt-load.o.
13657 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13658 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13659 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13660 document that the option no longer does anything.
13661 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13662 * target.def (branch_target_register_class): Delete.
13663 (branch_target_register_callee_saved): Likewise.
13664 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13665 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13666 * doc/tm.texi: Regenerate.
13667 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13668 (make_pass_branch_target_load_optimize2): Likewise.
13669 * passes.def (pass_branch_target_load_optimize1): Likewise.
13670 (pass_branch_target_load_optimize2): Likewise.
13671 * targhooks.h (default_branch_target_register_class): Likewise.
13672 * targhooks.c (default_branch_target_register_class): Likewise.
13673 * opt-suggestions.c (test_completion_valid_options): Remove
13674 -fbtr-bb-exclusive from the list of test options.
13675 * bt-load.c: Remove.
13677 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13679 * match.pd: Add flag_unsafe_math_optimizations check
13680 before deciding on the widest type in a binary math operation.
13682 2019-09-09 Martin Liska <mliska@suse.cz>
13684 * config/i386/i386.opt: Update comment of removed
13685 options that are preserved only for backward
13688 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13691 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13692 instead of __v16qs.
13695 * config/i386/avxintrin.h (__v32qs): New typedef.
13696 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13697 instead of __v32qi.
13699 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13701 * doc/invoke.texi (Option Summary): Cover eBPF.
13702 (eBPF Options): New section.
13703 * doc/extend.texi (BPF Built-in Functions): Likewise.
13704 (BPF Kernel Helpers): Likewise.
13706 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13708 * config.gcc: Support for bpf-*-* targets.
13709 * common/config/bpf/bpf-common.c: New file.
13710 * config/bpf/t-bpf: Likewise.
13711 * config/bpf/predicates.md: Likewise.
13712 * config/bpf/constraints.md: Likewise.
13713 * config/bpf/bpf.opt: Likewise.
13714 * config/bpf/bpf.md: Likewise.
13715 * config/bpf/bpf.h: Likewise.
13716 * config/bpf/bpf.c: Likewise.
13717 * config/bpf/bpf-protos.h: Likewise.
13718 * config/bpf/bpf-opts.h: Likewise.
13719 * config/bpf/bpf-helpers.h: Likewise.
13720 * config/bpf/bpf-helpers.def: Likewise.
13722 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13724 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13727 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13729 * opt-functions.awk (integer_range_info): Make sure values are in
13730 numeric context before operating with them.
13732 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13734 * genemit.c (gen_split): Print the filename and line number where the
13735 splitter (or peephole2) was defined, to the dump file.
13737 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13739 PR tree-optimization/91665
13740 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13741 incompatible with the type of PHI result.
13743 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13746 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13747 gen_unaligned_storedi for 4-byte aligned addresses.
13749 2019-09-06 Jim Wilson <jimw@sifive.com>
13751 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13754 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13756 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13758 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13760 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13761 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13763 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13766 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13767 cost of SSE->integer and integer->SSE moves from 2 to 6.
13768 (core_cost): Ditto.
13770 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13772 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13773 before testing TYPE_TRANSPARENT_AGGR.
13774 * calls.c (initialize_argument_information, load_register_parameters):
13777 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13779 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13781 (cmp_ior): Likewise.
13783 2019-09-06 Martin Liska <mliska@suse.cz>
13785 * doc/match-and-simplify.texi: Separate tuples with ;.
13787 2019-09-06 Martin Liska <mliska@suse.cz>
13790 * Makefile.in: Remove tlink.o.
13791 * collect2.c (do_link): New function isolated
13794 * collect2.h (do_tlink): Remove declaration of do_tlink.
13795 * doc/extend.texi: Remove documentation of -frepo.
13796 * doc/invoke.texi: Likewise.
13797 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13800 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13801 Jim Wilson <jimw@sifive.com>
13804 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13805 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13806 paradoxical_subreg_p (operands[0]).
13807 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13808 use as intermediate value.
13810 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13812 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13813 (sync_compare_and_swap<mode>_insn): Likewise.
13815 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13817 PR middle-end/91615
13818 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13819 without movmisalign optab.
13821 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13823 PR middle-end/91001
13824 PR middle-end/91105
13825 PR middle-end/91106
13826 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13827 types, use type of their first field instead of type of
13828 args[i].tree_value.
13830 2019-09-05 Richard Biener <rguenther@suse.de>
13832 PR rtl-optimization/91656
13833 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13836 2019-09-05 Richard Biener <rguenther@suse.de>
13838 PR middle-end/90501
13839 * tree-inline.c (declare_return_variable): Mark the return
13840 slot as addressable after building an address of it.
13842 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13844 * doc/install.texi: Update and clarify requirements to build GNAT.
13846 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13848 PR middle-end/91577
13849 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13850 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13851 call to be in memory.
13852 (pass_expand::execute): Call discover_nonconstant_array_refs before
13853 setting currently_expanding_to_rtl.
13855 2019-09-04 Caroline Tice <cmtice@google.com>
13857 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13858 specified together.
13860 2019-09-04 Marek Polacek <polacek@redhat.com>
13862 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13864 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13867 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13868 for QI and HImode moves between SSE and general registers.
13870 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13873 * doc/invoke.texi: Document -Wenum-conversion.
13875 2019-09-04 Richard Biener <rguenther@suse.de>
13877 PR rtl-optimization/36262
13878 * postreload-gcse.c: Include intl.h and gcse.h.
13879 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13880 to avoid linear list walk.
13881 (record_last_mem_set_info): Gate off if not computing transparentness.
13882 (get_bb_avail_insn): If transparentness isn't computed give up
13884 (gcse_after_reload_main): Skip compute_transp and extended PRE
13885 if gcse_or_cprop_is_too_expensive says so.
13887 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13889 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
13891 (msp430_select_section): Handle decls with the "noinit" attribute with
13892 default_elf_select_section.
13893 Handle SECCAT_RODATA_MERGE_* section types with
13894 default_elf_select_section.
13895 Add comments about handling of unsupported section types.
13896 (msp430_section_type_flags): Remove handling of the noinit section.
13898 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13900 * config/msp430/msp430.c (msp430_attr): Remove warnings about
13901 conflicting msp430-specific attributes.
13902 (msp430_section_attr): Likewise.
13903 Add warnings about conflicts with generic "noinit" and "section"
13905 Fix grammar in -mlarge error message.
13906 (msp430_data_attr): Rename to msp430_persist_attr.
13907 Add warnings about conflicts with generic "noinit" and "section"
13909 Add warning for when variable is not initialized.
13910 Chain conditionals which prevent the attribute being added.
13911 (ATTR_EXCL): New helper.
13912 (attr_reent_exclusions): New exclusion table.
13913 (attr_naked_exclusions): Likewise.
13914 (attr_crit_exclusions): Likewise.
13915 (attr_lower_exclusions): Likewise.
13916 (attr_upper_exclusions): Likewise.
13917 (attr_either_exclusions): Likewise.
13918 (attr_persist_exclusions): Likewise.
13919 (msp430_attribute_table): Update with exclusion rules.
13920 (msp430_output_aligned_decl_common): Don't output common symbol if decl
13923 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13925 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
13926 (msp430_handle_generic_attribute): New function.
13927 * doc/tm.texi: Regenerate.
13928 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
13929 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13930 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
13931 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
13933 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
13935 PR tree-optimization/91504
13936 * match.pd: Add ((~a & b) ^a) --> (a | b).
13938 2019-09-03 Jakub Jelinek <jakub@redhat.com>
13941 * config/i386/i386-expand.c (split_double_mode): If there is more than
13942 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
13943 already split matching MEM operand instead of calling adjust_address
13946 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
13948 * config.gcc: Obsolete spu target. Remove references to spu.
13949 * configure.ac: Remove references to spu.
13950 * configure: Regenerate.
13951 * config/spu/: Remove directory.
13952 * common/config/spu/: Remove directory.
13954 * doc/extend.texi: Remove references to spu.
13955 * doc/invoke.texi: Likewise.
13956 * doc/md.texi: Likewise.
13957 * doc/sourcebuild.texi: Likewise.
13959 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
13961 PR middle-end/91603
13962 PR middle-end/91612
13963 PR middle-end/91613
13964 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
13965 and SSA_NAME referring to CONSTANT_P correctly.
13967 2019-09-03 Richard Biener <rguenther@suse.de>
13969 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
13970 (vn_nary_op_insert): Likewise.
13971 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
13972 (vn_nary_op_lookup): Likewise.
13973 (vn_nary_op_insert): Likewise.
13975 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
13977 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
13978 (*op0, 1) instead of XEXP (*op1, 0).
13980 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13982 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
13983 (aarch64_fjcvtzs): New define_insn.
13984 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
13985 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
13987 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
13988 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
13989 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
13990 __ARM_FEATURE_JCVT where appropriate.
13991 * config/aarch64/arm_acle.h (__jcvt): Define.
13993 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13995 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
13996 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
13997 (aarch64_<frintnzs_op><mode>): New define_insn.
13998 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
13999 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14000 __ARM_FEATURE_FRINT when appropriate.
14001 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14002 frint32x, frint64z, frint64x.
14003 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14004 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14005 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14006 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14007 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14008 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14009 * config/aarch64/iterators.md (VSFDF): Define.
14010 (FRINTNZX): Likewise.
14011 (frintnzs_op): Likewise.
14013 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14015 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14016 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14018 * config/aarch64/aarch64-tune.md: Regenerated.
14019 * doc/invoke.texi: Document the new processors.
14021 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14023 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14027 (sve2-sm4): Likewise.
14028 (sveaes): Likewise.
14029 (svesha3): Likewise.
14030 (svebitperm): Likewise.
14032 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14033 Richard Biener <rguenther@suse.de>
14035 PR tree-optimization/91597
14036 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14037 BIT_AND_EXPR optimization for pointers, even if both operand
14038 ranges don't include NULL, the result can be NULL.
14040 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14042 PR middle-end/91605
14043 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14044 (non_mem_decl_p): ...this.
14045 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14046 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14047 unconditionally as before.
14049 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14052 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14053 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14054 * tree.def (LTGT_EXPR): Likewise.
14055 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14057 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14060 * fold-const.c (range_check_type): For enumeral and boolean
14061 type, pass 1 to type_for_size langhook instead of
14062 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14063 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14064 (build_range_check): Don't call unsigned_type_for for pointer types.
14065 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14066 range_check_type result.
14068 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14070 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14071 (replace_ref): Do not replace a chain of only two candidates which are
14072 valid memory references.
14074 2019-09-02 Martin Liska <mliska@suse.cz>
14076 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14077 Bail out when we'll end up with the same number of clusters as
14079 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14080 (jump_table_cluster::can_be_handled): Remove the guard
14081 as it's already handled in ::is_enabled. Allocate output
14082 after early bail out.
14084 2019-09-02 Martin Liska <mliska@suse.cz>
14086 PR gcov-profile/91601
14087 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14088 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14089 also negative edges.
14090 (circuit): Handle also negative edges as they can happen
14091 in some situations.
14093 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14096 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14097 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14098 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14100 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14102 PR middle-end/91623
14103 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14104 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14105 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14109 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14110 GIMPLE_ASM TREE_LIST operands.
14112 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14114 * doc/generic.texi (Unary and Binary Expressions): Mark up
14115 an instance of TYPE_MIN.
14117 2019-08-31 Stafford Horne <shorne@gmail.com>
14119 * config/or1k/constraints.md (t): New constraint.
14120 * config/or1k/or1k.h (GOT_REGS): New register class.
14121 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14123 2019-08-30 Jim Wilson <jimw@sifive.com>
14125 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14126 and -fpic and -mplt then disable -msave-restore and warn.
14128 2019-08-30 Martin Sebor <msebor@redhat.com>
14130 PR middle-end/91599
14131 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14132 the statement doesn't have one.
14133 * gimple-pretty-print.c (percent_G_format): Same.
14135 PR middle-end/91584
14136 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14137 before using them to validate MEM_REF offset.
14139 2019-08-30 Marek Polacek <polacek@redhat.com>
14141 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14143 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14145 * config/arm/arm.md (unaligned_loaddi,
14146 unaligned_storedi): New unspec insn patterns.
14147 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14148 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14149 and unaligned_storedi for 4-byte aligned memory.
14150 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14151 4-byte aligned memory.
14153 2019-08-30 Martin Jambor <mjambor@suse.cz>
14155 tree-optimization/91579
14156 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14157 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14159 (arg_needs_copy_p): Removed.
14160 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14162 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14164 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14166 * config/i386/i386-features.c
14167 (general_scalar_chain::compute_convert_gain):
14168 Correct cost for double-word shifts.
14169 (general_scalar_to_vector_candidate_p): Reject count operands
14170 greater or equal to mode bitsize.
14172 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14174 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14175 for moves between SSE and non-general registers and between
14176 mask and non-general registers.
14177 (ix86_register_move_cost): Remove stalled comment.
14179 2019-08-29 Richard Biener <rguenther@suse.de>
14181 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14182 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14184 2019-08-29 Richard Biener <rguenther@suse.de>
14187 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14188 Do not emit scalar copies for debug-insns, instead replace
14189 their uses with the reg copy used in the chain or reset them
14190 if there is a reaching definition outside of the chain as well.
14192 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14195 * config/i386/i386-expand.c (expand_vec_perm_movs,
14196 expand_vec_perm_blend, expand_vec_perm_vpermil,
14197 expand_vec_perm_pshufb, expand_vec_perm_1,
14198 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14199 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14200 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14201 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14202 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14203 comments - replace ix86_expand_vec_perm_builtin_1 with
14204 ix86_expand_vec_perm_const_1.
14205 (expand_vec_perm2_vperm2f128_vblend): New function.
14206 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14207 expand_vec_perm2_vperm2f128_vblend as last resort.
14208 (canonicalize_perm): Formatting fix.
14210 PR tree-optimization/91351
14211 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14213 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14214 range_check_type returns NULL.
14215 * tree-switch-conversion.c (switch_conversion::build_one_array):
14216 Use range_check_type instead of unsigned_type_for, don't perform
14217 linear opt if it returns NULL.
14218 (bit_test_cluster::find_bit_tests): Formatting fix.
14219 (bit_test_cluster::emit): Use range_check_type instead of
14221 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14224 2019-08-29 Richard Biener <rguenther@suse.de>
14226 PR tree-optimization/91568
14227 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14228 (vect_update_max_nunits): Add overload for poly_uint64.
14229 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14230 (vect_build_slp_tree): Record max_nunits into the subtree
14231 and merge it upwards.
14232 (vect_print_slp_tree): Print max_nunits.
14234 2019-08-28 Marek Polacek <polacek@redhat.com>
14236 Implement P1152R4: Deprecating some uses of volatile.
14238 * doc/invoke.texi: Document -Wvolatile.
14240 2019-08-28 Marek Polacek <polacek@redhat.com>
14242 PR c++/91360 - Implement C++20 P1143R2: constinit.
14243 * doc/invoke.texi: Document -Wc++20-compat.
14245 2019-08-28 Martin Sebor <msebor@redhat.com>
14247 PR tree-optimization/91457
14248 * builtins.c (component_size): New function.
14249 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14250 * builtins.h (compute_objsize): Add argument.
14251 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14252 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14253 (vrp_prop::check_mem_ref): Same.
14254 (vrp_prop::search_for_addr_array): Set no-warning bit.
14255 (check_array_bounds): Same.
14257 2019-08-28 Martin Sebor <msebor@redhat.com>
14260 * opts-common.c (option_enabled): Correct checking for language
14263 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14265 * config/i386/i386.c (ix86_register_move_cost): Do not
14266 limit the cost of moves to/from XMM register to minimum 8.
14268 2019-08-28 Martin Jambor <mjambor@suse.cz>
14271 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14272 checking assert a normal assert to test it really is redundant.
14273 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14275 (update_jump_functions_after_inlining): Removed combining unary
14276 arithmetic operations with an ancestor jump function.
14277 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14280 2019-08-28 Richard Biener <rguenther@suse.de>
14282 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14283 add the MD problem.
14285 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14286 Richard Biener <rguenther@suse.de>
14288 * expr.c (expand_assignment): Handle misaligned DECLs.
14289 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14290 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14292 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14293 * varasm.c (build_constant_desc): Align constants of misaligned types.
14294 * config/arm/predicates.md (aligned_operand): New predicate.
14295 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14296 aligned_operand to check restrictions on memory addresses.
14297 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14298 * config/arm/vec-common.md (mov<VALL>): Likewise.
14300 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14303 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14304 V_128 iterator instead of VI_128.
14306 2019-08-28 Martin Liska <mliska@suse.cz>
14308 PR tree-optimization/90970
14309 * builtins.c (check_access): Remove assignment to maxread
14310 as it hasn't been used since when it was introduced in r255755.
14312 2019-08-27 Martin Sebor <msebor@redhat.com>
14314 PR tree-optimization/91567
14315 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14316 of unknown strings.
14317 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14318 to PTRDIFF_MAX - 2.
14320 2019-08-27 Jeff Law <law@redhat.com>
14322 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14323 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14325 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14328 * config/i386/i386-features.c (convert_scalars_to_vector):
14329 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14330 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14331 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14332 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14334 2019-08-27 Richard Biener <rguenther@suse.de>
14336 * config/i386/i386-features.h
14337 (general_scalar_chain::~general_scalar_chain): Add.
14338 (general_scalar_chain::insns_conv): New bitmap.
14339 (general_scalar_chain::n_sse_to_integer): New.
14340 (general_scalar_chain::n_integer_to_sse): Likewise.
14341 (general_scalar_chain::make_vector_copies): Adjust signature.
14342 * config/i386/i386-features.c
14343 (general_scalar_chain::general_scalar_chain): Outline,
14344 initialize new members.
14345 (general_scalar_chain::~general_scalar_chain): New.
14346 (general_scalar_chain::mark_dual_mode_def): Record insns
14347 we need to insert conversions at and count them.
14348 (general_scalar_chain::compute_convert_gain): Account
14349 for conversion instructions at chain boundary.
14350 (general_scalar_chain::make_vector_copies): Generate a single
14351 copy for a def by a specific insn.
14352 (general_scalar_chain::convert_registers): First populate
14353 defs_map, then make copies at out-of chain insns.
14355 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14357 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14359 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14361 2019-08-27 Martin Liska <mliska@suse.cz>
14363 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14365 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14366 Enclose in anonymous namespace.
14367 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14368 hard_register initialization in braces.
14369 * tree-vrp.h (value_range_base::supports_type_p): Return false
14370 for function with boolean return type.
14372 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14374 * config/i386/i386.c (emit_i387_cw_initialization)
14375 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14377 2019-08-26 Martin Sebor <msebor@redhat.com>
14380 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14381 (sprintf_dom_walker): Remove class.
14382 (get_int_range): Make argument const.
14383 (directive::fmtfunc, directive::set_precision): Same.
14384 (format_none): Same.
14385 (build_intmax_type_nodes): Same.
14386 (adjust_range_for_overflow): Same.
14387 (format_floating): Same.
14388 (format_character): Same.
14389 (format_string): Same.
14390 (format_plain): Same.
14391 (get_int_range): Cast away constness.
14392 (format_integer): Same.
14393 (get_string_length): Call get_range_strlen_dynamic. Handle
14394 null lendata.maxbound.
14395 (should_warn_p): Adjust argument scope qualifier.
14396 (maybe_warn): Same.
14397 (format_directive): Same.
14398 (parse_directive): Same.
14399 (is_call_safe): Same.
14400 (try_substitute_return_value): Same.
14401 (sprintf_dom_walker::handle_printf_call): Rename...
14402 (handle_printf_call): ...to this. Initialize target to host charmap
14403 here instead of in pass_sprintf_length::execute.
14404 (struct call_info): Make global.
14405 (sprintf_dom_walker::compute_format_length): Make global.
14406 (sprintf_dom_walker::handle_gimple_call): Same.
14407 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14408 * print-rtl.c (print_pattern): Reduce the number of spaces to
14409 avoid -Wformat-truncation.
14410 * tree-pass.h (make_pass_warn_printf): New function.
14411 * tree-ssa-strlen.c (strlen_optimize): New variable.
14412 (get_string_length): Add comments.
14413 (get_range_strlen_dynamic): New function.
14414 (check_and_optimize_call): New function.
14415 (handle_integral_assign): New function.
14416 (strlen_check_and_optimize_stmt): Factor code out into
14417 strlen_check_and_optimize_call and handle_integral_assign.
14418 (strlen_dom_walker::evrp): New member.
14419 (strlen_dom_walker::before_dom_children): Use evrp member.
14420 (strlen_dom_walker::after_dom_children): Use evrp member.
14421 (printf_strlen_execute): New function.
14422 (pass_strlen::gate): Update to handle printf calls.
14423 (dump_strlen_info): New function.
14424 (pass_data_warn_printf): New variable.
14425 (pass_warn_printf): New class.
14426 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14427 (handle_printf_call): Same.
14428 * tree-vrp.c (value_range_base::type): Adjust assertion.
14429 * vr-values.c (vr_values::update_value_range): Use type of the first
14430 argument rather than the second.
14432 2019-08-26 Richard Biener <rguenther@suse.de>
14434 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14436 (convert_scalars_to_vector): Do not call it.
14438 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14439 Uros Bizjak <ubizjak@gmail.com>
14441 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14442 CASE_MATHFN_FLOATN for roundeven.
14443 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14445 (ix86_mode_needed): Likewise.
14446 (ix86_mode_after): Likewise.
14447 (ix86_mode_entry): Likewise.
14448 (ix86_mode_exit): Likewise.
14449 (ix86_emit_mode_set): Likewise.
14450 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14451 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14452 (ix86_entity): Add I387_ROUNDEVEN.
14453 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14454 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14455 (define_int_iterator): Likewise.
14456 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14457 (define_constant): Define ROUND_ROUNDEVEN mode.
14458 (define_attr): Add roundeven mode for i387_cw.
14459 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14460 * internal-fn.def (ROUNDEVEN): New builtin function.
14461 * optabs.def (roundeven_optab): New optab.
14463 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14465 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14467 * builtins.def: Added function definitions for roundeven function
14469 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14470 function call. Adjust condition for floor, ceil, trunc and round.
14471 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14472 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14473 (integer_valued_real_call_p): Added case for roundeven function.
14474 * real.c (is_even): New function. Returns true if real number is even,
14475 otherwise returns false.
14476 (is_halfway_below): New function. Returns true if real number is
14477 halfway between two integers, else return false.
14478 (real_roundeven): New function. Round real number to nearest integer,
14479 rounding halfway cases towards even.
14480 * real.h (real_value): Added descriptive comments. Added function
14481 declaration for roundeven function.
14482 * doc/extend.texi (Other Builtins): List roundeven variants among
14483 functions which can be handled as builtins.
14485 2019-08-26 Richard Biener <rguenther@suse.de>
14489 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14491 (general_scalar_chain::replace_with_subreg): Remove.
14492 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14493 (general_scalar_chain::convert_reg): Adjust signature.
14494 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14495 iterate over all defs of a reg.
14496 (general_scalar_chain::replace_with_subreg): Remove.
14497 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14498 (general_scalar_chain::make_vector_copies): Populate defs_map,
14499 place copy only after defs that are used as vectors in the chain.
14500 (general_scalar_chain::convert_reg): Emit a copy for a specific
14501 def in a specific instruction.
14502 (general_scalar_chain::convert_op): All reg uses are converted here.
14503 (general_scalar_chain::convert_insn): Emit copies for scalar
14504 uses of defs here. Replace uses with the copies we created.
14505 Replace and convert the def. Adjust REG_DEAD notes, remove
14506 REG_EQUIV/EQUAL notes.
14507 (general_scalar_chain::convert_registers): Only handle copies
14508 into the chain here.
14510 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14512 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14514 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14516 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14517 Add nop_convert case.
14518 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14519 Fold all statements if requested.
14520 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14521 Allow to fold all statements.
14522 * tree-vrp.c (class vrp_folder):
14523 Let substitute_and_fold_engine fold all statements.
14525 2019-08-26 Richard Biener <rguenther@suse.de>
14527 PR tree-optimization/91526
14528 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14529 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14530 TODO_update_address_taken.
14532 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14534 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14537 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14539 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14540 machine mode for unspec_volatile operand.
14542 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14544 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14545 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14546 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14547 (prefer_neon_for_64bits): Remove.
14548 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14549 (tune_params): Remove PREF_NEON_64_FALSE uses.
14550 (arm_option_override): Remove prefer_neon selection code.
14551 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14552 * config/arm/arm-protos.h (tune_params): Remove
14553 prefer_neon_for_64bits.
14554 (prefer_neon_for_64bits): Remove.
14556 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14559 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14560 and issue any diagnostics needed before collecting the pre-PCH
14563 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14565 PR middle-end/91283
14566 * common.opt (fexcess-precision=): Add Optimization flag. Use
14567 flag_excess_precision variable instead of
14568 flag_excess_precision_cmdline.
14569 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14571 (flag_excess_precision): Don't define.
14572 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14573 flag_excess_precision_cmdline. Remove comment.
14574 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14575 and x_flag_excess_precision instead of
14576 frontend_set_flag_excess_precision_cmdline and
14577 x_flag_excess_precision_cmdline.
14578 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14579 x_flag_excess_precision_cmdline.
14580 * toplev.c (init_excess_precision): Remove.
14581 (lang_dependent_init_target): Don't call it.
14583 2019-08-23 Martin Liska <mliska@suse.cz>
14585 * lto-wrapper.c (run_gcc): When setting jobserver
14586 set also parallel to 1. This was done so before r273908.
14588 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14590 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14591 (cortex-a76ae): Likewise.
14592 (cortex-a77): Likewise
14593 * config/arm/arm-tables.opt: Regenerate.
14594 * config/arm/arm-tune.md: Likewise.
14595 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14596 cortex-a77 CPU options.
14598 2019-08-23 Martin Liska <mliska@suse.cz>
14600 * profile.c (instrument_values): Do not set
14601 0 as last argument.
14602 * tree-profile.c (gimple_gen_interval_profiler): Remove
14604 (gimple_gen_pow2_profiler): Likewise.
14605 (gimple_gen_topn_values_profiler): Likewise.
14606 (gimple_gen_ic_profiler): Likewise.
14607 (gimple_gen_time_profiler): Likewise.
14608 (gimple_gen_average_profiler): Likewise.
14609 (gimple_gen_ior_profiler): Likewise.
14610 * value-prof.c (dump_histogram_value): Use default
14611 in switch statement instead of HIST_TYPE_MAX.
14612 (stream_in_histogram_value): Likewise.
14613 (gimple_duplicate_stmt_histograms): Do not
14614 use NULL for implicitly set arguments.
14615 (gimple_divmod_values_to_profile): Do not use
14616 reserve+quick_push.
14617 (gimple_indirect_call_to_profile): Likewise.
14618 (gimple_find_values_to_profile): Use implicit
14619 function call arguments.
14620 * value-prof.h (gimple_alloc_histogram_value):
14621 Set default values.
14622 (gimple_gen_interval_profiler): Remove last argument.
14623 (gimple_gen_pow2_profiler): Likewise.
14624 (gimple_gen_topn_values_profiler): Likewise.
14625 (gimple_gen_ic_profiler): Likewise.
14626 (gimple_gen_time_profiler): Likewise.
14627 (gimple_gen_average_profiler): Likewise.
14628 (gimple_gen_ior_profiler): Likewise.
14630 2019-08-22 Martin Sebor <msebor@redhat.com>
14632 PR middle-end/91490
14633 * builtins.c (c_strlen): Rename argument and introduce new local.
14634 Set no-warning bit on original argument.
14635 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14636 Fold empty and zero constructors into empty strings.
14637 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14638 for missing initializers.
14639 * tree.c (build_string_literal): Handle optional argument.
14640 * tree.h (build_string_literal): Add defaulted argument.
14641 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14642 no-warning bit on original expression.
14644 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14647 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14648 and UNSPEC_DARN_RAW.
14649 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14651 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14652 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14653 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14655 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14657 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14658 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14659 * config/rs6000/rs6000.md (unspec): ... here.
14660 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14661 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14662 cmpeqb, *cmpeqb_internal): Delete, move to...
14663 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14664 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14665 cmpeqb, *cmpeqb_internal): ... here.
14667 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14669 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14670 intrinsics if __ARM_FP.
14671 Use __ARM_FEATURE_CRC32 ifdef guard.
14673 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14675 * config/arm/arm.md (neon_for_64bits): Remove.
14676 (avoid_neon_for_64bits): Remove.
14677 (arm_adddi3): Always split early.
14678 (arm_subdi3): Always split early.
14679 (negdi2): Remove Neon expansion.
14680 (split zero_extend): Split before reload.
14681 (split sign_extend): Split before reload.
14683 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14685 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14686 (qhs_extenddi_cstr): Likewise.
14687 * config/arm/arm.md (ashldi3): Always expand early.
14688 (ashlsi3): Likewise.
14689 (ashrsi3): Likewise.
14690 (zero_extend<mode>di2): Remove Neon variants.
14691 (extend<mode>di2): Likewise.
14692 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14693 (signed_shift_di3_neon): Likewise.
14694 (unsigned_shift_di3_neon): Likewise.
14695 (ashrdi3_neon_imm_noclobber): Likewise.
14696 (lshrdi3_neon_imm_noclobber): Likewise.
14697 (<shift>di3_neon): Likewise.
14698 (split extend): Remove DI extend split patterns.
14700 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14702 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14703 (split not): Add DImode not splitter.
14704 (anddi3): Remove pattern.
14705 (anddi3_insn): Likewise.
14706 (anddi_zesidi_di): Likewise.
14707 (anddi_sesdi_di): Likewise.
14708 (anddi_notdi_di): Likewise.
14709 (anddi_notzesidi_di): Likewise.
14710 (anddi_notsesidi_di): Likewise.
14711 (iordi3): Likewise.
14712 (iordi3_insn): Likewise.
14713 (iordi_zesidi_di): Likewise.
14714 (iordi_sesidi_di): Likewise.
14715 (xordi3): Likewise.
14716 (xordi3_insn): Likewise.
14717 (xordi_sesidi_di): Likewise.
14718 (xordi_zesidi_di): Likewise.
14719 (one_cmpldi2): Likewise.
14720 (one_cmpldi2_insn): Likewise.
14721 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14722 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14724 (iwmmxt_xordi3): Likewise.
14725 (iwmmxt_anddi3): Likewise.
14726 * config/arm/neon.md (orndi3_neon): Remove pattern.
14727 (anddi_notdi_di): Likewise.
14728 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14729 (arm_iordi_operand_neon): Likewise.
14730 (arm_xordi_operand_neon): Likewise.
14731 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14732 (iordi_notzesidi_di): Likewise.
14733 (iordi_notdi_zesidi): Likewise.
14734 (iordi_notsesidi_di): Likewise.
14736 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14738 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14740 (iorsi3_compare0_scratch): Likewise.
14742 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14744 * config/aarch64/aarch64-simd-builtins.def:
14747 * config/aarch64/aarch64-simd.md:
14748 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14749 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14750 (aarch64_ld1_x4_<mode>): Likewise.
14751 (aarch64_st1_x4_<mode>): Likewise.
14752 * config/aarch64/arm_neon.h:
14753 (vld1_s8_x4): New function.
14754 (vld1q_s8_x4): Likewise.
14755 (vld1_s16_x4): Likewise.
14756 (vld1q_s16_x4): Likewise.
14757 (vld1_s32_x4): Likewise.
14758 (vld1q_s32_x4): Likewise.
14759 (vld1_u8_x4): Likewise.
14760 (vld1q_u8_x4): Likewise.
14761 (vld1_u16_x4): Likewise.
14762 (vld1q_u16_x4): Likewise.
14763 (vld1_u32_x4): Likewise.
14764 (vld1q_u32_x4): Likewise.
14765 (vld1_f16_x4): Likewise.
14766 (vld1q_f16_x4): Likewise.
14767 (vld1_f32_x4): Likewise.
14768 (vld1q_f32_x4): Likewise.
14769 (vld1_p8_x4): Likewise.
14770 (vld1q_p8_x4): Likewise.
14771 (vld1_p16_x4): Likewise.
14772 (vld1q_p16_x4): Likewise.
14773 (vld1_s64_x4): Likewise.
14774 (vld1_u64_x4): Likewise.
14775 (vld1_p64_x4): Likewise.
14776 (vld1q_s64_x4): Likewise.
14777 (vld1q_u64_x4): Likewise.
14778 (vld1q_p64_x4): Likewise.
14779 (vld1_f64_x4): Likewise.
14780 (vld1q_f64_x4): Likewise.
14781 (vst1_s8_x4): Likewise.
14782 (vst1q_s8_x4): Likewise.
14783 (vst1_s16_x4): Likewise.
14784 (vst1q_s16_x4): Likewise.
14785 (vst1_s32_x4): Likewise.
14786 (vst1q_s32_x4): Likewise.
14787 (vst1_u8_x4): Likewise.
14788 (vst1q_u8_x4): Likewise.
14789 (vst1_u16_x4): Likewise.
14790 (vst1q_u16_x4): Likewise.
14791 (vst1_u32_x4): Likewise.
14792 (vst1q_u32_x4): Likewise.
14793 (vst1_f16_x4): Likewise.
14794 (vst1q_f16_x4): Likewise.
14795 (vst1_f32_x4): Likewise.
14796 (vst1q_f32_x4): Likewise.
14797 (vst1_p8_x4): Likewise.
14798 (vst1q_p8_x4): Likewise.
14799 (vst1_p16_x4): Likewise.
14800 (vst1q_p16_x4): Likewise.
14801 (vst1_s64_x4): Likewise.
14802 (vst1_u64_x4): Likewise.
14803 (vst1_p64_x4): Likewise.
14804 (vst1q_s64_x4): Likewise.
14805 (vst1q_u64_x4): Likewise.
14806 (vst1q_p64_x4): Likewise.
14807 (vst1_f64_x4): Likewise.
14808 (vst1q_f64_x4): Likewise.
14810 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14812 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14814 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14815 Richard Sandiford <richard.sandiford@arm.com>
14818 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14819 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14821 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14824 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14825 in reg if it fails aarch64_plus_operand predicate.
14827 2019-08-21 Richard Biener <rguenther@suse.de>
14829 PR tree-optimization/91482
14830 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14831 BUILT_IN_ASSUME_ALIGNED calls.
14833 2019-08-21 Richard Biener <rguenther@suse.de>
14837 * config/i386/i386-features.c
14838 (general_scalar_chain::make_vector_copies): Copy stack temporary
14839 rtx when using it multiple times.
14840 (general_scalar_chain::convert_reg): Likewise.
14842 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14844 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14846 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14848 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14849 catch more redundant zero initialization cases.
14850 (dse_dom_walker::dse_optimize_stmt): Likewise.
14852 2019-08-20 Richard Biener <rguenther@suse.de>
14855 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14856 by collect2 when targetm.have_ctors_dtors which avoids dragging
14857 in temporary filenames from LTO input objects.
14859 2019-08-20 Richard Biener <rguenther@suse.de>
14861 PR tree-optimization/37242
14862 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14863 to (T)a + (T)b if we know that a + b does not overflow.
14865 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14867 PR rtl-optimization/91347
14868 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14869 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14871 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14873 * calls.h (function_arg_info): Add a pass_by_reference field,
14874 defaulting to false.
14875 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14876 when applying pass-by-reference semantics.
14877 (initialize_argument_information): Likewise.
14878 (emit_library_call_value_1): Likewise.
14879 * function.c (assign_parm_data_one): Remove passed_pointer field.
14880 (assign_parm_find_data_types): Don't set it.
14881 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14882 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14883 arg.pass_by_reference instead of passed_pointer.
14885 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14887 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
14888 into a single function_arg_info, updating its fields when we
14889 apply pass-by-reference and promotion semantics. Use the
14890 function_arg_info to track the mode rather than keeping it in
14891 a separate local variable.
14892 (initialize_argument_information): Likewise. Base the final
14893 arg_to_skip on this new function_arg_info rather than creating
14894 a new one from scratch.
14896 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14898 * function.c (assign_parm_data_one): Replace passed_type,
14899 promoted_mode and named_arg with a function_arg_info field.
14900 (assign_parm_find_data_types): Remove local variables and
14901 assign directly to "data". Make data->passed_mode shadow
14902 data->arg.mode until promotion, then assign the promoted
14903 mode to data->arg.mode.
14904 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
14905 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
14906 (assign_parm_remove_parallels, assign_parm_setup_block_p)
14907 (assign_parm_setup_block, assign_parm_setup_reg)
14908 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
14909 arg.mode instead of promoted_mode, arg.type instead of passed_type
14910 and arg.named instead of named_arg. Use data->arg for
14911 function_arg_info structures that had the field values passed_type,
14912 promoted_mode and named_arg. Base other function_arg_infos on
14913 data->arg, changing the necessary properties.
14915 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14917 * calls.h (apply_pass_by_reference_rules): Declare.
14918 * calls.c (apply_pass_by_reference_rules): New function.
14919 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
14920 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
14921 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
14922 * function.c (assign_parm_find_data_types): Likewise.
14923 * var-tracking.c (prepare_call_arguments): Likewise.
14925 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14927 * target.def (must_pass_in_stack): Take a function_arg_info instead
14928 of a mode and a type.
14929 * doc/tm.texi: Regenerate.
14930 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
14931 instead of a mode and a type.
14932 (must_pass_in_stack_var_size_or_pad): Likewise.
14933 * calls.c (must_pass_in_stack_var_size): Likewise.
14934 (must_pass_in_stack_var_size_or_pad): Likewise.
14935 (initialize_argument_information): Update call to
14936 targetm.calls.must_pass_in_stack.
14937 (must_pass_va_arg_on_stack): Likewise.
14938 * function.c (assign_parm_find_entry_rtl): Likewise.
14939 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
14940 * config/alpha/alpha.c (alpha_function_arg): Likewise.
14941 (alpha_function_arg_advance): Likewise.
14942 * config/cr16/cr16.c (cr16_function_arg): Likewise.
14943 (cr16_function_arg_advance): Likewise.
14944 * config/cris/cris.c (cris_pass_by_reference): Likewise.
14945 (cris_arg_partial_bytes): Likewise.
14946 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
14947 * config/lm32/lm32.c (lm32_function_arg): Likewise.
14948 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
14949 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
14950 * config/mips/mips.c (mips_pass_by_reference): Likewise.
14951 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
14952 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
14953 * config/sh/sh.c (sh_pass_by_reference): Likewise.
14954 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
14955 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
14956 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
14957 instead of a mode and a type.
14958 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
14959 (fr30_num_arg_regs): Likewise.
14960 (fr30_setup_incoming_varargs): Update calls accordingly.
14961 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
14962 (fr30_function_arg_advance): Likewise.
14963 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
14964 instead of a mode and a type.
14965 * config/gcn/gcn.c (num_arg_regs): Likewise.
14966 (gcn_function_arg, gcn_function_arg_advance): Update calls to
14967 num_arg_regs and targetm.calls.must_pass_in_stack.
14968 (gcn_arg_partial_bytes): Likewise.
14969 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
14970 function_arg_info instead of a mode and a type.
14971 (classify_argument): Update call accordingly.
14972 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
14973 function_arg_info instead of a mode and a type.
14974 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
14976 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
14977 (rs6000_parm_needs_stack): Update call accordingly.
14978 (setup_incoming_varargs): Likewise.
14980 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14982 * target.def (callee_copies): Take a function_arg_info instead
14983 of a mode, type and named flag.
14984 * doc/tm.texi: Regenerate.
14985 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
14986 instead of a mode, type and named flag.
14987 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14988 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14989 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14990 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
14991 instead of a mode, type and named flag.
14992 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
14993 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
14994 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
14995 * calls.h (reference_callee_copied): Take a function_arg_info
14996 instead of a mode, type and named flag.
14997 * calls.c (reference_callee_copied): Likewise.
14998 (initialize_argument_information): Update call accordingly.
14999 (emit_library_call_value_1): Likewise.
15000 * function.c (gimplify_parameters): Likewise.
15001 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15002 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15003 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15004 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15005 (TARGET_CALLEE_COPIES): Define to
15006 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15007 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15008 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15009 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15010 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15011 instead of a mode, type and named flag.
15012 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15013 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15014 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15015 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15016 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15017 (TARGET_CALLEE_COPIES): Define to
15018 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15019 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15020 instead of a mode, type and named flag.
15021 * config/sh/sh.c (sh_callee_copies): Likewise.
15022 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15023 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15024 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15026 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15028 * target.def (function_arg_advance): Take a function_arg_info instead
15029 of a mode, type and named flag.
15030 * doc/tm.texi: Regenerate.
15031 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15032 instead of a mode, type and named flag.
15033 * targhooks.c (default_function_arg_advance): Likewise.
15034 * calls.c (initialize_argument_information): Update call to
15035 targetm.calls.function_arg_advance.
15036 (emit_library_call_value_1): Likewise.
15037 * dse.c (get_call_args): Likewise.
15038 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15039 * function.c (assign_parms, gimplify_parameters): Likewise.
15040 * var-tracking.c (prepare_call_arguments): Likewise.
15041 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15042 function_arg_info instead of a mode, type and named flag.
15043 (aarch64_setup_incoming_varargs): Update call accordingly.
15044 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15045 function_arg_info instead of a mode, type and named flag.
15046 (alpha_setup_incoming_varargs): Update call accordingly.
15047 * config/arc/arc.c (arc_function_arg_advance): Take a
15048 function_arg_info instead of a mode, type and named flag.
15049 (arc_setup_incoming_varargs): Update call accordingly.
15050 * config/arm/arm.c (arm_function_arg_advance): Take a
15051 function_arg_info instead of a mode, type and named flag.
15052 (cmse_func_args_or_return_in_stack): Update call accordingly.
15053 (arm_function_ok_for_sibcall): Likewise.
15054 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15055 * config/avr/avr.c (avr_function_arg_advance): Take a
15056 function_arg_info instead of a mode, type and named flag.
15057 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15058 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15059 (c6x_call_saved_register_used): Update call accordingly.
15060 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15061 function_arg_info instead of a mode, type and named flag.
15062 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15063 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15064 (csky_setup_incoming_varargs): Update call accordingly.
15065 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15066 function_arg_info instead of a mode, type and named flag.
15067 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15068 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15069 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15070 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15071 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15072 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15073 (ix86_setup_incoming_varargs): Update call accordingly.
15074 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15075 function_arg_info instead of a mode, type and named flag.
15076 (ia64_setup_incoming_varargs): Update call accordingly.
15077 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15078 function_arg_info instead of a mode, type and named flag.
15079 (iq2000_expand_prologue): Update call accordingly.
15080 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15081 function_arg_info instead of a mode, type and named flag.
15082 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15083 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15084 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15085 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15086 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15088 (microblaze_expand_prologue): Update call accordingly.
15089 * config/mips/mips.c (mips_function_arg_advance): Take a
15090 function_arg_info instead of a mode, type and named flag.
15091 (mips_setup_incoming_varargs): Update call accordingly.
15092 (mips_output_args_xfer): Likewise.
15093 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15094 function_arg_info instead of a mode, type and named flag.
15095 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15096 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15097 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15098 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15099 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15100 (nios2_setup_incoming_varargs): Update call accordingly.
15101 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15102 function_arg_info instead of a mode, type and named flag.
15103 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15104 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15105 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15106 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15107 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15108 (riscv_setup_incoming_varargs): Update call accordingly.
15109 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15110 function_arg_info instead of a mode, type and named flag.
15111 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15113 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15114 (rs6000_parm_needs_stack): Update call accordingly.
15115 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15116 instead of a mode, type and named flag.
15117 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15118 (s390_call_saved_register_used): Update call accordingly.
15119 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15120 instead of a mode, type and named flag.
15121 (sh_output_mi_thunk): Update call accordingly.
15122 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15123 function_arg_info instead of a mode, type and named flag.
15124 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15125 (spu_setup_incoming_varargs): Update call accordingly.
15126 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15127 function_arg_info instead of a mode, type and named flag.
15128 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15129 (tilegx_setup_incoming_varargs): Update call accordingly.
15130 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15131 function_arg_info instead of a mode, type and named flag.
15132 (tilegx_setup_incoming_varargs): Update call accordingly.
15133 * config/v850/v850.c (v850_function_arg_advance): Take a
15134 function_arg_info instead of a mode, type and named flag.
15135 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15136 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15137 (visium_setup_incoming_varargs): Update call accordingly.
15138 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15139 function_arg_info instead of a mode, type and named flag.
15141 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15143 * target.def (function_arg, function_incoming_arg): Take a
15144 function_arg_info instead of a mode, tree and named flag.
15145 * doc/tm.texi: Regenerate.
15146 * targhooks.h (default_function_arg): Take a function_arg_info
15147 instead of a mode, tree and named flag.
15148 (default_function_incoming_arg): Likewise.
15149 * targhooks.c (default_function_arg): Likewise.
15150 (default_function_incoming_arg): Likewise.
15151 * calls.h (function_arg_info::end_marker_p): New function.
15152 (function_arg_info::end_marker): Likewise.
15153 * calls.c (prepare_call_address, initialize_argument_information)
15154 (expand_call, emit_library_call_value_1): Update calls to
15155 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15156 * dse.c: Include calls.h.
15157 (get_call_args): Update call to targetm.calls.function_arg.
15158 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15159 * var-tracking.c (prepare_call_arguments): Likewise.
15160 * function.c (assign_parm_find_entry_rtl): Update call to
15161 targetm.calls.function_incoming_arg.
15162 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15163 function_arg_info instead of a mode, tree and named flag.
15164 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15165 * config/arc/arc.c (arc_function_arg): Likewise.
15166 * config/arm/arm.c (arm_function_arg): Likewise.
15167 (cmse_func_args_or_return_in_stack): Update call accordingly.
15168 (arm_function_ok_for_sibcall): Likewise.
15169 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15170 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15171 instead of a mode, tree and named flag.
15172 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15173 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15174 (c6x_call_saved_register_used): Update call accordingly.
15175 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15176 instead of a mode, tree and named flag.
15177 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15178 (cris_function_arg_1): Likewise.
15179 * config/csky/csky.c (csky_function_arg): Likewise.
15180 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15181 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15182 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15183 (frv_function_arg_1): Likewise.
15184 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15185 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15186 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15187 * config/i386/i386.c (ix86_function_arg): Likewise.
15188 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15189 (ia64_function_arg_1): Likewise.
15190 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15191 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15193 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15194 instead of a mode, tree and named flag.
15195 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15196 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15197 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15198 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15199 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15200 (microblaze_expand_prologue): Update call accordingly.
15201 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15202 instead of a mode, tree and named flag.
15203 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15204 (mmix_function_arg_1): Likewise.
15205 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15206 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15207 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15208 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15209 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15210 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15211 (nvptx_function_incoming_arg): Likewise.
15212 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15213 * config/pa/pa.c (pa_function_arg): Likewise.
15214 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15215 * config/pru/pru.c (pru_function_arg): Likewise.
15216 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15217 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15218 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15219 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15220 (rs6000_parm_needs_stack): Update call accordingly.
15221 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15222 instead of a mode, tree and named flag.
15223 * config/s390/s390.c (s390_function_arg): Likewise.
15224 (s390_call_saved_register_used): Update call accordingly.
15225 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15226 instead of a mode, tree and named flag.
15227 (sh_output_mi_thunk): Update call accordingly.
15228 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15229 (sparc_function_incoming_arg): Take a function_arg_info instead of
15230 a mode, tree and named flag.
15231 * config/spu/spu.c (spu_function_arg): Likewise.
15232 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15233 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15234 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15235 * config/v850/v850.c (v850_function_arg): Likewise.
15236 * config/vax/vax.c (vax_function_arg): Likewise.
15237 * config/visium/visium.c (visium_function_arg): Likewise.
15238 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15239 (xtensa_function_incoming_arg): Likewise.
15241 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15243 * target.def (setup_incoming_varargs): Take a function_arg_info
15244 instead of a mode and tree.
15245 * doc/tm.texi: Regenerate.
15246 * targhooks.h (default_setup_incoming_varargs): Take a
15247 function_arg_info instead of a mode and tree.
15248 * targhooks.c (default_setup_incoming_varargs): Likewise.
15249 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15250 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15251 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15252 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15253 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15254 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15255 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15256 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15258 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15259 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15260 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15261 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15262 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15263 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15264 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15265 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15266 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15267 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15268 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15269 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15270 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15271 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15272 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15273 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15274 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15275 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15276 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15277 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15278 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15279 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15280 * function.c (assign_parms_setup_varargs): Update call to
15281 targetm.calls.setup_incoming_varargs.
15283 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15285 * target.def (pass_by_reference): Take a function_arg_info instead
15286 of a mode, type and named flag.
15287 * doc/tm.texi: Regenerate.
15288 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15290 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15291 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15292 function_arg_info instead of a mode, type and named flag.
15293 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15294 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15295 mode, type and named flag.
15296 * calls.c (pass_by_reference): Likewise.
15297 (pass_va_arg_by_reference): Update call accordingly.
15298 (initialize_argument_information): Likewise.
15299 (emit_library_call_value_1): Likewise.
15300 * function.c (assign_parm_find_data_types): Likewise.
15301 * var-tracking.c (prepare_call_arguments): Likewise.
15302 * stor-layout.c: Include calls.h.
15303 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15304 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15305 function_arg_info instead of a mode, type and named flag.
15306 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15307 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15308 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15309 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15310 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15311 (c6x_call_saved_register_used): Update call to pass_by_reference.
15312 * config/cris/cris.c (cris_pass_by_reference): Take a
15313 function_arg_info instead of a mode, type and named flag.
15314 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15315 function_arg_info instead of a mode, type and named flag.
15316 (epiphany_arg_partial_bytes): Update call accordingly.
15317 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15318 function_arg_info instead of a mode, type and named flag.
15319 (ft32_arg_partial_bytes): Update call accordingly.
15320 * config/i386/i386.c (ix86_pass_by_reference): Take a
15321 function_arg_info instead of a mode, type and named flag.
15322 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15323 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15324 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15325 (m32r_return_in_memory): Update call accordingly.
15326 * config/mips/mips.c (mips_pass_by_reference): Take a
15327 function_arg_info instead of a mode, type and named flag.
15328 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15329 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15330 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15331 (moxie_arg_partial_bytes): Update call accordingly.
15332 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15333 function_arg_info instead of a mode, type and named flag.
15334 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15335 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15336 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15337 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15338 (riscv_return_in_memory): Update call accordingly.
15339 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15340 function_arg_info instead of a mode, type and named flag.
15341 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15342 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15343 * config/s390/s390.c (s390_pass_by_reference): Take a
15344 function_arg_info instead of a mode, type and named flag.
15345 (s390_call_saved_register_used): Update call accordingly.
15346 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15347 instead of a mode, type and named flag.
15348 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15349 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15350 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15351 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15352 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15353 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15355 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15357 * target.def (arg_partial_bytes): Take a function_arg_info instead
15358 of a mode, type and named flag.
15359 * doc/tm.texi: Regenerate.
15360 * target.h (function_arg_info): Declare.
15361 * calls.h (function_arg_info): New class.
15362 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15363 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15364 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15365 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15366 * calls.c (initialize_argument_information): Update call to
15367 targetm.calls.partial_bytes.
15368 (emit_library_call_value_1): Likewise.
15369 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15370 * function.c (assign_parm_find_entry_rtl): Likewise.
15371 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15372 function_arg_info instead of a mode, type and named flag.
15373 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15374 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15375 (cmse_func_args_or_return_in_stack): Update accordingly.
15376 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15377 function_arg_info instead of a mode, type and named flag.
15378 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15379 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15380 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15381 * config/fr30/fr30.c: Include calls.h.
15382 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15383 type and named flag.
15384 * config/frv/frv.c: Include calls.h.
15385 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15386 type and named flag.
15387 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15388 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15389 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15390 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15391 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15392 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15393 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15395 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15396 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15397 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15398 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15399 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15400 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15401 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15402 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15403 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15404 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15405 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15406 (rs6000_parm_needs_stack): Update call accordingly.
15407 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15408 function_arg_info instead of a mode, type and named flag.
15409 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15410 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15412 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15414 * calls.h (must_pass_va_arg_in_stack): Declare.
15415 * calls.c (must_pass_va_arg_in_stack): New function.
15416 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15417 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15418 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15420 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15422 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15424 * calls.h (pass_va_arg_by_reference): Declare.
15425 * calls.c (pass_va_arg_by_reference): New function.
15426 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15427 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15428 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15429 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15430 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15431 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15432 (mips_gimplify_va_arg_expr): Likewise.
15433 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15434 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15435 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15436 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15437 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15438 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15439 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15440 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15441 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15442 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15443 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15445 2019-08-20 Richard Biener <rguenther@suse.de>
15448 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15449 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15450 (convert_scalars_to_vector): Add timode_p parameter and use it
15451 to guard TImode-only operation.
15452 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15453 (pass_stv::execute): Pass down timode_p.
15455 2019-08-20 Lili Cui <lili.cui@intel.com>
15457 * common/config/i386/i386-common.c
15458 (processor_names): Add tigerlake and cooperlake.
15459 (processor_alias_table): Add tigerlake and cooperlake.
15460 * config.gcc: Add -march=tigerlake and cooperlake.
15461 * config/i386/driver-i386.c
15462 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15463 Add "has_avx" to classify processor.
15464 * config/i386/i386-builtins.c (processor_model) :
15465 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15466 (arch_names_table): Add tigerlake and cooperlake.
15467 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15468 and PROCESSOR_COOPERLAKE.
15469 * config/i386/i386-c.c
15470 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15471 * config/i386/i386-options.c
15472 (m_TIGERLAKE): Define.
15473 (m_COOPERLAKE): Ditto.
15474 (m_CORE_AVX512): Ditto.
15475 (processor_cost_table): Add cascadelake.
15476 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15477 * config/i386/i386.h
15478 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15479 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15480 (PTA_MOVDIRI): Ditto.
15481 (PTA_MOVDIR64B): Ditto.
15482 (PTA_COOPERLAKE): Ditto.
15483 (PTA_TIGERLAKE): Ditto.
15484 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15485 * doc/extend.texi: Add tigerlake and cooperlake.
15486 * doc/invoke.texi: Add tigerlake and cooperlake.
15488 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15490 * doc/install.texi (Specific, alpha): Remove note to use
15491 binutils 2.11.2 or later.
15493 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15495 PR middle-end/89544
15496 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15499 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15501 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15502 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15503 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15504 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15505 * config/aarch64/constraints.md (Dt): New constraint
15506 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15508 2019-08-19 Richard Biener <rguenther@suse.de>
15510 PR tree-optimization/91403
15511 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15512 cases we can handle with tail-recursion...
15513 (follow_ssa_edge_expr): ... here. Do so.
15515 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15518 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15519 implemented for -fsanitize=kernel-address, and merge check logic
15520 with -fsanitize=address.
15522 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15524 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15525 for cpu and machine. Factor 64/32b builtins.
15527 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15529 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15530 gone, point to sourceforge.net.
15532 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15534 * doc/ux.texi (User Experience Guidelines): Update reference.
15536 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15538 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15541 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15543 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15544 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15546 2019-08-16 Martin Sebor <msebor@redhat.com>
15548 * tree.def (TYPE_SIZE): Clarify.
15549 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15551 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15553 PR tree-optimization/91109
15554 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15555 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15556 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15558 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15560 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15561 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15562 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15563 (uavg<mode>3_ceil): New expander.
15564 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15565 mode iterator when creating CONST1_RTX.
15566 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15567 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15568 mode iterator for const1_operand predicate.
15570 2019-08-16 Richard Biener <rguenther@suse.de>
15572 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15573 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15575 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15576 (analyze_evolution_in_loop): Likewise.
15577 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15578 (follow_ssa_edge_expr): ... here. Refactor code.
15580 2019-08-16 Richard Biener <rguenther@suse.de>
15583 * config/i386/i386-features.c
15584 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15586 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15589 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15590 only if subst_name matches curr_attr string.
15592 2019-08-16 Richard Biener <rguenther@suse.de>
15594 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15595 stmt at gsi_p, instead replace it with a NOP removed later.
15596 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15597 that became dead because of that.
15599 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15601 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15602 for which we can't represent a range.
15603 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15605 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15606 Set VR_UNDEFINED if type is not supported.
15607 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15608 * tree-vrp.c (value_range_base::check): Assert that a varying has
15610 (value_range_base::equal_p): Early bail for undefines.
15611 (value_range_base::set_varying): Accept a type.
15612 (value_range::set_varying): Same.
15613 (value_range_base::type): VARYING can have a type, while UNDEFINE
15615 (value_range_base::dump): Print type for VARYING nodes.
15616 (value_range_base::set): Add type to VARYING.
15617 (extract_range_from_multiplicative_op): Pass type to set_varying.
15618 (extract_range_from_binary_expr): Same.
15619 (value_range_base::intersect_helper): Same.
15620 (value_range_base::union_helper): Same.
15621 (value_range_base::normalize_symbolics): Same.
15622 (determine_value_range_1): Same.
15623 * tree-vrp.h (class value_range_base): Add type to set_varying.
15624 Add prototype for dump(void).
15625 Add prototype for supports_type_p.
15626 (class value_range): Add type to set_varying.
15627 Add prototype for dump(void).
15628 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15630 (vr_values::get_lattice_entry): Set varying even if propagation
15632 Pass type to set_varying.
15633 (vr_values::get_value_range): Remove vr_const_varying.
15634 Reallocate the lattice if needed.
15635 (vr_values::update_value_range): Pass type to set_varying.
15636 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15637 (vr_values::extract_range_from_binary_expr): Same.
15638 (vr_values::extract_range_from_unary_expr): Same.
15639 (vr_values::extract_range_from_cond_expr): Same.
15640 (vr_values::check_for_binary_op_overflow): Same.
15641 (vr_values::extract_range_basic): Same.
15642 (vr_values::extract_range_from_assignment): Same.
15643 (vr_values::vr_values): Increase size of num_vr_values.
15644 (vr_values::extract_range_from_phi_node): Pass type to
15647 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15650 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15651 for costs of hard register moves.
15652 (ix86_register_move_cost): Likewise.
15653 * config/i386/i386.h (processor_costs): Move costs of hard
15654 register moves to hard_register. Add int_load, int_store,
15655 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15656 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15657 for costs of RTL expressions.
15658 * config/i386/x86-tune-costs.h: Move costs of hard register
15659 moves to hard_register. Duplicate int_load, int_store,
15660 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15661 sse_load, sse_store for costs of RTL expressions.
15663 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15665 * target.def (setup_incoming_vararg_bounds): Remove.
15666 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15667 * doc/tm.texi: Regenerate.
15668 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15669 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15670 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15671 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15673 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15675 MSP430: Fix lines over 80 characters long in
15676 config/msp430/*.{c,h} files
15678 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15679 specifier in string.
15680 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15681 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15682 redundant old comment.
15683 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15684 Split line more than 80 characters long.
15685 * config/msp430/msp430.c (msp430_option_override): Likewise.
15686 (msp430_return_in_memory): Likewise.
15687 (msp430_gimplify_va_arg_expr): Likewise.
15688 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15689 (msp430_legitimate_constant): Likewise.
15690 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15691 (msp430_attr): Likewise.
15692 (msp430_data_attr): Likewise.
15693 (msp430_start_function): Likewise.
15694 (gen_prefix): Likewise.
15695 (msp430_init_sections): Likewise.
15696 (msp430_select_section): Likewise.
15697 (msp430_function_section): Likewise.
15698 (msp430_unique_section): Likewise.
15699 (msp430_output_aligned_decl_common): Likewise.
15700 (msp430_do_not_relax_short_jumps): Likewise.
15701 (msp430_init_builtins): Likewise.
15702 (msp430_expand_delay_cycles): Likewise.
15703 (msp430_expand_prologue): Likewise.
15704 (msp430_expand_epilogue): Likewise.
15705 (msp430_expand_helper): Likewise.
15706 (msp430_split_movsi): Likewise.
15707 (msp430_print_operand): Likewise.
15708 (msp430_return_addr_rtx): Likewise.
15709 (msp430x_extendhisi): Likewise.
15710 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15711 (ASM_SPEC): Likewise.
15712 Remove very obvious comments.
15713 (LIB_SPEC): Split line more than 80 characters long.
15714 (EH_RETURN_HANDLER_RTX): Likewise.
15715 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15717 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15719 MSP430: Fix whitespace errors and incorrect indentation in
15720 config/msp430/*.{c,h} files
15722 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15723 (msp430_select_hwmult_lib): Likewise.
15724 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15725 (msp430_extract_mcu_data): Likewise.
15726 (struct t_msp430_mcu_data): Likewise.
15727 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15728 before left square bracket.
15729 (msp430_option_override): Fix indentation.
15730 (msp430_hard_regno_nregs_with_padding): Likewise.
15731 (msp430_initial_elimination_offset): Likewise.
15732 (msp430_special_register_convention_p): Remove whitespace before left
15733 square bracket and after exclamation mark.
15734 (msp430_evaluate_arg): Likewise.
15735 (msp430_callee_copies): Fix indentation.
15736 (msp430_gimplify_va_arg_expr): Likewise.
15737 (msp430_function_arg_advance): Remove whitespace before left square
15739 (reg_ok_for_addr): Likewise.
15740 (msp430_preserve_reg_p): Likewise.
15741 (msp430_compute_frame_info): Likewise.
15742 (msp430_asm_output_addr_const_extra): Add space between function name
15743 and open parenthesis.
15744 (has_section_name): Fix indentation.
15745 (msp430_attr): Remove trailing whitespace.
15746 (msp430_section_attr): Likewise.
15747 (msp430_data_attr): Likewise.
15748 (struct msp430_attribute_table): Fix comment and whitespace.
15749 (msp430_start_function): Remove whitespace before left square bracket.
15750 Add space between function name and open parenthesis.
15751 (msp430_select_section): Remove trailing whitespace.
15752 (msp430_section_type_flags): Remove trailing whitespace.
15753 (msp430_unique_section): Remove space before closing parenthesis.
15754 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15755 (msp430_builtins): Remove whitespace before left square bracket.
15756 (msp430_init_builtins): Fix indentation.
15757 (msp430_expand_prologue): Remove whitespace before left square bracket.
15758 Remove space before closing parenthesis.
15759 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15760 (msp430_split_movsi): Remove space before closing parenthesis.
15761 (helper_function_name_mappings): Fix indentation.
15762 (msp430_use_f5_series_hwmult): Fix whitespace.
15763 (use_32bit_hwmult): Likewise.
15764 (msp430_no_hwmult): Likewise.
15765 (msp430_output_labelref): Remove whitespace before left square bracket.
15766 (msp430_print_operand_raw): Likewise.
15767 (msp430_print_operand_addr): Likewise.
15768 (msp430_print_operand): Add two spaces after '.' in comment.
15769 Fix trailing whitespace.
15770 (msp430x_extendhisi): Fix indentation.
15771 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15773 (PC_REGNUM): Likewise.
15774 (STACK_POINTER_REGNUM): Likewise.
15775 (CC_REGNUM): Likewise.
15777 2019-08-15 Richard Biener <rguenther@suse.de>
15780 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15782 (general_scalar_chain::make_vector_copies): Use it.
15784 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15786 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15788 2019-08-15 Martin Liska <mliska@suse.cz>
15790 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15791 operators with no arguments.
15792 (eliminate_unnecessary_stmts): Likewise here.
15794 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15796 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15797 <case COMPARE>: Revert 2019-08-14 change.
15798 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15799 for (TARGET_64BIT || mode != DImode).
15801 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15803 * tree-vrp.c (value_range_base::set): Merge in code from
15804 value_range_base::set_and_canonicalize.
15805 Enforce canonicalization at set time.
15806 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15807 (value_range_base::set_undefined): Inline call to set().
15808 (value_range_base::set_varying): Same.
15809 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15810 (vrp_val_max): New argument handle_pointers.
15811 (vrp_val_min): Same.
15812 (ranges_from_anti_range): Same.
15813 (extract_range_into_wide_ints): Use tree argument instead of sign
15815 (extract_range_from_multiplicative_op): Take in tree type instead
15816 of precision and sign. Adapt function for canonicalized ranges.
15817 (extract_range_from_binary_expr): Pass type to
15818 extract_range_from_multiplicative_op.
15819 Adapt for canonicalized ranges.
15820 (extract_range_from_unary_expr): Same.
15821 (value_range_base::intersect_helper): Adjust for canonicalized
15823 (value_range_base::union_helper): Same.
15824 (value_range_base::normalize_symbolics): New.
15825 * tree-vrp.h (class value_range_base): Remove
15826 set_and_canonicalize.
15827 New prototype for normalize_symbolics.
15828 (class value_range): Remove set_and_canonicalize.
15829 (vrp_val_min): Adjust prototype.
15830 (vrp_val_max): Same.
15832 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15833 instead of set_and_canonicalize.
15835 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15837 PR middle-end/91444
15838 * tree-vect-stmts.c (vectorizable_call): Check that the function
15839 is a BUILT_IN_MD function before passing it to
15840 targetm.vectorize.builtin_md_vectorized_function.
15842 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15844 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15845 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15846 (aarch64_select_early_remat_modes): Use it.
15848 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15850 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15851 16 for SVE predicates even if they are fixed-length.
15853 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15855 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15856 operand order match the MOV /Z alias.
15858 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15860 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15861 the vector pattern as an aarch64_svpattern argument. Update the
15862 overloaded caller accordingly.
15863 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15864 (aarch64_output_sve_vector_inc_dec): Likewise.
15866 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15868 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15869 multiplication case, try to compute VG * (lowest set bit) directly
15870 rather than always basing the multiplication on VG. Use
15871 expand_mult for the multiplication if we can.
15873 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15875 * config/aarch64/aarch64-protos.h
15876 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15877 (aarch64_sve_inc_dec_immediate_p): Rename to...
15878 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15879 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15880 (aarch64_output_sve_scalar_inc_dec): Declare.
15881 (aarch64_output_sve_inc_dec_immediate): Rename to...
15882 (aarch64_output_sve_vector_inc_dec): ...this.
15883 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15884 (aarch64_output_sve_scalar_inc_dec): New functions.
15885 (aarch64_output_sve_addvl_addpl): Remove the base and offset
15886 arguments. Only handle true ADDVL and ADDPL instructions;
15887 don't emit an INC or DEC.
15888 (aarch64_sve_inc_dec_immediate_p): Rename to...
15889 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15890 (aarch64_output_sve_inc_dec_immediate): Rename to...
15891 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
15892 aarch64_sve_vector_inc_dec_immediate_p.
15893 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
15894 (aarch64_sve_plus_immediate): New predicates.
15895 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
15896 rather than aarch64_sve_addvl_addpl_immediate.
15897 (aarch64_sve_inc_dec_immediate): Rename to...
15898 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
15899 aarch64_sve_vector_inc_dec_immediate_p.
15900 (aarch64_sve_add_operand): Update accordingly.
15901 * config/aarch64/constraints.md (Uai): New constraint.
15902 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
15903 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
15904 operand into a register if it satisfies aarch64_sve_plus_immediate.
15905 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
15906 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
15907 * config/aarch64/aarch64-sve.md (add<mode>3): Call
15908 aarch64_output_sve_vector_inc_dec instead of
15909 aarch64_output_sve_inc_dec_immediate.
15911 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15913 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
15914 (UNSPEC_REVW): New constants.
15915 (elem_bits): New mode attribute.
15916 (SVE_INT_UNARY): New int iterator.
15917 (optab): Handle UNSPEC_REV[BHW].
15918 (sve_int_op): New int attribute.
15919 (min_elem_bits): Handle VNx16QI and the predicate modes.
15920 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
15921 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
15922 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
15923 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
15924 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
15925 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
15926 unspecs based on the total width of the reversed data.
15927 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
15928 reinterpret followed by a subreg on big-endian targets.
15930 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15931 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15933 * config/aarch64/aarch64-sve.md
15934 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
15935 alternatives in which one of the inputs is in the same register
15938 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15940 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
15941 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
15943 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15945 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
15946 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
15948 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15949 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15951 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
15952 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
15953 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
15955 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15956 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15958 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
15959 Add an alternative that uses reversed shifts.
15961 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15963 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
15966 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15968 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
15969 a commutativity marker.
15971 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15972 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15974 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
15975 (aarch64_prepare_sve_cond_int_fma): Declare.
15976 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
15977 (aarch64_prepare_sve_int_fma): New functions.
15978 (aarch64_prepare_sve_cond_int_fma): Likewise.
15979 * config/aarch64/aarch64-sve.md
15980 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
15981 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
15982 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
15983 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
15984 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
15985 (*madd<mode>): Rename to...
15986 (*fma<mode>4): ...this.
15987 (*msub<mode>): Rename to...
15988 (*fnma<mode>4): ...this.
15990 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15991 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
15993 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
15994 Print 2.0 naturally.
15995 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
15996 * config/aarch64/predicates.md
15997 (aarch64_sve_float_negated_arith_immediate): New predicate,
15998 renamed from aarch64_sve_float_arith_with_sub_immediate.
15999 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16000 positive and negative constants.
16001 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16002 or an aarch64_sve_float_arith_with_sub_immediate.
16003 * config/aarch64/constraints.md (vsN): Use
16004 aarch64_sve_float_negated_arith_immediate.
16005 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16007 (sve_pred_fp_rhs2_immediate): New int attribute.
16008 * config/aarch64/aarch64-sve.md
16009 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16010 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16011 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16012 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16013 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16014 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16016 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16017 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16019 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16020 (*aarch64_cond_abd<SVE_F:mode>_3)
16021 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16023 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16024 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16026 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16027 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16029 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16030 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16032 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16033 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16034 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16035 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16037 * optabs.h (create_convert_operand_from): Expand comment.
16038 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16039 when mapping scalar rtxes to vector operands.
16040 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16041 ashiftrt and lshiftrt.
16042 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16043 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16044 (*cond_<optab><mode>_any_const): New patterns.
16046 2019-08-15 Martin Liska <mliska@suse.cz>
16049 * cgraph.c (cgraph_node::remove): When setting
16050 n->origin = NULL for all nested functions, reset
16053 2019-08-15 Martin Liska <mliska@suse.cz>
16055 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16058 2019-08-15 Martin Liska <mliska@suse.cz>
16061 * passes.c (order): Remove.
16062 (uid_hash_t): Likewise).
16063 (remove_cgraph_node_from_order): Remove from set
16064 of pointers (cgraph_node *).
16065 (insert_cgraph_node_to_order): New.
16066 (duplicate_cgraph_node_to_order): New.
16067 (do_per_function_toporder): Register all 3 cgraph hooks.
16068 Skip removed_nodes now as we know about all of them.
16070 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16072 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16073 <case E_V8QImode>: Use vector_set path for
16074 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16075 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16076 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16078 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16080 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16082 2019-08-14 Martin Sebor <msebor@redhat.com>
16084 PR tree-optimization/91294
16085 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16086 source length as exact.
16088 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16090 * doc/extend.texi: Add "noinit" attribute documentation.
16091 * doc/sourcebuild.texi: Add noinit effective target documentation.
16092 * varasm.c (default_section_type_flags): Add support for "noinit"
16094 (default_elf_select_section): Add support for "noinit" attribute.
16095 * config/msp430/msp430.c (msp430_attribute_table): Remove
16098 2019-08-14 Richard Biener <rguenther@suse.de>
16099 Uroš Bizjak <ubizjak@gmail.com>
16102 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16104 (scalar_chain::smode): New member.
16105 (scalar_chain::vmode): Likewise.
16106 (dimode_scalar_chain): Rename to...
16107 (general_scalar_chain): ... this.
16108 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16109 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16110 base with TImode and V1TImode.
16111 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16112 (general_scalar_chain::vector_const_cost): Adjust for SImode
16114 (general_scalar_chain::compute_convert_gain): Likewise. Add
16115 {S,U}{MIN,MAX} support.
16116 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16117 (general_scalar_chain::make_vector_copies): Likewise. Handle
16118 non-DImode chains appropriately.
16119 (general_scalar_chain::convert_reg): Likewise.
16120 (general_scalar_chain::convert_op): Likewise.
16121 (general_scalar_chain::convert_insn): Likewise. Add
16122 fatal_insn_not_found if the result is not recognized.
16123 (convertible_comparison_p): Pass in the scalar mode and use that.
16124 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16125 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16126 (scalar_to_vector_candidate_p): Remove by inlining into single
16128 (general_remove_non_convertible_regs): Rename from
16129 dimode_remove_non_convertible_regs.
16130 (remove_non_convertible_regs): Remove by inlining into single caller.
16131 (convert_scalars_to_vector): Handle SImode and DImode chains
16132 in addition to TImode chains.
16133 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16134 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16135 (*<maxmin>di3_doubleword): Likewise.
16137 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16138 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16140 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16141 (*cond_bic<mode>_any): New patterns.
16143 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16145 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16146 take the equivalent mask, as well as a bit count.
16147 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16148 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16149 (aarch64_sve_pred_and_operand): New predicates.
16150 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16152 * config/aarch64/aarch64-sve.md
16153 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16154 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16156 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16158 * config/aarch64/aarch64-sve.md
16159 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16160 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16163 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16164 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16166 * config/aarch64/aarch64-sve.md
16167 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16168 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16170 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16171 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16173 * config/aarch64/aarch64-sve.md
16174 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16175 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16177 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16179 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16180 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16183 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16184 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16186 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16188 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16189 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16191 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16192 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16193 (aarch64_print_operand): Add support for %I.
16194 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16195 Bitcast floating-point constants to the corresponding integer constant.
16196 (aarch64_float_const_representable_p): Handle vectors as well
16198 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16199 for the new vcond_mask_<mode><vpred> expander.
16200 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16201 test aarch64_float_const_representable_p.
16202 (aarch64_sve_reg_or_dup_imm): New predicate.
16203 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16204 gen_vcond_mask_<mode><vpred> instead of
16205 gen_aarch64_sve_dup<mode>_const.
16206 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16207 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16208 for operands 1 and 2 respectively. Force operand 2 into a
16209 register if operand 1 is a register. Fold old define_insn...
16210 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16211 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16212 floating-point constants that can be moved as integers. Add
16213 alternatives for MOV /M and FMOV /M.
16214 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16215 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16216 1 and 2 respectively.
16217 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16219 (vss): New constraint.
16221 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16223 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16224 (aarch64_sve_float_maxmin_operand): New predicates.
16225 * config/aarch64/constraints.md (vsB): New constraint.
16227 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16228 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16229 UNSPEC_COND_FMINNM.
16230 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16231 Use aarch64_sve_float_maxmin_operand for operand 2.
16232 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16233 Add alternatives for the constant forms.
16235 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16237 * config/aarch64/constraints.md (vsb): New constraint.
16238 (vsm): Generalize description.
16239 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16241 (sve_imm_con): Handle smax, smin, umax and umin.
16242 (sve_imm_prefix): New code attribute.
16243 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16244 (aarch64_sve_vsb_operand): New predicates.
16245 (aarch64_sve_mul_immediate): Rename to...
16246 (aarch64_sve_vsm_immediate): ...this.
16247 (aarch64_sve_mul_operand): Rename to...
16248 (aarch64_sve_vsm_operand): ...this.
16249 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16250 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16251 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16252 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16253 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16254 add movprfx support for the immediate alternatives.
16255 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16257 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16260 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16262 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16263 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16264 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16266 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16268 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16269 (optab, sve_int_op): Handle them.
16270 * config/aarch64/aarch64-sve.md: Expand comment.
16272 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16274 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16275 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16276 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16278 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16280 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16281 (aarch64_expand_sve_const_pred_trn): New functions.
16282 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16283 use the above functions when the parameter is true.
16284 (aarch64_expand_sve_const_pred): Update call accordingly.
16285 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16287 (@aarch64_sve_<perm_insn><mode>): ...this.
16289 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16291 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16293 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16294 (aarch64_sve_emit_int_cmp): New functions.
16295 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16296 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16297 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16298 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16299 (UNSPEC_PRED_Z): New unspec.
16300 (set_clobber_cc_nzc): Delete.
16301 * config/aarch64/aarch64-sve.md: Add a block comment about
16303 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16304 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16305 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16306 UNSPEC_MERGE_PTRUE.
16307 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16308 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16309 check for compatible predicates.
16310 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16311 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16312 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16315 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16317 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16318 * config/aarch64/aarch64-sve.md: Add a section describing it.
16319 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16320 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16321 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16322 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16323 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16324 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16325 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16326 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16327 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16328 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16329 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16330 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16331 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16332 (aarch64_evpc_rev_local): Update accordingly.
16334 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16336 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16338 (SVE_BHSI, SVE_SDI): Tweak comment.
16339 (SVE_HSDI): Likewise. Fix definition.
16340 (SVE_SDF): New mode iterator.
16341 (elem_bits): New mode attribute.
16342 (SVE_COND_FCVT): New int iterator.
16343 * config/aarch64/aarch64-sve.md
16344 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16345 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16346 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16347 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16348 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16349 ...these new patterns.
16350 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16351 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16352 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16354 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16355 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16356 ...these new patterns.
16357 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16358 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16359 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16360 ...this new pattern.
16361 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16362 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16363 ...this new pattern.
16364 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16366 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16368 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16369 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16370 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16372 (optab, su): Handle them.
16373 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16374 * config/aarch64/aarch64-sve.md
16375 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16376 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16377 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16378 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16379 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16380 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16381 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16382 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16383 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16385 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16386 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16387 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16388 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16389 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16390 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16391 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16392 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16393 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16394 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16395 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16396 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16397 of UNSPEC_FLOAT_CONVERT.
16398 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16399 aarch64_sve_extend<mode><Vwide>2.
16401 2019-08-14 Richard Biener <rguenther@suse.de>
16404 * config/i386/i386-features.c
16405 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16406 individual instruction gain. Fix reg-reg copy GRP cost. Use
16407 ix86_cost->sse_op for vector instruction costs.
16409 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16411 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16412 (cmp_op): Handle it.
16413 (SVE_COND_FP_CMP): Rename to...
16414 (SVE_COND_FP_CMP_I0): ...this.
16415 (SVE_FP_CMP): Remove.
16416 * config/aarch64/aarch64-sve.md
16417 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16418 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16419 using unspecs to represent the comparison.
16420 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16421 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16423 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16424 (aarch64_unspec_cond_code): Move after integer code. Handle
16426 (aarch64_emit_sve_predicated_cond): Replace with...
16427 (aarch64_emit_sve_fp_cond): ...this new function.
16428 (aarch64_emit_sve_or_conds): Replace with...
16429 (aarch64_emit_sve_or_fp_conds): ...this new function.
16430 (aarch64_emit_sve_inverted_cond): Replace with...
16431 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16432 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16434 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16436 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16437 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16438 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16439 SVE_HSD instead of SVE_SD.
16441 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16442 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16444 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16446 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16448 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16449 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16450 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16451 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16452 (*div<SVE_F:mode>3): Generalize to...
16453 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16455 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16456 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16458 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16460 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16462 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16464 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16466 * config/aarch64/aarch64-sve.md: Add a block comment about the
16467 handling of predicated FP operations.
16468 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16469 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16470 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16471 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16472 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16474 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16475 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16477 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16478 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16479 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16480 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16481 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16482 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16483 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16484 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16485 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16486 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16487 strictness operands. Use aarch64_sve_pred_dominates_p to check
16488 whether the predicate on the conditional operation is suitable
16489 for merging. Split patterns into the canonical equal-predicate form.
16490 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16491 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16493 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16494 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16496 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16497 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16498 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16500 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16501 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16504 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16505 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16507 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16508 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16509 actually has, rather than relying on REG_EQUAL notes.
16510 Make the insn operand order match the SVE operand order.
16511 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16512 the SVE operand order.
16514 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16516 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16517 (aarch64_emit_set_immediate): Likewise.
16518 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16519 (aarch64_pfalse_reg): Likewise.
16520 (aarch64_convert_sve_data_to_pred): New function.
16521 (aarch64_sve_move_pred_via_while): Take an optional target register
16522 and the required register mode.
16523 (aarch64_expand_sve_const_pred_1): New function.
16524 (aarch64_expand_sve_const_pred): Likewise.
16525 (aarch64_expand_mov_immediate): Build an all-true predicate
16526 if the significant bits of the immediate are all true. Use
16527 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16528 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16529 before register allocation.
16530 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16531 a VNx16BI PTRUE when splitting the memory alternative.
16532 (vec_duplicate<mode>): Update accordingly.
16533 (*pred_cmp<cmp_op><mode>): Rename to...
16534 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16536 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16538 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16539 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16540 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16541 (UNSPEC_PTEST): New unspec.
16542 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16543 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16544 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16545 * config/aarch64/aarch64-sve.md: Add a new section describing the
16546 handling of UNSPEC_PTEST.
16547 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16548 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16549 (ptest_ptrue<mode>): Replace with...
16550 (aarch64_ptest<mode>): ...this new pattern.
16551 (cbranch<mode>4): Update after above changes.
16552 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16553 UNSPEC_PTEST_PTRUE.
16554 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16555 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16556 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16558 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16561 * builtins.c (builtin_with_linkage_p): New function.
16562 * builtins.h (builtin_with_linkage_p): New function.
16563 * symtab.c (write_symbol): Remove redundant assert.
16564 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16565 Remove FIXME and use builtin_with_linkage_p.
16567 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16569 PR middle-end/91421
16570 * tree-core.h (function_decl::function_code): Change type to
16572 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16573 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16574 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16575 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16576 is BUILT_IN_NORMAL.
16577 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16578 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16579 (fndecl_built_in_p): Change the type of the "name" argument to
16581 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16582 after check for DECL_BUILT_IN_CLASS.
16583 * cgraphclones.c (build_function_decl_skip_args): Use
16584 set_decl_built_in_function.
16585 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16586 * ipa-split.c (split_function): Likewise.
16587 * langhooks.c (add_builtin_function_common): Likewise.
16588 * omp-simd-clone.c (simd_clone_create): Likewise.
16589 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16590 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16591 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16592 DECL_FUNCTION_CODE.
16593 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16594 instead of DECL_FUNCTION_CODE.
16595 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16596 instead of DECL_FUNCTION_CODE.
16597 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16598 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16599 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16600 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16601 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16602 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16603 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16604 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16605 (alpha_gimple_fold_builtin): Likewise.
16606 * config/arc/arc.c (arc_expand_builtin): Likewise.
16607 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16608 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16609 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16610 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16611 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16612 * config/frv/frv.c (frv_expand_builtin): Likewise.
16613 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16614 (gcn_expand_builtin): Likewise.
16615 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16616 (fold_builtin_cpu): Likewise.
16617 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16618 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16619 (ix86_gimple_fold_builtin): Likewise.
16620 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16621 (ia64_expand_builtin): Likewise.
16622 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16623 * config/mips/mips.c (mips_expand_builtin): Likewise.
16624 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16625 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16626 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16627 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16628 * config/pa/pa.c (pa_expand_builtin): Likewise.
16629 * config/pru/pru.c (pru_expand_builtin): Likewise.
16630 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16631 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16633 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16634 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16635 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16636 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16637 (rs6000_builtin_reciprocal): Likewise.
16638 * config/rx/rx.c (rx_expand_builtin): Likewise.
16639 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16640 * config/s390/s390.c (s390_expand_builtin): Likewise.
16641 * config/sh/sh.c (sh_expand_builtin): Likewise.
16642 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16643 (sparc_fold_builtin): Likewise.
16644 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16645 * config/spu/spu.c (spu_expand_builtin): Likewise.
16646 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16647 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16648 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16649 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16650 (xtensa_expand_builtin): Likewise.
16652 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16654 PR middle-end/91421
16655 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16656 before the DECL_FUNCTION_CODE.
16657 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16658 to check for a BUILT_IN_ALLOCA call.
16659 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16660 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16661 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16662 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16663 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16664 for BUILT_IN_NORMAL functions.
16665 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16666 test for BUILT_IN_TM_ABORT.
16667 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16668 to check for a BUILT_IN_STACK_RESTORE call.
16669 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16670 * tree-ssa-threadedge.c
16671 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16672 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16673 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16674 test for a BUILT_IN_NORMAL call instead of a negative test for
16675 an internal function call.
16677 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16679 * tree.h (build_vector_a_then_b): Declare.
16680 * tree.c (build_vector_a_then_b): New function.
16681 * fold-const-call.c (fold_while_ult): Likewise.
16682 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16683 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16684 (aarch64_svpattern): New enum.
16685 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16686 constants through aarch64_expand_mov_immediate.
16687 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16688 than general_operand as the predicate for operand 1.
16689 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16690 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16692 (simd_immediate_info::simd_immediate_info): New overload that
16693 takes a scalar_int_mode and an svpattern.
16694 (simd_immediate_info::u): Add a "pattern" field.
16695 (svpattern_token): New function.
16696 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16697 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16698 (aarch64_sve_move_pred_via_while): New functions.
16699 (aarch64_expand_mov_immediate): Try using
16700 aarch64_sve_move_pred_via_while for predicates that contain N ones
16701 followed by M zeros but that do not correspond to a VLnnn pattern.
16702 (aarch64_sve_pred_valid_immediate): New function.
16703 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16704 with PTRUE and PFALSE.
16705 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16708 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16710 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16712 (darwin_override_options): Likewise.
16713 * config/darwin.h: Likewise.
16714 * config/darwin.opt: Likewise.
16715 * config/i386/i386.c (output_pic_addr_const): Likewise.
16716 * config/rs6000/darwin.h: Likewise.
16717 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16718 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16719 ... this TARGET_MACHO_SYMBOL_STUBS.
16720 (FUNCTION_PROFILER):Likewise.
16721 * config/i386/i386.h: Likewise.
16723 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16725 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16726 <case E_V2SImode>: Use vec_extr path for
16727 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16728 <case E_V8QImode>: Ditto.
16729 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16730 Use SWI48 mode iterator. Use %k to output operand 0.
16731 (*mmx_pextrw): New insn pattern.
16732 (*mmx_pextrb): Ditto.
16733 (*mmx_pextrb_zext): Ditto.
16735 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16737 * target.def (libc_has_function, libc_has_fast_function): Improve
16738 documentation strings.
16739 * doc/tm.texi: Regenerate.
16741 2019-08-13 Caroline Tice <cmtice@google.com>
16744 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16745 vtv_end.o or vtv_end_preinit.o files if !static.
16747 2019-08-13 Olivier Hainque <hainque@adacore.com>
16749 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16751 2019-08-13 Olivier Hainque <hainque@adacore.com>
16753 * rtlanal.c (tablejump_casesi_pattern): New function, to
16754 determine if a tablejump insn is a casesi dispatcher. Extracted
16755 from patch_jump_insn.
16756 * rtl.h (tablejump_casesi_pattern): Declare.
16757 * cfgrtl.c (patch_jump_insn): Use it.
16758 * dwarf2cfi.c (create_trace_edges): Use it.
16760 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16763 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16764 operand is larger than a long int.
16766 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16768 * machmode.h (opt_mode::else_mode): New function.
16769 (opt_mode::else_blk): Use it.
16770 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16771 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16772 (aarch64_gen_stepped_int_parallel): Likewise.
16773 (aarch64_stepped_int_parallel_p): Likewise.
16774 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16776 * config/aarch64/aarch64.c
16777 (aarch64_expand_sve_widened_duplicate): Delete.
16778 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16779 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16780 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16781 argument. Use early returns in the !CONST_INT_P handling.
16782 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16783 than handling some inline.
16784 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16786 (aarch64_simd_container_mode): ...here.
16787 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16788 (aarch64_sve_ld1rq_operand_p): New functions.
16789 * config/aarch64/predicates.md (descending_int_parallel)
16790 (aarch64_sve_ld1rq_operand): New predicates.
16791 * config/aarch64/constraints.md (UtQ): New constraint.
16792 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16793 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16794 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16795 (@aarch64_sve_reinterpret<mode>): New expander.
16796 (*aarch64_sve_reinterpret<mode>): New pattern.
16797 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16798 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16799 (*sve_ld1rq<Vesize>): Replace with...
16800 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16802 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16804 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16807 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16809 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16810 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16811 (msp430_check_path_for_devices): New.
16812 (parse_devices_csv_1): New.
16813 (parse_devices_csv): New.
16814 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16815 MCU data in devices.csv before using the hard-coded data.
16816 Warn if devices.csv isn't found and the MCU wasn't found in the
16817 hard-coded data either.
16818 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16819 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16820 Search for devices.csv on -I and -L paths.
16821 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16822 msp430_set_driver_var.
16823 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16824 -mdevices-csv-loc=.
16825 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16826 searched for devices.csv.
16827 (mwarn-devices-csv): Document option.
16829 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16831 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16832 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16833 Use a single Dn alternative instead of separate Dz and Dm
16834 alternatives. Use aarch64_output_sve_move_immediate.
16835 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16837 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16838 for predicates too.
16839 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16840 (aarch64_output_ptrue): Delete.
16842 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16844 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16846 (simd_immediate_info::value, simd_immediate_info::step)
16847 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16849 (simd_immediate_info::u): ...this new union.
16850 (simd_immediate_info::simd_immediate_info): Update accordingly.
16851 (aarch64_output_simd_mov_immediate): Likewise.
16852 (aarch64_output_sve_mov_immediate): Likewise.
16854 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16856 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16858 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16859 (msp430_select_cpu): New spec function.
16860 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16862 * config/msp430/msp430-devices.c: New file.
16863 * config/msp430/msp430-devices.h: New file.
16864 * config/msp430/msp430.c: Remove msp430_mcu_data.
16865 (msp430_option_override): Use msp430_extract_mcu_data to extract
16867 (msp430_use_f5_series_hwmult): Likewise.
16868 (use_32bit_hwmult): Likewise.
16869 (msp430_no_hwmult): Likewise.
16870 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16872 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16874 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16875 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16876 Remove hard-coded MCU multilib data.
16878 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16880 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16881 based on the mode instead of testing properties of it.
16883 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16885 * doc/md.texi: Document the x and y constraints for AArch64.
16886 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
16887 (FP_LO8_REGS): New reg_class.
16888 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
16889 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
16890 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
16891 * config/aarch64/predicates.md (aarch64_simd_register): Use
16892 FP_REGNUM_P instead of checking the classes manually.
16893 * config/aarch64/constraints.md (y): New constraint.
16895 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16897 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
16898 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
16899 * config/aarch64/aarch64-simd.md
16900 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
16901 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
16902 from the asm template.
16903 * config/aarch64/aarch64-sve.md
16904 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
16905 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
16906 from the asm template.
16907 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
16908 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
16909 from the asm template.
16910 * config/aarch64/aarch64-simd-builtins.def: Update comment.
16912 2019-08-13 Martin Liska <mliska@suse.cz>
16914 * value-prof.c (gimple_ic_transform): Add new line.
16915 Print details with MSG_NOTE.
16917 2019-08-13 Martin Liska <mliska@suse.cz>
16919 * doc/invoke.texi: Document automatic detection of jobserver.
16920 * lto-wrapper.c (run_gcc): Detect jobserver always.
16922 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16924 * config/i386/i386-expand.c (ix86_expand_vector_set)
16925 <case E_V2SImode>: Use vec_merge path for
16926 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16927 <case E_V8QImode>: Ditto.
16928 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
16929 (*mmx_pinsrb): Ditto.
16931 2019-08-12 Jakub Jelinek <jakub@redhat.com>
16935 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
16936 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
16937 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
16938 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
16939 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
16941 2019-08-12 Richard Biener <rguenther@suse.de>
16944 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
16947 2019-08-12 Richard Biener <rguenther@suse.de>
16950 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
16951 lang_mask option, always use CL_DRIVER.
16952 (get_options_from_collect_gcc_options): Adjust.
16953 (find_and_merge_options): Likewise.
16954 (run_gcc): Likewise.
16956 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16958 * ipa-predicate.c (add_condition): Restore inverted test.
16960 2019-08-10 Jakub Jelinek <jakub@redhat.com>
16962 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
16963 (enum omp_clause_device_type_kind): New enum.
16964 (struct tree_omp_clause): Add subcode.device_type_kind.
16965 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
16966 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
16967 for device_type clause.
16968 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
16969 * tree-pretty-print.c (dump_omp_clause): Likewise.
16972 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
16975 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
16977 * reload1.c (finish_spills): Do not check ira_conflicts_p when
16978 handling spilled pseudos.
16980 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16983 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
16984 to preserve the contents of the original insns.
16986 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
16988 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
16989 (addsi3_compare_op2): Likewise.
16991 2019-08-09 Martin Liska <mliska@suse.cz>
16993 * alias.c (alias_ptr_types_compatible_p): Strengten
16994 type comparison in LTO mode.
16996 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
16998 PR middle-end/90313
16999 * tree-tailcall.c (find_tail_calls): Reject calls that might
17000 read from an escaped RESULT_DECL.
17002 2019-08-09 Martin Liska <mliska@suse.cz>
17004 * doc/invoke.texi: Document the option value.
17005 * lto-wrapper.c (run_gcc): Set auto_parallel
17006 only with -flto=auto.
17008 2019-08-09 Martin Liska <mliska@suse.cz>
17010 * opts.c (common_handle_option): Error for an invalid argument
17013 2019-08-09 Martin Liska <mliska@suse.cz>
17015 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17016 use dump_printf to report optimization.
17017 (sem_variable::merge): Likwise.
17018 (sem_item_optimizer::merge_classes): Use dump_printf to report
17021 2019-08-09 Martin Liska <mliska@suse.cz>
17023 * value-prof.c (gimple_divmod_fixed_value_transform):
17024 Use dump_printf_loc.
17025 (gimple_mod_pow2_value_transform): Likewise.
17026 (gimple_mod_subtract_transform): Likewise.
17027 (init_node_map): Likewise.
17028 (gimple_ic_transform): Likewise.
17029 (gimple_stringops_transform): Likewise.
17031 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17033 * doc/extend.texi: Add const qualifier to ld intrinsics.
17035 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17037 * config/rs6000/dfp.md (D64_D128): Rename to ...
17038 (DDTD): ... this, throughout.
17039 (dfp_suffix): Rename to ...
17040 (q): ... this, throughout.
17042 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17044 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17045 (dfp_suffix): Ditto.
17046 (adddd3, addtd3): Merge to ...
17047 (add<mode>3 for D64_D128): ... this.
17048 (subdd3, subtd3): Merge to ...
17049 (sub<mode>3 for D64_D128): ... this.
17050 (muldd3, multd3): Merge to ...
17051 (mul<mode>3 for D64_D128): ... this.
17052 (divdd3, divtd3): Merge to ...
17053 (div<mode>3 for D64_D128): ... this.
17054 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17055 (*cmp<mode>_internal1 for D64_D128): ... this.
17056 (ftruncdd2, ftrunctd2): Merge to ...
17057 (ftrunc<mode>2 for D64_D128): ... this.
17058 (fixdddi2, fixtddi2): Merge to ...
17059 (fix<mode>di2 for D64_D128): ... this.
17061 2019-08-08 Jim Wilson <jimw@sifive.com>
17064 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17065 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17066 Pass into recursive call.
17067 (riscv_flatten_aggregate_argument): New arg. Pass to
17068 riscv_flatten_aggregate_field.
17069 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17070 riscv_flatten_aggregate_argument twice, with false and true as last
17071 arg. Process result twice. Compare results and warn if different.
17072 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17074 2019-08-08 Martin Liska <mliska@suse.cz>
17077 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17078 * lto-wrapper.c (jobserver_active_p): Likewise.
17080 2019-08-08 Martin Liska <mliska@suse.cz>
17082 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17083 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17084 (create_version_clone_with_body): Likewise.
17086 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17088 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17089 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17090 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17091 GOVD_EXPLICIT flags.
17092 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17093 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17094 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17095 call install_var_field with mask 11 instead of 3.
17096 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17097 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17099 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17101 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17102 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17104 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17106 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17107 MOVPRFX alternatives. Make the GPR alternatives more expensive
17110 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17112 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17113 Disparage the GPR alternative relative to the FPR one.
17114 Fix handling of 8-bit and 16-bit FPR values.
17116 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17118 * config/aarch64/iterators.md (BITWISEV): Delete.
17119 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17120 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17121 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17122 UNSPEC_FMINNMV, UNSPEC_FMINV.
17123 (bit_reduc_op): Delete.
17124 (sve_int_op): New int attribute.
17125 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17126 UNSPEC_FMINNMV, UNSPEC_FMINV.
17127 * config/aarch64/aarch64-sve.md
17128 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17129 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17130 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17131 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17132 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17133 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17135 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17136 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17137 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17138 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17139 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17142 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17144 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17145 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17146 (fms<mode>4, *fms<mode>4): Replace with...
17147 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17148 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17149 Use unspecs instead of rtx codes.
17150 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17151 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17153 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17155 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17157 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17158 * config/aarch64/aarch64-sve.md
17159 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17160 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17161 use a single unspec for the rhs.
17162 (*<su><maxmin><mode>3): Delete.
17163 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17165 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17167 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17168 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17169 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17170 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17171 (optab, sve_fp_op): Handle them.
17172 (SVE_FP_UNARY): Delete.
17173 (optab): Remove sqrt entry.
17174 (sve_fp_op): Remove neg, abs and sqrt entries.
17175 (SVE_COND_FP_UNARY): New int iterator.
17176 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17177 (*<frint_pattern><mode>2): Delete.
17178 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17179 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17180 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17181 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17183 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17185 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17187 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17189 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17190 (UNSPEC_COND_FADD): ...this.
17191 (UNSPEC_COND_SUB): Rename to...
17192 (UNSPEC_COND_FSUB): ...this.
17193 (UNSPEC_COND_MUL): Rename to...
17194 (UNSPEC_COND_FMUL): ...this.
17195 (UNSPEC_COND_DIV): Rename to...
17196 (UNSPEC_COND_FDIV): ...this.
17197 (UNSPEC_COND_MAX): Rename to...
17198 (UNSPEC_COND_FMAXNM): ...this.
17199 (UNSPEC_COND_MIN): Rename to...
17200 (UNSPEC_COND_FMINNM): ...this.
17201 (UNSPEC_COND_LT): Rename to...
17202 (UNSPEC_COND_FCMLT): ...this.
17203 (UNSPEC_COND_LE): Rename to...
17204 (UNSPEC_COND_FCMLE): ...this.
17205 (UNSPEC_COND_EQ): Rename to...
17206 (UNSPEC_COND_FCMEQ): ...this.
17207 (UNSPEC_COND_NE): Rename to...
17208 (UNSPEC_COND_FCMNE): ...this.
17209 (UNSPEC_COND_GE): Rename to...
17210 (UNSPEC_COND_FCMGE): ...this.
17211 (UNSPEC_COND_GT): Rename to...
17212 (UNSPEC_COND_FCMGT): ...this.
17213 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17214 (sve_fp_op_rev): Update accordingly.
17215 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17217 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17219 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17221 * config/aarch64/check-sve-md.awk: New file.
17222 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17223 (insn-conditions.md): Depend on it.
17225 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17228 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17229 (*negsi2_cmpz_zext): Ditto.
17231 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17233 * config/aarch64/iterators.md (commutative): Remove.
17235 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17238 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17239 processing COLLECT_GCC_OPTIONS.
17240 (run_gcc): Likewise.
17242 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17244 PR tree-optimization/91109
17245 * lra-remat.c (update_scratch_ops): Remove assignment of the
17248 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17250 * data-streamer.h (streamer_write_poly_uint64): Declare.
17251 (streamer_read_poly_uint64): Likewise.
17252 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17253 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17254 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17255 (add_condition): Take a poly_int64 size.
17256 * ipa-predicate.c (add_condition): Likewise.
17257 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17258 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17259 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17260 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17261 condition::size as a poly_int64.
17262 (unmodified_parm_1): Take a poly_int64 size pointer.
17263 (unmodified_parm): Likewise.
17264 (unmodified_parm_or_parm_agg_item): Likewise.
17265 (set_cond_stmt_execution_predicate): Update accordingly.
17266 (set_switch_stmt_execution_predicate): Likewise.
17267 (will_be_nonconstant_expr_predicate): Likewise.
17268 (will_be_nonconstant_predicate): Likewise.
17269 (inline_read_section): Stream condition::size as a poly_int.
17270 (ipa_fn_summary_write): Likewise.
17272 2019-08-07 Martin Liska <mliska@suse.cz>
17274 * fold-const.c (twoval_comparison_p): Replace int
17275 with bool as a return type.
17276 (simple_operand_p): Likewise.
17277 (operand_equal_p): Replace int with bool as a return type.
17278 * fold-const.h (operand_equal_p): Likewise.
17280 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17282 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17283 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17284 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17285 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17286 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17287 * tree-pretty-print.c (dump_omp_clause): Likewise.
17288 * tree-nested.c (convert_nonlocal_omp_clauses,
17289 convert_local_omp_clauses): Likewise.
17290 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17292 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17293 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17294 clause with array or reference to array types, no matter what type
17295 except for reference it has.
17297 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17299 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17301 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17303 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17304 (arch_canonicalize): Support rv32g and rv64g and fix error
17307 2019-08-06 Martin Liska <mliska@suse.cz>
17309 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17310 and DECL_IS_OPERATOR_DELETE_P.
17312 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17314 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17315 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17316 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17317 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17318 (gimplify_omp_for): Don't do C++ random access iterator clause
17319 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17320 don't predetermine the artificial iterator in case of C++ random
17321 access iterators as lastprivate, but private. For OMP_LOOP, force
17322 bind expr around simd body and force for_pre_body before the
17323 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17324 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17325 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17326 diff var of C++ random access iterators. Handle
17327 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17328 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17329 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17330 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17331 * omp-low.c (lower_rec_input_clauses): For
17332 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17333 variables instead of default constructing them.
17334 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17335 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17336 is_taskloop_ctx check from the assert to the guarding condition.
17338 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17340 * config/riscv/multilib-generator: (canonical_order): New.
17341 (arch_canonicalize): Dito.
17342 Apply arch_canonicalize for alts.
17344 2019-08-05 Martin Sebor <msebor@redhat.com>
17346 * doc/extend.texi (Common Variable Attributes): Document alias
17349 2019-08-05 Marek Polacek <polacek@redhat.com>
17351 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17352 * doc/invoke.texi: Document -Wcomma-subscript.
17354 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17356 * tree-core.h (tree_function_decl): Make function_code an
17357 independent field. Group the remaining bitfields into bytes
17358 and move decl_type so that it contines to be at a byte boundary.
17359 Leave 12 bits for future expansion.
17361 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17363 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17364 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17365 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17368 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17370 * gimple.h (gimple_move_vops): Declare.
17371 * gimple.c (gimple_move_vops): New function
17372 * gimple-fold.c (replace_call_with_call_and_fold)
17373 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17374 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17375 (gimple_fold_call): Use it.
17376 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17377 * tree-call-cdce.c (use_internal_fn): Likewise.
17378 * tree-if-conv.c (predicate_load_or_store): Likewise.
17379 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17380 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17381 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17382 (update_call_from_tree): Likewise.
17383 * tree-vect-stmts.c (vectorizable_load): Likewise.
17384 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17386 2019-08-05 Martin Liska <mliska@suse.cz>
17389 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17390 with not arguments.
17391 (eliminate_unnecessary_stmts): Likewise.
17393 2019-08-05 Richard Biener <rguenther@suse.de>
17395 PR middle-end/91169
17396 * fold-const.c (get_array_ctor_element_at_index): Create
17397 offset_ints according to the sign of the index type and treat
17398 that as signed if it is obviously so.
17400 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17403 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17404 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17405 _mm256_storeu2_m128i): New function.
17407 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17409 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17410 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17412 2019-08-05 Alan Modra <amodra@gmail.com>
17415 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17416 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17418 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17420 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17421 bug that was fixed in Tcl 8.6.1.
17423 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17425 * config/rs6000/future.md: New file.
17426 * config/rs6000/rs6000.md: Include future.md.
17427 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17429 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17431 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17432 check to use targetm.slow_unaligned_access instead.
17434 * function.c (assign_param_data_one): Remove unused data members.
17436 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17438 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17439 build_distinct_type_copy.
17440 (simd_clone_adjust_argument_types): Ditto.
17441 (simd_clone_adjust): Call build_distinct_type_copy here.
17442 (expand_simd_clones): Ditto.
17444 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17447 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17449 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17451 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17452 from 'const void *'.
17453 (sort_locs_in_loop_postorder_cmp): Likewise.
17455 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17457 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17458 (hot-bb-count-ws-permille): Likewise.
17459 (hot-bb-frequency-fraction): Likewise.
17460 (unlikely-bb-count-fraction): Likewise.
17461 * params.def (hot-bb-count-fraction): Rework description.
17462 (hot-bb-count-ws-permille): Likewise.
17463 (hot-bb-frequency-fraction): Likewise.
17464 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17465 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17467 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17470 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17473 2019-08-02 Richard Biener <rguenther@suse.de>
17475 * vec.h (vec::sort): Add gcc_qsort_r support.
17476 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17477 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17478 to gcc_qsort_r style callback.
17479 (sort_locs_in_loop_postorder_cmp): Likewise.
17480 (analyze_memory_references): Use gcc_sort_r interfaces.
17481 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17483 2019-08-02 Martin Liska <mliska@suse.cz>
17486 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17487 to detect working job server.
17488 (driver::detect_jobserver): Test whether jobserver
17489 is active from GCC driver. That will prevent situation where
17490 GCC is invoked from a LD plugin and the linker already uses
17491 file descriptors suggested by make. That leads to a wrong
17493 * gcc.h (driver): Add detect_jobserver.
17494 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17495 not scanning for --jobserver-auth prefix.
17497 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17499 PR tree-optimization/91201
17500 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17501 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17504 2019-08-01 Martin Sebor <msebor@redhat.com>
17507 * tree.c (type_initializer_zero_p): Define.
17508 * tree.h (type_initializer_zero_p): New function.
17510 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17512 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17514 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17516 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17517 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17518 * predict.c (maybe_hot_count_p): Likewise.
17519 (maybe_hot_bb_p): Tweak comment.
17520 (maybe_hot_edge_p): Likewise.
17521 (probably_never_executed): Likewise. Minor tweak.
17522 (probably_never_executed_bb_p): Likewise.
17523 (unlikely_executed_edge_p): Likewise.
17524 (probably_never_executed_edge_p): Likewise.
17525 (optimize_function_for_size_p): Likewise.
17526 (optimize_function_for_speed_p): Likewise.
17527 (function_optimization_type): Likewise.
17528 (optimize_bb_for_size_p): Likewise.
17529 (optimize_bb_for_speed_p): Likewise.
17530 (bb_optimization_type): Likewise.
17531 (optimize_edge_for_size_p): Likewise.
17532 (optimize_edge_for_speed_p): Likewise.
17533 (optimize_insn_for_size_p): Likewise.
17534 (optimize_insn_for_speed_p): Likewise.
17535 (optimize_loop_for_size_p): Likewise.
17536 (optimize_loop_for_speed_p): Likewise.
17537 (optimize_loop_nest_for_speed_p): Likewise.
17538 (optimize_loop_nest_for_size_p): Likewise.
17539 (predictable_edge_p): Likewise.
17540 (handle_missing_profiles): Minor tweak.
17542 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17544 * config/rs6000/predicates.md (pcrel_external_address): Update
17547 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17550 * config/i386/mmx.md (usadv8qi): New expander.
17552 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17555 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17556 with reserved names that are in a system header.
17558 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17560 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17561 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17562 (*vec_extractv2si_0_zext): Ditto.
17563 (*vec_extractv2si_1): Add (rm,x) alternative.
17564 (*vec_extractv2si_1_zext): New insn pattern.
17565 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17568 2019-08-01 Richard Biener <rguenther@suse.de>
17570 * domwalk.c (bb_postorder): Remove static variable.
17571 (cmp_bb_postorder): Adjust.
17572 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17573 (dom_walker::walk): Adjust.
17575 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17577 * sort.cc (sort_r_ctx): New struct.
17578 (reorder23): Make templated on context type.
17579 (reorder45): Ditto.
17580 (cmp1): Ditto. Adjust signature.
17582 (mergesort): Ditto.
17583 [CHECKING_P] (cmp2to3): New static function. Use it...
17584 (gcc_qsort) [CHECKING_P]: ...here.
17585 (gcc_sort_r): New function.
17586 * system.h (sort_r_cmp_fn): New function typedef.
17587 (qsort_chk): Adjust signature.
17588 (gcc_sort_r): Declare.
17589 * vec.c (qsort_chk_error): Adjust.
17590 (qsort_chk): Adjust.
17592 2019-08-01 Richard Biener <rguenther@suse.de>
17594 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17595 (compute_antic): Localize it here.
17597 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17599 * common/config/riscv/riscv-common.c: Check -march string ends
17602 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17604 * ipa-devirt.c (type_warning_cmp): Make static.
17605 (decl_warning_cmp): Ditto.
17607 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17610 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17611 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17612 use of deleted rs6000_dejagnu_cpu_index variable.
17613 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17614 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17615 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17616 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17617 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17618 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17620 2019-07-31 Richard Biener <rguenther@suse.de>
17622 PR tree-optimization/91280
17623 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17624 Decompose MEM_REF manually for offset handling.
17626 2019-07-31 Richard Biener <rguenther@suse.de>
17628 PR tree-optimization/91293
17629 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17630 of reduction stmts.
17632 2019-07-31 Matt Thomas <matt@3am-software.com>
17633 Nick Hudson <nick@nthcliff.demon.co.uk>
17634 Matthew Green <mrg@eterna.com.au>
17635 Maya Rashish <coypu@sdf.org>
17637 * config.gcc (hppa*-*-netbsd*): New target.
17638 * config/pa/pa-netbsd.h: New file.
17639 * config/pa/pa32-netbsd.h: New file.
17641 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17643 PR tree-optimization/91201
17644 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17646 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17648 * config/gcn/gcn-valu.md
17649 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17650 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17651 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17652 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17653 struct ilist. Add nops for delayeduse insns.
17654 * config/gcn/gcn.md (delayeduse): New attribute.
17655 (*movbi): Remove s_waitcnt from stores.
17656 (*mov<mode>_insn): Likewise.
17657 (*movti_insn): Likewise. Add delayeduse attribute.
17658 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17659 (atomic_store<mode>): Remove or adjust s_waitcnt.
17661 2019-07-31 Richard Biener <rguenther@suse.de>
17663 * vr-values.h (vr_values::swap_vr_value): New.
17664 (vr_values::free_value_range): likewise.
17665 * vr-values.c (vr_values::swap_vr_value): Implement.
17666 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17667 Do not return a range or take a var.
17668 (evrp_range_analyzer::stack): Change back to recording a non-const
17670 * gimple-ssa-evrp-analyze.c
17671 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17673 (evrp_range_analyzer::pop_to_marker): Adjust.
17674 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17675 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17676 no longer needed value-range.
17678 2019-07-31 Martin Liska <mliska@suse.cz>
17680 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17681 have size and (or) alignment as 2nd and later arguments.
17682 Mark all of them as necessary.
17684 2019-07-31 Richard Biener <rguenther@suse.de>
17686 PR tree-optimization/91178
17687 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17688 Use tail-recursion.
17690 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17692 PR tree-optimization/91201
17693 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17694 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17696 (reduc_plus_scal_<mode>): Improve formatting by introducing
17699 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17701 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17702 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17703 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17704 (aarch64_init_tme_builtins): New.
17705 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17706 (aarch64_expand_builtin_tme): New.
17707 (aarch64_expand_builtin): Handle TME builtins.
17708 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17709 __ARM_FEATURE_TME when enabled.
17710 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17711 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17713 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17714 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17716 (tstart, ttest, tcommit, tcancel): New instructions.
17717 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17718 (__tcancel, __ttest): New.
17719 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17720 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17721 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17722 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17723 * config/arm/types.md: Add new tme type attr.
17724 * doc/invoke.texi: Document "tme".
17726 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17728 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17729 warn_unused_result attribute.
17730 (cmse_check_address_range): Add warn_unused_result attribute.
17732 2019-07-31 Richard Biener <rguenther@suse.de>
17734 PR tree-optimization/91257
17735 * tree-vrp.c (union_ranges): Unify equality and less tests
17736 by using compare_values. Re-order cheap tests first.
17738 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17740 PR middle-end/91301
17741 * gimplify.c (gimplify_omp_for): If for class iterator on
17742 distribute parallel for there is no data sharing clause
17743 on inner_for_stmt, look for private clause on combined
17744 parallel too and if found, move it to inner_for_stmt.
17746 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17748 * lra-int.h (lra_operand_data): Remove early_clobber field.
17749 (lra_insn_reg): Likewise.
17750 * lra.c (debug_operand_data): Update accordingly.
17751 (setup_operand_alternative): Likewise.
17752 (new_insn_reg): Likewise. Remove early_clobber parameter.
17753 (collect_non_operand_hard_regs): Update call accordingly.
17754 Don't assign to lra_insn_reg::early_clobber.
17755 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17756 and update calls to new_insn_reg.
17757 (lra_update_insn_regno_info): Update calls accordingly.
17758 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17759 alternative number as a parameter and test whether the operand
17760 is earlyclobbered in that particular alternative.
17761 (process_alt_operands): Update call accordingly. Use per-alternative
17762 checks for earyclobber here too.
17763 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17764 against zero for IRA_UNKNOWN_ALT.
17766 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17768 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17770 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17772 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17773 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17775 2019-07-30 Martin Liska <mliska@suse.cz>
17778 * cgraph.c (cgraph_edge::make_direct): Use
17779 edge->indirect_unknown_callee as edge->resolve_speculation can
17780 deallocate edge which is this pointer.
17782 2019-07-30 Richard Biener <rguenther@suse.de>
17784 PR tree-optimization/91257
17785 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17787 2019-07-30 Martin Liska <mliska@suse.cz>
17789 * doc/invoke.texi: Document new behavior.
17790 * lto-wrapper.c (cpuset_popcount): New function
17791 is a copy of libgomp/config/linux/proc.c.
17792 (init_num_threads): Likewise.
17793 (run_gcc): Automatically detect core count for -flto.
17794 (jobserver_active_p): New function.
17796 2019-07-30 Richard Biener <rguenther@suse.de>
17798 PR tree-optimization/91257
17799 * bitmap.h (bitmap_ior_into_and_free): Declare.
17800 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17801 whether to add the unliked element to the freelist.
17802 (bitmap_list_insert_element_after): Add defaulted param for
17803 an already allocated element.
17804 (bitmap_ior_into_and_free): New function.
17805 * tree-ssa-structalias.c (condense_visit): Reduce the
17806 ponts-to and edge bitmaps of the SCC members in a
17807 logarithmic fashion rather than all to one.
17809 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17811 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17812 parameter. When nonnull, make sure that the addition or subtraction
17813 has the same condition.
17814 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17815 for CFN_COND_MUL too.
17817 2019-07-30 Richard Biener <rguenther@suse.de>
17819 PR tree-optimization/91291
17820 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17823 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17825 PR middle-end/91216
17826 * omp-low.c (global_nonaddressable_vars): New variable.
17827 (use_pointer_for_field): For global decls, if they are non-addressable,
17828 remember it in the global_nonaddressable_vars bitmap, if they are
17829 addressable and in the global_nonaddressable_vars bitmap, ignore their
17830 TREE_ADDRESSABLE bit.
17831 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17832 vars in global_nonaddressable_vars bitmap.
17833 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17836 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17837 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17838 comparison to unsigned HOST_WIDE_INT before shifting it left.
17840 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17842 * config/i386/i386.md (movstrict<mode>): Use register_operand
17843 predicate for operand 0. Add expander condition. Assert that
17844 operand 0 is a SUBREG RTX.
17845 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17846 Update operand constraints and insn condition.
17847 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17848 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17849 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17850 Update operand 0 constraints.
17851 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17853 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17855 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17856 when -m{code,data}-region are used without -mlarge.
17857 * config/msp430/msp430.c (msp430_option_override): Error when a
17858 non-default code or data region is used without -mlarge.
17859 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17860 attributes when they are used without -mlarge.
17862 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17865 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17867 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17869 PR middle-end/91242
17870 * wide-int.h (generic_wide_int::sext_elt): New function.
17871 * inchash.h (hash::add_wide_int): Use it instead of elt.
17873 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17875 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17877 * config/arm/arm.md (<crc_variant>): Rename to...
17878 (arm_<crc_variant>): ... This.
17879 (<cdp>): Rename to...
17880 (arm_<cdp>): ... This.
17881 (<ldc>): Rename to...
17882 (arm_<ldc>): ... This.
17883 (<stc>): Rename to...
17884 (arm_<stc>): ... This.
17885 (<mcr>): Rename to...
17886 (arm_<mcr>): ... This.
17887 (<mrc>): Rename to...
17888 (arm_<mrc>): ... This.
17889 (<mcrr>): Rename to...
17890 (arm_<mcrr>): ... This.
17891 (<mrrc>): Rename to...
17892 (arm_<mrrc>): ... This.
17894 2019-07-29 Richard Biener <rguenther@suse.de>
17896 PR tree-optimization/91257
17897 * tree-ssa-sccvn.h (struct vn_avail): New.
17898 (struct vn_ssa_aux): Add avail member.
17899 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
17900 member, add m_avail_freelist one.
17901 (rpo_elim::~rpo_elim): Remove.
17902 (rpo_elim::eliminate_avail): Adjust to new avail tracking
17904 (rpo_elim::eliminate_push_avail): Likewise.
17905 (do_unwind): Likewise.
17906 (do_rpo_vn): Likewise.
17908 2019-07-29 Richard Biener <rguenther@suse.de>
17910 PR tree-optimization/91257
17911 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
17912 most cases, instead call compare_values which handles the
17913 symbolic ranges we handle specially.
17914 (compare_values_warnv): Do not call operand_less_p but open-code
17915 the effective fold calls. Avoid converting so much.
17917 2019-07-29 Martin Liska <mliska@suse.cz>
17919 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
17920 remove LHS of operator new call. It's handled latter.
17922 2019-07-29 Richard Biener <rguenther@suse.de>
17924 PR tree-optimization/91267
17925 * vr-values.c (vr_values::update_value_range): Add early return
17926 for effectively VARYING lattice entry.
17928 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17931 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
17932 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
17933 necessary if keep_all_vdefs_p is true.
17934 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
17935 that keep_all_vdefs_p is false.
17936 (mark_all_reaching_defs_necessary): Likewise.
17937 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
17939 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17941 * common.opt (Og): Change the initial value of flag_dse to 0.
17942 * opts.c (default_options_table): Move OPT_ftree_dse from
17943 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
17944 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
17945 entry before the OPT_ftree_sra entry.
17946 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
17947 of flags disabled by Og.
17949 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17951 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
17954 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17956 * doc/sourcebuild.texi (check-function-bodies): Document.
17958 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17960 * simplify-rtx.c (simplify_const_unary_operation): Fold a
17961 VEC_DUPLICATE of a fixed-length vector even if the result
17962 is variable-length. Likewise fold a duplicate of a
17963 variable-length vector if the variable-length vector is
17964 itself a duplicate of a fixed-length sequence.
17965 (test_vector_ops_duplicate): Test more cases.
17967 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17969 * vector-builder.h (vector_builder): Add a shape template parameter.
17970 (vector_builder::new_unary_operation): New function, generalizing
17971 the old tree_vector_builder function.
17972 (vector_builder::new_binary_operation): Likewise.
17973 (vector_builder::binary_encoded_nelts): Likewise.
17974 * int-vector-builder.h (int_vector_builder): Update template
17975 parameters to vector_builder.
17976 (int_vector_builder::shape_nelts): New function.
17977 * rtx-vector-builder.h (rtx_vector_builder): Update template
17978 parameters to vector_builder.
17979 (rtx_vector_builder::shape_nelts): New function.
17980 (rtx_vector_builder::nelts_of): Likewise.
17981 (rtx_vector_builder::npatterns_of): Likewise.
17982 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
17983 * tree-vector-builder.h (tree_vector_builder): Update template
17984 parameters to vector_builder.
17985 (tree_vector_builder::shape_nelts): New function.
17986 (tree_vector_builder::nelts_of): Likewise.
17987 (tree_vector_builder::npatterns_of): Likewise.
17988 (tree_vector_builder::nelts_per_pattern_of): Likewise.
17989 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
17990 (tree_vector_builder::new_binary_operation): Delete.
17991 (tree_vector_builder::binary_encoded_nelts): Likewise.
17992 * simplify-rtx.c: Include rtx-vector-builder.h.
17993 (distributes_over_addition_p): New function.
17994 (simplify_const_unary_operation)
17995 (simplify_const_binary_operation): Generalize handling of vector
17996 constants to include variable-length vectors.
17997 (test_vector_ops_series): Add more tests.
17999 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18002 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18003 than INDENTIFIER_POINTER.
18005 2019-07-28 Martin Liska <mliska@suse.cz>
18008 * cgraph.c (symbol_table::create_edge): Always allocate
18010 (symbol_table::free_edge): Store summary_id to
18011 edge_released_summary_ids if != -1;
18012 * cgraph.h (NEXT_FREE_NODE): Remove.
18013 (SET_NEXT_FREE_NODE): Likewise.
18014 (NEXT_FREE_EDGE): Likewise.
18015 (symbol_table::release_symbol): Store summary_id to
18016 cgraph_released_summary_ids if != -1;
18017 (symbol_table::allocate_cgraph_symbol): Always allocate
18020 2019-07-28 Alan Modra <amodra@gmail.com>
18022 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18025 2019-07-28 Alan Modra <amodra@gmail.com>
18028 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18030 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18031 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18032 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18034 2019-07-28 Alan Modra <amodra@gmail.com>
18037 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18038 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18039 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18040 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18041 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18042 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18043 in asm_default spec.
18044 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18045 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18047 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18049 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18051 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18054 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18055 * config/aarch64/aarch64-option-extensions.def: Add new comments
18056 and restore easier to read options.
18058 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18060 * convert.c (convert_to_real_1): Move part of conversion code...
18061 * match.pd: ...To here.
18063 2019-07-26 Martin Jambor <mjambor@suse.cz>
18066 * ipa-inline-transform.c (check_speculations_1): New function.
18067 (push_all_edges_in_set_to_vec): Likewise.
18068 (check_speculations): Use check_speculations_1, new parameter
18070 (inline_call): Pass new_edges to check_speculations.
18071 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18073 (speculation_useful_p): Early return true if edge is inlined, remove
18074 later checks for inline_failed.
18076 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18078 PR rtl-optimization/91223
18079 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18080 matching with INOUT operand.
18082 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18084 * stmt.c (expand_case): Try to narrow the index type if it's larger
18085 than a word. Tidy up.
18087 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18089 * cif-code.def (NEVER_CALL): New code.
18090 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18091 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18093 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18095 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18096 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18098 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18100 * ipa-devirt.c (add_type_duplicate): Fix return value.
18102 2019-07-25 Richard Biener <rguenther@suse.de>
18104 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18105 type parameter and use it instead of guessing expression
18106 type from the first operand.
18107 (extract_range_from_binary_expr): Pass expr_type down.
18109 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18111 * config/arm/arm.md (SATrev): Change to code attribute.
18112 (*satsi_<SAT:code>): Adjust for the above.
18113 (*satsi_<SAT:code>_shift): Likewise.
18115 2019-07-25 Richard Biener <rguenther@suse.de>
18117 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18118 Make value_range * temporary const.
18119 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18121 (evrp_range_analyzer::record_ranges_from_): Likewise.
18122 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18123 deal with having recorded a const one.
18124 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18125 Return a const value_range *.
18126 (evrp_range_analyzer::pop_value_range): Likewise.
18127 (evrp_range_analyzer::stack): Record const value_range *s.
18128 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18130 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18131 (format_integer): Likewise.
18132 (sprintf_dom_walker::handle_gimple_call): Likewise.
18133 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18134 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18135 (vrp_prop::get_value_range): Adjust.
18136 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18137 modifying the lattice in-place.
18138 (vrp_prop::visit_stmt): Likewise.
18139 * vr-values.c (vr_values::get_lattice_entry): New private method.
18140 (vr_values::get_value_range): Wrap it and return a const
18142 (vr_values::set_def_to_varying): New.
18143 (vr_values::set_defs_to_varying): Use it.
18144 (vr_values::update_value_range): Likewise.
18145 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18146 (values::op_with_constant_singleton_va): Likewise.
18147 (vr_values::extract_range_for_var_from_co): Likewise.
18148 (vr_values::extract_range_from_ssa_name): Likewise.
18149 (vr_values::extract_range_from_cond_expr): Likewise.
18150 (vr_values::extract_range_basic): Likewise.
18151 (compare_ranges): Take const value_range *, adjust.
18152 (compare_range_with_value): Likewise.
18153 (vrp_valueize): Adjust.
18154 (vrp_valueize_1): Likewise.
18155 (vr_values::get_vr_for_comparison): Return a const value_range *.
18156 (vr_values::compare_name_with_value): Adjust.
18157 (vr_values::compare_names): Likewise.
18158 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18160 (vr_values::vrp_evaluate_conditional): Likewise.
18161 (find_case_label_ranges): Take a const value_range *.
18162 (vr_values::vrp_visit_switch_stmt): Adjust.
18163 (vr_values::extract_range_from_phi_node): Likewise.
18164 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18165 (vr_values::simplify_abs_using_ranges): Likewise.
18166 (test_for_singularity): Take a const value_range *.
18167 (range_fits_type_p): Likewise.
18168 (vr_values::simplify_cond_using_ranges_1): Adjust.
18169 (vr_values::simplify_cond_using_ranges_2): Likewise.
18170 (vr_values::simplify_switch_using_ranges): Likewise.
18171 (vr_values::simplify_float_conversion_usi): Likewise.
18172 (vr_values::two_valued_val_range_p): Likewise.
18173 * vr-values.h (vr_values::get_value_range): Return a const
18175 (vr_values::set_def_to_varying): New.
18176 (vr_values::get_lattice_entry): New private method.
18177 (vr_values::get_vr_for_comparison): Return a const value_range *.
18179 2019-07-25 Martin Liska <mliska@suse.cz>
18180 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18183 * common.opt: Add -fallocation-dce
18184 * gimple.c (gimple_call_operator_delete_p): New.
18185 * gimple.h (gimple_call_operator_delete_p): Likewise.
18186 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18187 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18188 DECL_IS_OPERATOR_DELETE_P.
18189 (mark_all_reaching_defs_necessary_1): Likewise.
18190 (propagate_necessity): Likewise.
18191 (eliminate_unnecessary_stmts): Handle
18192 gimple_call_operator_delete_p.
18193 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18194 Add packing of OPERATOR_DELETE.
18195 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18197 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18198 (DECL_SET_IS_OPERATOR_DELETE): New.
18199 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18201 2019-07-25 Martin Liska <mliska@suse.cz>
18203 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18204 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18205 * coverage.c (coverage_begin_function): Likewise.
18206 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18207 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18208 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18209 (sem_item::hash_referenced_symbol_properties): Likewise.
18210 * lto-streamer-out.c (hash_tree): Likewise.
18211 * predict.c (expr_expected_value_1): Likewise.
18212 * tree-inline.c (expand_call_inline): Likewise.
18213 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18214 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18215 * tree-core.h (enum function_decl_type): New enum.
18216 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18217 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18218 (set_function_decl_type): Likewise.
18219 (DECL_IS_OPERATOR_NEW_P): New.
18220 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18221 (DECL_LAMBDA_FUNCTION): Likewise.
18222 (DECL_LAMBDA_FUNCTION_P): Likewise.
18223 (DECL_IS_OPERATOR_NEW): Remove.
18224 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18226 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18228 * ipa-profile.c (get_most_common_single_value): Use
18229 get_nth_most_common_value.
18230 * profile.c (sort_hist_value): New function.
18231 (compute_value_histograms): Call sort_hist_value to sort the
18232 values after loading from disk.
18233 * value-prof.c (get_most_common_single_value): Rename to ...
18234 get_nth_most_common_value. Add input params n, return
18235 the n_th value and count.
18236 (gimple_divmod_fixed_value_transform): Use
18237 get_nth_most_common_value.
18238 (gimple_ic_transform): Likewise.
18239 (gimple_stringops_transform): Likewise.
18240 * value-prof.h (get_most_common_single_value): Add input params
18243 2019-07-25 Richard Biener <rguenther@suse.de>
18245 PR tree-optimization/91236
18246 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18247 size of CONSTRUCTOR write. Fix buffer size we pass to
18248 native_encode_expr.
18250 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18252 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18253 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18256 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18258 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18259 explicitly disabled with --disable-initfini-array.
18261 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18263 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18266 2019-07-24 Martin Sebor <msebor@redhat.com>
18268 PR tree-optimization/91183
18269 PR tree-optimization/86688
18270 * builtins.c (compute_objsize): Handle MEM_REF.
18271 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18272 (get_min_string_length): Remove.
18273 (count_nonzero_bytes): New function.
18274 (handle_char_store): Rename...
18275 (handle_store): to this. Handle multibyte stores via integer types.
18276 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18279 2019-07-24 Martin Sebor <msebor@redhat.com>
18282 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18283 (diagnostic_report_diagnostic): Same.
18284 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18285 (diagnostic_context::lang_mask): New data member.
18286 * ipa-pure-const.c (suggest_attribute): Use
18287 lang_hooks.option_lang_mask ().
18288 * opts-common.c (option_enabled): Handle new argument.
18289 (get_option_state): Pass an additional argument.
18290 * opts.c (print_filtered_help): Print supported languages for
18291 unsupported options. Adjust printing of current state.
18292 * opts.h (option_enabled): Add argument.
18293 * toplev.c (print_switch_values): Use lang_mask.
18294 (general_init): Set global_dc->lang_mask.
18296 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18299 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18301 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18303 * cgraphunit.c (symbol_table::compile): Start and stop
18304 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18305 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18307 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18309 * gimplify.c (flag_instrument_functions_exclude_p): Include
18310 namespace/class information in the printable name.
18311 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18312 to tokens entered into the vector.
18314 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18316 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18317 (get_static_chain): Call it instead of build_simple_mem_ref.
18318 (get_frame_field): Likewise.
18319 (get_nonlocal_debug_decl): Likewise.
18320 (convert_nonlocal_reference_op): Likewise.
18322 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18324 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18326 (arc_compute_frame_size): Millicode is disabled when compiling
18328 (arc_return_address_register): Likewise.
18329 (arc_compute_function_type): Likewise.
18330 (arc_compute_frame_size): Likewise.
18331 (secondary_reload_info): Likewise.
18332 (arc_get_unalign): Likewise.
18333 (arc_can_use_return_insn): Declare.
18334 * config/arc/arc.c (AUX_LP_START): Define
18335 (AUX_LP_END): Likewise.
18336 (arc_frame_info): Update gmask member to 64-bit datum.
18337 (GMASK_LEN): Update.
18338 (arc_compute_function_type): Make it static, move it forward.
18339 (arc_must_save_register): Update, consider the extra regs.
18340 (arc_compute_millicode_save_restore_regs): Update to use the 64
18342 (arc_compute_frame_size): Likewise.
18343 (arc_enter_leave_p): Likewise.
18344 (arc_save_callee_saves): Likewise.
18345 (arc_restore_callee_saves): Likewise.
18346 (arc_save_callee_enter): Likewise.
18347 (arc_restore_callee_leave): Likewise.
18348 (arc_save_callee_milli): Likewise.
18349 (arc_restore_callee_milli): Likewise.
18350 (arc_expand_prologue): Add new interrupt handling.
18351 (arc_return_address_register): Make it static, move it forward.
18352 (arc_expand_epilogue): Add new interrupt handling.
18353 (arc_get_unalign): Delete.
18354 (arc_epilogue_uses): Make sure we do not remove the extra
18355 saved/restored registers when interrupt.
18356 (arc_can_use_return_insn): New function.
18357 (push_reg): Likewise.
18358 (pop_reg): Likewise.
18359 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18361 (arc_restore_callee_saves): Likewise, but restoring.
18362 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18363 (R33_REG): Likewise.
18364 (R34_REG): Likewise.
18365 (R35_REG): Likewise.
18366 (R36_REG): Likewise.
18367 (R37_REG): Likewise.
18368 (R38_REG): Likewise.
18369 (R39_REG): Likewise.
18370 (R45_REG): Likewise.
18371 (R46_REG): Likewise.
18372 (R47_REG): Likewise.
18373 (R48_REG): Likewise.
18374 (R49_REG): Likewise.
18375 (R50_REG): Likewise.
18376 (R51_REG): Likewise.
18377 (R52_REG): Likewise.
18378 (R53_REG): Likewise.
18379 (R54_REG): Likewise.
18380 (R55_REG): Likewise.
18381 (R56_REG): Likewise.
18382 (R58_REG): Likewise.
18383 (type): Add rtie attribute.
18384 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18385 (movsi_insn): Accept moves to lp_count.
18386 (rtie): Update pattern.
18387 (simple_return): Simplify it, don't use this pattern as a return
18389 (arc600_rtie): New pattern.
18390 (p_return_i): Clean up.
18391 (return): Likewise.
18392 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18394 * config/arc/predicates.md (move_src_operand): Consider lp_count
18397 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18399 * config/s390/predicates.md (addv_const_operand): New predicate.
18400 * config/s390/s390-modes.def (CCO): New condition code mode.
18401 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18402 (s390_branch_condition_mask): Likewise.
18403 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18404 ("mulv<mode>4"): New expanders.
18405 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18406 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18407 pattern definitions.
18409 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18411 PR middle-end/91166
18412 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18413 (define_predicates): Add entry for uniform_vector_p.
18414 (vec_same_elem_p): New match pattern.
18416 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18419 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18420 * config/i386/darwin32-biarch.h .. to here.
18421 * config/i386/darwin64-biarch.h: Adjust comments.
18422 * config/rs6000/darwin32-biarch.h: Likewise.
18423 * config/rs6000/darwin64-biarch.h: Likewise.
18424 * config.gcc: Missed commit from r273746
18425 (*-*-darwin*): Don't include CPU t-darwin here.
18426 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18427 an error message if i686-darwin configuration is attempted for
18430 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18433 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18434 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18435 an error message if i686-darwin configuration is attempted for
18437 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18438 (powerpc-*-darwin*): Use biarch files where needed.
18439 (powerpc64-*-darwin*): Likewise.
18440 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18441 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18443 * config/i386/darwin32-biarch.h: New.
18444 * config/i386/darwin64.h: Rename.
18445 * config/i386/darwin64-biarch.h: To this.
18446 * config/i386/t-darwin: Rename.
18447 * config/i386/t-darwin32-biarch: To this.
18448 * config/i386/t-darwin64: Rename.
18449 * config/i386/t-darwin64-biarch: To this.
18450 * config/rs6000/darwin32-biarch.h: New.
18451 * config/rs6000/darwin64.h: Rename.
18452 * config/rs6000/darwin64-biarch.h: To this.
18453 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18455 * config/rs6000/t-darwin8: Rename.
18456 * config/rs6000/t-darwin32-biarch: To this.
18457 * config/rs6000/t-darwin64 Rename.
18458 * config/rs6000/t-darwin64-biarch: To this.
18460 2019-07-23 Martin Sebor <msebor@redhat.com>
18462 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18464 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18466 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18467 (rh): New alias for it.
18469 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18471 * gdbhooks.py: Pass replace=True to
18472 gdb.printing.register_pretty_printer.
18474 2019-07-23 Richard Biener <rguenther@suse.de>
18477 * lto-streamer-in.c (input_function): Drop inline-entry markers
18478 that ended up with an unknown location block.
18480 2019-07-23 Richard Biener <rguenther@suse.de>
18482 PR tree-optimization/83518
18483 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18484 init from a constant even when partial defs are already recorded.
18486 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18488 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18489 * config/i386/znver1.md: Enable patterns for znver2 and add store
18490 variants which use extra AGU unit.
18492 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18494 * config/i386/i386-options.c (ix86_option_override_internal): Default
18495 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18496 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18499 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18501 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18502 (znver2_costs): Update 256 bit SSE costs and multiplication.
18504 2019-07-23 Jan Beulich <jbeulich@suse.com>
18506 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18507 Require only AVX512F.
18508 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18509 alternative expanding to vpternlog.
18511 2019-07-23 Martin Liska <mliska@suse.cz>
18513 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18514 to -flto in dwarf producer string.
18516 2019-07-23 Richard Biener <rguenther@suse.de>
18518 * tree-cfg.c (label_for_bb): Remove global var.
18519 (main_block_label): Take label_for_bb as argument.
18520 (cleanup_dead_labels_eh): Likewise, adjust.
18521 (cleanup_dead_labels): Adjust.
18523 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18525 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18526 Configurations): Add documentation for __builtin_mtfsf.
18528 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18530 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18531 * config/riscv/riscv.c (riscv_constant_alignment): Use
18532 riscv_align_data_type.
18533 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18534 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18535 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18536 * config/riscv/riscv.opt (malign-data): New.
18537 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18539 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18541 * cgraph.c (dump_graphviz): New function.
18542 * cgraph.h (dump_graphviz): New function.
18543 * symtab.c (dump_graphviz): New function.
18545 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18547 * config/aarch64/aarch64-simd.md
18548 (*aarch64_simd_sra<mode>): New.
18549 * config/aarch64/iterators.md
18550 (SHIFTRT): New iterator.
18551 (sra_op): New attribute.
18553 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18555 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18556 callee-saved regs R4->R10 in an interrupt function that calls another
18559 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18561 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18562 (_mm_blendv_epi8): New.
18564 2019-07-22 Richard Biener <rguenther@suse.de>
18566 PR tree-optimization/91221
18567 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18568 restrict partial-def handling of empty constructors and
18569 memset to refs with known offset.
18571 2019-07-22 Jan Beulich <jbeulich@suse.com>
18573 * config/i386/sse.md (ternlogsuffix): New.
18574 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18576 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18578 2019-07-22 Martin Liska <mliska@suse.cz>
18580 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18582 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18584 2019-07-22 Martin Liska <mliska@suse.cz>
18586 * lto-section-in.c (lto_get_section_data):
18587 Use new function get_compression.
18588 * lto-streamer-out.c (produce_lto_section): Use
18589 set_compression to encode compression algorithm.
18590 * lto-streamer.h (struct lto_section): Do not
18591 use bitfields in the format.
18593 2019-07-22 Martin Liska <mliska@suse.cz>
18596 * opts-common.c (decode_cmdline_option): Decode
18597 argument of -Werror and check it for a wrong language.
18598 * opts-global.c (complain_wrong_lang): Remove such case.
18600 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18602 * config/arc/arc.c (prepare_move_operands): Always use an
18603 intermediate register when storing a TLS symbols.
18605 2019-07-22 Stafford Horne <shorne@gmail.com>
18607 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18610 2019-07-22 Stafford Horne <shorne@gmail.com>
18612 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18613 and munordered-float validations.
18614 * config/or1k/constraints.md (d): New register constraint.
18615 * config/or1k/predicates.md (fp_comparison_operator): New.
18616 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18618 (or1k_expand_compare): Normalize unordered comparisons.
18619 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18620 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18621 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18622 * config/or1k/or1k.md (type): Add fpu.
18623 (fpu): New instruction reservation.
18624 (F, f, fr, fi, FI, FOP, fop): New.
18625 (<fop><F:mode>3): New ALU instruction definition.
18626 (float<fi><F:mode>2): New conversion instruction definition.
18627 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18628 (fpcmpcc): New code iterator.
18629 (*sf_fp_insn): New instruction definition.
18630 (cstore<F:mode>4): New expand definition.
18631 (cbranch<F:mode>4): New expand definition.
18632 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18633 munordered-float): New options.
18634 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18637 2019-07-22 Stafford Horne <shorne@gmail.com>
18639 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18640 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18641 documenation to be more clear.
18642 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18644 * config/or1k/or1k.opt (mrori): New option.
18645 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18646 msfimm, mshftimm): Rewrite documentation to be more clear.
18647 * config/or1k/or1k.md (insn_support): Add ror and rori.
18648 (enabled): Add conditions for ror and rori.
18649 (rotrsi3): Replace condition for shftimm with ror and rori.
18651 2019-07-22 Stafford Horne <shorne@gmail.com>
18654 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18655 (extend<mode>si2): Update predicate.
18656 * config/or1k/predicates.md (volatile_mem_operand): New.
18657 (reg_or_mem_operand): New.
18659 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18661 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18662 * config/rs6000/rs6000-call.c: ... to here.
18664 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18666 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18669 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18671 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18673 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18675 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18677 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18679 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18680 (any_memory_operand): New predicate.
18681 (reg_or_mem_operand): Use it.
18683 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18686 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18688 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18690 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18691 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18693 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18695 * tree.def (OMP_LOOP): New tree code.
18696 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18697 (enum omp_clause_bind_kind): New enum.
18698 (struct tree_omp_clause): Add subcode.bind_kind.
18699 * tree.h (OMP_LOOP_CHECK): Rename to ...
18700 (OMP_LOOPING_CHECK): ... this.
18701 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18702 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18703 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18704 (OMP_CLAUSE_BIND_KIND): Define.
18705 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18706 bind clause entries.
18707 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18708 * tree-pretty-print.c (dump_omp_clause): Likewise.
18709 (dump_generic_node): Handle OMP_LOOP.
18710 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18711 (in_omp_construct): New variable.
18712 (is_gimple_stmt): Handle OMP_LOOP.
18713 (gimplify_scan_omp_clauses): For lastprivate don't set
18714 check_non_private if code == OMP_LOOP. For reduction clause
18715 on OMP_LOOP combined with parallel or teams propagate as shared
18716 on the combined construct. Handle OMP_CLAUSE_BIND.
18717 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18718 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18719 for constructs from a loop construct to gimplify_scan_omp_clauses.
18720 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18721 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18722 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18723 to match the implicit ORT_TARGET construct around whole body.
18724 Temporarily clear in_omp_construct when processing body.
18725 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18726 etc. temporarily set in_omp_construct when processing body.
18727 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18728 * omp-low.c (struct omp_context): Add loop_p.
18729 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18730 in that the original var might be private.
18731 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18732 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18733 addition of loop construct.
18734 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18736 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18737 lastprivate non-addressable iterator of a collapse(1) simd.
18739 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18741 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18744 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18746 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18747 refer to default conditions. Warn for the 'y' spec which is ignored
18748 by current linkers.
18750 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18752 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18753 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18754 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18755 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18756 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18757 init_cumulative_args, rs6000_promote_function_mode,
18758 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18759 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18760 rs6000_function_arg_boundary, rs6000_parm_offset,
18761 rs6000_parm_start, rs6000_arg_size,
18762 rs6000_darwin64_record_arg_advance_flush,
18763 rs6000_darwin64_record_arg_advance_recurse,
18764 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18765 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18766 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18767 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18768 rs6000_finish_function_arg, rs6000_function_arg,
18769 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18770 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18771 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18772 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18773 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18774 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18775 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18776 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18777 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18778 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18779 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18780 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18781 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18782 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18783 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18784 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18785 get_element_number, altivec_expand_vec_set_builtin,
18786 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18787 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18788 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18789 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18790 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18791 rs6000_expand_builtin, rs6000_vector_type,
18792 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18793 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18794 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18796 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18797 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18798 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18799 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18800 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18801 init_cumulative_args, rs6000_promote_function_mode,
18802 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18803 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18804 rs6000_function_arg_boundary, rs6000_parm_offset,
18805 rs6000_parm_start, rs6000_arg_size,
18806 rs6000_darwin64_record_arg_advance_flush,
18807 rs6000_darwin64_record_arg_advance_recurse,
18808 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18809 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18810 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18811 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18812 rs6000_finish_function_arg, rs6000_function_arg,
18813 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18814 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18815 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18816 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18817 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18818 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18819 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18820 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18821 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18822 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18823 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18824 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18825 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18826 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18827 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18828 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18829 get_element_number, altivec_expand_vec_set_builtin,
18830 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18831 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18832 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18833 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18834 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18835 rs6000_expand_builtin, rs6000_vector_type,
18836 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18837 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18838 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18839 to here from rs6000.c.
18840 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18841 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18842 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18843 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18844 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18845 rs6000_return_in_memory, rs6000_return_in_msb,
18846 rs6000_pass_by_reference, setup_incoming_varargs,
18847 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18848 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18849 rs6000_function_arg_padding, rs6000_function_arg,
18850 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18851 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18852 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18853 rs6000_passes_long_double, rs6000_passes_vector,
18854 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18855 altivec_builtin_mask_for_load) Add declarations.
18856 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18857 * config/config.gcc: Add new source file rs6000-call.c to garbage
18858 collector and extra_objs.
18860 2019-07-19 Jeff Law <law@redhat.com>
18862 PR tree-optimization/86061
18863 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18864 strncpy. Drop some trivial dead code.
18865 (maybe_trim_memstar_call): Handle strncpy.
18867 2019-07-19 Richard Biener <rguenther@suse.de>
18869 PR tree-optimization/91211
18870 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18871 memset encoding size.
18873 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
18876 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18878 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
18881 * ipa-inline.c (recursive_inlining): Fix limits check.
18883 2019-07-19 Richard Biener <rguenther@suse.de>
18885 PR tree-optimization/91200
18886 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
18887 no PHI nodes in middle-bb.
18889 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
18891 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
18893 * config/aarch64/aarch64-option-extensions.def: Likewise.
18895 2019-07-19 Jakub Jelinek <jakub@redhat.com>
18897 PR middle-end/91190
18898 * function.c (insert_temp_slot_address): Store into the hash table
18899 a copy of address to avoid RTL sharing issues.
18901 2019-07-19 Richard Biener <rguenther@suse.de>
18903 PR tree-optimization/91207
18905 2019-07-17 Richard Biener <rguenther@suse.de>
18907 PR tree-optimization/91178
18908 * tree-vect-stmts.c (get_group_load_store_type): For SLP
18909 loads with a gap larger than the vector size always use
18911 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
18912 avoid loading vectors that are only contained in the gap
18913 and thus are not needed.
18915 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18917 * config/i386/i386.md (*addqi_2_slp): Remove.
18918 (*<code>qi_2_slp): Ditto.
18920 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
18922 * config/rs6000/predicates.md (prefixed_mem_operand): Call
18923 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
18924 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
18925 Rename function from rs6000_prefixed_address.
18926 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18928 (TARGET_TOC): Likewise.
18929 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18931 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18933 (TARGET_TOC): Likewise.
18934 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18936 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18938 (TARGET_TOC): Likewise.
18939 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
18940 check to require -mcmodel=medium for pc-relative addressing.
18941 (create_TOC_reference): Add assertion for TARGET_TOC.
18942 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
18944 (rs6000_emit_move): Likewise.
18945 (TOC_alias_set): Rename TOC alias set static variable from 'set'
18946 to 'TOC_alias_set'.
18947 (get_TOC_alias_set): Likewise.
18948 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
18950 (rs6000_can_eliminate): Likewise.
18951 (rs6000_prefixed_address_mode_p): Rename function from
18952 rs6000_prefixed_address.
18953 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
18954 TARGET_HAS_TOC and not pc-relative.
18955 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
18956 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
18958 (TARGET_TOC): Likewise.
18959 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
18962 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
18965 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
18966 for operand 0. Do not use (match_dup) to match operand 1 with
18967 operand 0. Add check in insn constraint that either input operand
18968 matches operand 0. Use SWI12 mode iterator to also handle
18970 (*and<mode>_1_slp): Ditto.
18971 (*<code>qi_1_slp): Ditto.
18972 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
18973 Do not use (match_dup) to match operand 1 with operand 0. Add
18974 check in insn constraint that operand 1 matches operand 0.
18975 Use SWI12 mode iterator to also handle HImode operands.
18976 (*ashl<mode>3_1_slp): Ditto.
18977 (*<shift_insn><mode>3_1_slp): Ditto.
18978 (*<rotate_insn><mode>3_1_slp): Ditto.
18980 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18982 * config/arm/arm-builtins.c
18983 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
18984 (arm_expand_unop_builtin): Likewise.
18985 * config/arm/crypto.md
18986 (crypto_sha1h): Convert from define_insn to define_expand.
18987 (crypto_<crypto_pattern>): Likewise.
18988 (crypto_sha1h_lb): New define_insn.
18989 (crypto_<crypto_pattern>_lb): Likewise.
18991 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
18994 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
18995 (vsha1cq_u32): Likewise.
18996 (vsha1pq_u32): Likewise.
18997 (vsha1mq_u32): Likewise.
18998 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19000 (crypto_sha1c): Correct vec select.
19001 (crypto_sha1m): Likewise.
19002 (crypto_sha1p): Likewise.
19004 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19006 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19007 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19008 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19009 (subdi_zesidi_zesidi): Likewise.
19010 (negdi2_compare, negdi2_insn): Likewise.
19011 (negdi_extensidi): Likewise.
19012 (negdi_zero_extendsidi): Likewise.
19013 (arm_cmpdi_insn): Likewise.
19014 (subsi3_carryin): Use arm_borrow_operation.
19015 (subsi3_carryin_const): Likewise.
19016 (subsi3_carryin_const0): Likewise.
19017 (subsi3_carryin_compare): Likewise.
19018 (subsi3_carryin_compare_const): Likewise.
19019 (subsi3_carryin_compare_const0): Likewise.
19020 (subsi3_carryin_shift): Likewise.
19021 (rsbsi3_carryin_shift): Likewise.
19022 (negsi2_carryin_compare): Likewise.
19024 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19026 PR tree-optimization/91137
19027 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19028 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19029 Init, use and fini the above new field.
19030 (determine_base_object_1): New function.
19031 (determine_base_object): Reimplement using walk_tree.
19033 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19035 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19036 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19037 CLEANUP_FORCE_FAST_DCE is set.
19038 * ifcvt.c (rest_of_handle_if_conversion): Pass
19039 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19040 if-conversion succeeded.
19042 2019-07-18 Richard Biener <rguenther@suse.de>
19044 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19045 branches to make code less indented.
19047 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19049 PR middle-end/81824
19050 * attribs.c (decls_mismatched_attributes): Simplify the logic
19051 that avoids duplicates and false positives.
19053 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19055 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19056 data into data section when generating PIC code.
19057 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19058 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19059 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19060 return 2 for SOM and 0 for other targets.
19062 2019-07-17 Jeff Law <law@redhat.com>
19064 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19065 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19066 avoid unexpected switch statement fallthru.
19068 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19070 * config/i386/i386.md (*add<dwi>3_doubleword):
19071 Remove redundant constraints.
19072 (*add<mode>_1): Ditto.
19075 (*addqi_1_slp): Ditto.
19076 (*add<mode>_2): Ditto.
19077 (*addv<mode>4): Ditto.
19078 (*sub<dwi>3_doubleword): Ditto.
19079 (*sub<mode>_1): Ditto.
19080 (*subqi_1_slp): Ditto.
19081 (*sub<mode>_2): Ditto.
19082 (*subv<mode>4): Ditto.
19083 (*sub<mode>_3): Ditto.
19084 (@add<mode>3_carry): Ditto.
19085 (@sub<mode>3_carry): Ditto.
19086 (*add<mode>3_cc_overflow_1): Ditto.
19087 (*add<mode>3_zext_cc_overflow_2): Ditto.
19089 (*and<mode>_1): Ditto.
19091 (*andqi_1_slp): Ditto.
19093 (*andqi_2_maybe_si): Ditto.
19094 (*and<mode>_2): Ditto.
19095 (*andqi_2_slp): Ditto.
19096 (*<code><mode>_1): Ditto.
19097 (*<code>qi_1): Ditto.
19098 (*<code>qi_1_slp): Ditto.
19099 (*<code><mode>_2): Ditto.
19100 (*<code>qi_2_slp): Ditto.
19102 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19104 * alias.c (record_component_aliases): Do not simplify pointed-to
19105 types of ODR types.
19107 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19109 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19110 partial reg stall on alternative 2.
19112 2019-07-17 Richard Biener <rguenther@suse.de>
19114 PR tree-optimization/91178
19115 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19116 lower SSA names to avoid quadratic behavior in the common case.
19117 * tree-data-ref.c (split_constant_offset): Add limit argument
19118 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19119 (split_constant_offset_1): Add limit argument and use it to
19120 limit SSA def walking. Optimize the common plus/minus case.
19122 2019-07-17 Richard Biener <rguenther@suse.de>
19124 PR tree-optimization/91178
19125 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19126 loads with a gap larger than the vector size always use
19128 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19129 avoid loading vectors that are only contained in the gap
19130 and thus are not needed.
19132 2019-07-17 Richard Biener <rguenther@suse.de>
19134 PR tree-optimization/91180
19135 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19136 computation for memset partial defs.
19138 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19140 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19141 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19142 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19143 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19144 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19145 * omp-grid.c (grid_process_grid_body,
19146 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19147 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19148 == GF_OMP_FOR_KIND_SIMD.
19149 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19150 check_omp_nesting_restrictions, scan_omp_1_stmt,
19151 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19152 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19153 omp_find_scan): Likewise.
19154 * omp-expand.c (expand_omp_for): Likewise.
19155 * omp-general.c (omp_extract_for_data): Likewise.
19157 PR tree-optimization/91157
19158 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19159 a vector boolean with scalar mode.
19160 (expand_vector_condition): Handle first operand being a vector boolean
19162 (expand_vector_operations_1): For comparisons, don't bail out early
19163 if the return type is vector boolean with scalar mode, but comparison
19164 operand type is not.
19166 2019-07-17 Richard Biener <rguenther@suse.de>
19168 PR tree-optimization/91181
19169 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19170 IFN_LOADs as calls.
19172 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19174 * config/i386/i386.md (*testdi_1): Match CCZmode for
19175 constants that might have the SImode sign bit set.
19176 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19177 Use correct constraints for pentium pairing.
19178 (*test<mode>_1): Ditto.
19180 2019-07-16 Jeff Law <law@redhat.com>
19182 PR rtl-optimization/91173
19183 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19184 SSA_NAME with a constant value, fold its value into the offset
19185 and clear the base before calling gen_addr_rtx.
19187 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19189 PR rtl-optimization/91164
19190 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19191 invalidate dominance info.
19193 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19195 * read-md.h (md_reader::record_potential_iterator_use): Add a
19196 file_location parameter.
19197 * read-rtl.c (attribute_use::loc): New field.
19198 (map_attr_string): Take a file_location parameter. Report cases
19199 in which attributes map to multiple distinct values.
19200 (apply_attribute_uses): Update call accordingly.
19201 (md_reader::handle_overloaded_name): Likewise.
19202 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19204 (record_attribute_use): Take a file_location parameter.
19205 Initialize attribute_use::loc.
19206 (md_reader::record_potential_iterator_use): Take a file_location
19207 parameter. Update call to record_attribute_use.
19208 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19209 (rtx_reader::read_rtx_code): Likewise.
19210 (rtx_reader::read_rtx_operand): Likewise. Record a location
19211 for implicitly-expanded empty strings.
19213 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19215 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19216 Use file_location instead of separate fields.
19217 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19218 separate filename and line number.
19219 * read-md.c (ptr_loc): As above.
19220 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19221 (md_reader::fprint_md_ptr_loc): Likewise.
19222 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19223 instead of a separate filename and line number.
19224 (md_reader::read_string): Update call accordingly.
19226 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19228 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19229 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19230 leaving the choice between SFDF and P implicit.
19231 (*mov<mode>_update2): Likewise.
19232 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19233 rather than leaving the choice betweem IBM128 and GPR implicit.
19234 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19235 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19237 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19238 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19239 * config/rs6000/vsx.md
19240 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19241 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19242 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19243 and VSX_EXTRACT_I implicit.
19245 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19247 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19248 Explicitly use <MOVEP1:MODE> for the mode attribute.
19250 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19253 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19255 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19258 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19259 .machine directive.
19261 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19263 * config/i386/i386.md (@test<mode>_ccno_1):
19264 Rename from test<mode>_ccno_1.
19265 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19266 (*testqi_1_maybe_si): Remove modrm attribute.
19267 (*test<mode>_1): Ditto.
19268 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19269 gen_test_ccno_1 and gen_extend_insn.
19271 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19273 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19276 2019-07-15 Richard Biener <rguenther@suse.de>
19278 PR middle-end/91162
19279 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19280 node make sure to replace all uses with something valid.
19282 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19284 PR tree-optimization/88497
19285 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19286 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19287 function undistribute_bitref_for_vector.
19288 (undistribute_bitref_for_vector): New function.
19289 (cleanup_vinfo_map): Likewise.
19290 (sort_by_mach_mode): Likewise.
19292 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19294 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19295 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19296 and testdi_ccno_1 using SWI48 mode attribute.
19297 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19298 x86_64_szext_general_operand.
19299 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19300 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19301 instead of genera_operand mode attribute.
19303 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19305 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19306 fopen and fclose to their respective types.
19307 (DotFn.invoke): Ditto.
19309 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19311 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19312 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19313 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19314 (array_index_predicate): Remove.
19315 (analyze_function_body): Account cost for variable ofsetted array
19317 (estimate_node_size_and_time): Do not compute array index hint.
19318 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19319 (inline_read_section): Do not read array index hint.
19320 (ipa_fn_summary_write): Do not write array index hint.
19321 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19322 * ipa-cp.c (hint_time_bonus): Remove.
19323 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19324 (ipa_fnsummary): Remove array_index.
19325 * ipa-inline.c (want_inline_small_function_p): Do not use
19327 (edge_badness): Likewise.
19328 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19330 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19333 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19334 superfluous "builtin function" phrasing.
19336 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19338 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19340 (aliasing_component_refs_walk): Break out from ...
19341 (aliasing_component_refs_p): ... here.
19343 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19346 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19347 "builtin function" phrasing.
19349 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19352 * recog.h (temporary_volatile_ok): New class.
19353 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19354 volatile_ok temporarily to true using temporary_volatile_ok.
19355 * expr.c (emit_block_move_via_cpymem): Likewise.
19356 * optabs.c (maybe_legitimize_operand): Likewise.
19358 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19360 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19361 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19362 uses inside of order(concurrent) constructs.
19363 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19364 OMP_CLAUSE_ORDER is seen.
19365 * omp-low.c (struct omp_context): Add order_concurrent member.
19366 (scan_sharing_clauses): Set ctx->order_concurrent if
19367 OMP_CLAUSE_ORDER is seen.
19368 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19369 of simd order(concurrent). Diagnose constructs not allowed inside of
19370 for order(concurrent).
19371 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19372 complaining about static double setjmp (double); or class static
19373 methods or non-global namespace setjmps.
19374 (omp_runtime_api_call): New function.
19375 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19376 order(concurrent) loops.
19378 2019-07-12 Martin Sebor <msebor@redhat.com>
19380 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19381 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19382 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19383 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19385 2019-07-12 Jan Hubicka <jh@suse.cz>
19387 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19388 (indirect_refs_may_alias_p): ... here.
19389 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19390 mem refs in the access paths.
19392 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19394 PR tree-optimization/89430
19395 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19396 store elimination for local variable without address escape.
19398 2019-07-12 Jeff Law <law@redhat.com>
19400 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19401 for the ".far" section.
19403 2019-07-12 Richard Biener <rguenther@suse.de>
19405 PR tree-optimization/91145
19406 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19409 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19411 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19412 rather than this_state as the lowering context for the ELSE
19413 seq in a GIMPLE_EH_ELSE.
19415 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19417 * vector-builder.h (vector_builder::elt): Allow already-supplied
19418 elements to be read back before building is complete.
19420 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19422 PR rtl-optimization/91136
19423 * df-core.c (ACCESSING REFS): Fix typos in comment.
19424 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19425 the beginning of the block to the initial set of live registers.
19427 2019-07-12 Richard Biener <rguenther@suse.de>
19429 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19430 * fold-const.c (get_array_ctor_element_at_index): Add
19431 ctor_idx output parameter informing the caller where in
19432 the constructor the element was (not) found. Add early exit
19433 for when the ctor is sorted.
19434 * gimple-fold.c (fold_array_ctor_reference): Support constant
19435 folding across multiple array elements.
19437 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19439 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19440 doesn't have location, set the current location to the function's end.
19442 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19444 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19445 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19446 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19447 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19448 * config/aarch64/aarch64-simd.md
19449 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19450 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19451 * config/aarch64/aarch64-sve.md
19452 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19453 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19455 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19457 * doc/md.texi: Document that @ patterns can have different
19458 numbers of operands.
19459 * genemit.c (handle_overloaded_gen): Handle this case.
19460 * genopinit.c (handle_overloaded_gen): Likewise.
19461 * gensupport.c (replace_operands_with_dups): Iterate over
19462 the new rtx's format rather than the old one's.
19464 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19466 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19467 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19468 order clause entries.
19469 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19470 * tree-pretty-print.c (dump_omp_clause): Likewise.
19471 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19473 * omp-low.c (scan_sharing_clauses): Likewise.
19474 * tree-nested.c (convert_nonlocal_omp_clauses,
19475 convert_local_omp_clauses): Likewise.
19477 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19479 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19480 fallthrough target of current basic block isn't the placed
19483 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19486 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19487 (_mm512_storeu_epi64): Likewise.
19488 (_mm512_loadu_epi32): Likewise.
19489 (_mm512_storeu_epi32): Likewise.
19490 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19491 (_mm_storeu_epi64): Likewise.
19492 (_mm256_storeu_epi32): Likewise.
19493 (_mm_storeu_epi32): Likewise.
19495 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19497 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19499 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19501 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19504 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19507 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19508 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19509 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19510 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19511 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19512 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19514 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19515 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19516 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19518 (sse2_cvttpd2dq<mask_name>): Change into ...
19519 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19520 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19521 (*sse2_cvtpd2dq<mask_name>): Change into ...
19522 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19523 Add "C" constraint to const0_operand.
19524 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19525 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19529 * config/i386/i386-builtin-types.def
19530 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19531 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19532 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19533 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19534 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19535 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19536 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19537 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19538 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19539 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19540 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19541 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19542 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19543 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19544 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19545 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19546 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19547 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19548 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19549 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19550 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19551 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19552 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19553 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19554 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19555 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19556 __builtin_ia32_vpdpbusd_v4si_maskz,
19557 __builtin_ia32_vpdpbusds_v16si_mask,
19558 __builtin_ia32_vpdpbusds_v16si_maskz,
19559 __builtin_ia32_vpdpbusds_v8si_mask,
19560 __builtin_ia32_vpdpbusds_v8si_maskz,
19561 __builtin_ia32_vpdpbusds_v4si_mask,
19562 __builtin_ia32_vpdpbusds_v4si_maskz,
19563 __builtin_ia32_vpdpwssd_v16si_mask,
19564 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19565 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19566 __builtin_ia32_vpdpwssd_v4si_maskz,
19567 __builtin_ia32_vpdpwssds_v16si_mask,
19568 __builtin_ia32_vpdpwssds_v16si_maskz,
19569 __builtin_ia32_vpdpwssds_v8si_mask,
19570 __builtin_ia32_vpdpwssds_v8si_maskz,
19571 __builtin_ia32_vpdpwssds_v4si_mask,
19572 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19573 suffixed types rather than *_INT.
19574 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19575 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19576 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19577 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19578 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19579 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19581 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19583 * tree-vrp.c (intersect_ranges): If we know the intersection is
19584 empty, there is no need to conservatively add anything else to
19587 2019-07-11 Richard Biener <rguenther@suse.de>
19589 PR middle-end/91131
19590 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19591 when the object is volatile and we have not cleared it even though
19592 there are no nonzero elements.
19594 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19596 * config/rs6000/predicates.md (cint34_operand): Update
19597 SIGNED_34BIT_OFFSET_P call.
19598 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19599 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19600 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19601 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19602 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19604 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19605 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19606 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19607 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19608 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19610 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19612 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19613 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19614 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19615 (DEF_MIN_OSX_VERSION): New.
19617 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19619 * fold-const.c (fold_relational_const): Fix folding of
19620 vector-to-scalar NE_EXPRs.
19621 (test_vector_folding): Add more tests.
19623 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19626 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19627 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19628 (vec_setv2di_internal): Reexpress as...
19629 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19630 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19631 rather than gen_neon_vset_lane<mode>.
19633 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19636 * lra-constraints.c (process_alt_operands): Don't match user
19637 defined regs only if they are early clobbers.
19639 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19641 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19643 2019-07-10 Richard Biener <rguenther@suse.de>
19645 PR tree-optimization/91126
19646 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19647 native encoding offset for BYTES_BIG_ENDIAN.
19648 (vn_reference_lookup_3): Likewise.
19650 2019-07-10 Richard Biener <rguenther@suse.de>
19652 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19653 LHS whenever possible.
19655 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19657 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19658 from ...; work also on duplicated types.
19659 (nonoverlapping_component_refs_since_match): ... here
19660 (ncr_type_uid): Break out from ...
19661 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19663 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19664 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19666 2019-07-09 Martin Sebor <msebor@redhat.com>
19668 PR tree-optimization/90989
19669 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19670 optimization to just single character stores.
19672 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19674 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19675 Swap operands only once.
19677 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19679 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19680 for both call instructions.
19682 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19684 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19685 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19687 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19689 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19690 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19691 function from rs6000-logue.c back to rs6000.c.
19692 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19694 2019-07-09 Martin Sebor <msebor@redhat.com>
19697 * auto-profile.c: Change class-key of PODs to struct and others
19699 * basic-block.h: Same.
19700 * bitmap.c (bitmap_alloc): Same.
19702 * builtins.c (expand_builtin_prefetch): Same.
19703 (expand_builtin_interclass_mathfn): Same.
19704 (expand_builtin_strlen): Same.
19705 (expand_builtin_mempcpy_args): Same.
19706 (expand_cmpstr): Same.
19707 (expand_builtin___clear_cache): Same.
19708 (expand_ifn_atomic_bit_test_and): Same.
19709 (expand_builtin_thread_pointer): Same.
19710 (expand_builtin_set_thread_pointer): Same.
19711 * caller-save.c (setup_save_areas): Same.
19712 (replace_reg_with_saved_mem): Same.
19713 (insert_restore): Same.
19714 (insert_save): Same.
19715 (add_used_regs): Same.
19716 * cfg.c (get_bb_copy): Same.
19717 (set_loop_copy): Same.
19720 * cfgexpand.c (alloc_stack_frame_space): Same.
19721 (add_stack_var): Same.
19722 (add_stack_var_conflict): Same.
19723 (add_scope_conflicts_1): Same.
19724 (update_alias_info_with_stack_vars): Same.
19725 (expand_used_vars): Same.
19726 * cfghooks.c (redirect_edge_and_branch_force): Same.
19727 (delete_basic_block): Same.
19728 (split_edge): Same.
19729 (make_forwarder_block): Same.
19730 (force_nonfallthru): Same.
19731 (duplicate_block): Same.
19732 (lv_flush_pending_stmts): Same.
19733 * cfghooks.h: Same.
19734 * cfgloop.c (flow_loops_cfg_dump): Same.
19735 (flow_loop_nested_p): Same.
19736 (superloop_at_depth): Same.
19737 (get_loop_latch_edges): Same.
19738 (flow_loop_dump): Same.
19739 (flow_loops_dump): Same.
19740 (flow_loops_free): Same.
19741 (flow_loop_nodes_find): Same.
19742 (establish_preds): Same.
19743 (flow_loop_tree_node_add): Same.
19744 (flow_loop_tree_node_remove): Same.
19745 (flow_loops_find): Same.
19746 (find_subloop_latch_edge_by_profile): Same.
19747 (find_subloop_latch_edge_by_ivs): Same.
19748 (mfb_redirect_edges_in_set): Same.
19749 (form_subloop): Same.
19750 (merge_latch_edges): Same.
19751 (disambiguate_multiple_latches): Same.
19752 (disambiguate_loops_with_multiple_latches): Same.
19753 (flow_bb_inside_loop_p): Same.
19754 (glb_enum_p): Same.
19755 (get_loop_body_with_size): Same.
19756 (get_loop_body): Same.
19757 (fill_sons_in_loop): Same.
19758 (get_loop_body_in_dom_order): Same.
19759 (get_loop_body_in_custom_order): Same.
19760 (release_recorded_exits): Same.
19761 (get_loop_exit_edges): Same.
19762 (num_loop_branches): Same.
19763 (remove_bb_from_loops): Same.
19764 (find_common_loop): Same.
19765 (delete_loop): Same.
19766 (cancel_loop): Same.
19767 (verify_loop_structure): Same.
19768 (loop_preheader_edge): Same.
19769 (loop_exit_edge_p): Same.
19770 (single_exit): Same.
19771 (loop_exits_to_bb_p): Same.
19772 (loop_exits_from_bb_p): Same.
19773 (get_loop_location): Same.
19774 (record_niter_bound): Same.
19775 (get_estimated_loop_iterations_int): Same.
19776 (max_stmt_executions_int): Same.
19777 (likely_max_stmt_executions_int): Same.
19778 (get_estimated_loop_iterations): Same.
19779 (get_max_loop_iterations): Same.
19780 (get_max_loop_iterations_int): Same.
19781 (get_likely_max_loop_iterations): Same.
19782 * cfgloop.h (simple_loop_desc): Same.
19784 (loop_depth): Same.
19785 (loop_outer): Same.
19786 (loop_iterator::next): Same.
19787 (loop_outermost): Same.
19788 * cfgloopanal.c (mark_irreducible_loops): Same.
19789 (num_loop_insns): Same.
19790 (average_num_loop_insns): Same.
19791 (expected_loop_iterations_unbounded): Same.
19792 (expected_loop_iterations): Same.
19793 (mark_loop_exit_edges): Same.
19794 (single_likely_exit): Same.
19795 * cfgloopmanip.c (fix_bb_placement): Same.
19796 (fix_bb_placements): Same.
19797 (remove_path): Same.
19798 (place_new_loop): Same.
19800 (scale_loop_frequencies): Same.
19801 (scale_loop_profile): Same.
19802 (create_empty_if_region_on_edge): Same.
19803 (create_empty_loop_on_edge): Same.
19806 (fix_loop_placements): Same.
19807 (copy_loop_info): Same.
19808 (duplicate_loop): Same.
19809 (duplicate_subloops): Same.
19810 (loop_redirect_edge): Same.
19811 (can_duplicate_loop_p): Same.
19812 (duplicate_loop_to_header_edge): Same.
19813 (mfb_keep_just): Same.
19814 (has_preds_from_loop): Same.
19815 (create_preheader): Same.
19816 (create_preheaders): Same.
19817 (lv_adjust_loop_entry_edge): Same.
19818 (loop_version): Same.
19819 * cfgloopmanip.h: Same.
19821 * cgraphbuild.c: Same.
19822 * combine.c (make_extraction): Same.
19823 * config/i386/i386-features.c: Same.
19824 * config/i386/i386-features.h: Same.
19825 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19826 (ix86_emit_outlined_ms2sysv_restore): Same.
19827 (ix86_noce_conversion_profitable_p): Same.
19828 (ix86_init_cost): Same.
19829 (ix86_simd_clone_usable): Same.
19830 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19832 * coretypes.h: Same.
19833 * data-streamer-in.c (string_for_index): Change class-key of PODs
19834 to struct and others to class.
19835 (streamer_read_indexed_string): Same.
19836 (streamer_read_string): Same.
19837 (bp_unpack_indexed_string): Same.
19838 (bp_unpack_string): Same.
19839 (streamer_read_uhwi): Same.
19840 (streamer_read_hwi): Same.
19841 (streamer_read_gcov_count): Same.
19842 (streamer_read_wide_int): Same.
19843 * data-streamer.h (streamer_write_bitpack): Same.
19844 (bp_unpack_value): Same.
19845 (streamer_write_char_stream): Same.
19846 (streamer_write_hwi_in_range): Same.
19847 (streamer_write_record_start): Same.
19848 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19849 (add_cross_iteration_register_deps): Same.
19850 (build_intra_loop_deps): Same.
19851 * df-core.c (df_analyze): Same.
19852 (loop_post_order_compute): Same.
19853 (loop_inverted_post_order_compute): Same.
19854 * df-problems.c (df_rd_alloc): Same.
19855 (df_rd_simulate_one_insn): Same.
19856 (df_rd_local_compute): Same.
19857 (df_rd_init_solution): Same.
19858 (df_rd_confluence_n): Same.
19859 (df_rd_transfer_function): Same.
19860 (df_rd_free): Same.
19861 (df_rd_dump_defs_set): Same.
19862 (df_rd_top_dump): Same.
19863 (df_lr_alloc): Same.
19864 (df_lr_reset): Same.
19865 (df_lr_local_compute): Same.
19866 (df_lr_init): Same.
19867 (df_lr_confluence_n): Same.
19868 (df_lr_free): Same.
19869 (df_lr_top_dump): Same.
19870 (df_lr_verify_transfer_functions): Same.
19871 (df_live_alloc): Same.
19872 (df_live_reset): Same.
19873 (df_live_init): Same.
19874 (df_live_confluence_n): Same.
19875 (df_live_finalize): Same.
19876 (df_live_free): Same.
19877 (df_live_top_dump): Same.
19878 (df_live_verify_transfer_functions): Same.
19879 (df_mir_alloc): Same.
19880 (df_mir_reset): Same.
19881 (df_mir_init): Same.
19882 (df_mir_confluence_n): Same.
19883 (df_mir_free): Same.
19884 (df_mir_top_dump): Same.
19885 (df_word_lr_alloc): Same.
19886 (df_word_lr_reset): Same.
19887 (df_word_lr_init): Same.
19888 (df_word_lr_confluence_n): Same.
19889 (df_word_lr_free): Same.
19890 (df_word_lr_top_dump): Same.
19891 (df_md_alloc): Same.
19892 (df_md_simulate_one_insn): Same.
19893 (df_md_reset): Same.
19894 (df_md_init): Same.
19895 (df_md_free): Same.
19896 (df_md_top_dump): Same.
19897 * df-scan.c (df_insn_delete): Same.
19898 (df_insn_rescan): Same.
19899 (df_notes_rescan): Same.
19900 (df_sort_and_compress_mws): Same.
19901 (df_install_mws): Same.
19902 (df_refs_add_to_chains): Same.
19903 (df_ref_create_structure): Same.
19904 (df_ref_record): Same.
19905 (df_def_record_1): Same.
19906 (df_find_hard_reg_defs): Same.
19907 (df_uses_record): Same.
19908 (df_get_conditional_uses): Same.
19909 (df_get_call_refs): Same.
19910 (df_recompute_luids): Same.
19911 (df_get_entry_block_def_set): Same.
19912 (df_entry_block_defs_collect): Same.
19913 (df_get_exit_block_use_set): Same.
19914 (df_exit_block_uses_collect): Same.
19915 (df_mws_verify): Same.
19916 (df_bb_verify): Same.
19917 * df.h (df_scan_get_bb_info): Same.
19918 * doc/tm.texi: Same.
19919 * dse.c (record_store): Same.
19920 * dumpfile.h: Same.
19921 * emit-rtl.c (const_fixed_hasher::equal): Same.
19922 (set_mem_attributes_minus_bitpos): Same.
19923 (change_address): Same.
19924 (adjust_address_1): Same.
19925 (offset_address): Same.
19926 * emit-rtl.h: Same.
19927 * except.c (dw2_build_landing_pads): Same.
19928 (sjlj_emit_dispatch_table): Same.
19929 * explow.c (allocate_dynamic_stack_space): Same.
19930 (emit_stack_probe): Same.
19931 (probe_stack_range): Same.
19932 * expmed.c (store_bit_field_using_insv): Same.
19933 (store_bit_field_1): Same.
19934 (store_integral_bit_field): Same.
19935 (extract_bit_field_using_extv): Same.
19936 (extract_bit_field_1): Same.
19937 (emit_cstore): Same.
19938 * expr.c (emit_block_move_via_cpymem): Same.
19939 (expand_cmpstrn_or_cmpmem): Same.
19940 (set_storage_via_setmem): Same.
19941 (emit_single_push_insn_1): Same.
19942 (expand_assignment): Same.
19943 (store_constructor): Same.
19944 (expand_expr_real_2): Same.
19945 (expand_expr_real_1): Same.
19946 (try_casesi): Same.
19948 * function.c (try_fit_stack_local): Same.
19949 (assign_stack_local_1): Same.
19950 (assign_stack_local): Same.
19951 (cut_slot_from_list): Same.
19952 (insert_slot_to_list): Same.
19953 (max_slot_level): Same.
19954 (move_slot_to_level): Same.
19955 (temp_address_hasher::equal): Same.
19956 (remove_unused_temp_slot_addresses): Same.
19957 (assign_temp): Same.
19958 (combine_temp_slots): Same.
19959 (update_temp_slot_address): Same.
19960 (preserve_temp_slots): Same.
19961 * function.h: Same.
19963 * gcc-rich-location.h: Same.
19965 * genattrtab.c (check_attr_test): Same.
19966 (check_attr_value): Same.
19967 (convert_set_attr_alternative): Same.
19968 (convert_set_attr): Same.
19969 (check_defs): Same.
19970 (copy_boolean): Same.
19971 (get_attr_value): Same.
19972 (expand_delays): Same.
19973 (make_length_attrs): Same.
19975 (make_alternative_compare): Same.
19976 (simplify_test_exp): Same.
19977 (tests_attr_p): Same.
19978 (get_attr_order): Same.
19979 (clear_struct_flag): Same.
19981 (compares_alternatives_p): Same.
19984 (find_attrs_to_cache): Same.
19985 (write_test_expr): Same.
19986 (walk_attr_value): Same.
19987 (write_attr_get): Same.
19988 (eliminate_known_true): Same.
19989 (write_insn_cases): Same.
19990 (write_attr_case): Same.
19991 (write_attr_valueq): Same.
19992 (write_attr_value): Same.
19993 (write_dummy_eligible_delay): Same.
19994 (next_comma_elt): Same.
19996 (make_internal_attr): Same.
19997 (copy_rtx_unchanging): Same.
19998 (gen_insn_reserv): Same.
19999 (check_tune_attr): Same.
20000 (make_automaton_attrs): Same.
20001 (handle_arg): Same.
20002 * genextract.c (gen_insn): Same.
20003 (VEC_char_to_string): Same.
20004 * genmatch.c (print_operand): Same.
20006 (parser::parse_operation): Same.
20007 (parser::parse_capture): Same.
20008 (parser::parse_c_expr): Same.
20009 (parser::parse_simplify): Same.
20011 * genoutput.c (output_operand_data): Same.
20012 (output_get_insn_name): Same.
20013 (compare_operands): Same.
20014 (place_operands): Same.
20015 (process_template): Same.
20016 (validate_insn_alternatives): Same.
20017 (validate_insn_operands): Same.
20018 (gen_expand): Same.
20019 (note_constraint): Same.
20020 * genpreds.c (write_one_predicate_function): Same.
20021 (add_constraint): Same.
20022 (process_define_register_constraint): Same.
20023 (write_lookup_constraint_1): Same.
20024 (write_lookup_constraint_array): Same.
20025 (write_insn_constraint_len): Same.
20026 (write_reg_class_for_constraint_1): Same.
20027 (write_constraint_satisfied_p_array): Same.
20028 * genrecog.c (optimize_subroutine_group): Same.
20029 * gensupport.c (process_define_predicate): Same.
20030 (queue_pattern): Same.
20031 (remove_from_queue): Same.
20032 (process_rtx): Same.
20033 (is_predicable): Same.
20034 (change_subst_attribute): Same.
20035 (subst_pattern_match): Same.
20036 (alter_constraints): Same.
20037 (alter_attrs_for_insn): Same.
20038 (shift_output_template): Same.
20039 (alter_output_for_subst_insn): Same.
20040 (process_one_cond_exec): Same.
20042 (process_define_cond_exec): Same.
20043 (mnemonic_htab_callback): Same.
20044 (gen_mnemonic_attr): Same.
20045 (read_md_rtx): Same.
20046 * ggc-page.c: Same.
20047 * gimple-loop-interchange.cc (dump_reduction): Same.
20048 (dump_induction): Same.
20049 (loop_cand::~loop_cand): Same.
20050 (free_data_refs_with_aux): Same.
20051 (tree_loop_interchange::interchange_loops): Same.
20052 (tree_loop_interchange::map_inductions_to_loop): Same.
20053 (tree_loop_interchange::move_code_to_inner_loop): Same.
20054 (compute_access_stride): Same.
20055 (compute_access_strides): Same.
20056 (proper_loop_form_for_interchange): Same.
20057 (tree_loop_interchange_compute_ddrs): Same.
20058 (prune_datarefs_not_in_loop): Same.
20059 (prepare_data_references): Same.
20060 (pass_linterchange::execute): Same.
20061 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20062 (unroll_jam_possible_p): Same.
20063 (fuse_loops): Same.
20064 (adjust_unroll_factor): Same.
20065 (tree_loop_unroll_and_jam): Same.
20066 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20067 (loop_versioning::expensive_stmt_p): Same.
20068 (loop_versioning::version_for_unity): Same.
20069 (loop_versioning::dump_inner_likelihood): Same.
20070 (loop_versioning::find_per_loop_multiplication): Same.
20071 (loop_versioning::analyze_term_using_scevs): Same.
20072 (loop_versioning::record_address_fragment): Same.
20073 (loop_versioning::analyze_expr): Same.
20074 (loop_versioning::analyze_blocks): Same.
20075 (loop_versioning::prune_conditions): Same.
20076 (loop_versioning::merge_loop_info): Same.
20077 (loop_versioning::add_loop_to_queue): Same.
20078 (loop_versioning::decide_whether_loop_is_versionable): Same.
20079 (loop_versioning::make_versioning_decisions): Same.
20080 (loop_versioning::implement_versioning_decisions): Same.
20081 * gimple-ssa-evrp-analyze.c
20082 (evrp_range_analyzer::record_ranges_from_phis): Same.
20083 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20084 (count_multiple_uses): Same.
20085 (split_group): Same.
20086 (imm_store_chain_info::output_merged_store): Same.
20087 (pass_store_merging::process_store): Same.
20088 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20089 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20091 (alloca_call_type): Same.
20092 (pass_walloca::execute): Same.
20093 * gimple-streamer-in.c (input_phi): Same.
20094 (input_gimple_stmt): Same.
20095 * gimple-streamer.h: Same.
20096 * godump.c (go_force_record_alignment): Same.
20097 (go_format_type): Same.
20098 (go_output_type): Same.
20099 (go_output_fndecl): Same.
20100 (go_output_typedef): Same.
20101 (keyword_hash_init): Same.
20102 (find_dummy_types): Same.
20103 * graph.c (draw_cfg_nodes_no_loops): Same.
20104 (draw_cfg_nodes_for_loop): Same.
20105 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20106 * hsa-brig.c: Same.
20107 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20108 * hsa-dump.c (dump_hsa_cfun): Same.
20109 * hsa-gen.c (gen_function_def_parameters): Same.
20110 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20111 * input.c (dump_line_table_statistics): Same.
20112 (test_lexer): Same.
20114 * internal-fn.c (get_multi_vector_move): Same.
20115 (expand_load_lanes_optab_fn): Same.
20116 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20117 (expand_GOMP_SIMT_EXIT): Same.
20118 (expand_GOMP_SIMT_LAST_LANE): Same.
20119 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20120 (expand_GOMP_SIMT_VOTE_ANY): Same.
20121 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20122 (expand_GOMP_SIMT_XCHG_IDX): Same.
20123 (expand_addsub_overflow): Same.
20124 (expand_neg_overflow): Same.
20125 (expand_mul_overflow): Same.
20126 (expand_call_mem_ref): Same.
20127 (expand_mask_load_optab_fn): Same.
20128 (expand_scatter_store_optab_fn): Same.
20129 (expand_gather_load_optab_fn): Same.
20130 * ipa-cp.c (ipa_get_parm_lattices): Same.
20131 (print_all_lattices): Same.
20132 (ignore_edge_p): Same.
20133 (build_toporder_info): Same.
20134 (free_toporder_info): Same.
20135 (push_node_to_stack): Same.
20136 (ipcp_lattice<valtype>::set_contains_variable): Same.
20137 (set_agg_lats_to_bottom): Same.
20138 (ipcp_bits_lattice::meet_with): Same.
20139 (set_single_call_flag): Same.
20140 (initialize_node_lattices): Same.
20141 (ipa_get_jf_ancestor_result): Same.
20142 (ipcp_verify_propagated_values): Same.
20143 (propagate_scalar_across_jump_function): Same.
20144 (propagate_context_across_jump_function): Same.
20145 (propagate_bits_across_jump_function): Same.
20146 (ipa_vr_operation_and_type_effects): Same.
20147 (propagate_vr_across_jump_function): Same.
20148 (set_check_aggs_by_ref): Same.
20149 (set_chain_of_aglats_contains_variable): Same.
20150 (merge_aggregate_lattices): Same.
20151 (agg_pass_through_permissible_p): Same.
20152 (propagate_aggs_across_jump_function): Same.
20153 (call_passes_through_thunk_p): Same.
20154 (propagate_constants_across_call): Same.
20155 (devirtualization_time_bonus): Same.
20156 (good_cloning_opportunity_p): Same.
20157 (context_independent_aggregate_values): Same.
20158 (gather_context_independent_values): Same.
20159 (perform_estimation_of_a_value): Same.
20160 (estimate_local_effects): Same.
20161 (value_topo_info<valtype>::add_val): Same.
20162 (add_all_node_vals_to_toposort): Same.
20163 (value_topo_info<valtype>::propagate_effects): Same.
20164 (ipcp_propagate_stage): Same.
20165 (ipcp_discover_new_direct_edges): Same.
20166 (same_node_or_its_all_contexts_clone_p): Same.
20167 (cgraph_edge_brings_value_p): Same.
20168 (gather_edges_for_value): Same.
20169 (create_specialized_node): Same.
20170 (find_more_scalar_values_for_callers_subset): Same.
20171 (find_more_contexts_for_caller_subset): Same.
20172 (copy_plats_to_inter): Same.
20173 (intersect_aggregates_with_edge): Same.
20174 (find_aggregate_values_for_callers_subset): Same.
20175 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20176 (decide_about_value): Same.
20177 (decide_whether_version_node): Same.
20178 (spread_undeadness): Same.
20179 (identify_dead_nodes): Same.
20180 (ipcp_store_vr_results): Same.
20181 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20182 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20183 (redirect_to_unreachable): Same.
20184 (edge_set_predicate): Same.
20185 (evaluate_conditions_for_known_args): Same.
20186 (evaluate_properties_for_edge): Same.
20187 (ipa_fn_summary_t::duplicate): Same.
20188 (ipa_call_summary_t::duplicate): Same.
20189 (dump_ipa_call_summary): Same.
20190 (ipa_dump_fn_summary): Same.
20191 (eliminated_by_inlining_prob): Same.
20192 (set_cond_stmt_execution_predicate): Same.
20193 (set_switch_stmt_execution_predicate): Same.
20194 (compute_bb_predicates): Same.
20195 (will_be_nonconstant_expr_predicate): Same.
20196 (phi_result_unknown_predicate): Same.
20197 (analyze_function_body): Same.
20198 (compute_fn_summary): Same.
20199 (estimate_edge_devirt_benefit): Same.
20200 (estimate_edge_size_and_time): Same.
20201 (estimate_calls_size_and_time): Same.
20202 (estimate_node_size_and_time): Same.
20203 (remap_edge_change_prob): Same.
20204 (remap_edge_summaries): Same.
20205 (ipa_merge_fn_summary_after_inlining): Same.
20206 (ipa_fn_summary_generate): Same.
20207 (inline_read_section): Same.
20208 (ipa_fn_summary_read): Same.
20209 (ipa_fn_summary_write): Same.
20210 * ipa-fnsummary.h: Same.
20211 * ipa-hsa.c (ipa_hsa_read_section): Same.
20212 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20213 * ipa-icf.c (sem_function::param_used_p): Same.
20214 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20215 * ipa-inline.c (edge_badness): Same.
20216 (inline_small_functions): Same.
20217 * ipa-polymorphic-call.c
20218 (ipa_polymorphic_call_context::stream_out): Same.
20219 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20220 (predicate::remap_after_inlining): Same.
20221 (predicate::stream_out): Same.
20222 * ipa-predicate.h: Same.
20223 * ipa-profile.c (ipa_profile_read_summary): Same.
20224 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20225 (count_formal_params): Same.
20226 (ipa_dump_param): Same.
20227 (ipa_alloc_node_params): Same.
20228 (ipa_print_node_jump_functions_for_edge): Same.
20229 (ipa_print_node_jump_functions): Same.
20230 (ipa_load_from_parm_agg): Same.
20231 (get_ancestor_addr_info): Same.
20232 (ipa_compute_jump_functions_for_edge): Same.
20233 (ipa_analyze_virtual_call_uses): Same.
20234 (ipa_analyze_stmt_uses): Same.
20235 (ipa_analyze_params_uses_in_bb): Same.
20236 (update_jump_functions_after_inlining): Same.
20237 (try_decrement_rdesc_refcount): Same.
20238 (ipa_impossible_devirt_target): Same.
20239 (update_indirect_edges_after_inlining): Same.
20240 (combine_controlled_uses_counters): Same.
20241 (ipa_edge_args_sum_t::duplicate): Same.
20242 (ipa_write_jump_function): Same.
20243 (ipa_write_indirect_edge_info): Same.
20244 (ipa_write_node_info): Same.
20245 (ipa_read_edge_info): Same.
20246 (ipa_prop_read_section): Same.
20247 (read_replacements_section): Same.
20248 * ipa-prop.h (ipa_get_param_count): Same.
20249 (ipa_get_param): Same.
20250 (ipa_get_type): Same.
20251 (ipa_get_param_move_cost): Same.
20252 (ipa_set_param_used): Same.
20253 (ipa_get_controlled_uses): Same.
20254 (ipa_set_controlled_uses): Same.
20255 (ipa_get_cs_argument_count): Same.
20256 * ipa-pure-const.c (analyze_function): Same.
20257 (pure_const_read_summary): Same.
20259 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20260 * ipa-split.c (test_nonssa_use): Same.
20261 (dump_split_point): Same.
20262 (dominated_by_forbidden): Same.
20263 (split_part_set_ssa_name_p): Same.
20264 (find_split_points): Same.
20265 * ira-build.c (finish_loop_tree_nodes): Same.
20266 (low_pressure_loop_node_p): Same.
20267 * ira-color.c (ira_reuse_stack_slot): Same.
20269 * ira.c (setup_reg_equiv): Same.
20270 (print_insn_chain): Same.
20272 * loop-doloop.c (doloop_condition_get): Same.
20274 (record_reg_sets): Same.
20275 (doloop_optimize): Same.
20276 * loop-init.c (loop_optimizer_init): Same.
20277 (fix_loop_structure): Same.
20278 * loop-invariant.c (merge_identical_invariants): Same.
20279 (compute_always_reached): Same.
20280 (find_exits): Same.
20281 (may_assign_reg_p): Same.
20282 (find_invariants_bb): Same.
20283 (find_invariants_body): Same.
20284 (replace_uses): Same.
20285 (can_move_invariant_reg): Same.
20286 (free_inv_motion_data): Same.
20287 (move_single_loop_invariants): Same.
20288 (change_pressure): Same.
20289 (mark_ref_regs): Same.
20290 (calculate_loop_reg_pressure): Same.
20291 * loop-iv.c (biv_entry_hasher::equal): Same.
20292 (iv_extend_to_rtx_code): Same.
20293 (check_iv_ref_table_size): Same.
20294 (clear_iv_info): Same.
20295 (latch_dominating_def): Same.
20296 (iv_get_reaching_def): Same.
20297 (iv_constant): Same.
20303 (get_biv_step): Same.
20305 (analyzed_for_bivness_p): Same.
20306 (record_biv): Same.
20307 (iv_analyze_biv): Same.
20308 (iv_analyze_expr): Same.
20309 (iv_analyze_def): Same.
20310 (iv_analyze_op): Same.
20311 (iv_analyze): Same.
20312 (iv_analyze_result): Same.
20314 (eliminate_implied_conditions): Same.
20315 (simplify_using_initial_values): Same.
20316 (shorten_into_mode): Same.
20317 (canonicalize_iv_subregs): Same.
20318 (determine_max_iter): Same.
20319 (check_simple_exit): Same.
20320 (find_simple_exit): Same.
20321 (get_simple_loop_desc): Same.
20322 * loop-unroll.c (report_unroll): Same.
20323 (decide_unrolling): Same.
20324 (unroll_loops): Same.
20325 (loop_exit_at_end_p): Same.
20326 (decide_unroll_constant_iterations): Same.
20327 (unroll_loop_constant_iterations): Same.
20328 (compare_and_jump_seq): Same.
20329 (unroll_loop_runtime_iterations): Same.
20330 (decide_unroll_stupid): Same.
20331 (unroll_loop_stupid): Same.
20332 (referenced_in_one_insn_in_loop_p): Same.
20333 (reset_debug_uses_in_loop): Same.
20334 (analyze_iv_to_split_insn): Same.
20335 * lra-eliminations.c (lra_debug_elim_table): Same.
20336 (setup_can_eliminate): Same.
20338 (lra_get_elimination_hard_regno): Same.
20339 (lra_eliminate_regs_1): Same.
20340 (eliminate_regs_in_insn): Same.
20341 (update_reg_eliminate): Same.
20342 (init_elimination): Same.
20343 (lra_eliminate): Same.
20345 * lra-lives.c (initiate_live_solver): Same.
20346 * lra-remat.c (create_remat_bb_data): Same.
20347 * lra-spills.c (lra_spill): Same.
20348 * lra.c (lra_set_insn_recog_data): Same.
20349 (lra_set_used_insn_alternative_by_uid): Same.
20350 (init_reg_info): Same.
20351 (expand_reg_info): Same.
20352 * lto-cgraph.c (output_symtab): Same.
20353 (read_identifier): Same.
20354 (get_alias_symbol): Same.
20355 (input_node): Same.
20356 (input_varpool_node): Same.
20358 (input_edge): Same.
20359 (input_cgraph_1): Same.
20360 (input_refs): Same.
20361 (input_symtab): Same.
20362 (input_offload_tables): Same.
20363 (output_cgraph_opt_summary): Same.
20364 (input_edge_opt_summary): Same.
20365 (input_cgraph_opt_section): Same.
20366 * lto-section-in.c (lto_free_raw_section_data): Same.
20367 (lto_create_simple_input_block): Same.
20368 (lto_free_function_in_decl_state_for_node): Same.
20369 * lto-streamer-in.c (lto_tag_check_set): Same.
20370 (lto_location_cache::revert_location_cache): Same.
20371 (lto_location_cache::input_location): Same.
20372 (lto_input_location): Same.
20373 (stream_input_location_now): Same.
20374 (lto_input_tree_ref): Same.
20375 (lto_input_eh_catch_list): Same.
20376 (input_eh_region): Same.
20377 (lto_init_eh): Same.
20378 (make_new_block): Same.
20380 (fixup_call_stmt_edges): Same.
20381 (input_struct_function_base): Same.
20382 (input_function): Same.
20383 (lto_read_body_or_constructor): Same.
20384 (lto_read_tree_1): Same.
20385 (lto_read_tree): Same.
20386 (lto_input_scc): Same.
20387 (lto_input_tree_1): Same.
20388 (lto_input_toplevel_asms): Same.
20389 (lto_input_mode_table): Same.
20390 (lto_reader_init): Same.
20391 (lto_data_in_create): Same.
20392 * lto-streamer-out.c (output_cfg): Same.
20393 * lto-streamer.h: Same.
20394 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20395 (generate_prolog_epilog): Same.
20396 (mark_loop_unsched): Same.
20397 (dump_insn_location): Same.
20398 (loop_canon_p): Same.
20399 (sms_schedule): Same.
20400 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20401 (expand_omp_for_generic): Same.
20402 (expand_omp_for_static_nochunk): Same.
20403 (expand_omp_for_static_chunk): Same.
20404 (expand_omp_simd): Same.
20405 (expand_omp_taskloop_for_inner): Same.
20406 (expand_oacc_for): Same.
20407 (expand_omp_atomic_pipeline): Same.
20408 (mark_loops_in_oacc_kernels_region): Same.
20409 * omp-offload.c (oacc_xform_loop): Same.
20410 * omp-simd-clone.c (simd_clone_adjust): Same.
20411 * optabs-query.c (get_traditional_extraction_insn): Same.
20412 * optabs.c (expand_vector_broadcast): Same.
20413 (expand_binop_directly): Same.
20414 (expand_twoval_unop): Same.
20415 (expand_twoval_binop): Same.
20416 (expand_unop_direct): Same.
20417 (emit_indirect_jump): Same.
20418 (emit_conditional_move): Same.
20419 (emit_conditional_neg_or_complement): Same.
20420 (emit_conditional_add): Same.
20421 (vector_compare_rtx): Same.
20422 (expand_vec_perm_1): Same.
20423 (expand_vec_perm_const): Same.
20424 (expand_vec_cond_expr): Same.
20425 (expand_vec_series_expr): Same.
20426 (maybe_emit_atomic_exchange): Same.
20427 (maybe_emit_sync_lock_test_and_set): Same.
20428 (expand_atomic_compare_and_swap): Same.
20429 (expand_atomic_load): Same.
20430 (expand_atomic_store): Same.
20431 (maybe_emit_op): Same.
20432 (valid_multiword_target_p): Same.
20433 (create_integer_operand): Same.
20434 (maybe_legitimize_operand_same_code): Same.
20435 (maybe_legitimize_operand): Same.
20436 (create_convert_operand_from_type): Same.
20437 (can_reuse_operands_p): Same.
20438 (maybe_legitimize_operands): Same.
20439 (maybe_gen_insn): Same.
20440 (maybe_expand_insn): Same.
20441 (maybe_expand_jump_insn): Same.
20442 (expand_insn): Same.
20443 * optabs.h (create_expand_operand): Same.
20444 (create_fixed_operand): Same.
20445 (create_output_operand): Same.
20446 (create_input_operand): Same.
20447 (create_convert_operand_to): Same.
20448 (create_convert_operand_from): Same.
20450 * poly-int.h: Same.
20451 * predict.c (optimize_insn_for_speed_p): Same.
20452 (optimize_loop_for_size_p): Same.
20453 (optimize_loop_for_speed_p): Same.
20454 (optimize_loop_nest_for_speed_p): Same.
20455 (get_base_value): Same.
20456 (predicted_by_loop_heuristics_p): Same.
20457 (predict_extra_loop_exits): Same.
20458 (predict_loops): Same.
20459 (predict_paths_for_bb): Same.
20460 (predict_paths_leading_to): Same.
20461 (propagate_freq): Same.
20462 (pass_profile::execute): Same.
20464 * profile-count.c (profile_count::differs_from_p): Same.
20465 (profile_probability::differs_lot_from_p): Same.
20466 * profile-count.h: Same.
20467 * profile.c (branch_prob): Same.
20468 * regrename.c (free_chain_data): Same.
20469 (mark_conflict): Same.
20470 (create_new_chain): Same.
20471 (merge_overlapping_regs): Same.
20472 (init_rename_info): Same.
20473 (merge_chains): Same.
20474 (regrename_analyze): Same.
20475 (regrename_do_replace): Same.
20476 (scan_rtx_reg): Same.
20477 (record_out_operands): Same.
20478 (build_def_use): Same.
20479 * regrename.h: Same.
20481 * reload1.c (init_reload): Same.
20482 (maybe_fix_stack_asms): Same.
20483 (copy_reloads): Same.
20484 (count_pseudo): Same.
20485 (count_spilled_pseudo): Same.
20487 (find_reload_regs): Same.
20488 (select_reload_regs): Same.
20489 (spill_hard_reg): Same.
20490 (fixup_eh_region_note): Same.
20491 (set_reload_reg): Same.
20492 (allocate_reload_reg): Same.
20493 (compute_reload_subreg_offset): Same.
20494 (reload_adjust_reg_for_icode): Same.
20495 (emit_input_reload_insns): Same.
20496 (emit_output_reload_insns): Same.
20497 (do_input_reload): Same.
20498 (inherit_piecemeal_p): Same.
20500 * sanopt.c (maybe_get_dominating_check): Same.
20501 (maybe_optimize_ubsan_ptr_ifn): Same.
20502 (can_remove_asan_check): Same.
20503 (maybe_optimize_asan_check_ifn): Same.
20504 (sanopt_optimize_walker): Same.
20505 * sched-deps.c (add_dependence_list): Same.
20506 (chain_to_prev_insn): Same.
20507 (add_insn_mem_dependence): Same.
20508 (create_insn_reg_set): Same.
20509 (maybe_extend_reg_info_p): Same.
20510 (sched_analyze_reg): Same.
20511 (sched_analyze_1): Same.
20512 (get_implicit_reg_pending_clobbers): Same.
20513 (chain_to_prev_insn_p): Same.
20514 (deps_analyze_insn): Same.
20515 (deps_start_bb): Same.
20516 (sched_free_deps): Same.
20518 (init_deps_reg_last): Same.
20520 * sched-ebb.c: Same.
20521 * sched-int.h: Same.
20522 * sched-rgn.c (add_branch_dependences): Same.
20523 (concat_insn_mem_list): Same.
20525 (sched_rgn_compute_dependencies): Same.
20526 * sel-sched-ir.c (reset_target_context): Same.
20527 (copy_deps_context): Same.
20528 (init_id_from_df): Same.
20529 (has_dependence_p): Same.
20530 (change_loops_latches): Same.
20531 (bb_top_order_comparator): Same.
20532 (make_region_from_loop_preheader): Same.
20533 (sel_init_pipelining): Same.
20534 (get_loop_nest_for_rgn): Same.
20535 (make_regions_from_the_rest): Same.
20536 (sel_is_loop_preheader_p): Same.
20537 * sel-sched-ir.h (inner_loop_header_p): Same.
20538 (get_all_loop_exits): Same.
20539 * selftest.h: Same.
20540 * sese.c (sese_build_liveouts): Same.
20541 (sese_insert_phis_for_liveouts): Same.
20542 * sese.h (defined_in_sese_p): Same.
20543 * sreal.c (sreal::stream_out): Same.
20545 * streamer-hooks.h: Same.
20546 * target-globals.c (save_target_globals): Same.
20547 * target-globals.h: Same.
20548 * target.def: Same.
20550 * targhooks.c (default_has_ifunc_p): Same.
20551 (default_empty_mask_is_expensive): Same.
20552 (default_init_cost): Same.
20553 * targhooks.h: Same.
20555 * tree-affine.c (aff_combination_mult): Same.
20556 (aff_combination_expand): Same.
20557 (aff_combination_constant_multiple_p): Same.
20558 * tree-affine.h: Same.
20559 * tree-cfg.c (build_gimple_cfg): Same.
20560 (replace_loop_annotate_in_block): Same.
20561 (replace_uses_by): Same.
20563 (dump_cfg_stats): Same.
20564 (gimple_duplicate_sese_region): Same.
20565 (gimple_duplicate_sese_tail): Same.
20566 (move_block_to_fn): Same.
20567 (replace_block_vars_by_duplicates): Same.
20568 (move_sese_region_to_fn): Same.
20569 (print_loops_bb): Same.
20570 (print_loop): Same.
20571 (print_loops): Same.
20573 (debug_loops): Same.
20574 * tree-cfg.h: Same.
20575 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20576 (chrec_fold_multiply_poly_poly): Same.
20577 (chrec_evaluate): Same.
20578 (chrec_component_in_loop_num): Same.
20579 (reset_evolution_in_loop): Same.
20580 (is_multivariate_chrec): Same.
20581 (chrec_contains_symbols): Same.
20582 (nb_vars_in_chrec): Same.
20583 (chrec_convert_1): Same.
20584 (chrec_convert_aggressive): Same.
20585 * tree-chrec.h: Same.
20586 * tree-core.h: Same.
20587 * tree-data-ref.c (dump_data_dependence_relation): Same.
20588 (canonicalize_base_object_address): Same.
20589 (data_ref_compare_tree): Same.
20590 (prune_runtime_alias_test_list): Same.
20591 (get_segment_min_max): Same.
20592 (create_intersect_range_checks): Same.
20593 (conflict_fn_no_dependence): Same.
20594 (object_address_invariant_in_loop_p): Same.
20595 (analyze_ziv_subscript): Same.
20596 (analyze_siv_subscript_cst_affine): Same.
20597 (analyze_miv_subscript): Same.
20598 (analyze_overlapping_iterations): Same.
20599 (build_classic_dist_vector_1): Same.
20600 (add_other_self_distances): Same.
20601 (same_access_functions): Same.
20602 (build_classic_dir_vector): Same.
20603 (subscript_dependence_tester_1): Same.
20604 (subscript_dependence_tester): Same.
20605 (access_functions_are_affine_or_constant_p): Same.
20606 (get_references_in_stmt): Same.
20607 (loop_nest_has_data_refs): Same.
20608 (graphite_find_data_references_in_stmt): Same.
20609 (find_data_references_in_bb): Same.
20610 (get_base_for_alignment): Same.
20611 (find_loop_nest_1): Same.
20612 (find_loop_nest): Same.
20613 * tree-data-ref.h (dr_alignment): Same.
20614 (ddr_dependence_level): Same.
20615 * tree-if-conv.c (fold_build_cond_expr): Same.
20616 (add_to_predicate_list): Same.
20617 (add_to_dst_predicate_list): Same.
20618 (phi_convertible_by_degenerating_args): Same.
20619 (idx_within_array_bound): Same.
20620 (all_preds_critical_p): Same.
20621 (pred_blocks_visited_p): Same.
20622 (predicate_bbs): Same.
20623 (build_region): Same.
20624 (if_convertible_loop_p_1): Same.
20625 (is_cond_scalar_reduction): Same.
20626 (predicate_scalar_phi): Same.
20627 (remove_conditions_and_labels): Same.
20628 (combine_blocks): Same.
20629 (version_loop_for_if_conversion): Same.
20630 (versionable_outer_loop_p): Same.
20631 (ifcvt_local_dce): Same.
20632 (tree_if_conversion): Same.
20633 (pass_if_conversion::gate): Same.
20634 * tree-if-conv.h: Same.
20635 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20636 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20638 (stmt_has_scalar_dependences_outside_loop): Same.
20639 (copy_loop_before): Same.
20640 (create_bb_after_loop): Same.
20641 (const_with_all_bytes_same): Same.
20642 (generate_memset_builtin): Same.
20643 (generate_memcpy_builtin): Same.
20644 (destroy_loop): Same.
20645 (build_rdg_partition_for_vertex): Same.
20646 (compute_access_range): Same.
20647 (data_ref_segment_size): Same.
20648 (latch_dominated_by_data_ref): Same.
20649 (compute_alias_check_pairs): Same.
20650 (fuse_memset_builtins): Same.
20651 (finalize_partitions): Same.
20652 (find_seed_stmts_for_distribution): Same.
20653 (prepare_perfect_loop_nest): Same.
20654 * tree-parloops.c (lambda_transform_legal_p): Same.
20655 (loop_parallel_p): Same.
20656 (reduc_stmt_res): Same.
20657 (add_field_for_name): Same.
20658 (create_call_for_reduction_1): Same.
20659 (replace_uses_in_bb_by): Same.
20660 (transform_to_exit_first_loop_alt): Same.
20661 (try_transform_to_exit_first_loop_alt): Same.
20662 (transform_to_exit_first_loop): Same.
20664 (gen_parallel_loop): Same.
20665 (gather_scalar_reductions): Same.
20666 (get_omp_data_i_param): Same.
20667 (try_create_reduction_list): Same.
20668 (oacc_entry_exit_single_gang): Same.
20669 (parallelize_loops): Same.
20670 * tree-pass.h: Same.
20671 * tree-predcom.c (determine_offset): Same.
20672 (last_always_executed_block): Same.
20673 (split_data_refs_to_components): Same.
20674 (suitable_component_p): Same.
20675 (valid_initializer_p): Same.
20676 (find_looparound_phi): Same.
20677 (insert_looparound_copy): Same.
20678 (add_looparound_copies): Same.
20679 (determine_roots_comp): Same.
20680 (predcom_tmp_var): Same.
20681 (initialize_root_vars): Same.
20682 (initialize_root_vars_store_elim_1): Same.
20683 (initialize_root_vars_store_elim_2): Same.
20684 (finalize_eliminated_stores): Same.
20685 (initialize_root_vars_lm): Same.
20686 (remove_stmt): Same.
20687 (determine_unroll_factor): Same.
20688 (execute_pred_commoning_cbck): Same.
20689 (base_names_in_chain_on): Same.
20690 (combine_chains): Same.
20691 (pcom_stmt_dominates_stmt_p): Same.
20692 (try_combine_chains): Same.
20693 (prepare_initializers_chain_store_elim): Same.
20694 (prepare_initializers_chain): Same.
20695 (prepare_initializers): Same.
20696 (prepare_finalizers_chain): Same.
20697 (prepare_finalizers): Same.
20698 (insert_init_seqs): Same.
20699 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20700 (compute_overall_effect_of_inner_loop): Same.
20701 (add_to_evolution_1): Same.
20702 (add_to_evolution): Same.
20703 (follow_ssa_edge_binary): Same.
20704 (follow_ssa_edge_expr): Same.
20705 (backedge_phi_arg_p): Same.
20706 (follow_ssa_edge_in_condition_phi_branch): Same.
20707 (follow_ssa_edge_in_condition_phi): Same.
20708 (follow_ssa_edge_inner_loop_phi): Same.
20709 (follow_ssa_edge): Same.
20710 (analyze_evolution_in_loop): Same.
20711 (analyze_initial_condition): Same.
20712 (interpret_loop_phi): Same.
20713 (interpret_condition_phi): Same.
20714 (interpret_rhs_expr): Same.
20715 (interpret_expr): Same.
20716 (interpret_gimple_assign): Same.
20717 (analyze_scalar_evolution_1): Same.
20718 (analyze_scalar_evolution): Same.
20719 (analyze_scalar_evolution_for_address_of): Same.
20720 (get_instantiated_value_entry): Same.
20721 (loop_closed_phi_def): Same.
20722 (instantiate_scev_name): Same.
20723 (instantiate_scev_poly): Same.
20724 (instantiate_scev_binary): Same.
20725 (instantiate_scev_convert): Same.
20726 (instantiate_scev_not): Same.
20727 (instantiate_scev_r): Same.
20728 (instantiate_scev): Same.
20729 (resolve_mixers): Same.
20730 (initialize_scalar_evolutions_analyzer): Same.
20731 (scev_reset_htab): Same.
20732 (scev_reset): Same.
20733 (derive_simple_iv_with_niters): Same.
20734 (simple_iv_with_niters): Same.
20735 (expression_expensive_p): Same.
20736 (final_value_replacement_loop): Same.
20737 * tree-scalar-evolution.h (block_before_loop): Same.
20738 * tree-ssa-address.h: Same.
20739 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20740 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20741 (record_edge_info): Same.
20742 * tree-ssa-live.c (var_map_base_fini): Same.
20743 (remove_unused_locals): Same.
20744 * tree-ssa-live.h: Same.
20745 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20746 (pass_ch_vect::execute): Same.
20747 (pass_ch::process_loop_p): Same.
20748 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20749 (movement_possibility): Same.
20750 (outermost_invariant_loop): Same.
20752 (determine_max_movement): Same.
20753 (invariantness_dom_walker::before_dom_children): Same.
20754 (move_computations): Same.
20755 (may_move_till): Same.
20756 (force_move_till_op): Same.
20757 (force_move_till): Same.
20758 (memref_free): Same.
20759 (record_mem_ref_loc): Same.
20760 (set_ref_stored_in_loop): Same.
20761 (mark_ref_stored): Same.
20762 (sort_bbs_in_loop_postorder_cmp): Same.
20763 (sort_locs_in_loop_postorder_cmp): Same.
20764 (analyze_memory_references): Same.
20765 (mem_refs_may_alias_p): Same.
20766 (find_ref_loc_in_loop_cmp): Same.
20767 (rewrite_mem_ref_loc::operator): Same.
20768 (first_mem_ref_loc_1::operator): Same.
20769 (sm_set_flag_if_changed::operator): Same.
20770 (execute_sm_if_changed_flag_set): Same.
20771 (execute_sm): Same.
20772 (hoist_memory_references): Same.
20773 (ref_always_accessed::operator): Same.
20774 (refs_independent_p): Same.
20775 (record_dep_loop): Same.
20776 (ref_indep_loop_p_1): Same.
20777 (ref_indep_loop_p): Same.
20778 (can_sm_ref_p): Same.
20779 (find_refs_for_sm): Same.
20780 (loop_suitable_for_sm): Same.
20781 (store_motion_loop): Same.
20782 (store_motion): Same.
20783 (fill_always_executed_in): Same.
20784 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20785 (estimated_unrolled_size): Same.
20786 (loop_edge_to_cancel): Same.
20787 (remove_exits_and_undefined_stmts): Same.
20788 (remove_redundant_iv_tests): Same.
20789 (unloop_loops): Same.
20790 (estimated_peeled_sequence_size): Same.
20791 (try_peel_loop): Same.
20792 (canonicalize_loop_induction_variables): Same.
20793 (canonicalize_induction_variables): Same.
20794 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20796 (stmt_after_inc_pos): Same.
20797 (contains_abnormal_ssa_name_p): Same.
20798 (niter_for_exit): Same.
20801 (find_givs_in_bb): Same.
20802 (find_induction_variables): Same.
20803 (find_interesting_uses_cond): Same.
20804 (outermost_invariant_loop_for_expr): Same.
20805 (idx_find_step): Same.
20806 (add_candidate_1): Same.
20807 (add_iv_candidate_derived_from_uses): Same.
20808 (alloc_use_cost_map): Same.
20809 (prepare_decl_rtl): Same.
20810 (generic_predict_doloop_p): Same.
20811 (computation_cost): Same.
20812 (determine_common_wider_type): Same.
20813 (get_computation_aff_1): Same.
20814 (get_use_type): Same.
20815 (determine_group_iv_cost_address): Same.
20817 (difference_cannot_overflow_p): Same.
20818 (may_eliminate_iv): Same.
20819 (determine_set_costs): Same.
20820 (cheaper_cost_pair): Same.
20821 (compare_cost_pair): Same.
20822 (iv_ca_cand_for_group): Same.
20823 (iv_ca_recount_cost): Same.
20824 (iv_ca_set_remove_invs): Same.
20825 (iv_ca_set_no_cp): Same.
20826 (iv_ca_set_add_invs): Same.
20827 (iv_ca_set_cp): Same.
20828 (iv_ca_add_group): Same.
20829 (iv_ca_cost): Same.
20830 (iv_ca_compare_deps): Same.
20831 (iv_ca_delta_reverse): Same.
20832 (iv_ca_delta_commit): Same.
20833 (iv_ca_cand_used_p): Same.
20834 (iv_ca_delta_free): Same.
20836 (iv_ca_free): Same.
20837 (iv_ca_dump): Same.
20838 (iv_ca_extend): Same.
20839 (iv_ca_narrow): Same.
20840 (iv_ca_prune): Same.
20841 (cheaper_cost_with_cand): Same.
20842 (iv_ca_replace): Same.
20843 (try_add_cand_for): Same.
20844 (get_initial_solution): Same.
20845 (try_improve_iv_set): Same.
20846 (find_optimal_iv_set_1): Same.
20847 (create_new_iv): Same.
20848 (rewrite_use_compare): Same.
20849 (remove_unused_ivs): Same.
20850 (determine_scaling_factor): Same.
20851 * tree-ssa-loop-ivopts.h: Same.
20852 * tree-ssa-loop-manip.c (create_iv): Same.
20853 (compute_live_loop_exits): Same.
20854 (add_exit_phi): Same.
20855 (add_exit_phis): Same.
20856 (find_uses_to_rename_use): Same.
20857 (find_uses_to_rename_def): Same.
20858 (find_uses_to_rename_in_loop): Same.
20859 (rewrite_into_loop_closed_ssa): Same.
20860 (check_loop_closed_ssa_bb): Same.
20861 (split_loop_exit_edge): Same.
20862 (ip_end_pos): Same.
20863 (ip_normal_pos): Same.
20864 (copy_phi_node_args): Same.
20865 (gimple_duplicate_loop_to_header_edge): Same.
20866 (can_unroll_loop_p): Same.
20867 (determine_exit_conditions): Same.
20868 (scale_dominated_blocks_in_loop): Same.
20869 (niter_for_unrolled_loop): Same.
20870 (tree_transform_and_unroll_loop): Same.
20871 (rewrite_all_phi_nodes_with_iv): Same.
20872 * tree-ssa-loop-manip.h: Same.
20873 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20874 (number_of_iterations_ne): Same.
20875 (assert_no_overflow_lt): Same.
20876 (assert_loop_rolls_lt): Same.
20877 (number_of_iterations_lt): Same.
20878 (adjust_cond_for_loop_until_wrap): Same.
20879 (tree_simplify_using_condition): Same.
20880 (simplify_using_initial_conditions): Same.
20881 (simplify_using_outer_evolutions): Same.
20882 (loop_only_exit_p): Same.
20883 (ssa_defined_by_minus_one_stmt_p): Same.
20884 (number_of_iterations_popcount): Same.
20885 (number_of_iterations_exit): Same.
20886 (find_loop_niter): Same.
20887 (finite_loop_p): Same.
20888 (chain_of_csts_start): Same.
20889 (get_val_for): Same.
20890 (loop_niter_by_eval): Same.
20891 (derive_constant_upper_bound_ops): Same.
20892 (do_warn_aggressive_loop_optimizations): Same.
20893 (record_estimate): Same.
20894 (get_cst_init_from_scev): Same.
20895 (record_nonwrapping_iv): Same.
20896 (idx_infer_loop_bounds): Same.
20897 (infer_loop_bounds_from_ref): Same.
20898 (infer_loop_bounds_from_array): Same.
20899 (infer_loop_bounds_from_pointer_arith): Same.
20900 (infer_loop_bounds_from_signedness): Same.
20901 (bound_index): Same.
20902 (discover_iteration_bound_by_body_walk): Same.
20903 (maybe_lower_iteration_bound): Same.
20904 (estimate_numbers_of_iterations): Same.
20905 (estimated_loop_iterations): Same.
20906 (estimated_loop_iterations_int): Same.
20907 (max_loop_iterations): Same.
20908 (max_loop_iterations_int): Same.
20909 (likely_max_loop_iterations): Same.
20910 (likely_max_loop_iterations_int): Same.
20911 (estimated_stmt_executions_int): Same.
20912 (max_stmt_executions): Same.
20913 (likely_max_stmt_executions): Same.
20914 (estimated_stmt_executions): Same.
20915 (stmt_dominates_stmt_p): Same.
20916 (nowrap_type_p): Same.
20917 (loop_exits_before_overflow): Same.
20918 (scev_var_range_cant_overflow): Same.
20919 (scev_probably_wraps_p): Same.
20920 (free_numbers_of_iterations_estimates): Same.
20921 * tree-ssa-loop-niter.h: Same.
20922 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
20923 (idx_analyze_ref): Same.
20924 (analyze_ref): Same.
20925 (gather_memory_references_ref): Same.
20926 (mark_nontemporal_store): Same.
20927 (emit_mfence_after_loop): Same.
20928 (may_use_storent_in_loop_p): Same.
20929 (mark_nontemporal_stores): Same.
20930 (should_unroll_loop_p): Same.
20931 (volume_of_dist_vector): Same.
20932 (add_subscript_strides): Same.
20933 (self_reuse_distance): Same.
20934 (insn_to_prefetch_ratio_too_small_p): Same.
20935 * tree-ssa-loop-split.c (split_at_bb_p): Same.
20936 (patch_loop_exit): Same.
20937 (find_or_create_guard_phi): Same.
20938 (easy_exit_values): Same.
20939 (connect_loop_phis): Same.
20940 (connect_loops): Same.
20941 (compute_new_first_bound): Same.
20942 (split_loop): Same.
20943 (tree_ssa_split_loops): Same.
20944 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
20945 (is_maybe_undefined): Same.
20946 (tree_may_unswitch_on): Same.
20947 (simplify_using_entry_checks): Same.
20948 (tree_unswitch_single_loop): Same.
20949 (tree_unswitch_loop): Same.
20950 (tree_unswitch_outer_loop): Same.
20951 (empty_bb_without_guard_p): Same.
20952 (used_outside_loop_p): Same.
20953 (get_vop_from_header): Same.
20954 (hoist_guard): Same.
20955 * tree-ssa-loop.c (gate_oacc_kernels): Same.
20956 (get_lsm_tmp_name): Same.
20957 * tree-ssa-loop.h: Same.
20958 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
20959 (build_and_add_sum): Same.
20960 (no_side_effect_bb): Same.
20962 (linearize_expr): Same.
20963 (should_break_up_subtract): Same.
20964 (linearize_expr_tree): Same.
20965 * tree-ssa-scopedtables.c: Same.
20966 * tree-ssa-scopedtables.h: Same.
20967 * tree-ssa-structalias.c (condense_visit): Same.
20968 (label_visit): Same.
20969 (dump_pred_graph): Same.
20970 (perform_var_substitution): Same.
20971 (move_complex_constraints): Same.
20972 (remove_preds_and_fake_succs): Same.
20973 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
20974 (determine_bb_domination_status): Same.
20975 (duplicate_thread_path): Same.
20976 (thread_through_all_blocks): Same.
20977 * tree-ssa-threadupdate.h: Same.
20978 * tree-streamer-in.c (streamer_read_string_cst): Same.
20979 (input_identifier): Same.
20980 (unpack_ts_type_common_value_fields): Same.
20981 (unpack_ts_block_value_fields): Same.
20982 (unpack_ts_translation_unit_decl_value_fields): Same.
20983 (unpack_ts_omp_clause_value_fields): Same.
20984 (streamer_read_tree_bitfields): Same.
20985 (streamer_alloc_tree): Same.
20986 (lto_input_ts_common_tree_pointers): Same.
20987 (lto_input_ts_vector_tree_pointers): Same.
20988 (lto_input_ts_poly_tree_pointers): Same.
20989 (lto_input_ts_complex_tree_pointers): Same.
20990 (lto_input_ts_decl_minimal_tree_pointers): Same.
20991 (lto_input_ts_decl_common_tree_pointers): Same.
20992 (lto_input_ts_decl_non_common_tree_pointers): Same.
20993 (lto_input_ts_decl_with_vis_tree_pointers): Same.
20994 (lto_input_ts_field_decl_tree_pointers): Same.
20995 (lto_input_ts_function_decl_tree_pointers): Same.
20996 (lto_input_ts_type_common_tree_pointers): Same.
20997 (lto_input_ts_type_non_common_tree_pointers): Same.
20998 (lto_input_ts_list_tree_pointers): Same.
20999 (lto_input_ts_vec_tree_pointers): Same.
21000 (lto_input_ts_exp_tree_pointers): Same.
21001 (lto_input_ts_block_tree_pointers): Same.
21002 (lto_input_ts_binfo_tree_pointers): Same.
21003 (lto_input_ts_constructor_tree_pointers): Same.
21004 (lto_input_ts_omp_clause_tree_pointers): Same.
21005 (streamer_read_tree_body): Same.
21006 * tree-streamer.h: Same.
21007 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21008 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21009 (vect_analyze_possibly_independent_ddr): Same.
21010 (vect_analyze_data_ref_dependence): Same.
21011 (vect_compute_data_ref_alignment): Same.
21012 (vect_enhance_data_refs_alignment): Same.
21013 (vect_analyze_data_ref_access): Same.
21014 (vect_check_gather_scatter): Same.
21015 (vect_find_stmt_data_reference): Same.
21016 (vect_create_addr_base_for_vector_ref): Same.
21017 (vect_setup_realignment): Same.
21018 (vect_supportable_dr_alignment): Same.
21019 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21020 (adjust_phi_and_debug_stmts): Same.
21021 (vect_set_loop_mask): Same.
21022 (add_preheader_seq): Same.
21023 (vect_maybe_permute_loop_masks): Same.
21024 (vect_set_loop_masks_directly): Same.
21025 (vect_set_loop_condition_masked): Same.
21026 (vect_set_loop_condition_unmasked): Same.
21027 (slpeel_duplicate_current_defs_from_edges): Same.
21028 (slpeel_add_loop_guard): Same.
21029 (slpeel_can_duplicate_loop_p): Same.
21030 (create_lcssa_for_virtual_phi): Same.
21032 (vect_update_ivs_after_vectorizer): Same.
21033 (vect_gen_vector_loop_niters_mult_vf): Same.
21034 (slpeel_update_phi_nodes_for_loops): Same.
21035 (slpeel_update_phi_nodes_for_guard1): Same.
21036 (find_guard_arg): Same.
21037 (slpeel_update_phi_nodes_for_guard2): Same.
21038 (slpeel_update_phi_nodes_for_lcssa): Same.
21039 (vect_do_peeling): Same.
21040 (vect_create_cond_for_alias_checks): Same.
21041 (vect_loop_versioning): Same.
21042 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21043 (vect_inner_phi_in_double_reduction_p): Same.
21044 (vect_analyze_scalar_cycles_1): Same.
21045 (vect_fixup_scalar_cycles_with_patterns): Same.
21046 (vect_get_loop_niters): Same.
21047 (bb_in_loop_p): Same.
21048 (vect_get_max_nscalars_per_iter): Same.
21049 (vect_verify_full_masking): Same.
21050 (vect_compute_single_scalar_iteration_cost): Same.
21051 (vect_analyze_loop_form_1): Same.
21052 (vect_analyze_loop_form): Same.
21053 (vect_active_double_reduction_p): Same.
21054 (vect_analyze_loop_operations): Same.
21055 (neutral_op_for_slp_reduction): Same.
21056 (vect_is_simple_reduction): Same.
21057 (vect_model_reduction_cost): Same.
21058 (get_initial_def_for_reduction): Same.
21059 (get_initial_defs_for_reduction): Same.
21060 (vect_create_epilog_for_reduction): Same.
21061 (vectorize_fold_left_reduction): Same.
21062 (vectorizable_reduction): Same.
21063 (vectorizable_induction): Same.
21064 (vectorizable_live_operation): Same.
21065 (loop_niters_no_overflow): Same.
21066 (vect_get_loop_mask): Same.
21067 (vect_transform_loop_stmt): Same.
21068 (vect_transform_loop): Same.
21069 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21070 (vect_determine_precisions): Same.
21071 (vect_pattern_recog_1): Same.
21072 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21073 * tree-vect-stmts.c (stmt_vectype): Same.
21074 (process_use): Same.
21075 (vect_init_vector_1): Same.
21076 (vect_truncate_gather_scatter_offset): Same.
21077 (get_group_load_store_type): Same.
21078 (vect_build_gather_load_calls): Same.
21079 (vect_get_strided_load_store_ops): Same.
21080 (vectorizable_simd_clone_call): Same.
21081 (vectorizable_store): Same.
21082 (permute_vec_elements): Same.
21083 (vectorizable_load): Same.
21084 (vect_transform_stmt): Same.
21085 (supportable_widening_operation): Same.
21086 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21087 (vec_info::free_stmt_vec_info): Same.
21088 (vect_free_loop_info_assumptions): Same.
21089 (vect_loop_vectorized_call): Same.
21090 (set_uid_loop_bbs): Same.
21091 (vectorize_loops): Same.
21092 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21093 * tree.c (add_tree_to_fld_list): Same.
21094 (fld_type_variant_equal_p): Same.
21095 (fld_decl_context): Same.
21096 (fld_incomplete_type_of): Same.
21097 (free_lang_data_in_binfo): Same.
21098 (need_assembler_name_p): Same.
21099 (find_decls_types_r): Same.
21100 (get_eh_types_for_runtime): Same.
21101 (find_decls_types_in_eh_region): Same.
21102 (find_decls_types_in_node): Same.
21103 (assign_assembler_name_if_needed): Same.
21104 * value-prof.c (stream_out_histogram_value): Same.
21105 * value-prof.h: Same.
21106 * var-tracking.c (use_narrower_mode): Same.
21107 (prepare_call_arguments): Same.
21108 (vt_expand_loc_callback): Same.
21109 (resolve_expansions_pending_recursion): Same.
21110 (vt_expand_loc): Same.
21111 * varasm.c (const_hash_1): Same.
21112 (compare_constant): Same.
21113 (tree_output_constant_def): Same.
21114 (simplify_subtraction): Same.
21115 (get_pool_constant): Same.
21116 (output_constant_pool_2): Same.
21117 (output_constant_pool_1): Same.
21118 (mark_constants_in_pattern): Same.
21119 (mark_constant_pool): Same.
21120 (get_section_anchor): Same.
21121 * vr-values.c (compare_range_with_value): Same.
21122 (vr_values::extract_range_from_phi_node): Same.
21123 * vr-values.h: Same.
21124 * web.c (unionfind_union): Same.
21125 * wide-int.h: Same.
21127 2019-07-09 Martin Sebor <msebor@redhat.com>
21130 * align.h: Change class-key from class to struct and vice versa
21131 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21132 * alloc-pool.h: Same.
21133 * asan.c (shadow_mem_size): Same.
21134 * auto-profile.c: Same.
21135 * basic-block.h: Same.
21137 * cfgexpand.c (set_rtl): Same.
21138 (expand_one_stack_var_at): Same.
21139 * cfghooks.h: Same.
21142 * config/i386/i386.h: Same.
21143 * df-problems.c (df_print_bb_index): Same.
21145 * df.h (df_single_use): Same.
21146 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21147 (layout::annotation_line_showed_range_p): Same.
21148 (get_printed_columns): Same.
21149 (correction::ensure_terminated): Same.
21150 (line_corrections::~line_corrections): Same.
21153 * dump-context.h: Same.
21154 * dumpfile.h: Same.
21155 * dwarf2out.c: Same.
21156 * edit-context.c: Same.
21157 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21159 * function.c (assign_stack_local): Same.
21160 * function.h: Same.
21162 * gcov.c (block_info::block_info): Same.
21163 * genattrtab.c: Same.
21164 * genextract.c: Same.
21165 * genmatch.c (comparison_code_p): Same.
21166 (id_base::id_base): Same.
21167 (decision_tree::print): Same.
21168 * genoutput.c: Same.
21169 * genpreds.c (write_one_predicate_function): Same.
21170 * genrecog.c (validate_pattern): Same.
21171 (find_operand_positions): Same.
21172 (optimize_subroutine_group): Same.
21173 (merge_pattern_transition::merge_pattern_transition): Same.
21174 (merge_pattern_info::merge_pattern_info): Same.
21175 (merge_state_result::merge_state_result): Same.
21176 (merge_into_state): Same.
21177 * gensupport.c: Same.
21178 * gensupport.h: Same.
21179 * ggc-common.c (init_ggc_heuristics): Same.
21180 * ggc-tests.c (test_union): Same.
21181 * gimple-loop-interchange.cc (dump_induction): Same.
21182 * gimple-loop-versioning.cc: Same.
21183 * gimple-match.h (gimple_match_cond::any_else): Same.
21184 * gimple-ssa-backprop.c: Same.
21185 * gimple-ssa-sprintf.c: Same.
21186 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21188 (store_immediate_info::store_immediate_info): Same.
21189 (merged_store_group::apply_stores): Same.
21190 (get_location_for_stmts): Same.
21191 * gimple-ssa-strength-reduction.c: Same.
21192 * gimple-ssa-warn-alloca.c: Same.
21193 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21194 * godump.c (go_type_decl): Same.
21195 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21196 * hash-map.h: Same.
21197 * hash-set-tests.c (test_set_of_strings): Same.
21198 * hsa-brig.c: Same.
21199 * hsa-common.h: Same.
21200 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21201 * input.c (assert_loceq): Same.
21204 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21205 * ipa-fnsummary.h: Same.
21206 * ipa-inline.h: Same.
21207 * ipa-prop.h: Same.
21208 * ipa-split.c (visit_bb): Same.
21209 * ira-int.h (minmax_set_iter_next): Same.
21210 * loop-invariant.c: Same.
21212 * lra-eliminations.c: Same.
21214 * lra-lives.c (mark_regno_dead): Same.
21215 * lra-remat.c: Same.
21216 * lra-spills.c: Same.
21217 * lto-streamer.h: Same.
21218 * mem-stats.h: Same.
21219 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21220 * omp-low.c (omp_clause_aligned_alignment): Same.
21221 * optabs-query.h (get_vcond_eq_icode): Same.
21223 * opts.c (wrap_help): Same.
21224 * poly-int.h: Same.
21225 * predict.c (predict_paths_leading_to_edge): Same.
21226 * pretty-print.h: Same.
21227 * profile-count.h: Same.
21229 * read-rtl-function.c: Same.
21232 * regrename.c: Same.
21233 * regrename.h: Same.
21235 * rtl-iter.h: Same.
21236 * rtl.h (costs_add_n_insns): Same.
21238 * sched-int.h: Same.
21239 * sel-sched-ir.h: Same.
21240 * selftest.h: Same.
21241 * sese.h (vec_find): Same.
21243 * target-globals.h: Same.
21244 * tree-affine.c (aff_combination_find_elt): Same.
21245 * tree-affine.h: Same.
21246 * tree-data-ref.h: Same.
21247 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21248 * tree-predcom.c: Same.
21249 * tree-scalar-evolution.c (find_var_scev_info): Same.
21250 * tree-ssa-alias.h: Same.
21251 * tree-ssa-ccp.c: Same.
21252 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21253 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21254 (rewrite_mem_refs): Same.
21255 (execute_sm_if_changed): Same.
21256 (hoist_memory_references): Same.
21257 * tree-ssa-loop-ivopts.c (operator<=): Same.
21258 * tree-ssa-loop.h: Same.
21259 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21260 * tree-ssa-structalias.c: Same.
21261 * tree-switch-conversion.h (cluster::cluster): Same.
21262 (simple_cluster::simple_cluster): Same.
21263 * tree-vect-patterns.c (type_conversion_p): Same.
21264 * tree-vectorizer.c (dump_stmt_cost): Same.
21265 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21266 * tree.c (protected_set_expr_location): Same.
21267 * tree.h (desired_pro_or_demotion_p): Same.
21268 (fndecl_built_in_p): Same.
21269 * unique-ptr-tests.cc: Same.
21270 * var-tracking.c (delete_variable_part): Same.
21271 * varasm.c (assemble_real): Same.
21272 (tree_output_constant_def): Same.
21274 * wide-int-bitmask.h: Same.
21275 * wide-int.h (decompose): Same.
21277 2019-07-09 Richard Biener <rguenther@suse.de>
21279 PR tree-optimization/91114
21280 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21281 find a vector type isn't fatal.
21283 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21285 * config/aarch64/aarch64-simd.md
21286 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21287 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21288 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21289 (*aarch64_crypto_aese_fused,
21290 *aarch64_crypto_aesd_fused): Update to new definition.
21291 * config/aarch64/aarch64.c
21292 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21294 2019-07-09 Richard Biener <rguenther@suse.de>
21296 * gimple-match.h (gimple_match_op::resimplify): New.
21297 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21298 gimple_resimplify4, gimple_resimplify5): Remove.
21299 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21300 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21302 (gimple_match_op::resimplify): New.
21303 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21304 according to availability. Use gimple_match_op::resimplify.
21306 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21308 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21310 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21312 * config/arm/crypto.md:
21313 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21314 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21315 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21316 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21318 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21319 * config/arm/aarch-common-protos.h
21320 (aarch_crypto_can_dual_issue): Remove.
21321 * config/arm/aarch-common.c
21322 (aarch_crypto_can_dual_issue): Likewise.
21323 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21324 * config/arm/cortex-a53.md: Likewise.
21325 * config/arm/cortex-a57.md: Likewise.
21326 * config/arm/iterators.md:
21327 (CRYPTO_BINARY): Redefine.
21328 (CRYPTO_UNARY): Removed.
21329 (CRYPTO_AES, CRYPTO_AESMC): New.
21331 2019-07-09 Richard Biener <rguenther@suse.de>
21333 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21334 (vn_reference_lookup_3): If the main ref has no access path recorded
21335 but orig_ref has use it to do access-path based disambiguation.
21336 (vn_reference_lookup_pieces): Adjust.
21337 (vn_reference_lookup): Pass down original ref if we valueized.
21339 2019-07-09 Martin Liska <mliska@suse.cz>
21341 * doc/extend.texi: Document influence on loop
21344 2019-07-09 Martin Liska <mliska@suse.cz>
21346 * lto-compress.c (lto_normalized_zstd_level): Do not use
21347 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21348 of libzstd. One can use 0 as a default compression level.
21350 2019-07-09 Martin Liska <mliska@suse.cz>
21352 * doc/invoke.texi: Add link from -fprofile-dir option.
21353 Use better wording for 'gcno filename'.
21355 2019-07-08 Martin Sebor <msebor@redhat.com>
21357 PR middle-end/71924
21358 PR middle-end/90549
21359 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21361 (args_loc_t): New type.
21362 (args_loc_t, locmap_t): same.
21363 (diag_returned_locals): New function.
21364 (is_addr_local): Same.
21365 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21366 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21367 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21369 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21371 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21372 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21373 and casts in offset when different, both through gimple stmts
21374 and through trees. Rewritten using loops to minimize code duplication
21377 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21379 * emit-rtl.c (set_insn_locations): New function moved from...
21380 * function.c (set_insn_locations): ...here.
21381 * ira-emit.c (emit_moves): Propagate location of the first instruction
21382 to the inserted move instructions.
21383 * reg-stack.c (compensate_edge): Set the location if the sequence is
21384 inserted on the edge.
21385 * rtl.h (set_insn_locations): Declare.
21387 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21389 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21390 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21393 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21395 PR rtl-optimization/88233
21396 * common.opt (fsplit-wide-types-early): New option.
21397 * common/config/rs6000/rs6000-common.c
21398 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21400 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21401 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21402 flag_split_wide_types_early.
21403 (pass_data_lower_subreg3): New.
21404 (pass_lower_subreg3): New.
21405 (make_pass_lower_subreg3): New.
21406 * passes.def (pass_lower_subreg2): Move after the loop passes.
21407 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21408 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21409 the pass pipeline; its previous place is taken by ...
21410 (make_pass_lower_subreg3): ... this.
21412 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21414 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21415 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21417 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21419 * config/s390/constraints.md: Add new jsc constraint.
21420 * config/s390/predicates.md: New predicates.
21421 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21422 * config/s390/s390.c (s390_valid_shift_count): New function.
21423 (print_shift_count_operand): Use s390_valid_shift_count.
21424 (print_operand): Likewise.
21425 * config/s390/s390.md: Use new predicate.
21426 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21427 * config/s390/vector.md: Use new predicate.
21429 2019-07-08 Andrew Waterman <andrew@sifive.com>
21430 Jim Wilson <jimw@sifive.com>
21432 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21433 bitsize instead of BITS_PER_WORD.
21435 2019-07-08 Martin Liska <mliska@suse.cz>
21437 * collect2.c (defined): Revert to before r254460.
21438 (scan_prog_file): Revert to before r254460.
21440 2019-07-08 Richard Biener <rguenther@suse.de>
21442 PR tree-optimization/83518
21443 * tree-ssa-sccvn.c: Include splay-tree.h.
21444 (struct pd_range, struct pd_data): New.
21445 (struct vn_walk_cb_data): Add data to track partial definitions.
21446 (vn_walk_cb_data::~vn_walk_cb_data): New.
21447 (vn_walk_cb_data::push_partial_def): New.
21448 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21449 (vn_reference_lookup_2): When partial defs are registered give up.
21450 (vn_reference_lookup_3): Track partial defs for memset and
21451 constructor zeroing and for defs from constants.
21453 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21455 * doc/install.texi (bootstrap-Og): Document.
21457 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21459 * config/riscv/pic.md (*local_pic_load_s<mode>)
21460 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21461 referenced by <mode>, giving...
21462 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21463 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21464 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21465 use <X:MODE> for the mode attribute.
21467 2019-07-07 Jeff Law <law@redhat.com>
21469 PR tree-optimization/91090
21470 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21471 in handling of ranges to simplify switch statements.
21473 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21475 * config/darwin.c (darwin_override_options): Make a final check on PIC
21478 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21480 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21481 on for kernel code.
21483 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21486 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21487 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21488 instead of matching them to "l" output operands.
21490 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21492 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21493 and check whether addr.reg is nonnull before using it.
21495 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21497 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21498 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21499 variable(s). For conditional lastprivate look through outer
21500 GIMPLE_OMP_SCAN context.
21501 (lower_omp_1): For conditional lastprivate look through outer
21502 GIMPLE_OMP_SCAN context.
21504 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21505 member to combined_into_simd_safelen1.
21506 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21507 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21508 clauses if ctx->combined_into_simd_safelen1 put statements after the
21509 predicate conditionalized block rather than into it.
21511 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21513 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21515 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21516 Make the choice of <mode> explicit, giving...
21517 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21519 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21521 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21522 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21524 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21525 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21526 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21527 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21528 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21529 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21530 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21531 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21532 (*avx512f_scatterdi<mode>): Likewise.
21533 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21535 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21537 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21538 specify the mode iterator referenced by <mode>, giving...
21539 (*push1_h8300hs_<QHI:mode>): ...this.
21541 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21543 * config/gcn/gcn-valu.md
21544 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21545 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21546 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21547 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21548 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21549 but using the _exec comparison patterns.
21550 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21551 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21552 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21553 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21554 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21555 but using the _exec comparison patterns.
21557 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21559 * config/arm/sync.md
21560 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21561 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21562 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21563 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21564 <SIDI:cas_cmp_str>.
21566 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21568 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21569 (maybe_lookup_ctx): Add forward declaration.
21570 (omp_find_scan): Likewise. Walk into body of simd if composited
21571 with worksharing loop.
21572 (scan_omp_simd_scan): New function.
21573 (scan_omp_1_stmt): Call it.
21574 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21575 ctx->for_simd_scan_phase.
21576 (lower_rec_input_clauses): Do much less work for inscan reductions
21577 in ctx->for_simd_scan_phase is_simd regions.
21578 (lower_omp_scan): Set is_simd also on simd constructs composited
21579 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21580 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21581 emit their body after in simd constructs composited with worksharing
21583 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21585 * omp-low.c (omp_find_scan): Make static.
21586 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21587 the second loop, var2 represents the first partial sum and so needs
21588 to go before rprivb[ivar].
21590 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21592 * config/rs6000/rs6000-logue.c: Remove unused code.
21594 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21596 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21598 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21601 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21602 check with a frame laid out check.
21604 2019-07-05 Richard Biener <rguenther@suse.de>
21606 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21607 when comparing against a store with possibly the same value.
21609 2019-07-05 Richard Biener <rguenther@suse.de>
21611 PR tree-optimization/91091
21612 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21613 (walk_non_aliased_vuses): Likewise.
21614 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21615 (get_continuation_for_phi): New tbaa_p parameter and pass
21617 (walk_non_aliased_vuses): Likewise.
21618 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21619 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21620 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21622 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21623 (adjust_offsets_for_equal_base_address): New function.
21624 (vn_reference_lookup_3): Use it to catch more base equivalences.
21625 Handle and pass down tbaa_p flag.
21626 (vn_reference_lookup_pieces): Adjust.
21627 (vn_reference_lookup): Remove alias-set altering, instead pass
21628 down false as tbaa_p.
21630 2019-07-05 Richard Biener <rguenther@suse.de>
21632 PR tree-optimization/91091
21633 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21634 accesses can happen with -fno-strict-aliasing.
21636 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21638 * tree-ssa-alias.c (alias_stats): Add
21639 nonoverlapping_component_refs_since_match_p_must_overlap.
21640 (dump_alias_stats): Print it.
21641 (nonoverlapping_component_refs_since_match_p): Add early exit.
21642 (nonoverlapping_component_refs_p): Do not account early exit.
21644 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21646 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21647 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21648 (emit_eh_dispatch): Delete.
21649 (lower_catch): Emit the eh_dispatch manually and set the location of
21650 the first catch statement onto it.
21651 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21652 (lower_eh_dispatch): Propagate location.
21653 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21654 (eliminate_build): Likewise.
21656 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21658 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21659 phi nodes if possible.
21660 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21661 location info on the newly created statement.
21662 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21663 newly created increment if needed.
21665 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21667 PR middle-end/78884
21668 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21669 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21670 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21671 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21672 ctx->add_safelen1 is set.
21674 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21675 GOMP_loop_start at the start of second worksharing loop in a scan.
21676 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21677 worksharing loop in a scan even if there are conditional lastprivates,
21678 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21680 2019-07-04 Jan Hubicka <jh@suse.cz>
21682 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21683 Fix check for match in the ref walk.
21685 2019-07-04 Martin Liska <mliska@suse.cz>
21687 * tree-ssa-loop-niter.c
21688 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21689 (estimate_numbers_of_iterations):
21690 Support __builtin_expect_with_probability for analysis
21691 of # of loop iterations.
21693 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21695 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21696 * except.c: Likewise.
21697 * expr.c (expand_expr_real_1): Reject it.
21698 * gimplify.c (gimplify_expr): Gimplify it, within
21700 * tree-dump.c (dequeue_and_dump): Dump it.
21701 * tree-pretty-print.c (dump_generic_node): Likewise.
21702 * tree.c (block_may_fallthru): Handle it.
21703 * tree.def (EH_ELSE_EXPR): Introduce it.
21704 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21705 with GIMPLE_EH_ELSE as try/finally/else.
21707 2019-07-04 Richard Biener <rguenther@suse.de>
21710 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21711 parameter whether to disable GC collection.
21712 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21714 (execute_all_ipa_transforms): Likewise and pass it down.
21715 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21716 collection from applying IPA transforms.
21717 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21718 from applying IPA transforms.
21720 2019-07-04 Richard Biener <rguenther@suse.de>
21722 PR tree-optimization/90911
21723 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21724 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21725 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21726 scalar_loop_scaling.
21727 (vect_transform_loop): Scale scalar loop profile if needed.
21728 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21729 the loop copy from if-conversion adjust edge probabilities
21730 and scale the vectorized loop body profile, queue the scalar
21731 profile for updating after peeling.
21733 2019-07-04 Jan Hubicka <jh@suse.cz>
21735 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21736 parameters; return early for must-alias.
21737 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21738 outer types match, try nonoverlapping_component_refs
21739 if must-alias is not obvious.
21740 (indirect_refs_may_alias_p): Likewise.
21741 (refs_may_alias_p_2): Likewise.
21743 2019-07-04 Richard Biener <rguenther@suse.de>
21745 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21747 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21749 (struct vn_walk_cb_data): New callback data struct.
21750 (vn_reference_lookup_2): Adjust.
21751 (vn_reference_lookup_3): Likewise.
21752 (vn_reference_lookup_pieces): Likewise.
21753 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21754 (visit_reference_op_load): Adjust.
21756 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21758 PR tree-optimization/91063
21759 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21760 stmt from stmts sequence before calling vect_init_vector_1.
21763 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21766 * fwprop.c (reg_single_def_p): New function.
21767 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21768 (forward_propagate_into): New parameter reg_prop_only
21769 with default value false.
21770 Propagate def's src into loop only if SET_SRC and SET_DEST
21771 of def_set have single definitions.
21772 Likewise if reg_prop_only is set to true.
21773 (fwprop): New param fwprop_addr_p.
21774 Integrate fwprop_addr into fwprop.
21775 (fwprop_addr): Remove.
21776 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21778 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21779 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21780 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21782 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21784 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21785 in worksharing loop scans.
21787 PR tree-optimization/91074
21788 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21791 PR rtl-optimization/90756
21792 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21795 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21797 * config/aarch64/aarch64.md: Remove redundant constraints from
21798 define_expand but keep some patterns untouched if they are
21799 specially selected by TARGET_SECONDARY_RELOAD hook.
21800 * config/aarch64/aarch64-sve.md: Likewise.
21801 * config/aarch64/atomics.md: Remove redundant constraints from
21803 * config/aarch64/aarch64-simd.md: Likewise.
21805 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21807 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21808 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21809 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21811 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21814 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21816 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21817 (STARTFILE_SPEC): Split crt3 into a separate spec.
21818 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21819 (DARWIN_CRT2_SPEC): New.
21820 (DARWIN_CRT3_SPEC): New.
21821 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21822 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21823 (DARWIN_CRT3_SPEC): New.
21825 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21827 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21828 Change the RTL attribute "length" from "4" to "*" to allow the
21829 length attribute to be adjusted automatically for prefixed load,
21830 store, and add immediate instructions.
21831 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21833 (extendsi<mode>2, EXTSI iterator): Likewise.
21834 (movsi_internal1): Likewise.
21835 (movsi_from_sf): Likewise.
21836 (movdi_from_sf_zero_ext): Likewise.
21837 (mov<mode>_internal): Likewise.
21838 (movcc_internal1, QHI iterator): Likewise.
21839 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21840 (movsf_from_si): Likewise.
21841 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21842 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21843 (mov<mode>, FMOVE128 iterator): Likewise.
21844 (movdi_internal64): Likewise.
21845 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21847 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21848 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21849 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21850 (vsx_splat_v4sf): Likewise.
21852 2019-07-03 Mark Wielaard <mark@klomp.org>
21855 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21856 DW_AT_addr_base if there is actually a .debug_addr section with
21858 (output_addr_table): Add DWARF5 table header generation here after
21859 checking there are actually any addresses from...
21860 (dwarf2out_finish): ...here.
21862 2019-07-03 Richard Biener <rguenther@suse.de>
21864 PR middle-end/91069
21865 * match.pd (vec_perm -> bit_insert): Fix element read from
21868 2019-07-03 Martin Liska <mliska@suse.cz>
21870 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21871 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21873 * generic-match-head.c: Include dbgcnt.h.
21874 * gimple-match-head.c: Likewise.
21876 2019-07-03 Martin Liska <mliska@suse.cz>
21878 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21879 (GCOV_COUNTER_V_TOPN): New.
21880 (GCOV_COUNTER_V_INDIR): Use _topn.
21881 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21882 (GCOV_TOPN_VALUES): New.
21883 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21884 (GCOV_TOPN_VALUES_COUNTERS): New.
21885 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
21887 (gimple_init_gcov_profiler): Rename variables from one_value
21889 (gimple_gen_one_value_profiler): Remove.
21890 (gimple_gen_topn_values_profiler): New function.
21891 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
21892 names instead of SINGLE_VALUE.
21893 (stream_out_histogram_value): Likewise.
21894 (stream_in_histogram_value): Likewise.
21895 (get_most_common_single_value): Likewise.
21896 (gimple_divmod_fixed_value_transform): Likewise.
21897 (gimple_stringops_transform): Likewise.
21898 (gimple_divmod_values_to_profile): Likewise.
21899 (gimple_stringops_values_to_profile): Likewise.
21900 (gimple_find_values_to_profile): Likewise.
21901 * value-prof.h (enum hist_type): Rename to TOPN.
21902 (gimple_gen_one_value_profiler): Remove.
21903 (gimple_gen_topn_values_profiler): New.
21905 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
21907 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
21908 if it has the DW_AT_data_member_location attribute.
21910 2019-07-03 Richard Biener <rguenther@suse.de>
21912 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
21915 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
21917 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
21918 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
21919 (tlsdesc_small_sve_<mode>): Likewise.
21921 2019-07-03 Martin Liska <mliska@suse.cz>
21923 * Makefile.in: Define ZSTD_LIB.
21924 * common.opt: Adjust compression level
21925 to support also zstd levels.
21926 * config.in: Regenerate.
21927 * configure: Likewise.
21928 * configure.ac: Add --with-zstd and --with-zstd-include options
21930 * doc/install.texi: Mention zstd dependency.
21931 * gcc.c: Print supported LTO compression algorithms.
21932 * lto-compress.c (lto_normalized_zstd_level): Likewise.
21933 (lto_compression_zstd): Likewise.
21934 (lto_uncompression_zstd): Likewise.
21935 (lto_end_compression): Dispatch in between zlib and zstd.
21936 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
21937 (lto_uncompression_zlib): Make it static.
21938 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
21939 * lto-section-in.c (lto_get_section_data): Pass info
21940 about used compression.
21941 * lto-streamer-out.c: By default use zstd when possible.
21942 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
21943 (TV_IPA_LTO_COMPRESS): Likewise for compression.
21945 2019-07-03 Martin Liska <mliska@suse.cz>
21947 * lto-section-in.c (lto_get_section_data): Add "lto" section.
21948 * lto-section-out.c (lto_destroy_simple_output_block): Never
21949 compress LTO_section_lto section.
21950 * lto-streamer-out.c (produce_asm): Do not set major_version
21952 (lto_output_toplevel_asms): Likewise.
21953 (produce_lto_section): New function.
21954 (lto_output): Call produce_lto_section.
21955 (lto_write_mode_table): Do not set major_version and
21957 (produce_asm_for_decls): Likewise.
21958 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
21960 (struct lto_header): Remove.
21961 (struct lto_section): New struct.
21962 (struct lto_simple_header): Do not inherit from lto_header.
21963 (struct lto_file_decl_data): Add lto_section_header field.
21965 2019-07-03 Martin Liska <mliska@suse.cz>
21967 * lra-eliminations.c (eliminate_regs_in_insn): Remove
21969 * reg-stack.c (check_asm_stack_operands): Likewise.
21970 * tree-ssa-structalias.c (create_function_info_for): Likewise.
21971 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
21972 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
21973 force_expand_binop.
21975 2019-07-03 Martin Liska <mliska@suse.cz>
21977 PR tree-optimization/90892
21978 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
21979 in string constants.
21981 2019-07-03 Martin Liska <mliska@suse.cz>
21983 PR middle-end/90899
21984 * multiple_target.c (create_dispatcher_calls): Add to comdat
21985 group only if set for ifunc.
21987 2019-07-03 Martin Liska <mliska@suse.cz>
21990 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
21991 Define local_object_name in outer scope in order to handle
21992 use-after-scope issue.
21994 2019-07-03 Martin Liska <mliska@suse.cz>
21996 * common.opt: Add fprofile-note.
21997 * coverage.c (coverage_init): Append the option
21999 * doc/invoke.texi: Document -fprofile-note.
22001 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22003 PR tree-optimization/91033
22004 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22005 vect_analyze_data_refs): Add bool * arguments.
22006 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22007 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22008 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22009 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22010 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22011 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22012 vect_analyze_data_refs caller.
22014 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22016 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22017 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22018 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22019 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22020 OMP_CLAUSE__SCANTEMP_ entry.
22021 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22022 * tree-pretty-print.c (dump_omp_clause): Likewise.
22023 * tree-nested.c (convert_nonlocal_omp_clauses,
22024 convert_local_omp_clauses): Likewise.
22025 * omp-general.h (struct omp_for_data): Add have_scantemp and
22026 have_nonctrl_scantemp members.
22027 * omp-general.c (omp_extract_for_data): Initialize them.
22028 * omp-low.c (struct omp_context): Add scan_exclusive member.
22029 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22030 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22031 ctx->scan_exclusive.
22032 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22033 of !ctx->scan_inclusive.
22034 (lower_rec_input_clauses): Simplify gimplification of dtors using
22035 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22036 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22037 loops. Don't add barrier for reduction_omp_orig_ref if
22038 ctx->scan_??xclusive.
22039 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22040 (lower_omp_scan): Use ctx->scan_exclusive instead
22041 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22042 reductions. Use new_vard != new_var instead of repeated
22043 omp_is_reference calls.
22044 (omp_find_scan, lower_omp_for_scan): New functions.
22045 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22047 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22048 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22049 and fd->have_scantemp.
22051 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22052 on worksharing loop propagate it as shared clause to containing
22055 * omp-expand.c (expand_omp_for_static_nochunk,
22056 expand_omp_for_static_chunk): For nowait worksharing loop with
22057 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22060 2019-07-02 qing zhao <qing.zhao@oracle.com>
22062 PR preprocessor/90581
22063 * doc/cppopts.texi: Add document for -fmax-include-depth.
22064 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22066 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22068 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22069 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22070 (mmx_packssdw): Ditto.
22071 (mmx_punpckhbw): Ditto.
22072 (mmx_punpcklbw): Ditto.
22073 (mmx_punpckhwd): Ditto.
22074 (mmx_punpcklwd): Ditto.
22075 (mmx_punpckhdq): Ditto.
22076 (mmx_punpckldq): Ditto.
22077 (*vec_dupv4hi): Ditto.
22078 (*vec_dupv2si): Ditto.
22079 (mmx_pmovmskb): Ditto.
22080 * config/i386/sse.md (sse_cvtpi2ps): Use
22081 TARGET_SSE2 && SSE_REG_P in split condition.
22082 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22083 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22084 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22085 (ssse3_pshufbv8qi3): Ditto.
22086 (ssse3_palignrdi): Ditto.
22088 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22090 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22091 with inlined save and restore.
22093 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22095 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22096 to be inserted on single successor edge of the entry block. Then call
22097 commit_edge_insertions instead of inserting the instructions manually.
22098 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22099 RTL expansion and rebuild jump labels chain.
22101 2019-07-02 Richard Biener <rguenther@suse.de>
22103 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22105 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22107 * tree.c (build_common_tree_nodes): Initialize them.
22108 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22109 Make declarations comments.
22110 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22111 chrec_known): Remove definitions.
22112 (initialize_scalar_evolutions_analyzer): Remove.
22113 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22114 * tree-streamer.c (preload_common_nodes): Do not preload
22115 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22117 2019-07-02 Jan Hubicka <jh@suse.cz>
22119 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22122 2019-07-02 Jan Hubicka <jh@suse.cz>
22124 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22126 (nonoverlapping_component_refs_since_match_p): ... this one;
22127 handle also non-decl bases; return -1 if search gave up.
22128 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22129 nonoverlapping_component_refs_of_decl_p_no_alias to
22130 nonoverlapping_component_refs_since_match_p_may_alias,
22131 nonoverlapping_component_refs_since_match_p_no_alias.
22132 (dump_alias_stats): Update dumping.
22133 (aliasing_matching_component_refs_p): Break out from ...;
22134 dispatch to nonoverlapping_component_refs_for_decl_p
22135 and nonoverlapping_component_refs_since_match_p.
22136 (aliasing_component_refs_p): ... here; call
22137 nonoverlapping_component_refs_p in scenarios where we can not
22138 precisely determine base match.
22139 (decl_refs_may_alias_p): Use
22140 nonoverlapping_component_refs_since_match_p.
22141 (indirect_ref_may_alias_decl_p): Do not call
22142 nonoverlapping_component_refs_p.
22143 (indirect_refs_may_alias_p): Likewise.
22145 2019-07-02 Jan Hubicka <jh@suse.cz>
22147 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22148 to clobber of return value.
22150 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22152 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22153 for is_neon_type instructions that have not already been categorized.
22155 2019-07-02 Richard Biener <rguenther@suse.de>
22157 PR tree-optimization/58483
22158 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22159 for MEM_REF base hashing.
22160 (equal_mem_array_ref_p): Likewise for base comparison.
22162 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22164 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22165 parameterized name.
22166 (signbit<mode>2): Use that name. Simplify.
22168 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22170 PR middle-end/66726
22171 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22172 Tune heuristic from PR71016 to allow MIN / MAX.
22174 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22176 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22177 parameterized name.
22178 (abs<mode>2): Use that name. Simplify.
22180 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22182 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22183 parameterized name.
22184 (neg<mode>2): Use that name. Simplify.
22186 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22188 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22190 (abs<mode>2): Use that name. Simplify.
22192 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22194 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22196 (neg<mode>2): Use that name. Simplify.
22198 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22200 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22201 ("enabled" attribute): Handle sse_noavx isa attribute.
22202 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22203 Use TARGET_SSE && SSE_REGNO_P in split condition.
22204 (*vec_dupv2sf): Ditto.
22206 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22208 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22210 (floatsi<mode>2): Use that name. Simplify.
22212 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22214 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22215 parameterized name.
22216 (extenddf<mode>2_vsx): Make this a parameterized name.
22217 (extenddf<mode>2): Use those names. Simplify.
22219 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22221 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22223 (eh_return): Use that name. Simplify.
22225 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22227 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22228 (doloop_end): Use that name. Simplify.
22230 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22232 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22233 parameterized name.
22234 (indirect_jump): Use that name. Simplify.
22236 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22238 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22239 parameterized name.
22240 (abs<mode>2): Use that name. Simplify.
22242 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22244 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22245 parameterized name.
22246 (fix_trunc<mode>si2): Use that name. Simplify.
22248 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22250 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22251 (allocate_stack): Use that name. Simplify.
22253 2019-07-01 Martin Sebor <msebor@redhat.com>
22255 PR middle-end/90923
22256 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22257 (hash_map::get_or_insert): Same. Reformat comment.
22258 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22259 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22260 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22261 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22262 (hash_table::hash_table (const hash_table&)): Use copy ctor
22263 instead of assignment to copy elements.
22265 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22266 John David Anglin <danglin@gcc.gnu.org>
22269 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22270 using saved frame pointer.
22272 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22274 PR middle-end/64242
22275 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22276 Add frame clobber and schedule blockage.
22278 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22280 * doc/invoke.texi (Link Options): Further editorial changes to
22281 -flinker-output docs.
22283 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22285 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22286 Load both operands of a PLUS into registers separately.
22288 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22290 * config/s390/vector.md: Fix shift count operand printing.
22292 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22294 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22296 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22298 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22299 Use recog_data to test for an output operand.
22301 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22303 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22304 exclude any others that are disparaged or that are bound to need
22306 (ira_get_dup_out_num): Expand comment.
22308 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22310 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22311 constraint string for each operand/alternative combo. Only handle
22312 '%' at the start of constraint strings, and look for it outside
22315 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22317 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22318 alternative_mask instead of HARD_REG_SET to represent a
22319 bitmask of alternatives.
22320 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22321 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22323 2019-07-01 Martin Liska <mliska@suse.cz>
22325 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22326 use () for a constructor call.
22327 (test_applying_fixits_line_out_of_range): Likewise.
22328 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22330 (free_page): Likewise.
22332 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22334 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22335 parameter names to match usage (no functional change).
22336 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22338 2019-07-01 Richard Biener <rguenther@suse.de>
22340 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22342 (pass_fre::execute): Honor it.
22343 * passes.def: Adjust pass_fre invocations to allow iterating,
22344 add non-iterating pass_fre before late threading/dom.
22346 2019-07-01 Richard Biener <rguenther@suse.de>
22348 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22349 TARGET_MEM_REF handling to also handle address-taken ones.
22351 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22353 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22354 hardware attributes): Document avx512vp2intersect.
22356 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22358 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22359 (abs<mode>2): New expander.
22360 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22361 Use CODE_FOR_ssse3_absv8qi2.
22362 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22363 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22365 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22367 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22368 to sse, sse_noavx and avx. Update all uses.
22370 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22372 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22373 (*mmx_<plusminus_insn><mode>3): Ditto.
22374 (*mmx_mulv4hi3"): Ditto.
22375 (*mmx_smulv4hi3_highpart): Ditto.
22376 (*mmx_umulv4hi3_highpart): Ditto.
22377 (*mmx_pmaddwd): Ditto.
22378 (*sse2_umulv1siv1di3): Ditto.
22379 (*mmx_<code>v4hi3): Ditto.
22380 (*mmx_<code>v8qi3): Ditto.
22381 (mmx_ashr<mode>3): Ditto.
22382 ("mmx_<shift_insn><mode>3): Ditto.
22383 (*mmx_eq<mode>3): Ditto.
22384 (mmx_gt<mode>3): Ditto.
22385 (mmx_andnot<mode>3): Ditto.
22386 (*mmx_<code><mode>3): Ditto.
22387 (*mmx_pinsrw): Ditto.
22388 (*mmx_pextrw): Ditto.
22389 (mmx_pshufw_1): Ditto.
22390 (*mmx_uavgv8qi3): Ditto.
22391 (*mmx_uavgv4hi3): Ditto.
22392 ("mmx_psadbw): Ditto.
22393 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22394 (sse_cvttps2pi): Ditto.
22395 (ssse3_pmaddubsw): Ditto.
22396 (*ssse3_pmulhrswv4hi3): Ditto.
22397 (ssse3_psign<mode>3): Ditto.
22399 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22401 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22402 adjustment for bit-fields to all aggregate types.
22404 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22406 * config/rs6000/predicates.md (pcrel_address): Use
22407 SYMBOL_REF_LOCAL_P to determine if a label is local.
22408 (pcrel_external_address): New predicate.
22409 (non_prefixed_mem_operand): Delete, predicate not used.
22410 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22411 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22413 (SYMBOL_REF_PCREL_P): Likewise.
22416 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22418 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22419 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22420 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22422 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22424 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22425 override on extra_headers.
22427 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22429 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22430 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22432 (darwin_driver_init): Likewise.
22434 2019-06-28 Jan Beulich <jbeulich@suse.com>
22436 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22437 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22438 Eliminate redundant alternative.
22440 2019-06-28 Jan Beulich <jbeulich@suse.com>
22442 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22443 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22444 Use vector_operand.
22446 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22448 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22449 having a lower cost regardless of the speed option.
22451 2019-06-28 Jan Beulich <jbeulich@suse.com>
22453 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22454 vector_operand plus, on both alternatives, "Bm" constraint.
22456 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22458 * config/arm/arm.md: Remove redundant constraints from
22459 define_expand but leave reload_inm and reload_outm patterns
22460 untouched since they need special constraints to work.
22461 * config/arm/arm-fixed.md: Remove redundant constraints from
22463 * config/arm/iwmmxt.md: Likewise.
22464 * config/arm/neon.md: Likewise.
22465 * config/arm/sync.md: Likewise.
22466 * config/arm/thumb1.md: Likewise.
22467 * config/arm/vec-common.md: Likewise.
22469 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22471 * doc/install.texi: Document --disable-tm-clone-registry.
22473 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22476 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22479 PR tree-optimization/91010
22480 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22481 return true. Otherwise, don't call operand_equal_p if offset1 or
22482 offset2 is NULL and just return false.
22484 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22486 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22487 user-specified float mode choice for kernel mode code.
22489 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22491 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22494 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22496 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22497 use longcall for 64b code.
22499 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22501 * builtins.c (get_memory_rtx): Fix comment.
22502 * optabs.def (movmem_optab): Change to cpymem_optab.
22503 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22504 (emit_block_move_hints): Change movmem to cpymem.
22505 * defaults.h: Change movmem to cpymem.
22506 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22507 (default_use_by_pieces_infrastructure_p): Ditto.
22508 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22509 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22511 * config/aarch64/aarch64.h: Change movmem to cpymem.
22512 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22513 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22514 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22516 * config/arc/arc-protos.h: Change movmem to cpymem.
22517 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22518 * config/arc/arc.h: Change movmem to cpymem in comment.
22519 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22520 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22521 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22522 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22523 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22524 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22525 * config/avr/avr-protos.h: Change movmem to cpymem.
22526 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22527 avr_out_movmem): Change movmem to cpymem.
22528 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22529 Change movmem to cpymem.
22530 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22531 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22532 Change movmem to cpymem.
22533 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22534 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22535 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22536 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22537 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22538 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22539 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22540 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22541 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22542 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22543 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22544 expand_small_cpymem_or_setmem,
22545 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22546 expand_set_or_cpymem_constant_prologue,
22547 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22548 * config/i386/i386-protos.h: Change movmem to cpymem.
22549 * config/i386/i386.h: Change movmem to cpymem in comment.
22550 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22551 (setmem<mode>): Change expansion function name.
22552 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22553 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22554 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22555 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22556 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22557 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22558 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22560 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22561 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22562 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22563 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22564 Change movmem to cpymem.
22565 * config/mips/mips.h: Change movmem to cpymem.
22566 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22567 * config/nds32/nds32-memory-manipulation.c
22568 (nds32_expand_movmemsi_loop_unknown_size,
22569 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22570 nds32_expand_movmemsi_unroll,
22571 nds32_expand_movmemsi): Change movmem to cpymem.
22572 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22573 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22574 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22575 (pa_adjust_insn_length): Change call to compute_movmem_length.
22576 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22577 movmemdi, movmemdi_prereload,
22578 movmemdi_postreload): Change movmem to cpymem.
22579 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22580 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22581 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22582 * config/riscv/riscv.h: Change movmem to cpymem.
22583 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22584 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22585 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22587 * config/s390/s390-protos.h: Change movmem to cpymem.
22588 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22589 s390_expand_insv): Change movmem to cpymem.
22590 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22591 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22592 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22593 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22594 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22595 for nonexistent function.
22596 * config/vax/vax.h: Change movmem to cpymem in comment.
22597 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22598 * config/visium/visium.h: Change movmem to cpymem in comment.
22599 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22600 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22601 * doc/md.texi: Change movmem to cpymem and update description to match.
22602 * doc/rtl.texi: Change movmem to cpymem.
22603 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22604 * doc/tm.texi: Regenerate.
22606 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22608 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22609 -fvariable-expansion-in-unroller by default.
22610 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22613 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22616 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22617 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22619 * config.gcc(rs6000-*-*): Define target_gtfiles.
22621 2019-06-27 Jan Hubicka <jh@suse.cz>
22623 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22624 (add_type_duplicate): When odr hash is not allocated, to nothing.
22625 (odr_based_tbaa_p): New function.
22626 (set_type_canonical_for_odr_type): New function.
22627 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22628 set_type_canonical_for_odr_type): New.
22629 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22630 ODR based TBAA are not equivalent to non-ODR types.
22632 2019-06-27 Martin Liska <mliska@suse.cz>
22634 PR tree-optimization/90974
22635 PR rtl-optimization/90975
22636 PR rtl-optimization/90976
22638 PR tree-optimization/91017
22639 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22641 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22642 initial commit of IRA.
22643 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22645 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22646 Remove unused mode1.
22647 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22650 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22653 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22654 instead of register_operand for operands[1], add m to its constraints
22655 if operands[2] uses "C" constraint. Ensure in condition that if
22656 operands[2] is not 0, then operands[1] is not a MEM. For last two
22657 alternatives, use unaligned loads instead of aligned if operands[1] is
22658 misaligned_operand.
22660 2019-06-27 Martin Liska <mliska@suse.cz>
22662 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22664 * bt-load.c (move_btr_def): Likewise.
22665 * builtins.c (expand_builtin_apply_args_1): Likewise.
22666 (expand_builtin_apply): Likewise.
22667 * cfgexpand.c (expand_asm_stmt): Likewise.
22668 (construct_init_block): Likewise.
22669 * cfghooks.c (verify_flow_info): Likewise.
22670 * cfgloopmanip.c (remove_path): Likewise.
22671 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22672 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22673 * combine.c (simplify_if_then_else): Likewise.
22674 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22675 (choose_basereg): Likewise.
22676 (ix86_expand_prologue): Likewise.
22677 (ix86_preferred_output_reload_class): Likewise.
22678 * cselib.c (cselib_record_sets): Likewise.
22679 * df-scan.c (df_scan_alloc): Likewise.
22680 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22681 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22682 * emit-rtl.c (try_split): Likewise.
22683 * graphite-scop-detection.c (assign_parameter_index_in_region):
22685 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22686 * ira-color.c (setup_profitable_hard_regs): Likewise.
22687 * ira.c (rtx_moveable_p): Likewise.
22688 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22689 * read-rtl.c (read_subst_mapping): Likewise.
22690 * regrename.c (scan_rtx): Likewise.
22691 * reorg.c (fill_slots_from_thread): Likewise.
22692 * tree-inline.c (tree_function_versioning): Likewise.
22693 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22694 * tree-ssa-sink.c (statement_sink_location): Likewise.
22695 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22696 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22697 (vect_create_epilog_for_reduction): Likewise.
22698 * tree.c (build_nonstandard_integer_type): Likewise.
22700 2019-06-27 Richard Biener <rguenther@suse.de>
22702 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22704 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22706 PR tree-optimization/89772
22707 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22708 out-of-bound accesses checking.
22710 2019-06-27 Martin Liska <mliska@suse.cz>
22712 PR tree-optimization/91014
22713 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22714 when LHS is NULL_TREE.
22716 2019-06-27 Martin Liska <mliska@suse.cz>
22718 * symbol-summary.h (traverse): Pass
22719 argument a to the call of callback.
22720 (gt_ggc_mx): Mark arguments as unused.
22721 (gt_pch_nx): Likewise.
22723 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22726 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22729 2019-06-26 Jeff Law <law@redhat.com>
22731 PR tree-optimization/90883
22732 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22733 (delete_dead_or_redundant_assignment): Likewise.
22735 PR tree-optimization/90883
22736 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22737 * tree-ssa-dse.c: Update various comments to distinguish between
22738 dead and redundant stores.
22739 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22740 (dse_optimize_redundant_stores): New function.
22741 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22742 Distinguish between dead and redundant calls in dump output. All
22744 (delete_dead_or_redundant_assignment): Similarly for assignments.
22745 (dse_optimize_stmt): Handle _CHK variants. For statements which
22746 store 0 into multiple memory locations, try to prove a subsequent
22747 store is redundant.
22749 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22752 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22753 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22755 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22757 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22758 (branch_islands): New extern.
22759 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22760 * config/rs6000/rs6000.c: .. here.
22762 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22764 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22765 (powerpc*-*-*) ... to here.
22767 2019-06-26 Jeff Law <law@redhat.com>
22769 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22770 memcpy, memmove and memset builtins.
22771 (maybe_trim_memstar_call): Likewise.
22773 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22775 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22777 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22779 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22781 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22783 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22785 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22787 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22790 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22792 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22794 2019-06-26 Richard Biener <rguenther@suse.de>
22797 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22799 2019-06-26 Richard Biener <rguenther@suse.de>
22801 * lto-streamer.h (lto_bitmap_alloc): Remove.
22802 (lto_bitmap_free): Likewise.
22803 * lto-streamer.c (lto_bitmap_alloc): Remove.
22804 (lto_bitmap_free): Likewise.
22805 (lto_obstack): Likewise.
22806 (lto_obstack_initialized): Likewise.
22807 * lto-streamer-out.c (lto_output): Use own obstack for local
22808 bitmap, free it consistently.
22810 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22813 * config/i386/sse.md
22814 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22815 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22816 insns if operands[2] is misaligned_operand.
22818 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22820 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22822 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22825 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22827 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22829 2019-06-26 Martin Liska <mliska@suse.cz>
22831 PR tree-optimization/90973
22832 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22833 epilogue_cost_vec instead of prologue_cost_vec for
22836 2019-06-26 Martin Liska <mliska@suse.cz>
22838 * bb-reorder.c (connect_better_edge_p): Add missing else
22839 statement in the middle of if-else statements.
22841 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22842 H.J. Lu <hongjiu.lu@intel.com>
22843 Olga Makhotina <olga.makhotina@intel.com>
22845 * common/config/i386/i386-common.c
22846 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22847 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22848 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22849 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22850 (ix86_handle_option): Handle -mavx512vp2intersect.
22851 * config/i386/avx512vp2intersectintrin.h: New.
22852 * config/i386/avx512vp2intersectvlintrin.h: New.
22853 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22854 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22855 AVX512VP2INTERSECT.
22856 * config/i386/i386-builtin-types.def: Add new types.
22857 * config/i386/i386-builtin.def: Add new builtins.
22858 * config/i386/i386-builtins.c: (enum processor_features): Add
22859 F_AVX512VP2INTERSECT.
22860 (static const _isa_names_table isa_names_table): Ditto.
22861 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22862 __AVX512VP2INTERSECT__.
22863 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22864 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22865 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22866 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22867 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22868 * config/i386/i386-options.c (ix86_target_string): Add
22869 -mavx512vp2intersect.
22870 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22871 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22872 P2HImode and P2QImode.
22873 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22874 number for P2QImode and P2HImode.
22875 (ix86_regmode_natural_size): New function.
22876 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22877 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22878 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22879 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22880 * config/i386/i386.opt: Add -mavx512vp2intersect.
22881 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22882 avx512vp2intersectvlintrin.h.
22883 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22884 (define_mode_iterator VI48_AVX512VP2VL): New.
22885 (avx512vp2intersect_2intersect<mode>,
22886 avx512vp2intersect_2intersectv16si): New define_insn patterns.
22887 * config.gcc: Add avx512vp2intersectvlintrin.h and
22888 avx512vp2intersectintrin.h to extra_headers.
22889 * doc/invoke.texi: Document -mavx512vp2intersect.
22891 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
22893 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
22895 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
22897 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
22898 savres_routine_syms, savres_routine_name, morestack_ref,
22899 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22900 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22901 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22902 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22903 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22904 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22905 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22906 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22907 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22908 get_stack_clash_protection_probe_interval,
22909 get_stack_clash_protection_guard_size,
22910 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22911 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22912 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22913 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22914 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22915 gen_frame_mem_offset, rs6000_savres_routine_name,
22916 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22917 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22918 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22919 rs6000_global_entry_point_prologue_needed_p,
22920 rs6000_get_separate_components, rs6000_components_for_bb,
22921 rs6000_disqualify_components, rs6000_emit_prologue_components,
22922 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22923 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22924 rs6000_output_savres_externs, rs6000_output_function_prologue,
22925 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22926 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22927 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22928 rs6000_output_function_epilogue, gen_add3_const,
22929 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22930 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22932 (machine_function): Moved to rs6000.h.
22933 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
22935 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
22936 savres_routine_syms, savres_routine_name, morestack_ref,
22937 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
22938 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
22939 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
22940 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
22941 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
22942 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
22943 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
22944 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
22945 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
22946 get_stack_clash_protection_probe_interval,
22947 get_stack_clash_protection_guard_size,
22948 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
22949 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
22950 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
22951 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
22952 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
22953 gen_frame_mem_offset, rs6000_savres_routine_name,
22954 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
22955 ptr_regno_for_savres, rs6000_emit_savres_rtx,
22956 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
22957 rs6000_global_entry_point_prologue_needed_p,
22958 rs6000_get_separate_components, rs6000_components_for_bb,
22959 rs6000_disqualify_components, rs6000_emit_prologue_components,
22960 rs6000_emit_epilogue_components, rs6000_set_handled_components,
22961 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
22962 rs6000_output_savres_externs, rs6000_output_function_prologue,
22963 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
22964 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
22965 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
22966 rs6000_output_function_epilogue, gen_add3_const,
22967 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
22968 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
22969 to here from rs6000.c.
22970 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
22971 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
22972 quad_address_offset_p) Moved to here from rs6000.c.
22973 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
22974 * config/config.gcc: Add new source file rs6000-logue.c to garbage
22977 2019-06-25 Martin Liska <mliska@suse.cz>
22979 * hash-table.c (hashtab_chk_error): Move here from ...
22980 * hash-table.h (hashtab_chk_error): ... here.
22982 2019-06-25 Martin Liska <mliska@suse.cz>
22984 PR tree-optimization/90978
22985 * df-scan.c (df_update_entry_block_defs): Remove dead else
22987 (df_update_exit_block_uses): Likewise.
22989 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
22990 Andrew Stubbs <ams@codesourcery.com>
22992 * config.gcc (thread_file): Set to gcn for AMD GCN.
22993 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
22994 (TARGET_EMUTLS_VAR_INIT): New hook.
22996 2019-06-25 Martin Jambor <mjambor@suse.cz>
22999 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23001 2019-06-25 Richard Biener <rguenther@suse.de>
23003 PR tree-optimization/90930
23004 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23005 into parallel form in the last pass instance.
23007 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23009 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23010 (arc_legitimize_pic_address): Simplify and cleanup the function.
23011 (SYMBOLIC_CONST): Remove.
23012 (prepare_pic_move): Likewise.
23013 (prepare_move_operands): Handle complex mov cases here.
23014 (arc_legitimize_address_0): Remove call to
23015 arc_legitimize_pic_address.
23016 (arc_legitimize_address): Remove call to
23017 arc_legitimize_tls_address.
23018 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23019 (movhi_insn): Likewise.
23021 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23023 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23025 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23026 format of "__intN" types for UINTMAX_TYPE.
23027 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23028 format of "__intN" types for SIZETYPE.
23029 * tree.c (build_common_tree_nodes): Accept "__intN__"
23030 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23031 * doc/invoke.texi: Document that __intN__ disables pedantic
23034 2019-06-25 Jan Hubicka <jh@suse.cz>
23036 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23037 base2_alias_set is non-zero before doing TBAA based disambiguation.
23039 2019-06-25 Martin Liska <mliska@suse.cz>
23041 PR tree-optimization/90973
23042 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23043 of prologue and epilogue.
23045 2019-06-24 Jan Hubicka <jh@suse.cz>
23047 * ipa-utils.h (type_with_linkage_p): Verify that type is
23049 (odr_type_p): Remove extra return.
23050 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23051 hash STRING_FLAG only for arrays and integers.
23052 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23053 Update analogously.
23054 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23056 * print-tree.c (print_node): Print cxx-odr-p
23058 * tree.c (need_assembler_name_p): Also check that type
23060 (verify_type_variant): Update verification of SRING_FLAG;
23061 also check CXX_ODR_P.
23062 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23063 (TYPE_STRING_FLAG): Use it.
23064 (TYPE_CXX_ODR_P): New macro.
23065 * dwarf2out.c (gen_array_type_die): First check that type
23066 is an array and then test string flag.
23068 2019-06-24 Richard Biener <rguenther@suse.de>
23070 PR tree-optimization/90972
23071 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23072 in common code, dealing with STRING_CST properly.
23074 2019-06-24 Richard Biener <rguenther@suse.de>
23076 PR tree-optimization/90930
23077 PR tree-optimization/90316
23078 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23079 decrement of limit.
23081 2019-06-24 Martin Sebor <msebor@redhat.com>
23083 * tree-pretty-print.h: Remove unnecessary punctuation characters
23085 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23087 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23089 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23090 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23091 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23093 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23095 * config/rs6000/darwin.h: Handle GCC target pragma.
23097 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23099 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23101 2019-06-22 Jeff Law <law@redhat.com>
23103 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23105 2019-06-22 Jan Hubicka <jh@suse.cz>
23107 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23108 give up on bitfields; continue searching for different refs
23111 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23113 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23114 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23115 containing the offset as possible simd lane access. Look through
23116 widening conversion. Move the
23117 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23119 2019-06-21 Richard Biener <rguenther@suse.de>
23121 PR tree-optimization/90930
23122 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23123 flag on new stmts to avoid re-processing them.
23125 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23127 PR c++/90875 - added -Wswitch-outside-range option
23128 * doc/invoke.texi (Wswitch-outside-range): Document.
23130 2019-06-21 Jeff Law <law@redhat.com>
23132 PR tree-optimization/90949
23133 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23134 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23136 2019-06-21 Richard Biener <rguenther@suse.de>
23139 * dwarf2out.c (prune_unused_types_walk): Always consider
23140 function-local extern declarations as used.
23142 2019-06-21 Richard Biener <rguenther@suse.de>
23144 PR tree-optimization/90913
23145 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23146 the scalar variant of if-conversion versioning.
23148 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23150 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23151 create another "omp scan inscan exclusive" array if
23152 !ctx->scan_inclusive.
23153 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23154 (lower_omp_scan): Likewise.
23155 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23156 2-bit bitfield for simd_lane_access_p member.
23157 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23158 aux == (void *)-4 as simd lane access.
23159 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23160 comment with permutations to show the canonical permutation order.
23161 (vectorizable_scan_store): Handle exclusive scan.
23162 (vectorizable_store): Call vectorizable_scan_store even for
23163 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23165 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23166 "omp simd array" arrays with one byte elements.
23168 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23170 * config/alpha/alpha.md (@unaligned_store<mode>):
23171 Rename from unaligned_store<mode>.
23172 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23173 * config/alpha/sync.md (@load_locked_<mode>): Rename
23174 from load_locked_<mode>.
23175 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23176 (@atomic_compare_and_swap<mode>_1): Rename
23177 from atomic_compare_and_swap<mode>_1.
23178 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23179 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23180 Use gen_reload_in_aligned and gen_unaligned_store.
23181 (emit_load_locked): Remove.
23182 (emit_store_conditional): Ditto.
23183 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23184 (alpha_split_compare_and_swap): Ditto.
23185 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23186 (alpha_split_compare_and_swap_12): Use gen_load_locked
23187 and gen_store_conditional.
23188 (alpha_split_atomic_exchange): Ditto.
23189 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23190 (alpha_split_atomic_exchange_12): Use gen_load_locked
23191 and gen_store_conditional.
23193 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23195 * config/aarch64/aarch64-errata.h: New file.
23196 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23197 (CA53_ERR_843419_SPEC): Delete.
23198 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23199 * config/aarch64/aarch64-linux.h: Likewise.
23200 * config/aarch64/aarch64-netbsd.h: Likewise.
23201 * config/aarch64/aarch64-freebsd.h: Likewise.
23203 2019-06-20 Marek Polacek <polacek@redhat.com>
23205 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23207 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23209 * config/rs6000/rs6000.md (isa attribute): Add support for
23210 for a future processor.
23212 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23215 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23216 standard scalar operation pattern for V2DF.
23217 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23218 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23219 (*ieee_<ieee_maxmin><mode>3): Likewise.
23220 (vec_setv2df_0): Likewise.
23222 2019-06-20 Jan Hubicka <jh@suse.cz>
23224 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23225 parameter; it has no use in gimple memory model.
23226 (indirect_ref_may_alias_decl_p): Update.
23228 2019-06-20 Martin Liska <mliska@suse.cz>
23230 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23233 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23235 * tree-vect-stmts.c (enum scan_store_kind): New type.
23236 (scan_store_can_perm_p): Change last argument from int * to
23237 vec<enum scan_store_kind> *, record precisely which permutations
23238 need whole vector left shift or that plus VEC_COND_EXPR.
23239 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23240 and additional VEC_COND_EXPR only for those iterations that need it.
23242 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23244 * config.gcc: Fix ARM --with-fpu checking and error message.
23246 2019-06-19 Marek Polacek <polacek@redhat.com>
23248 PR c++/60364 - noreturn after first decl not diagnosed.
23249 * attribs.c (get_attribute_namespace): No longer static.
23250 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23252 (attr_noreturn_exclusions): Make it extern.
23253 * attribs.h (get_attribute_namespace): Declare.
23254 * tree-inline.c (function_attribute_inlinable_p): Use
23255 get_attribute_name.
23257 2019-06-19 Martin Sebor <msebor@redhat.com>
23259 PR tree-optimization/90626
23260 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23262 PR tree-optimization/90626
23263 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23264 (handle_builtin_string_cmp): Call it.
23266 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23268 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23269 and DARWIN_NOPIE_SPEC.
23270 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23271 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23272 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23273 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23274 (DARWIN_EXPORT_DYNAMIC): Delete.
23275 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23276 and pie options processing to darwin.h.
23277 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23279 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23281 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23282 in computing the number of options to be moved.
23284 2019-06-19 Maya Rashish <coypu@sdf.org>
23286 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23287 (CLEAR_INSN_CACHE) Use it.
23289 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23291 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23293 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23295 PR middle-end/84521
23296 * builtins.c (expand_builtin_setjmp_setup): Save
23297 hard_frame_pointer_rtx.
23298 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23300 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23302 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23304 (remove_reg_equal_offset_note): Remove unused function.
23305 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23307 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23308 (arc_builtin_setjmp_frame_value): Remove function.
23309 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23310 (avr_builtin_setjmp_frame_value): Remove function.
23311 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23312 (ix86_builtin_setjmp_frame_value): Remove function.
23313 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23314 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23315 (sparc_builtin_setjmp_frame_value): Remove function.
23316 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23317 (vax_builtin_setjmp_frame_value): Remove function.
23318 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23319 pointer if has_nonlocal_label.
23321 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23323 * doc/md.texi: Document vec_shl_<mode> pattern.
23324 * optabs.def (vec_shl_optab): New optab.
23325 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23326 argument, if == vec_shl_optab, check for left whole vector shift
23327 pattern rather than right shift.
23328 (expand_vec_perm_const): Add vec_shl_optab support.
23329 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23331 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23332 can be handled by vec_shl_optab.
23333 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23334 (check_scan_store): Use it.
23335 (vectorizable_scan_store): If target can't do normal permutations,
23336 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23338 * config/i386/sse.md (vec_shl_<mode>): New expander.
23340 * omp-low.c (lower_rec_input_clauses): Handle references properly
23342 (lower_omp_scan): Likewise.
23344 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23346 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23347 mem_mode is BLKmode.
23349 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23352 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23353 pointer adjustment for the case of no callee-saved registers and
23354 stack frame bigger than 128 bytes.
23356 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23358 PR middle-end/90862
23359 * omp-low.c (check_omp_nesting_restrictions): Handle
23360 GF_OMP_TARGET_KIND_OACC_DECLARE.
23362 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23364 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23365 (@add<mode>3_carry): Rename from add<mode>3_carry.
23366 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23367 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23368 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23369 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23370 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23371 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23372 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23373 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23374 (cmpstrnsi): Use gen_cmp_1.
23375 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23376 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23377 (@umonitor_<mode>): Rename from umonitor_<mode>.
23378 * config/i386/i386-expand.c (ix86_expand_copysign):
23379 Use gen_copysign3_const and gen_copysign3_var.
23380 (ix86_expand_xorsign): Use gen_xorsign3_1.
23381 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23382 gen_sub3_carry_ccgz and gen_cmp1.
23383 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23384 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23385 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23386 (ix86_split_lshr): Ditto.
23387 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23389 2019-06-18 Jason Merrill <jason@redhat.com>
23391 * tree.c (build_constructor): Add MEM_STAT_DECL.
23393 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23395 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23396 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23397 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23398 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23399 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23400 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23401 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23402 Use CC_NZC instead of CC.
23403 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23404 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23405 (aarch64_print_operand): Handle E_CC_NZCmode.
23406 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23407 of gen_set_clobber_cc.
23409 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23411 * config/aarch64/aarch64-sve.md: Tabify file.
23413 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23415 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23416 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23417 * config/aarch64/aarch64-sve.md: Use it.
23419 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23421 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23422 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23423 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23424 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23425 (aarch64_expand_sve_vec_cmp_int): Use it.
23426 (aarch64_expand_sve_vec_cmp_float): Likewise.
23427 * config/aarch64/aarch64-sve.md: Likewise throughout.
23429 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23430 Kugan Vivekanandarajah <kuganv@linaro.org>
23432 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23433 (*cond_<optab><mode>_z): Fold into...
23434 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23435 operand 4 can be tied to operand 0 (either inherently or via RA).
23437 2019-06-18 Richard Biener <rguenther@suse.de>
23440 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23441 as if optimized away.
23443 2019-06-18 Tom de Vries <tdevries@suse.de>
23445 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23446 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23447 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23449 (define_insn "@set_softstack_<mode>"): ... this.
23450 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23451 (define_insn "@omp_simt_enter_<mode>"): ... this.
23452 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23453 (define_insn "@omp_simt_exit_<mode>"): ... this.
23455 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23457 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23458 vf parameter. Restore the previous iv step of nscalars_step,
23459 but give it iv_type rather than compare_type. Tweak code order
23460 to match the comments.
23461 (vect_set_loop_condition_masked): Update accordingly.
23462 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23463 for iv_precision. Tweak comment formatting.
23465 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23467 * config/darwin.c: Strip trailing whitespace.
23469 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23471 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23472 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23474 2019-06-18 Martin Jambor <mjambor@suse.cz>
23477 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23478 caller does not have flag_ipa_cp set.
23480 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23482 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23483 from "*fold_left_plus_<mode>", updated operands order.
23484 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23485 * internal-fn.c (mask_fold_left_direct): New define.
23486 (expand_mask_fold_left_optab_fn): Likewise.
23487 (direct_mask_fold_left_optab_supported_p): Likewise.
23488 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23489 * optabs.def (mask_fold_left_plus_optab): New optab.
23490 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23491 masked internal_fn for a reduction ifn.
23492 (vectorize_fold_left_reduction): Add support for masking reductions.
23494 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23496 PR middle-end/80791
23497 * target.def (predict_doloop_p): New hook.
23498 * targhooks.h (default_predict_doloop_p): New declaration.
23499 * targhooks.c (default_predict_doloop_p): New function.
23500 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23501 * doc/tm.texi: Regenerate.
23502 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23503 (TARGET_PREDICT_DOLOOP_P): New macro.
23504 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23506 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23508 * omp-low.c (struct omp_context): Add scan_inclusive field.
23509 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23511 (struct omplow_simd_context): Add lastlane member.
23512 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23513 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23515 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23516 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23517 (lower_omp_scan): New function.
23518 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23519 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23520 check 3rd argument if present rather than 2nd.
23521 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23522 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23524 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23525 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23527 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23528 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23529 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23531 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23532 IFN_GOMP_SIMD_LANE argument.
23533 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23534 encoded ->aux value.
23535 * tree-vect-stmts.c: Include attribs.h.
23536 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23537 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23539 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23540 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23542 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23545 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23546 (*nabs<mode>2_1): Ditto.
23547 (nabs sse-reg splitter): New splitter.
23548 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23550 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23552 PR bootstrap/90873.
23553 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23556 2019-06-17 Tom de Vries <tdevries@suse.de>
23558 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23559 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23560 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23562 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23564 (define_insn "omp_simt_enter_insn"): Rename to ...
23565 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23566 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23567 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23568 gen_omp_simt_enter_si.
23569 (define_expand "omp_simt_exit"): New.
23570 (define_insn "omp_simt_exit"): Rename to ...
23571 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23574 2019-06-17 Matthew Green <mrg@eterna.com.au>
23575 Maya Rashish <coypu@sdf.org>
23577 * config.gcc (aarch64*-*-netbsd*): New target.
23578 * config/aarch64/aarch64-netbsd.h: New file.
23579 * config/aarch64/t-aarch64-netbsd: Likewise.
23581 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23583 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23584 the access path from base to first VIEW_CONVERT_EXPR or
23587 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23589 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23590 access path on BIT_FIELD_REFs.
23592 2019-06-17 Martin Liska <mliska@suse.cz>
23595 * ipa-utils.h (odr_type_p): Remove dead code.
23597 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23599 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23600 alternative Solaris 11.4 format.
23601 * configure: Regenerate.
23603 2019-06-17 Tom de Vries <tdevries@suse.de>
23605 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23606 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23608 (define_insn "call_value_insn"): Rename to ...
23609 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23611 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23614 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23616 PR middle-end/64242
23617 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23618 frame clobbers and schedule block.
23619 (builtin_longjmp): Likewise.
23621 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23623 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23624 describe how to perform MSPABI compliant 64-bit shift.
23625 * config/msp430/msp430.md (ashldi3): New define_expand.
23626 (ashrdi3): New define_expand.
23627 (lshrdi3): New define_expand.
23629 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23631 * doc/sourcebuild.texi: Document new effective target keyword
23634 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23636 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23637 indirect_refs_may_alias_p): Revert accidental commits.
23639 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23640 at the end of structures.
23642 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23644 * config/darwin.c (machopic_indirect_call_target): Use renamed
23645 darwin_picsymbol_stubs to decide on output.
23646 (darwin_override_options): Handle darwin_picsymbol_stubs.
23647 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23648 (LD64_VERSION): Revise default.
23649 * config/darwin.opt: (mpic-symbol-stubs): New option.
23650 (darwin_picsymbol_stubs): New variable.
23651 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23652 rename to TARGET_MACHO_PICSYM_STUBS.
23653 * config/i386/i386.c (output_pic_addr_const): Likewise.
23654 * config/i386/i386.h Likewise.
23655 * config/rs6000/darwin.h: Likewise.
23656 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23657 darwin_picsymbol_stubs.
23659 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23661 * config/darwin.opt (prebind, noprebind, seglinkedit,
23662 noseglinkedit): Add RejectNegative.
23664 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23666 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23667 in my previous patch.
23669 2019-06-16 Tom de Vries <tdevries@suse.de>
23671 PR tree-optimization/89376
23672 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23674 2019-06-15 Maya Rashish <coypu@sdf.org>
23676 * doc/invoke.texi (Spec Files): Update location of the
23679 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23681 * doc/extend.texi (Common Function Attributes): Clarify
23682 no_sanitize. Fix grammar.
23684 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23686 * tree-ssa-alias.c (alias_stats): Add
23687 nonoverlapping_component_refs_p_may_alias,
23688 nonoverlapping_component_refs_p_no_alias,
23689 nonoverlapping_component_refs_of_decl_p_may_alias,
23690 nonoverlapping_component_refs_of_decl_p_no_alias.
23691 (dump_alias_stats): Dump them.
23692 (nonoverlapping_component_refs_of_decl_p): Add stats.
23693 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23696 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23698 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23699 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23701 (*anddi3_doubleword): Split before reload. Merge with
23702 anddi->zext pre-reload splitter.
23703 (*andndi3_doubleword): Split before reload.
23704 (*<code>di3_doubleword): Ditto.
23705 (*one_cmpldi2_doubleword): Ditto.
23707 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23709 PR middle-end/90779
23710 * gimplify.c: Include omp-offload.h and context.h.
23711 (gimplify_bind_expr): Add "omp declare target" attributes
23712 to static block scope variables inside of target region or target
23715 2019-06-15 Tom de Vries <tdevries@suse.de>
23717 PR tree-optimization/90009
23718 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23719 Return NULL if bb contains IFN_UNIQUE.
23721 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23723 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23724 (un): New define_mode_attr.
23725 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23726 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23727 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23729 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23731 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23733 * config/darwin.opt: Add RejectNegative where needed, reorder
23734 and add minimal functional descriptions.
23736 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23738 PR rtl-optimization/90765
23739 * calls.c (update_stack_alignment_for_call): New function.
23740 (expand_call): Call update_stack_alignment_for_call when
23741 outgoing parameter is passed in the stack.
23742 (emit_library_call_value_1): Likewise.
23743 * function.c (locate_and_pad_parm): Don't update
23744 stack_alignment_needed and preferred_stack_boundary.
23746 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23749 * config/i386/i386-features.c
23750 (dimode_scalar_chain::compute_convert_gain): Replace
23751 mmxsse_to_integer with sse_to_integer.
23752 * config/i386/i386.c (ix86_register_move_cost): Verify that
23753 moves between MMX and non-MMX units require secondary memory.
23754 Correct costs of moves between SSE and integer units.
23755 * config/i386/i386.h (processor_costs): Rename cost of moving
23756 SSE register to integer to sse_to_integer. Rename cost of
23758 2019-06-14 Matt Thomas <matt@3am-software.com>
23759 Matthew Green <mrg@eterna.com.au>
23760 Nick Hudson <skrll@netbsd.org>
23761 Maya Rashish <coypu@sdf.org>
23762 Richard Earnshaw <rearnsha@arm.com>
23764 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23765 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23766 * config/arm/netbsd-eabi.h: New file.
23767 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23769 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23770 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23771 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23772 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23774 2019-06-14 Richard Biener <rguenther@suse.de>
23776 * tree-loop-distribution.c (classify_partition): Return
23777 whether a reduction appeared in all partitions and do not
23778 stop builtin detection because of this.
23779 (distribute_loop): Sort a non-builtin partition last if
23780 there's a reduction in all partitions and make sure the
23781 partition prevailing as last is not a builtin.
23783 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23786 * ipa-prop.c (add_to_agg_contents_list): New function.
23787 (clobber_by_agg_contents_list_p): Likewise.
23788 (extract_mem_content): Likewise.
23789 (get_place_in_agg_contents_list): Delete.
23790 (determine_known_aggregate_parts): Renamed from
23791 determine_locally_known_aggregate_parts. New parameter
23794 2019-06-13 Martin Sebor <msebor@redhat.com>
23796 PR tree-optimization/90662
23797 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23800 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23803 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23804 dbase is not TARGET_MEM_REF.
23806 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23808 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23810 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23811 Do not generate DImode extends for 32bit targets.
23812 (and->zext post-reload splitter): Use gen_extend_insn
23813 instead of indirect functions.
23814 (anddi->zext pre-reload splitter): New.
23815 (*zext<mode>_doubleword_and): Remove.
23816 (*zext<mode>_doubleword): Ditto.
23817 (*zextsi_doubleword): Dittto.
23819 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23821 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23822 Use gen_sub3_insn instead of indirect function.
23823 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23825 (ix86_adjust_counter): Ditto.
23827 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23828 Lijia He <helijia@linux.ibm.com>
23830 PR tree-optimization/77820
23831 * tree-ssa-threadedge.c
23832 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23834 (thread_across_edge): Add call to
23835 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23837 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23839 * config/darwin-driver.c (validate_macosx_version_min): New.
23840 (darwin_default_min_version): Cleanup and validate supplied version.
23841 (darwin_driver_init): Likewise and push cleaned version into opts.
23843 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23845 PR tree-optimization/90869
23846 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23847 converts in MEM_REF referencing decl rather than view converts
23848 from decl type to MEM_REF type.
23850 2019-06-13 Richard Biener <rguenther@suse.de>
23852 PR tree-optimization/90856
23853 * tree-sra.c (build_ref_for_model): Only use
23854 build_reconstructed_reference when address-spaces are the same.
23856 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23858 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23859 wrap ei variable name in the declaration in ()s.
23860 (nvptx_single): Actually use mode_label variable. Formatting fix.
23862 2019-06-13 Richard Biener <rguenther@suse.de>
23864 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23865 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23866 also return the condition stmt.
23867 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23868 loop we can version and version that, reusing the loop version
23869 created by if-conversion instead of versioning again.
23871 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23873 * gimple-loop-versioning.cc (prune_loop_conditions): Use
23875 * tree-vrp (value_range_base::may_contain_p): Call into
23876 value_inside_range.
23877 (value_inside_range): Make private inside value_range_base class.
23878 Take min/max from *this.
23879 (range_includes_p): Remove.
23880 * tree-vrp.h (value_range_base): Add value_inside_range.
23881 (range_includes_p): Remove.
23882 (range_includes_zero_p): Call may_contain_p.
23883 * vr-values.c (compare_range_with_value): Same.
23885 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
23887 * doc/extend.texi (ARC Function Attributes): Update info.
23889 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
23891 PR tree-optimization/89713
23892 * doc/invoke.texi (-ffinite-loops): Document new option.
23893 * common.opt (-ffinite-loops): New option.
23894 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
23895 IFN_GOACC_LOOP calls as necessary.
23896 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
23898 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
23899 IFN_GOACC_LOOP call is not used.
23900 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
23902 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23905 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
23906 compare_type is not with Pmode size, we will create an IV with
23907 Pmode size with truncated use (i.e. converted to the correct type).
23908 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
23909 (vect_iv_limit_for_full_masking): New. Factored out of
23910 vect_set_loop_condition_masked.
23911 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
23912 (vect_iv_limit_for_full_masking): Declare.
23914 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23917 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
23918 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
23919 (get_alias_ptr_type_for_ptr_address): Likewise.
23920 (add_iv_candidate_for_use): Add scaled index candidate if useful.
23921 * tree-ssa-address.c (preferred_mem_scale_factor): New.
23922 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
23925 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23927 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
23929 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
23931 * common/config/pru/pru-common.c: New file.
23932 * config.gcc: Add PRU target.
23933 * config/pru/alu-zext.md: New file.
23934 * config/pru/constraints.md: New file.
23935 * config/pru/predicates.md: New file.
23936 * config/pru/pru-opts.h: New file.
23937 * config/pru/pru-passes.c: New file.
23938 * config/pru/pru-pragma.c: New file.
23939 * config/pru/pru-protos.h: New file.
23940 * config/pru/pru.c: New file.
23941 * config/pru/pru.h: New file.
23942 * config/pru/pru.md: New file.
23943 * config/pru/pru.opt: New file.
23944 * config/pru/t-pru: New file.
23945 * doc/extend.texi: Document PRU pragmas.
23946 * doc/invoke.texi: Document PRU-specific options.
23947 * doc/md.texi: Document PRU asm constraints.
23949 2019-06-12 Martin Sebor <msebor@redhat.com>
23951 PR middle-end/90676
23952 * tree-pretty-print.c (dump_mem_ref): New function. Include
23953 MEM_REF type in output when different size than operand.
23954 (dump_generic_node): Move code to dump_mem_ref and call it.
23956 2019-06-12 Martin Sebor <msebor@redhat.com>
23958 PR tree-optimization/90662
23959 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
23962 2019-06-12 Tom de Vries <tdevries@suse.de>
23964 PR tree-optimization/90009
23965 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
23967 2019-06-12 Martin Liska <mliska@suse.cz>
23969 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
23971 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
23972 * mem-stats.h (mem_alloc_description::mem_alloc_description):
23973 Do not sanitize created maps.
23975 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
23977 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
23978 value_range::singleton_p.
23979 * tree-vrp.c (value_range_constant_singleton): Remove.
23980 * tree-vrp.h (value_range_constant_singleton): Remove.
23981 * vr-values.c (vr_values::singleton): Use
23982 value_range::singleton_p.
23984 2019-06-12 Jakub Jelinek <jakub@redhat.com>
23987 * cfgexpand.c (align_local_variable): Add really_expand argument,
23988 don't SET_DECL_ALIGN if it is false.
23989 (add_stack_var): Add really_expand argument, pass it through to
23990 align_local_variable.
23991 (expand_one_stack_var_1): Pass true as really_expand to
23992 align_local_variable.
23993 (expand_one_ssa_partition): Pass true as really_expand to
23995 (expand_one_var): Pass really_expand through to add_stack_var.
23997 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
23999 * config/arm/iterators.md (VABAL): New int iterator.
24000 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24001 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24002 UNSPEC_VABAL_U values.
24004 2019-06-12 Martin Liska <mliska@suse.cz>
24006 * value-prof.c (stream_out_histogram_value): Only first value
24009 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24012 * symtab.c (symtab_node::set_section): Allow being called on aliases
24013 as long as they aren't analyzed yet.
24015 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24017 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24018 to `mips_set_text_contents_type' to indicate whether a
24019 non-debug insn follows.
24021 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24023 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24024 enabling -mpcrel by default.
24025 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24026 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24027 that the test against -mcpu=future is done first. Then test if
24028 -mprefixed-addr is on for -mpcrel.
24029 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24031 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24034 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24035 instead of and.u%d.
24037 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24039 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24041 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24043 PR c++/90449 - add -Winaccessible-base option.
24044 * doc/invoke.texi (Winaccessible-base): Document.
24046 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24048 PR tree-optimization/62041
24049 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24051 2019-06-11 Jason Merrill <jason@redhat.com>
24053 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24054 * tree.c (get_tree_code_name): Likewise.
24055 * print-tree.c (print_node): Only briefly print a node with an
24058 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24061 * trans-mem.c (tm_memopt_compute_available): Add assertion
24062 that blocks is not empty. Formatting fix.
24064 2019-06-11 Martin Liska <mliska@suse.cz>
24067 * hash-table.h: Extend create_gcc, add one parameter
24068 that is passed into hash_table::hash_table.
24070 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24072 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24074 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24075 Emit clobber also for non-sse operations.
24076 (ix86_split_fp_absneg_operator): New function.
24077 * config/i386/i386.md (SSEMODEF): New mode iterator.
24078 (ssevecmodef): New mode attribute.
24079 (<code>tf2): Use absneg code iterator.
24080 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24081 Add three-operand AVX alternatives.
24082 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24083 Use absneg code iterator and X87MODEF mode iterator.
24084 (absneg fp_reg non-sse splitter): Call absneg code iterator
24085 and X87MODEF mode iterator.
24086 (absneg general_reg non-sse splitter): Use absneg code iterator
24087 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24088 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24089 code iterator. Add three-operand AVX alternative.
24090 (absneg sse_reg splitter): Use absneg code iterator
24091 and SSEMODEF mode iterator. Handle AVX operands.
24092 (absneg fp_reg splitter): Use absneg code iterator
24093 and MODEF mode iterator.
24094 (absneg general_reg splitter): Merge splitters using MODEF mode
24095 iterator. Use absneg code iterator. Call
24096 ix86_split_fp_absneg_operator.
24097 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24098 Do not enable for non-sse modes before reload.
24099 (CSGNMODE): Remove.
24100 (CSGNVMODE): Ditto.
24101 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24102 ssevecmodef mode attribute instaed of CSGNVMODE.
24103 (copysign<mode>3_const): Ditto.
24104 (copysign<mode>3_var): Ditto.
24105 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24106 Use absneg code iterator. Simplify code using std::swap.
24107 * config/i386/predicates.md (absneg_operator): Remove.
24109 2019-06-10 Martin Sebor <msebor@redhat.com>
24111 * gimple-fold.c (get_range_strlen): Update comment that didn't
24112 make it into r267503 or related commits.
24114 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24116 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24117 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24119 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24121 * tree.def (OMP_SCAN): New tree code.
24122 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24123 OMP_CLAUSE_EXCLUSIVE.
24124 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24125 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24126 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24127 OMP_CLAUSE_{IN,EX}CLUSIVE.
24128 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24129 * tree-nested.c (convert_nonlocal_reference_stmt,
24130 convert_local_reference_stmt, convert_gimple_call): Handle
24132 * tree-pretty-print.c (dump_omp_clause): Handle
24133 OMP_CLAUSE_{IN,EX}CLUSIVE.
24134 (dump_generic_node): Handle OMP_SCAN.
24135 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24136 * gimple.h (gomp_scan): New type.
24137 (is_a_helper <gomp_scan *>::test,
24138 is_a_helper <const gomp_scan *>::test): New templates.
24139 (gimple_build_omp_scan): Declare.
24140 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24141 gimple_omp_scan_set_clauses): New inline functions.
24142 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24143 * gimple.c (gimple_build_omp_scan): New function.
24144 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24145 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24146 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24147 GIMPLE_OMP_TASKGROUP.
24148 (dump_gimple_omp_scan): New function.
24149 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24150 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24151 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24152 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24153 (is_gimple_stmt): Handle OMP_SCAN.
24154 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24155 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24156 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24157 mentioned in nested #pragma omp scan. Handle
24158 OMP_CLAUSE_{IN,EX}CLUSIVE.
24159 (gimplify_expr): Handle OMP_SCAN.
24160 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24161 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24163 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24166 2019-06-10 Martin Liska <mliska@suse.cz>
24168 * ipa-cp.c (ignore_edge_p): New function.
24169 (build_toporder_info): Use it.
24170 * ipa-inline.c (ignore_edge_p): New function.
24171 (inline_small_functions): Use it.
24172 * ipa-pure-const.c (ignore_edge_for_nothrow):
24173 Verify opt_for_fn for caller and callee.
24174 (ignore_edge_for_pure_const): Likewise.
24175 * ipa-reference.c (ignore_edge_p): Extend to check
24177 * ipa-utils.c (searchc): Refactor.
24178 * ipa-utils.h: Fix coding style.
24180 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24182 * config/arc/arc.c (arc_rtx_costs): Update costs.
24184 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24186 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24187 (arc_split_ior): Likewise.
24188 (arc_check_mov_const): Likewise.
24189 (arc_split_mov_const): Likewise.
24190 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24191 (arc_rtx_costs): Replace check Crr with Cax constraint.
24192 (prepare_move_operands): Cleanup, remove unused code.
24193 (arc_split_ior): New function.
24194 (arc_check_ior_const): Likewise.
24195 (arc_split_mov_const): Likewise.
24196 (arc_check_mov_const): Likewise.
24197 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24198 in define_insn_and_split pattern.
24199 (iorsi3): Likewise.
24200 (mulsi3_v2): Add new matching variant.
24201 (andsi3_i): Cleanup pattern.
24202 (rotrsi3_cnt1): Update pattern.
24203 (rotrsi3_cnt8): New pattern.
24204 (ashlsi2_cnt8): Likewise.
24205 (ashlsi2_cnt16): Likewise.
24206 * config/arc/constraints.md (C0p): Update constraint.
24208 (C0x): New pattern.
24209 (Cax): New pattern.
24211 2019-06-10 Martin Liska <mliska@suse.cz>
24213 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24214 Update coding style.
24215 (sem_item_optimizer::dump_cong_classes):
24216 Print how many items are in a non-singular class. Improve
24219 2019-06-10 Martin Liska <mliska@suse.cz>
24221 * value-prof.c (dump_histogram_value): Change dump format.
24222 (gimple_mod_subtract_transform): Remove legacy comment.
24224 2019-06-10 Martin Liska <mliska@suse.cz>
24226 * value-prof.c (dump_histogram_value): Print histogram values
24229 2019-06-10 Martin Liska <mliska@suse.cz>
24231 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24232 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24233 * ipa-profile.c (ipa_profile_generate_summary):
24234 Use get_most_common_single_value.
24235 * tree-profile.c (gimple_init_gcov_profiler):
24236 Instrument with __gcov_one_value_profiler_v2
24237 and __gcov_indirect_call_profiler_v4.
24238 * value-prof.c (dump_histogram_value):
24239 Print all values for HIST_TYPE_SINGLE_VALUE.
24240 (stream_out_histogram_value): Update assert for
24242 (stream_in_histogram_value): Set number of
24243 counters for HIST_TYPE_SINGLE_VALUE.
24244 (get_most_common_single_value): New.
24245 (gimple_divmod_fixed_value_transform):
24246 Use get_most_common_single_value.
24247 (gimple_ic_transform): Likewise.
24248 (gimple_stringops_transform): Likewise.
24249 (gimple_find_values_to_profile): Set number
24250 of counters for HIST_TYPE_SINGLE_VALUE.
24251 * value-prof.h (get_most_common_single_value): New.
24253 2019-06-10 Martin Liska <mliska@suse.cz>
24255 * hash-map.h: Pass default value to hash_table ctor.
24256 * hash-table.h: Add default value to call of a ctor.
24258 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24260 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24261 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24263 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24266 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24267 Call pa_output_function_label.
24268 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24269 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24270 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24272 (pa_linux_output_function_prologue): Declare.
24273 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24274 (pa_output_function_label): New.
24275 (pa_output_function_prologue): Revise to use pa_output_function_label.
24276 (pa_linux_output_function_prologue): New.
24277 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24279 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24281 * tree-vrp.h (value_range_base::intersect): New.
24282 (value_range::intersect_helper): Move from here...
24283 (value_range_base::intersect_helper): ...to here.
24284 * tree-vrp.c (value_range::intersect_helper): Rename to...
24285 (value_range_base::intersect_helper): ...this, and rewrite to
24286 return a value instead of modifying THIS in place.
24287 Also, move equivalence handling...
24288 (value_range::intersect): ...here, while calling intersect_helper.
24289 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24291 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24293 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24295 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24297 * Makefile.in (genprogerr): Add condmd.
24298 (genprog): Remove it here.
24300 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24302 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24304 2019-06-07 Richard Biener <rguenther@suse.de>
24307 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24308 that appear after user labels.
24310 2019-06-07 Martin Liska <mliska@suse.cz>
24312 * cselib.c (cselib_init): Disable hash table
24314 * hash-set.h: Pass new default argument to m_table.
24315 * hash-table.c: Add global variable with hash table
24316 sanitization limit.
24317 * hash-table.h (Allocator>::hash_table): Add new argument
24319 (hashtab_chk_error): New.
24320 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24321 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24322 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24324 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24326 * common.opt (flto-odr-type-merging): Ignore.
24327 * invoke.texi (-flto-odr-type-merging): Remove.
24328 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24329 (can_be_vtable_hashed_p): Remove.
24330 (hash_odr_vtable): Remove.
24331 (odr_vtable_hasher::hash): Remove.
24332 (types_same_for_odr): Remove.
24333 (types_odr_comparable): Remove.
24334 (odr_vtable_hasher::equal): Remove.
24335 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24336 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24337 (get_odr_type): Do not use vtable hash.
24338 (dump_odr_type): Remove commented out code.
24339 (build_type_inheritance_graph): Do not allocate vtable hash.
24340 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24341 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24342 (odr_type_p): Likewise.
24343 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24346 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24348 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24349 immediately after same_types_for_tbaa_p returns -1 and continue
24350 looking for possible exact match; if matching types are arrays
24351 watch for partial overlaps.
24352 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24353 (indirect_refs_may_alias_p): Do type based disambiguation first;
24356 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24358 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24360 2019-06-07 Martin Liska <mliska@suse.cz>
24362 * doc/invoke.texi: Remove param.
24363 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24365 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24366 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24367 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24368 * profile.c (instrument_values): Remove
24369 HIST_TYPE_INDIR_CALL_TOPN.
24370 * tree-profile.c (init_ic_make_global_vars):
24371 Always build __gcov_indirect_call only.
24372 (gimple_init_gcov_profiler): Remove usage
24373 of PARAM_INDIR_CALL_TOPN_PROFILE.
24374 (gimple_gen_ic_profiler): Likewise.
24375 * value-prof.c (dump_histogram_value): Likewise.
24376 (stream_in_histogram_value): Likewise.
24377 (gimple_indirect_call_to_profile): Likewise.
24378 (gimple_find_values_to_profile): Likewise.
24379 * value-prof.h (enum hist_type): Likewise.
24381 2019-06-07 Martin Liska <mliska@suse.cz>
24383 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24386 2019-06-07 Martin Liska <mliska@suse.cz>
24388 PR tree-optimization/78902
24389 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24390 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24391 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24392 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24393 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24394 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24395 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24396 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24397 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24398 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24399 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24400 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24401 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24403 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24404 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24405 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24406 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24407 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24408 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24409 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24410 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24411 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24412 warn_unused_result attribute.
24413 (BUILT_IN_STRDUP): Likewise.
24414 (BUILT_IN_STRNDUP): Likewise.
24415 (BUILT_IN_ALLOCA): Likewise.
24416 (BUILT_IN_CALLOC): Likewise.
24417 (BUILT_IN_MALLOC): Likewise.
24418 (BUILT_IN_REALLOC): Likewise.
24420 2019-06-06 Jim Wilson <jimw@sifive.com>
24423 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24424 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24425 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24427 2019-06-06 Martin Sebor <msebor@redhat.com>
24429 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24430 (handle_builtin_malloc): Remove trailing spaces.
24431 (handle_builtin_memset): Same.
24432 (handle_builtin_memcmp): Same.
24433 (compute_string_length): Same.
24434 (determine_min_objsize): Same.
24435 (handle_builtin_string_cmp): Same.
24436 (handle_char_store): Same. Break up excessively long line.
24438 2019-06-06 Martin Jambor <mjambor@suse.cz>
24440 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24443 2019-06-06 Martin Jambor <mjambor@suse.cz>
24445 * tree-sra.c (struct access): New field grp_same_access_path.
24446 (dump_access): Dump it.
24447 (build_reconstructed_reference): New function.
24448 (build_ref_for_model): Use it if possible.
24449 (path_comparable_for_same_access): New function.
24450 (same_access_path_p): Likewise.
24451 (sort_and_splice_var_accesses): Set the new flag.
24452 (analyze_access_subtree): Likewise.
24453 (propagate_subaccesses_across_link): Propagate zero value of the new
24454 flag down the access tree.
24456 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24458 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24459 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24460 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24461 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24464 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24466 PR tree-optimization/90332
24467 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24468 Handle VALS containing two vectors.
24469 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24471 (@aarch64_combinez<mode>): ... This.
24472 (*aarch64_combinez_be<mode>): Rename to...
24473 (@aarch64_combinez_be<mode>): ... This.
24474 (vec_init<mode><Vhalf>): New define_expand.
24475 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24477 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24479 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24480 library functions only when not optimizing for size.
24481 (ashlsi3): Likewise.
24482 (ashrhi3): Likewise.
24483 (ashrsi3): Likewise.
24484 (lshrhi3): Likewise.
24485 (lshrsi3): Likewise.
24487 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24489 PR rtl-optimization/88751
24490 * ira.c (ira): Use the number of the actually referenced registers
24491 when calculating the threshold.
24493 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24495 * configure: Regenerate.
24497 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24499 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24500 register if it is in memory, so the shift can be emulated with a rotate
24502 (ashrhi3): Likewise.
24503 (lshrhi3): Likewise.
24505 2019-06-06 Martin Liska <mliska@suse.cz>
24507 PR tree-optimization/87954
24508 * match.pd: Simplify mult where both arguments are 0 or 1.
24510 2019-06-06 Richard Biener <rguenther@suse.de>
24512 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24513 put equivalences on UNDEFINED ranges.
24514 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24515 Make sure to drop defs of stmts added during simplification
24518 2019-06-06 Richard Biener <rguenther@suse.de>
24520 * tree-ssa-structalias.c: Include tree-cfg.h.
24521 (make_heapvar): Do not make heap vars artificial.
24522 (find_func_aliases_for_builtin_call): Handle stack allocation
24524 (find_func_aliases): Delay processing of simple enough returns
24526 (set_uids_in_ptset): Adjust.
24527 (find_what_var_points_to): Likewise.
24528 (solve_constraints): Do not dump points-to sets here.
24529 (compute_points_to_sets): Post-process return statements,
24530 amending the escaped solution. Dump points-to sets afterwards.
24531 (ipa_pta_execute): Dump points-to sets.
24533 2019-06-06 Martin Liska <mliska@suse.cz>
24536 * doc/install.texi: Fix HTML headers and
24537 titles for 'Installing GCC' pages.
24539 2019-06-06 Martin Liska <mliska@suse.cz>
24541 * ipa-icf-gimple.h (dump_message_1): Remove.
24542 (dump_message): Likewise.
24543 (return_false_with_message_1): Print also file.
24544 (return_false_with_msg): Likewise.
24545 (return_with_result): Likewise.
24546 (return_with_debug): Likewise.
24547 * ipa-icf.c (sem_function::equals_private): Remove call
24550 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24552 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24553 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24554 memory operand for it.
24555 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24557 2019-06-05 Martin Sebor <msebor@redhat.com>
24559 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24560 Adjust quoting and hyphenation.
24561 * convert.c (convert_to_real_1): Same.
24562 * gcc.c (driver_wrong_lang_callback): Same.
24563 (driver::handle_unrecognized_options): Same.
24564 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24565 * opts-common.c (cmdline_handle_error): Same.
24566 (read_cmdline_option): Same.
24567 * opts-global.c (complain_wrong_lang): Same.
24568 (print_ignored_options): Same.
24569 (handle_common_deferred_options): Same.
24570 * pretty-print.h: Same.
24571 * print-rtl.c (debug_bb_n_slim): Same.
24572 * sched-rgn.c (make_pass_sched_fusion): Same.
24573 * tree-cfg.c (verify_gimple_assign_unary): Same.
24574 (verify_gimple_label): Same.
24575 * tree-ssa-operands.c (verify_ssa_operands): Same.
24576 * varasm.c (do_assemble_alias): Same.
24577 (assemble_alias): Same.
24579 2019-06-05 Richard Henderson <rth@twiddle.net>
24581 * config/alpha/alpha.c (direct_return): Move down after
24582 struct machine_function definition; use saved frame_size;
24584 (struct machine_function): Add sa_mask, sa_size, frame_size.
24585 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24586 (alpha_compute_frame_layout): ... new function.
24587 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24588 (alpha_initial_elimination_offset): Use saved sa_size.
24589 (alpha_vms_initial_elimination_offset): Likewise.
24590 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24591 (alpha_expand_prologue): Use saved frame data. Merge integer
24592 and fp register save loops.
24593 (alpha_expand_epilogue): Likewise.
24594 (alpha_start_function): Use saved frame data.
24595 * config/alpha/alpha-protos.h (direct_return): Update.
24596 (alpha_sa_size): Remove.
24598 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24600 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24601 multiplication by a power-of-two value.
24602 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24603 and turn the modulo operation into a masking operation.
24605 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24608 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24609 with VOIDmode inner operands.
24611 2019-06-05 Richard Biener <rguenther@suse.de>
24613 PR middle-end/90726
24614 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24615 turn an expression graph into a tree.
24617 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24619 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24621 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24622 treat it like explicit monotonic schedule modifier.
24623 (expand_omp_for): Initialize has_lastprivate_conditional.
24624 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24627 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24628 references, lookup in in hash map MEM_REF operand instead of the
24630 (lower_omp_1): When looking for lastprivate conditional assignments,
24631 handle MEM_REFs with REFERENCE_TYPE operands.
24633 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24634 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24635 and references a VLA. Handle references to non-VLAs if is_simd
24636 all privatization clauses like reductions.
24637 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24638 If omp_is_reference, use always omp simd arrays and set
24639 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24640 fails, emit reference initialization.
24642 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24645 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24646 _mm_mask_fpclass_sd_mask): New intrinsics.
24647 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24648 * config/i386/i386-builtin.def
24649 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24651 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24652 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24653 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24654 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24655 case QI_FTYPE_V2SF_INT): Ditto.
24656 * config/i386/sse.md
24657 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24658 Extended to insnstructions with mask operands.
24660 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24662 * config/rs6000/constraints.md (define_register_constraint "wp"):
24664 (define_register_constraint "wq"): Delete.
24665 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24666 (rs6000_init_hard_regno_mode_ok): Adjust.
24667 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24668 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24669 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24670 (define_mode_attr VSa): Delete.
24671 (define_mode_attr VSisa): New.
24672 (rest of file): Adjust.
24673 * doc/md.texi (Machine Constraints): Adjust.
24675 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24677 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24678 (define_attr "enabled"): Handle those new isa values.
24680 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24682 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24683 (define_mode_attr VSr5): Delete.
24684 (define_mode_attr VStype_sqrt): Delete.
24685 (define_mode_iterator VSX_SPDP): Delete.
24686 (define_mode_attr VS_spdp_res): Delete.
24687 (define_mode_attr VS_spdp_insn): Delete.
24688 (define_mode_attr VS_spdp_type): Delete.
24689 (*vsx_sqrt<mode>2): Adjust.
24690 (vsx_<VS_spdp_insn>): Delete, split to...
24691 (vsx_xscvdpsp): ... this. New. And...
24692 (vsx_xvcvspdp): ... this. New. And...
24693 (vsx_xvcvdpsp): ... this. New.
24695 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24697 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24699 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24700 (rest of file): Adjust.
24702 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24704 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24705 (vsx_extract_<mode>_var): Ditto.
24707 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24709 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24712 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24714 * config/rs6000/constraints.md (define_register_constraint "ww"):
24716 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24717 (rs6000_init_hard_regno_mode_ok): Adjust.
24718 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24719 RS6000_CONSTRAINT_ww.
24720 * config/rs6000/rs6000.md: Adjust.
24721 * config/rs6000/vsx.md: Adjust.
24722 * doc/md.texi (Machine Constraints): Adjust.
24724 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24726 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24727 (define_mode_attr sd): New.
24728 (define_mode_attr s): New.
24729 (define_mode_attr Ftrad): Delete.
24730 (define_mode_attr Fvsx): Delete.
24731 (define_mode_attr Fs): Delete.
24732 (rest of file): Use the new mode attributes.
24733 * config.rs6000/vsx.md: Use the new mode attributes.
24735 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24737 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24740 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24742 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24743 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24744 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24746 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24749 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24750 C++ with strict ANSI requirements.
24752 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24754 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24755 computations when step is 1.
24757 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24759 * config/rs6000/constraints.md (define_register_constraint "wf"):
24761 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24762 (rs6000_init_hard_regno_mode_ok): Adjust.
24763 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24764 RS6000_CONSTRAINT_wf.
24765 * config/rs6000/rs6000.md: Adjust.
24766 * config/rs6000/vsx.md: Adjust.
24767 * doc/md.texi (Machine Constraints): Adjust.
24769 2019-06-04 Andrew Pinski <apinski@marvell.com>
24771 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24774 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24776 * config/rs6000/constraints.md (define_register_constraint "wd"):
24778 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24779 (rs6000_init_hard_regno_mode_ok): Adjust.
24780 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24781 RS6000_CONSTRAINT_wd.
24782 * config/rs6000/rs6000.md: Adjust.
24783 * config/rs6000/vsx.md: Adjust.
24784 * doc/md.texi (Machine Constraints): Adjust.
24786 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24788 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24789 (rest of file): Adjust.
24791 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24793 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24794 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24795 (vsx_splat_<mode>_reg): Adjust.
24797 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24799 * config/rs6000/constraints.md (define_register_constraint "ws"):
24801 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24802 (rs6000_init_hard_regno_mode_ok): Adjust.
24803 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24804 RS6000_CONSTRAINT_ws.
24805 * config/rs6000/rs6000.md: Adjust.
24806 * config/rs6000/vsx.md: Adjust.
24807 * doc/md.texi (Machine Constraints): Adjust.
24809 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24811 * config/rs6000/constraints.md (define_register_constraint "wv"):
24813 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24814 (rs6000_init_hard_regno_mode_ok): Adjust.
24815 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24816 RS6000_CONSTRAINT_wv.
24817 * config/rs6000/rs6000.md: Adjust.
24818 * config/rs6000/vsx.md: Adjust.
24819 * doc/md.texi (Machine Constraints): Adjust.
24821 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24823 * config/rs6000/constraints.md (define_register_constraint "wi"):
24825 (define_register_constraint "wt"): Delete.
24826 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24827 (rs6000_init_hard_regno_mode_ok): Adjust.
24828 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24829 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24830 * config/rs6000/rs6000.md: Adjust.
24831 * config/rs6000/vsx.md: Adjust.
24832 * doc/md.texi (Machine Constraints): Adjust.
24834 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24836 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24838 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24839 default_elf_asm_output_external.
24841 2019-06-04 Martin Liska <mliska@suse.cz>
24843 * ipa-icf.c (INCLUDE_LIST): Remove.
24844 (sem_item_optimizer::execute): Remove call to init_wpa.
24845 * ipa-icf.h (init_wpa): Remove.
24847 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24849 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24850 conditional on combined for simd.
24851 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24853 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24854 constructs, don't remove lastprivate_conditional_map, but instead set
24855 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24856 to parent construct temporaries.
24857 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24858 like !ctx->lastprivate_conditional_map.
24859 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24860 use up->outer context instead of up.
24861 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24862 gimple_omp_for_combined_p.
24863 (expand_omp_for_static_nochunk): Likewise.
24864 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24865 probably moved over into expand_omp_for_generic rather than being copied
24868 2019-06-04 Martin Liska <mliska@suse.cz>
24870 * value-prof.c (dump_histogram_value): Fix typo.
24871 (gimple_mod_subtract_transform): Likewise.
24873 2019-06-04 Richard Biener <rguenther@suse.de>
24875 PR middle-end/90726
24876 * tree-chrec.c (chrec_contains_symbols): Add to visited.
24877 (tree_contains_chrecs): Likewise.
24878 (chrec_contains_symbols_defined_in_loop): Move here and avoid
24879 exponential behaivor from ...
24880 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24882 (expression_expensive_p): Avoid exponential behavior and compute
24883 expanded size, rejecting any expansion.
24884 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
24885 (idx_contains_abnormal_ssa_name_p): Likewise.
24886 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
24887 (contains_abnormal_ssa_name_p): Simplify and use
24888 walk_tree_without_duplicates.
24890 2019-06-04 Richard Biener <rguenther@suse.de>
24892 PR tree-optimization/90738
24894 2019-06-03 Richard Biener <rguenther@suse.de>
24896 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
24897 full reference tree and record in ref->ref.
24898 (vn_reference_lookup_3): Pass in original ref to
24899 ao_ref_init_from_vn_reference.
24900 (vn_reference_lookup): Likewise.
24901 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
24902 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
24903 Handle non-decl bases in the original reference.
24905 2019-06-04 Martin Liska <mliska@suse.cz>
24907 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
24908 number of references.
24909 (sem_item_optimizer::do_congruence_step):
24910 (sem_item_optimizer::worklist_push): Dump how references
24912 (sem_item_optimizer::worklist_pop): Use heap.
24913 (sem_item_optimizer::process_cong_reduction): Likewise.
24914 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
24916 2019-06-04 Martin Liska <mliska@suse.cz>
24918 * ipa-icf.h (struct sem_usage_pair_hash): New.
24919 (sem_usage_pair_hash::hash): Likewise.
24920 (sem_usage_pair_hash::equal): Likewise.
24921 (struct sem_usage_hash): Likewise.
24922 * ipa-icf.c (sem_item::sem_item): Initialize
24923 referenced_by_count.
24924 (sem_item::add_reference): Register a reference
24925 in ref_map and not in target->usages.
24926 (sem_item::setup): Remove initialization of
24928 (sem_item::~sem_item): Remove usage of dead vectors.
24929 (sem_item::dump): Remove dump of references.
24930 (sem_item_optimizer::sem_item_optimizer): Initialize
24932 (sem_item_optimizer::read_section): Remove useless
24934 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
24935 (sem_item_optimizer::build_graph): Pass m_references
24936 to ::add_reference.
24937 (sem_item_optimizer::verify_classes): Remove usage of dead
24939 (sem_item_optimizer::traverse_congruence_split): Return true
24940 when a class is split.
24941 (sem_item_optimizer::do_congruence_step_for_index): Use
24942 hash_map for look up of (sem_item *, index). That brings
24943 significant speed up.
24944 (sem_item_optimizer::do_congruence_step): Return true
24945 when a split is done.
24946 (congruence_class::is_class_used): Use referenced_by_count.
24948 2019-06-04 Alan Modra <amodra@gmail.com>
24951 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
24954 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24956 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
24957 * config/rs6000/rs6000.c (direct_move_p): Adjust.
24958 (rs6000_secondary_reload_simple_move): Adjust.
24959 (rs6000_opt_masks): Neuter the "mfpgpr" option.
24960 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
24961 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
24964 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
24965 (floatunssi<mode>2_lfiwzx): Adjust.
24966 (fix_trunc<mode>si2_stfiwx): Adjust.
24967 (fixuns_trunc<mode>si2_stfiwx): Adjust.
24968 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
24969 (mfpgpr): Mark as deprecated.
24970 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
24971 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
24972 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
24974 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
24976 * config/rs6000/constraints.md (define_register_constraint "wg"):
24978 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24979 RS6000_CONSTRAINT_wg.
24980 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24981 (rs6000_init_hard_regno_mode_ok): Adjust.
24982 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
24983 Delete "wg" alternatives.
24984 * doc/md.texi (Machine Constraints): Adjust.
24986 2019-06-03 Alan Modra <amodra@gmail.com>
24988 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
24989 (get_uncond_jump_length): Assert length less than INT_MAX and
24992 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
24994 PR middle-end/64242
24995 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
24997 (expand_builtin_nonlocal_goto): Likewise.
24999 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25001 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25002 (aarch64_asm_output_external): Declare.
25003 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25004 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25005 (aarch64_asm_output_alias): New.
25006 (aarch64_asm_output_external): New.
25007 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25008 (ASM_OUTPUT_EXTERNAL): Define.
25010 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25011 * tree-vrp.h (value_range_base::nonzero_p): New.
25012 (value_range_base::set_nonnull): Rename to...
25013 (value_range_base::set_nonzero): ...this.
25014 (value_range_base::set_null): Rename to...
25015 (value_range_base::set_zero): ...this.
25016 (value_range::set_nonnull): Remove.
25017 (value_range::set_null): Remove.
25018 * tree-vrp.c (range_is_null): Remove.
25019 (range_is_nonnull): Remove.
25020 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25021 instead of range_is_*null.
25022 (extract_range_from_unary_expr): Same.
25023 (value_range_base::set_nonnull): Rename to...
25024 (value_range_base::set_nonzero): ...this.
25025 (value_range::set_nonnull): Remove.
25026 (value_range_base::set_null): Rename to...
25027 (value_range_base::set_zero): ...this.
25028 (value_range::set_null): Remove.
25029 (extract_range_from_binary_expr): Rename set_*null uses to
25031 (extract_range_from_unary_expr): Same.
25032 (union_helper): Same.
25033 * vr-values.c (get_value_range): Use set_*zero instead of
25035 (vr_values::extract_range_from_binary_expr): Same.
25036 (vr_values::extract_range_basic): Same.
25038 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25041 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25043 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25045 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25046 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25048 (aarch64_<su>abd<mode>_3): ... This.
25049 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25051 2019-06-03 Richard Biener <rguenther@suse.de>
25053 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25054 full reference tree and record in ref->ref.
25055 (vn_reference_lookup_3): Pass in original ref to
25056 ao_ref_init_from_vn_reference.
25057 (vn_reference_lookup): Likewise.
25058 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25059 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25060 Handle non-decl bases in the original reference.
25062 2019-06-03 Martin Liska <mliska@suse.cz>
25064 * doc/generic.texi: Remove Java Trees.
25066 2019-06-03 Martin Liska <mliska@suse.cz>
25068 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25069 returns 0 when operands are equal.
25071 2019-06-03 Richard Biener <rguenther@suse.de>
25073 PR tree-optimization/90716
25074 * tree-loop-distribution.c (destroy_loop): Process blocks in
25077 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25080 * vector-builder.h (vector_builder::count_dups): New method.
25081 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25083 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25084 (vec_init<mode><Vel>): New pattern.
25085 * config/aarch64/aarch64.c (emit_insr): New function.
25086 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25087 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25088 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25089 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25091 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25093 PR tree-optimization/90681
25094 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25095 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25096 special case for SLP, but fail on non-groupped loads.
25098 2019-06-03 Martin Liska <mliska@suse.cz>
25100 * cfg.c (debug): Use TDF_DETAILS for debug and
25101 print edge info only once.
25103 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25106 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25108 2019-06-01 Martin Sebor <msebor@redhat.com>
25110 PR middle-end/90694
25111 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25113 2019-05-31 Jan Hubicka <jh@suse.cz>
25115 * alias.c: Include ipa-utils.h.
25116 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25117 * ipa-devirt.c (prevailing_odr_type): New.
25118 * ipa-utils.h (previaling_odr_type): Declare.
25120 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25121 Hongtao Liu <hongtao.liu@intel.com>
25124 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25125 NOTE_INSN_DELETED_LABEL check.
25127 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25128 Robert Suchanek <robert.suchanek@mips.com>
25130 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25131 and 3rd operands of the fmadd/fmsub/maddv builtin.
25133 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25135 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25136 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25137 on OMP_SIMD if not nested inside of worksharing loop that also has
25138 lastprivate conditional clause for the same decl.
25139 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25140 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25142 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25144 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25146 (lower_lastprivate_clauses): Likewise.
25147 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25148 calling lower_rec_input_clauses.
25149 (lower_omp_for): Likewise.
25150 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25151 clause on simd construct.
25152 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25153 OMP_CLAUSE__CONDTEMP_ clause is present.
25155 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25158 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25161 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25162 TEX_D32, TEX_D64 or TEX_D128.
25164 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25166 * match.pd (~(vec?cst1:cst2)): New transformation.
25168 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25170 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25171 ((size_t)(A /[ex] B) CMP C): New transformation.
25173 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25175 * doc/md.texi: Document define_insn_and_rewrite.
25176 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25177 * gensupport.c (queue_elem): Update comment.
25178 (replace_operands_with_dups): New function.
25179 (gen_rewrite_sequence): Likewise.
25180 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25181 * read-rtl.c (apply_subst_iterator): Likewise.
25182 (add_condition_to_rtx, named_rtx_p): Likewise.
25183 (rtx_reader::read_rtx_operand): Likewise.
25184 * config/aarch64/aarch64-sve.md
25185 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25186 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25187 define_insn_and_rewrite.
25188 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25189 Remove separate define_split.
25191 2019-05-31 Jan Hubicka <jh@suse.cz>
25193 * tree-ssa-alias.c (type_has_components_p): New function.
25194 (aliasing_component_refs_p): Use it.
25196 2019-05-31 Martin Liska <mliska@suse.cz>
25198 * gdbhooks.py: Add const_tree to TreePrinter.
25200 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25203 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25204 * doc/invoke.texi (Debugging Options): Document new default of
25205 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25207 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25209 PR tree-optimization/90671
25210 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25211 template_block used to be empty on the first call, don't use
25212 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25213 seq with bb_seq and set it with set_bb_seq.
25215 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25217 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25219 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25220 Michael Meissner <meissner@linux.ibm.com>
25222 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25223 (prefixed_mem_operand): Likewise.
25224 (non_prefixed_mem_operand): Likewise.
25225 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25227 * config/rs6000/rs6000.c (print_operand_address): Handle
25228 PC-relative addresses.
25229 (mode_supports_prefixed_address_p): New function.
25230 (rs6000_prefixed_address): New function.
25231 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25232 (SYMBOL_REF_PCREL_P): Likewise.
25234 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25236 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25237 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25238 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25239 is nested inside of parallel region, add _condtemp_ clause to both.
25240 * tree-nested.c (convert_nonlocal_omp_clauses,
25241 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25243 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25245 * omp-general.c (omp_extract_for_data): Compute it.
25246 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25247 (lower_rec_input_clauses): Likewise.
25248 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25249 clause is already present, just add one further one after it.
25250 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25251 (lower_send_shared_vars): Clear _condtemp_ vars.
25252 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25253 or section or taskgroup.
25254 * omp-expand.c (determine_parallel_type): Disallow combining only if
25255 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25256 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25257 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25258 expand_omp_for_static_chunk, expand_omp_for): Use
25259 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25260 determine if a special set of API routines are needed and if condtemp
25261 needs to be initialized, while always initialize cond_var if
25262 fd->lastprivate_conditional is non-zero.
25264 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25265 Michael Meissner <meissner@linux.ibm.com>
25267 * config/rs6000/constraints.md (eI): New constraint.
25268 * config/rs6000/predicates.md (cint34_operand): New predicate.
25269 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25270 (SIGNED_34BIT_OFFSET_P): Likewise.
25271 * doc/md.texi (eI): Document constraint.
25273 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25275 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25277 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25278 Michael Meissner <meissner@linux.ibm.com>
25280 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25281 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25282 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25283 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25284 (OTHER_FUTURE_MASKS): Likewise.
25285 (POWERPC_MASKS): Likewise.
25286 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25287 specified without -mprefixed-addr or -mcpu=future. Error if
25288 -mprefixed-addr is specified without -mcpu=future.
25289 (rs6000_opt_masks): Add entry for prefixed-addr.
25290 * rs6000.opt (mprefixed-addr): New option.
25292 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25294 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25295 cfun->is_thunk check.
25297 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25299 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25302 2019-05-30 Martin Liska <mliska@suse.cz>
25304 * gdbinit.in: Fix 'ptc' command. Add trt
25305 that prints TREE_TYPE($).
25307 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25308 Alan Modra <amodra@gmail.com>
25310 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25312 (rs6000_indirect_call_template_1): ...and here.
25313 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25314 plt16_ha, plt16_lo, mtctr indirect calls. Use
25315 rs6000_pltseq_enum.
25316 (rs6000_decl_ok_for_sibcall): New function.
25317 (rs6000_function_ok_for_sibcall): Refactor.
25318 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25319 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25320 when pcrel. Reorganize.
25321 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25322 * rs6000.h (rs6000_pltseq_enum): New enum.
25323 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25324 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25325 (*pltseq_plt16_ha): Likewise.
25326 (*pltseq_plt16_lo): Likewise.
25327 (*pltseq_mtctr): Likewise.
25328 (*pltseq_plt_pcrel): New insn.
25329 (*call_local_aix): Handle @notoc calls.
25330 (*call_value_local_aix): Likewise.
25331 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25332 (*call_value_nonlocal_aix): Likewise.
25333 (*call_indirect_pcrel): New insn.
25334 (*call_value_indirect_pcrel): Likewise.
25336 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25338 * config/i386/sse.md (*save_multiple<mode>): Rename from
25339 save_multiple<mode>.
25340 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25341 (*restore_multiple_and_return<mode>): Rename from
25342 restore_multiple_and_return<mode>.
25343 (*restore_multiple_leave_return<mode>): Rename from
25344 restore_multiple_leave_return<mode>.
25346 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25348 * config.gcc (rx-*-linux*): New target.
25349 * config/rx/elf.opt: New file.
25350 * config/rx/linux.h: Likewise.
25351 * config/rx/t-linux: Likewise.
25352 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25354 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25355 (ASM_APP_OFF): Likewise.
25356 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25359 2019-05-29 Jan Hubicka <jh@suse.cz>
25361 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25362 variants are pointer equivalent.
25364 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25366 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25367 * config/aarch64/aarch64-sve2.md: New file.
25368 (<u>avg<mode>3_floor): New pattern.
25369 (<u>avg<mode>3_ceil): Likewise.
25370 (*<sur>h<addsub><mode>): Likewise.
25371 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25372 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25374 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25377 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25378 for var_opt_string printing. In cl_optimization_print_diff, print
25379 (null) instead of invoking undefined behavior if one of the
25380 var_opt_string pointers is NULL and use && instead of first || in the
25381 guarding condition. For var_target_other options, handle const char *
25382 target variables similarly to const char * optimize node variables.
25384 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25386 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25387 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25388 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25389 Add autib1716 and pacib1716 initialisation.
25390 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25391 for autib1716 and pacib1716.
25392 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25393 aarch64_post_cfi_startproc): Define.
25394 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25395 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25396 aarch64_handle_pac_ret_protection): Set default sign key to A.
25397 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25398 aarch64_expand_prologue): Add check for b-key.
25399 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25400 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25401 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25402 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25403 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25404 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25405 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25406 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25407 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25408 pauth_hint_num_a with pauth_hint_num.
25409 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25410 pauth_hint_num_a with pauth_hint_num.
25411 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25412 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25413 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25414 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25415 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25416 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25417 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25418 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25419 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25420 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25421 UNSPEC_AUTIA1716 respectively.
25422 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25423 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25424 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25425 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25426 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25427 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25429 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25431 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25432 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25433 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25434 explicit clause on combined parallel into implicit shared clause.
25435 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25436 and firstprivate if the decl has one too from combined parallel to
25437 the worksharing construct.
25439 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25440 Michael Meissner <meissner@linux.ibm.com>
25442 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25444 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25446 * rtl.h (LABEL_REF_P): New #define.
25448 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25450 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25452 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25454 * internal-fn.c: Marked mask_load_direct as vectorizable.
25455 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25456 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25457 combined even if masks different with allow_slp_p param.
25458 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25459 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25460 dissolve SLP-only vectorizable groups when SLP has been discarded.
25461 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25462 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25464 (vect_build_slp_tree_1): Fixed comment typo.
25465 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25466 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25467 loads for SLP only.
25468 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25470 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25472 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25474 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25475 Remove obsolete use_thunk reference.
25476 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25477 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25478 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25479 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25480 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25481 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25482 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25483 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25484 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25486 2019-05-28 Nathan Sidwell <nathan@acm.org>
25488 * tree.h (IDENTIFIER_ANON_P): New.
25489 (anon_aggrname_format, anon_aggname_p): Don't declare.
25490 (make_anon_name): Declare.
25491 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25492 (hash_tree): Likewise.
25493 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25494 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25495 (anon_cnt, make_anon_name): New.
25497 2019-05-28 Martin Liska <mliska@suse.cz>
25500 * opts-global.c (decode_options): Print help for all
25501 help_option_arguments.
25502 * opts.c (print_help): Add new argument.
25503 (common_handle_option): Remember all values into
25504 help_option_arguments.
25505 * opts.h (print_help): Add new argument.
25507 2019-05-28 Martin Liska <mliska@suse.cz>
25510 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25511 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25512 (func_checker::compare_bb): Call compare_loops.
25514 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25516 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25517 on sections construct.
25518 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25520 (lower_omp_sections): Handle lastprivate conditional.
25521 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25522 lastprivate_conditional_map.
25523 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25525 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25526 critical, taskgroup and section regions when looking for a region
25527 with non-NULL lastprivate_conditional_map.
25529 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25531 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25532 (*ix86_gen_sub3): Ditto.
25533 (*ix86_gen_sub3_carry): Ditto.
25534 (*ix86_gen_one_cmpl2): Ditto.
25535 (*ix86_gen_andsp): Ditto.
25536 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25537 (gen_and2_insn): New static function.
25538 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25539 Use gen_add3_insn instead of ix86_gen_add3.
25540 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25541 instead of ix86_gen_add3.
25542 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25543 Use gen_sub3_insn instead of ix86_gen_sub3.
25544 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25545 instead of ix86_gen_add3.
25546 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25547 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25548 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25549 * config/i386/i386-options.c (ix86_option_override_internal):
25550 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25551 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25553 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25555 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25556 and DW_OP_GNU_const_index opcodes.
25558 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25560 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25562 2019-05-27 Richard Biener <rguenther@suse.de>
25564 PR tree-optimization/90637
25565 * tree-ssa-sink.c (statement_sink_location): Honor the
25566 computed sink location for single-uses.
25568 2019-05-27 Richard Biener <rguenther@suse.de>
25570 PR middle-end/90610
25571 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25574 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25576 * config/i386/i386.md (@sub<mode>3_carry): Rename
25577 from sub<mode>3_carry.
25578 (@leave_<mode>): New expander.
25579 (*leave): Rename from leave.
25580 (*leave_rex64): Rename from leave_rex64.
25581 (@monitorx_<mode>): Rename from monitorx_<mode>.
25582 (@clzero_<mode>): Rename from clzero_<mode>.
25583 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25584 from sse3_monitor_<mode>.
25585 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25586 (*ix86_gen_leave): Ditto.
25587 (*ix86_gen_monitor): Ditto.
25588 (*ix86_gen_monitorx): Ditto.
25589 (*ix86_gen_clzero): Ditto.
25590 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25591 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25592 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25593 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25594 Use gen_sse3_monitor instead of ix86_gen_monitor.
25595 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25596 instead of ix86_gen_monitorx.
25597 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25598 instead of ix86_gen_clzero.
25599 * config/i386/i386-options.c (ix86_option_override_internal):
25600 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25601 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25603 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25605 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25606 Rename from tls_global_dynamic_64_<mode>.
25607 (@tls_local_dynamic_base_64_<mode>): Rename from
25608 tls_local_dynamic_base_64_<mode>.
25609 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25610 Remove indirect function.
25611 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25612 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25613 instead of ix86_gen_tls_global_dynamic_64.
25614 Use gen_tls_local_dynamic_base_64 instead of
25615 ix86_gen_tls_local_dynamic_base_64.
25616 * config/i386/i386-options.c (ix86_option_override_internal):
25617 Do not initialize ix86_gen_tls_global_dynamic_64 and
25618 ix86_gen_tls_local_dynamic_base_64.
25620 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25622 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25623 Rename from pro_epilogue_adjust_stack_<mode>_add.
25624 (@pro_epilogue_adjust_stack_sub_<mode>)
25625 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25626 (@allocate_stack_worker_probe_<mode>):
25627 Rename from allocate_stack_worker_probe_<mode>.
25628 (allocate_stack): Use gen_allocate_stack_worker_probe.
25629 (probe_stack): Use gen_probe_stack_1.
25630 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25631 (@adjust_stack_and_probe_<mode>): Rename from
25632 adjust_stack_and_probe<mode>.
25633 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25634 (stack_protect_set): Use gen_stack_protect_set_1.
25635 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25636 (stack_protect_test): Use gen_stack_protect_test_1.
25637 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25638 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25639 Remove indirect function.
25640 (*ix86_gen_adjust_stack_and_probe): Ditto.
25641 (*ix86_gen_probe_stack_range): Ditto.
25642 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25643 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25644 (ix86_adjust_stack_and_probe_stack_clash): Use
25645 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25646 (ix86_adjust_stack_and_probe): Ditto.
25647 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25648 of ix86_gen_probe_stack_range.
25649 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25650 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25651 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25652 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25653 CODE_FOR_stack_protect_test_{si,di}.
25654 * config/i386/i386-options.c (ix86_option_override_internal):
25655 Do not initialize ix86_gen_allocate_stack_worker,
25656 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25658 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25660 * doc/invoke.texi (Link Options): Many editorial changes around
25663 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25665 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25666 pre-Solaris 11 referene and most Studio compiler details.
25668 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25671 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25672 DImode to SImode in floating-point registers on 64-bit target.
25673 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25674 register_operand in xmpyu patterns.
25676 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25678 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25679 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25680 OMP_CLAUSE__REDUCTEMP_.
25681 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25682 OMP_CLAUSE__CONDTEMP_.
25683 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25684 * tree-pretty-print.c (dump_omp_clause): Likewise.
25685 * tree-nested.c (convert_nonlocal_omp_clauses,
25686 convert_local_omp_clauses): Likewise.
25687 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25688 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25689 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25691 (gimplify_omp_for): Warn and disable conditional modifier from
25692 lastprivate on loop iterators.
25693 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25695 * omp-general.c (omp_extract_for_data): Initialize it.
25696 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25698 (delete_omp_context): Delete it.
25699 (lower_lastprivate_conditional_clauses): New function.
25700 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25701 handle lastprivate conditional clauses.
25702 (lower_reduction_clauses): Add CLIST argument, emit it into
25703 the critical section if any.
25704 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25705 lower_reduction_clauses callers.
25706 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25707 to lower_lastprivate_clauses.
25708 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25709 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25710 clist into a critical section if not emitted there already by
25711 lower_reduction_clauses.
25712 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25714 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25715 conditional variables.
25716 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25718 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25719 expand_omp_for_static_chunk): Handle lastprivate conditional.
25720 (expand_omp_for): Handle fd.lastprivate_conditional like
25723 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25725 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25726 kernel does not exit cleanly.
25727 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25729 2019-05-24 Jason Merrill <jason@redhat.com>
25732 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25734 2019-05-24 Richard Biener <rguenther@suse.de>
25737 * tree-loop-distribution.c (struct partition): Add location
25739 (partition_alloc): Initialize all fields.
25740 (generate_memset_builtin): Use the location recorded in the
25741 partition for the generated call.
25742 (generate_memcpy_builtin): Likewise.
25743 (classify_partition): Record the location of a single store
25744 as location for the partition.
25746 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25748 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25751 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25754 * common/config/aarch64/aarch64-common.c
25755 (aarch64_rewrite_selected_cpu): Change local temporary variable
25756 type from unsigned long to uint64_t.
25757 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25758 aarch64_get_extension_string_for_isa_flags): Change declaration to
25759 match new definition by replacing unsigned long with uint64_t.
25761 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25764 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25765 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25766 Handle stack_protect_test_<mode> codegen similarly to corresponding
25769 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25771 * config/i386/darwin.h: Reject -mfentry*.
25772 * doc/sourcebuild.texi: Document mfentry target support.
25774 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25776 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25777 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25778 false for PC-relative functions.
25779 (rs6000_output_function_prologue): Change called function name to
25780 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25781 name,1" for PC-relative functions.
25782 (rs6000_elf_declare_function_name): Change called function name to
25783 rs6000_global_entry_point_prologue_needed_p.
25785 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25788 * config/i386/i386.c (gen_rtx_cost):
25789 Use ix86_tune_cost instead of ix86_cost.
25791 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25792 Michael Meissner <meissner@linux.ibm.com>
25793 Segher Boessenkool <segher@kernel.crashing.org>
25795 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25797 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25798 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25799 (rs6000_fndecl_pcrel_p): Likewise.
25800 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25801 error if -mpcrel is requested without -mcpu=future.
25802 (rs6000_opt_masks): Add entry for pcrel.
25803 (rs6000_fndecl_pcrel_p): New function.
25804 (rs6000_pcrel_p): Likewise.
25805 * config/rs6000/rs6000.opt (mpcrel): New option.
25806 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25808 2019-05-23 Jan Hubicka <jh@suse.cz>
25809 Martin Liska <mliska@suse.cz>
25811 PR tree-optimization/90576
25812 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25814 (aliasing_component_refs_p): Fix three way size compare conditional;
25815 give up earlier in case we can not decide on equivalence.
25817 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25818 Michael Meissner <meissner@linux.ibm.com>
25819 Segher Boessenkool <segher@kernel.crashing.org>
25821 * config.gcc: Add future cpu.
25822 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25823 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25825 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25826 (RS6000_CPU): New instantiation for future cpu.
25827 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25829 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25830 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25831 * config/rs6000/rs6000-tables.opt: Regenerate.
25832 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25833 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25834 (rs6000_machine_from_flags): Handle future cpu.
25835 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25836 PROCESSOR_POWER9 for now.
25837 (rs6000_adjust_cost): Likewise.
25838 (rs6000_issue_rate): Likewise.
25839 (rs6000_register_move_cost): Likewise.
25840 (rs6000_opt_masks): Add entry for future.
25841 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25842 (MASK_FUTURE): New #define.
25843 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25844 * config/rs6000/rs6000.opt (mfuture): New target option.
25845 * doc/invoke.texi (mcpu): Add future cpu.
25847 2019-05-23 Martin Liska <mliska@suse.cz>
25850 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25851 operation points to a temporary (pointed via tree_to_wide_ref)
25852 that is out of scope after the &.
25854 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25857 * doc/extend.texi (Function Names): Add missing word.
25859 2019-05-23 Richard Biener <rguenther@suse.de>
25861 PR tree-optimization/88440
25862 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25864 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25866 (generate_memcpy_builtin): Likewise.
25867 (distribute_loop): Pass in whether to only distribute patterns.
25868 (prepare_perfect_loop_nest): Also allow size optimization.
25869 (pass_loop_distribution::execute): When optimizing a loop
25870 nest for size allow pattern replacement.
25872 2019-05-23 Jakub Jelinek <jakub@redhat.com>
25875 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25878 2019-05-23 Martin Liska <mliska@suse.cz>
25881 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25882 expression similarly to gimplify_decl_expr.
25884 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25886 * cse.c (cse_dump_path): s/dump_file/f.
25888 2019-05-22 David Malcolm <dmalcolm@redhat.com>
25891 * diagnostic-format-json.cc: Include "selftest.h".
25892 (json_from_expanded_location): Only add "file" key for non-NULL
25894 (json_from_location_range): Don't add "start" and "finish"
25895 children if they are UNKNOWN_LOCATION.
25896 (selftest::test_unknown_location): New selftest.
25897 (selftest::test_bad_endpoints): New selftest.
25898 (selftest::diagnostic_format_json_cc_tests): New function.
25899 * json.cc (json::object::get): New function.
25900 (selftest::test_object_get): New selftest.
25901 (selftest::json_cc_tests): Call it.
25902 * json.h (json::object::get): New decl.
25903 * selftest-run-tests.c (selftest::run_tests): Call
25904 selftest::diagnostic_format_json_cc_tests.
25905 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
25908 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
25909 Andrew Stubbs <amd@codesourcery.com>
25911 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
25912 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
25913 (kernel): Rename to...
25914 (main_kernel): ... this.
25915 (load_image): Load _init_array and _fini_array kernels.
25916 (run): Add argument for kernel to run.
25917 (main): Run init_array_kernel before main_kernel, and
25918 fini_array_kernel after.
25919 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
25920 amdgpu_hsa_kernel attribute on functions.
25921 (gcn_disable_constructors): Delete.
25922 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
25923 * config/gcn/crt0.c (size_t): Define.
25924 (_init_array, _fini_array): New.
25925 (__preinit_array_start, __preinit_array_end,
25926 __init_array_start, __init_array_end,
25927 __fini_array_start, __fini_array_end): Declare weak references.
25929 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
25931 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
25933 2019-05-22 Jason Merrill <jason@redhat.com>
25935 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25937 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
25940 * config/i386/i386-options.c (ix86_init_machine_status): Set
25941 stack_frame_required to true.
25942 * config/i386/i386.c (ix86_get_frame_size): New function.
25943 (ix86_frame_pointer_required): Replace get_frame_size with
25944 ix86_get_frame_size.
25945 (ix86_compute_frame_layout): Likewise.
25946 (ix86_find_max_used_stack_alignment): Changed to void. Set
25947 stack_frame_required.
25948 (ix86_finalize_stack_frame_flags): Always call
25949 ix86_find_max_used_stack_alignment. Replace get_frame_size with
25950 ix86_get_frame_size.
25951 * config/i386/i386.h (machine_function): Add stack_frame_required.
25953 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
25955 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
25957 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
25959 * common/config/aarch64/aarch64-common.c
25960 (struct aarch64_option_extension, struct processor_name_to_arch,
25961 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
25962 aarch64_contains_opt,
25963 aarch64_get_extension_string_for_isa_flags): Change type of
25964 variables storing flags to uint64_t.
25965 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
25966 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
25967 * config/aarch64/aarch64.c (struct processor,
25968 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
25969 aarch64_validate_march, aarch64_override_options,
25970 aarch64_option_print, aarch64_handle_attr_isa_flags,
25971 aarch64_declare_function_name, aarch64_start_file): Make flag
25972 variables uint64_t.
25973 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
25974 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
25975 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
25976 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
25977 * config/aarch64/driver-aarch64.c
25978 (struct aarch64_arch_extension, struct aarch64_core_data,
25979 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
25980 flag variables uint64_t.
25981 * doc/invoke.texi: Add documentation for new arguments.
25983 2019-05-22 Richard Biener <rguenther@suse.de>
25985 * alias.c (ao_ref_from_mem): Move stack-slot sharing
25987 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
25989 2019-05-22 Martin Liska <mliska@suse.cz>
25992 * doc/extend.texi: Document the change.
25994 2019-05-22 Richard Biener <rguenther@suse.de>
25996 PR tree-optimization/90450
25997 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
25998 (mem_ref_hasher::equal): Check it.
25999 (mem_ref_alloc): Initialize it.
26000 (gather_mem_refs_stmt): Set it.
26002 2019-05-22 Richard Biener <rguenther@suse.de>
26004 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26006 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26009 2019-05-22 Alan Modra <amodra@gmail.com>
26011 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26012 (ASM_CPU_SPEC): Conditionally add -many.
26013 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26014 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26015 (rs6000_file_start): ..extracted from here, and modified to
26017 (rs6000_output_function_prologue): Emit .machine as necessary.
26019 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26021 PR middle-end/90553
26022 * ira-lives.c (process_bb_node_lives): Consider defs
26023 for a call insn to be die before the call, not after.
26025 * function.c (assign_parm_setup_block): Raise alignment of
26026 stacked parameter only for STRICT_ALIGNMENT targets.
26028 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26030 * config/rs6000/constraints.md (define_register_constraint "wz"):
26032 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26033 RS6000_CONSTRAINT_wz.
26034 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26035 (rs6000_init_hard_regno_mode_ok): Adjust.
26036 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26037 * doc/md.texi (Machine Constraints): Adjust.
26039 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26041 * config/rs6000/constraints.md (define_register_constraint "wl"):
26043 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26044 RS6000_CONSTRAINT_wl.
26045 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26046 (rs6000_init_hard_regno_mode_ok): Adjust.
26047 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26048 * doc/md.texi (Machine Constraints): Adjust.
26050 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26052 * config/rs6000/constraints.md (define_register_constraint "wm"):
26054 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26055 RS6000_CONSTRAINT_wm.
26056 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26057 (rs6000_init_hard_regno_mode_ok): Adjust.
26058 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26059 * doc/md.texi (Machine Constraints): Adjust.
26061 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26063 * config/rs6000/constraints.md (define_register_constraint "wk"):
26065 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26066 RS6000_CONSTRAINT_wk.
26067 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26068 (rs6000_init_hard_regno_mode_ok): Adjust.
26069 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26070 * doc/md.texi (Machine Constraints): Adjust.
26072 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26074 * config/rs6000/constraints.md (define_register_constraint "wj"):
26076 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26077 RS6000_CONSTRAINT_wj.
26078 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26079 (rs6000_init_hard_regno_mode_ok): Adjust.
26080 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26082 * config/rs6000/vsx.md: Ditto.
26083 * doc/md.texi (Machine Constraints): Adjust.
26085 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26087 * config/rs6000/constraints.md (define_register_constraint "wh"):
26089 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26090 RS6000_CONSTRAINT_wh.
26091 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26092 (rs6000_init_hard_regno_mode_ok): Adjust.
26093 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26094 * doc/md.texi (Machine Constraints): Adjust.
26096 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26099 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26100 Avoid calling gen_lowpart with CONST operand.
26102 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26104 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26105 field template_last_to_copy.
26106 (ssa_create_duplicates): Set it, and use it. Attempt to
26107 preserve more debug stmts.
26109 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26111 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26112 (signbit<mode>2): New expander
26114 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26117 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26118 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26120 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26122 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26123 %ebx and %ecx bafore calling cpuid with leaf 1 or
26124 non-constant leaf argument.
26126 2019-05-21 Alan Modra <amodra@gmail.com>
26129 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26130 power9 direct move cost.
26132 2019-05-21 Richard Biener <rguenther@suse.de>
26134 PR middle-end/90510
26135 * fold-const.c (fold_read_from_vector): New function.
26136 * fold-const.h (fold_read_from_vector): Declare.
26137 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26138 single-element insert permutations. Canonicalize selector
26139 further and fix issue with last commit.
26141 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26143 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26144 parameter with default value false to declaration.
26145 (split_edges_for_insertion): New inline function. Wrapper for
26146 split_critical_edges with for_edge_insertion_p = true.
26147 * tree-cfg.c (split_critical_edges): Don't split non-critical
26148 edges if for_edge_insertion_p is false. Fix whitespace.
26149 * tree-ssa-pre.c (pass_pre::execute): Call
26150 split_edges_for_insertion instead of split_critical_edges.
26151 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26152 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26153 (pass_data_sink_code): Update function name in the comment.
26155 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26157 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26158 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26159 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26160 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26163 2019-05-21 Martin Liska <mliska@suse.cz>
26165 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26167 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26168 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26170 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26172 (rs6000_function_arg): Likewise.
26173 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26174 (rs6000_expand_ternop_builtin): Use interval syntax.
26175 (get_element_number): Likewise.
26176 (altivec_expand_builtin): Likewise.
26177 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26179 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26183 * function.h (struct function): Add calls_eh_return member.
26184 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26185 gimplifying __builtin_eh_return call.
26186 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26188 (expand_call_inline): Or in src_cfun->calls_eh_return into
26189 dst_cfun->calls_eh_return.
26190 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26191 cfun->calls_eh_return.
26192 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26193 * lto-streamer-out.c (output_struct_function_base): Write
26196 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26198 PR rtl-optimization/43147
26199 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26200 IX86_BUILTIN_SHUFPD.
26202 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26204 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26205 (refs_may_alias_p_1): ... here; update stats.
26206 (refs_may_alias_p): Do not update stats here.
26208 2019-05-20 Richard Biener <rguenther@suse.de>
26210 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26211 doesn't produce pointers.
26212 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26213 the first operand points to.
26215 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26217 * tree-ssa-alias.c (compare_sizes): New function.
26218 (sompare_type_sizes): New function
26219 (aliasing_component_refs_p): Use it.
26220 (indirect_ref_may_alias_decl_p): Likewise.
26222 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26224 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26226 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26228 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26229 (LIBLSAN_EARLY_SPEC): Likewise.
26230 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26232 2019-05-20 Martin Liska <mliska@suse.cz>
26234 * config/i386/i386.c (ix86_libc_has_fast_function):
26235 Add ATTRIBUTE_UNUSED for the argument.
26237 2019-05-20 Richard Biener <rguenther@suse.de>
26239 * gimple-match-head.c: Include vec-perm-indices.h.
26240 * generic-match-head.c: Likewise.
26241 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26243 * fold-const.c (fold_vec_perm): Export.
26244 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26245 (match.pd): ...here.
26247 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26249 * cfgloop.h (struct loop): Add simdlen member.
26250 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26251 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26252 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26253 as new argument to autovectorize_vector_sizes target hook. If
26254 loop->simdlen, pick up vector size where the vectorization factor
26255 is equal to loop->simd, and if there is none, fall back to the first
26257 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26259 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26260 * omp-general.c (omp_max_vf): Likewise.
26261 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26262 * tree-vect-slp.c (vect_slp_bb): Likewise.
26263 * target.def (autovectorize_vector_sizes): Add ALL argument and
26265 * doc/tm.texi: Adjust documentation.
26266 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26267 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26268 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26270 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26271 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26272 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26273 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26274 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26275 preferred vector size is not 512-bit or 256-bit, just put those
26276 unpreferred ones last.
26278 2019-05-20 Martin Liska <mliska@suse.cz>
26280 * targhooks.c (default_libc_has_fast_function): New function.
26281 * targhooks.h (default_libc_has_fast_function): Likewise.
26283 2019-05-20 Martin Liska <mliska@suse.cz>
26285 PR middle-end/90263
26286 * builtins.c (expand_builtin_memory_copy_args): When having a
26287 target with fast mempcpy implementation do now use memcpy.
26288 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26289 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26290 * doc/tm.texi: Likewise.
26291 * doc/tm.texi.in: Likewise.
26293 * expr.c (emit_block_move_hints): Add 2 new arguments.
26294 * expr.h (emit_block_move_hints): Bail out when libcall
26295 to memcpy would be used.
26297 2019-05-20 Martin Liska <mliska@suse.cz>
26299 * profile-count.c: Add vertical spacing in order
26300 to separate functions.
26301 * profile-count.h: Likewise.
26303 2019-05-20 Martin Liska <mliska@suse.cz>
26305 * profile-count.h: Do not use full qualified
26307 * profile-count.c (profile_count::to_frequency): Likewise.
26309 2019-05-20 Martin Liska <mliska@suse.cz>
26311 * profile-count.h (enum profile_quality): Use capital letters
26312 for enum value names. Use the adjusted names.
26313 * profile-count.c: Use the adjusted names.
26315 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26317 * config/rs6000/constraints.md (define_register_constraint "wH"):
26319 (define_register_constraint "wI"): Delete.
26320 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26321 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26322 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26323 (rs6000_init_hard_regno_mode_ok): Adjust.
26324 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26325 resp. "d", or with "wa" as appropriate, all with "p8v".
26326 * config/rs6000/vsx.md: Ditto.
26327 * doc/md.texi (Machine Constraints): Adjust.
26329 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26331 * config/rs6000/constraints.md (define_register_constraint "wy"):
26333 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26334 RS6000_CONSTRAINT_wy.
26335 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26336 (rs6000_init_hard_regno_mode_ok): Adjust.
26337 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26338 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26339 (define_mode_attr Fisa): New.
26340 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26341 * doc/md.texi (Machine Constraints): Adjust.
26343 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26345 * config/rs6000/constraints.md (define_register_constraint "wu"):
26347 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26348 RS6000_CONSTRAINT_wu.
26349 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26350 (rs6000_init_hard_regno_mode_ok): Adjust.
26351 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26353 (define_mode_attr Fa): Delete.
26354 * config/rs6000/vsx.md: Ditto.
26355 * doc/md.texi (Machine Constraints): Adjust.
26357 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26359 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26361 (define_register_constraint "wK"): Delete.
26362 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26363 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26364 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26365 (rs6000_init_hard_regno_mode_ok): Adjust.
26366 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26367 Replace "wK" constraint by "wH" with "p9v".
26368 * config/rs6000/vsx.md: Ditto.
26369 * doc/md.texi (Machine Constraints): Adjust.
26371 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26373 * config/rs6000/constraints.md (define_register_constraint "wb"):
26375 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26376 RS6000_CONSTRAINT_wb.
26377 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26378 (rs6000_init_hard_regno_mode_ok): Adjust.
26379 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26380 * config/rs6000/vsx.md: Ditto.
26381 * doc/md.texi (Machine Constraints): Adjust.
26383 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26385 * config/rs6000/constraints.md (define_register_constraint "wo"):
26387 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26388 RS6000_CONSTRAINT_wo.
26389 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26390 (rs6000_init_hard_regno_mode_ok): Adjust.
26391 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26392 * config/rs6000/altivec.md: Ditto.
26393 * doc/md.texi (Machine Constraints): Adjust.
26395 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26397 * config/darwin-c.c (darwin_register_objc_includes): Do not
26398 prepend the sysroot when building gnu-runtime header search
26401 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26403 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26404 instead of direct output of the asm.
26406 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26408 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26409 argument to be type bool (was int before).
26410 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26411 at first use. Use type bool for some variables. Fix a theoretical
26412 eh_return bug for svr4.
26414 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26416 * config/rs6000/rs6000.md (isa): New attribute.
26417 (enabled): New attribute.
26419 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26421 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26422 assemble_start_function and assemble_end_function.
26424 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26426 PR middle-end/89433
26427 * omp-general.c (oacc_verify_routine_clauses): Change formal
26428 parameters. Add checking if already marked with an OpenACC
26429 'routine' directive. Adjust all users.
26431 PR middle-end/89433
26432 * omp-general.c (oacc_build_routine_dims): Move some of its
26434 (oacc_verify_routine_clauses): ... this new function.
26435 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26437 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26439 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26440 formating of picbase labels to match other ports.
26442 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26444 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26445 in the generated code.
26447 2019-05-16 Martin Sebor <msebor@redhat.com>
26449 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26450 identifiers, keywords, operators, and types in diagnostics. Correct
26451 quoting, spelling, and sentence capitalization issues.
26452 (expand_builtin_atomic_is_lock_free): Same.
26453 (fold_builtin_next_arg): Same.
26454 * cfgexpand.c (expand_one_var): Same.
26455 (tree_conflicts_with_clobbers_p): Same.
26456 (expand_asm_stmt): Same.
26457 (verify_loop_structure): Same.
26458 * cgraphunit.c (process_function_and_variable_attributes): Same.
26459 * collect-utils.c (collect_execute): Same.
26460 * collect2.c (maybe_run_lto_and_relink): Same.
26461 (is_lto_object_file): Same.
26462 (scan_prog_file): Same.
26463 * convert.c (convert_to_real_1): Same.
26464 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26465 * except.c (verify_eh_tree): Same.
26466 * gcc.c (execute): Same.
26467 (eval_spec_function): Same.
26468 (run_attempt): Same.
26469 (driver::set_up_specs): Same.
26470 (compare_debug_auxbase_opt_spec_function): Same.
26471 * gcov-tool.c (unlink_gcda_file): Same.
26473 (do_rewrite): Same.
26474 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26475 * gimplify.c (gimplify_asm_expr): Same.
26476 (gimplify_adjust_omp_clauses): Same.
26477 * hsa-gen.c (gen_hsa_addr_insns): Same.
26478 (gen_hsa_insns_for_load): Same.
26479 (gen_hsa_cmp_insn_from_gimple): Same.
26480 (gen_hsa_insns_for_operation_assignment): Same.
26481 (gen_get_level): Same.
26482 (gen_hsa_alloca): Same.
26483 (omp_simple_builtin::generate): Same.
26484 (gen_hsa_atomic_for_builtin): Same.
26485 (gen_hsa_insns_for_call): Same.
26486 * input.c (dump_location_info): Same.
26487 * ipa-devirt.c (compare_virtual_tables): Same.
26488 * ira.c (ira_setup_eliminable_regset): Same.
26489 * lra-assigns.c (lra_assign): Same.
26490 * lra-constraints.c (lra_constraints): Same.
26491 * lto-streamer-in.c (lto_input_mode_table): Same.
26492 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26493 (merge_and_complain): Same.
26494 (compile_offload_image): Same.
26495 (compile_images_for_offload_targets): Same.
26496 (debug_objcopy): Same.
26499 * opts.c (print_specific_help): Same.
26500 (parse_no_sanitize_attribute): Same.
26501 (print_help): Same.
26502 (handle_param): Same.
26503 * plugin.c (add_new_plugin): Same.
26504 (parse_plugin_arg_opt): Same.
26505 (try_init_one_plugin): Same.
26506 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26507 operators, and types in diagnostics. Correct quoting and spelling
26509 * read-rtl-function.c (parse_edge_flag_token): Same.
26510 (function_reader::parse_enum_value): Same.
26511 * reg-stack.c (check_asm_stack_operands): Same.
26512 * regcprop.c (validate_value_data): Same.
26513 * sched-rgn.c (make_pass_sched_fusion): Same.
26514 * stmt.c (check_unique_operand_names): Same.
26515 * targhooks.c (default_target_option_pragma_parse): Same.
26516 * tlink.c (recompile_files): Same.
26517 * toplev.c (process_options): Same.
26518 (do_compile): Same.
26519 * trans-mem.c (diagnose_tm_1): Same.
26520 (ipa_tm_scan_irr_block): Same.
26521 (ipa_tm_diagnose_transaction): Same.
26522 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26523 format a tree code name in a diagnostic.
26524 (verify_types_in_gimple_min_lval): Same.
26525 (verify_types_in_gimple_reference): Same.
26526 (verify_gimple_call): Same.
26527 (verify_gimple_assign_unary): Same.
26528 (verify_gimple_assign_binary): Same.
26529 (verify_gimple_assign_ternary): Same.
26530 (verify_gimple_assign_single): Same.
26531 (verify_gimple_switch): Same.
26532 (verify_gimple_label): Same.
26533 (verify_gimple_phi): Same.
26534 (verify_gimple_in_seq): Same.
26535 (verify_eh_throw_stmt_node): Same.
26536 (collect_subblocks): Same.
26537 (gimple_verify_flow_info): Same.
26538 (do_warn_unused_result): Same.
26539 * tree-inline.c (expand_call_inline): Same.
26540 * tree-into-ssa.c (update_ssa): Same.
26541 * tree.c (tree_int_cst_elt_check_failed): Same.
26542 (tree_vec_elt_check_failed): Same.
26543 (omp_clause_operand_check_failed): Same.
26544 (verify_type_variant): Same.
26545 (verify_type): Same.
26546 * value-prof.c (verify_histograms): Same.
26547 * varasm.c (assemble_start_function): Same.
26549 2019-05-16 Martin Sebor <msebor@redhat.com>
26551 * config/i386/i386-expand.c (get_element_number): Quote keywords
26552 and other internal names in diagnostics. Adjust other diagnostic
26553 formatting issues noted by -Wformat-diag.
26554 * config/i386/i386-features.c
26555 (ix86_mangle_function_version_assembler_name): Same.
26556 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26557 * config/i386/i386.c (ix86_function_type_abi): Same.
26558 (ix86_function_ms_hook_prologue): Same.
26559 (classify_argument): Same.
26560 (ix86_expand_prologue): Same.
26561 (ix86_md_asm_adjust): Same.
26562 (ix86_memmodel_check): Same.
26564 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26566 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26567 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26570 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26573 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26574 intrinsics without SSE/SSE2/SSSE3.
26575 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26577 (*mmx_uavgv8qi3): Likewise.
26579 2019-05-17 Richard Biener <rguenther@suse.de>
26581 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26582 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26584 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26586 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26587 vec_sldw insn pattern.
26589 2019-05-17 Richard Biener <rguenther@suse.de>
26591 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26593 2019-05-17 Martin Liska <mliska@suse.cz>
26596 * toplev.c (output_stack_usage): With LTO and sanitizer it
26597 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26598 has no file location.
26600 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26603 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26604 sz0 is equal to sz1, instead return false in that case.
26606 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26607 has non-constant expression, force sctx.lane and use two
26608 argument IFN_GOMP_SIMD_LANE instead of single argument.
26609 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26610 two argument IFN_GOMP_SIMD_LANE without lhs.
26611 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26613 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26615 (LOOP_REQUIRES_VERSIONING): Or in
26616 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26617 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26619 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26620 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26621 from simd if clause if needed.
26623 2019-05-16 Richard Biener <rguenther@suse.de>
26625 * tree-affine.c (expr_to_aff_combination): New function split
26627 (tree_to_aff_combination): ... here.
26628 (aff_combination_expand): Avoid building a GENERIC tree.
26630 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26632 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26633 assemble_start_function and assemble_end_function calls.
26634 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26635 assemble_start_function and assemble_end_function.
26636 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26637 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26638 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26639 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26640 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26641 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26642 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26643 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26644 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26645 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26646 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26647 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26649 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26650 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26651 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26652 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26653 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26654 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26655 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26656 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26657 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26658 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26659 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26660 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26661 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26662 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26664 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26665 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26666 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26668 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26670 * tree-ssa-alias.c (alias_stats): Add
26671 aliasing_component_refs_p_may_alias and
26672 aliasing_component_refs_p_no_alias.
26673 (dump_alias_stats): Print aliasing_component_refs_p stats.
26674 (aliasing_component_refs_p): Update stats.
26676 2019-05-16 Martin Liska <mliska@suse.cz>
26679 * multiple_target.c (expand_target_clones): Do not allow
26680 target_clones being used with a symbol that is an alias.
26682 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26684 PR tree-optimization/90394
26685 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26686 positives rather than ICE for cases where (code2 == NE_EXPR
26687 && code1 == BIT_AND_EXPR).
26689 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26692 * tree-core.h (struct tree_decl_common): Document
26693 decl_nonshareable_flag for PARM_DECLs.
26694 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26695 * calls.c (expand_call): Don't try tail call if caller
26696 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26697 passed on the stack and callee needs to pass any arguments on the
26699 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26700 else if instead of series of mutually exclusive ifs. Handle
26701 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26702 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26704 * lto-streamer.h (LTO_major_version): Bump to 9.
26706 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26708 PR tree-optimization/90106
26709 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26710 new parameter as new internal function call, also move it to new
26712 (use_internal_fn): Pass internal function call to
26713 shrink_wrap_one_built_in_call_with_conds.
26715 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26717 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26719 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26720 safelen_int and set loop->dont_vectorize.
26722 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26725 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26727 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26729 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26730 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26731 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26734 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26737 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26738 define_insn_and_split to support SSE emulation.
26739 (*vec_extractv2sf_0): Likewise.
26740 (*vec_extractv2sf_1): Likewise.
26741 (*vec_extractv2si_0): Likewise.
26742 (*vec_extractv2si_1): Likewise.
26743 (*vec_extractv2si_zext_mem): Likewise.
26744 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26745 (vec_extractv2sf_1 splitter): Likewise.
26746 (vec_extractv2sfsf): Likewise.
26747 (vec_setv2si): Likewise.
26748 (vec_extractv2si_1 splitter): Likewise.
26749 (vec_extractv2sisi): Likewise.
26750 (vec_setv4hi): Likewise.
26751 (vec_extractv4hihi): Likewise.
26752 (vec_setv8qi): Likewise.
26753 (vec_extractv8qiqi): Likewise.
26754 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26755 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26756 (vec_extractv2sisi): Likewise.
26757 (vec_extractv4hihi): Likewise.
26758 (vec_extractv8qiqi): Likewise.
26759 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26760 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26761 (vec_initv2sisi): Likewise.
26762 (vec_initv4hihi): Likewise.
26763 (vec_initv8qiqi): Likewise.
26764 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26765 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26766 (vec_setv4hi): Likewise.
26767 (vec_setv8qi): Likewise.
26769 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26772 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26773 TARGET_MMX_WITH_SSE.
26774 (MMXMODE:*mov<mode>_internal): Likewise.
26775 (MMXMODE:movmisalign<mode>): Likewise.
26777 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26780 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26781 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26782 (sse2_cvtpd2pi): Ditto.
26783 (sse2_cvttpd2pi): Ditto.
26784 (*vec_concatv2sf_sse4_1): Ditto.
26785 (*vec_concatv2sf_sse): Ditto.
26786 (*vec_concatv2si_sse4_1): Ditto.
26787 (*vec_concatv2si): Ditto.
26788 (*vec_concatv4si_0): Ditto.
26789 (*vec_concatv2di_0): Ditto.
26791 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26794 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26796 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26799 * config/i386/sse.md (ssse3_palignrdi): Changed to
26800 define_insn_and_split to support SSE emulation.
26802 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26805 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26807 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26810 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26811 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26814 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26817 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26818 or TARGET_MMX_WITH_SSE.
26819 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26821 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26824 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26826 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26829 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26830 Changed to define_insn_and_split to support SSE emulation.
26832 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26835 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26836 Changed to define_insn_and_split to support SSE emulation.
26838 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26841 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26842 (*mmx_<emms>): This.
26843 (mmx_<emms>): New expander.
26845 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26848 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26850 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26852 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26855 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26857 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26860 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26862 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26865 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26866 TARGET_MMX_WITH_SSE.
26867 (*mmx_uavgv4hi3): Add SSE emulation.
26869 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26872 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
26873 and TARGET_MMX_WITH_SSE.
26874 (*mmx_uavgv8qi3): Add SSE emulation.
26876 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26879 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26880 maskmovdqu for __MMX_WITH_SSE__.
26882 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26885 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
26886 TARGET_MMX and TARGET_MMX_WITH_SSE.
26887 (*mmx_umulv4hi3_highpart): Add SSE emulation.
26889 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26892 * config/i386/mmx.md (mmx_pmovmskb): Changed to
26893 define_insn_and_split to support SSE emulation.
26895 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26898 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
26899 and TARGET_MMX_WITH_SSE.
26900 (mmx_<code>v8qi3): Likewise.
26901 (smaxmin:<code>v4hi3): New.
26902 (umaxmin:<code>v8qi3): Likewise.
26903 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
26904 (umaxmin:*mmx_<code>v8qi3): Likewise.
26906 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26909 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
26910 TARGET_MMX_WITH_SSE.
26911 (*mmx_pinsrw): Add SSE emulation.
26913 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26916 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
26918 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26921 * config/i386/sse.md (sse_cvtpi2ps): Changed to
26922 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26925 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26928 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
26929 (sse_cvttps2pi): Likewise.
26931 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26934 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
26935 TARGET_MMX_WITH_SSE.
26936 (mmx_pshufw_1): Add SSE emulation.
26937 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
26938 TARGET_MMX_WITH_SSE to support SSE emulation.
26940 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26943 * config/i386/constraints.md (Yw): New constraint.
26944 * config/i386/mmx.md (*vec_dupv2si): Changed to
26945 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
26946 support SSE emulation.
26948 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26951 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
26952 TARGET_MMX_WITH_SSE.
26953 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
26955 (mmx_gt<mode>3): Likewise.
26957 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26960 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
26961 TARGET_MMX_WITH_SSE. Add SSE support.
26963 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26966 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
26967 TARGET_MMX_WITH_SSE.
26968 (any_logic:<code><mode>3): New.
26969 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
26972 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26975 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
26976 TARGET_MMX_WITH_SSE. Add SSE emulation.
26977 (mmx_<shift_insn><mode>3): Likewise.
26978 (ashr<mode>3): New.
26979 (<shift_insn><mode>3): Likewise.
26981 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26984 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
26985 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
26987 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26990 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
26991 TARGET_MMX_WITH_SSE.
26992 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
26995 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26998 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
26999 TARGET_MMX_WITH_SSE.
27001 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27004 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27007 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27008 (plusminus:mmx_<plusminus_insn><mode>3): Check
27009 TARGET_MMX_WITH_SSE.
27010 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27011 (<plusminus_insn><mode>3): New.
27012 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27013 (*mmx_<plusminus_insn><mode>3): Likewise.
27015 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27018 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27019 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27021 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27022 define_insn_and_split to support SSE emulation.
27023 (mmx_punpcklbw): Likewise.
27024 (mmx_punpckhwd): Likewise.
27025 (mmx_punpcklwd): Likewise.
27026 (mmx_punpckhdq): Likewise.
27027 (mmx_punpckldq): Likewise.
27029 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27030 Uros Bizjak <ubizjak@gmail.com>
27033 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27035 (ix86_split_mmx_pack): Likewise.
27036 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27038 (ix86_split_mmx_pack): Likewise.
27039 * config/i386/i386.md (mmx_isa): New.
27040 (enabled): Also check mmx_isa.
27041 * config/i386/mmx.md (any_s_truncate): New code iterator.
27042 (s_trunsuffix): New code attr.
27043 (mmx_packsswb): Removed.
27044 (mmx_packssdw): Likewise.
27045 (mmx_packuswb): Likewise.
27046 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27047 MMX packsswb/packuswb with SSE2.
27048 (mmx_packssdw): Likewise.
27049 * config/i386/predicates.md (register_mmxmem_operand): New.
27051 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27054 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27055 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27056 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27057 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27058 (ix86_vector_mode_supported_p): Likewise.
27059 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27061 2019-05-15 Martin Liska <mliska@suse.cz>
27063 PR middle-end/90478
27064 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27065 Check for overflow.
27067 2019-05-15 Richard Biener <rguenther@suse.de>
27069 * tree-into-ssa.c (pass_build_ssa::execute): Run
27070 update_address_taken before going into SSA.
27072 2019-05-15 Richard Biener <rguenther@suse.de>
27074 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27075 as __BIT_FIELD_REF with type with -gimple.
27077 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27079 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27080 semantically equivalent branches (left over after prior refactorings).
27082 2019-05-15 Richard Biener <rguenther@suse.de>
27084 PR tree-optimization/88828
27085 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27088 2019-05-14 Richard Biener <rguenther@suse.de>
27090 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27091 as __VIEW_CONVERT with -gimple.
27093 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27096 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27099 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27101 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27102 define_split to become a define_insn_and_split.
27104 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27106 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27108 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27109 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27110 (sibcall_epilogue): Adjust.
27111 (epilogue): Adjust.
27113 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27115 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27116 to unsupported ones.
27117 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27118 * config.host: Likewise.
27119 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27120 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27121 __svr4__]: Remove "brand" fallback.
27122 [!KSTAT_DATA_STRING]: Remove.
27123 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27125 (comdat_group): Likewise.
27126 (set_have_as_tls): Likewise.
27127 (gcc_cv_target_dl_iterate_phdr): Likewise.
27128 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27129 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27130 * configure: Regenerate.
27131 * doc/install.texi: Simplify Solaris target triplets.
27132 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27133 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27134 Remove Solaris 10 references.
27135 Remove obsolete Solaris bug reference.
27136 (Specific, sparc-sun-solaris2.10): Remove.
27138 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27140 * config/i386/i386.md (any_div): New code iterator.
27141 (paired_mod): New code attribute.
27142 (sgnprefix): Handle DIV and UDIV RTXes.
27144 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27145 and udivmod<mode>4 patterns using any_div code iterator.
27146 (divmod splitters): Macroize splitters using any_div code iterator.
27147 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27148 (*udivmodsi4_pow2_zext_2): Ditto.
27149 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27150 and *udivmod<mode>4_noext patterns using any_div code iterator.
27151 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27152 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27153 patterns using any_div code iterator.
27154 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27155 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27156 patterns using any_div code iterator.
27157 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27158 udivmodhiqi3 patterns using any_extend code iterator.
27160 2019-05-14 Richard Biener <rguenther@suse.de>
27161 H.J. Lu <hongjiu.lu@intel.com>
27163 PR tree-optimization/88828
27164 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27165 permuting in a single non-constant element not extracted
27168 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27170 * internal-fn.def (SIGNBIT): New.
27171 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27173 (signbitv4sf2): Likewise.
27175 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27178 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27179 next insn when the SRC reg is dead.
27181 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27183 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27184 (alloc_cand_and_find_basis): Ditto.
27185 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27186 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27187 (create_add_imm_cand, slsr_process_cast): Ditto.
27188 (slsr_process_copy, replace_mult_candidate): Ditto.
27189 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27190 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27191 (pass_strength_reduction::execute): Init the first NULL element.
27193 2019-05-13 Nathan Sidwell <nathan@acm.org>
27195 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27196 (run_attempt): Reformat line break.
27198 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27201 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27202 data registers in sibcall epilogues.
27203 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27205 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27208 * configure.ac (--enable-frame-pointer):
27209 Disable by default for cygwin and mingw.
27210 * configure: Regenerate.
27212 2019-05-13 Nathan Sidwell <nathan@acm.org>
27214 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27216 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27217 (gen_member_die): Move abstract origin check earlier. Only VARs
27218 can be static_inline_p. Simplify splicing control flow.
27220 2019-05-13 Richard Biener <rguenther@suse.de>
27222 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27224 (vect_build_slp_tree_1): Likewise.
27226 2019-05-13 Richard Biener <rguenther@suse.de>
27228 PR tree-optimization/90402
27229 * tree-if-conv.c (tree_if_conversion): Value number only
27230 the loop body by making the latch an exit of the region
27232 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27234 (do_rpo_vn): Deal with multiple edges into the entry block
27235 that are not backedges inside the region by skipping PHIs
27236 of the entry block.
27238 2019-05-13 Richard Biener <rguenther@suse.de>
27240 PR tree-optimization/90316
27241 * tree-ssa-pre.c (insert_aux): Fold into ...
27242 (insert): ... this function. Use a RPO walk to reduce the
27243 number of required iterations.
27245 2019-05-13 Martin Liska <mliska@suse.cz>
27247 PR tree-optimization/90416
27248 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27249 string instead of passing the second part as va_arg argument.
27251 2019-05-13 Martin Liska <mliska@suse.cz>
27253 PR gcov-profile/90380
27254 * gcov.c (handle_cycle): Do not support zero cycle count,
27255 it should not be possible.
27256 (path_contains_zero_cycle_arc): New function.
27257 (circuit): Ignore zero cycle arc counts.
27259 2019-05-13 Martin Liska <mliska@suse.cz>
27261 PR gcov-profile/90380
27262 * gcov.c (enum loop_type): Remove the enum and
27264 (handle_cycle): Assert that we should not reach
27266 (circuit): Use loop_found instead of a tri-state loop_type.
27267 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27270 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27273 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27274 (ix86_output_indirect_branch_via_reg): Use output mechanism
27275 accounting for __USER_LABEL_PREFIX__.
27276 (ix86_output_indirect_branch_via_push): Likewise.
27277 (ix86_output_function_return): Likewise.
27278 (ix86_output_indirect_function_return): Likewise.
27280 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27282 * doc/md.texi: Document use of code attributes in rtx patterns.
27283 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27284 * read-rtl.c (find_code): Split out search loops into...
27285 (maybe_find_code): ...this new function.
27286 (check_code_iterator): Make the error message more informative.
27287 (check_code_attribute): New function.
27288 (rtx_reader::rtx_alloc_for_name): Likewise.
27289 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27290 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27291 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27292 <max_opp> directly as an rtx code instead of via a match_operator.
27293 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27294 (<su>abd<mode>_3): Update accordingly.
27296 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27298 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27299 is given, print the state of the EH "save world" computation for
27302 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27305 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27306 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27308 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27310 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27311 Use pinsrd for TARGET_SSE4_1.
27312 * config/i386/sse.md (movdi_to_sse): Ditto.
27314 2019-05-10 Richard Biener <rguenther@suse.de>
27316 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27317 (do_rpo_vn): Initialize next_value_id.
27319 2019-05-10 Martin Liska <mliska@suse.cz>
27321 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27324 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27326 PR tree-optimization/90385
27327 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27328 arguments of the exit phis.
27331 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27332 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27334 (copy_tree_body_r): Likewise.
27335 (copy_fn): Set id.do_not_fold to true.
27337 2019-05-10 Martin Liska <mliska@suse.cz>
27339 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27340 Reapply changes from r269790.
27342 2019-05-10 Martin Liska <mliska@suse.cz>
27344 PR middle-end/90340
27345 * doc/invoke.texi: New params.
27346 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27347 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27348 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27350 * tree-switch-conversion.h (struct jump_table_cluster):
27353 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27355 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27357 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27359 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27361 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27363 PR rtl-optimization/88879
27364 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27366 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27369 * config/arm/arm.c (callee_saved_reg_p): Move before
27370 thumb_find_work_register.
27371 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27372 thumb_find_work_register. Only call df_get_live_out once.
27373 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27374 (thumb_find_work_register): Use
27375 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27376 algorithms to locate a spare call clobbered reg.
27378 2019-05-09 Martin Liska <mliska@suse.cz>
27380 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27381 and MAX_EXPR in GIMPLE FE format.
27383 2019-05-09 Martin Liska <mliska@suse.cz>
27385 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27386 * gimple-pretty-print.c (dump_gimple_bb_header):
27388 (pp_cfg_jump): Dump edge probability.
27389 * profile-count.c (profile_quality_as_string): Simplify
27390 with a static array.
27391 (parse_profile_quality): New function.
27392 (profile_count::dump): Simplify with a static array.
27393 (profile_count::from_gcov_type): Add new argument.
27394 * profile-count.h (parse_profile_quality): Likewise.
27395 * predict.h (set_hot_bb_threshold): New.
27396 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27398 * predict.c (get_hot_bb_threshold): Set from the new param.
27399 (set_hot_bb_threshold): New.
27401 2019-05-09 Richard Biener <rguenther@suse.de>
27403 PR tree-optimization/90395
27404 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27405 rewrite vector stores that throw internally.
27407 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27409 * cif-code.def (CHKP): Remove.
27412 * configure.ac (--enable-frame-pointer): Disable by default for
27414 * configure: Regenerate.
27416 2019-05-09 Alan Modra <amodra@gmail.com>
27419 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27420 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27421 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27422 cost for general <-> vsx when direct moves are available.
27423 Cost union classes at minimal cost for any reg in the class.
27424 Correct calculation for moves between vsx, float, and altivec.
27425 Don't return a low cost for moves between special regs. Don't
27426 use hard coded register numbers.
27427 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27428 (rs6000_ira_change_pseudo_allocno_class): New function.
27429 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27430 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27432 (movsi_internal1): Don't disparage vector alternatives.
27433 (mov<mode>_internal): Likewise, excepting alternative that
27435 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27436 we <- b alternative.
27438 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27441 PR tree-optimization/89060
27442 * tree-ssa-live.h (live_vars_map): New typedef.
27443 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27444 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27445 (struct compute_live_vars_data): New type.
27446 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27447 live_vars_at_stmt, destroy_live_vars): New functions.
27448 * tree-tailcall.c: Include tree-ssa-live.h.
27449 (live_vars, live_vars_vec): New global variables.
27450 (find_tail_calls): Perform variable life analysis before punting.
27451 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27452 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27454 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27455 Perform variable life analysis to select variables that really need
27457 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27458 instead set id->eh_landing_pad_dest and assert it is the same.
27459 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27461 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27462 Richard Earnshaw <rearnsha@arm.com>
27465 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27467 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27468 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27469 register if both the epilogue and prologue can use call-clobbered
27471 (thumb1_unexpanded_epilogue): Use
27472 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27473 picking temporaries for restoring high regs to match that of the
27474 prologue where possible.
27475 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27476 the list of work registers. Detect if the return address is still live
27477 at the end of the prologue and avoid using it for a work register if so.
27478 If the return address is not live, add LR to the list of pushable regs
27479 after the first pass.
27481 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27483 PR tree-optimization/90078
27484 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27485 (INFTY): Increase the value for infinite cost.
27486 (struct comp_cost): Promote type of members to int64_t.
27487 (infinite_cost): Don't set complexity in initialization.
27488 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27489 overflows to infinite_cost.
27490 (adjust_setup_cost): Promote type of parameter and cost computation
27492 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27494 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27495 cost computation to int64_t.
27496 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27497 int64_t's format specifier in dump.
27499 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27501 PR tree-optimization/90240
27502 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27503 with respect to scaling factor pre-computed for each basic block.
27504 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27505 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27506 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27507 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27508 live range for array of loop's basic blocks. Cleanup aux field of
27509 loop's basic blocks.
27511 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27513 PR tree-optimization/90356
27514 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27516 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27518 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27519 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27520 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27521 (ix86_handle_option): Handle -mavx512bf16.
27522 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27524 * config/i386/avx512bf16vlintrin.h: New.
27525 * config/i386/avx512bf16intrin.h: New.
27526 * config/i386/cpuid.h (bit_AVX512BF16): New.
27527 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27528 * config/i386/i386-builtin-types.def: Add new types.
27529 * config/i386/i386-builtin.def: Add new builtins.
27530 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27532 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27533 (ix86_option_override_internal): Handle BF16.
27534 (ix86_valid_target_attribute_inner_p): Ditto.
27535 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27536 * config/i386/i386-builtin.c (enum processor_features): Add
27538 (static const _isa_names_table isa_names_table): Ditto.
27539 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27540 (PTA_AVX512BF16): Ditto.
27541 * config/i386/i386.opt: Add -mavx512bf16.
27542 * config/i386/immintrin.h: Include avx512bf16intrin.h
27543 and avx512bf16vlintrin.h.
27544 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27545 avx512f_cvtneps2bf16_<mode><mask_name>,
27546 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27547 * config/i386/subst.md (mask_half): Add new subst.
27548 * doc/invoke.texi: Document -mavx512bf16.
27550 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27552 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27553 Delete declaration.
27554 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27555 (rs6000_debug_legitimize_reload_address): Delete.
27556 (rs6000_legitimize_reload_address_ptr): Delete.
27557 (rs6000_option_override_internal): Adjust.
27558 (mem_operand_gpr): Adjust comment.
27559 (legitimate_lo_sum_address_p): Ditto.
27560 (rs6000_legitimize_reload_address): Delete.
27561 (rs6000_debug_legitimize_reload_address): Delete.
27562 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27564 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27567 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27568 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27569 to compute vector element selector for both constant and variable
27572 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27574 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27575 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27576 ashrdi3_cvt using SWI48 mode iterator.
27578 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27580 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27581 (aarch64_<su>abd<mode>_3): Likewise.
27582 (*aarch64_<su>abd<mode>_3): New define_insn.
27583 (<sur>sad<vsi2qi>): New define_expand.
27584 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27585 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27586 (build_vect_cond_expr): Likewise.
27588 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27590 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27591 clobbers outside of accessible_reg_set.
27592 * config/i386/i386.c (ix86_conditional_register_usage):
27593 Disable register sets by clearing corresponding bits in
27594 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27595 call_used_regs and don't clear corresponding reg_names array members.
27597 2019-05-07 Richard Biener <rguenther@suse.de>
27599 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27600 not specified still compute a comp_vectype for invariant
27603 2019-05-07 Richard Biener <rguenther@suse.de>
27605 PR tree-optimization/90316
27606 * tree-ssa-pre.c (translate_vuse_through_block): When
27607 same_valid is NULL do not bother to search for a virtual
27609 (phi_translate_1): When operands changed we cannot keep
27610 the same value-number so do not bother to ask whether
27611 that's possible from translate_vuse_through_block.
27613 2019-05-07 Martin Liska <mliska@suse.cz>
27615 * bitmap.c (bitmap_register): Come up with
27616 alloc_descriptor_max_uid and assign it for
27618 (register_overhead): Use get_descriptor as
27620 (release_overhead): New.
27621 (bitmap_elem_to_freelist): Call it.
27622 (bitmap_elt_clear_from): Likewise.
27623 (bitmap_obstack_free): Likewise.
27624 (bitmap_move): Sensitively release memory.
27625 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27626 (bitmap_initialize): Initialize alloc_descriptor to zero.
27627 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27629 2019-05-07 Richard Biener <rguenther@suse.de>
27631 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27632 we build a SLP node. Remove max_size and limiting.
27633 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27635 2019-05-07 Richard Biener <rguenther@suse.de>
27637 PR tree-optimization/90316
27638 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27639 limit by reference.
27640 (walk_non_aliased_vuses): Take walking limit argument.
27641 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27642 walking if it is reached instead of just counting.
27643 (get_continuation_for_phi): Likewise.
27644 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27645 limiting to the callback.
27646 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27647 (vn_reference_lookup_3): Likewise.
27648 (vn_reference_lookup_pieces): Likewise.
27649 (vn_reference_lookup): Likewise.
27650 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27651 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27652 (avail_exprs_stack::lookup_avail_expr): Likewise.
27654 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27656 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27657 for comparaible types in the second direction even if first one
27658 hits incomparable type.
27660 2019-05-07 Richard Biener <rguenther@suse.de>
27663 * lto-wrapper.c (debug_objcopy): Use the original filename
27664 including archive offset for the filename used for -save-temps.
27666 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27668 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27671 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27672 Hongtao Liu <hongtao.liu@intel.com>
27676 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27677 Modified, original implementation isn't correct.
27679 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27681 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27682 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27683 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27684 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27685 (FRAME_POINTER_REGNUM): Change numbering.
27686 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27687 (alt_reg_names): Adjust.
27688 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27690 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27691 (DWARF_FRAME_REGISTERS): Delete.
27692 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27693 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27695 (REG_ALLOC_ORDER): Adjust.
27696 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27697 (REG_CLASS_CONTENTS): Adjust.
27698 (RETURN_ADDR_RTX): Change comment.
27699 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27701 (REGISTER_NAMES): Adjust.
27702 (ADDITIONAL_REGISTER_NAMES): Adjust.
27703 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27705 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27707 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27709 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27710 (DWARF_FRAME_REGISTERS): Adjust.
27711 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27713 (REG_ALLOC_ORDER): Adjust.
27714 (enum reg_class): Delete SPR_REGS.
27715 (REG_CLASS_NAMES): Delete SPR_REGS.
27716 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27717 (REGISTER_NAMES): Adjust.
27718 (ADDITIONAL_REGISTER_NAMES): Adjust.
27719 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27720 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27721 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27722 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27723 (htm_spr_regno): Delete.
27724 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27726 (rs6000_dbx_register_number): Adjust.
27728 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27730 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27732 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27734 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27735 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27737 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27739 PR tree-optimization/88709
27740 PR tree-optimization/90271
27741 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27742 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27743 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27745 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27746 of the store merging group is larger than
27747 PARAM_STORE_MERGING_MAX_SIZE parameter.
27748 (split_group): Add bzero_first argument. If set, always emit first
27749 the first store which must be = {} of the whole area and then for the
27750 rest of the stores consider all zero bytes as paddings.
27751 (imm_store_chain_info::output_merged_store): Check if first store
27752 is = {} of the whole area and if yes, determine which setting of
27753 bzero_first for split_group gives smaller number of stores. Adjust
27754 split_group callers.
27755 (lhs_valid_for_store_merging_p): Allow decls.
27756 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27758 (pass_store_merging::process_store): Likewise.
27760 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27763 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27764 handling of V1TImode.
27766 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27769 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27770 and enable_frame_pointer ...
27771 * configure.ac: ... here. Update help strings for
27772 --enable-frame-pointer.
27773 * configure: Regenerate.
27774 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27775 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27776 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27777 (USE_X86_64_FRAME_POINTER): Ditto.
27779 2019-05-06 Martin Liska <mliska@suse.cz>
27781 * config.gcc: Append to target_gtfiles and fix indentation.
27783 2019-05-06 Richard Biener <rguenther@suse.de>
27785 PR tree-optimization/90358
27786 * tree-vect-stmts.c (get_group_load_store_type): Properly
27787 detect unused upper half of load.
27788 (vectorizable_load): Likewise.
27790 2019-05-06 Richard Biener <rguenther@suse.de>
27792 PR tree-optimization/88828
27793 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27794 (simplify_vector_constructor): ...here. Handle constants in
27797 2019-05-06 Richard Biener <rguenther@suse.de>
27799 PR tree-optimization/90328
27800 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27801 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27802 is valid in the loop nest before using it.
27803 (initialize_data_dependence_relation): Adjust.
27804 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27805 loop as loop-nest to dr_may_alias_p.
27807 2019-05-06 Richard Biener <rguenther@suse.de>
27809 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27811 2019-05-06 Richard Biener <rguenther@suse.de>
27813 PR tree-optimization/90316
27814 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27815 compute target on demand.
27816 (get_continuation_for_phi): Remove code walking stmts to
27817 get to a target virtual operand which could end up being
27820 2019-05-06 Martin Liska <mliska@suse.cz>
27823 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27824 when -mabi is selected to a non-default version.
27826 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27827 Martin Liska <mliska@suse.cz>
27829 * Makefile.in: Add lto-dump.texi.
27830 * cgraph.h: Add new functions get_visibility_string and
27831 get_symtab_type_string.
27832 * doc/gcc.texi: Include lto-dump section.
27833 * doc/lto-dump.texi: New file.
27834 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27835 (parse_dump_option): Factor out this function.
27836 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27837 (parse_dump_option): Export the function.
27838 * symtab.c (symtab_node::get_visibility_string): New function.
27839 (symtab_node::get_symtab_type_string): Likewise.
27841 2019-05-06 Martin Liska <mliska@suse.cz>
27843 * config/i386/i386-builtins.c: New file.
27844 * config/i386/i386-builtins.h: New file.
27845 * config/i386/i386-expand.c: New file.
27846 * config/i386/i386-expand.h: New file.
27847 * config/i386/i386-features.c: New file.
27848 * config/i386/i386-features.h: New file.
27849 * config/i386/i386-options.c: New file.
27850 * config/i386/i386-options.h: New file.
27851 * config.gcc: Add new files into extra_objs and
27853 * config/i386/i386.c: Split content of the file
27854 into newly introduced files.
27855 * config/i386/i386.h: Declare common variables
27857 * config/i386/t-i386: Define dependencies for new files.
27859 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27862 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27863 Restrict 'all' variant to 32-bit configurations.
27864 (unaligned_loadhiu): Likewise.
27865 (unaligned_storehi): Likewise.
27866 (unaligned_storesi): Likewise.
27867 (unaligned_loadhis): Disable when compiling for thumb1.
27869 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27871 PR tree-optimization/90269
27872 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27875 2019-05-03 Martin Liska <mliska@suse.cz>
27877 * hash-map.h: Add is_empty function.
27878 * hash-set.h: Likewise.
27879 * hash-table.h: Likewise.
27880 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27881 elements () == 0 (and similar usages).
27882 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27883 * gimplify.c (gimplify_bind_expr): Likewise.
27884 (gimplify_switch_expr): Likewise.
27885 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
27886 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
27887 * postreload-gcse.c (dump_hash_table): Likewise.
27888 (gcse_after_reload_main): Likewise.
27889 * predict.c (combine_predictions_for_bb): Likewise.
27890 * tree-parloops.c (reduction_phi): Likewise.
27891 (separate_decls_in_region): Likewise.
27892 (transform_to_exit_first_loop): Likewise.
27893 (gen_parallel_loop): Likewise.
27894 (gather_scalar_reductions): Likewise.
27895 (try_create_reduction_list): Likewise.
27896 * var-tracking.c (dump_vars): Likewise.
27897 (emit_notes_for_changes): Likewise.
27898 (vt_emit_notes): Likewise.
27900 2019-05-03 Richard Biener <rguenther@suse.de>
27902 PR tree-optimization/90316
27903 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
27906 2019-05-03 Richard Biener <rguenther@suse.de>
27908 * tree-vect-stmts.c (get_group_load_store_type): Avoid
27909 peeling for gaps by loading only lower halves of vectors
27911 (vectorizable_load): Likewise.
27913 2019-05-03 Richard Biener <rguenther@suse.de>
27915 PR middle-end/89518
27916 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
27918 2019-05-03 Richard Biener <rguenther@suse.de>
27920 PR middle-end/87314
27921 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
27922 Handle STRING_CST vs DECL or STRING_CST.
27924 2019-05-03 Richard Biener <rguenther@suse.de>
27926 PR tree-optimization/88963
27927 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
27928 vector loads feeding only BIT_FIELD_REFs to component
27929 loads. Rewrite stores fed by CONSTRUCTORs to component
27932 2019-05-03 Jakub Jelinek <jakub@redhat.com>
27934 * opts.h (finish_options): Remove lang_mask argument.
27935 (print_help, help_option_argument): Declare.
27936 * opts.c (print_help): Remove forward declaration, no longer static.
27937 (finish_options): Remove lang_mask argument, don't call print_help
27939 * opts-global.c (decode_options): Adjust finish_option caller, call
27942 PR tree-optimization/90303
27943 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
27944 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
27946 2019-05-03 Richard Biener <rguenther@suse.de>
27948 PR tree-optimization/89698
27949 * gimple-fold.c (canonicalize_constructor_val): Early out
27950 for constants, handle unfolded INTEGER_CSTs as they appear in
27951 C++ virtual table ctors.
27953 2019-05-03 Richard Biener <rguenther@suse.de>
27955 * passes.c (execute_function_todo): Remove dead code.
27957 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27959 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
27960 the internal register number, for any "real" register.
27962 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
27964 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
27965 correct numbers for TFHAR, TFIAR, TEXASR.
27967 2019-05-02 Richard Biener <rguenther@suse.de>
27969 PR tree-optimization/89653
27970 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
27971 update-address-taken before the pass.
27972 * passes.def (pass_tree_loop_init): Put comment before it.
27974 2019-05-02 Richard Biener <rguenther@suse.de>
27976 PR tree-optimization/89509
27977 * tree-ssa-structalias.c (compute_dependence_clique): Look
27978 at the first subvar when determining whether it is restrict.
27980 2019-05-02 Richard Biener <rguenther@suse.de>
27982 PR tree-optimization/90273
27983 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
27984 useless debug stmts.
27986 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27988 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
27990 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
27992 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
27993 VEC_COND_EXPR be inserted to emulate a conditional internal function.
27994 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
27995 (vectorizable_reduction): Use the functions above to vectorize in a
27996 fully masked loop codes that don't have a conditional internal
27999 2019-05-02 Martin Liska <mliska@suse.cz>
28001 * cgraphclones.c: Call valid_attribute_p with 1 for
28003 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28004 it's for target attribute.
28005 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28006 Add new boolean argument.
28007 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28009 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28010 to ix86_valid_target_attribute_inner_p.
28011 (ix86_valid_target_attribute_p): Pass flags argument to
28012 ix86_valid_target_attribute_inner_p.
28013 (get_builtin_code_for_version): Use 0 as it's target attribute.
28015 2019-05-02 Martin Liska <mliska@suse.cz>
28017 * gcc.c (process_command): Add dummy file only
28019 * opts-global.c (decode_options): Pass lang_mask.
28020 * opts.c (print_help): New function.
28021 (finish_options): Print --help if help_option_argument
28023 (common_handle_option): Factor out content of OPT__help_
28025 * opts.h (finish_options): Add new argument.
28027 2019-05-02 Martin Liska <mliska@suse.cz>
28030 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28031 With -minline-all-stringops use inline expansion using 4B loop.
28032 * doc/invoke.texi: Document the change of
28033 -minline-all-stringops.
28035 2019-05-01 Jeff Law <law@redhat.com>
28037 PR tree-optimization/88797
28038 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28039 PHI feeds a conditional on the RHS of an assignment.
28041 2019-04-30 Andrew Waterman <andrew@sifive.com>
28042 Jim Wilson <jimw@sifive.com>
28044 * config/riscv/constraints.md (L): New.
28045 * config/riscv/predicates.md (lui_operand): New.
28046 (sfb_alu_operand): New.
28047 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28048 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28049 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28050 * config/riscv/risc.md (type): Add sfb_alu.
28051 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28052 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28053 (branch_zero<mode>): Delete.
28054 (mov<mode>cc): New.
28055 (mov<GPR:mode><X:mode>cc): Likewise.
28056 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28058 2019-04-30 Nathan Sidwell <nathan@acm.org>
28060 * tree.h (MARK_TS_EXP): New.
28062 2019-04-30 Martin Liska <mliska@suse.cz>
28064 * opts.c (enable_warning_as_error): Provide hints
28065 for unknown options.
28067 2019-04-30 Martin Liska <mliska@suse.cz>
28070 * doc/invoke.texi: Add missing dash for gas-locview-support
28071 and gno-as-locview-support.
28073 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28076 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28077 whitespace at the start of target attribute string.
28079 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28082 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28083 Define __ARM_FEATURE_ATOMICS.
28085 2019-04-30 Martin Liska <mliska@suse.cz>
28087 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28088 into built_in_function enum. Remove code for endp == 2 and
28089 use BUILT_IN_* constants.
28090 (gimple_fold_builtin): Call the function with fcode.
28092 2019-04-30 Martin Liska <mliska@suse.cz>
28094 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28095 DECL_FUNCTION_CODE into ix86_builtins enum before
28096 the switch statement.
28098 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28100 PR tree-optimization/89475
28101 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28104 2019-04-30 Martin Liska <mliska@suse.cz>
28106 PR translation/90274
28107 * opts.c (print_filtered_help): Wrap string in _(...).
28109 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28111 PR tree-optimization/90240
28113 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28115 PR tree-optimization/90078
28116 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28117 checks for infinite_cost overflow.
28119 2019-04-29 Jeff Law <law@redhat.com>
28121 * passes.def: Move -Wrestrict pass after copy propagation.
28123 2019-04-29 Maya Rashish <coypu@sdf.org>
28125 * config.gcc (default_gnu_indirect_function): Default to yes
28126 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28127 sparc*-*-netbsd*, x86_64-*-netbsd*.
28129 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28131 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28132 where cond2 is NE_EXPR.
28133 (is_value_included_in): Update comment.
28135 2019-04-29 Richard Biener <rguenther@suse.de>
28137 PR tree-optimization/90278
28138 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28139 EH on comparison simplification.
28141 2019-04-29 Jason Merrill <jason@redhat.com>
28143 PR c++/82081 - tail call optimization breaks noexcept
28144 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28145 nothrow function to a might-throw function into a tail call.
28147 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28149 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28150 (DDR_INNER_LOOP): Likewise.
28151 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28152 (initialize_data_dependence_relation): Likewise.
28153 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28155 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28157 PR rtl-optimization/90257
28158 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28162 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28166 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28169 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28172 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28174 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28176 2019-04-29 Richard Biener <rguenther@suse.de>
28178 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28181 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28183 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28184 varasm.h, and netbsd-protos.h.
28186 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28189 * config/i386/i386-protos.h (ix86_data_alignment): Change
28190 the second argument type to unsigned int.
28191 * config/i386/i386.c (ix86_data_alignment): Change "align"
28192 argument type to unsigned int.
28194 2019-04-27 Martin Liska <mliska@suse.cz>
28196 PR middle-end/90258
28197 * opt-suggestions.c (option_proposer::build_option_suggestions):
28198 When get_valid_option_values returns empty values, add the
28199 misspelling candidate.
28201 2019-04-26 Jim Wilson <jimw@sifive.com>
28203 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28205 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28206 Pass orig_mode to riscv_build_integer.
28207 (riscv_split_integer): Pass mode to riscv_move_integer.
28208 (riscv_legitimize_const_move): Likewise.
28209 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28210 promoted_mode. Replace force_reg call with code to load constant into
28211 promoted reg and then subreg it for the store.
28212 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28213 riscv_move_integer.
28215 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28217 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28220 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28222 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28223 commentary about the encoding of precision.
28225 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28227 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28228 * config/i386/t-freebsd64: New file.
28229 * config.gcc: Add the t-freebsd64 for multilib support.
28231 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28233 * doc/extend.texi (vector_size): Add missing comma after @xref.
28235 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28237 * BASE-VER: Set to 10.0.0.
28239 2019-04-25 Richard Biener <rguenther@suse.de>
28241 PR middle-end/89765
28242 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28243 VIEW_CONVERT_EXPR into one operating on an rvalue.
28245 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28248 * config/i386/i386.c (feature_priority): Moved to file scope.
28249 (processor_features): Likewise.
28250 (processor_model): Likewise.
28251 (_arch_names_table): Likewise.
28252 (arch_names_table): Likewise.
28253 (_feature_list): Removed.
28254 (feature_list): Likewise.
28255 (_isa_names_table): Moved to file scope. Add priority.
28256 (isa_names_table): Likewise.
28257 (get_builtin_code_for_version): Replace feature_list with
28258 isa_names_table. Update error message for P_ZERO priority.
28260 2019-04-25 Richard Biener <rguenther@suse.de>
28262 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28263 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28265 2019-04-24 Jeff Law <law@redhat.com>
28267 PR tree-optimization/90037
28268 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28269 * passes.def: Replace all instance of phi-only cprop with the
28270 lattice propagator. Move propagation pass from after erroneous
28271 path isolation to before erroneous path isolation.
28272 * tree-ssa-phionlycprop.c: Remove.
28274 2019-04-24 Richard Biener <rguenther@suse.de>
28276 PR middle-end/90213
28277 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28278 by size and BITS_PER_UNIT on poly-wide-ints.
28280 2019-04-25 Richard Biener <rguenther@suse.de>
28282 PR middle-end/90194
28283 * match.pd: Add pattern to simplify view-conversion of an
28286 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28288 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28289 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28290 for Go on 32 bit AIX.
28291 * config/rs6000/aix72.h: Likewise.
28293 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28296 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28297 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28299 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28302 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28303 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28304 for restored hard frame pointer.
28305 (s390_sched_dependencies_evaluation): Implement new target hook.
28306 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28308 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28310 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28311 * config/arc/arc.c (arc_init): Cleanup warning message.
28312 (arc_override_options): Likewise.
28314 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28317 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28318 a register if both if_true and if_false are MEMs.
28320 PR tree-optimization/90208
28321 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28322 after labels of new_bb, not before them.
28324 PR tree-optimization/90211
28325 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28326 which are not SSA_NAMEs.
28328 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28330 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28332 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28334 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28336 PR rtl-optimization/87979
28337 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28340 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28342 PR rtl-optimization/84032
28343 * modulo-sched.c (ps_insn_find_column): Change condition so that
28344 branch will always be the last insn in a row inside partial
28347 2019-04-23 Richard Biener <rguenther@suse.de>
28350 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28351 dest_single_pred_p argument.
28352 (remove_forwarder_block): Adjust.
28353 (remove_forwarder_block_with_phi): Likewise.
28355 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28356 Bernd Edlinger <bernd.edlinger@hotmail.de>
28357 Jakub Jelinek <jakub@redhat.com>
28360 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28361 if used with general-regs-only.
28362 (arm_conditional_register_usage): Don't add non-general regs if
28364 (arm_valid_target_attribute_rec): Handle general-regs-only.
28365 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28367 (TARGET_HARD_FLOAT_SUB): Define.
28368 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28369 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28370 (TARGET_REALLY_IWMMXT2): Likewise.
28371 * config/arm/arm.opt: Add -mgeneral-regs-only.
28372 * doc/extend.texi: Document ARM general-regs-only target.
28373 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28375 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28377 PR tree-optimization/90078
28378 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28379 checks for infinite_cost overflow.
28381 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28383 PR tree-optimization/90021
28384 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28385 and check univariate against it.
28386 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28387 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28389 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28393 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28396 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28399 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28401 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28403 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28405 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28406 names using operand format, rather than hard-wired.
28407 (speculation_barrier): Likewise.
28409 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28411 PR tree-optimization/88055
28412 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28413 (gen_one_condition): Use it if !HONOR_NANS.
28415 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28417 PR middle-end/90139
28418 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28419 assign_temp instead of gen_reg_rtx.
28421 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28423 PR translation/90118
28424 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28425 Add missing space before %<.
28427 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28429 PR rtl-optimization/87871
28430 * ira-lives.c (make_object_dead): Don't add conflicts to
28431 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28433 2019-04-18 Martin Sebor <msebor@redhat.com>
28435 PR middle-end/89797
28436 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28437 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28438 assuming type size fits in SHWI.
28440 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28443 * ipa-inline.c (flatten_function): New parameter UPDATE.
28444 (ipa_inline, early_inliner): Use it.
28446 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28448 * fold-const.c (int_const_binop): Return early on failure.
28450 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28452 PR middle-end/85164
28453 * combine.c (force_int_to_mode): Cast the argument rather than
28454 the result of known_alignment.
28455 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28457 2019-04-18 Richard Biener <rguenther@suse.de>
28460 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28462 (remove_forwarder_block): ... here.
28463 (remove_forwarder_block_with_phi): Also move debug stmts here.
28465 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28467 PR translation/79183
28468 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28469 inform where appropriate.
28471 2019-04-18 Richard Biener <rguenther@suse.de>
28473 * tree.c (get_qualified_type): Put found type variants at the
28474 head of the variant list.
28476 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28478 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28480 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28483 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28484 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28485 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28486 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28487 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28489 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28491 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28492 even for allocno's with no conflicts.
28493 (print_conflicts): Print an extra newline.
28495 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28497 * auto-inc-dec.c (attempt_change): Set the alignment of the
28498 temporary memory to that of the original.
28500 2019-04-17 Joao Moreira <jmoreira@suse.de>
28502 * targhooks.c (default_print_patchable_function_entry): Emit
28503 __patchable_function_entries section with writable flags to allow
28504 relocation resolution.
28506 2019-04-17 Jonny Grant <jg@jguk.org>
28508 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28510 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28512 PR middle-end/90095
28513 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28514 on lowpart SUBREGs.
28516 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28518 * config/arc/arc.c (arc_init): Format diagnostic string.
28519 (arc_override_options): Likewise.
28520 (check_if_valid_regno_const): Likewise.
28521 (arc_reorg): Likewise.
28523 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28526 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28528 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28530 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28531 (*movdi_update1): Use Pmode.
28532 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28533 (movdi_<mode>_update_stack): Rename to ...
28534 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28536 (*movsi_update1): Use Pmode.
28537 (*movsi_update2): Use Pmode.
28538 (movsi_update): Rename to ...
28539 (movsi_<mode>_update): ... this. Use Pmode.
28540 (movsi_update_stack): Fix condition.
28541 (*movhi_update1): Use Pmode. Fix argument to
28542 avoiding_indexed_address_p.
28543 (*movhi_update2): Ditto.
28544 (*movhi_update3): Ditto.
28545 (*movhi_update4): Ditto.
28546 (*movqi_update1): Ditto.
28547 (*movqi_update2): Ditto.
28548 (*movqi_update3): Ditto.
28549 (*movsf_update1, *movdf_update1): Merge, rename to...
28550 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28551 avoiding_indexed_address_p. Add "size" attribute.
28552 (*movsf_update2, *movdf_update2): Merge, rename to...
28553 (*mov<mode>_update2): This. Ditto.
28554 (*movsf_update3): Use Pmode. Fix argument to
28555 avoiding_indexed_address_p.
28556 (*movsf_update4): Ditto.
28557 (allocate_stack): Simplify condition. Adjust pattern names.
28559 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28562 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28563 whitespace at the start of target attribute string.
28565 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28568 * config/rs6000/power9.md: Add store forwarding bypass.
28570 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28573 * valtrack.c (dead_debug_insert_temp): Reset debug references
28574 to the return value of a call being removed.
28576 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28578 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28579 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28580 implement target hook.
28581 (arc_memory_move_cost): New function.
28582 (TARGET_REGISTER_MOVE_COST): Define.
28583 (TARGET_MEMORY_MOVE_COST): Likewise.
28584 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28585 (MEMORY_MOVE_COST): Likewise.
28587 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28589 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28590 (sibcall_value_insn): Likewise.
28591 * config/arc/constraints.md (Rs5): Remove.
28593 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28595 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28596 for last two fake registers.
28597 (arc_conditional_register_usage): Make sure fake frame and arg
28598 pointer regs are in general regs class.
28599 (FRAME_POINTER_MASK): Remove.
28600 (RETURN_ADDR_MASK): Remove.
28601 (arc_must_save_register): Use hard frame regnum.
28602 (frame_restore_reg): Use hard_frame_pointer_rtx.
28603 (arc_save_callee_saves): Likewise.
28604 (arc_restore_callee_saves): Likewise.
28605 (arc_save_callee_enter): Likewise.
28606 (arc_restore_callee_leave): Likewise.
28607 (arc_save_callee_milli): Likewise.
28608 (arc_eh_return_address_location): Likewise.
28609 (arc_check_multi): Use hard frame regnum.
28610 (arc_can_eliminate): Likewise.
28611 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28612 for register allocator.
28613 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28614 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28615 (FRAME_POINTER_REGNUM): Change it to a fake register.
28616 (HARD_FRAME_POINTER_REGNUM): Defined.
28617 (ARG_POINTER_REGNUM): Change it to a new fake register.
28618 (ELIMINABLE_REGS): Update.
28619 (REGISTER_NAMES): Update names.
28620 * config/arc/arc.md (LP_START): Remove.
28621 (LP_END): Likewise.
28622 (shift_si3_loop): Update pattern.
28624 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28626 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28627 to avoid delay slot scheduling.
28628 (arc_must_save_register): Don't save SP.
28629 * config/arc/arc.md (stack_tie): Remove.
28630 (UNSPEC_ARC_STKTIE): Likewise.
28632 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28633 Shiva Chen <shiva0217@gmail.com>
28635 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28636 code gen with large shift amount.
28638 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28640 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28643 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28646 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28647 print -m64/-mx32/-m32 if it is true.
28648 (ix86_debug_options, ix86_function_specific_print): Pass true as
28649 ADD_ABI_P to ix86_target_string.
28650 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28651 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28652 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28654 PR rtl-optimization/90082
28655 * dce.c (can_delete_call): New function.
28656 (deletable_insn_p, mark_insn): Use it.
28658 PR tree-optimization/90090
28659 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28661 (is_division_by_square): Likewise. Formatting fix.
28663 2019-04-16 Richard Biener <rguenther@suse.de>
28665 PR tree-optimization/56049
28666 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28667 equality check if alias-set zero will prevail.
28669 2019-04-15 Jeff Law <law@redhat.com>
28671 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28672 size and alignment as unsigned.
28674 2019-04-15 Richard Biener <rguenther@suse.de>
28677 * tree-loop-distribution.c (destroy_loop): Preserve correct
28680 2019-04-15 Richard Biener <rguenther@suse.de>
28682 PR tree-optimization/90071
28683 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28684 abnormal operands from def stmts.
28686 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28688 PR rtl-optimization/89794
28689 * combine.c (count_auto_inc): New function.
28690 (try_combine): Count how many auto_inc expressions there were in the
28691 original instructions. Ensure we have the same number in the new
28692 instructions. Remove the code that tried to ensure auto_inc side
28693 effects on i1 and i0 are not lost.
28695 2019-04-15 Richard Biener <rguenther@suse.de>
28698 * tree.h (auto_var_p): Declare.
28699 * tree.c (auto_var_p): New function, split out from ...
28700 (auto_var_in_fn_p): ... here.
28701 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28703 (new_var_info): Initialize it.
28704 (set_uids_in_ptset): Also set the shadow variable uid if required.
28705 (ipa_pta_execute): Postprocess points-to solutions assigning
28706 shadow variable uids for locals that may reach their containing
28707 function recursively.
28708 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28709 assert but instead check whether the points-to solution is
28712 2019-04-15 Martin Jambor <mjambor@suse.cz>
28715 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28718 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28720 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28722 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28723 Kito Cheng <kito.cheng@gmail.com>
28724 Shiva Chen <shiva0217@gmail.com>
28726 * config/nds32/nds32-md-auxiliary.c
28727 (nds32_legitimize_pic_address): Use new PIC pattern.
28728 (nds32_legitimize_tls_address): Use new TLS pattern.
28729 (nds32_output_symrel): New.
28730 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28731 (nds32_alloc_relax_group_id): Ditto.
28732 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28733 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28735 (nds32_group_tls_insn): Ditto.
28736 (nds32_group_float_insns): Ditto.
28737 * config/nds32/nds32.md (tls_le): New.
28740 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28742 * configure: Add nds32 target for dwarf2 debug_line checking.
28743 * configure.ac: Regenerated.
28745 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28748 * ipa-devirt.c (skip_in_fields_list_p): New.
28749 (odr_types_equivalent_p): Use it.
28751 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28754 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28755 instead of strncmp when checking for thumb and arm. Formatting fixes.
28757 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28759 * doc/install.texi: Document --with-target-system-zlib.
28761 2019-04-12 Martin Sebor <msebor@redhat.com>
28767 * targhooks.c (default_vector_alignment): Avoid assuming
28768 argument fits in SHWI.
28769 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28770 a shift expression.
28771 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28773 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28775 PR rtl-optimization/89965
28776 * dce.c: Include rtl-iter.h.
28777 (struct check_argument_load_data): New type.
28778 (check_argument_load): New function.
28779 (find_call_stack_args): Check for loads from stack slots still tracked
28780 in sp_bytes and punt if any is found.
28782 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28784 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28786 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28787 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28789 2019-04-12 Martin Liska <mliska@suse.cz>
28791 PR middle-end/89970
28792 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28794 (separate_attrs): Handle multiple 'default's.
28795 (expand_target_clones): Rework error handling code.
28797 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28800 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28801 mode of vector rather than mode of destination for move instruction.
28802 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28803 Use QI inner mode with V16QI vector mode.
28805 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28808 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28809 "invalid %%t operand" in output_operand_lossage message.
28811 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28813 * config/s390/predicates.md (permute_pattern_operand): New
28815 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28816 operand for the permute pattern.
28817 ("*vec_perm<mode>"): New insn definition.
28818 ("bswap<mode>"): Generate the permute pattern operand in the
28819 expander and perform the operand reloads for pre arch13 level
28821 ("*bswap<mode>_emu"): Rename to ...
28822 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28823 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28824 Add the USE operand for the permute pattern.
28825 ("*vec_set_bswap_vec<mode>"): Likewise.
28827 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28830 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28831 and gcc_unreachable if it fails, just call tree_to_uhwi which
28832 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28833 Start warning message with a lower-case letter. Formatting fixes.
28835 PR rtl-optimization/90026
28836 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28837 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28838 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28839 in cfglayout mode, use emit_barrier_after_bb.
28841 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28843 PR rtl-optimization/87763
28844 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28847 2019-04-11 Tom de Vries <tdevries@suse.de>
28849 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28850 max macro using statement expression.
28852 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28854 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28855 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28856 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28857 read_only_private_data_section using xcoff_private_rodata_section_name.
28858 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28860 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28863 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28865 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28867 PR rtl-optimization/89965
28868 * dce.c (sp_based_mem_offset): New function.
28869 (find_call_stack_args): Use sp_based_mem_offset.
28871 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28873 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28875 2019-04-11 Richard Biener <rguenther@suse.de>
28877 PR tree-optimization/90020
28878 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28879 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28880 * tree-ssa-pre.c (compute_avail): Use it to not put
28881 possibly trapping references after a call that might not
28882 return into EXP_GEN.
28883 * gcse.c (compute_hash_table_work): Do not elide
28884 marking a block containing a call if the call might not
28887 2019-04-11 Richard Biener <rguenther@suse.de>
28889 PR tree-optimization/90018
28890 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
28891 Test both SLP and interleaving variants.
28893 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
28895 * config/s390/8561.md: New file.
28896 * config/s390/driver-native.c (s390_host_detect_local_cpu):
28897 Add arch13 cpu model.
28898 * config/s390/s390-opts.h (enum processor_type): Likewise.
28899 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
28900 (s390_get_unit_mask): Likewise.
28901 (s390_is_fpd): Likewise.
28902 (s390_is_fxd): Likewise.
28903 * config/s390/s390.h (s390_tune_attr): Likewise.
28904 * config/s390/s390.md: Include arch13 pipeline description.
28905 * config/s390/s390.opt: Add arch13.
28907 2018-04-10 Steve Ellcey <sellcey@marvell.com>
28909 PR rtl-optimization/87763
28910 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
28912 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
28914 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
28916 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
28917 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
28918 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
28919 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
28921 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
28923 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
28924 "Although" in -fipa-icf documentation.
28926 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
28927 of using multiple -g options.
28929 2019-04-10 Martin Liska <mliska@suse.cz>
28931 PR gcov-profile/89959
28932 * doc/gcov.texi: Make documentation of -x option
28935 2019-04-10 Richard Biener <rguenther@suse.de>
28937 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
28939 (DR_GROUP_SAME_DR_STMT): Remove.
28940 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
28941 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
28942 replace with assert.
28943 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
28944 (vect_record_grouped_load_vectors): Remove unreachable code.
28946 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
28949 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
28950 obsolete reference to N.
28952 2019-04-10 Jakub Jelinek <jakub@redhat.com>
28954 PR middle-end/90025
28955 * expr.c (store_expr): Set properly size on the MEM passed to
28959 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
28960 with strlen in between hostsz-3 and hostsz-1 inclusive when no
28961 translation is needed, and when translation is needed, only append
28962 ... if the string length is hostsz or more bytes long. Avoid using
28965 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
28968 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
28969 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
28971 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
28972 differences directly.
28973 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
28975 2019-04-09 Jakub Jelinek <jakub@redhat.com>
28977 PR translation/90011
28978 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28980 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
28982 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
28983 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
28984 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
28985 trailing space from -gsplit-dwarf diagnostics.
28987 PR tree-optimization/89998
28988 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
28989 instead of integer_type_node if possible, don't add ranges if return
28990 type is not compatible with int.
28991 * gimple-fold.c (gimple_fold_builtin_sprintf,
28992 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
28995 2019-04-09 Martin Liska <mliska@suse.cz>
28997 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
28998 * doc/install.texi: Document the new config.
29000 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29002 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29003 use gimple_expr_type for load and store calls. Skip over the
29004 condition argument in a conditional internal function.
29005 Protect use of TREE_INT_CST_LOW.
29007 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29010 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29011 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29012 trailing period from it too.
29014 2019-04-08 wu yuan <wuyuan5@huawei.com>
29016 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29017 * config/aarch64/aarch64.md: Add "tsv110.md".
29018 * config/aarch64/tsv110.md: New file.
29020 2019-04-08 Richard Biener <rguenther@suse.de>
29022 PR tree-optimization/90006
29023 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29026 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29029 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29031 (fma_root_node): Likewise.
29032 (func_fma_steering): Likewise.
29034 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29036 PR rtl-optimization/89865
29037 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29039 PR rtl-optimization/89865
29040 * config/i386/i386.md
29041 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29042 numbers not to clash with the additional operands[4].
29043 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29044 with extra register copy in the middle.
29046 2019-04-08 Martin Liska <mliska@suse.cz>
29048 PR gcov-profile/89961
29049 * doc/gcov.texi: Document data_file.
29050 * gcov.c (generate_results): Add data_info into JSON output.
29052 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29054 PR tree-optimization/89725
29055 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29056 loop's chrec as invariant symbol.
29057 * tree-chrec.h (chrec_contains_symbols): New parameter.
29058 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29059 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29060 function of loops not in DDR's loop_nest.
29061 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29063 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29066 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29069 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29072 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29073 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29075 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29077 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29078 targetm.fixed_condition_code_regs.
29080 2019-04-05 Richard Biener <rguenther@suse.de>
29084 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29085 debug bind stmts but reset them if they are not valid at the
29088 2019-04-05 Martin Liska <mliska@suse.cz>
29090 PR translation/89936
29091 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29092 order to wrap keywords or arguments.
29093 * collect2.c (main): Likewise.
29094 (scan_prog_file): Likewise.
29095 (scan_libraries): Likewise.
29096 * common/config/riscv/riscv-common.c
29097 (riscv_subset_list::parsing_subset_version): Likewise.
29098 (riscv_subset_list::parse_std_ext): Likewise.
29099 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29101 * config/arm/arm.c (arm_option_override): Likewise.
29102 * config/cris/cris.c (cris_print_operand): Likewise.
29103 * config/darwin-c.c (darwin_pragma_options): Likewise.
29104 (darwin_pragma_unused): Likewise.
29105 (darwin_pragma_ms_struct): Likewise.
29106 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29107 * config/i386/i386.c (print_reg): Likewise.
29108 (ix86_print_operand): Likewise.
29109 * config/i386/xm-djgpp.h: Likewise.
29110 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29111 * config/m32c/m32c.c (m32c_option_override): Likewise.
29112 * config/msp430/msp430.c (msp430_option_override): Likewise.
29113 * config/nds32/nds32.c (nds32_option_override): Likewise.
29114 * config/nvptx/mkoffload.c (main): Likewise.
29115 * config/rx/rx.c (rx_print_operand): Likewise.
29116 (valid_psw_flag): Likewise.
29117 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29118 (vms_pragma_nomember_alignment): Likewise.
29119 (vms_pragma_extern_model): Likewise.
29120 * lto-wrapper.c (compile_offload_image): Likewise.
29121 * omp-offload.c (oacc_parse_default_dims): Likewise.
29122 * symtab.c (symtab_node::verify_base): Likewise.
29123 * tlink.c (recompile_files): Likewise.
29124 (start_tweaking): Likewise.
29125 * tree-profile.c (parse_profile_filter): Likewise.
29127 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29129 PR tree-optimization/89956
29130 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29131 multiple negates of the same value.
29133 2019-04-04 Martin Sebor <msebor@redhat.com>
29135 PR middle-end/89957
29136 PR middle-end/89911
29137 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29138 have the same precision since the function crashes otherwise.
29139 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29140 has non-zero arguments.
29142 2019-04-04 Martin Sebor <msebor@redhat.com>
29144 PR middle-end/89934
29145 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29146 out if the number of arguments is less than expected.
29148 2019-04-04 Jeff Law <law@redhat.com>
29150 PR rtl-optimization/89399
29151 * ree.c (combine_set_extension): Use single_set rather than
29152 digging into PATTERN for items on the candidate list.
29153 (combine_reaching_defs): Likewise.
29155 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29157 PR rtl-optimization/46590
29158 * loop-invariant.c (find_defs): Move df_remove_problem and
29159 df_process_deferred_rescans to move_invariants.
29160 Move df_live_add_problem and df_live_set_all_dirty calls
29161 to move_invariants.
29162 (move_invariants): Likewise.
29163 (move_loop_invariants): Likewise, making the df_live calls
29164 conditional on -O. Remove the problem again if we added it
29167 2019-04-03 qing zhao <qing.zhao@oracle.com>
29169 PR tree-optimization/89730
29170 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29171 -flive-patching=inline-only-static.
29172 (can_inline_edge_by_limits_p): Add the checking for
29173 -flive-patching=inline-only-static and grant always_inline
29174 even when -flive-patching=inline-only-static is specified.
29176 2019-04-03 Jeff Law <law@redhat.com>
29178 PR rtl-optimization/81025
29179 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29181 2019-04-03 Richard Biener <rguenther@suse.de>
29183 PR tree-optimization/84101
29184 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29185 regs.h for hard_regno_nregs.
29186 (cfun_returns): New helper.
29187 (vect_model_store_cost): When vectorizing a store to a decl
29188 we return and the function ABI returns in a multi-reg location
29189 account for the possible spilling that will happen.
29191 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29193 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29194 displacement addresses for vector mode operands.
29196 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29198 * config/arc/arc.c (GMASK_LEN): Define.
29199 (arc_restore_callee_saves): Restore first blink when
29202 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29204 * doc/extend.texi: Add deprecated comment on sign-return-address
29205 function attribute and add mbranch-protection.
29206 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29208 2019-04-03 Richard Biener <rguenther@suse.de>
29211 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29212 the all target phony.
29214 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29218 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29219 Return false for variable DImode shifts.
29220 (dimode_scalar_chain::compute_convert_gain): Do not handle
29221 register count operand in variable DImode shifts.
29222 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29223 count argument of a variable shift instruction to a vector register.
29224 (dimode_scalar_chain::convert_reg): Remove support to convert
29225 count argument of a variable shift instruction.
29227 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29229 PR rtl-optimization/84206
29230 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29231 iterating over loop headers.
29233 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29235 PR rtl-optimization/85876
29236 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29237 beyond the original fence.
29239 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29241 * config.gcc: Mark spu* targets as deprecated/obsolete.
29243 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29245 * config/s390/s390-builtin-types.def: New builtin function type
29246 definitions. Remove unused types.
29247 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29248 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29249 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29250 overloaded builtins.
29251 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29252 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29253 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29254 (vec_double, vec_signed, vec_unsigned): Define to use the new
29255 overloaded builtins.
29256 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29259 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29261 * config/s390/s390-builtin-types.def: New builtin function type
29263 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29264 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29265 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29266 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29267 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29268 constant definitions.
29269 * config/s390/vecintrin.h (vec_search_string_cc)
29270 (vec_search_string_until_zero_cc): New builtin name definitions.
29271 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29273 ("vec_vstrs<mode>"): New insn definition.
29275 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29277 * config/s390/s390-builtin-types.def: Add new builtin function
29279 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29280 New overloaded builtins.
29281 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29283 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29284 (UNSPEC_VEC_SLDBYTE): ... this.
29285 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29286 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29288 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29289 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29290 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29292 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29294 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29295 New insn definition.
29296 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29297 * config/s390/vector.md (V_HW_HSD): ... here.
29299 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29301 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29302 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29303 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29304 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29305 New insn definitions.
29307 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29309 * config/s390/s390-builtin-types.def: Add new builtin function type.
29310 * config/s390/s390-builtins.def: Add overloaded builtin
29311 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29312 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29313 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29314 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29315 ("eltswap<mode>"): New expander.
29316 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29319 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29321 * config/s390/s390-builtin-types.def: Add new builtin function types.
29322 * config/s390/s390-builtins.def: Add overloaded builtin
29323 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29325 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29326 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29327 ("bswap<mode>"): New expander.
29328 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29330 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29332 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29333 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29334 vector builtin version number in __VEC__.
29336 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29338 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29340 (SFSI): New mode attribute.
29341 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29342 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29344 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29345 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29346 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29347 ("floatsi<mode>2"): Add wcefb instruction.
29349 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29351 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29352 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29354 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29355 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29356 support 32 bit fp-int conversions. Rename to ...
29357 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29358 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29359 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29360 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29363 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29365 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29366 if-then-else constructs if we can use the select instruction.
29367 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29369 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29371 * config/s390/s390.md ("*popcountdi_arch13_cc")
29372 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29374 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29375 Append _z196 to make it ...
29376 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29377 ("popcounthi2_z196"): ... this.
29378 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29379 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29381 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29383 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29384 certain compares for arch13 in order to make use of the condition
29385 code result produced by the new instructions.
29386 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29387 nxrk, and nxgrk instruction patterns.
29388 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29389 (inv_no): Add new code iterator together with some attributes.
29390 ("*andc_split_<mode>"): Disable splitter for arch13.
29391 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29392 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29393 ("*<ANDOR:bitops_name>c<GPR:mode>")
29394 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29395 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29396 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29397 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29399 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29401 * common/config/s390/s390-common.c (processor_flags_table): New
29403 * config.gcc: Support arch13 with the --with-arch= configure flag.
29404 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29405 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29406 * config/s390/s390.c (s390_get_sched_attrmask)
29407 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29408 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29409 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29410 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29411 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29413 * config/s390/s390.opt: Support arch13 as processor type in
29414 command line options.
29416 2019-04-02 Martin Liska <mliska@suse.cz>
29418 PR translation/89912
29419 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29420 Fix param description of graphite-max-arrays-per-scop.
29422 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29424 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29425 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29426 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29428 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29430 PR rtl-optimization/85412
29431 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29432 sel_sched_region_1, not after.
29434 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29436 PR rtl-optimization/86928
29437 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29438 compute_live if necessary.
29439 (sel_redirect_edge_and_branch): Likewise.
29441 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29443 PR rtl-optimization/89865
29444 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29445 register if it is a part of small class.
29447 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29449 PR rtl-optimization/87273
29450 * sel-sched-ir.c (merge_fences): Remove assert.
29452 2019-04-01 Richard Biener <rguenther@suse.de>
29454 PR tree-optimization/46590
29455 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29456 (dom_walker::m_reachability): Add in place of...
29457 (dom_walker::m_skip_unreachable_blocks): ...this.
29458 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29459 Move complex initialization ...
29460 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29461 lazily and initialize edge flags on each invocation.
29462 (dom_walker::bb_reachable): Use m_reachability.
29464 2019-04-01 Martin Liska <mliska@suse.cz>
29467 * opt-suggestions.c (option_proposer::build_option_suggestions):
29468 Add variant without any argument in order to provide better
29471 2019-04-01 Richard Biener <rguenther@suse.de>
29474 * gimple.c: Include langhooks.h.
29475 (gimple_get_alias_set): Treat enumeral types as the underlying
29478 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29479 Eric Botcazou <ebotcazou@adacore.com>
29481 PR rtl-optimization/89862
29482 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29483 that operates on the full registers for WORD_REGISTER_OPERATIONS
29486 2019-03-29 Jim Wilson <jimw@sifive.com>
29488 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29489 Clear MASK_RVC and then set if C subset supported.
29491 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29494 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29495 non-addressable complit into its initializer if it is volatile.
29497 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29499 * opts-common.c (integral_argument): Set errno properly in one case.
29501 2019-03-29 Martin Liska <mliska@suse.cz>
29503 * doc/invoke.texi: Remove -Wchkp from documentation.
29505 2019-03-29 Martin Liska <mliska@suse.cz>
29507 * dbgcnt.c (print_limit_reach): New function.
29510 2019-03-29 Martin Liska <mliska@suse.cz>
29512 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29513 (dbg_cnt_process_opt): Parse first tokens aas
29514 dbg_cnt_process_single_pair is also using strtok.
29516 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29518 PR rtl-optimization/87485
29519 * function.c (expand_function_end): Move stack_protect_epilogue
29520 before loading of return value into hard register(s).
29522 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29524 PR middle-end/89621
29525 * tree-inline.h (struct copy_body_data): Add
29526 dont_remap_vla_if_no_change flag.
29527 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29528 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29529 and remap_type_2 returns false.
29530 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29531 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29532 only from where it is copied to nested contexts.
29534 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29537 * config/i386/i386.md (RMW operation with LEA peephole):
29538 Use LEAMODE mode attribute instead of SWI mode iterator for
29541 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29544 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29545 Also process XEXP (src, 0) of a shift insn.
29547 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29549 PR middle-end/89725
29550 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29551 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29553 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29555 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29557 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29558 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29559 immediately after first one with df_analyze in between, but rather
29560 process all bbs, queueing ones that need second pass in a worklist,
29561 df_analyze, process queued debug insn changes and if second pass is
29562 needed, process bbs from worklist, df_analyze, process queued debug
29565 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29566 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29567 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29569 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29572 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29575 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29578 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29579 function for 32-bit MS_ABI.
29580 (function_value_ms_32): New function.
29582 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29584 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29585 (movdi): Call gen_movdi_symbol_save_scc.
29586 (gen_movdi_symbol_save_scc): New insn and split.
29588 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29590 PR rtl-optimization/89313
29591 * function.c (matching_constraint_num): New static function.
29592 (match_asm_constraints_1): Use it. Fixup white space and comment.
29593 Don't replace inputs with non-matching constraints which conflict
29594 with early clobber outputs.
29596 2019-03-27 Jeff Law <law@redhat.com>
29598 PR rtl-optimization/87761
29599 PR rtl-optimization/89826
29600 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29602 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29603 note problem to get REG_DEAD/REG_UNUSED notes updated.
29605 2019-03-27 Richard Biener <rguenther@suse.de>
29607 PR tree-optimization/89463
29608 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29609 queue edges to remove.
29610 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29611 dead stmts. Delay edge removal until PHIs are removed to
29612 make debug-stmt creation not confused by seemingly degenerate
29615 2019-03-27 Alan Modra <amodra@gmail.com>
29617 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29619 * config/rs6000/darwin.h: Likewise.
29620 * config/rs6000/rs6000.c: Likewise.
29622 2019-03-27 Alan Modra <amodra@gmail.com>
29624 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29625 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29627 2019-03-26 Andrew Waterman <andrew@sifive.com>
29628 Jim Wilson <jimw@sifive.com>
29630 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29631 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29632 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29633 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29634 (generic_alu): Add auipc to type list.
29635 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29636 (riscv_microarchitecture): Declare.
29637 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29638 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29640 (riscv_microarchitecture): New.
29641 (sifive_7_tune_info): New.
29642 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29643 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29645 (riscv_store_data_bypass_p): New.
29646 (riscv_option_override): Set riscv_microarchitecture from
29647 cpu->microarchitecture.
29648 * config/riscv/riscv.md: Include sifive-7.md.
29651 (auipc<mode>): Change type to auipc.
29652 (restore_stack_nonlocal): New.
29653 * config/riscv/sifive-7.md: New.
29654 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29656 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29659 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29660 Also process XEXP (src, 0) of a shift insn.
29662 2019-03-26 Richard Biener <rguenther@suse.de>
29664 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29665 (copy_debug_stmt): Likewise.
29666 (expand_call_inline): Likewise.
29667 (copy_bb): Avoid redundant lookup & set of gimple_block.
29668 * gimple-low.c (lower_gimple_return): Likewise.
29669 (lower_builtin_setjmp): Likewise.
29671 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29673 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29674 is constant 0, turn into static const data member initialized to false.
29675 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29676 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29678 2019-03-26 Jason Merrill <jason@redhat.com>
29679 Jakub Jelinek <jakub@redhat.com>
29681 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29683 (mem_alloc_description::release_object_overhead): Fix comment typos.
29684 * hash-table.h (hash_table::~hash_table): Call
29685 release_instance_overhead only if m_entries is non-NULL, otherwise
29686 call unregister_descriptor.
29688 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29690 PR tree-optimization/81740
29691 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29692 In case of outer loop vectorization, check for backward dependence
29693 at the inner loop if outer loop dependence is reversed.
29695 2019-03-26 Alan Modra <amodra@gmail.com>
29697 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29698 rs6000_vector_mem init. Correct wI and wJ comment.
29700 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29702 PR rtl-optimization/88347
29703 PR rtl-optimization/88423
29704 * sched-deps.c (sched_analyze_insn): Take into account that for
29705 tablejumps the barrier appears after a label and a jump_table_data.
29707 2019-03-25 Martin Sebor <msebor@redhat.com>
29710 * c-common.c (check_user_alignment): Rename local. Correct maximum
29711 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29712 convert it to UHWI when it fits.
29714 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29717 * dwarf2out.c (premark_used_variables): New function.
29718 (prune_unused_types_walk): Do not mark not premarked external
29720 (prune_unused_types): Call premark_used_variables.
29722 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29724 PR rtl-optimization/89676
29725 * lra-constraints.c (curr_insn_transform): Do match reload for
29726 early clobbers when the match was successful only for different
29729 2019-03-25 Martin Sebor <msebor@redhat.com>
29731 * doc/extend.texi (Common Type Attributes): Document vector_size.
29732 (Common Variable Attributes): Mention size constraint. Correct
29734 (Vector Extensions): Use @dfn when defining bas type. Clarify
29735 base type and size constraints.
29737 2019-03-25 Richard Biener <rguenther@suse.de>
29739 PR tree-optimization/89789
29740 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29741 changes from non-undefined back to undefined.
29743 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29745 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29746 heap string and a gc string, but since this variable is unknown to
29747 ggc the gc string might get reused and corrupted. Fixed by always
29748 using a heap string.
29750 2019-03-25 Richard Biener <rguenther@suse.de>
29752 PR tree-optimization/89779
29753 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29754 to remove IV defs, delay actual removal.
29755 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29756 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29757 very end, properly also reset loop control IV information.
29759 2019-03-25 Richard Biener <rguenther@suse.de>
29761 PR tree-optimization/89802
29762 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29763 move EH data to folded stmt.
29765 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29767 * config/s390/s390-builtin-types.def: Remove few unused types and
29768 fix sort order for others.
29770 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29772 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29773 expected and found types with -mdebug during builtin matching.
29775 2019-03-25 Richard Biener <rguenther@suse.de>
29777 PR middle-end/89790
29778 * fold-const.c (operand_equal_p): Revert last change with
29781 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29783 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29784 notes for the result of the __tls_get_addr calls.
29785 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29787 2019-03-24 Jeff Law <law@redhat.com>
29789 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29791 PR rtl-optimization/87761
29792 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29793 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29795 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29796 rescans. Reprocess blocks as needed, calling df_analyze before
29797 reprocessing. Always call df_analyze before fixing up debug bind
29800 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29802 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29805 2019-03-22 Andrew Pinski <apinski@marvell.com>
29807 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29808 attrribute for uxtw.
29810 2019-03-26 Jeff Law <law@redhat.com>
29812 PR rtl-optimization/87761
29813 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29814 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29815 (mips_split_move): Accept new INSN argument. Try to forward SRC
29816 into the next instruction.
29817 (mips_split_move_insn): Pass INSN through to mips_split_move.
29819 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29821 PR rtl-optimization/89676
29822 * lra-constraints.c (curr_insn_transform): Do match reload for
29823 early clobbers even if the match was successful.
29825 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29828 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29830 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29832 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29834 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29836 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29837 <avx512>_fmsub_<mode>_mask3<round_name>,
29838 <avx512>_fnmadd_<mode>_mask3<round_name>,
29839 <avx512>_fnmsub_<mode>_mask3<round_name>,
29840 avx512f_vmfmadd_<mode>_mask3<round_name>,
29841 avx512f_vmfmsub_<mode>_mask3<round_name>,
29842 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29843 instead of register_operand and %v instead of v for match_operand 1.
29844 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29845 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29846 <round_nimm_predicate> instead of register_operand and %v instead of v
29847 for match_operand 1.
29849 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29850 <avx512>_fmadd_<mode>_mask3<round_name>,
29851 <avx512>_fmsub_<mode>_mask<round_name>,
29852 <avx512>_fmsub_<mode>_mask3<round_name>,
29853 <avx512>_fnmadd_<mode>_mask<round_name>,
29854 <avx512>_fnmadd_<mode>_mask3<round_name>,
29855 <avx512>_fnmsub_<mode>_mask<round_name>,
29856 <avx512>_fnmsub_<mode>_mask3<round_name>,
29857 <avx512>_fmaddsub_<mode>_mask<round_name>,
29858 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29859 <avx512>_fmsubadd_<mode>_mask<round_name>,
29860 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29861 <round_nimm_predicate> instead of nonimmediate_operand.
29862 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29863 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29864 Use register_operand instead of <round_nimm_predicate> for the
29865 operand that needs to match output.
29866 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29867 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29868 Likewise. Formatting fixes.
29871 * config/i386/i386.c (enum ix86_builtins): Remove
29872 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29873 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29874 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29875 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29876 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29877 __builtin_ia32_vfmsubss3_mask3): New builtins.
29878 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29879 avx512f_vmfmadd_<mode>_mask3<round_name>,
29880 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29881 *avx512f_vmfmsub_<mode>_mask<round_name>,
29882 avx512f_vmfmsub_<mode>_mask3<round_name>,
29883 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29884 *avx512f_vmfnmadd_<mode>_mask<round_name>,
29885 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
29886 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
29887 *avx512f_vmfnmsub_<mode>_mask<round_name>,
29888 avx512f_vmfnmsub_<mode>_mask3<round_name>,
29889 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
29890 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
29891 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
29892 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
29893 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
29894 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
29895 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
29896 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
29897 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
29898 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
29899 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
29900 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
29901 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
29902 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
29903 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
29904 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
29905 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
29906 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
29907 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
29908 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
29909 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
29910 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
29912 2019-03-21 Martin Sebor <msebor@redhat.com>
29914 PR tree-optimization/89350
29915 * builtins.c (compute_objsize): Also ignore offsets whose upper
29917 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
29918 (builtin_memref::builtin_memref): Initialize new member.
29919 Allow EXPR to be null.
29920 (builtin_memref::extend_offset_range): Replace local with a member.
29921 Avoid assuming pointer offsets are unsigned.
29922 (builtin_memref::set_base_and_offset): Determine base object
29923 before computing offset range.
29924 (builtin_access::builtin_access): Handle memset.
29925 (builtin_access::generic_overlap): Replace local with a member.
29926 (builtin_access::strcat_overlap): Same.
29927 (builtin_access::overlap): Same.
29928 (maybe_diag_overlap): Same.
29929 (maybe_diag_access_bounds): Same.
29930 (wrestrict_dom_walker::check_call): Handle memset.
29931 (check_bounds_or_overlap): Same.
29933 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
29934 Jakub Jelinek <jakub@redhat.com>
29937 * tree.c (fld_type_variant, fld_incomplete_type_of,
29938 fld_process_array_type): Call fld->pset.add and don't call
29939 add_tree_to_fld_list if it returns true.
29940 (free_lang_data_in_type): Similarly with self-recursive call. Purge
29941 non-marked types from TYPE_NEXT_VARIANT list.
29942 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
29944 2019-03-21 Jakub Jelinek <jakub@redhat.com>
29946 * hash-table.h (hash_table): Add Lazy template parameter defaulted
29947 to false, if true, don't alloc_entries during construction, but defer
29948 it to the first method that needs m_entries allocated.
29949 (hash_table::hash_table, hash_table::~hash_table,
29950 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
29951 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
29952 hash_table::clear_slot, hash_table::traverse_noresize,
29953 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
29954 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
29956 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
29957 NO_INSERT instead of find_with_hash.
29958 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
29959 hash_set::m_table): Add Lazy to template params of hash_table.
29960 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
29961 * attribs.c (test_attribute_exclusions): Likewise.
29962 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
29963 hash_set. Add tests for hash_set with Lazy = true.
29965 2019-03-21 Richard Biener <rguenther@suse.de>
29967 PR tree-optimization/89779
29968 * tree.c (tree_nop_conversion): Consolidate and fix defensive
29969 checks with respect to released SSA names now having error_mark_node
29971 * fold-const.c (operand_equal_p): Likewise.
29973 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
29976 * config/s390/s390.c (global_not_special_regno_p): Move to make it
29978 (s390_optimize_register_info): Use global_not_special_regno_p to
29979 check for global regs.
29981 2019-03-20 Jakub Jelinek <jakub@redhat.com>
29984 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
29985 update this_alternative nor this_alternative_set.
29987 2019-03-19 Jim Wilson <jimw@sifive.com>
29990 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
29991 align, size, offset. Use them to handle a BLKmode reference. Update
29993 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
29995 2019-03-19 Jakub Jelinek <jakub@redhat.com>
29997 PR rtl-optimization/89768
29998 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
29999 instead of GEN_INT.
30000 (unroll_loop_runtime_iterations): Likewise.
30002 2019-03-19 Martin Sebor <msebor@redhat.com>
30004 PR tree-optimization/89644
30005 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30006 rather than endptr as an indicator of nul-termination.
30008 PR tree-optimization/89644
30009 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30010 arrays in determining sequence sizes in strncpy and stpncpy.
30012 2019-03-19 Martin Liska <mliska@suse.cz>
30014 PR middle-end/89737
30015 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30016 unlikely_edges if there's an edge that belongs to both these sets.
30018 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30021 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30022 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30023 go via a stack temporary.
30025 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30028 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30029 instead of gen_rtx_SUBREG.
30030 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30032 2019-03-19 Richard Biener <rguenther@suse.de>
30035 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30037 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30041 * tree.c (free_lang_data_in_decl): Do not free context of C++
30044 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30047 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30048 subs for the first alternative except when operands[3] is 1.
30051 * gimplify.c (gimplify_asm_expr): For output argument with
30052 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30055 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30057 PR rtl-optimization/89753
30058 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30059 explicit unrolling factor even more robust.
30061 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30064 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30065 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30066 signed zeros, do another copysign after the compensation.
30068 2019-03-18 Martin Sebor <msebor@redhat.com>
30070 PR tree-optimization/89720
30071 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30072 more conservatively, the same as anti-range.
30074 2019-03-18 Richard Biener <rguenther@suse.de>
30076 PR middle-end/88945
30077 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30078 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30079 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30080 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30082 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30084 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30085 Extend queue to 1024 entries.
30086 Add "consumed" field.
30087 (gomp_print_output): Remove print_index parameter.
30088 Add final parameter.
30089 Change limit to unsigned.
30090 Use consumed field to implement circular buffer.
30091 Detect interrupted print in final pass.
30092 Flush output at the end.
30093 (run): Update gomp_print_output usage.
30094 (main): Initialize kernargs->output_data.consumed.
30096 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30098 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30099 calculation of the minimum number of scalar iterations for
30100 fully-predicated loops.
30102 2019-03-18 Martin Jambor <mjambor@suse.cz>
30104 PR tree-optimization/89546
30105 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30106 any propagation to its children took place.
30108 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30111 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30112 parameter, and make use of it.
30113 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30115 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30117 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30118 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30119 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30120 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30121 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30122 match what the ops is doing.
30123 (push_multi_fp_blink): Likewise.
30124 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30125 compiling for size and elf target.
30126 (arc_save_callee_enter): Adjust note to match what enter/leave
30129 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30131 * config/arc/arc.md (tst_movb): Fix constraint.
30133 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30135 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30137 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30139 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30140 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30141 reg_alloc_order references.
30142 (size_alloc_order): Define.
30143 (arc_adjust_reg_alloc_order): New function.
30144 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30146 (ADJUST_REG_ALLOC_ORDER): Define.
30147 (HONOR_REG_ALLOC_ORDER): Likewise.
30149 2019-03-18 Richard Biener <rguenther@suse.de>
30152 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30153 loads and stores a bit more.
30155 2019-03-18 Richard Biener <rguenther@suse.de>
30158 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30159 load pessimization to stores as well.
30161 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30163 PR middle-end/86979
30164 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30165 successor, use NULL as its av set.
30167 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30169 PR rtl-optimization/89721
30170 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30172 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30175 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30176 When handling vec_extract, use modular arithmetic to allow
30177 constant selectors greater than vector length.
30178 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30179 V1TImode vectors to have constant selector values greater than 0.
30180 Use modular arithmetic to compute vector index.
30181 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30182 index for in-memory vectors. Correct code generation for
30183 in-register vectors.
30184 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30187 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30191 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30194 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30197 * tree.c (inchash::add_expr): Strip any location wrappers.
30198 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30199 after hash verification.
30202 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30203 SIGN_EXTEND and ZERO_EXTEND.
30205 2019-03-14 Jason Merrill <jason@redhat.com>
30206 Jakub Jelinek <jakub@redhat.com>
30208 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30209 than if is_empty (*slot).
30210 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30211 existing elt and for elt removal.
30212 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30213 of already removed elt.
30215 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30218 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30219 REG_EH_REGION note.
30221 2019-03-14 Martin Liska <mliska@suse.cz>
30224 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30226 2019-03-14 Richard Biener <rguenther@suse.de>
30229 * config/i386/i386.c (make_resolver_func): Properly set
30230 DECL_CONTEXT on the RESULT_DECL.
30231 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30233 2019-03-14 Richard Biener <rguenther@suse.de>
30235 * gimple-pretty-print.c: Include cfgloop.h.
30236 (dump_gimple_phi): Adjust.
30237 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30238 (pp_cfg_jump): Adjust.
30239 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30240 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30241 (lower_phi_internal_fn): Remove.
30242 (verify_gimple_call): Remove IFN_PHI special-casing.
30243 (dump_function_to_file): Dump IL state.
30244 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30245 done to deal with PHI nodes being present in non-SSA state.
30247 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30250 * multiple_target.c (create_dispatcher_calls): Change
30251 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30252 In the node->iterate_referring loop, push *ref rather than ref, call
30253 ref->remove_reference () and always pass 0 to iterate_referring.
30255 PR rtl-optimization/89679
30256 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30257 would contain a paradoxical SUBREG.
30259 2019-03-14 Richard Biener <rguenther@suse.de>
30261 PR tree-optimization/89710
30262 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30265 2019-03-14 Martin Liska <mliska@suse.cz>
30267 * coverage.c (coverage_begin_function): Stream also
30269 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30270 documentation about function declaration location.
30271 * gcov-dump.c (tag_function): Print whole range
30272 of function declaration.
30273 * gcov.c (struct function_info): Add end_column field.
30274 (function_info::function_info): Initialize it.
30275 (output_json_intermediate_file): Output {start,end}_column
30277 (read_graph_file): Read end_column.
30279 2019-03-14 Richard Biener <rguenther@suse.de>
30281 PR middle-end/89698
30282 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30283 that the access types are similar.
30285 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30287 PR tree-optimization/89703
30288 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30289 aren't compatible also with builtin_decl_explicit. Check pure
30290 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30291 and BUILT_IN_STPNCPY{,_CHK}.
30293 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30296 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30297 addr32 prefix to VSIB address for X32.
30298 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30300 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30301 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30302 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30303 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30304 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30305 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30306 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30307 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30308 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30309 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30310 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30311 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30312 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30313 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30314 (*avx512f_scatterdi<mode>): Likewise.
30316 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30319 * lra-constraints.c (inherit_in_ebb): Update
30320 potential_reload_hard_regs along with live_hard_regs.
30322 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30325 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30327 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30329 2019-03-13 Martin Sebor <msebor@redhat.com>
30331 PR tree-optimization/89662
30332 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30335 2019-03-13 Richard Biener <rguenther@suse.de>
30337 PR middle-end/89677
30338 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30339 throw FP expressions at tree-affine.
30341 2019-03-14 Richard Biener <rguenther@suse.de>
30343 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30344 dump negative integer constants using _Literal (type) -num.
30346 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30348 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30349 nonlocal_value member.
30351 PR middle-end/88588
30352 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30353 (ipa_simd_modify_function_body): Handle PHIs.
30355 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30357 * config/s390/s390.c (s390_option_override_internal): Use more
30358 aggressive inlining parameters.
30360 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30362 * config/s390/3906.md: New file.
30363 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30364 (LONGRUNNING_THRESHOLD): Remove.
30365 (MAX_SCHED_MIX_SCORE): Decrease.
30366 (MAX_SCHED_MIX_DISTANCE): Decrease.
30367 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30368 (struct s390_sched_state): New struct to hold scheduling state.
30369 (S390_SCHED_STATE_NORMAL): Remove.
30370 (S390_SCHED_STATE_CRACKED): Remove.
30371 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30372 (s390_get_sched_attrmask): Use new attribute.
30373 (s390_get_unit_mask): Use new units.
30374 (s390_is_fpd): New function.
30375 (s390_is_fxd): New function.
30376 (s390_is_longrunning): New function.
30377 (s390_sched_score): Use new functions.
30378 (s390_sched_reorder): Likewise.
30379 (s390_sched_variable_issue): Rework and use new functions.
30380 (s390_sched_init): Use new functions.
30381 * config/s390/s390.h (s390_tune_attr): Add z14.
30382 * config/s390/s390.md: Add z14.
30384 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30386 * config/s390/2964.md: Update pipeline description.
30387 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30388 (LONGRUNNING_THRESHOLD): Remove.
30389 (LATENCY_FACTOR): Remove.
30390 (s390_get_unit_mask): Add unit.
30391 (s390_sched_score): Use fxd/fpd.
30392 (s390_sched_variable_issue): Use fxd/fpd.
30394 2019-03-12 Martin Liska <mliska@suse.cz>
30396 * config/i386/i386.c: Reword an error message.
30398 2019-03-12 Martin Jambor <mjambor@suse.cz>
30400 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30401 terminate with newline.
30403 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30406 * config/s390/s390.md (tabort): Use %wd instead of
30407 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30408 letters and periods.
30409 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30410 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30413 PR middle-end/89663
30414 * builtins.c (expand_builtin_int_roundingfn,
30415 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30416 gcc_unreachable if validate_arglist fails.
30418 2019-03-12 Richard Biener <rguenther@suse.de>
30420 PR tree-optimization/89664
30421 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30422 free the occurance tree after the early out.
30424 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30426 PR middle-end/89655
30428 * vr-values.c (vr_values::update_value_range): If
30429 old_vr->varying_p (), don't update it, make new_vr also VARYING
30432 2019-03-11 Martin Liska <mliska@suse.cz>
30434 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30435 Fix double string quoting.
30437 2019-03-11 Martin Liska <mliska@suse.cz>
30439 * collect-utils.c (collect_wait): Wrap apostrophes
30440 in gcc internal format with %'.
30441 * collect2.c (main): Likewise.
30442 (scan_prog_file): Likewise.
30443 (scan_libraries): Likewise.
30444 * config/i386/i386.c (ix86_expand_call): Likewise.
30445 (ix86_handle_interrupt_attribute): Likewise.
30446 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30447 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30448 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30449 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30450 * symtab.c (symtab_node::verify_base): Likewise.
30451 * tree-cfg.c (verify_gimple_label): Likewise.
30452 * tree.c (verify_type_variant): Likewise.
30454 2019-03-11 Martin Liska <mliska@suse.cz>
30456 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30457 in a string format message and fix GNU coding style.
30458 (expand_builtin_set_thread_pointer): Likewise.
30459 * common/config/aarch64/aarch64-common.c
30460 (aarch64_rewrite_selected_cpu): Likewise.
30461 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30462 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30463 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30464 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30465 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30466 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30467 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30468 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30469 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30470 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30472 * common/config/riscv/riscv-common.c
30473 (riscv_subset_list::parsing_subset_version): Likewise.
30474 (riscv_subset_list::parse_std_ext): Likewise.
30475 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30476 (riscv_subset_list::parse): Likewise.
30477 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30478 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30479 (aarch64_override_options_internal): Likewise.
30480 (aarch64_validate_mcpu): Likewise.
30481 (aarch64_validate_march): Likewise.
30482 (aarch64_validate_mtune): Likewise.
30483 (aarch64_override_options): Likewise.
30484 * config/alpha/alpha.c (alpha_option_override): Likewise.
30485 * config/arc/arc.c (arc_init): Likewise.
30486 (parse_mrgf_banked_regs_option): Likewise.
30487 (arc_override_options): Likewise.
30488 (arc_expand_builtin_aligned): Likewise.
30489 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30490 (arm_expand_builtin): Likewise.
30491 * config/arm/arm.c (arm_option_check_internal): Likewise.
30492 (arm_configure_build_target): Likewise.
30493 (arm_option_override): Likewise.
30494 (arm_options_perform_arch_sanity_checks): Likewise.
30495 (arm_handle_cmse_nonsecure_entry): Likewise.
30496 (arm_handle_cmse_nonsecure_call): Likewise.
30497 (arm_tls_referenced_p): Likewise.
30498 (thumb1_expand_prologue): Likewise.
30499 * config/avr/avr.c (avr_option_override): Likewise.
30500 * config/bfin/bfin.c (bfin_option_override): Likewise.
30501 * config/c6x/c6x.c (c6x_option_override): Likewise.
30502 * config/cr16/cr16.c (cr16_override_options): Likewise.
30503 * config/cris/cris.c (cris_option_override): Likewise.
30504 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30505 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30506 * config/darwin.c (darwin_override_options): Likewise.
30507 * config/frv/frv.c (frv_expand_builtin): Likewise.
30508 * config/h8300/h8300.c (h8300_option_override): Likewise.
30509 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30510 (ix86_option_override_internal): Likewise.
30511 (warn_once_call_ms2sysv_xlogues): Likewise.
30512 (ix86_expand_prologue): Likewise.
30513 (split_stack_prologue_scratch_regno): Likewise.
30514 (ix86_warn_parameter_passing_abi): Likewise.
30515 * config/ia64/ia64.c (fix_range): Likewise.
30516 * config/m68k/m68k.c (m68k_option_override): Likewise.
30517 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30518 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30519 (mips_set_compression_mode): Likewise.
30520 * config/mmix/mmix.c (mmix_option_override): Likewise.
30521 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30522 * config/msp430/msp430.c (msp430_option_override): Likewise.
30523 * config/nds32/nds32.c (nds32_option_override): Likewise.
30524 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30525 (nios2_option_override): Likewise.
30526 (nios2_expand_custom_builtin): Likewise.
30527 * config/nvptx/mkoffload.c (main): Likewise.
30528 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30529 * config/pa/pa.c (fix_range): Likewise.
30530 (pa_option_override): Likewise.
30531 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30532 (riscv_option_override): Likewise.
30533 * config/rl78/rl78.c (rl78_option_override): Likewise.
30534 * config/rs6000/aix61.h: Likewise.
30535 * config/rs6000/aix71.h: Likewise.
30536 * config/rs6000/aix72.h: Likewise.
30537 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30538 * config/rs6000/freebsd64.h: Likewise.
30539 * config/rs6000/linux64.h: Likewise.
30540 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30541 (rs6000_expand_zeroop_builtin): Likewise.
30542 (rs6000_expand_mtfsb_builtin): Likewise.
30543 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30544 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30545 (rs6000_invalid_builtin): Likewise.
30546 (rs6000_expand_split_stack_prologue): Likewise.
30547 * config/rs6000/rtems.h: Likewise.
30548 * config/rx/rx.c (valid_psw_flag): Likewise.
30549 (rx_expand_builtin): Likewise.
30550 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30551 * config/s390/s390.c (s390_expand_builtin): Likewise.
30552 (s390_function_profiler): Likewise.
30553 (s390_option_override_internal): Likewise.
30554 (s390_option_override): Likewise.
30555 * config/sh/sh.c (sh_option_override): Likewise.
30556 (sh_builtin_saveregs): Likewise.
30557 (sh_fix_range): Likewise.
30558 * config/sh/vxworks.h: Likewise.
30559 * config/sparc/sparc.c (sparc_option_override): Likewise.
30560 * config/spu/spu.c (spu_option_override): Likewise.
30561 (fix_range): Likewise.
30562 * config/visium/visium.c (visium_option_override): Likewise.
30563 (visium_handle_interrupt_attr): Likewise.
30564 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30565 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30566 (dbg_cnt_process_opt): Likewise.
30567 * dwarf2out.c (output_dwarf_version): Likewise.
30568 * except.c (expand_eh_return): Likewise.
30569 * gcc.c (defined): Likewise.
30570 (driver_handle_option): Likewise.
30571 (process_command): Likewise.
30572 (compare_files): Likewise.
30573 (driver::prepare_infiles): Likewise.
30574 (driver::do_spec_on_infiles): Likewise.
30575 (driver::maybe_run_linker): Likewise.
30576 * omp-offload.c (oacc_parse_default_dims): Likewise.
30577 * opts-global.c (handle_common_deferred_options): Likewise.
30578 * opts.c (parse_sanitizer_options): Likewise.
30579 (common_handle_option): Likewise.
30580 (enable_warning_as_error): Likewise.
30581 * passes.c (enable_disable_pass): Likewise.
30582 * plugin.c (parse_plugin_arg_opt): Likewise.
30583 (default_plugin_dir_name): Likewise.
30584 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30585 (default_pch_valid_p): Likewise.
30586 * toplev.c (init_asm_output): Likewise.
30587 (process_options): Likewise.
30588 (toplev::run_self_tests): Likewise.
30589 * tree-cfg.c (verify_gimple_call): Likewise.
30590 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30591 (tree_inlinable_function_p): Likewise.
30592 * var-tracking.c (vt_find_locations): Likewise.
30594 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30596 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30597 only on the else branch.
30599 2019-03-11 Martin Liska <mliska@suse.cz>
30601 * gcov.c (output_intermediate_json_line): Print function
30603 (output_json_intermediate_file): Add new argument.
30604 * doc/gcov.texi: Document the change.
30606 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30608 PR rtl-optimization/89588
30609 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30610 explicit unrolling factor more robust.
30612 2019-03-11 Richard Biener <rguenther@suse.de>
30614 PR tree-optimization/89649
30615 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30616 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30617 on the prolog and epilog loops.
30618 (vect_loop_versioning): Return copy of loop.
30619 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30620 on the non-vectorized version of the loop.
30622 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30625 * config/i386/sse.md (*vec_extractv2di_0_sse):
30626 Add (=r,x) alternative and corresponding splitter.
30628 2019-03-10 Martin Jambor <mjambor@suse.cz>
30630 PR tree-optimization/85762
30631 PR tree-optimization/87008
30632 PR tree-optimization/85459
30633 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30634 it points to if there is a type changing MEM_REF. Adjust all callers.
30635 (build_accesses_from_assign): Disable total scalarization if
30636 contains_vce_or_bfcref_p returns true through the new parameter, for
30639 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30642 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30643 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30646 * common.opt (fdiagnostics-show-labels,
30647 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30648 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30649 gas-locview-support, ginline-points, ginternal-reset-location-views):
30650 Terminate description text with a dot.
30651 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30652 * config/mcore/mcore.opt (m210, m340): Likewise.
30653 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30654 mnops=): Start description text with a capital letter.
30655 * config/arc/arc.opt (msize-level=): Likewise.
30656 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30657 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30658 mnewlib): Likewise.
30659 * config/ft32/ft32.opt (msim): Likewise.
30660 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30661 (mnodiv, mnopm): Terminate description text with a dot.
30662 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30664 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30666 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30669 PR rtl-optimization/89634
30670 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30671 are modified in BB_END (e->src) instruction.
30673 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30676 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30677 messages more amenable to translation, and improve wording.
30679 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30681 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30682 ud- and du-chains between phases.
30684 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30687 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30688 instead of POLY_INT_CST.
30690 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30692 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30695 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30700 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30701 (_mm_storeu_si64): Ditto.
30703 2019-03-08 Martin Liska <mliska@suse.cz>
30706 * config/i386/i386.c (ix86_option_override_internal): Disable
30707 jump tables when retpolines are used.
30709 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30712 * ipa-split.c (execute_split_functions): Do not split
30713 'noinline' or 'section' function.
30715 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30718 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30719 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30720 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30723 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30724 from diagnostics. Formatting fixes.
30727 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30728 warn_odr diagnostics.
30731 * lra-constraints.c (process_alt_operands): Avoid one space before
30732 " at the end of line and another after " on another line in a string
30734 * attribs.c (handle_dll_attribute): Likewise.
30735 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30737 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30738 warning_at or inform messages in G_() if there is no ?:.
30740 PR tree-optimization/89550
30741 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30742 returned true. Formatting fixes.
30743 (expand_builtin_strnlen): Formatting fixes.
30744 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30745 if warning_at returned true.
30746 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30748 2019-03-08 Richard Biener <rguenther@suse.de>
30750 PR middle-end/89578
30751 * cfgloop.h (struct loop): Add owned_clique field.
30752 * cfgloopmanip.c (copy_loop_info): Copy it.
30753 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30755 * tree-inline.c (copy_loops): Remap owned_clique.
30756 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30757 * lto-streamer-out.c (output_cfg): Likewise.
30759 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30762 * config/darwin.c: Include intl.h.
30763 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30764 composing the message out of two separate parts.
30766 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30769 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30770 doesn't start with a capital letter and doesn't end with a dot.
30771 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30772 with a capital letter.
30773 (ix86_mangle_function_version_assembler_name): Likewise.
30774 (ix86_generate_version_dispatcher_body): Likewise.
30775 (fold_builtin_cpu): Likewise.
30776 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30777 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30778 translators, wrap full type name in %qs.
30780 PR translation/79999
30781 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30782 depend clause with source (or sink) modifier.
30783 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30786 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30787 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30788 (avx512f_load<mode>_mask): New define_expand.
30789 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30790 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30791 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30792 __builtin_ia32_movess_mask): New builtins.
30793 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30794 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30795 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30796 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30798 2019-03-07 Martin Jambor <mjambor@suse.cz>
30801 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30802 for extern inline functions.
30804 2019-03-07 Martin Jambor <mjambor@suse.cz>
30807 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30808 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30809 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30810 have multiple callees. At the end check if declarations match as
30811 opposed to cgraph_nodes.
30813 2019-03-07 Martin Liska <mliska@suse.cz>
30815 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30816 which is equivalent to searching for this in clones chain.
30817 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30818 names with a neighbour and special case first node in a chain.
30820 2019-01-25 Jason Merrill <jason@redhat.com>
30822 PR c++/80916 - spurious "static but not defined" warning.
30823 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30824 for an internal symbol with DECL_EXTERNAL.
30826 2019-04-07 Richard Biener <rguenther@suse.de>
30828 PR middle-end/89618
30829 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30830 * tree-inline.c (copy_loops): Simplify.
30832 2019-03-07 Martin Liska <mliska@suse.cz>
30834 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30836 2019-03-07 Richard Biener <rguenther@suse.de>
30838 PR tree-optimization/89595
30839 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30840 stmt iterator as reference, take boolean output parameter to
30841 indicate whether the stmt was removed and thus the iterator
30843 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30844 stmts created by folding.
30846 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30849 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30852 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30854 PR rtl-optimization/88845
30855 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30857 * lra.c (remove_scratches_1): New function.
30858 (remove_scratches): Use it.
30859 (lra_emit_move): Likewise.
30861 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30863 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30864 unaligned_access variable.
30865 * config/arc/arc.c (arc_override_options): Set unaligned access
30866 default on for HS CPUs.
30867 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30869 2019-03-06 Martin Liska <mliska@suse.cz>
30871 PR gcov-profile/89577
30872 * doc/gcov.texi: Prefer to use --coverage.
30873 * doc/sourcebuild.texi: Likewise.
30875 2019-03-02 Jason Merrill <jason@redhat.com>
30877 PR c++/86485 - -Wmaybe-unused with empty class ?:
30878 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30880 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30883 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
30886 PR middle-end/89590
30887 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
30888 exactly one argument.
30890 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30891 Richard Sandiford <richard.sandiford@arm.com>
30893 PR tree-optimization/89570
30894 * match.pd (vec_cond into cond_op simplification): Don't use
30895 get_conditional_internal_fn, use as_internal_fn (cond_op).
30897 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
30900 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
30901 to decide when to split off a non-zero offset from a symbol.
30902 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
30903 in function symbols.
30905 2019-03-05 Richard Biener <rguenther@suse.de>
30907 PR tree-optimization/89594
30908 * tree-if-conv.c (pass_if_conversion::execute): Handle
30909 case where .LOOP_VECTORIZED_FUNCTION was removed.
30911 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30914 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
30915 instead alloca it only when needed with the needed size.
30917 PR tree-optimization/89570
30918 * match.pd (vec_cond into cond_op simplification): Guard with
30919 vectorized_internal_fn_supported_p test and #if GIMPLE.
30921 PR tree-optimization/89566
30922 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
30923 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
30924 Punt if get_user_idx_format succeeds, but idx_format argument is
30925 not provided or doesn't have pointer type, or if idx_args is above
30926 number of provided arguments.
30928 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
30930 PR tree-optimization/89437
30931 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
30933 2019-03-04 Richard Biener <rguenther@suse.de>
30935 PR middle-end/89572
30936 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
30939 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
30941 PR tree-optimization/89487
30942 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
30943 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
30944 (distribute_loop): Don't do runtime alias check if there is non-
30945 addressable data reference.
30946 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
30947 is a register variable.
30949 2019-03-02 Jakub Jelinek <jakub@redhat.com>
30952 * config/arm/arm.md (cmpsi2_addneg): Use
30953 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
30954 If operands[2] is 0 or INT_MIN, force use of subs.
30955 (*compare_scc splitter): Use gen_int_mode.
30956 (*negscc): Likewise.
30957 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
30959 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
30960 Monk Chiang <sh.chiang04@gmail.com>
30962 * common/config/riscv/riscv-common.c: Include sstream.
30963 (riscv_subset_list::to_string): New.
30964 (riscv_arch_str): Likewise.
30965 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
30966 * config.in: Regen.
30967 * config/riscv/riscv-protos.h (riscv_arch_str): New.
30968 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
30969 (riscv_emit_attribute): New.
30970 (riscv_file_start): Emit attribute if needed.
30971 (riscv_option_override): Init riscv_emit_attribute_p.
30972 * config/riscv/riscv.opt (mriscv-attribute): New option.
30973 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
30974 * configure: Regen.
30975 * doc/install.texi: Document --with-riscv-attribute.
30976 * doc/invoke.texi: Document -mriscv-attribute.
30978 * common/config/riscv/riscv-common.c:
30979 Include config/riscv/riscv-protos.h.
30980 (INCLUDE_STRING): Defined.
30981 (RISCV_DONT_CARE_VERSION): Defined.
30982 (riscv_subset_t): Declare.
30983 (riscv_subset_t::riscv_subset_t): New.
30984 (riscv_subset_list): Declare.
30985 (riscv_subset_list::riscv_subset_list): New.
30986 (riscv_subset_list::~riscv_subset_list): Likewise.
30987 (riscv_subset_list::parsing_subset_version): Likewise.
30988 (riscv_subset_list::parse_std_ext): Likewise.
30989 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30990 (riscv_subset_list::add): Likewise.
30991 (riscv_subset_list::lookup): Likewise.
30992 (riscv_subset_list::xlen): Likewise.
30993 (riscv_subset_list::parse): Likewise.
30994 (riscv_supported_std_ext): Likewise.
30995 (current_subset_list): Likewise.
30996 (riscv_parse_arch_string): Using riscv_subset_list::parse to
30999 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31001 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31002 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31003 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31005 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31007 PR rtl-optimization/85899
31008 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31009 fallthru edges leading to the exit block.
31011 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31014 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31015 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31017 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31019 PR tree-optimization/89535
31020 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31021 for each operand. Calculate the fallback choice for mask operands
31022 and pass it to vect_get_vec_def_for_operand.
31024 2019-03-01 Richard Biener <rguenther@suse.de>
31026 PR middle-end/89541
31027 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31028 get virtual operands.
31029 (get_expr_operands): Handle CONST_DECL like other decls.
31031 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31033 PR middle-end/89503
31034 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31035 on DECL_P and EXPR_P.
31037 2019-03-01 Richard Biener <rguenther@suse.de>
31039 PR middle-end/89497
31040 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31041 argument, defaulted to zero.
31042 * passes.c (execute_function_todo): Pass down SSA update flags
31043 to cleanup_tree_cfg.
31044 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31045 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31047 (cleanup_tree_cfg): Get and pass down SSA update flags.
31049 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31052 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31053 early_lto_debug argument.
31055 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31057 PR tree-optimization/89536
31058 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31059 only whether bit #0 of the value is 0 instead of the entire value.
31061 2019-02-28 Marek Polacek <polacek@redhat.com>
31063 PR c++/87068 - missing diagnostic with fallthrough statement.
31064 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31065 at the end of a seq, save its location to walk_stmt_info.
31066 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31069 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31072 * tree.c (find_atomic_core_type): Move ahead in file.
31073 (check_base_type): Correctly compare alignments of atomic types.
31075 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31078 * config/i386/i386.c (get_builtin_code_for_version): Identify
31079 Westmere from PCLMUL, instead of AES.
31081 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31084 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31085 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31088 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31091 * config/aarch64/aarch64-option-extensions.def: Document it.
31092 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31095 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31098 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31099 builtins if they don't have a single scalar floating point argument.
31102 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31104 PR rtl-optimization/89490
31105 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31106 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31107 block section is not mergeable.
31109 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31112 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31113 old define_insn to ...
31114 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31115 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31116 Rename old define_insn to ...
31117 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31118 (thumb2_casesi_internal_pic): New define_expand. Rename old
31120 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31121 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31122 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31124 2019-02-27 Richard Biener <rguenther@suse.de>
31127 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31129 2019-02-27 Richard Biener <rguenther@suse.de>
31131 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31134 2019-02-27 Richard Biener <rguenther@suse.de>
31137 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31138 parameter, prefix section name with .gnu.debuglto_ if true.
31139 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31140 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31142 2019-02-27 Richard Biener <rguenther@suse.de>
31145 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31146 rather than on use_debug_types, doing what output_die does.
31147 (value_format): Likewise.
31149 2019-02-27 Martin Jambor <mjambor@suse.cz>
31150 Martin Sebor <msebor@redhat.com>
31152 * doc/invoke.texi (Warning Options): Reword description of
31153 -Wno-absolute-value.
31155 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31157 PR tree-optimization/89280
31158 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31159 builtin_setjmp_setup_bb): New functions.
31160 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31161 When visiting __builtin_setjmp_setup block, queue in special
31162 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31163 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31164 from visited after the loop if they don't have any visited successor
31167 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31169 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31171 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31173 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31176 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31177 with types other than sizetype/ssizetype.
31179 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31181 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31182 (enum sparc_processor_type): ...this.
31183 (enum sparc_code_model_type): New enumeration type.
31184 (enum sparc_memory_model_type): Tweak comments.
31185 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31187 (mcmodel): Use sparc_code_model enumeration and variable.
31188 (sparc_code_model): New enumeration.
31189 (mdebug): Add Undocumented marker.
31190 * config/sparc/sparc.h (enum cmodel): Delete.
31191 (sparc_cmodel): Likewise.
31192 (TARGET_CM_MEDLOW): Adjust to above renaming.
31193 (TARGET_CM_MEDMID): Likewise.
31194 (TARGET_CM_MEDANY): Likewise.
31195 (TARGET_CM_EMBMEDANY): Likewise.
31196 * config/sparc/sparc.c (sparc_cmodel): Delete.
31197 (sparc_option_override): Remove string/value mapping support for the
31198 code model. Move code and memory model support to after the handling
31199 of target flags. Do private machine setup last.
31200 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31201 (sparc_legitimize_reload_address): Likewise.
31202 (sparc_output_mi_thunk): Likewise.
31203 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31205 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31207 PR tree-optimization/89500
31208 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31209 (handle_builtin_strlen): Remove noncst_bound variable. Always
31210 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31211 cst if the first cst bytes starting at x are known to be non-zero,
31212 even if the string is not zero terminated. Don't try to modify
31213 *si for strnlen. Update strlen_to_stridx only for strlen or if
31214 we can prove strnlen returns the same value as strlen would.
31216 2019-02-26 Martin Liska <mliska@suse.cz>
31218 * alloc-pool.h (struct pool_usage): Remove extra
31220 * bitmap.h (struct bitmap_usage): Likewise.
31221 * ggc-common.c (struct ggc_usage): Likewise.
31222 * mem-stats.h (struct mem_usage): Likewise.
31223 (mem_alloc_description::dump): Print dash lines
31224 here and repeat header at the end of a table report.
31225 It's then more readable.
31226 * tree-phinodes.c (phinodes_print_statistics): Make
31227 horizontal alignment.
31228 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31229 * vec.c (struct vec_usage): Remove extra print_dash_line.
31230 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31232 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31234 * doc/extend.texi (__builtin_object_size):
31235 Use @pxref instead of @xref inside parenthesis.
31236 (__builtin_has_attribute): Add missing comma after @xref.
31237 (__builtin_object_size): Ditto.
31238 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31240 2019-02-26 Jeff Law <law@redhat.com>
31242 PR rtl-optimization/87761
31243 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31244 detect obviously dead insns and delete them.
31246 2019-02-26 Richard Biener <rguenther@suse.de>
31248 PR tree-optimization/89505
31249 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31250 to handle restrict pointed-to vars with multiple subvars
31253 2019-02-26 Richard Biener <rguenther@suse.de>
31255 PR tree-optimization/89489
31256 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31258 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31260 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31261 and move around comment.
31262 <BIT_AND_EXPR>: Likewise.
31263 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31265 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31268 * config/i386/i386.c (remove_partial_avx_dependency): Call
31269 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31270 after changing possibly many instructions to use that pseudo. Fix up
31271 insertion of v4sf_const0 setter at the start of bb.
31273 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31276 * doc/extend.texi (Variadic Pointer Args): New section.
31278 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31279 Martin Sebor <msebor@gmail.com>
31281 * common.opt (Wattribute-alias): Likewise.
31282 * doc/invoke.texi (Option Summary): List general form of
31283 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31284 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31285 Add cross-references.
31286 (-Wattribute-alias): Rewrite and correct default. Mention
31287 considered attributes (same as for -Wmissing-attributes).
31289 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31291 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31292 (_mm_cvtpd_ps): Likewise.
31293 (_mm_cvttpd_epi32): Likewise.
31296 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31297 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31300 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31302 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31305 * common/config/aarch64/aarch64-common.c
31306 (struct aarch64_option_extension): Add is_synthetic.
31307 (all_extensions): Use it.
31308 (TARGET_OPTION_INIT_STRUCT): Define hook.
31309 (struct gcc_targetm_common): Moved to end.
31310 (all_extensions_by_on): New.
31311 (opt_ext_cmp, typedef opt_ext): New.
31312 (aarch64_option_init_struct): New.
31313 (aarch64_contains_opt): New.
31314 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31315 * config/aarch64/aarch64-option-extensions.def
31316 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31317 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31318 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31319 Set is_synthetic to false.
31320 (crypto): Set is_synthetic to true.
31321 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31324 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31326 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31327 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31328 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31329 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31330 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31331 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31332 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31333 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31335 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31336 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31337 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31338 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31339 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31340 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31341 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31342 vfmlsl_laneq_high_f16): ... To this.
31343 * config/arm/neon.md: Update comments.
31345 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31347 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31348 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31349 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31350 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31351 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31352 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31353 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31354 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31356 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31357 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31358 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31359 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31360 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31361 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31362 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31363 vfmlslq_laneq_high_f16): ... To this.
31365 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31367 PR rtl-optimization/86096
31368 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31369 comparing mw_order values.
31371 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31374 * config/arm/arm.md (*subsi3_carryin_const): Use
31375 arm_neg_immediate_operand predicate instead of
31376 arm_not_immediate_operand, "L" constraint instead of "K" and
31377 print it using %n2 instead of %B2.
31378 (*subsi3_carryin_const0): New define_insn.
31379 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31380 instead of arm_not_operand and "I" constraint instead of "K" and
31381 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31382 another match_operand and in the condition check that it is negation
31384 (*subsi3_carryin_compare_const0): New define_ins.
31385 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31386 *subsi3_carryin_const.
31387 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31388 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31391 * config/arm.vfp.md (*negdf2_vfp): Use
31392 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31393 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31395 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31397 PR rtl-optimization/89445
31398 * simplify-rtx.c (simplify_ternary_operation): Don't use
31399 simplify_merge_mask on operands that may trap.
31400 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31401 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31402 second operand is CONST_VECTOR, check if any element could be zero.
31403 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31404 their operands can trap.
31406 2019-02-23 Martin Sebor <msebor@redhat.com>
31408 * gimple-ssa-sprintf.c (target_strtol): Rename...
31409 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31410 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31411 check for range error.
31413 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31416 * opts-common.c (prune_options): Also prune joined switches
31417 with Negative and RejectNegative.
31418 * config/i386/i386.opt (march=): Add Negative(march=).
31419 (mtune=): Add Negative(mtune=).
31420 * doc/options.texi: Document Negative used together with Joined
31421 and RejectNegative.
31423 2019-02-22 Martin Sebor <msebor@redhat.com>
31425 * doc/extend.texi (Other Builtins): Add
31426 __builtin_is_constant_evaluated.
31428 2019-02-22 Richard Biener <rguenther@suse.de>
31430 PR tree-optimization/87609
31431 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31433 2019-02-22 Jeff Law <law@redhat.com>
31435 PR rtl-optimization/87761
31436 * config/mips/mips.md: Add new combiner pattern to recognize
31437 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31439 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31442 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31443 destination register in peepholes generating patterns for ADDS/SUBS.
31444 (add<mode>3_compare0,
31445 *addsi3_compare0_uxtw, add<mode>3_compareC,
31446 add<mode>3_compareV_imm, add<mode>3_compareV,
31447 *adds_<optab><ALLX:mode>_<GPI:mode>,
31448 *subs_<optab><ALLX:mode>_<GPI:mode>,
31449 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31450 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31451 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31452 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31453 sub<mode>3_compare1): Allow stack pointer for source register.
31454 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31456 2019-02-22 Martin Sebor <msebor@redhat.com>
31458 PR tree-optimization/88993
31459 PR tree-optimization/88853
31460 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31462 (sprintf_dom_walker::call_info::is_string_func): New helper.
31463 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31464 for formatted string functions.
31465 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31467 2019-02-22 Martin Sebor <msebor@redhat.com>
31470 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31471 unreachable subexpressions.
31473 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31474 Hongtao Liu <hongtao.liu@intel.com>
31475 Sunil K Pandey <sunil.k.pandey@intel.com>
31478 * config/i386/i386-passes.def: Add
31479 pass_remove_partial_avx_dependency.
31480 * config/i386/i386-protos.h
31481 (make_pass_remove_partial_avx_dependency): New.
31482 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31484 (pass_data_remove_partial_avx_dependency): New.
31485 (pass_remove_partial_avx_dependency): Likewise.
31486 (make_pass_remove_partial_avx_dependency): Likewise.
31487 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31488 (*extendsfdf2): Add avx_partial_xmm_update.
31489 (truncdfsf2): Likewise.
31490 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31491 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31493 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31495 PR middle-end/85598
31496 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31499 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31502 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31503 (PTA_SKYLAKE): Add PTA_AES.
31504 (PTA_GOLDMONT): Likewise.
31506 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31508 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31509 instruction if enabled.
31510 (aarch64_override_options): Remove reference to return address key.
31512 2019-02-22 Richard Biener <rguenther@suse.de>
31514 PR tree-optimization/89440
31515 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31516 not necessary assert.
31518 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31521 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31522 (oacc_replace_fn_attrib_attr): ... this new function.
31523 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31524 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31526 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31528 * config/arm/arm-cpus.in (ares): Rename to...
31529 (neoverse-n1): ... This. Add ares as alias.
31530 * config/arm/arm-tables.opt: Regenerate.
31531 * config/arm/arm-tune.md: Likewise.
31532 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31534 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31536 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31537 * config/aarch64/aarch64-tune.md: Regenerate.
31538 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31540 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31542 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31543 (neoversen1_tunings): ... This.
31544 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31545 (neoverse-n1): New CPU.
31546 * config/aarch64/aarch64-tune.md: Regenerate.
31547 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31549 2019-02-22 Richard Biener <rguenther@suse.de>
31551 PR middle-end/87609
31552 * cfghooks.h (dependence_hash): New typedef.
31553 (struct copy_bb_data): New type.
31554 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31555 (duplicate_block): Likewise.
31556 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31557 (copy_bbs): Create and pass down copy_bb_data.
31558 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31559 (rtl_duplicate_bb): Likewise.
31560 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31561 remap dependence info.
31563 2019-02-22 Richard Biener <rguenther@suse.de>
31565 PR tree-optimization/87609
31566 * tree-core.h (tree_base): Document special clique values.
31567 * tree-inline.c (remap_dependence_clique): Do not use the
31568 special clique value of one.
31569 (maybe_set_dependence_info): Use clique one.
31570 (clear_dependence_clique): New callback.
31571 (compute_dependence_clique): Clear clique one from all refs
31572 before assigning it (again).
31574 2019-02-21 Martin Sebor <msebor@redhat.com>
31576 * doc/extend.texi (__clear_cache): Correct signature.
31578 2019-02-21 Ian Lance Taylor <iant@golang.org>
31581 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31582 than output_constant_def.
31583 (add_constant_to_table): New static function.
31584 (output_constant_def): Call add_constant_to_table.
31585 (tree_output_constant_def): Likewise.
31587 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31590 * builtins.c (fold_builtin_arith_overflow): If first two args are
31591 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31594 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31597 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31598 error for -mindirect-branch/-mfunction-return with incompatible
31601 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31604 * constraints.md (q): Remove.
31605 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31608 2019-02-21 Martin Jambor <mjambor@suse.cz>
31611 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31612 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31613 (omp_adjust_for_condition): ...here. Added necessary parameters.
31614 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31615 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31616 proper values to new parameters of omp_adjust_for_condition.
31618 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31620 PR middle-end/89412
31621 * expr.c (expand_assignment): If result is a MEM, use change_address
31622 instead of simplify_gen_subreg.
31624 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31625 David Malcolm <dmalcolm@redhat.com>
31627 PR middle-end/89091
31628 * fold-const.c (decode_field_reference): Return NULL_TREE if
31629 lang_hooks.types.type_for_size returns NULL. Check it before
31630 overwriting *exp_. Use return NULL_TREE instead of return 0.
31632 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31634 PR middle-end/88074
31635 PR middle-end/89415
31636 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31639 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31642 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31643 TARGET_SSE in addition to TARGET_SSE_MATH.
31645 (ix86_excess_precision): Ditto.
31646 (ix86_float_exceptions_rounding_supported_p): Ditto.
31647 (use_rsqrt_p): Ditto.
31648 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31650 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31653 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31654 linenum_arith_t when determining if two adjacent line spans are
31655 close enough to merge.
31656 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31657 lines within each line_span.
31659 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31662 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31663 paradoxical SUBREGS.
31665 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31668 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31669 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31670 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31673 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31675 * config/gcn/gcn.c (print_operand): Fix typo.
31677 2019-02-19 Richard Biener <rguenther@suse.de>
31679 PR middle-end/88074
31680 * toplev.c (do_compile): Initialize mpfr's exponent range
31681 based on available float modes.
31683 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31685 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31686 as long as the epilogue isn't completed.
31688 2019-02-18 Martin Sebor <msebor@redhat.com>
31690 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31691 __has_cpp_attribute, and __has_include.
31693 2019-02-18 Martin Sebor <msebor@redhat.com>
31695 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31697 2019-02-18 Martin Sebor <msebor@redhat.com>
31699 PR middle-end/89294
31700 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31702 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31704 2019-02-18 Richard Biener <rguenther@suse.de>
31706 PR tree-optimization/89296
31707 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31708 of no-warning flag to cases that might emit the bogus warning.
31710 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31713 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31715 * config/arm/vfp.md (*movdi_vfp): Likewise.
31716 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31717 "q" constraint for operands[0].
31720 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31721 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31722 pattern in a temporary buffer.
31723 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31724 than 64-operands[2].
31727 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31728 s390_indirect_branch_settings): Define unconditionally.
31729 (s390_set_current_function): Likewise, but guard the whole body except
31730 the s390_indirect_branch_settings call with
31731 #if S390_USE_TARGET_ATTRIBUTE.
31732 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31734 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31735 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31736 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31737 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31738 HOST_WIDE_INT_1U instead of 1ULL.
31739 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31740 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31741 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31742 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31744 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31747 2019-02-18 Martin Jambor <mjambor@suse.cz>
31749 PR tree-optimization/89209
31750 * tree-sra.c (create_access_replacement): New optional parameter
31751 reg_tree. Use it as a type if non-NULL and access type is not of
31753 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31754 to create_access_replacement.
31755 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31756 Check lacc is non-NULL before attempting to re-create it on the RHS.
31758 2019-02-18 Martin Liska <mliska@suse.cz>
31761 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31763 (symbol_table::free_edge): Recycle m_summary_id.
31764 * cgraph.h (get_summary_id): New.
31765 (symbol_table::release_symbol): Set m_summary_id to -1
31767 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31768 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31769 function_summary to fast_function_summary.
31770 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31771 * ipa-pure-const.c (class funct_state_summary_t):
31772 Switch from function_summary to fast_function_summary.
31773 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31774 (class ipa_ref_opt_summary_t): Switch from function_summary
31775 to fast_function_summary.
31776 * symbol-summary.h (class function_summary_base): New class
31777 that is created from base of former function_summary.
31778 (function_summary_base::unregister_hooks): New.
31779 (class function_summary): Inherit from function_summary_base.
31780 (class call_summary_base): New class
31781 that is created from base of former call_summary.
31782 (class call_summary): Inherit from call_summary_base.
31783 (struct is_same): New.
31784 (class fast_function_summary): New summary class.
31785 (class fast_call_summary): New summary class.
31786 * vec.h (vec_safe_grow_cleared): New function.
31788 2019-02-18 Martin Liska <mliska@suse.cz>
31790 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31791 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31792 * doc/tm.texi: Document new target hook.
31793 * doc/tm.texi.in: Likewise.
31794 * target.def: Add new target macro.
31795 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31798 2019-02-17 Alan Modra <amodra@gmail.com>
31801 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31802 output reg on add insn.
31803 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31805 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31808 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31809 (PMULHRSW): Likewise.
31810 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31812 (ssse3_pmulhrswv4hi3): New expander.
31814 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31816 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31817 MMX. Add isa attribute.
31819 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31821 PR rtl-optimization/66152
31822 * builtins.h (c_readstr): Declare.
31823 * builtins.c (c_readstr): Remove forward declaration. Add
31824 null_terminated_p argument, if false, read all bytes from the
31825 string instead of stopping after '\0'.
31826 * expr.c (string_cst_read_str): New function.
31827 (store_expr): Use string_cst_read_str instead of
31828 builtin_strncpy_read_str. Try to store by pieces the whole
31829 exp_len first, and only if that fails, split it up into
31830 store by pieces followed by clear_storage. Formatting fix.
31832 * config/i386/i386.md (*movqi_internal): Remove static from
31833 buf variable. Use output_asm_insn (buf, operands); return "";
31834 instead of return buf;.
31835 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31836 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31837 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31839 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31841 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31842 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31843 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31844 (CC1_SPEC): Likewise.
31845 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31847 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31849 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31850 the base address on 64-bit strict-alignment platforms.
31852 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31854 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31856 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31858 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31860 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31862 PR rtl-optimization/88308
31863 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31864 on copied instruction.
31866 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31868 * final.c (insn_current_reference_address): Replace test on JUMP_P
31869 with test on jump_to_label_p.
31870 * config/visium/visium-passes.def: New file.
31871 * config/visium/t-visium (PASSES_EXTRA): Define.
31872 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31873 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31874 (TRAMPOLINE_ALIGNMENT): Define.
31875 * config/visium/visium.c (visium_option_override): Do not register
31876 the machine-specific reorg pass here.
31877 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31879 (output_branch): Adjust threshold for long branch instruction.
31880 * config/visium/visium.md (cpu): Move around.
31881 (length): Adjust for the GR6.
31883 2019-02-15 Richard Biener <rguenther@suse.de>
31884 Jakub Jelinek <jakub@redhat.com>
31886 PR tree-optimization/89278
31887 * tree-loop-distribution.c: Include tree-eh.h.
31888 (generate_memset_builtin, generate_memcpy_builtin): Call
31889 rewrite_to_non_trapping_overflow on builtin->size before passing it
31890 to force_gimple_operand_gsi.
31892 2019-02-15 Jakub Jelinek <jakub@redhat.com>
31895 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
31897 * opth-gen.awk: Likewise.
31899 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31901 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
31902 Enable MMX, SSE and SSE2 by default.
31903 * config/i386/i386.c (ix86_option_override_internal): Do not
31904 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
31906 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31908 PR rtl-optimization/89354
31909 * combine.c (make_extraction): Punt if extraction_mode is narrower
31912 2019-02-14 Maya Rashish <coypu@sdf.org>
31914 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
31915 * config/netbsd-d.c: New file.
31916 * config/t-netbsd: Add netbsd-d.o
31918 2018-02-14 Steve Ellcey <sellcey@marvell.com>
31920 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
31921 affects_type_identity to true for aarch64_vector_pcs.
31922 (aarch64_comp_type_attributes): New function.
31923 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
31925 2019-02-14 Tamar Christina <tamar.christina@arm.com>
31928 * config/arm/iterators.md (ANY64): Add V4HF.
31930 2019-02-14 Martin Liska <mliska@suse.cz>
31932 PR rtl-optimization/89242
31933 * dce.c (delete_unmarked_insns): Call free_dominance_info we
31934 process a transformation.
31936 2019-02-14 Jakub Jelinek <jakub@redhat.com>
31938 PR tree-optimization/89314
31939 * fold-const.c (fold_binary_loc): Cast strlen argument to
31940 const char * before dereferencing it. Formatting fixes.
31942 PR middle-end/89284
31943 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
31945 2019-02-13 Ian Lance Taylor <iant@golang.org>
31947 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
31948 and set current index for other optimizations.
31950 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
31952 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
31953 nonimmediate_operand as operand 2 predicate.
31954 (vec_set<VF2_512_256:mode>_0): Ditto.
31955 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
31956 (*vec_concatv2si): Remove alternative 2.
31957 (*vec_concatv4si_0): Use vm constraint for alternative 0.
31958 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
31959 (vec_concatv2di): Split alternatives 4,5,6 to ...
31960 (*vec_concatv2di_0) ... new pattern.
31962 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
31965 * config/arm/arm.c (ldm_stm_operation_p) Set
31966 addr_reg_in_reglist correctly for first register.
31967 (load_multiple_sequence): Remove dead base check.
31968 (gen_ldm_seq): Correctly set write_back for Thumb-1.
31970 2019-02-13 Tamar Christina <tamar.christina@arm.com>
31973 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
31974 Expose as @aarch64_pred_mov.
31975 * config/aarch64/aarch64.c (aarch64_classify_address):
31976 Use expand_insn which legitimizes operands.
31978 2019-02-13 Martin Liska <mliska@suse.cz>
31980 * builtins.h (expand_builtin_with_bounds): Remove declaration.
31981 * calls.c (struct arg_data): Remove special_slot, pointer_arg
31982 and pointer_offset fields.
31983 (initialize_argument_information): Remove usage of dead
31985 * cgraph.h (struct cgraph_thunk_info): Remove
31986 add_pointer_bounds_args.
31987 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
31989 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
31991 * config/i386/i386.c (ix86_function_arg_advance): Remove
31993 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
31994 (def_builtin): Remove usage of dead fields.
31995 (ix86_add_new_builtins): Likewise.
31996 * ipa-fnsummary.c (compute_fn_summary): Likewise.
31997 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31998 (sem_function::init): Likewise.
31999 (sem_variable::merge): Likewise.
32000 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32001 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32002 * lto-cgraph.c (lto_output_node): Likewise.
32003 (lto_output_varpool_node): Likewise.
32004 (input_node): Likewise.
32005 (input_varpool_node): Likewise.
32006 * lto-streamer-out.c (lto_output): Likewise.
32007 * tree-inline.c (expand_call_inline): Remove usage of
32009 * tree-inline.h (struct copy_body_data): Likewise.
32010 * varpool.c (varpool_node::dump): Likewise.
32012 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32014 PR middle-end/89303
32015 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32016 into pt->vars_contains_escaped_heap instead of setting
32017 pt->vars_contains_escaped_heap to it.
32019 PR middle-end/89281
32020 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32021 INTVAL (size), compare it to GET_MODE_MASK instead of
32022 1 << GET_MODE_BITSIZE.
32025 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32026 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32029 2019-02-13 Martin Liska <mliska@suse.cz>
32032 * cfgrtl.c (remove_barriers_from_footer): New function.
32033 (try_redirect_by_replacing_jump): Use it.
32034 (cfg_layout_redirect_edge_and_branch): Likewise.
32036 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32038 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32039 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32040 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32041 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32042 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32043 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32045 * config/rs6000/rs6000.c (builtin_function_type)
32046 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32047 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32048 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32049 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32050 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32052 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32054 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32055 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32057 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32060 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32061 268678 and revision 268657.
32062 (*movti_internal): Likewise.
32064 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32067 * config/s390/s390.c (s390_decompose_address): Update comment.
32068 (s390_check_qrst_address): Reject invalid address forms after
32071 2019-02-12 Martin Liska <mliska@suse.cz>
32074 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32075 we need default values of funct_state for a function that
32078 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32080 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32081 the object to pick the size of stores on strict-alignment platforms.
32083 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32084 (*movdi_insn_sp32): Likewise.
32085 (*movdi_insn_sp64): Likewise.
32087 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32090 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32091 types that needs constructiong.
32092 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32094 2019-02-12 Richard Biener <rguenther@suse.de>
32096 PR tree-optimization/89253
32097 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32098 duplicate the loop.
32100 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32103 * input.c (selftest::test_line_offset_overflow): New selftest.
32104 (selftest::input_c_tests): Call it.
32106 2019-02-11 Martin Sebor <msebor@redhat.com>
32108 PR tree-optimization/88771
32109 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32110 when -Wstringop-overflow is set.
32111 (builtin_memref::builtin_memref): Adjust excessive upper bound
32112 only when lower bound is not excessive.
32113 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32114 -Wstringop-ovefflow.
32115 (maybe_diag_offset_bounds): Rename...
32116 (maybe_diag_access_bounds): ...to this.
32117 (check_bounds_or_overlap): Adjust for name change above.
32119 2019-02-11 Martin Sebor <msebor@redhat.com>
32122 * builtins.c (max_object_size): Move from here...
32123 * builtins.h (max_object_size): ...and here...
32124 * tree.c (max_object_size): ...to here...
32125 * tree.h (max_object_size): ...and here.
32127 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32129 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32130 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32131 for correct semantics.
32133 2019-02-11 Alan Modra <amodra@gmail.com>
32135 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32136 -mlongcall and -mpltseq.
32137 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32138 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32139 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32140 * config/rs6000/sysv4.opt (mpltseq): New option.
32141 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32142 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32143 support is lacking. Don't allow -mpltseq with -mbss-plt.
32144 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32145 -mpltseq given for ELFv1.
32146 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32147 Only use UNSPEC_PLTSEQ for inline PLT calls.
32148 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32149 use UNSPEC_PLTSEQ for inline PLT calls.
32150 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32151 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32152 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32153 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32154 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32155 (pltseq_mtctr_<mode>): Likewise.
32157 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32159 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32161 * configure: Regenerate.
32163 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32166 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32169 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32171 * function.c (assign_parm_setup_block): Use the stored
32172 size, not the passed size, when allocating stack-space,
32173 also for a parameter with alignment larger than
32174 MAX_SUPPORTED_STACK_ALIGNMENT.
32176 2019-02-11 Martin Liska <mliska@suse.cz>
32179 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32180 * ipa-inline.c (inline_small_functions): Likewise.
32181 * ipa-pure-const.c (propagate_pure_const): Likewise.
32182 (propagate_nothrow): Likewise.
32183 * ipa-reference.c (propagate): Likewise.
32184 * ipa-utils.c (struct searchc_env): Remove unused field.
32185 (searchc): Always search across AVAIL_INTERPOSABLE.
32186 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32187 the only called IPA pure const can properly not propagate
32188 across interposable boundary.
32189 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32191 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32193 * config/nds32/nds32.md (call_internal, call_value_internal,
32194 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32196 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32198 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32201 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32203 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32206 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32208 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32210 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32212 PR tree-optimization/89268
32213 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32214 if preds is non-NULL.
32216 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32219 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32222 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32224 * config/nds32/nds32.md (trap): New pattern.
32226 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32228 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32231 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32233 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32236 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32238 * ipa-visibility.c (localize_node): Also do not localize
32239 LDPR_PREVAILING_DEF_IRONLY_EXP.
32241 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32244 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32245 instead of type_with_linkage.
32247 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32250 * params.def (uninlined-function-insns, uninlined-function-time,
32251 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32252 bound so we don't get overflows.
32254 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32256 * config/rs6000/rs6000-string.c (expand_compare_loop,
32257 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32260 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32262 PR middle-end/89246
32263 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32264 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32265 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32267 2019-02-09 Alan Modra <amodra@gmail.com>
32270 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32271 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32274 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32276 PR middle-end/88560
32277 * lra-constraints.c (process_alt_operands): Don't increase reject
32278 for memory when offset memory is required.
32280 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32282 * config/s390/vector.md: Implement vector copysign.
32284 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32286 * expr.c (expand_constructor): Correct indentations.
32288 2019-02-08 Richard Biener <rguenther@suse.de>
32290 PR tree-optimization/89247
32291 * tree-if-conv.c: Include tree-cfgcleanup.h.
32292 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32293 (tree_if_conversion): Pass through predicate vector.
32294 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32295 inline, see if any if-converted loops we refrece in
32296 LOOP_VECTORIZED calls vanished and fixup.
32297 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32299 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32301 * config/s390/constraints.md (jdd): New constraint.
32303 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32306 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32307 upper 16 vector registers without TARGET_AVX512VL.
32308 (*movti_internal): Likewise.
32310 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32312 PR rtl-optimization/89234
32313 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32314 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32315 (copy_reg_eh_region_note_backward): Likewise.
32317 2019-02-08 Richard Biener <rguenther@suse.de>
32319 PR middle-end/89223
32320 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32321 doesn't fit in HWI.
32322 (analyze_subscript_affine_affine): Handle failure from
32323 initialize_matrix_A.
32325 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32327 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32330 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32332 PR tree-optimization/86637
32333 PR tree-optimization/89235
32334 * tree-vect-loop.c (optimize_mask_stores): Add an
32335 auto_purge_vect_location sentinel to ensure that vect_location is
32337 * tree-vectorizer.c
32338 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32339 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32340 to ensure that vect_location is purged on exit.
32341 (pass_slp_vectorize::execute): Likewise, replacing the manual
32343 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32345 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32347 * config/aarch64/iterators.md (max_opp): New code_attr.
32348 (USMAX): New code iterator.
32349 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32350 (aarch64_smax): Likewise.
32351 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32352 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32355 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32358 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32359 for TARGET_AVX512VL.
32360 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32362 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32364 * config/s390/s390-builtin-types.def: Add new types.
32365 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32366 (s390_vec_xlw4): Make the memory operand into a const pointer.
32367 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32369 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32370 a new vector type with the alignment of the scalar memory operand.
32372 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32373 Jakub Jelinek <jakub@redhat.com>
32376 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32377 arm_count_ldrdstrd_insns): New declarations.
32378 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32380 (valid_operands_ldrd_strd): New function.
32381 (arm_count_ldrdstrd_insns): New function.
32382 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32383 sets instead of single DImode set and define new insns to match this.
32385 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32387 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32388 Make it a C initializer.
32390 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32393 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32395 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32397 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32398 Use neon_dot<q> for type.
32399 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32401 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32403 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32404 Use neon_dot<q> for type.
32405 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32406 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32408 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32410 PR rtl-optimization/89225
32411 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32414 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32416 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32417 after restoring registers saved to allocate the frame on Windows.
32419 2019-02-06 Richard Biener <rguenther@suse.de>
32421 PR tree-optimization/89182
32422 * graphite.h (cached_scalar_evolution_in_region): Declare.
32423 * graphite.c (struct seir_cache_key): New.
32424 (struct sese_scev_hash): Likewise.
32425 (seir_cache): New global.
32426 (cached_scalar_evolution_in_region): New function.
32427 (graphite_transform_loops): Allocate and release seir_cache.
32428 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32429 cached_scalar_evolution_in_region.
32430 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32432 (scop_detection::graphite_can_represent_expr: Use
32433 cached_scalar_evolution_in_region.
32434 (scop_detection::stmt_simple_for_scop_p): Likewise.
32435 (find_params_in_bb): Likewise.
32436 (gather_bbs::before_dom_children): Likewise.
32437 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32438 (add_loop_constraints): Likewise.
32440 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32442 PR middle-end/89210
32443 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32444 operand to new_unary_operation only if both element types are integral
32445 and it isn't a widening conversion. Return NULL_TREE if
32446 new_unary_operation failed.
32448 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32451 * config/s390/s390.md: Remove load and test FP splitter.
32453 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32456 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32457 expand_compare_loop, expand_block_compare_gpr,
32458 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32459 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32460 #include "profile-count.h" and "predict.h" for types and functions
32461 needed to work with REG_BR_PROB notes.
32463 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32466 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32467 for the long branch case.
32469 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32472 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32473 can throw, non-call exceptions are enabled and we can't delete
32474 dead exceptions or alter cfg. Set must_clean if
32475 delete_insn_and_edges returns true, don't set it blindly for calls.
32476 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32478 PR rtl-optimization/89195
32479 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32480 of the original MEM.
32482 2019-02-05 Martin Liska <mliska@suse.cz>
32484 PR gcov-profile/89000
32485 * gcov.c (function_summary): Remove argument.
32486 (file_summary): New function.
32487 (print_usage): Replace tabs with spaces.
32488 (generate_results): Use new function file_summary.
32490 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32493 * optabs.c (prepare_cmp_insn): Pass x and y to
32494 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32496 2019-02-05 Richard Biener <rguenther@suse.de>
32498 PR middle-end/89150
32499 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32500 (struct bitmap_element): Drop chain_prev so we properly recurse on
32501 the prev member, supporting tree views.
32502 (struct bitmap_head): GTY skip the obstack member.
32504 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32507 * doc/extend.texi (Vector Extensions): Add an example of using vector
32508 types together with x86 intrinsics.
32510 2019-02-04 Alan Modra <amodra@gmail.com>
32512 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32513 str[] size to 160, and comment.
32515 2019-02-04 Alan Modra <amodra@gmail.com>
32517 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32518 (rs6000_pltseq_template): Guard output of TLS markers with
32519 TARGET_TLS_MARKERS.
32520 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32521 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32522 to use inline PLT sequences.
32523 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32524 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32525 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32527 2019-02-04 Martin Liska <mliska@suse.cz>
32530 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32531 out when ipa_fn_summaries does not contain entry for callee.
32533 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32535 * config/sparc/sparc.h: Remove superfluous blank lines.
32536 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32537 (got_register_rtx): ...this.
32538 (sparc_got): Adjust to above renaming.
32539 (sparc_tls_got): Likewise.
32540 (sparc_delegitimize_address): Likewise.
32541 (sparc_output_mi_thunk): Likewise.
32542 (sparc_init_pic_reg): Likewise.
32543 (save_local_or_in_reg_p): Fix test on the GOT register.
32544 (USE_HIDDEN_LINKONCE): Move around.
32545 (get_pc_thunk_name): Likewise.
32546 (gen_load_pcrel_sym): Likewise.
32547 (load_got_register): Likewise.
32549 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32551 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32552 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32554 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32556 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32557 into consideration.
32559 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32561 * config.gcc (with_nds32_lib, glibc):
32562 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32563 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32564 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32566 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32569 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32570 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32571 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32572 (*rcpsf2_sse): Ditto.
32573 (*rsqrtsf2_sse): Ditto.
32574 (sse4_1_round<mode<2): Ditto.
32576 2019-02-03 Richard Biener <rguenther@suse.de>
32579 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32582 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32584 PR middle-end/87887
32585 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32586 Punt with warning on aggregate return or argument types. Ignore
32587 type/mode checking for uniform arguments.
32589 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32591 * combine.c (try_combine): Do not print "Can't combine" messages unless
32592 printing failed combination attempts.
32594 2019-02-01 Martin Jambor <mjambor@suse.cz>
32597 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32598 segment and global segment variables before making them static.
32600 2019-02-01 Martin Jambor <mjambor@suse.cz>
32602 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32603 missed optimization dump with dump_enabled_p.
32605 2019-02-01 Richard Biener <rguenther@suse.de>
32607 PR middle-end/88597
32608 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32609 the instantiate cache.
32610 (instantiate_scev_binary): Elide second operand procesing
32611 if equal to the first.
32612 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32613 (chrec_contains_undetermined): Likewise.
32614 (tree_contains_chrecs): Likewise.
32616 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32618 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32620 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32622 PR tree-optimization/89143
32623 * wide-int-range.h (wide_int_range_absu): Declare.
32624 * wide-int-range.cc (wide_int_range_absu): New function.
32625 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32627 PR tree-optimization/88107
32628 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32629 instead of assertion that eh_region_outermost is non-NULL, if it
32630 is NULL, set *ALL to true and return NULL.
32631 (move_sese_region_to_fn): Adjust caller, if all is set, call
32632 duplicate_eh_regions with NULL region.
32634 2019-02-01 Richard Biener <rguenth@suse.de>
32636 PR rtl-optimization/88593
32637 * mode-switching.c (optimize_mode_switching): Free dominators before
32638 calling cleanup_cfg.
32640 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32642 PR tree-optimization/88932
32643 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32645 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32647 PR middle-end/89137
32648 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32649 bogus clang warning.
32651 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32654 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32655 alternative to avoid partial SSE register stall for TARGET_AVX.
32656 (truncdfsf2): Ditto.
32657 (sse4_1_round<mode>2): Ditto.
32659 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32661 PR tree-optimization/89008
32662 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32663 process anything of the form X * 0.
32665 2019-01-31 Richard Biener <rguenther@suse.de>
32667 PR tree-optimization/89135
32668 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32669 with abnormal preds.
32671 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32674 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32675 always_inline callees into no_sanitize_address callers.
32677 2019-01-31 Richard Biener <rguenther@suse.de>
32679 PR rtl-optimization/89115
32680 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32682 2019-01-30 Martin Sebor <msebor@redhat.com>
32685 * doc/extend.texi (cast to a union): Correct and expand.
32687 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32689 PR rtl-optimization/87246
32690 * lra-constraints.c (simplify_operand_subreg): Reload memory
32691 in subreg if the address became invalid.
32693 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32696 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32697 Disable for little-endian.
32699 2019-01-30 Richard Biener <rguenther@suse.de>
32701 PR rtl-optimization/89115
32702 * opts.c (default_options_optimization): Reduce
32703 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32704 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32707 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32709 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32710 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32711 type of vector element when vec_extract is implemented by direct
32714 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32716 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32718 2019-01-30 Richard Biener <rguenther@suse.de>
32720 PR tree-optimization/89111
32721 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32722 canonicalization to appropriately sized access types.
32724 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32727 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32728 for arguments to functions that are TU-local and shouldn't be
32729 referenced by assembly.
32731 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32733 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32736 2019-01-29 Martin Sebor <msebor@redhat.com>
32739 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32741 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32745 * omp-simd-clone.c (simd_clone_clauses_extract)
32746 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32747 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32749 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32751 * config.gcc: Force .init_array for ARC.
32753 2019-01-29 Richard Biener <rguenther@suse.de>
32756 * dwarf2out.c (collect_skeleton_dies): New helper.
32757 (copy_decls_for_unworthy_types): Call it.
32758 (build_abbrev_table): Assert we do not try to replace
32759 DW_AT_signature refs with local refs.
32761 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32763 PR middle-end/89002
32764 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32765 for lastprivate/linear IV, push gimplify context around gimplify_assign
32766 and, if it needed any temporaries, pop it into a gimple bind around the
32769 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32771 * common.opt (-Wattribute-alias): Remove "no-" from name.
32772 Make -Wattribute-alias command line option and
32773 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32775 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32778 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32779 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32781 (bmi2): Add missing @opindex.
32782 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32783 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32784 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32785 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32786 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32787 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32788 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32789 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32790 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32791 xsavec, xsaveopt and xsaves options.
32793 2019-01-28 Richard Biener <rguenther@suse.de>
32796 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32799 2019-01-28 Richard Biener <rguenther@suse.de>
32801 PR tree-optimization/88739
32802 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32803 BIT_FIELD_REFs only are applied to mode-precision operands
32804 when they are integral.
32805 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32806 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32807 BIT_FIELD_REFs of non-mode-precision integral operands.
32809 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32812 * config/i386/sse.md
32813 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32814 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32815 first constants in pairs are multiples of 2. Formatting fixes.
32816 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32817 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32818 first constants in each quadruple are multiples of 4. Formatting fixes.
32820 2019-01-26 Martin Jambor <mjambor@suse.cz>
32823 * tree-inline.c: Include tree-cfgcleanup.h.
32824 (delete_unreachable_blocks_update_callgraph): Move...
32825 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32826 ...here, make externally visible, make second argument bool, adjust
32828 * tree-cfgcleanup.c: Include cgraph.h.
32829 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32831 * ipa-prop.c: Include tree-cfgcleanup.h.
32832 (ipcp_transform_function): Call
32833 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32835 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32837 PR rtl-optimization/88846
32838 * ira.c (process_set_for_memref_referenced_p): New.
32839 (memref_referenced_p): Add new param. Use
32840 process_set_for_memref_referenced_p. Add new switch cases.
32841 (memref_used_between_p): Pass new arg to memref_referenced_p.
32843 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32846 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32847 argument ABI_BREAK. Set to true if the calculated alignment has
32848 changed in gcc-9. Check bit-fields for their base type alignment.
32849 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32850 (aarch64_function_arg_boundary): Likewise.
32851 (aarch64_gimplify_va_arg_expr): Likewise.
32853 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32855 PR middle-end/89037
32856 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32857 instead of accessing TREE_INT_CST_ELT directly.
32859 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32861 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32862 fenv_exceptions description.
32864 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32866 PR rtl-optimization/87763
32867 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32868 Allow SUBREG when matching CC_NZmode compare.
32870 2019-01-25 Richard Biener <rguenther@suse.de>
32872 PR tree-optimization/89049
32873 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32874 Look at the pattern stmt to determine if the stmt is vectorized.
32876 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32878 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32879 (pred_mov<mode>): Handle all-register forms using both a new
32880 alternative and a split.
32882 2019-01-25 Richard Biener <rguenther@suse.de>
32884 PR tree-optimization/86865
32885 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32886 Reject non-do-while loops.
32888 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
32890 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
32891 * config/rs6000/constraints.md (Q constraint): Use REG_P.
32892 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
32893 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32894 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
32895 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32896 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
32897 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
32898 vlogical_operand, gpc_reg_operand, int_reg_operand,
32899 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
32900 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
32901 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
32902 (save_world_operation, restore_world_operation, lmw_operation,
32903 stmw_operation): Use MEM_P and REG_P.
32904 (tie_operand): Use MEM_P.
32905 (vrsave_operation, crsave_operation): Use REG_P.
32906 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
32907 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
32908 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
32909 (call_operand): Use HARD_REGISTER_P.
32910 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
32912 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
32913 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
32914 quad_aligned_load_p, replace_swapped_aligned_store,
32915 recombine_lvx_pattern, replace_swapped_aligned_load,
32916 recombine_stvx_pattern): Use MEM_P.
32917 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
32918 Use MEM_P and SYMBOL_REF_P.
32919 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
32920 (insn_is_swappable_p): Use REG_P and MEM_P.
32921 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
32922 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
32924 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
32925 Use CONST_DOUBLE_P.
32926 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
32928 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
32929 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
32930 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
32931 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
32933 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32934 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
32935 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
32936 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
32937 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
32938 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
32939 rs6000_split_logical_di): Use CONST_INT_P.
32940 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
32941 REG_P and SYMBOL_REF_P.
32942 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
32943 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
32944 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
32945 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
32946 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
32947 (small_data_operand, print_operand_address): Use CONST_INT_P and
32949 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
32950 (rs6000_init_hard_regno_mode_ok, direct_move_p):
32951 Use HARD_REGISTER_NUM_P.
32952 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
32953 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
32954 SUBREG_P and SYMBOL_REF_P.
32955 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
32956 and HARD_REGISTER_NUM_P.
32957 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
32959 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
32960 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
32962 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
32963 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
32964 find_addr_reg): Use REG_P.
32965 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
32966 (rs6000_emit_le_vsx_move): Use SUBREG_P.
32967 (offsettable_ok_by_alignment, constant_pool_expr_p,
32968 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
32969 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
32970 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
32971 rs6000_assemble_integer, create_TOC_reference,
32972 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
32973 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
32974 (rs6000_split_vec_extract_var): Use reg_or_subregno.
32975 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
32976 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
32977 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32978 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
32979 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
32980 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
32981 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
32982 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
32983 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
32984 and cbranch<mode>4): Use CONST_INT_P.
32985 (multiple define_splits): Use REG_P and SUBREG_P.
32986 (define_expands call, call_value): Use MEM_P.
32987 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
32988 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
32989 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
32990 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
32991 and HARD_REGISTER_NUM_P.
32992 (multiple define_splits): Use HARD_REGISTER_NUM_P.
32994 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
32996 PR rtl-optimization/88948
32997 * rtl.h (prepare_copy_insn): New prototype.
32998 * gcse.c (prepare_copy_insn): New function, split out from
32999 process_insert_insn.
33000 (process_insert_insn): Use prepare_copy_insn.
33001 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33002 instead of gen_move_insn.
33004 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33007 * config/i386/i386.c (ix86_pic_register_p): Return true for
33008 UNSPEC_SET_GOT too.
33010 PR tree-optimization/88964
33011 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33012 punt if HONOR_SNANS (chrec).
33014 PR middle-end/89015
33015 * tree-nested.c (convert_nonlocal_reference_stmt,
33016 convert_local_reference_stmt, convert_tramp_reference_stmt,
33017 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33018 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33019 or GIMPLE_OMP_TASK.
33021 PR tree-optimization/89027
33022 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33023 for "omp simd array" variables.
33025 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33028 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33029 force the alignment of m_val.
33031 2019-01-24 Richard Biener <rguenther@suse.de>
33034 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33035 When in "legacy" debug mode make sure to reset self-origins.
33037 2019-01-24 Martin Liska <mliska@suse.cz>
33039 PR gcov-profile/88994
33040 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33041 result will be always smaller or equal to the original.
33042 * gcov.c (mangle_name): Fix else branch where we should
33043 also copy to PTR and shift the pointer.
33045 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33047 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33048 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33050 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33052 * common/config/i386/i386-common.c
33053 (OPTION_MASK_ISA_ENQCMD_SET,
33054 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33055 (ix86_handle_option): Handle -menqcmd.
33056 * config.gcc (enqcmdintrin.h): New header file.
33057 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33058 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33060 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33062 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33063 __builtin_ia32_enqcmds): New builtins.
33064 * config/i386/i386-c.c (__ENQCMD__): New macro.
33065 * config/i386/i386-option.c (ix86_target_string): Add
33067 (ix86_valid_target_attribute_inner_p): Likewise.
33068 * config/i386/i386-expand.c
33069 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33070 IX86_BUILTIN_ENQCMDS.
33071 * config/i386/i386.h (TARGET_ENQCMD): New.
33072 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33073 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33074 (movdir64b_<mode>): Parameterize to enable share expansion code
33075 with ENQCMD in function ix86_expand_builtin.
33076 * config/i386/i386.opt: Add -menqcmd.
33077 * config/i386/immintrin.h: Include enqcmdintrin.h.
33078 * config/i386/enqcmdintrin.h: New intrinsic file.
33079 * doc/invoke.texi: Add -menqcmd.
33081 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33082 Steve Ellcey <sellcey@marvell.com>
33085 * recog.c (address_operand): Return false on wrong mode for address.
33086 (constrain_operands): Check for mode with 'p' constraint.
33088 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33091 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33092 Disparage MMX alternative.
33093 (sse2_cvtpd2pi): Ditto.
33094 (sse2_cvttpd2pi): Ditto.
33096 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33099 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33100 use-after-free of the result of
33101 aarch64_get_extension_string_for_isa_flags.
33103 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33106 * doc/extend.texi: Document break and continue behavior in
33107 statement expressions.
33109 2019-01-23 Richard Biener <rguenther@suse.de>
33111 PR tree-optimization/89008
33112 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33113 not leave another stray operand.
33115 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33117 * BASE-VER: Bump to 9.0.1.
33119 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33121 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33122 thunk that returns by reference, use the type of the return object
33123 of the thunk instead of that of the alias to build the dereference.
33125 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33127 * config/arc/atomic.md: Add operand to DMB instruction.
33129 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33131 PR tree-optimization/88964
33132 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33133 build_zero_cst instead of build_int_cst. Return false for loop
33134 invariants which honor signed zeros.
33136 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33138 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33140 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33143 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33144 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33145 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33147 PR middle-end/88968
33148 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33149 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33152 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33153 Disable for little endian.
33155 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33158 * config/arm/arm.c (arm_needs_double_word_align): Check
33159 DECL_BIT_FIELD_TYPE.
33161 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33162 H.J. Lu <hongjiu.lu@intel.com>
33165 * config/i386/i386-builtin.def: Add mask2 to all builtin
33166 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33168 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33169 (BDESC_FIRST): Likewise.
33170 (define_builtin): Add an argument for mask2. Updated to handle
33171 both ix86_isa_flags and ix86_isa_flags2.
33172 (define_builtin_const): Likewise.
33173 (define_builtin_pure): Likewise.
33174 (define_builtin2): Deleted.
33175 (define_builtin_const2): Likewise.
33176 (builtin_description): Add a member, mask2.
33177 (bdesc_*): Add mask2 to builtin initializations.
33178 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33179 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33181 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33183 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33186 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33189 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33192 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33193 alignment is dominated by a bitfield with 64-bit aligned base type.
33194 (arm_function_arg): Emit a warning if the alignment has changed since
33195 earlier GCC releases.
33196 (arm_function_arg_boundary): Likewise.
33197 (arm_setup_incoming_varargs): Likewise.
33199 2019-01-22 Richard Biener <rguenther@suse.de>
33201 PR tree-optimization/88862
33202 * graphite-scop-detection.c
33203 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33205 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33207 * doc/extend.tex (AMD GCN Function Attributes): New section.
33208 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33209 * doc/invoke.texi (AMD GCN Options): New section.
33210 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33212 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33214 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33215 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33217 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33219 PR tree-optimization/88044
33220 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33221 is false in the first iteration, but !every_iteration, return false
33222 instead of true with niter->niter zero.
33224 PR rtl-optimization/88904
33225 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33226 any nonequal registers before processing BB_END (b).
33229 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33231 (expand_binop_directly, expand_doubleword_clz,
33232 expand_doubleword_popcount, expand_ctz, expand_ffs,
33233 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33235 PR rtl-optimization/49429
33237 PR rtl-optimization/86334
33239 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33240 addressable from here...
33241 (emit_block_op_via_libcall): ... to here.
33243 2019-01-22 Richard Biener <rguenther@suse.de>
33245 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33246 auto_vec for cost vector to fix memleak.
33247 (vectorize_fold_left_reduction): Properly gather SLP defs.
33248 (vectorizable_comparison): Do not swap operands to properly
33251 2019-01-22 Alan Modra <amodra@gmail.com>
33254 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33255 stays a reg. Allow a const_int.
33256 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33257 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33258 (IS_NOMARK_TLSGETADDR): Define.
33259 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33260 (rs6000_output_tlsargs): New function.
33261 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33262 __tls_get_addr call takes an arg.
33263 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33264 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33266 (call_value_nonlocal_sysv): ..or here, delete split.
33267 (tls_gdld_nomark): Delete.
33268 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33269 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33270 (call_value_nonlocal_sysv): Likewise.
33271 (call_value_nonlocal_sysv_secure): Likewise.
33272 (call_value_nonlocal_aix): Likewise.
33273 (call_value_indirect_aix): Likewise.
33274 (call_value_indirect_elfv2): Likewise.
33275 (call_value_local32, call_value_local64): Disable for no-mark tls.
33276 (call_value_local_aix): Likewise.
33278 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33281 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33282 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33284 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33286 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33287 string contents as hash_map keys.
33289 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33292 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33293 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33294 instead of TYPE_ALIGN.
33295 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33296 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33297 pointer from TYPE_STUB_DECL.
33299 2019-01-21 Richard Biener <rguenther@suse.de>
33301 PR tree-optimization/88934
33302 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33303 at the possibly non-constant operand.
33304 (vect_get_constant_vectors): Adjust.
33306 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33309 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33310 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33311 instead of _X86INTRIN_H_INCLUDED.
33312 * onfig/i386/clwbintrin.h: Likewise.
33313 * config/i386/pkuintrin.h: Likewise.
33314 * config/i386/prfchwintrin.h: Likewise.
33315 * config/i386/rdseedintrin.h: Likewise.
33316 * config/i386/wbnoinvdintrin.h: Likewise.
33317 * config/i386/xsavecintrin.h: Likewise.
33318 * config/i386/xsavesintrin.h: Likewise.
33319 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33320 * config/i386/xsaveintrin.h: Likewise.
33321 * config/i386/xsaveoptintrin.h: Likewise.
33322 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33323 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33324 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33325 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33326 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33327 * config/i386/immintrin.h: Here.
33329 2019-01-20 Martin Jambor <mjambor@suse.cz>
33332 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33333 with aa_walk_budget.
33334 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33335 aa_walk_budget_p parameter.
33336 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33337 walk. Updated all callers.
33338 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33339 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33341 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33342 parameter info. Extract info from fbi. Pass fbi to recursive calls
33343 and to unmodified_parm.
33344 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33345 info, updated call to will_be_nonconstant_expr_predicate.
33346 (param_change_prob): New parameter fbi, limit AA walking.
33347 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33348 calls to various above functions.
33349 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33350 parameter. Use it to limit AA walking.
33351 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33352 fbi, limit AA walk.
33353 (detect_type_change): New parameter fbi, pass it on to
33354 detect_type_change_from_memory_writes.
33355 (detect_type_change_ssa): Likewise.
33356 (aa_overwalked): Removed.
33357 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33358 accordingly, adjust to the neew AA limiting scheme.
33359 (parm_ref_data_preserved_p): Likewise.
33360 (ipa_compute_jump_functions_for_edge): Adjust call to
33362 (ipa_analyze_call_uses): Likewise.
33363 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33364 (ipa_analyze_node): Initialize aa_walk_budget.
33365 (ipcp_transform_function): Likewise.
33366 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33367 to get_dynamic_type.
33369 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33371 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33372 outside of #if CHECKING_P code.
33374 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33376 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33377 New function, split out from...
33378 (loop_versioning::analyze_stride): ...here.
33379 (loop_versioning::find_per_loop_multiplication): Use gassign.
33380 (loop_versioning::analyze_term_using_scevs): Return a success code.
33381 (loop_versioning::analyze_arbitrary_term): New function.
33382 (loop_versioning::analyze_address_fragment): Use
33383 analyze_arbitrary_term if all else fails.
33385 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33388 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33391 2019-01-18 Richard Biener <rguenther@suse.de>
33393 PR tree-optimization/88903
33394 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33395 scalar stmts a SLP shift amount is composed of when detecting
33398 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33401 * config/arm/arm-cpus.in (mp): New feature.
33402 (sec): New feature.
33403 (fgroup ARMv7ve): Add mp and sec features.
33404 (arch armv7-a): Add options to allow mp and sec extensions.
33405 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33406 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33407 extenstions to the base architecture.
33408 (cpu cortex-a8): Add sec extension to the base architecture.
33409 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33410 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33411 variants down to the base v7-a varaint.
33412 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33413 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33414 of permitted extensions for -march=armv7-a and for
33415 -mcpu=generic-armv7-a.
33417 2019-01-18 Martin Liska <mliska@suse.cz>
33419 * params.def: Fix comment.
33420 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33422 (gimple_gen_ic_func_profiler): Likewise.
33424 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33426 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33427 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33428 and put in error checks for stack protector guard options.
33429 (aarch64_stack_protect_guard): New.
33430 (TARGET_STACK_PROTECT_GUARD): Define.
33431 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33432 (reg_stack_protect_address<mode>): New.
33433 (stack_protect_set): Adjust for SSP_GLOBAL.
33434 (stack_protect_test): Likewise.
33435 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33436 (-mstack-protector-guard): Likewise.
33437 (-mstack-protector-guard-offset): Likewise.
33439 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33441 PR tree-optimization/86214
33442 * tree-inline.h (struct copy_body_data): Add
33443 add_clobbers_to_eh_landing_pads member.
33444 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33445 (copy_edges_for_bb): Call it if EH edge destination is <
33446 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33447 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33448 if flag_stack_reuse != SR_NONE and clear it afterwards.
33450 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33453 * doc/install.texi (with-multilib-list): Document for aarch64.
33455 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33458 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33459 (("..."))) with ("...").
33461 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33463 * doc/extend.texi (Built-in Functions for Memory Model Aware
33464 Atomic Operations): Document atomic fetch and nand.
33466 2019-01-18 Martin Liska <mliska@suse.cz>
33467 Richard Biener <rguenther@suse.de>
33469 PR middle-end/88587
33470 * cgraph.h (create_version_clone_with_body): Add new argument
33472 * cgraphclones.c (cgraph_node::create_version_clone): Add
33473 DECL_ATTRIBUTES to a newly created decl. And call
33474 valid_attribute_p so that proper cl_target_optimization_node
33475 is set for the newly created declaration.
33476 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33478 (expand_target_clones): Do not call valid_attribute_p, it must
33480 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33483 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33486 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33487 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33488 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33490 2019-01-17 Martin Sebor <msebor@redhat.com>
33492 PR middle-end/88273
33493 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33494 Handle anti-ranges the same as no range at all.
33496 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33498 * config/aarch64/aarch64.c (cgraph.h): New include.
33499 (intl.h): New include.
33500 (supported_simd_type): New function.
33501 (currently_supported_simd_type): Ditto.
33502 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33503 (aarch64_simd_clone_adjust): Ditto.
33504 (aarch64_simd_clone_usable): Ditto.
33505 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33506 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33507 (TARGET_SIMD_CLONE_USABLE): Ditto.
33508 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33509 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33512 2019-01-17 Martin Sebor <msebor@redhat.com>
33514 PR tree-optimization/88800
33515 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33516 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33517 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33518 redundant argument. Add new argument and issue diagnostics under
33519 its control. Detect out-of-bounds access even with warnings
33521 (check_bounds_or_overlap): Change return type. Add argument.
33522 (wrestrict_dom_walker::check_call): Adjust.
33523 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33524 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33525 check_bounds_or_overlap's return value.
33526 (handle_builtin_stxncpy): Same.
33527 (handle_builtin_strcat): Same.
33529 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33530 Kwok Cheung Yeung <kcy@codesourcery.com>
33531 Julian Brown <julian@codesourcery.com>
33532 Tom de Vries <tom@codesourcery.com>
33534 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33536 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33538 * doc/sourcebuild.texi: Document dg-require-effective-target
33539 llvm_binutils and offload_gcn.
33541 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33542 Kwok Cheung Yeung <kcy@codesourcery.com>
33543 Julian Brown <julian@codesourcery.com>
33544 Tom de Vries <tom@codesourcery.com>
33546 * doc/sourcebuild.texi: Document dg-required-effective-target
33549 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33550 Kwok Cheung Yeung <kcy@codesourcery.com>
33551 Julian Brown <julian@codesourcery.com>
33552 Tom de Vries <tom@codesourcery.com>
33553 Jan Hubicka <hubicka@ucw.cz>
33554 Martin Jambor <mjambor@suse.cz>
33556 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33557 * configure.ac: Check for dlopen.
33558 * configure: Regenerate.
33560 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33561 Kwok Cheung Yeung <kcy@codesourcery.com>
33562 Julian Brown <julian@codesourcery.com>
33563 Tom de Vries <tom@codesourcery.com>
33564 Jan Hubicka <hubicka@ucw.cz>
33565 Martin Jambor <mjambor@suse.cz>
33567 * common/config/gcn/gcn-common.c: New file.
33568 * config/gcn/driver-gcn.c: New file.
33569 * config/gcn/gcn-builtins.def: New file.
33570 * config/gcn/gcn-hsa.h: New file.
33571 * config/gcn/gcn-modes.def: New file.
33572 * config/gcn/gcn-opts.h: New file.
33573 * config/gcn/gcn-passes.def: New file.
33574 * config/gcn/gcn-protos.h: New file.
33575 * config/gcn/gcn-run.c: New file.
33576 * config/gcn/gcn-tree.c: New file.
33577 * config/gcn/gcn.c: New file.
33578 * config/gcn/gcn.h: New file.
33579 * config/gcn/gcn.opt: New file.
33580 * config/gcn/t-gcn-hsa: New file.
33582 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33583 Kwok Cheung Yeung <kcy@codesourcery.com>
33584 Julian Brown <julian@codesourcery.com>
33585 Tom de Vries <tom@codesourcery.com>
33586 Jan Hubicka <hubicka@ucw.cz>
33587 Martin Jambor <mjambor@suse.cz>
33589 * config/gcn/constraints.md: New file.
33590 * config/gcn/gcn-valu.md: New file.
33591 * config/gcn/gcn.md: New file.
33592 * config/gcn/predicates.md: New file.
33594 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33596 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33597 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33598 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33599 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33601 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33604 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33605 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33606 it and document registers.
33608 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33610 * config/aarch64/aarch64.c (ares_tunings): Define.
33611 * config/aarch64/aarch64-cores.def (ares): Use the above.
33613 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33617 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33619 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33620 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33621 (_mm512_maskz_fixupimm_round_pd): Ditto.
33622 (_mm512_fixupimm_round_ps): Ditto.
33623 (_mm512_maskz_fixupimm_round_ps): Ditto.
33624 (_mm_fixupimm_round_sd): Ditto.
33625 (_mm_maskz_fixupimm_round_sd): Ditto.
33626 (_mm_fixupimm_round_ss): Ditto.
33627 (_mm_maskz_fixupimm_round_ss): Ditto.
33628 (_mm512_fixupimm_pd): Ditto.
33629 (_mm512_maskz_fixupimm_pd): Ditto.
33630 (_mm512_fixupimm_ps): Ditto.
33631 (_mm512_maskz_fixupimm_ps): Ditto.
33632 (_mm_fixupimm_sd): Ditto.
33633 (_mm_maskz_fixupimm_sd): Ditto.
33634 (_mm_fixupimm_ss): Ditto.
33635 (_mm_maskz_fixupimm_ss): Ditto.
33636 (_mm512_mask_fixupimm_round_pd): Update builtin.
33637 (_mm512_mask_fixupimm_round_ps): Ditto.
33638 (_mm_mask_fixupimm_round_sd): Ditto.
33639 (_mm_mask_fixupimm_round_ss): Ditto.
33640 (_mm512_mask_fixupimm_pd): Ditto.
33641 (_mm512_mask_fixupimm_ps): Ditto.
33642 (_mm_mask_fixupimm_sd): Ditto.
33643 (_mm_mask_fixupimm_ss): Ditto.
33644 * config/i386/avx512vlintrin.h:
33645 (_mm256_fixupimm_pd): Update parameters and builtin.
33646 (_mm256_maskz_fixupimm_pd): Ditto.
33647 (_mm256_fixupimm_ps): Ditto.
33648 (_mm256_maskz_fixupimm_ps): Ditto.
33649 (_mm_fixupimm_pd): Ditto.
33650 (_mm_maskz_fixupimm_pd): Ditto.
33651 (_mm_fixupimm_ps): Ditto.
33652 (_mm_maskz_fixupimm_ps): Ditto.
33653 (_mm256_mask_fixupimm_pd): Update builtin.
33654 (_mm256_mask_fixupimm_ps): Ditto.
33655 (_mm_mask_fixupimm_pd): Ditto.
33656 (_mm_mask_fixupimm_ps): Ditto.
33657 * config/i386/i386-builtin-types.def: Add new types and remove
33659 * config/i386/i386-builtin.def: Update builtin definitions.
33660 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33661 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33662 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33663 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33664 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33665 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33666 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33667 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33668 * config/i386/subst.md:
33669 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33670 (round_saeonly_sd_mask_op4): Ditto.
33671 (round_saeonly_expand_operand5): Ditto.
33672 (round_saeonly_expand): Update.
33674 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33678 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33680 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33681 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33682 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33683 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33684 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33685 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33686 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33688 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33692 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33695 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33696 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33697 instead of UNSPEC_FIXUPIMM.
33699 2019-01-17 Richard Biener <rguenther@suse.de>
33702 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33703 and friends for the LTO part of debug info.
33705 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33707 PR tree-optimization/86214
33708 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33711 PR rtl-optimization/88870
33712 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33713 throw if we can't alter the cfg or delete dead exceptions.
33714 (mark_insn): Don't call find_call_stack_args for such calls.
33716 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33718 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33719 prototypes for vec_st.
33720 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33721 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33722 mainly on signed/unsigned long long and double.
33724 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33727 * combine.c (delete_noop_moves): Convert to "bool" return,
33728 returning true if any edges are eliminated.
33729 (combine_instructions): Also return true if delete_noop_moves
33732 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33734 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33735 correct max nunits for endian swap.
33736 (aarch64_expand_fcmla_builtin): Correct subreg code.
33737 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33738 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33741 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33743 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33744 Handle split indirect COMPLEX_TYPE arguments.
33746 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33749 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33750 bit is set by add and compare.
33751 (CC_ADC): New CC_MODE.
33752 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33753 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33754 comparison. Add detection for CC_ADCmode.
33755 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33757 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33758 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33759 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33760 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33761 to eliminate the need for zero-extending the operands.
33762 (add<mode>3_compareC_imm): Delete. Merge into ...
33763 (add<mode>3_compareC): ... this. Restructure the comparison to
33764 eliminate the need for zero-extending the operands.
33765 (add<mode>3_carryin): Use LTU for the overflow detection.
33766 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33767 Reexpress comparison for overflow.
33768 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33769 (add<mode>3_carryinC): Likewise.
33770 (add<mode>3_carryinV): Use LTU for carry between partials.
33771 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33772 handling of CC_Cmode and add CC_ADCmode.
33773 (aarch64_borrow_operation): Likewise.
33775 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33777 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33778 Remove patternmode.
33779 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33780 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33781 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33782 Remove endianness conversion.
33784 2019-01-16 Martin Liska <mliska@suse.cz>
33786 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33788 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33790 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33791 (path_prefix_reset): Move up in the source file.
33792 (find_fortran_preinclude_file): Make complex search for the
33793 fortran header files.
33795 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33797 * godump.c (go_output_typedef): When outputting a typedef, refer
33798 to the underlying type by its name and not its structure.
33800 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33803 * tree.c (build_function_type): Assert that arg_types is not
33806 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33808 PR inline-asm/52813
33809 * doc/extend.texi: Document that listing the stack pointer in the
33810 clobber list of an asm is a deprecated feature.
33811 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33812 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33813 warning instead of an error for clobbers of the stack pointer.
33814 Add a note explaining why.
33816 2019-01-15 Richard Biener <rguenther@suse.de>
33819 * dwarf2out.c (gen_member_die): Do not generate inheritance
33822 2019-01-15 Richard Biener <rguenther@suse.de>
33824 PR tree-optimization/88855
33825 * tree-if-conv.c (combine_blocks): Collect
33826 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33828 2019-01-15 Tom de Vries <tdevries@suse.de>
33831 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33832 lhs == NULL_TREE for gang-level reduction.
33834 2019-01-15 Richard Biener <rguenther@suse.de>
33835 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33838 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33839 return true if SSA_NAME is already marked in visited bitmap.
33840 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33842 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33844 PR tree-optimization/88775
33845 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33846 equal == 0 equality pointer comparisons some more if compared in
33847 integral types and either one points to an automatic var and the
33848 other to a global, or we can prove at least one points to the middle
33849 or both point to start or both point to end.
33851 2019-01-14 Andi Kleen <ak@linux.intel.com>
33853 * Makefile.in: Lower autofdo sampling rate by 10x.
33854 * Makefile.tpl: Dito.
33856 2019-01-14 Tom Honermann <tom@honermann.net>
33858 * defaults.h: Define CHAR8_TYPE.
33860 2019-01-14 Martin Sebor <msebor@redhat.com>
33863 * doc/extend.texi (Darwin Format Checks): Clarify.
33865 2019-01-14 Richard Biener <rguenther@suse.de>
33867 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33868 whether we are in (simplify ...) or (match ...) context.
33870 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33872 PR rtl-optimization/88796
33873 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33874 * cfgexpand.c (stack_protect_prologue): Initialize
33875 crtl->stack_protect_guard_decl.
33876 * function.c (stack_protect_epilogue): Use it instead of calling
33877 targetm.stack_protect_guard again.
33878 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33879 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33880 crtl->stack_protect_guard_decl.
33881 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33882 on the returned MEM_EXPR.
33884 2019-01-12 Tom de Vries <tdevries@suse.de>
33886 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
33887 vector length using -fopenacc-dim.
33889 2019-01-12 Tom de Vries <tdevries@suse.de>
33891 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
33892 lengths into account.
33894 2019-01-12 Svante Signell <svante.signell@gmail.com>
33896 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
33897 (TARGET_CAN_SPLIT_STACK): Define.
33898 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
33900 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33902 * params.def (inline-unit-growth): Set to 40.
33904 2019-01-12 Jakub Jelinek <jakub@redhat.com>
33906 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
33908 2019-01-12 Tom de Vries <tdevries@suse.de>
33910 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
33911 region calling vector-partitionable routine, set default_vector_length
33914 2019-01-12 Tom de Vries <tdevries@suse.de>
33916 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
33917 variable default_vector_length.
33919 2019-01-12 Tom de Vries <tdevries@suse.de>
33921 PR middle-end/88703
33922 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
33923 from oacc_default_dims, as oacc_validate_dims would do it, and apply
33926 2019-01-12 Tom de Vries <tdevries@suse.de>
33928 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
33929 (nvptx_goacc_validate_dims): Add used parameter.
33930 * doc/tm.texi: Regenerate.
33931 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
33932 argument to call to targetm.goacc.validate_dims.
33933 (default_goacc_validate_dims): Add used
33935 * target.def (validate_dims): Add used parameter in DEFHOOK.
33936 * targhooks.h (default_goacc_validate_dims): Add used parameter.
33938 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33940 PR middle-end/85956
33942 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
33944 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
33945 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
33946 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
33947 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
33949 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
33951 PR rtl-optimization/87305
33953 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
33954 for little endian pseudos used as paradoxical subreg.
33956 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33958 PR tree-optimization/88693
33959 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
33960 for STRING_CSTs that don't contain any NUL characters in the first
33961 TREE_STRING_LENGTH bytes.
33963 2019-01-11 Alan Modra <amodra@gmail.com>
33967 * genattrtab.c (min_fn): Don't translate values.
33968 (min_attr_value): Return INT_MAX when the value can't be calculated.
33969 Return minimum among any values that can be calculated.
33970 (max_attr_value): Adjust.
33972 2019-01-11 Jakub Jelinek <jakub@redhat.com>
33974 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
33976 2019-01-11 Steve Ellcey <sellcey@marvell.com>
33978 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
33979 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
33980 (aarch64_return_call_with_max_clobbers): New function.
33981 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
33982 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
33984 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
33985 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
33986 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
33987 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
33988 * cselib.c (cselib_process_insn): Add argument to
33989 targetm.hard_regno_call_part_clobbered call.
33990 * ira-conflicts.c (ira_build_conflicts): Ditto.
33991 * ira-costs.c (ira_tune_allocno_costs): Ditto.
33992 * lra-constraints.c (inherit_reload_reg): Ditto.
33993 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
33994 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
33995 argument. Call targetm.return_call_with_max_clobbers.
33996 Add argument to targetm.hard_regno_call_part_clobbered call.
33997 (calls_have_same_clobbers_p): New function.
33998 (process_bb_lives): Add call_insn and last_call_insn variables.
33999 Pass call_insn to check_pseudos_live_through_calls.
34000 Modify if stmt to check targetm.return_call_with_max_clobbers.
34001 Update setting of flush variable.
34002 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34004 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34005 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34006 targetm.hard_regno_call_part_clobbered call.
34007 * reginfo.c (choose_hard_reg_mode): Ditto.
34008 * regrename.c (check_new_reg_p): Ditto.
34009 * reload.c (find_equiv_reg): Ditto.
34010 * reload1.c (emit_reload_insns): Ditto.
34011 * sched-deps.c (deps_analyze_insn): Ditto.
34012 * sel-sched.c (init_regs_for_mode): Ditto.
34013 (mark_unavailable_hard_regs): Ditto.
34014 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34015 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34016 (return_call_with_max_clobbers): New target function.
34017 * doc/tm.texi: Regenerate.
34018 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34019 * hooks.c (hook_bool_uint_mode_false): Change to
34020 hook_bool_insn_uint_mode_false.
34021 * hooks.h (hook_bool_uint_mode_false): Ditto.
34023 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34025 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34026 (aarch64_remove_extra_call_preserved_regs): New function.
34027 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34028 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34029 * doc/tm.texi: Regenerate.
34030 * final.c (get_call_reg_set_usage): Call new hook.
34031 * target.def (remove_extra_call_preserved_regs): New hook.
34032 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34033 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34035 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34038 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34039 inside of pass_combine_1 dump rather than pass_profile_1.
34041 2019-01-11 Tom de Vries <tdevries@suse.de>
34043 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34044 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34045 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34046 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34049 2019-01-11 Tom de Vries <tdevries@suse.de>
34051 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34053 2019-01-11 Jan Beulich <jbeulich@suse.com>
34055 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34056 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34057 sse2_cvtsi2sd): Add {l}.
34058 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34061 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34064 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34066 (*float<floatunssuffix>v2div2sf2): New define_insn.
34067 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34068 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34069 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34070 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34071 match_operands with "const0_operand" "C".
34073 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34075 * config/aarch64/aarch64-builtins.c
34076 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34077 (aarch64_init_simd_builtins): ...Here
34079 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34081 PR rtl-optimization/87305
34083 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34084 allocation for big endian pseudos used as paradoxical subregs and
34085 spill them if it is wrong.
34086 * lra-constraints.c (lra_constraints): Add a comment.
34088 2019-01-10 Richard Biener <rguenther@suse.de>
34090 PR tree-optimization/88792
34091 * tree-ssa-pre.c (get_representative_for): Do not return a
34094 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34096 PR middle-end/84877
34098 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34099 (assign_parm_setup_block): Do the argument slot realignment here
34102 2019-01-10 Stefan Agner <stefan@agner.ch>
34105 * config/arm/arm.c (arm_option_override_internal): Force
34106 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34108 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34111 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34114 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34116 * config/arm/arm-builtins.c
34117 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34118 (MAC_LANE_PAIR_QUALIFIERS): New.
34119 (arm_expand_builtin_args): Use it.
34120 (arm_expand_builtin_1): Likewise.
34121 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34122 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34123 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34124 * config/arm/arm_neon.h:
34125 (vcadd_rot90_f16): New.
34126 (vcaddq_rot90_f16): New.
34127 (vcadd_rot270_f16): New.
34128 (vcaddq_rot270_f16): New.
34131 (vcmla_lane_f16): New.
34132 (vcmla_laneq_f16): New.
34133 (vcmlaq_lane_f16): New.
34134 (vcmlaq_laneq_f16): New.
34135 (vcmla_rot90_f16): New.
34136 (vcmlaq_rot90_f16): New.
34137 (vcmla_rot90_lane_f16): New.
34138 (vcmla_rot90_laneq_f16): New.
34139 (vcmlaq_rot90_lane_f16): New.
34140 (vcmlaq_rot90_laneq_f16): New.
34141 (vcmla_rot180_f16): New.
34142 (vcmlaq_rot180_f16): New.
34143 (vcmla_rot180_lane_f16): New.
34144 (vcmla_rot180_laneq_f16): New.
34145 (vcmlaq_rot180_lane_f16): New.
34146 (vcmlaq_rot180_laneq_f16): New.
34147 (vcmla_rot270_f16): New.
34148 (vcmlaq_rot270_f16): New.
34149 (vcmla_rot270_lane_f16): New.
34150 (vcmla_rot270_laneq_f16): New.
34151 (vcmlaq_rot270_lane_f16): New.
34152 (vcmlaq_rot270_laneq_f16): New.
34153 (vcadd_rot90_f32): New.
34154 (vcaddq_rot90_f32): New.
34155 (vcadd_rot270_f32): New.
34156 (vcaddq_rot270_f32): New.
34159 (vcmla_lane_f32): New.
34160 (vcmla_laneq_f32): New.
34161 (vcmlaq_lane_f32): New.
34162 (vcmlaq_laneq_f32): New.
34163 (vcmla_rot90_f32): New.
34164 (vcmlaq_rot90_f32): New.
34165 (vcmla_rot90_lane_f32): New.
34166 (vcmla_rot90_laneq_f32): New.
34167 (vcmlaq_rot90_lane_f32): New.
34168 (vcmlaq_rot90_laneq_f32): New.
34169 (vcmla_rot180_f32): New.
34170 (vcmlaq_rot180_f32): New.
34171 (vcmla_rot180_lane_f32): New.
34172 (vcmla_rot180_laneq_f32): New.
34173 (vcmlaq_rot180_lane_f32): New.
34174 (vcmlaq_rot180_laneq_f32): New.
34175 (vcmla_rot270_f32): New.
34176 (vcmlaq_rot270_f32): New.
34177 (vcmla_rot270_lane_f32): New.
34178 (vcmla_rot270_laneq_f32): New.
34179 (vcmlaq_rot270_lane_f32): New.
34180 (vcmlaq_rot270_laneq_f32): New.
34181 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34182 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34183 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34184 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34185 vcmlaq_lane270): New.
34186 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34187 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34188 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34189 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34190 (arm_option_reconfigure_globals): Use them.
34191 * config/arm/iterators.md (VDF, VQ_HSF): New.
34192 (VCADD, VCMLA): New.
34193 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34194 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34196 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34197 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34199 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34201 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34202 Add qualifier_lane_pair_index.
34203 (emit-rtl.h): Include.
34204 (TYPES_QUADOP_LANE_PAIR): New.
34205 (aarch64_simd_expand_args): Use it.
34206 (aarch64_simd_expand_builtin): Likewise.
34207 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34209 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34210 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34211 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34212 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34213 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34214 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34215 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34216 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34217 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34218 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34219 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34220 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34221 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34222 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34223 Add __ARM_FEATURE_COMPLEX.
34224 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34225 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34226 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34227 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34228 fcmlaq_lane270): New.
34229 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34230 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34231 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34232 * config/aarch64/arm_neon.h:
34233 (vcadd_rot90_f16): New.
34234 (vcaddq_rot90_f16): New.
34235 (vcadd_rot270_f16): New.
34236 (vcaddq_rot270_f16): New.
34239 (vcmla_lane_f16): New.
34240 (vcmla_laneq_f16): New.
34241 (vcmlaq_lane_f16): New.
34242 (vcmlaq_rot90_lane_f16): New.
34243 (vcmla_rot90_laneq_f16): New.
34244 (vcmla_rot90_lane_f16): New.
34245 (vcmlaq_rot90_f16): New.
34246 (vcmla_rot90_f16): New.
34247 (vcmlaq_laneq_f16): New.
34248 (vcmla_rot180_laneq_f16): New.
34249 (vcmla_rot180_lane_f16): New.
34250 (vcmlaq_rot180_f16): New.
34251 (vcmla_rot180_f16): New.
34252 (vcmlaq_rot90_laneq_f16): New.
34253 (vcmlaq_rot270_laneq_f16): New.
34254 (vcmlaq_rot270_lane_f16): New.
34255 (vcmla_rot270_laneq_f16): New.
34256 (vcmlaq_rot270_f16): New.
34257 (vcmla_rot270_f16): New.
34258 (vcmlaq_rot180_laneq_f16): New.
34259 (vcmlaq_rot180_lane_f16): New.
34260 (vcmla_rot270_lane_f16): New.
34261 (vcadd_rot90_f32): New.
34262 (vcaddq_rot90_f32): New.
34263 (vcaddq_rot90_f64): New.
34264 (vcadd_rot270_f32): New.
34265 (vcaddq_rot270_f32): New.
34266 (vcaddq_rot270_f64): New.
34270 (vcmla_lane_f32): New.
34271 (vcmla_laneq_f32): New.
34272 (vcmlaq_lane_f32): New.
34273 (vcmlaq_laneq_f32): New.
34274 (vcmla_rot90_f32): New.
34275 (vcmlaq_rot90_f32): New.
34276 (vcmlaq_rot90_f64): New.
34277 (vcmla_rot90_lane_f32): New.
34278 (vcmla_rot90_laneq_f32): New.
34279 (vcmlaq_rot90_lane_f32): New.
34280 (vcmlaq_rot90_laneq_f32): New.
34281 (vcmla_rot180_f32): New.
34282 (vcmlaq_rot180_f32): New.
34283 (vcmlaq_rot180_f64): New.
34284 (vcmla_rot180_lane_f32): New.
34285 (vcmla_rot180_laneq_f32): New.
34286 (vcmlaq_rot180_lane_f32): New.
34287 (vcmlaq_rot180_laneq_f32): New.
34288 (vcmla_rot270_f32): New.
34289 (vcmlaq_rot270_f32): New.
34290 (vcmlaq_rot270_f64): New.
34291 (vcmla_rot270_lane_f32): New.
34292 (vcmla_rot270_laneq_f32): New.
34293 (vcmlaq_rot270_lane_f32): New.
34294 (vcmlaq_rot270_laneq_f32): New.
34295 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34296 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34297 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34298 (FCADD, FCMLA): New.
34300 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34302 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34306 * config/pa/pa.c: Change "can not" to "cannot".
34307 * gimple-ssa-evrp-analyze.c: Likewise.
34308 * ipa-icf.c: Likewise.
34309 * ipa-polymorphic-call.c: Likewise.
34310 * ipa-pure-const.c: Likewise.
34311 * lra-constraints.c: Likewise.
34312 * lra-remat.c: Likewise.
34313 * reload1.c: Likewise.
34314 * reorg.c: Likewise.
34315 * tree-ssa-uninit.c: Likewise.
34317 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34321 * Makefile.in: Mechanically replace "can not" with "cannot".
34322 * alias.c: Likewise.
34323 * builtins.c: Likewise.
34324 * calls.c: Likewise.
34325 * cgraph.c: Likewise.
34326 * cgraph.h: Likewise.
34327 * cgraphclones.c: Likewise.
34328 * cgraphunit.c: Likewise.
34329 * combine-stack-adj.c: Likewise.
34330 * combine.c: Likewise.
34331 * common/config/i386/i386-common.c: Likewise.
34332 * config/aarch64/aarch64.c: Likewise.
34333 * config/alpha/sync.md: Likewise.
34334 * config/arc/arc.c: Likewise.
34335 * config/arc/predicates.md: Likewise.
34336 * config/arm/arm-c.c: Likewise.
34337 * config/arm/arm.c: Likewise.
34338 * config/arm/arm.h: Likewise.
34339 * config/arm/arm.md: Likewise.
34340 * config/arm/cortex-r4f.md: Likewise.
34341 * config/csky/csky.c: Likewise.
34342 * config/csky/csky.h: Likewise.
34343 * config/darwin-f.c: Likewise.
34344 * config/epiphany/epiphany.md: Likewise.
34345 * config/i386/i386.c: Likewise.
34346 * config/i386/sol2.h: Likewise.
34347 * config/m68k/m68k.c: Likewise.
34348 * config/mcore/mcore.h: Likewise.
34349 * config/microblaze/microblaze.md: Likewise.
34350 * config/mips/20kc.md: Likewise.
34351 * config/mips/sb1.md: Likewise.
34352 * config/nds32/nds32.c: Likewise.
34353 * config/nds32/predicates.md: Likewise.
34354 * config/pa/pa.c: Likewise.
34355 * config/rs6000/e300c2c3.md: Likewise.
34356 * config/rs6000/rs6000.c: Likewise.
34357 * config/s390/s390.h: Likewise.
34358 * config/sh/sh.c: Likewise.
34359 * config/sh/sh.md: Likewise.
34360 * config/spu/vmx2spu.h: Likewise.
34361 * cprop.c: Likewise.
34362 * dbxout.c: Likewise.
34363 * df-scan.c: Likewise.
34364 * doc/cfg.texi: Likewise.
34365 * doc/extend.texi: Likewise.
34366 * doc/fragments.texi: Likewise.
34367 * doc/gty.texi: Likewise.
34368 * doc/invoke.texi: Likewise.
34369 * doc/lto.texi: Likewise.
34370 * doc/md.texi: Likewise.
34371 * doc/objc.texi: Likewise.
34372 * doc/rtl.texi: Likewise.
34373 * doc/tm.texi: Likewise.
34375 * emit-rtl.c: Likewise.
34376 * emit-rtl.h: Likewise.
34377 * except.c: Likewise.
34378 * expmed.c: Likewise.
34379 * expr.c: Likewise.
34380 * fold-const.c: Likewise.
34381 * genautomata.c: Likewise.
34382 * gimple-fold.c: Likewise.
34383 * hard-reg-set.h: Likewise.
34384 * ifcvt.c: Likewise.
34385 * ipa-comdats.c: Likewise.
34386 * ipa-cp.c: Likewise.
34387 * ipa-devirt.c: Likewise.
34388 * ipa-fnsummary.c: Likewise.
34389 * ipa-icf.c: Likewise.
34390 * ipa-inline-transform.c: Likewise.
34391 * ipa-inline.c: Likewise.
34392 * ipa-polymorphic-call.c: Likewise.
34393 * ipa-profile.c: Likewise.
34394 * ipa-prop.c: Likewise.
34395 * ipa-pure-const.c: Likewise.
34396 * ipa-reference.c: Likewise.
34397 * ipa-split.c: Likewise.
34398 * ipa-visibility.c: Likewise.
34400 * ira-build.c: Likewise.
34401 * ira-color.c: Likewise.
34402 * ira-conflicts.c: Likewise.
34403 * ira-costs.c: Likewise.
34404 * ira-int.h: Likewise.
34405 * ira-lives.c: Likewise.
34408 * loop-invariant.c: Likewise.
34409 * loop-unroll.c: Likewise.
34410 * lower-subreg.c: Likewise.
34411 * lra-assigns.c: Likewise.
34412 * lra-constraints.c: Likewise.
34413 * lra-eliminations.c: Likewise.
34414 * lra-lives.c: Likewise.
34415 * lra-remat.c: Likewise.
34416 * lra-spills.c: Likewise.
34418 * lto-cgraph.c: Likewise.
34419 * lto-streamer-out.c: Likewise.
34420 * postreload-gcse.c: Likewise.
34421 * predict.c: Likewise.
34422 * profile-count.h: Likewise.
34423 * profile.c: Likewise.
34424 * recog.c: Likewise.
34426 * reload.c: Likewise.
34427 * reload1.c: Likewise.
34428 * reorg.c: Likewise.
34429 * resource.c: Likewise.
34430 * rtl.def: Likewise.
34432 * rtlanal.c: Likewise.
34433 * sched-deps.c: Likewise.
34434 * sched-ebb.c: Likewise.
34435 * sched-rgn.c: Likewise.
34436 * sel-sched-ir.c: Likewise.
34437 * sel-sched.c: Likewise.
34438 * shrink-wrap.c: Likewise.
34439 * simplify-rtx.c: Likewise.
34440 * symtab.c: Likewise.
34441 * target.def: Likewise.
34442 * toplev.c: Likewise.
34443 * tree-call-cdce.c: Likewise.
34444 * tree-cfg.c: Likewise.
34445 * tree-complex.c: Likewise.
34446 * tree-core.h: Likewise.
34447 * tree-eh.c: Likewise.
34448 * tree-inline.c: Likewise.
34449 * tree-loop-distribution.c: Likewise.
34450 * tree-nrv.c: Likewise.
34451 * tree-profile.c: Likewise.
34452 * tree-sra.c: Likewise.
34453 * tree-ssa-alias.c: Likewise.
34454 * tree-ssa-dce.c: Likewise.
34455 * tree-ssa-dom.c: Likewise.
34456 * tree-ssa-forwprop.c: Likewise.
34457 * tree-ssa-loop-im.c: Likewise.
34458 * tree-ssa-loop-ivcanon.c: Likewise.
34459 * tree-ssa-loop-ivopts.c: Likewise.
34460 * tree-ssa-loop-niter.c: Likewise.
34461 * tree-ssa-phionlycprop.c: Likewise.
34462 * tree-ssa-phiopt.c: Likewise.
34463 * tree-ssa-propagate.c: Likewise.
34464 * tree-ssa-threadedge.c: Likewise.
34465 * tree-ssa-threadupdate.c: Likewise.
34466 * tree-ssa-uninit.c: Likewise.
34467 * tree-ssanames.c: Likewise.
34468 * tree-streamer-out.c: Likewise.
34469 * tree.c: Likewise.
34470 * tree.h: Likewise.
34471 * vr-values.c: Likewise.
34473 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34475 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34476 (ix86_split_xorsign): Ditto.
34477 * config/i386/i386.c (ix86_expand_xorsign): New function.
34478 (ix86_split_xorsign): Ditto.
34479 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34480 (xorsign<mode>3): New expander.
34481 (xorsign<mode>3_1): New insn_and_split pattern.
34482 * config/i386/sse.md (xorsign<mode>3): New expander.
34484 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34486 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34487 (*tablejump_sp64): Likewise.
34488 (*tablejump<P:mode>): ...this.
34489 (*call_address_sp32): Merge into...
34490 (*call_address_sp64): Likewise.
34491 (*call_address<P:mode>): ...this.
34492 (*call_symbolic_sp32): Merge into...
34493 (*call_symbolic_sp64): Likewise.
34494 (*call_symbolic<P:mode>): ...this.
34495 (call_value): Remove constraint and add predicate.
34496 (*call_value_address_sp32): Merge into...
34497 (*call_value_address_sp64): Likewise.
34498 (*call_value_address<P:mode>): ...this.
34499 (*call_value_symbolic_sp32): Merge into...
34500 (*call_value_symbolic_sp64): Likewise.
34501 (*call_value_symbolic<P:mode>): ...this.
34502 (*sibcall_symbolic_sp32): Merge into...
34503 (*sibcall_symbolic_sp64): Likewise.
34504 (*sibcall_symbolic<P:mode>): ...this.
34505 (sibcall_value): Remove constraint and add predicate.
34506 (*sibcall_value_symbolic_sp32): Merge into...
34507 (*sibcall_value_symbolic_sp64): Likewise.
34508 (*sibcall_value_symbolic<P:mode>): ...this.
34509 (window_save): Minor tweak.
34510 (*branch_sp32): Merge into...
34511 (*branch_sp64): Likewise.
34512 (*branch<P:mode>): ...this.
34514 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34515 James Clarke <jrtc27@jrtc27.com>
34518 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34519 consistently in TLS address generation and adjust code to the renaming
34520 of patterns. Mark calls to __tls_get_addr as const.
34521 * config/sparc/sparc.md (tgd_hi22): Turn into...
34522 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34523 (tgd_lo10): Turn into...
34524 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34525 (tgd_add32): Merge into...
34526 (tgd_add64): Likewise.
34527 (tgd_add<P:mode>): ...this and use Pmode throughout.
34528 (tldm_hi22): Turn into...
34529 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34530 (tldm_lo10): Turn into...
34531 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34532 (tldm_add32): Merge into...
34533 (tldm_add64): Likewise.
34534 (tldm_add<P:mode>): ...this and use Pmode throughout.
34535 (tldm_call32): Merge into...
34536 (tldm_call64): Likewise.
34537 (tldm_call<P:mode>): ...this and use Pmode throughout.
34538 (tldo_hix22): Turn into...
34539 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34540 (tldo_lox10): Turn into...
34541 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34542 (tldo_add32): Merge into...
34543 (tldo_add64): Likewise.
34544 (tldo_add<P:mode>): ...this and use Pmode throughout.
34545 (tie_hi22): Turn into...
34546 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34547 (tie_lo10): Turn into...
34548 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34549 (tie_ld64): Use DImode throughout.
34550 (tie_add32): Merge into...
34551 (tie_add64): Likewise.
34552 (tie_add<P:mode>): ...this and use Pmode throughout.
34553 (tle_hix22_sp32): Merge into...
34554 (tle_hix22_sp64): Likewise.
34555 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34556 (tle_lox22_sp32): Merge into...
34557 (tle_lox22_sp64): Likewise.
34558 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34559 (*tldo_ldub_sp32): Merge into...
34560 (*tldo_ldub_sp64): Likewise.
34561 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34562 (*tldo_ldub1_sp32): Merge into...
34563 (*tldo_ldub1_sp64): Likewise.
34564 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34565 (*tldo_ldub2_sp32): Merge into...
34566 (*tldo_ldub2_sp64): Likewise.
34567 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34568 (*tldo_ldsb1_sp32): Merge into...
34569 (*tldo_ldsb1_sp64): Likewise.
34570 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34571 (*tldo_ldsb2_sp32): Merge into...
34572 (*tldo_ldsb2_sp64): Likewise.
34573 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34574 (*tldo_ldub3_sp64): Use DImode throughout.
34575 (*tldo_ldsb3_sp64): Likewise.
34576 (*tldo_lduh_sp32): Merge into...
34577 (*tldo_lduh_sp64): Likewise.
34578 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34579 (*tldo_lduh1_sp32): Merge into...
34580 (*tldo_lduh1_sp64): Likewise.
34581 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34582 (*tldo_ldsh1_sp32): Merge into...
34583 (*tldo_ldsh1_sp64): Likewise.
34584 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34585 (*tldo_lduh2_sp64): Use DImode throughout.
34586 (*tldo_ldsh2_sp64): Likewise.
34587 (*tldo_lduw_sp32): Merge into...
34588 (*tldo_lduw_sp64): Likewise.
34589 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34590 (*tldo_lduw1_sp64): Use DImode throughout.
34591 (*tldo_ldsw1_sp64): Likewise.
34592 (*tldo_ldx_sp64): Likewise.
34593 (*tldo_stb_sp32): Merge into...
34594 (*tldo_stb_sp64): Likewise.
34595 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34596 (*tldo_sth_sp32): Merge into...
34597 (*tldo_sth_sp64): Likewise.
34598 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34599 (*tldo_stw_sp32): Merge into...
34600 (*tldo_stw_sp64): Likewise.
34601 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34602 (*tldo_stx_sp64): Use DImode throughout.
34604 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34606 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34607 check configure option to set BTI and Return Address Signing.
34608 * configure.ac: Add --enable-standard-branch-protection and
34609 --disable-standard-branch-protection.
34610 * configure: Regenerated.
34611 * doc/install.texi: Document the same.
34613 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34614 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34616 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34617 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34618 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34620 * config/aarch64/aarch64-bti-insert.c: New file.
34621 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34623 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34625 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34626 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34627 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34628 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34630 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34632 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34633 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34634 Disable bti for -mbranch-protection=none.
34635 (aarch64_handle_standard_branch_protection): Enable bti for
34636 -mbranch-protection=standard.
34637 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34638 -mbranch-protection.
34639 (aarch64_bti_enabled): Check if bti is enabled.
34640 * config/aarch64/aarch64.opt: Declare target variable.
34641 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34643 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34645 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34646 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34647 (aarch64_expand_epilogue): Likewise.
34648 (aarch64_output_mi_thunk): Likewise.
34649 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34650 TAILCALL_ADDR_REGS to x16 and x17.
34651 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34653 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34655 * config/aarch64/aarch64-option-extensions.def: Define
34656 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34657 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34658 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34659 (AARCH64_FL_PREDRES): New.
34660 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34661 AARCH64_FL_PREDRES by default.
34662 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34664 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34666 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34668 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34669 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34670 * doc/invoke.texi: Document ARMv8.5-A.
34672 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34674 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34675 (xorsign<mode>3): Likewise.
34677 2019-01-09 Jelinek <jakub@redhat.com>
34679 PR middle-end/88758
34680 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34681 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34683 PR rtl-optimization/88331
34684 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34685 not currently_expanding_to_rtl.
34687 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34689 * doc/invoke.texi (-Os): Remove trailing spaces.
34690 (-finline-functions): Remove reference to -O2.
34692 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34694 PR rtl-optimization/79593
34695 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34697 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34698 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34700 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34703 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34707 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34708 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34710 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34713 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34714 ix86_avx_u128_mode_entry.
34716 2019-01-08 Martin Liska <mliska@suse.cz>
34718 PR tree-optimization/88753
34719 * tree-switch-conversion.c (switch_conversion::build_one_array):
34720 Come up with local variable constructor. Convert first to
34721 type of constructor values.
34723 2019-01-08 Richard Biener <rguenther@suse.de>
34725 PR tree-optimization/86554
34726 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34727 rpo_avail): Move earlier.
34728 (visit_nary_op): When value-numbering to expressions
34729 with different overflow behavior make sure there's an
34730 available expression on the path.
34732 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34734 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34735 aarch64_parse_branch_protection,
34736 struct aarch64_branch_protect_type,
34737 aarch64_handle_no_branch_protection,
34738 aarch64_handle_standard_branch_protection,
34739 aarch64_validate_mbranch_protection,
34740 aarch64_handle_pac_ret_protection,
34741 aarch64_handle_attr_branch_protection,
34742 accepted_branch_protection_string,
34743 aarch64_pac_ret_subtypes,
34744 aarch64_branch_protect_types,
34745 aarch64_handle_pac_ret_leaf): Define.
34746 (aarch64_override_options_after_change_1, aarch64_override_options):
34747 Add check for accepted_branch_protection_string.
34748 (aarch64_option_save): Save accepted_branch_protection_string.
34749 (aarch64_option_restore): Save accepted_branch_protection_string.
34750 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34751 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34752 msign-return-address.
34753 * doc/invoke.texi: Add mbranch-protection.
34755 2019-01-08 Alan Modra <amodra@gmail.com>
34758 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34759 Delete "unknownp" parameter. Adjust callers. Handle
34760 CONST_INT, PLUS, MINUS, and MULT.
34761 (attr_value_aligned): Renamed from or_attr_value.
34762 (min_attr_value): Return INT_MIN for unhandled rtl case..
34763 (min_fn): ..and translate to INT_MAX here.
34764 (write_length_unit_log): Modify to cope without "unknown".
34765 (write_attr_value): Handle IF_THEN_ELSE.
34767 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34769 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34770 optimization for masked stores.
34772 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34774 PR middle-end/88567
34775 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34776 output vector directly to duplicate_and_interleave instead of
34777 going through a temporary. Postpone insertion of ctor_seq to
34778 the end of the loop.
34780 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34783 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34784 unsigned_p. Handle signed and unsigned overflow correction as
34786 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34788 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34790 (add<mode>3_compareV_imm): Make this callable for expanding.
34791 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34792 aarch64_plus_operand for operand 2.
34793 (subv<GPI:mode>_insn): New insn pattern.
34794 (subv<GPI:mode>_imm): Likewise.
34795 (negv<GPI:mode>3): New expand pattern.
34796 (negv<GPI:mode>_insn): New insn pattern.
34797 (negv<GPI:mode>_cmp_only): Likewise.
34798 (cmpv<GPI:mode>_insn): Likewise.
34799 (subvti4): Use register_operand for operand 1. Update call to
34800 aarch64_expand_subvti.
34801 (usubvti4): Likewise.
34802 (negvti3): New expand pattern.
34803 (negdi_carryout): New insn pattern.
34804 (negvdi_carryinV): New insn pattern.
34805 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34806 version the named version.
34807 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34809 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34811 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34813 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34814 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34815 (sub<mode>3_carryinCV): Delete.
34816 (sub<GPI:mode>3_carryinV): New expand pattern.
34817 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34819 2019-01-07 Richard Biener <rguenther@suse.de>
34821 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34822 of tree_operand_hash.
34824 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34826 PR tree-optimization/88598
34827 * tree.h (single_nonzero_element): Declare.
34828 * tree.c (single_nonzero_element): New function.
34829 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34830 if I is the only nonzero element of CST.
34832 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34834 PR tree-optimization/88598
34835 * tree.h (initializer_each_zero_or_onep): Declare.
34836 * tree.c (initializer_each_zero_or_onep): New function.
34837 (signed_or_unsigned_type_for): Handle float types too.
34838 (unsigned_type_for, signed_type_for): Update comments accordingly.
34839 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34840 x & { 0 or -1, 0 or -1, ... }.
34842 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34844 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34845 with x86_64-pc-linux-gnu.
34847 2019-01-07 Tom de Vries <tdevries@suse.de>
34850 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34852 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34855 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34857 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34858 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34859 TARGET_AVX512F as condition.
34862 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34863 const_not_ok_for_debug_p target hook.
34864 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34865 on UNSPEC and subexpressions thereof if all subexpressions of the
34866 UNSPEC are CONSTANT_P.
34868 PR tree-optimization/88676
34869 * tree-ssa-phiopt.c (two_value_replacement): New function.
34870 (tree_ssa_phiopt_worker): Call it.
34873 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34874 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34877 * tree-vect-generic.c: Include insn-config.h and recog.h.
34878 (expand_vector_piecewise): Add defaulted ret_type argument,
34879 if non-NULL, use that in preference to type for the result type.
34880 (expand_vector_parallel): Formatting fix.
34881 (do_vec_conversion, do_vec_narrowing_conversion,
34882 expand_vector_conversion): New functions.
34883 (expand_vector_operations_1): Call expand_vector_conversion
34884 for VEC_CONVERT ifn calls.
34885 * internal-fn.def (VEC_CONVERT): New internal function.
34886 * internal-fn.c (expand_VEC_CONVERT): New function.
34887 * fold-const-call.c (fold_const_vec_convert): New function.
34888 (fold_const_call): Use it for CFN_VEC_CONVERT.
34889 * doc/extend.texi (__builtin_convertvector): Document.
34891 2019-01-07 Tom de Vries <tdevries@suse.de>
34893 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
34894 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
34895 vector_red_partition, vector_red_sym): New global variables.
34896 (nvptx_option_override): Initialize vector_red_sym.
34897 (nvptx_declare_function_name): Restore red_partition register.
34898 (nvptx_file_end): Emit code to declare the vector reduction variables.
34899 (nvptx_output_red_partition): New function.
34900 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
34901 large vector reductions.
34902 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
34903 (nvptx_init_builtins): Add VECTOR_ADDR.
34904 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
34905 Handle nvptx_expand_shared_addr.
34906 (nvptx_get_shared_red_addr): Add vector argument and handle large
34908 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
34910 (nvptx_goacc_reduction_init): Likewise.
34911 (nvptx_goacc_reduction_fini): Likewise.
34912 (nvptx_goacc_reduction_teardown): Likewise.
34913 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
34914 init,fini,teardown}.
34915 (nvptx_init_axis_predicate): Initialize vector_red_partition.
34916 (nvptx_set_current_function): Init vector_red_partition.
34917 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
34918 (nvptx_red_partition): New insn.
34919 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
34921 2019-01-07 Tom de Vries <tdevries@suse.de>
34924 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
34927 2019-01-07 Tom de Vries <tdevries@suse.de>
34929 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
34930 (nvptx_option_override): Init oacc_bcast_partition.
34931 (nvptx_init_oacc_workers): New function.
34932 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
34933 (nvptx_needs_shared_bcast): New function.
34934 (nvptx_find_par): Generalize to enable vectors to use shared-memory
34935 to propagate state.
34936 (nvptx_shared_propagate): Initialize vector bcast partition and
34937 synchronization state.
34938 (nvptx_single): Generalize to enable vectors to use shared-memory
34939 to propagate state.
34940 (nvptx_process_pars): Likewise.
34941 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
34942 * config/nvptx/nvptx.h (struct machine_function): Add
34943 bcast_partition and sync_bar members.
34945 2019-01-07 Tom de Vries <tdevries@suse.de>
34947 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
34948 (nvptx_apply_dim_limits): New function.
34949 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
34952 2019-01-07 Tom de Vries <tdevries@suse.de>
34954 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
34955 as late as possible.
34957 2019-01-07 Tom de Vries <tdevries@suse.de>
34959 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
34960 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
34961 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
34962 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
34963 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
34965 2019-01-07 Tom de Vries <tdevries@suse.de>
34967 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
34969 2019-01-07 Tom de Vries <tdevries@suse.de>
34971 * omp-offload.c (oacc_get_min_dim): New function.
34972 * omp-offload.h (oacc_get_min_dim): Declare.
34974 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
34977 * config/i386/i386.c (function_value_ms_64): Return small sturct in
34978 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
34980 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34984 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
34986 * ipa-inline.c (edge_badness): Use inlined_time instead of
34987 inline_summaries->get.
34989 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34991 * opts.c (enable_fdo_optimizations): Enable
34992 version-loops-for-strides, loop-interchange, unrol-and-jam
34993 and tree-loop-distribution.
34994 * invoke.texi: Document newly enabled options.
34996 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34998 * doc/invoke.texi (max-inline-insns-small): New parameters.
34999 * ipa-inline.c (want_early_inline_function_p): simplify.
35000 (want_inline_small_function_p): Fix pasto from previous patch;
35001 use max-inline-insns-small bound.
35002 * params.def (max-inline-insns-small): New param.
35003 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35004 variables correctly.
35006 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35008 * doc/invoke.texi: Document max-inline-insns-size,
35009 uninlined-function-insns, uninlined-function-time,
35010 uninlined-thunk-insns and uninlined-thunk-time.
35011 * params.def: Add max-inline-insns-size,
35012 uninlined-function-insns, uninlined-function-time,
35013 uninlined-thunk-insns and uninlined-thunk-time.
35014 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35016 * ipa-inline.c (can_inline_edge_by_limits_p,
35017 want_inline_small_function_p): Use new parameters.
35019 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35021 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35023 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35025 PR middle-end/82564
35027 * expr.c (expand_assignment): For calls returning VLA structures
35028 if to_rtx is not a MEM, force it into a stack temporary.
35031 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35032 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35033 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35034 subexpressions of both operands.
35035 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35036 subrtxes are CONSTANT_P.
35037 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35038 2018-11-09 changes.
35040 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35042 * params.def (hot-bb-count-ws-permille): Set to 990.
35044 2019-01-04 Martin Sebor <msebor@redhat.com>
35047 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35050 2019-01-04 Martin Sebor <msebor@redhat.com>
35053 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35055 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35057 * gdbinit.in: Turn off pagination for the skip commands, restore
35058 it to previous state afterwards.
35060 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35063 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35064 of GET_MODE (opN) as modes of the libcall arguments.
35066 2019-01-04 Jan Beulich <jbeulich@suse.com>
35068 * config/i386/sse.md
35069 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35070 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35071 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35072 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35073 avx512f_vmcmp<mode>3<round_saeonly_name>,
35074 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35075 avx512f_maskcmp<mode>3,
35076 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35077 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35078 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35079 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35080 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35081 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35082 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35083 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35084 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35085 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35086 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35087 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35088 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35089 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35090 avx512cd_maskb_vec_dup<mode>,
35091 avx512cd_maskw_vec_dup<mode>,
35092 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35093 avx512dq_vmfpclass<mode>,
35094 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35097 2019-01-03 Martin Sebor <msebor@redhat.com>
35099 PR tree-optimization/88659
35100 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35102 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35104 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35105 unaligned vsx and avoid lxvd2x/stxvd2x.
35106 (gen_lvx_v4si_move): New function.
35108 2019-01-03 Tom de Vries <tdevries@suse.de>
35110 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35111 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35113 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35115 2019-01-03 Tom de Vries <tdevries@suse.de>
35117 * config/nvptx/nvptx.c (struct offload_attrs): New.
35118 (populate_offload_attrs): New function. Factor mask extraction out of
35119 nvptx_reorg. Add extraction of dimensions.
35120 (nvptx_reorg): Use populate_offload_attrs.
35122 2019-01-03 Tom de Vries <tdevries@suse.de>
35124 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35125 cases for oacc_min_dims_p and routine_p. Add asserts for
35126 oacc_default_dims_p and offload_region_p.
35128 2019-01-03 Tom de Vries <tdevries@suse.de>
35130 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35131 factored out of ...
35132 (nvptx_goacc_validate_dims): ... here.
35134 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35136 PR tree-optimization/85574
35137 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35139 (struct ssa_equip_hash_traits): Declare.
35140 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35142 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35145 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35146 change it to qualified_type.
35148 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35150 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35151 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35153 2019-01-02 Martin Sebor <msebor@redhat.com>
35154 Jeff Law <law@redhat.com>
35156 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35157 (get_range_strlen_tree): Update appropriately.
35159 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35161 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35162 rather than set_range_info.
35163 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35164 maybe_set_strlen_range. Handle potentially boundary crossing
35165 cases more conservatively.
35166 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35167 Call set_strlen_range.
35168 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35170 PR middle-end/88663
35171 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35172 need the flexp argument.
35173 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35174 from calls to get_range_strlen. Update comments. Just update
35175 VAL for an unterminated const char array and let the reset of the
35176 code handle it normally. No longer try to set *flexp. Adjust
35178 (get_range_strlen): Update for the new get_range_strlen API.
35179 (get_maxval_strlen): Similarly.
35180 (gimple_fold_builtin_strlen): Handle update meaning of return value
35181 from get_range_strlen.
35182 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35183 get_range_strlen API.
35185 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35188 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35189 false at WPA time when body was removed.
35191 2019-01-02 Martin Liska <mliska@suse.cz>
35193 PR tree-optimization/88650
35194 * predict.c (set_even_probabilities): Calculate probability
35195 remainer only when really used.
35197 2019-01-02 Richard Biener <rguenther@suse.de>
35199 PR middle-end/88651
35200 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35201 widest_ints when mangling max_stmt_execution results.
35203 2019-01-02 Richard Biener <rguenther@suse.de>
35205 PR tree-optimization/88621
35206 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35207 bitfields when canoncalizing.
35209 2019-01-02 Richard Biener <rguenther@suse.de>
35212 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35213 cost of cheap SSE instruction.
35215 2019-01-02 Richard Biener <rguenther@suse.de>
35218 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35219 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35221 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35222 set after UIDs before splitting them.
35224 2019-01-01 Martin Sebor <msebor@redhat.com>
35225 Jeff Law <law@redhat.com>
35227 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35228 length is optimistic. If it is, then arrange to compute the
35229 conservative length as well.
35231 * gimple-fold.h (get_range_strlen): Update prototype.
35232 * builtins.c (check_access): Update call to get_range_strlen to use
35233 c_strlen_data pointer. Change various variable accesses to instead
35234 pull data from the c_strlen_data structure.
35235 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35236 * calls.c (maybe_warn_nonstring_arg): Likewise.
35237 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35238 minimum length if maximum lengh is unknown.
35239 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35240 that used c_strlen, it's no longer needed. Restructure slightly.
35241 (format_string): Set unlikely range appropriately.
35242 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35244 (get_range_strlen): Accept c_strlen_data pointer for external
35245 call sites as well. Pass through to call to internal get_range_strlen.
35246 Adjust minlen, maxlen and maxbound as needed.
35247 (get_maxval_strlen): Update comments.
35248 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35249 to use c_strlen_data pointer. Change variable accesses to instead
35250 use c_strlen_data data members.
35252 * gimple-fold.c (get_range_strlen): Update prototype.
35253 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35254 local variables. Use pdata to return information to caller.
35255 Update calls to get_range_strlen. Update pdata->maxbound.
35256 (get_range_strlen -- static version): Similarly.
35257 (get_range_strlen -- extern version): Update for internal
35258 get_range_strlen API change. Convert to external data format.
35259 (get_maxval_strlen): Similarly.
35261 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35263 * coverage.c (get_coverage_counts): Use current_function_decl.
35264 * profile.c (read_thunk_profile): New function.
35265 (branch_prob): Add THUNK parameter.
35266 * tree-profile.c (tree_profiling): Handle thunks.
35267 * value-prof.c (init_node_map): Handle thunks.
35268 * value-prof.h (branch_prob): Upate prototype.
35269 (read_thunk_profile): Declare.
35271 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35273 Update copyright years.
35275 * gcc.c (process_command): Update copyright notice dates.
35276 * gcov-dump.c (print_version): Ditto.
35277 * gcov.c (print_version): Ditto.
35278 * gcov-tool.c (print_version): Ditto.
35279 * gengtype.c (create_file): Ditto.
35280 * doc/cpp.texi: Bump @copying's copyright year.
35281 * doc/cppinternals.texi: Ditto.
35282 * doc/gcc.texi: Ditto.
35283 * doc/gccint.texi: Ditto.
35284 * doc/gcov.texi: Ditto.
35285 * doc/install.texi: Ditto.
35286 * doc/invoke.texi: Ditto.
35288 Copyright (C) 2019 Free Software Foundation, Inc.
35290 Copying and distribution of this file, with or without modification,
35291 are permitted in any medium without royalty provided the copyright
35292 notice and this notice are preserved.