1 2019-12-06 Jakub Jelinek <jakub@redhat.com>
3 * common.opt (fprofile-partial-training): Terminate description with
6 2019-12-05 Martin Sebor <msebor@redhat.com>
9 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
10 left uninitialized by get_addr_base_and_unit_offset on failure.
12 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
14 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
15 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
16 (detect_type_change): Likewise.
17 (detect_type_change_ssa): Likewise.
18 (ipa_analyze_virtual_call_uses): Update.
20 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
22 * config/nios2/linux.h (LINK_EH_SPEC): Define.
24 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
26 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
28 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
30 * cgraphclones.c (localize_profile): New function.
31 (cgraph_node::create_clone): Use it for partial profiles.
32 * common.opt (fprofile-partial-training): New flag.
33 * doc/invoke.texi (-fprofile-partial-training): Document.
34 * ipa-cp.c (update_profiling_info): For partial profiles do not
35 set function profile to zero.
36 * profile.c (compute_branch_probabilities): With partial profile
37 watch if edge count is zero and turn all probabilities to guessed.
38 (compute_branch_probabilities): For partial profiles do not apply
39 profile when entry count is zero.
40 * tree-profile.c (tree_profiling): Only do value_profile_transformations
43 2019-12-05 Sudakshina Das <sudi.das@arm.com>
45 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
46 check from if condition.
48 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
50 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
51 and Fortran's optional arguments, unconditionally add the is-present
52 condition before the libgomp call.
54 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
57 * tree-core.h (OEP_BITWISE): New flag.
58 * fold-const.c (operand_compare::operand_equal_p): Handle it.
59 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
61 2019-12-05 Richard Biener <rguenther@suse.de>
64 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
65 heuristics on what don't care element to choose.
66 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
68 2019-12-05 Martin Liska <mliska@suse.cz>
71 * coverage.c (build_gcov_exit_decl): Remove superfluous
74 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
76 * config/msp430/msp430.md (cbranch<mode>4): Use
77 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
78 dest operand of CMP instruction.
79 (cbranchpsi4_real): Likewise.
80 (cbranchqi4_real): Likewise.
81 (cbranchhi4_real): Likewise.
82 (cbranchpsi4_reversed): Likewise.
83 (cbranchqi4_reversed): Likewise.
84 (cbranchhi4_reversed): Likewise.
86 2019-12-05 Richard Biener <rguenther@suse.de>
88 PR tree-optimization/92803
89 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
90 invariant vector construction.
92 2019-12-05 Martin Liska <mliska@suse.cz>
95 * coverage.c (coverage_init): Mangle full path
96 only when -fprofile-dir is used.
98 2019-12-05 Jakub Jelinek <jakub@redhat.com>
101 * config/i386/i386.md (movstrict<mode>): Move test for
102 TARGET_PARTIAL_REG_STALL and not optimizing for size from
103 expander's condition to the body - FAIL; in that case.
105 2019-12-03 Martin Sebor <msebor@redhat.com>
108 * builtins.c (gimple_call_alloc_size): New function.
109 (compute_objsize): Add argument. Call gimple_call_alloc_size.
110 Handle variable offsets and indices.
111 * builtins.h (gimple_call_alloc_size): Declare.
112 (compute_objsize): Add argument.
113 * gcc/gimple-ssa-warn-restrict.c: Remove assertions.
114 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
116 2019-12-04 Julian Brown <julian@codesourcery.com>
118 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
120 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
123 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
125 (altivec_overloaded_builtins): Move to rs6000-call.c.
126 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
128 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
129 (altivec_overloaded_builtins): Moved from rs6000-c.c.
130 (rs6000_common_init_builtins): Do no define builtins that overload
131 builtins that have been disabled.
133 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
135 * config/arm/arm.c (arm_option_override_internal):
136 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
138 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
140 * config/aarch64/aarch64.c
141 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
142 (thunderx_tunings): Likewise.
143 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
144 (thunderx2t99_tunings): Likewise.
145 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
146 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
148 2019-12-04 Richard Biener <rguenther@suse.de>
150 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
151 empty CTOR and memset partial-def registering. Take advantage
152 of fancy offset analysis in memset handling.
154 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
156 * fold-const.c (native_encode_vector_part): Handle
157 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
158 (native_decode_vector_tree): Delete, moving the bulk of the code to...
159 (native_interpret_vector_part): ...this new function. Use a pointer
160 and length instead of a vec<> and start index.
161 (native_interpret_vector): Use native_interpret_vector_part.
162 (fold_view_convert_vector_encoding): Likewise.
164 2019-12-04 Richard Biener <rguenther@suse.de>
166 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
167 non-constant defs in the most trivial way.
168 (vn_reference_lookup_3): Also push down SSA partial defs.
170 2019-12-04 Martin Liska <mliska@suse.cz>
172 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
173 Initialize count of newly created BB.
175 2019-12-04 Jakub Jelinek <jakub@redhat.com>
177 PR tree-optimization/92734
178 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
179 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
181 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
184 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
185 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
187 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
189 * ipa-fnsummary.c: Include tree-into-ssa.h.
190 (compute_fn_summary): Call update_ssa.
192 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
194 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
195 is set only for symbol in comdat group.
196 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
198 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
200 * cgraph.c: Include tree-into-ssa.h
201 (cgraph_node::get_body): Call update_ssa.
202 * cgraphunit.c (cgraph_node::expand): Likewise.
203 * lto-streamer-in.c (input_function): Do not call update_ssa.
205 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
207 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
208 an array element size if array_element_size is already an invariant.
209 Similarly don't gimplify and install a field offset if
210 component_ref_field_offset is already an invariant.
212 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
214 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
215 with POLY_INT_CST size is made to a fixed-size object, force the
216 object to live in memory.
218 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
220 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
223 2019-12-03 Richard Biener <rguenther@suse.de>
225 PR tree-optimization/92758
226 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
227 operation on uniform vectors.
229 2019-12-03 Richard Biener <rguenther@suse.de>
231 PR tree-optimization/92645
232 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
233 from or to a properly aligned register variable.
235 2019-12-03 Matthias Klose <doko@ubuntu.com>
237 * Makefile.in (SOURCES): Add doc/lto-dump.1.
238 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
239 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
241 2019-12-03 Richard Biener <rguenther@suse.de>
243 PR tree-optimization/92751
244 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
245 when a clobber ends up in the partial-def vector.
246 (vn_reference_lookup_3): Let clobbers be handled by the
247 assignment from CTOR handling.
249 2019-12-03 Jakub Jelinek <jakub@redhat.com>
251 PR tree-optimization/92734
252 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
253 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
256 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
257 Jakub Jelinek <jakub@redhat.com>
260 * config/i386/i386.md (peephole2 for *swap<mode>): Use
261 general_reg_operand predicates instead of register_operand.
263 2019-12-03 Richard Biener <rguenther@suse.de>
265 PR tree-optimization/92645
266 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
267 a full def of a vector via a BIT_INSERT_EXPR.
269 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
271 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
273 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
276 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
279 * fold-const.c (fold_convertible_p): Check vector types more
282 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
284 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
285 (aarch64_expand_mov_immediate): Use it when attempting to measure
286 the length of an SVE vector.
287 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
290 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
292 * config/aarch64/aarch64-sve-builtins.h
293 (gimple_folder::force_vector): Declare.
294 * config/aarch64/aarch64-sve-builtins.cc
295 (gimple_folder::force_vector): New function.
296 * config/aarch64/aarch64-sve-builtins-base.cc
297 (svcmp_impl::fold): Likewise.
298 (svdup_impl::fold): Handle svdup_z too.
300 2019-12-02 Martin Liska <mliska@suse.cz>
302 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
304 (debug_tree_odr_name): New.
305 * ipa-utils.h (get_odr_name_for_type): New.
307 2019-12-02 Richard Biener <rguenther@suse.de>
309 PR tree-optimization/92742
310 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
311 touch the def-type but verify it is consistent with the
314 2019-12-02 Jakub Jelinek <jakub@redhat.com>
316 PR tree-optimization/92712
317 * match.pd ((A * B) +- A -> (B +- 1) * A,
318 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
319 even when we don't know anything about range of A, but do know
320 something about range of B and the simplification won't introduce
323 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
326 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
327 (ipa-cp-min-recursive-probability): Likewise.
328 * params.opt (ipa-cp-max-recursive-depth): New.
329 (ipa-cp-min-recursive-probability): Likewise.
330 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
332 (self_recursively_generated_p): New function.
333 (get_val_across_arith_op): Likewise.
334 (propagate_vals_across_arith_jfunc): Add constant propagation for
335 self-recursive function.
336 (incorporate_penalties): Do not penalize pure self-recursive function.
337 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
338 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
339 (get_info_about_necessary_edges): Relax hotness check for edge to
340 self-recursive function.
341 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
343 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
347 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
348 objects of flexible types to be small if they have internal linkage
349 or are declared extern.
350 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
351 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
352 instead of the size of the object initializer.
353 * tree.c (flexible_array_type_p): Move from C front end, and
354 generalize to handle fields in non-C structures.
355 * tree.h (flexible_array_type_p): Declare.
357 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
359 * profile-count.h (profile_count::operator<): Use IPA value for
361 (profile_count::operator>): Likewise.
362 (profile_count::operator<=): Likewise.
363 (profile_count::operator>=): Likewise.
364 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
366 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
368 * ipa-inline.c (compute_max_insns): Return int64_t.
369 (inline_small_functions): Simplify.
371 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
373 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
376 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
378 * cgraph.h (symtab_node): Add symver flag.
379 * cgraphunit.c (process_symver_attribute): New.
380 (process_common_attributes): Use process_symver_attribute.
381 * lto-cgraph.c (lto_output_node): Stream symver.
382 (lto_output_varpool_node): Stream symver.
383 (input_overwrite_node): Stream symver.
384 (input_varpool_node): Stream symver.
385 * output.h (do_assemble_symver): Decalre.
386 * symtab.c (symtab_node::dump_base): Dump symver.
387 (symtab_node::verify_base): Verify symver.
388 (symtab_node::resolve_alias): Handle symver.
389 * varasm.c (do_assemble_symver): New function.
390 * varpool.c (varpool_node::assemble_aliases): Use it.
391 * doc/extend.texi: (symver attribute): Document.
392 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
394 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
396 * target.h (type_context_kind): New enum.
397 (verify_type_context): Declare.
398 * target.def (verify_type_context): New target hook.
399 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
400 * doc/tm.texi: Regenerate.
401 * tree.c (verify_type_context): New function.
402 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
404 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
406 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
407 (TARGET_VERIFY_TYPE_CONTEXT): Define.
409 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
411 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
412 * cgraph.h (cgraph_node): Add unit_id and
413 merged_extern_inline.
414 (symbol_table): Add max_unit.
415 (symbol_table::symbol_table): Initialize it.
416 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
417 merged_comdat, merged_extern_inline.
418 (cgraph_node::create_clone): Likewise.
419 (cgraph_node::create_version_clone): Likewise.
420 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
422 * ipa-fnsummary.h (cross_module_call_p): New inline function.
423 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
424 * ipa-inline.c (inline_small_functions): Likewise.
425 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
426 copy merged_comdat and merged_extern_inline.
427 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
428 merged_extern_inline and unit_id.
429 (input_overwrite_node): Stream in these.
430 (input_cgraph_1): Set unit_base.
431 * lto-streamer.h (lto_file_decl_data): Add unit_base.
432 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
434 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
436 * gcc.c (process_command): Only warn about an ineffective `-x'
437 option if any input files have actually been supplied.
439 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
441 * doc/install.texi (Options specification): Remove the list of
442 target library subdirectories supporting
443 `--enable-version-specific-runtime-libs'. Document defaults for
446 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
448 PR rtl-optimization/92283
449 * lra.c (lra): Update reg notes after inheritance sub-pass and
450 before constraint sub-pass.
452 2019-11-29 Richard Biener <rguenther@suse.de>
454 PR tree-optimization/91003
455 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
456 operand number, avoid handling the non-condition operands of
457 COND_EXPRs as comparisons.
458 (vect_get_constant_vectors): Pass down the operand number.
459 (vect_get_slp_defs): Likewise.
461 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
463 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
464 generic_expr_could_trap_p to check if the condition of COND_EXPR or
465 VEC_COND_EXPR can trap.
467 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
469 PR tree-optimization/92677
470 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
471 to zero when dissolving a group of strided accesses.
473 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
475 PR tree-optimization/92596
476 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
478 (vectorizable_operation): Likewise, instead of relying on
479 vect_get_mask_type_for_stmt to do this.
480 (vect_get_vector_types_for_stmt): Always return a vector type
481 immediately, rather than deferring the choice for boolean results.
482 Use a vector mask type instead of a normal vector if
483 vect_use_mask_type_p.
484 (vect_get_mask_type_for_stmt): Delete.
485 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
486 mask_producers argument and special boolean_type_node handling.
487 (vect_determine_vf_for_stmt): Remove mask_producers argument and
488 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
489 (vect_determine_vectorization_factor): Update call accordingly.
490 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
491 boolean_type_node handling.
492 (vect_slp_analyze_node_operations_1): Likewise.
494 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
496 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
497 (vect_use_mask_type_p): New function.
498 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
499 mask precision to the pattern statement.
500 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
501 and use it to initialize the new stmt's mask precision.
502 (search_type_for_mask_1): Delete.
503 (search_type_for_mask): Replace with...
504 (integer_type_for_mask): ...this new function. Use the information
505 cached in the stmt_vec_info.
506 (vect_recog_bool_pattern): Update accordingly.
507 (build_mask_conversion): Pass the scalar type associated with the
508 mask type to append_pattern_def_seq.
509 (vect_recog_mask_conversion_pattern): Likewise. Call
510 integer_type_for_mask instead of search_type_for_mask.
511 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
512 of search_type_for_mask.
513 (possible_vector_mask_operation_p): New function.
514 (vect_determine_mask_precision): Likewise.
515 (vect_determine_stmt_precisions): Call it.
517 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
519 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
520 the slp_tree parameter with a group size parameter.
521 (vect_get_mask_type_for_stmt): Likewise.
522 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
523 (vect_get_mask_type_for_stmt): Likewise.
524 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
527 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
529 * tree-vect-stmts.c (vectorizable_operation): Punt early
530 on codes that are handled elsewhere.
532 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
534 * doc/sourcebuild.texi (vect_bool_cmp): Document.
535 * tree-vect-patterns.c (search_type_for_mask_1): If neither
536 operand to a boolean comparison is a natural vector mask,
537 handle both operands like normal integers instead.
539 2019-11-29 Richard Biener <rguenther@suse.de>
541 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
542 out early for too large objects.
544 2019-11-29 Martin Jambor <mjambor@suse.cz>
547 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
548 the summary only if the summary exists.
549 (find_more_scalar_values_for_callers_subset): Check node_dead in
550 the summary only if the summary exists.
551 (ipcp_store_bits_results): Ignore nodes without lattices.
552 (ipcp_store_vr_results): Likewise.
553 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
554 header files required by them.
555 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
557 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
559 PR tree-optimization/92710
560 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
561 vector mask arguments.
563 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
565 * profile-count.c (profile_count::to_cgraph_frequency,
566 profile_count::to_sreal_scale): Check for compaibility of counts.
567 * profile-count.h (compatible_p): Make public; add checking for
568 global0 versus global types.
569 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
571 2019-11-29 Richard Biener <rguenther@suse.de>
573 PR tree-optimization/92715
574 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
575 out for uniform vectors and source vectors with less elements
576 than the destination.
578 2019-11-29 Martin Liska <mliska@suse.cz>
581 * ipa-devirt.c (types_same_for_odr): Check for existence
584 2019-11-29 Richard Biener <rguenther@suse.de>
586 PR tree-optimization/92704
587 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
588 in loops performing only loads.
590 2019-11-29 Julian Brown <julian@codesourcery.com>
592 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
593 BT_DFLOAT128_PTR) Remove.
594 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
595 TI_DFLOAT128_PTR_TYPE): Remove.
596 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
597 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
598 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
599 dfloat128_ptr_type_node): Remove macros.
601 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
603 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
605 (*movdi_internal64): Ditto.
607 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
610 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
611 indexed_or_indirect_operand to be memory_operand.
612 (bswap<mode>2_store for HSI): Ditto.
613 (bswapdi2_load): Ditto.
614 (bswapdi2_store): Ditto.
616 2019-11-28 Martin Liska <mliska@suse.cz>
619 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
620 headers for translation.
622 2019-11-28 Martin Liska <mliska@suse.cz>
625 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
628 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
630 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
633 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
635 * profile-count.c (profile_count::combine_with_ipa_count): Return
636 uninitialized count if called on ininitialized count.
638 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
640 * ipa-inline-transform.c (inline_transform): Scale profile before
643 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
645 * profile-count.h (profile_count::max): Work on profiles of different
647 (profile_count::apply_scale): Be sure that ret is not local or global0
648 type if num is global.
650 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
652 * profile-count.h (profile_count::max): Work on profiles of different
654 (profile_count::apply_scale): Be sure that ret is not local or global0
655 type if num is global.
657 2019-11-28 Martin Jambor <mjambor@suse.cz>
660 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
662 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
663 Removed trailig whitespace.
665 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
667 * profile-count.h (profile_count::combine_with_ipa_count_within):
669 * profile-count.c (profile_count::combine_with_ipa_count_within):
671 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
674 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
676 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
677 of counters are done same way.
679 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
681 * ipa-cp.c (update_profiling_info): Fix scaling.
683 2019-11-28 Richard Biener <rguenther@suse.de>
685 PR tree-optimization/92645
686 * tree-inline.c (remap_gimple_stmt): When the return value
687 is not wanted, elide GIMPLE_RETURN.
689 2019-11-28 Richard Biener <rguenther@suse.de>
691 PR tree-optimization/92645
692 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
693 conversions inside a mode class. Remove restriction on
694 preserving the element size.
695 (simplify_vector_constructor): Deal with the above and for
696 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
697 and VEC_PACK_TRUNC_EXPR.
699 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
701 Must use push insn to pass varargs arguments of DFmode because
702 otherwise the middle-end generates wrong code.
705 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
707 2019-11-28 Jakub Jelinek <jakub@redhat.com>
709 PR tree-optimization/92691
710 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
712 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
713 calls, return !handle_printf_call rather than always returning true.
714 (check_and_optimize_stmt): Describe return value meaning in function
715 comment. Formatting fix.
717 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
719 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
720 combination of globa0 and global counters..
722 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
725 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
726 by VECTOR_UNIT_NONE_P instead.
728 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
730 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
731 Refine VF to VF_AVX512VL.
733 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
735 * config/rs6000/rs6000.md (movsi_internal): Reformat.
736 (movdi_internal64): Reformat.
738 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
741 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
742 builtin if we don't have an actual type.
743 (builtin_function_type): If the builtin function uses a DFP type
744 and decimal float has been disabled, then return NULL_TREE.
746 2019-11-27 Jakub Jelinek <jakub@redhat.com>
748 PR rtl-optimization/92510
749 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
750 of comparison into a comparison with different mode if both imode and
751 omode are scalar integral modes.
753 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
755 PR rtl-optimization/90007
756 * recog.c (constrain_operands): Permit hard registers too for
757 memory when LRA is used.
759 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
761 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
762 between Coldfire and regular m68k.
763 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
765 2019-11-27 Richard Biener <rguenther@suse.de>
767 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
768 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
769 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
770 * optabs-tree.c (supportable_convert_operation): Do not call
771 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
772 * optabs-tree.h (supportable_convert_operation): Adjust.
773 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
774 * doc/tm.texi: Regenerate.
775 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
776 * tree-vect-generic.c (expand_vector_conversion): Likewise.
777 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
778 unused decl parameter and adjust.
779 (vect_create_vectorized_promotion_stmts): Likewise.
780 (vectorizable_conversion): Adjust.
782 2019-11-27 Richard Biener <rguenther@suse.de>
784 PR tree-optimization/92690
785 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
786 converting elements not originally converted.
788 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
791 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
792 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
793 mpfr_rnd_t instead of mp_rnd_t.
794 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
795 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
796 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
797 Use mpfr_exp_t instead of mp_exp_t.
798 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
799 MPFR_RNDx instead of GMP_RNDx.
800 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
801 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
802 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
803 of mp_rnd_t and remove MPFR_RNDx poisoning.
804 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
806 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
808 PR tree-optimization/91790
809 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
810 DR for vect_setup_realignment when first_stmt_info is different
811 from first_stmt_info_for_drptr.
813 2019-11-27 Richard Biener <rguenther@suse.de>
815 PR tree-optimization/92645
816 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
817 CTORs with just a subset of the original vectors.
819 2019-11-27 Richard Biener <rguenther@suse.de>
822 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
823 edges and instead record blocks in bitmap.
824 (gimple_expand_calls_inline): Adjust.
825 (fold_marked_statements): Delay EH cleanup until all folding is
827 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
830 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
832 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
834 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
837 2019-11-27 Jakub Jelinek <jakub@redhat.com>
840 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
842 2019-11-26 Martin Sebor <msebor@redhat.com>
844 PR tree-optimization/92683
845 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
846 inadvertently removed in a previous change. Rename local variable
849 2019-11-26 Richard Biener <rguenther@suse.de>
852 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
855 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
857 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
859 2019-11-26 Jakub Jelinek <jakub@redhat.com>
861 PR tree-optimization/92644
862 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
863 next to INTEGER_CST checks.
865 2019-11-26 Richard Biener <rguenther@suse.de>
867 PR tree-optimization/92645
868 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
869 do not build the operation from scalars if the operand is.
871 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
873 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
874 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
877 2019-11-25 Martin Liska <mliska@suse.cz>
879 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
880 up used dump message.
882 2019-11-25 Martin Liska <mliska@suse.cz>
885 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
886 too strict checking assert.
888 2019-11-25 Joseph Myers <joseph@codesourcery.com>
891 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
892 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
893 error_mark_node if corresponding global tree node is NULL.
894 * tree.c (build_common_tree_nodes): Do not initialize
895 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
896 decimal floating-point not supported.
898 2019-11-25 Joseph Myers <joseph@codesourcery.com>
900 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
903 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
905 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
906 Replace code for non-CONST_INT constants with gcc_unreachable.
907 * config/m68k/m68k.md (cbranchdi): Don't generate individual
909 (CMPMODE): New mode_iterator.
910 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
912 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
914 (cmp<mode>_68881): Remove 'F' constraint from first comparison
916 (bit test insns patterns): Use nonimmediate_operand, not
917 register_operand, for source operands that allow memory in
919 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
920 Use register_operand, not nonimmediate_operand, for the
922 (DBCC): New mode_iterator.
923 (dbcc peepholes): Use it to reduce duplication.
924 (trap): Use const_true_rtx, not const1_rtx.
925 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
926 from m68k_subword_comparison_operand and changed to handle
930 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
932 (m68k_init_cc): New declaration.
933 (m68k_output_compare_di, m68k_output_compare_si)
934 (m68k_output_compare_hi, m68k_output_compare_qi)
935 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
936 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
937 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
938 m68k_output_branch_float, m68k_output_branch_float_rev):
940 (valid_dbcc_comparison_p_2, flags_in_68881)
941 (output_btst): Remove declaration.
942 * config/m68k/m68k.c (INCLDUE_STRING): Define.
943 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
944 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
945 (flags_compare_op0, flags_compare_op1, flags_operand1,
946 flags_operand2, flags_valid): New static variables.
947 (m68k_find_flags_value, m68k_init_cc): New functions.
948 (handle_flags_for_move, m68k_asm_final_postscan_insn,
949 remember_compare_flags): New static functions.
950 (output_dbcc_and_branch): New argument CODE. Use it, and add
951 PLUS and MINUS to the possible codes. All callers changed.
952 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
953 and INSN arguments, add CODE arg. Return the comparison code
954 to use. All callers changed. Use CODE instead of
955 next_insn_tests_no_inequality, and replace cc_status management
956 with changing the return code.
957 (m68k_rtx_costs): Instead of testing for COMPARE, test for
958 RTX_COMPARE or RTX_COMM_COMPARE.
959 (output_move_simode, output_move_qimode): Call
960 handle_flags_for_move.
961 (notice_update_cc): Delete function.
962 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
963 m68k_output_compare_hi, m68k_output_compare_qi,
964 m68k_output_compare_fp, m68k_output_branch_integer,
965 m68k_output_branch_integer_rev, m68k_output_scc,
966 m68k_output_branch_float, m68k_output_branch_float_rev,
967 m68k_output_scc_float): New functions.
968 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
969 once at the start, and set flags_valid and flags_operand1 if the
971 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
972 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
974 (CC_STATUS_INIT): Define.
975 * config/m68k/m68k.md (flags_valid): New define_attr.
976 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
977 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
978 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
979 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
980 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
981 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
982 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
983 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
984 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
985 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
986 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
987 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
988 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
989 ctrapqi4, conditional_trap): Delete patterns.
990 (cbranchdi4_insn): New pattern.
991 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
992 test high part only. When testing EQ or NE, generate beq0_di
993 and bne0_di patterns directly.
994 (cstoredi4): When testing LT or GE, test high part only.
995 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
997 (scc0_constraints, cmp1_constraints, cmp2_constraints,
998 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
999 cmp2_cf_predicate): New define_mode_attrs.
1000 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1001 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1002 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1004 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1005 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1006 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1008 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1009 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1011 (BTST): New define_mode_iterator.
1012 (btst_predicate, btst_constraint, btst_range): New
1014 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1016 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1017 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1018 patterns): Set attr "flags_valid".
1019 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1020 management. Set attr "flags_valid".
1021 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1022 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1023 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1024 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1025 manual CC_STATUS management.
1026 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1027 unnamed strict_lowpart subhi and subqi patterns): Set attr
1029 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1030 Remove code to operate on address regs and assert the case
1032 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1033 manual CC_STATUS_INIT.
1034 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1035 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1036 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1037 one_cmplqi2, unnamed strict_lowpart patterns
1038 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1039 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1040 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1041 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1043 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1044 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1045 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1046 unnamed strict_low_part patterns for HI and
1047 QI versions): Set attr "flags_valid".
1048 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1049 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1050 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1051 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1052 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1053 (various unnamed peepholes): Adjust compare/branch sequences
1054 for new cbranch patterns.
1055 (dbcc peepholes): Likewise, and output the comparison here
1057 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1058 (fp_src_operand): Allow constant zero.
1059 (address_reg_operand): New predicate.
1061 * rtl.h (inequality_comparisons_p): Remove declaration.
1062 * recog.h (next_insn_tests_no_inequality): Likewise.
1063 * rtlanal.c (inequality_comparisons_p): Delete function.
1064 * recog.c (next_insn_tests_no_inequality): Likewise.
1066 2019-11-25 Richard Biener <rguenther@suse.de>
1068 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1069 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1070 properly re-building the visited hash-map for each lane.
1072 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1074 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1075 gcn_md_reorg): Remove unused variables.
1076 (gcn_emutls_var_init): Add missing (but unreachable) return
1078 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1079 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1080 an uninitialized variable.
1082 2019-11-25 Martin Jambor <mjambor@suse.cz>
1085 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1086 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1087 (cgraph_materialize_clone): Move removel from clone tree to the
1088 the new method and use it instead.
1089 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1090 bodies of clones, also remove it from the clone tree.
1092 2019-11-25 Martin Jambor <mjambor@suse.cz>
1095 * ipa-sra.c (process_isra_node_results): Put the new node to the
1096 same comdat group as the original node.
1098 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1100 Build double32 / long-double32 multilibs if needed.
1104 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1105 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1106 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1107 tm_defines and pass to genmultilib.awk.
1108 * config/avr/genmultilib.awk: Use these variables to add double32
1109 and / or long-double32 multilib(s) as needed.
1110 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1112 2019-11-25 Richard Biener <rguenther@suse.de>
1114 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1115 loop body, defaulted to NULL.
1116 (single_likely_exit): Add exit vector argument
1117 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1118 (number_of_iterations_exit): Likewise.
1119 (number_of_iterations_exit_assumptions): Likewise.
1120 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1122 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1123 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1124 Compute exit vector around call to single_likely_exit.
1125 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1126 loop body to loop_only_exit_p.
1127 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1129 (number_of_iterations_exit_assumptions): Get loop body from caller
1131 (number_of_iterations_exit): Pass through new loop body arg.
1132 (infer_loop_bounds_from_undefined): Get loop body from caller.
1133 (estimate_numbers_of_iterations): Compute loop body once.
1135 2019-11-25 Richard Biener <rguenther@suse.de>
1137 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1138 auto_bb_flag instead of an sbitmap for visited handling.
1140 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1142 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1144 (vector_fp_comparison_complex): Likewise.
1145 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1147 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1149 (vector_lt<mode> for VEC_F): Refactor with
1150 vector_fp_comparison_simple.
1151 (vector_le<mode> for VEC_F): Likewise.
1152 (vector_unge<mode> for VEC_F): Likewise.
1153 (vector_unle<mode> for VEC_F): Likewise.
1154 (vector_ne<mode> for VEC_F): Likewise.
1155 (vector_ungt<mode> for VEC_F): Likewise.
1156 (vector_unlt<mode> for VEC_F): Likewise.
1157 (vector_ltgt<mode> for VEC_F): Refactor with
1158 vector_fp_comparison_complex.
1159 (vector_ordered<mode> for VEC_F): Likewise.
1160 (vector_uneq<mode> for VEC_F): Likewise.
1161 (vector_unordered<mode> for VEC_F): Likewise.
1163 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1165 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1166 COMPARE, representing an overflow detection.
1168 * combine.c (combine_instructions): Record costs for jumps.
1170 * combine.c (can_combine_p): Allow autoinc in jumps.
1172 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1174 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1175 * doc/invoke.texi (max-inline-insns-single-O2,
1176 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1177 early-inlining-insns-O2): Remove documentation.
1178 * ipa-fnsummary.c (analyze_function_body,
1179 compute_fn_summary): Use opt_for_fn when accessing parameters.
1180 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1181 inline_insns_auto, can_inline_edge_by_limits_p,
1182 want_early_inline_function_p, big_speedup_p,
1183 want_inline_small_function_p, want_inline_self_recursive_call_p,
1184 recursive_inlining, compute_max_insns, inline_small_functions):
1186 * opts.c (default_options): Add -O3 defaults for
1187 OPT__param_early_inlining_insns_,
1188 OPT__param_inline_heuristics_hint_percent_,
1189 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1190 * params.opt (-param=early-inlining-insns-O2=,
1191 -param=inline-heuristics-hint-percent-O2=,
1192 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1193 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1194 -param=inline-min-speedup=, -param=inline-unit-growth=,
1195 -param=large-function-growth=, -param=large-stack-frame=,
1196 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1197 -param=max-inline-insns-recursive=,
1198 -param=max-inline-insns-recursive-auto=,
1199 -param=max-inline-insns-single=,
1200 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1201 -param=max-inline-recursive-depth=,
1202 -param=max-inline-recursive-depth-auto=,
1203 -param=min-inline-recursive-probability=,
1204 -param=partial-inlining-entry-probability=,
1205 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1206 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1209 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1211 * ipa-fnsummary.c: Fix comment typos.
1212 * ipa-ref.h: Likewise.
1213 * ipa-predicate.h: Likewise.
1214 * ipa-split.c: Likewise.
1215 * ipa-inline-analysis.c: Likewise.
1216 * ipa-predicate.c: Likewise.
1217 * ipa-devirt.c: Likewise.
1218 * ipa-icf.h: Likewise.
1219 * profile-count.c: Likewise.
1220 * ipa-icf.c: Likewise.
1221 (sem_function::equals_wpa): Fix typos in dump messages.
1222 * ipa-icf-gimple.h: Fix comment typos.
1223 * ipa-inline-transform.c: Likewise.
1224 * ipa-polymorphic-call.c: Likewise.
1225 * ipa-fnsummary.h: Likewise.
1226 * ipa-inline.c: Likewise.
1227 (dump_inline_stats): Fix typo in debug dump message.
1228 * profile-count.h: Fix comment typos.
1231 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1232 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1233 register_operand, force x into register before storing it into dest.
1237 * doc/extend.texi (attribute access): Fix a typo.
1239 PR rtl-optimization/92610
1240 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1241 cse_cfg_altered is set, even when tem is 0.
1242 (rest_of_handle_cse_after_global_opts): Likewise.
1244 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1247 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1248 tree_hash): Move to ...
1249 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1250 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1252 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1254 PR tree-optimization/92618
1255 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1256 containing the auto_vec and a tree.
1257 (undistribute_bitref_for_vector): Handle the case when element type
1258 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1261 2019-11-22 Martin Sebor <msebor@redhat.com>
1264 * attribs.h (struct attr_access): New.
1265 * attribs.c (decl_attributes): Add an informational note.
1266 * builtins.c (check_access): Make extern. Consistently set no-warning
1267 after issuing a warning. Handle calls through function pointers. Set
1269 * builtins.h (check_access): Declare.
1270 * calls.c (rdwr_access_hash): New type.
1272 (init_attr_rdwr_indices): New function.
1273 (maybe_warn_rdwr_sizes): Same.
1274 (initialize_argument_information): Call init_attr_rdwr_indices.
1275 Call maybe_warn_rdwr_sizes.
1276 (get_size_range): Avoid null argument.
1277 * doc/extend.texi (attribute access): Document new attribute.
1279 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1281 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1282 (ACC_LDS_SIZE): Define.
1283 (OTHER_LDS_SIZE): Define.
1284 (LDS_SIZE): Redefine using above.
1285 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1287 2019-11-22 Martin Sebor <msebor@redhat.com>
1290 * builtins.c (check_nul_terminated_array): New function.
1291 (fold_builtin_0): Remove declaration.
1292 (fold_builtin_1): Same.
1293 (fold_builtin_2): Same.
1294 (fold_builtin_3): Same.
1295 (fold_builtin_strpbrk): Add argument.
1296 (fold_builtin_strspn): Same.
1297 (fold_builtin_strcspn): Same.
1298 (expand_builtin_strcat): Call it. Remove unused argument.
1299 (expand_builtin_stpncpy): Same.
1300 (expand_builtin_strncat): Same.
1301 (expand_builtin_strncpy): Same. Adjust indentation.
1302 (expand_builtin_strcmp): Same.
1303 (expand_builtin_strncmp): Same.
1304 (expand_builtin_fork_or_exec): Same.
1305 (expand_builtin): Handle more built-ins.
1306 (fold_builtin_2): Add argument.
1307 (fold_builtin_n): Make static. Add argument.
1308 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1309 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1310 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1311 (fold_call_stmt): Pass new argument to fold_builtin_n.
1312 * builtins.h: Correct a comment.
1313 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1314 check_nul_terminated_array.
1315 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1316 check_nul_terminated_array.
1317 (handle_builtin_strchr): Same.
1318 (handle_builtin_string_cmp): Same.
1320 2019-11-22 Martin Sebor <msebor@redhat.com>
1322 PR tree-optimization/92501
1323 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1324 handle unterminated arrays. Rename local variables for clarity.
1326 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1328 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1329 granulated_sgprs according to architecture.
1331 2019-11-22 Jan Hubicka <jh@suse.cz>
1333 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1334 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1335 (memory_block_pool::reduce_free_list): ... this one.
1336 (memory_block_pool::trim): New static function.
1337 * memory-block.h (memory_block_pool::freelist_size): New constant
1338 (memory_block_pool::clear_free_list): Rename to ...
1339 (memory_block_pool::reduce_free_list): ... this one.
1340 (memory_block_pool::trim): Declare.
1342 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1344 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1346 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1348 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1350 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1352 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1353 (bic_cmp0_noout): New pattern.
1354 (bic_cmp0): Likewise.
1355 (neg_scc_insn): Remove pattern.
1356 (not_scc_insn): Likewise.
1358 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1360 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1362 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1364 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1365 pedwarn instead of warning_at for fallthrough not preceding a case
1368 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1370 PR tree-optimization/92608
1371 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1374 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1376 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1378 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1379 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1380 special for FP comparisons that need a cror instruction eventually.
1381 (rs6000_emit_fp_cror): New function.
1382 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1383 instruction, for normal FP modes, with HONOR_NANS.
1384 (rs6000_emit_cbranch): Reformat.
1385 * config/rs6000/rs6000.md (fp_rev): New iterator.
1386 (fp_two): New iterator.
1387 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1388 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1389 *cbranch_2insn: New define_insn_and_split.
1391 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1393 PR tree-optimization/92526
1394 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1395 versioning for alignment if the accesses do not have a consistent
1396 mask, rather than asserting that the masks are consistent.
1398 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1400 PR tree-optimization/92595
1401 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1403 (vectorizable_store, vectorizable_load): Likewise.
1405 2019-11-21 Jan Hubicka <jh@suse.cz>
1407 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1408 (resolve_noninline_speculation, inline_small_functions): Avoid
1411 2019-11-21 Richard Biener <rguenther@suse.de>
1413 * lra.c (lra_insn_recog_data_pool): New.
1414 (free_insn_recog_data): Adjust.
1415 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1416 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1418 2019-11-21 Richard Biener <rguenther@suse.de>
1420 PR tree-optimization/92596
1421 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1423 2019-11-21 Jan Hubicka <jh@suse.cz>
1425 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1426 ready for some vectors to not be allocated.
1427 (evaluate_properties_for_edge): Document better; make
1428 known_vals and known_aggs caller allocated; avoid determining
1429 values of parameters which are not used.
1430 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1432 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1433 (do_estimate_edge_size): Likewise.
1434 (do_estimate_edge_hints): Likewise.
1435 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1436 values are not known.
1437 (ipa_release_agg_values): Add option to not release vector itself.
1438 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1440 2019-11-21 Richard Biener <rguenther@suse.de>
1442 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1443 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1444 (loop_iterator::loop_iterator): Adjust.
1445 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1446 (compute_dominance_frontiers): ... this. Hoist invariant
1447 get_immediate_dominator call.
1448 (compute_idf): Use a work-set instead of a work-list for more
1449 optimal iteration order and duplicate avoidance.
1450 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1451 the vector all the time, instead pre-allocate the vector only
1453 (delete_update_ssa): Simplify.
1454 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1456 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1458 PR tree-optimization/91355
1459 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1460 for early_bb scaled count with best_bb count comparison.
1462 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1464 * ipa-inline.c (edge_badness): Likewise.
1465 * lto-streamer.h (class lto_location_cache): Likewise.
1466 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1467 gratutious -> gratuitous.
1469 2019-11-21 Richard Biener <rguenther@suse.de>
1472 2019-09-17 Richard Biener <rguenther@suse.de>
1474 PR tree-optimization/91790
1475 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1476 use the correct DR for setting up realignment.
1478 2019-11-21 Richard Biener <rguenther@suse.de>
1480 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1481 (equiv_class_obstack): New.
1482 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1483 (perform_var_substitution): Initialize equiv_class_obstack.
1484 (free_var_substitution_info): Free equiv_class_obstack.
1486 2019-11-20 Jan Hubicka <jh@suse.cz>
1488 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1489 edge growth when callee function is very large.
1490 * ipa-inline.h (estimate_min_edge_growth): New.
1492 2019-11-20 Jan Hubicka <jh@suse.cz>
1494 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1495 negative time in calls summary; correct roundoff errors
1496 leading to negative times.
1497 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1499 (ipa_update_overall_fn_summary): Add RESET parameter.
1500 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1501 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1503 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1505 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1506 def types for two-operation SLP.
1508 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1511 * doc/sourcebuild.texi (vect_char_add): Document.
1513 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1515 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1516 * function.c (record_final_call): Record even calls that might
1517 have been in the cgraph.
1518 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1521 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1523 * configure.ac: Use https for gcc.gnu.org
1524 * configure: Regenerated.
1525 * doc/install.texi: Use https for gcc.gnu.org.
1526 * doc/sourcebuild.texi: Likewise.
1528 2019-11-20 Julian Brown <julian@codesourcery.com>
1530 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1532 2019-11-20 Jan Hubicka <jh@suse.cz>
1534 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1535 parameter and update call_size_time_table.
1536 (ipa_fn_summary::max_size_time_table_size): New constant.
1537 (estimate_calls_size_and_time_1): Break out from ...
1538 (estimate_calls_size_and_time): ... here; implement summary production.
1539 (summarize_calls_size_and_time): New function.
1540 (ipa_call_context::estimate_size_and_time): Bypass
1541 estimate_calls_size_and_time for leaf functions.
1542 (ipa_update_overall_fn_summary): Likewise.
1543 * ipa-fnsummary.h (call_size_time_table): New.
1544 (ipa_fn_summary::account_size_time): Update prototype.
1546 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1548 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1550 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1553 * common.opt (fcommon): Change init to 1.
1554 * doc/invoke.texi (-fcommon): Update documentation.
1556 2019-11-20 Jan Hubicka <jh@suse.cz>
1558 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1561 2019-11-20 Jan Hubicka <jh@suse.cz>
1563 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1564 Add allocator parameter.
1565 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1566 (fibonacci_heap<K,V>::m_allocator): New.
1567 (fibonacci_heap<K,V>::m_own_allocator): New.
1568 (fibonacci_heap<K,V>::insert): Use allocator.
1569 (fibonacci_heap<K,V>::extract_min): Likewise.
1570 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1572 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1574 * fibonacci_heap.c: Include alloc-pool
1575 (test_empty_heap): Initialize allocator.
1576 (test_union): Likewise.
1577 * bb-reorder.c: Include alloc-pool.h.
1578 * tracer.c: Inlclude alloc-pool.h.
1580 2019-11-20 Jan Hubicka <jh@suse.cz>
1582 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1583 Preallocate for 32 entries.
1584 (DFS::worklist): Likewise.
1585 (DFS::DFS): Do not initialize sccstack and worklist.
1586 (DFS::~DFS): Do not release sccstack.
1588 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1591 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1592 Handle UNORDERED if !HONOR_NANS.
1594 2019-11-20 Jan Hubicka <jh@suse.cz>
1596 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1597 (edge_badness): ... here.
1598 (inline_small_functions): Use monotonicity of badness calculation
1599 to avoid redundant updates.
1601 2019-11-20 Richard Biener <rguenther@suse.de>
1603 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1604 constructors we are actually analyzing.
1605 (vect_slp_check_for_constructors): Do not vectorize uniform
1606 constuctors, do not dump here.
1608 2019-11-20 Richard Biener <rguenther@suse.de>
1610 PR tree-optimization/92537
1611 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1612 vectorization validity check...
1613 (vect_slp_analyze_operations): ... here.
1615 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1617 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1618 (make_pass_arc_predicate_delay_insns): Likewise.
1619 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1620 method, remove clone.
1621 (class pass_arc_predicate_delay_insns): Likewise.
1622 (arc_init): Remove registering of ARC specific passes.
1623 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1624 * config/arc/arc-passes.def: New file.
1626 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1629 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1630 and has a mode that doesn't have corresponding integral type.
1633 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1634 clear opts->x_ix86_isa_flags{,2} here...
1635 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1636 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1639 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1641 (insert_clobbers_for_var): Fix a typo in function comment.
1643 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1644 Jakub Jelinek <jakub@redhat.com>
1647 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1648 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1651 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1653 Make 0-series device specs work with older versions of avr-gcc.
1656 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1657 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1658 <*link_pm_base_address>: Don't write spec.
1659 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1661 2019-11-20 Richard Biener <rguenther@suse.de>
1664 * builtins.c (compute_objsize): Deal with VLAs.
1666 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1668 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1670 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1672 (power9_sched_reorder2): Call new function.
1673 (rs6000_sched_reorder2): Likewise.
1675 2019-11-18 Jan Hubicka <jh@suse.cz>
1677 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1678 (estimate_calls_size_and_time): Update.
1680 2019-11-18 Jan Hubicka <jh@suse.cz>
1682 * ipa-inline.c (inlining_speedup): New function.
1683 (edge_badness): Use it.
1685 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1686 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1688 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1689 Mark as not having "likely" version.
1690 * config/mips/mips.md (insn_count): The simd_div instruction with
1691 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1692 (can_delay): Exclude simd_branch.
1693 (defile_delay *): Add simd_branch instructions.
1694 They have one regular delay slot.
1696 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1699 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1701 * cse.c (cse_insn): Delete no-op register moves too.
1702 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1703 Take a second comparison to control the value for NE.
1704 (mask_to_comparison): Handle unsigned comparisons.
1705 (simplify_logical_relational_operation): Likewise. Update call
1706 to comparison_to_mask. Handle AND if !HONOR_NANs.
1707 (simplify_binary_operation_1): Call the above for AND too.
1709 2019-11-19 Martin Liska <mliska@suse.cz>
1711 * toplev.c (general_init): Move the call...
1712 (toplev::main): ... here as we need init_options_struct
1715 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1718 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1721 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1723 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1724 (armv7-a): Likewise.
1725 (armv7ve): Likewise.
1727 2019-11-19 Richard Biener <rguenther@suse.de>
1729 PR tree-optimization/92581
1730 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1731 condition reduction chains gather all conditions involved
1732 for computing the index reduction vector.
1734 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1736 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1737 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1738 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1739 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1740 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1741 (aarch64_init_memtag_builtins): New.
1742 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1743 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1744 (aarch64_expand_builtin_memtag): New.
1745 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1746 (AARCH64_BUILTIN_SUBCODE): New macro.
1747 (aarch64_resolve_overloaded_memtag): New.
1748 (aarch64_resolve_overloaded_builtin_general): New. Call
1749 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1750 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1751 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1752 (aarch64_resolve_overloaded_builtin): Call
1753 aarch64_resolve_overloaded_builtin_general.
1754 * config/aarch64/aarch64-protos.h
1755 (aarch64_resolve_overloaded_builtin_general): New declaration.
1756 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1757 (TARGET_MEMTAG): Likewise.
1758 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1759 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1760 (irg, gmi, subp, addg, ldg, stg): New instructions.
1761 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1762 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1763 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1764 (__arm_mte_get_tag): Likewise.
1765 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1766 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1767 * config/arm/types.md (memtag): New.
1768 * doc/invoke.texi (-memtag): Update description.
1770 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1772 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1773 to define __GCC_ASM_FLAG_OUTPUTS__.
1774 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1775 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1776 depending on TARGET_THUMB1.
1777 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1779 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1782 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1785 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1786 operand is negative and one non-negative, compare the non-negative
1787 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1788 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1789 and s2 == 0, unless one of them is known to be negative. Remove
1790 tem2 variable, use tem where tem2 has been used before.
1792 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1794 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1796 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1798 PR tree-optimization/92557
1799 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1800 vmode rather than asserting it always is.
1802 2019-11-19 Richard Biener <rguenther@suse.de>
1804 PR tree-optimization/92554
1805 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1806 for the actual condition stmt and deal with sign-changes.
1808 2019-11-19 Richard Biener <rguenther@suse.de>
1810 PR tree-optimization/92555
1811 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1814 2019-11-19 Martin Liska <mliska@suse.cz>
1817 * config/riscv/riscv.c (riscv_address_insns): Initialize
1818 addr in order to remove boostrap -Wmaybe-uninitialized
1821 2019-11-18 Martin Sebor <msebor@redhat.com>
1823 PR tree-optimization/92493
1824 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1827 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1829 * cfgloop.c (get_loop_body_in_custom_order): New.
1830 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1831 * tree-loop-distribution.c (class loop_distribution): New.
1832 (bb_top_order_cmp): Remove.
1833 (bb_top_order_cmp_r): New.
1834 (create_rdg_vertices): Move into class loop_distribution.
1835 (stmts_from_loop): Same as above.
1836 (update_for_merge): Same as above.
1837 (partition_merge_into): Same as above.
1838 (get_data_dependence): Same as above.
1839 (data_dep_in_cycle_p): Same as above.
1840 (update_type_for_merge): Same as above.
1841 (build_rdg_partition_for-vertex): Same as above.
1842 (classify_builtin_ldst): Same as above.
1843 (classify_partition): Same as above.
1844 (share_memory_accesses): Same as above.
1845 (rdg_build_partitions): Same as above.
1846 (pg_add_dependence_edges): Same as above.
1847 (build_partition_graph): Same as above.
1848 (merge_dep_scc_partitions): Same as above.
1849 (break_alias_scc_partitions): Same as above.
1850 (finalize_partitions): Same as above.
1851 (distribute_loop): Same as above.
1852 (bb_top_order_init): New method
1853 (bb_top_order_destroy): New method.
1854 (get_bb_top_order_index_size): New method.
1855 (get_bb_top_order_index_index): New method.
1856 (get_bb_top_order_index_index): New method.
1857 (loop_distribution::execute): New method.
1858 (pass_loop_distribution::execute): Instantiate loop_distribution.
1860 2019-11-18 Jan Hubicka <jh@suse.cz>
1863 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1865 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1867 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1869 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1870 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1871 * doc/md.texi: Document them.
1872 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1874 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1875 * internal-fn.c (check_ptrs_direct): New macro.
1876 (expand_check_ptrs_optab_fn): Likewise.
1877 (direct_check_ptrs_optab_supported_p): Likewise.
1878 (internal_check_ptrs_fn_supported_p): New fuction.
1879 * tree-data-ref.c: Include internal-fn.h.
1880 (create_ifn_alias_checks): New function.
1881 (create_intersect_range_checks): Use it.
1882 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1883 (optab, cmp_op): Handle it.
1884 (raw_war, unspec): New int attributes.
1885 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1887 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1889 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1891 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1894 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1896 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1899 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1901 * cse.c (cse_insn): Delete no-op register moves too.
1902 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1903 Take a second comparison to control the value for NE.
1904 (mask_to_comparison): Handle unsigned comparisons.
1905 (simplify_logical_relational_operation): Likewise. Update call
1906 to comparison_to_mask. Handle AND if !HONOR_NANs.
1907 (simplify_binary_operation_1): Call the above for AND too.
1909 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1911 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1912 splitting the main code out into...
1913 (native_encode_vector_part): ...this new function.
1914 (native_decode_vector_tree): New function.
1915 (fold_view_convert_vector_encoding): Likewise.
1916 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1919 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1921 * tree-data-ref.c (create_intersect_range_checks_index): If the
1922 alias pair describes simple WAW and WAR dependencies, just check
1923 whether the first B access overlaps later A accesses.
1924 (create_waw_or_war_checks): New function that performs the same
1925 optimization on addresses.
1926 (create_intersect_range_checks): Call it.
1928 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1930 * lra-constraints.c (valid_address_p): Take the operand and a
1931 constraint as argument. If the operand is a MEM and the constraint
1932 is a memory constraint, check whether the eliminated form of the
1933 MEM already satisfies the constraint.
1934 (process_address_1): Update calls accordingly.
1936 2019-11-18 Tom Tromey <tromey@adacore.com>
1938 * doc/tm.texi: Rebuild.
1939 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1940 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
1942 2019-11-18 Richard Biener <rguenther@suse.de>
1944 PR tree-optimization/92516
1945 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
1946 argument, hoist bst_map creation/destruction to ...
1947 (vect_analyze_slp): ... here, forming a true graph with
1948 SLP instances being the entries.
1949 (vect_detect_hybrid_slp_stmts): Remove wrapper.
1950 (vect_detect_hybrid_slp): Use one visited set for all
1952 (vect_slp_analyze_node_operations): Simplify visited/lvisited
1953 to hash-sets of slp_tree.
1954 (vect_slp_analyze_operations): Likewise.
1955 (vect_bb_slp_scalar_cost): Remove wrapper.
1956 (vect_bb_vectorization_profitable_p): Use one visited set for
1958 (vect_schedule_slp_instance): Elide bst_map use.
1959 (vect_schedule_slp): Likewise.
1961 2019-11-18 Richard Biener <rguenther@suse.de>
1963 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
1964 was vectorized with just external refs fail.
1966 2019-11-18 Martin Liska <mliska@suse.cz>
1969 * ipa-icf.c (sem_function::init): Unset m_checker
1970 at the end of the function.
1972 2019-11-18 Richard Biener <rguenther@suse.de>
1974 PR tree-optimization/92558
1975 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
1976 reducting the width of a reduction vector def update new_phis.
1978 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1980 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
1981 and s390*-*-linux-musl* targets.
1982 * configure: Regenerate.
1984 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
1986 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
1987 (MUSL_DYNAMIC_LINKER64): Define.
1989 2019-11-18 Martin Liska <mliska@suse.cz>
1991 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
1992 message for an unknown counter.
1993 (dbg_cnt_process_single_pair): Support 0 as minimum value.
1994 (dbg_cnt_process_opt): Remove unreachable code.
1996 2019-11-18 Martin Liska <mliska@suse.cz>
1999 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2000 Compare LHS types of NOP_EXPR.
2002 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2004 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2005 "initial_pass_name" argument -- by running "*clean_state" pass.
2006 Also free the "initial_pass_name" when done.
2008 2019-11-18 Richard Biener <rguenther@suse.de>
2010 PR rtl-optimization/92462
2011 * alias.c (find_base_term): Restrict the look through ANDs.
2012 (find_base_value): Likewise.
2014 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2016 Add support for AVR devices from the 0-series.
2019 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2020 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2021 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2022 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2023 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2024 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2025 for spec definitions.
2026 * doc/avr-mmcu.texi: Regenerate.
2028 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2031 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2032 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2033 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2034 (ix86_reassociation_width): Ditto.
2035 * config/i386/i386-options.c (ix86_option_override_internal):
2036 Replace TARGET_AVX128_OPTIAML with
2037 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2038 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2039 (TARGET_AVX128_OPTIMAL): Deleted.
2040 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2043 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2045 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2046 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2048 (cceq_rev_compare): Rename to...
2049 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2051 (define_split for <bd>tf_<mode>): Add SImode first argument to
2052 gen_cceq_ior_compare.
2054 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2056 * common/config/powerpcspe: Delete.
2058 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2060 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2061 output in UNSPEC_WRFFR.
2063 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2065 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2066 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2068 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2070 * tree-data-ref.c (create_intersect_range_checks_index)
2071 (create_intersect_range_checks): Print dump messages.
2073 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2075 * tree-data-ref.c (dump_alias_pair): New function.
2076 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2078 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2080 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2081 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2082 merging data references with different steps.
2083 (create_intersect_range_checks_index): Take a
2084 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2085 Bail out if DR_ALIAS_MIXED_STEPS is set.
2086 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2087 instead of two dr_with_seg_lens. Update call to
2088 create_intersect_range_checks_index.
2089 (create_runtime_alias_checks): Update call accordingly.
2091 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2093 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2094 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2095 (dr_with_seg_len_pair_t::sequencing): New enum.
2096 (dr_with_seg_len_pair_t::flags): New member variable.
2097 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2098 parameter and initialize the flags member variable.
2099 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2101 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2102 Ensure the two data references in an alias pair are in statement
2103 order, if there is a defined order.
2104 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2105 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2106 swapped the references in a dr_with_seg_len_pair_t. OR together
2107 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2108 try to restore the original dr_with_seg_len order, updating the
2109 flags if that fails.
2111 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2113 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2114 swapping the dr_as based on init values until we've decided
2115 whether to merge them.
2117 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2119 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2120 two accesses in each dr_with_seg_len_pair_t before trying to
2121 combine separate dr_with_seg_len_pair_ts.
2122 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2124 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2126 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2128 * config/aarch64/aarch64-sve.md
2129 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2130 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2131 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2132 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2133 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2134 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2135 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2137 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2138 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2139 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2140 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2142 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2144 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2145 (SVE_4HSI): New mode iterators.
2146 (ANY_EXTEND2): New code iterator.
2147 * config/aarch64/aarch64-sve.md
2148 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2150 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2151 ...this, handling extension to partial modes as well as full modes.
2152 Describe the extension as a predicated rather than unpredicated
2154 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2155 Likewise extend to...
2156 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2157 ...this, making the same adjustments.
2158 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2159 Likewise extend to...
2160 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2161 ...this, making the same adjustments.
2162 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2163 Likewise extend to...
2164 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2165 ...this, making the same adjustments.
2166 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2168 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2169 extension predicate.
2170 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2171 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2172 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2173 Describe the extension as a predicated rather than unpredicated
2175 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2176 Likewise. Canonicalize to a constant extension predicate.
2177 * config/aarch64/aarch64-sve-builtins-base.cc
2178 (svld1_gather_extend_impl::expand): Add an extra predicate for
2180 (svldff1_gather_extend_impl::expand): Likewise.
2182 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2184 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2186 * config/aarch64/aarch64-sve.md
2187 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2188 (gather_load<SVE_24:mode><v_int_container>): ...this.
2189 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2190 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2191 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2192 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2193 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2195 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2196 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2197 Allow the nominal extension predicate to be different from the
2199 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2200 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2202 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2204 * config/aarch64/aarch64-sve.md
2205 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2206 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2208 (aarch64_sve_adjust_stmt_cost): Call it.
2210 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2212 * config/aarch64/aarch64-sve.md
2213 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2214 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2215 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2217 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2218 ...this new pattern, handling extension to partial modes as well
2219 as full modes. Describe the extension as a predicated rather than
2220 unpredicated extension.
2221 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2222 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2223 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2225 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2226 ...this new pattern, handling extension to partial modes as well
2227 as full modes. Describe the extension as a predicated rather than
2228 unpredicated extension.
2229 * config/aarch64/aarch64-sve-builtins.cc
2230 (function_expander::use_contiguous_load_insn): Add an extra
2231 predicate for extending loads.
2232 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2233 (aarch64_sve_adjust_stmt_cost): Likewise.
2234 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2235 the cost of SVE vector stmts.
2237 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2239 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2240 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2241 * config/aarch64/aarch64-sve.md
2242 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2243 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2244 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2245 comment. Avoid new narrower_mask ambiguity.
2246 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2247 (*cond_uxt<mode>_2): Update comment.
2248 (*cond_uxt<mode>_any): Likewise.
2250 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2252 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2254 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2256 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2257 new vector float modes.
2258 (aarch64_sve_container_bits): New function.
2259 (aarch64_sve_pred_mode): Likewise.
2260 (aarch64_get_mask_mode): Use it.
2261 (aarch64_sve_element_int_mode): Handle structure modes and partial
2263 (aarch64_sve_container_int_mode): New function.
2264 (aarch64_vectorize_related_mode): Return SVE modes when given
2265 SVE modes. Handle partial modes, taking the preferred number
2266 of units from the size of the given mode.
2267 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2269 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2270 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2271 (aarch64_split_sve_subreg_move): Use the mode form of
2272 aarch64_sve_pred_mode.
2273 (aarch64_secondary_reload): Handle partial modes in the same way
2274 as full big-endian vectors.
2275 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2276 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2277 merging with the Advanced SIMD modes. If two modes have the
2278 same size, try the Advanced SIMD mode first.
2279 (aarch64_simd_valid_immediate): Use the container rather than
2280 the element mode for INDEX constants.
2281 (aarch64_simd_vector_alignment): Make the alignment of partial
2282 SVE vector modes the same as their minimum size.
2283 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2284 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2285 (mov<SVE_ALL:mode>): ...this.
2286 (movmisalign<SVE_FULL:mode>): Extend to...
2287 (movmisalign<SVE_ALL:mode>): ...this.
2288 (*aarch64_sve_mov<mode>_le): Rename to...
2289 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2290 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2291 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2292 partial modes regardless of endianness.
2293 (aarch64_sve_reload_be): Rename to...
2294 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2295 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2296 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2297 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2298 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2299 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2300 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2301 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2302 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2303 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2304 (maskload<SVE_FULL:mode><vpred>): Extend to...
2305 (maskload<SVE_ALL:mode><vpred>): ...this.
2306 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2307 (maskstore<SVE_ALL:mode><vpred>): ...this.
2308 (vec_duplicate<SVE_FULL:mode>): Extend to...
2309 (vec_duplicate<SVE_ALL:mode>): ...this.
2310 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2311 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2312 (sve_ld1r<SVE_FULL:mode>): Extend to...
2313 (sve_ld1r<SVE_ALL:mode>): ...this.
2314 (vec_series<SVE_FULL_I:mode>): Extend to...
2315 (vec_series<SVE_I:mode>): ...this.
2316 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2317 (*vec_series<SVE_I:mode>_plus): ...this.
2318 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2319 new VPRED ambiguity.
2320 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2321 (add<SVE_FULL_I:mode>3): Extend to...
2322 (add<SVE_I:mode>3): ...this.
2323 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2324 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2325 (VPRED, vpred): Likewise.
2326 (Vctype): New iterator.
2327 (vw): Remove SVE modes.
2329 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2331 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2332 (SVE_PARTIAL_I): ...this.
2333 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2335 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2337 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2338 (SVE_FULL): ...this.
2339 (SVE_I): Rename to...
2340 (SVE_FULL_I): ...this.
2341 (SVE_F): Rename to...
2342 (SVE_FULL_F): ...this.
2343 (SVE_BHSI): Rename to...
2344 (SVE_FULL_BHSI): ...this.
2345 (SVE_HSD): Rename to...
2346 (SVE_FULL_HSD): ...this.
2347 (SVE_HSDI): Rename to...
2348 (SVE_FULL_HSDI): ...this.
2349 (SVE_HSF): Rename to...
2350 (SVE_FULL_HSF): ...this.
2351 (SVE_SD): Rename to...
2352 (SVE_FULL_SD): ...this.
2353 (SVE_SDI): Rename to...
2354 (SVE_FULL_SDI): ...this.
2355 (SVE_SDF): Rename to...
2356 (SVE_FULL_SDF): ...this.
2357 (SVE_S): Rename to...
2358 (SVE_FULL_S): ...this.
2359 (SVE_D): Rename to...
2360 (SVE_FULL_D): ...this.
2361 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2362 * config/aarch64/aarch64-sve2.md: Likewise.
2364 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2366 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2368 * doc/invoke.texi: Document it.
2369 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2370 By default, return VECT_COMPARE_COSTS for SVE.
2372 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2374 * target.h (VECT_COMPARE_COSTS): New constant.
2375 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2376 * doc/tm.texi: Regenerate.
2377 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2378 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2379 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2381 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2382 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2383 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2384 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2385 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2386 (_loop_vec_info::vec_inside_cost): New member variables.
2387 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2388 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2389 (vect_analyze_loop): When autovectorize_vector_modes returns
2390 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2391 vector mode and picking the one with the lowest cost.
2392 (vect_estimate_min_profitable_iters): Record the computed costs
2393 in the loop_vec_info.
2395 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2397 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2398 element type rather than an element mode.
2399 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2400 Use get_vectype_for_scalar_type to query the natural types
2401 for a given element type rather than basing everything on
2402 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2403 query to MAX_FIXED_MODE_SIZE.
2404 (duplicate_and_interleave): Update call accordingly.
2405 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2407 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2409 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2410 optional maximum nunits.
2411 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2413 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2414 (vect_get_mask_type_for_stmt): Likewise.
2415 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2416 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2417 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2418 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2419 to get an assumed vector type for data references.
2420 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2421 (vect_update_all_shared_vectypes): Likewise.
2422 (vect_build_slp_tree_1): Pass the group size to
2423 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2424 for BB vectorization.
2425 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2426 before building the vectof from scalars.
2427 (vect_analyze_slp_instance): Pass the group size to
2428 get_vectype_for_scalar_type.
2429 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2430 types for BB vectorization here; just handle the case in which
2431 we deferred the choice for booleans.
2432 (vect_get_constant_vectors): Pass the slp_tree to
2433 get_vectype_for_scalar_type.
2434 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2435 (vectorizable_call): Likewise.
2436 (vectorizable_simd_clone_call): Likewise.
2437 (vectorizable_conversion): Likewise.
2438 (vectorizable_shift): Likewise.
2439 (vectorizable_operation): Likewise.
2440 (vectorizable_comparison): Likewise.
2441 (vect_is_simple_cond): Take the slp_tree as argument and
2442 pass it to get_vectype_for_scalar_type.
2443 (vectorizable_condition): Update call accordingly.
2444 (get_vectype_for_scalar_type): Take a group_size argument.
2445 For BB vectorization, limit the the vector to that number
2446 of elements. Also define an overload that takes an slp_tree.
2447 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2448 pass it to get_vectype_for_scalar_type.
2449 (vect_get_vector_types_for_stmt): Add a group_size argument
2450 and pass it to get_vectype_for_scalar_type. Don't use the
2451 cached vector type for BB vectorization if a group size is given.
2452 Handle data references in that case.
2453 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2454 pass it to get_mask_type_for_scalar_type.
2456 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2458 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2460 (estimate_edge_time): Use it.
2461 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2462 ret_nonspec_time parameter.
2464 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2466 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2468 2019-11-15 Nick Clifton <nickc@redhat.com>
2469 Szabolcs Nagy <szabolcs.nagy@arm.com>
2472 * config/microblaze/microblaze.c (print_operand): Print value as long.
2474 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2476 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2479 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2481 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2482 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2484 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2486 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2487 (gcn_conditional_register_usage): Use constants in place of hard-coded
2489 (gcn_hsa_declare_function_name): Set lower bound for number of
2490 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2491 MAX_NORMAL_VGPR_COUNT.
2493 2019-11-15 Martin Jambor <mjambor@suse.cz>
2495 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2498 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2500 * config/gcn/gcn.c (default_requested_args): New.
2501 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2502 set with default_requested_args.
2503 (gcn_conditional_register_usage): Limit register usage of non-kernel
2504 functions. Reassign fixed registers if a non-standard set of args is
2506 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2508 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2511 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2512 aggregate jump function when inlined-to caller has no edge summary.
2514 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2516 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2518 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2520 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2522 (print_operand_address): Use v1 for zero vector offset.
2524 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2526 PR tree-optimization/92515
2527 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2528 types when converting a vector/scalar shift into a vector/vector one,
2529 using tree_nop_conversion_p instead of useless_type_conversion_p.
2530 Move the conversion code to the transform block.
2532 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2534 * read-rtl-function.c
2535 (function_reader::add_fixup_source_location): Take additional
2536 parameter of a column.
2537 (function_reader::maybe_read_location): Optionally parse column
2538 information and pass to add_fixup_source_location.
2540 2019-11-15 Richard Biener <rguenther@suse.de>
2542 PR tree-optimization/92512
2543 * tree-vect-loop.c (check_reduction_path): Fix operand index
2544 computability check. Add check for second use in COND_EXPRs.
2546 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2549 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2550 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2552 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2554 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2555 register class for VCC_LO and VCC_HI.
2556 (gcn_spill_class): Use SGPR_REGS to spill registers in
2557 VCC_CONDITIONAL_REG.
2559 2019-11-15 Richard Biener <rguenther@suse.de>
2561 PR tree-optimization/92324
2562 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2563 singedness of SLP reduction epilouge operations. Also reduce
2564 the vector width for SLP reductions before doing elementwise
2565 operations if possible.
2567 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2569 * passes.c (skip_pass): Set epilogue_completed if skipping the
2570 pro_and_epilogue pass.
2572 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2574 * passes.c (should_skip_pass_p): Always run "dfinish".
2576 2019-11-15 Richard Biener <rguenther@suse.de>
2578 * ipa-inline.c (inline_small_functions): Move assignment
2579 to next before call destroying edge.
2581 2019-11-15 Richard Biener <rguenther@suse.de>
2583 PR tree-optimization/92039
2584 PR tree-optimization/91975
2585 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2586 previous change, treat invariants consistently as non-constant.
2587 (tree_estimate_loop_size): Ternary ops with just the first op
2588 constant are not optimized away.
2590 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2592 * gimplify.c (gimplify_call_expr): Don't call
2593 omp_resolve_declare_variant after gimplification.
2594 * omp-general.c (omp_context_selector_matches): For isa that might
2595 match in some other function, defer if in declare simd function.
2596 (omp_context_compute_score): Don't look for " score" in construct
2597 trait set. Set *score to -1 if it can't ever match.
2598 (omp_resolve_declare_variant): If any variants need to be deferred,
2599 don't punt immediately, but compute scores of all variants and if
2600 ther eis a score winner that doesn't need to be deferred, return that.
2602 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2604 * ipa-comdats.c: Fix comments typo.
2605 * ipa-profile.c: Fix comments typo.
2606 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2607 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2608 (gimple_gen_ic_func_profiler): Likewise.
2609 (pass_ipa_tree_profile::gate): Fix comments typo.
2611 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2613 * ipa-inline.c (inline_small_functions): Update iterator of next.
2615 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2617 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2618 register is suitable for the mode.
2620 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2622 * range-op.h (range_operator::fold_range): Return a bool.
2623 * range-op.cc (range_operator::wi_fold): Assert supported type.
2624 (range_operator::fold_range): Assert supported type and return true.
2625 (operator_equal::fold_range): Return true.
2626 (operator_not_equal::fold_range): Same.
2627 (operator_lt::fold_range): Same.
2628 (operator_le::fold_range): Same.
2629 (operator_gt::fold_range): Same.
2630 (operator_ge::fold_range): Same.
2631 (operator_plus::op1_range): Adjust call to fold_range.
2632 (operator_plus::op2_range): Same.
2633 (operator_minus::op1_range): Same.
2634 (operator_minus::op2_range): Same.
2635 (operator_exact_divide::op1_range): Same.
2636 (operator_lshift::fold_range): Return true and adjust fold_range call.
2637 (operator_rshift::fold_range): Same.
2638 (operator_cast::fold_range): Return true.
2639 (operator_logical_and::fold_range): Same.
2640 (operator_logical_or::fold_range): Same.
2641 (operator_logical_not::fold_range): Same.
2642 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2643 (operator_bitwise_not::op1_range): Same.
2644 (operator_cst::fold_range): Return true.
2645 (operator_identity::fold_range): Return true.
2646 (operator_negate::fold_range): Return true and adjust fold_range call.
2647 (operator_addr_expr::fold_range): Return true.
2648 (operator_addr_expr::op1_range): Adjust call to fold_range.
2650 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2651 (range_fold_unary_symbolics_p): Same.
2653 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2655 PR tree-optimization/92506
2656 * range-op.cc (range_operator::fold_range): Start with range undefined.
2657 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2658 overflow is varying.
2660 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2662 * range-op.cc (*operator*::*range): Remove calls to
2663 range_intersect, range_invert, and range_union in favor of calling
2664 the in-place API methods.
2665 (range_tests): Same.
2666 * range.cc (range_intersect): Remove.
2667 (range_union): Remove.
2668 (range_invert): Remove.
2669 * range.h (range_intersect): Remove.
2670 (range_union): Remove.
2671 (range_intersect): Remove.
2673 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2675 PR rtl-optimization/92430
2676 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2677 (pass_jump_after_combine::execute): Perform jump threading
2680 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2681 Doug Rupp <rupp@adacore.com>
2682 Olivier Hainque <hainque@adacore.com>
2684 * config.gcc: Collapse the arm-vxworks entries into
2685 a single arm-wrs-vxworks7* one, bpabi based. Update
2686 the default cpu from arm8 to armv7-a
2687 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2688 we always use ARM_UNWIND_INFO.
2689 (DWARF2_UNWIND_INFO): Remove redefinition.
2690 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2691 (VXWORKS_PERSONALITY): Define, to "llvm".
2692 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2694 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2696 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2697 _VX_CPU instead of CPU and handle arm_arch8.
2699 2019-11-14 Doug Rupp <rupp@adacore.com>
2700 Olivier Hainque <hainque@adacore.com>
2701 Jerome Lambourg <lambourg@adacore.com>
2703 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2704 * config/aarch64/aarch64-vxworks.h: New file.
2705 * config/aarch64/t-aarch64-vxworks: New file.
2707 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2708 Olivier Hainque <hainque@adacore.com>
2710 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2711 definition, pointless with a VxWorks specific version
2713 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2714 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2715 New local macros, controlling the addition of vxworks specific
2716 crtstuff objects depending on the EH mechanism and kind of
2717 module being linked.
2718 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2720 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2721 Jerome Lambourg <lambourg@adacore.com>
2722 Olivier Hainque <hainque@adacore.com>
2724 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2725 common macro definitions, conveying VXWORKS7 or 64bit general
2726 variations. Add a block to set gcc_cv_initfini_array
2727 unconditionally to "yes" for VxWorks7.
2728 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2729 by default. Update some comments.
2730 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2731 default, to be added the end of VXWORKS_LIBS_RTP.
2732 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2733 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2735 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2736 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2737 to account for the now available TLS abilities.
2738 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2739 (VXWORKS_HAVE_TLS): Likewise.
2741 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2743 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2744 (vect_slp_convert_to_external): Likewise.
2745 (vect_slp_analyze_node_operations): If analysis fails, try building
2746 the node from scalars instead.
2748 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2750 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2751 between vector types.
2752 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2753 non-widening and non-narrowing path to handle standard
2754 conversion codes, if the target supports them.
2755 * expr.c (convert_move): Try using the extend and truncate optabs
2757 * optabs-tree.c (supportable_convert_operation): Likewise.
2758 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2759 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2760 (trunc<mode><Vnarrowq>2): New patterns.
2762 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2764 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2765 require vectype and nunits_vectype to have the same size;
2766 instead assert that nunits_vectype has at least as many
2767 elements as vectype. Don't compute a separate nunits_vectype
2768 if the scalar type is obviously the same as vectype's.
2769 Tweak dump messages.
2771 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2773 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2775 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2776 (TARGET_VECTORIZE_RELATED_MODE): Define.
2778 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2780 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2781 (vec_info::used_vector_mode): New member variable.
2782 (vect_chooses_same_modes_p): Declare.
2783 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2784 chosen vector mode in vec_info::used_vector_mode.
2785 (vect_chooses_same_modes_p): New function.
2786 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2787 the same vector statements multiple times.
2788 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2790 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2792 * machmode.h (opt_machine_mode::operator==): New function.
2793 (opt_machine_mode::operator!=): Likewise.
2794 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2795 (get_related_vectype_for_scalar_type): Delete.
2796 (get_vectype_for_scalar_type_and_size): Declare.
2797 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2798 whether analysis passed or failed, and with what vector modes.
2799 Use related_vector_mode to check whether trying a particular
2800 vector mode would be redundant with the autodetected mode,
2801 and print a dump message if we decide to skip it.
2802 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2803 (vect_create_epilog_for_reduction): Use
2804 get_related_vectype_for_scalar_type instead of
2805 get_vectype_for_scalar_type_and_size.
2806 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2808 (get_related_vectype_for_scalar_type): ...this new function.
2809 Take a starting/"prevailing" vector mode rather than a vector size.
2810 Take an optional nunits argument, with the same meaning as for
2811 related_vector_mode. Use related_vector_mode when not
2812 auto-detecting a mode, falling back to mode_for_vector if no
2814 (get_vectype_for_scalar_type): Update accordingly.
2815 (get_same_sized_vectype): Likewise.
2816 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2818 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2820 * tree-vect-stmts.c (vectorizable_call): Require the types
2821 to have the same size.
2823 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2825 * tree-vect-stmts.c (vectorizable_call): If an operand is
2826 constant or external, use get_vectype_for_scalar_type
2827 rather than get_same_sized_vectype to get its vector type.
2828 (vectorizable_conversion, vectorizable_shift): Likewise.
2829 (vectorizable_operation): Likewise.
2831 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2833 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2834 (vec_info::vector_mode): ...this new field.
2835 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2836 (vect_analyze_loop, vect_transform_loop): Likewise.
2837 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2838 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2839 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2840 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2841 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2843 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2845 * target.h (vector_sizes, auto_vector_sizes): Delete.
2846 (vector_modes, auto_vector_modes): New typedefs.
2847 * target.def (autovectorize_vector_sizes): Replace with...
2848 (autovectorize_vector_modes): ...this new hook.
2849 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2851 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2852 * doc/tm.texi: Regenerate.
2853 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2854 (default_autovectorize_vector_modes): New function.
2855 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2856 (default_autovectorize_vector_modes): New function.
2857 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2858 of autovectorize_vector_sizes. Use the number of units in the mode
2859 to calculate the maximum VF.
2860 * omp-low.c (omp_clause_aligned_alignment): Use
2861 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2862 Use a loop based on related_mode to iterate through all supported
2863 vector modes for a given scalar mode.
2864 * optabs-query.c (can_vec_mask_load_store_p): Use
2865 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2866 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2867 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2868 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2870 (aarch64_autovectorize_vector_modes): ...this new function.
2871 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2872 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2873 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2874 (arc_autovectorize_vector_modes): ...this new function.
2875 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2876 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2877 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2878 (arm_autovectorize_vector_modes): ...this new function.
2879 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2880 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2881 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2882 (ix86_autovectorize_vector_modes): ...this new function.
2883 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2884 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2885 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2886 (mips_autovectorize_vector_modes): ...this new function.
2887 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2888 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2890 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2892 * tree-vect-stmts.c (vectorizable_shift): Check the number
2893 of vector elements as well as the type mode when deciding
2894 whether an op1_vectype is compatible. Reuse the result of
2895 this check when generating vector statements.
2897 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2899 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2900 targetm.vectorize.preferred_simd_mode returns an integer mode,
2901 use mode_for_vector to decide what the vector type's mode
2902 should actually be. Use build_vector_type_for_mode instead
2903 of build_vector_type.
2905 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2907 * target.def (get_mask_mode): Take a vector mode itself as argument,
2908 instead of properties about the vector mode.
2909 * doc/tm.texi: Regenerate.
2910 * targhooks.h (default_get_mask_mode): Update to reflect new
2911 get_mode_mask interface.
2912 * targhooks.c (default_get_mask_mode): Likewise. Use
2913 related_int_vector_mode.
2914 * optabs-query.c (can_vec_mask_load_store_p): Update call
2916 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2917 first that the original mode really is a vector.
2918 * tree.c (build_truth_vector_type_for): Likewise.
2919 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2920 get_mode_mask interface.
2921 (aarch64_expand_sve_vcond): Update call accordingly.
2922 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2923 get_mode_mask interface.
2924 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2926 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2928 * tree.h (build_truth_vector_type): Delete.
2929 (build_same_sized_truth_vector_type): Likewise.
2930 * tree.c (build_truth_vector_type): Rename to...
2931 (build_truth_vector_type_for): ...this. Make static and take
2932 a vector type as argument.
2933 (truth_type_for): Update accordingly.
2934 (build_same_sized_truth_vector_type): Delete.
2935 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2936 instead of build_same_sized_truth_vector_type.
2937 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2938 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2939 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2940 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2941 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
2942 (vect_build_gather_load_calls, vectorizable_call): Likewise.
2943 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
2944 (vectorizable_store, vectorizable_condition): Likewise.
2945 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
2946 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
2947 build_truth_vector_type.
2948 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
2949 Use truth_type_for instead of build_same_sized_truth_vector_type.
2950 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
2952 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2954 * tree.h (build_truth_vector_type_for_mode): Declare.
2955 * tree.c (build_truth_vector_type_for_mode): New function,
2957 (build_truth_vector_type): ...here.
2958 (build_opaque_vector_type): Fix head comment.
2959 * tree-vectorizer.h (supportable_narrowing_operation): Remove
2961 (vect_halve_mask_nunits): Replace vec_info parameter with the
2962 mode of the new vector.
2963 (vect_double_mask_nunits): Likewise.
2964 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
2965 (vect_double_mask_nunits): Likewise.
2966 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
2967 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
2968 to vect_halve_mask_nunits, getting the required mode from the unpack
2970 (vect_set_loop_condition_masked): Update call accordingly.
2971 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
2972 parameter and update call to vect_double_mask_nunits.
2973 (vectorizable_conversion): Update call accordingly.
2974 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
2975 (vectorizable_call): Update call accordingly.
2976 (supportable_widening_operation): Update call to
2977 vect_halve_mask_nunits.
2978 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2979 Use build_truth_vector_type_mode instead of build_truth_vector_type.
2981 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2983 * machmode.h (mode_for_int_vector): Delete.
2984 (related_int_vector_mode): Declare.
2985 * stor-layout.c (mode_for_int_vector): Delete.
2986 (related_int_vector_mode): New function.
2987 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
2988 instead of mode_for_int_vector.
2989 (expand_vec_perm_const): Likewise.
2990 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
2991 (aarch64_evpc_sve_tbl): Likewise.
2992 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
2993 (s390_expand_vcond): Likewise.
2995 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2997 * target.def (related_mode): New hook.
2998 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
2999 * doc/tm.texi: Regenerate.
3000 * targhooks.h (default_vectorize_related_mode): Declare.
3001 * targhooks.c (default_vectorize_related_mode): New function.
3002 * machmode.h (related_vector_mode): Declare.
3003 * stor-layout.c (related_vector_mode): New function.
3004 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3005 * optabs-query.c (qimode_for_vec_perm): Likewise.
3006 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3007 (vectorizable_store, vectorizable_load): Likewise
3009 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3011 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3012 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3013 * config/arm/arm-c.c (arm_cpu_builtins): Define
3014 __GCC_ASM_FLAG_OUTPUTS__.
3015 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3016 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3017 Define __GCC_ASM_FLAG_OUTPUTS__.
3018 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3019 * doc/extend.texi (FlagOutputOperands): Add documentation
3020 for ARM and AArch64.
3022 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3023 * config/arm/predicates.md (nz_comparison_operator): Rename
3024 from noov_comparison_operator.
3025 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3026 (arm_gen_dicompare_reg): Likewise.
3027 (maybe_get_arm_condition_code): Likewise.
3028 (thumb1_final_prescan_insn): Likewise.
3029 (arm_emit_coreregs_64bit_shift): Likewise.
3030 * config/arm/arm.md (addsi3_compare0): Likewise.
3031 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3032 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3033 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3034 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3035 (*mulsi3addsi_compare0_scratch): Likewise.
3036 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3037 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3038 (*zeroextractsi_compare0_scratch): Likewise.
3039 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3040 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3041 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3042 (andsi_not_shiftsi_si_scc): Likewise.
3043 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3044 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3045 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3046 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3047 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3048 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3049 (return_addr_mask, *check_arch2): Likewise.
3050 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3051 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3052 (compare_scc splitters): Likewise.
3053 (movcond_addsi): Likewise.
3054 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3055 (*thumb2_addsi3_compare0_scratch): Likewise.
3056 (*thumb2_mulsi_short_compare0): Likewise.
3057 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3058 (compare peephole2s): Likewise.
3059 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3060 nz_comparison_operator names.
3061 (cbranchsi4_insn): Likewise.
3063 * config/arm/constraints.md (c): Use cc_register predicate.
3065 * config/aarch64/constraints.md (c): New constraint.
3067 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3069 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3070 ipa_merge_fn_summary_after_inlining): Micro optimize.
3072 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3074 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3076 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3078 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3079 (ipa_value_range_from_jfunc): New function.
3080 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3081 known_value_ranges parameter; use it to evalulate conditions.
3082 (evaluate_properties_for_edge): Compute known value ranges.
3083 (ipa_fn_summary_t::duplicate): Update use of
3084 evaluate_conditions_for_known_args.
3085 (estimate_ipcp_clone_size_and_time): Likewise.
3086 (ipa_merge_fn_summary_after_inlining): Likewise.
3087 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3089 2019-11-14 Martin Liska <mliska@suse.cz>
3091 * ipa-inline.c (want_inline_small_function_p): Use
3092 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3093 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3095 2019-11-14 Martin Liska <mliska@suse.cz>
3097 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3098 of a callee to get value of the param.
3099 * ipa-inline.c (inline_insns_auto): Use proper
3101 * opts.c (maybe_default_option): Do not overwrite param
3102 value if optimization level does not match. Note that
3103 params usually have default value set via Init() keyword.
3104 * params.opt: Remove -param=max-inline-insns-auto-O2.
3105 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3106 * doc/invoke.texi: Remove documentation of
3107 max-inline-insns-auto-O2.
3109 2019-11-14 Martin Liska <mliska@suse.cz>
3111 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3112 Do not initialize m_other_count.
3113 (switch_conversion::collect): Do not count m_default_count and
3114 m_other_count as we use frequencies for edges.
3115 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3117 2019-11-14 Martin Liska <mliska@suse.cz>
3120 * doc/invoke.texi: Document -fallocation-dce.
3122 2019-11-14 Martin Liska <mliska@suse.cz>
3125 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3126 PTA_ICELAKE_CLIENT which is later interited by
3127 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3129 2019-11-14 Martin Liska <mliska@suse.cz>
3131 * ipa-icf.c (sem_item_optimizer::execute): Save
3133 (sem_item_optimizer::parse_nonsingleton_classes):
3134 Return number of loaded symbols.
3135 (sem_item_optimizer::merge_classes): Print
3136 statistics about totally needed symbols.
3137 * ipa-icf.h (parse_nonsingleton_classes): Change return
3139 (merge_classes): Add one argument.
3141 2019-11-14 Martin Liska <mliska@suse.cz>
3143 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3144 func_checker::hash_operand by handling of FIELD_DECLs.
3146 2019-11-14 Martin Liska <mliska@suse.cz>
3148 * ipa-icf-gimple.h (func_checker::func_checker): Add
3149 default constructor.
3150 * ipa-icf.c (sem_function::init): Make operand_equal_p
3151 and hash_operand public.
3152 (sem_item::add_expr): Remove.
3153 (sem_item::add_type): Remove.
3154 (sem_function::hash_stmt): Use m_checker for hashing
3155 of GIMPLE statements.
3156 (sem_function::parse): Init with checker.
3157 (sem_variable::parse): Pass NULL as checker.
3158 (sem_item_optimizer::parse_funcs_and_vars):
3159 Pass checker to ::parse function.
3160 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3161 (sem_variable::parse): New function.
3162 (sem_variable::get_hash): Only return computed hash value.
3163 (sem_variable::init): Initialize hash of a variable.
3164 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3165 to couple of functions as a new argument.
3167 2019-11-14 Martin Liska <mliska@suse.cz>
3169 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3171 (func_checker::compare_gimple_assign): Likewise.
3173 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3175 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3176 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3177 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3179 * omp-general.c (omp_context_name_list_prop): New function.
3180 (omp_context_selector_matches): Use it. Return 0 if it returns
3182 (omp_context_selector_props_compare): Allow equivalency of an
3183 identifier and a string literal containing no embedded zeros.
3185 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3187 * range-op.cc (RANGE3): Remove.
3188 (range_tests): Remove all selftest that check for multi-ranges.
3189 Put tests in namespace selftest.
3190 * selftest.h: Move range_tests into namespace selftest.
3191 * value-range.h (class value_range): Unfriend range_tests.
3193 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3195 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3196 normalize_symbolics and normalize_addresses working in place.
3197 (range_fold_unary_symbolics_p): Same.
3198 (range_fold_unary_symbolics_p): Same.
3199 * value-range.cc (num_pairs): Same.
3200 (lower_bound): Same.
3201 (upper_bound): Same.
3203 (normalize_addresses): Same.
3204 (normalize_symbolics): Same.
3205 * value-range.h (normalize_symbolics): Same.
3206 (normalize_addresses): Same.
3208 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3211 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3212 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3213 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3214 (ipa_agg_jump_function): Remove member function equal_to.
3215 (ipa_agg_jump_function_p): Remove typedef.
3216 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3217 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3218 information for aggregate jump function.
3219 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3220 record last definition statement.
3221 (load_from_unmodified_param_or_agg): New function.
3222 (ipa_known_agg_contents_list): Add new field type and value, remove
3224 (build_agg_jump_func_from_list): Rename parameter const_count to
3225 value_count, build aggregate jump function from ipa_load_agg_data.
3226 (analyze_agg_content_value): New function.
3227 (extract_mem_content): Analyze memory store assignment to prepare
3228 information for aggregate jump function generation.
3229 (determine_known_aggregate_parts): Add new parameter fbi, remove
3230 parameter aa_walk_budeget_p.
3231 (update_jump_functions_after_inlining): Update aggregate jump function.
3232 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3233 (try_make_edge_direct_simple_call): Add new parameter new_root.
3234 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3236 (update_indirect_edges_after_inlining): Pass new argument to
3237 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3238 (ipa_write_jump_function): Write aggregate jump function to file.
3239 (ipa_read_jump_function): Read aggregate jump function from file.
3240 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3241 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3242 (ipa_agg_value_from_node): Likewise.
3243 (ipa_agg_value_set_from_jfunc): Likewise.
3244 (propagate_vals_across_arith_jfunc): Likewise.
3245 (propagate_aggregate_lattice): Likewise.
3246 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3247 (propagate_vals_across_pass_through): Call
3248 propagate_vals_across_arith_jfunc.
3249 (get_clone_agg_value): Move forward.
3250 (propagate_aggs_across_jump_function): Handle value propagation for
3251 aggregate jump function.
3252 (agg_jmp_p_vec_for_t_vec): Remove.
3253 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3254 with vec<ipa_agg_value>.
3255 (copy_plats_to_inter, intersect_with_plats): Likewise.
3256 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3257 (intersect_aggregate_with_edge): Likewise.
3258 (find_aggregate_values_for_callers_subset): Likewise.
3259 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3260 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3261 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3262 (gather_context_independent_values): Likewise.
3263 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3264 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3265 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3266 (evaluate_properties_for_edge): Likewise.
3267 (estimate_edge_devirt_benefit): Likewise.
3268 (estimate_edge_size_and_time): Likewise.
3269 (estimate_calls_size_and_time): Likewise.
3270 (ipa_call_context::ipa_call_context): Likewise.
3271 (estimate_ipcp_clone_size_and_time): Likewise.
3272 * ipa-fnsummary.h (ipa_call_context): Replace
3273 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3274 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3275 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3276 (do_estimate_edge_size): Likewise.
3277 (do_estimate_edge_hints): Likewise.
3279 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3281 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3284 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3286 * ipa-profile.c (check_argument_count): Check properly that e_info
3287 is non-NULL; do not check descriptors.
3289 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3291 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3292 check for ipa profiles.
3294 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3297 * ipa-prop.c (update_indirect_edges_after_inlining):
3298 Mark parameter as used.
3299 * ipa-inline.c (recursive_inlining): Reset node cache
3301 (inline_small_functions): Remove checking ifdef.
3302 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3305 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3308 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3310 (ipa_profile): Fix reversed test.
3312 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3314 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3315 (propagate_constants_topo): Fix typo.
3317 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3319 * Makefile.in (OBJS): Add value-range.o.
3320 (GTFILES): Add value-range.h.
3321 * gengtype.c (open_base_files): Add value-range.h to list of
3323 * tree-vrp.c: Move the following value_range related functions:
3324 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3325 constant_p, set_undefined, set_varying, may_contain_p,
3326 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3327 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3328 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3329 value_inside_range, ranges_from_anti_range, union_ranges,
3330 intersect_ranges, intersect_helper, union_helper, union_,
3331 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3332 upper_bound, contains_p, invert, intersect...
3333 * value-range.cc: ...to here.
3334 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3335 associated inline methods from here...
3336 * value-range.h: ...to here.
3338 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3340 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3341 instead of asserting its value.
3343 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3345 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3346 constructors and set methods so value_range_kind is the last
3347 argument and defaults to VR_RANGE.
3348 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3349 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3350 * ipa-prop.c (ipa_get_value_range): Same.
3351 (ipa_compute_jump_functions_for_edge): Same.
3352 * range-op.cc (value_range_from_overflowed_bounds): Same.
3353 (operator_cast::op1_range): Same.
3354 (range_tests): Same.
3355 * range.cc (range_nonzero): Same.
3356 * tree-ssanames.c (get_range_info): Same.
3357 * tree-vrp.c (value_range_equiv::set): Same.
3358 (value_range::value_range): Same.
3359 (value_range_equiv::value_range_equiv): Same.
3360 (value_range_equiv::update): Same.
3361 (value_range_equiv::deep_copy): Same.
3362 (value_range_equiv::move): Same.
3363 (value_range_equiv::set_undefined): Same.
3364 (value_range::set): Same.
3365 (value_range::set_nonzero): Same.
3366 (ranges_from_anti_range): Same.
3367 (extract_range_from_plus_minus_expr): Same.
3368 (value_range::intersect_helper): Same.
3369 (value_range_equiv::intersect): Same.
3370 (value_range::union_helper): Same.
3371 (value_range_equiv::union_): Same.
3372 (value_range::normalize_symbolics): Same.
3373 (value_range::invert): Same.
3374 (determine_value_range_1): Same.
3375 * tree-vrp.h (class value_range): Same.
3376 (class value_range_equiv): Same.
3377 * vr-values.c (set_value_range_to_nonnegative): Same.
3378 (set_value_range_to_truthvalue): Same.
3379 (vr_values::update_value_range): Same.
3380 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3381 (vr_values::extract_range_from_binary_expr): Same.
3382 (vr_values::extract_range_from_comparison): Same.
3383 (vr_values::extract_range_basic): Same.
3384 (vr_values::adjust_range_with_scev): Same.
3385 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3386 (vr_values::extract_range_from_phi_node): Same.
3388 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3390 * tree-dump.c (dequeue_and_dump): Print first tree operand
3391 for VIEW_CONVERT_EXPR.
3393 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3395 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3396 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3397 * real.c (get_max_float): Add norm_max argument.
3398 * real.h (get_max_float): Update prototype.
3399 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3402 2019-11-13 Martin Liska <mliska@suse.cz>
3404 * dbgcnt.c (test_sorted_dbg_counters): New.
3405 (dbgcnt_c_tests): Likewise.
3406 * selftest-run-tests.c (selftest::run_tests): Likewise.
3407 * selftest.h (dbgcnt_c_tests): Likewise.
3409 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3410 Martin Jambor <mjambor@suse.cz>
3413 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3414 (identify_dead_nodes): Likewise.
3416 2019-11-13 Martin Liska <mliska@suse.cz>
3418 * ipa-icf.c (sem_function::equals_private): Do not overuse
3419 push/pop_cfun functions.
3421 2019-11-13 Martin Liska <mliska@suse.cz>
3423 * common.opt: Document change of -fdbg-cnt option.
3424 * dbgcnt.c (DEBUG_COUNTER): Remove.
3425 (dbg_cnt_is_enabled): Remove.
3426 (dbg_cnt): Work with new intervals.
3427 (dbg_cnt_set_limit_by_index): Set to new
3429 (dbg_cnt_set_limit_by_name): Likewise.
3430 (dbg_cnt_process_single_pair): Process new format.
3431 (dbg_cnt_process_opt): Likewise.
3432 (dbg_cnt_list_all_counters): Likewise.
3433 * doc/invoke.texi: Document change of -fdbg-cnt option.
3436 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3438 * ipa-inline.c (ipa_inline): Check that function is defined before
3441 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3442 Julian Brown <julian@codesourcery.com>
3444 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3445 flag_worker_partitioning is not set.
3446 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3447 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3449 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3451 * config/gcn/gcn-run.c (heap_region): New global variable.
3452 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3453 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3454 (get_kernarg_region): Move contents to ....
3455 (get_memory_region): .... here.
3456 (get_heap_region): New function.
3457 (init_device): Initialize the heap_region.
3458 (device_malloc): Add region parameter.
3459 (struct kernargs): Move heap ....
3460 (heap): ... to global scope.
3461 (main): Allocate heap separate to kernargs.
3463 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3465 * ipa-prop.c (ipa_print_node_jump_functions,
3466 ipa_print_node_params): Print info about missing summaries.
3468 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3470 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3471 the cost of generating loop masks.
3473 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3475 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3477 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3478 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3479 (vect_transform_loop): Likewise.
3480 (vect_analyze_loop_costing): Don't take the cost of versioning
3481 into account for the static profitability threshold if it turns
3482 out that no versioning is needed.
3484 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3486 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3487 and target_option_default_node to get -fprofile-generate ctors working
3490 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3492 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3493 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3494 (vectorizable_assignment): Don't add a cost for nop conversions.
3495 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3497 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3499 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3501 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3502 number of ncopies as an additional argument.
3503 (vectorizable_conversion): Update call accordingly. Use "modifier"
3504 to check whether a conversion is between vectors with the same
3507 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3509 * config/aarch64/aarch64-sve-builtins-functions.h
3510 (unary_count::expand): Use aarch64_sve_int_mode instead of
3511 mode_for_int_vector.
3513 2019-11-13 Martin Liska <mliska@suse.cz>
3515 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3517 2019-11-13 Martin Liska <mliska@suse.cz>
3519 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3520 Remove call to finalize_options_struct.
3522 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3525 * config/avr/t-avr (avr-mcus): Do not depend on
3526 $(srcdir)/config/avr/t-multilib.
3528 2019-11-13 Richard Biener <rguenther@suse.de>
3530 PR tree-optimization/92473
3531 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3532 direct optab reduction in the correct type.
3534 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3536 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3537 hexadecimal literal.
3539 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3541 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3542 UNORDERED if !HONOR_NANS (DFmode).
3543 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3544 if !HONOR_NANS (<MODE>mode).
3546 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3548 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3549 (ipcp_verify_propagated_values): Likewise.
3550 (propagate_constants_across_call): Likewise.
3551 (propagate_constants_topo): Likewise.
3552 (ipcp_propagate_stage): Likewise.
3554 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3557 * ipa-profile.c (check_argument_count): Break out from ...;
3558 watch for missing summaries.
3559 (ipa_profile): Here.
3561 2019-11-12 Martin Sebor <msebor@redhat.com>
3563 PR tree-optimization/92412
3564 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3567 2019-11-12 Martin Sebor <msebor@redhat.com>
3570 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3571 (directive::argno): New member.
3572 (format_result::aliases, format_result::alias_count): New data members.
3573 (format_result::append_alias): New member function.
3574 (fmtresult::dst_offset): New data member.
3575 (pass_sprintf_length::call_info::dst_origin): New data member.
3576 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3577 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3578 (get_origin_and_offset): Same.
3579 (format_string): Call it.
3580 (format_directive): Call append_alias and set directive argument
3582 (maybe_warn_overlap): New function.
3583 (pass_sprintf_length::compute_format_length): Call it.
3584 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3585 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3587 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3589 PR rtl-optimization/92430
3590 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3591 dominance info at the beginning.
3593 2019-11-12 Richard Biener <rguenther@suse.de>
3595 PR tree-optimization/92460
3596 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3597 expression before gimplifying.
3599 2019-11-12 Richard Biener <rguenther@suse.de>
3601 PR tree-optimization/92461
3602 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3603 stmt after propagation.
3605 2019-11-12 Martin Liska <mliska@suse.cz>
3607 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3608 Use SET_OPTION_IF_UNSET.
3609 (ix86_option_override_internal): Likewise.
3610 * opts.c (default_options_optimization): Likewise.
3611 (finish_options): Likewise.
3612 (enable_fdo_optimizations): Likewise.
3613 (common_handle_option): Likewise.
3615 2019-11-12 Martin Liska <mliska@suse.cz>
3617 * common/common-target.def: Remove option_validate_param and
3618 option_default_params.
3619 * common/common-targhooks.c (default_option_validate_param):
3621 * common/common-targhooks.h (default_option_validate_param):
3623 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3624 Remove usage of this.
3625 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3626 (aarch64_option_validate_param): Likewise.
3627 (aarch64_option_default_params): Likewise
3628 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3629 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3630 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3631 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3632 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3633 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3634 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3635 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3636 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3637 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3638 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3640 * doc/tm.texi: Remove option_default_params and option_validate_param.
3641 * doc/tm.texi.in: Likewise.
3643 2019-11-12 Martin Liska <mliska@suse.cz>
3645 * common/common-target.def:
3646 Do not mention set_default_param_value
3647 and set_param_value.
3648 * doc/tm.texi: Likewise.
3650 2019-11-12 Martin Liska <mliska@suse.cz>
3652 * common.opt: Remove param_values.
3653 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3654 Remove finalize_options_struct.
3655 * gcc.c (driver::decode_argv): Do not call global_init_params
3657 (driver::finalize): Do not call params_c_finalize
3658 and finalize_options_struct.
3659 * opt-suggestions.c (option_proposer::get_completions): Remove
3660 special casing of params.
3661 (option_proposer::find_param_completions): Remove.
3662 (test_completion_partial_match): Update expected output.
3663 * opt-suggestions.h: Remove find_param_completions.
3664 * opts-common.c (add_misspelling_candidates): Add
3665 --param with a space.
3666 * opts.c (handle_param): Remove.
3667 (init_options_struct):. Remove init_options_struct and
3669 (finalize_options_struct): Remove.
3670 (common_handle_option): Use SET_OPTION_IF_UNSET.
3671 * opts.h (finalize_options_struct): Remove.
3672 * toplev.c (general_init): Do not call global_init_params.
3673 (toplev::finalize): Do not call params_c_finalize and
3674 finalize_options_struct.
3676 2019-11-12 Martin Liska <mliska@suse.cz>
3678 * Makefile.in: Remove PARAMS_H and params.list
3680 * params-enum.h: Remove.
3681 * params-list.h: Remove.
3682 * params-options.h: Remove.
3684 * params.def: Remove.
3686 * asan.c: Do not include params.h.
3687 * auto-profile.c: Likewise.
3688 * bb-reorder.c: Likewise.
3689 * builtins.c: Likewise.
3690 * cfgcleanup.c: Likewise.
3691 * cfgexpand.c: Likewise.
3692 * cfgloopanal.c: Likewise.
3693 * cgraph.c: Likewise.
3694 * combine.c: Likewise.
3695 * common/config/aarch64/aarch64-common.c: Likewise.
3696 * common/config/gcn/gcn-common.c: Likewise.
3697 * common/config/ia64/ia64-common.c: Likewise.
3698 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3699 * common/config/rs6000/rs6000-common.c: Likewise.
3700 * common/config/sh/sh-common.c: Likewise.
3701 * config/aarch64/aarch64.c: Likewise.
3702 * config/alpha/alpha.c: Likewise.
3703 * config/arm/arm.c: Likewise.
3704 * config/avr/avr.c: Likewise.
3705 * config/csky/csky.c: Likewise.
3706 * config/i386/i386-builtins.c: Likewise.
3707 * config/i386/i386-expand.c: Likewise.
3708 * config/i386/i386-features.c: Likewise.
3709 * config/i386/i386-options.c: Likewise.
3710 * config/i386/i386.c: Likewise.
3711 * config/ia64/ia64.c: Likewise.
3712 * config/rs6000/rs6000-logue.c: Likewise.
3713 * config/rs6000/rs6000.c: Likewise.
3714 * config/s390/s390.c: Likewise.
3715 * config/sparc/sparc.c: Likewise.
3716 * config/visium/visium.c: Likewise.
3717 * coverage.c: Likewise.
3718 * cprop.c: Likewise.
3720 * cselib.c: Likewise.
3722 * emit-rtl.c: Likewise.
3723 * explow.c: Likewise.
3724 * final.c: Likewise.
3725 * fold-const.c: Likewise.
3728 * ggc-common.c: Likewise.
3729 * ggc-page.c: Likewise.
3730 * gimple-loop-interchange.cc: Likewise.
3731 * gimple-loop-jam.c: Likewise.
3732 * gimple-loop-versioning.cc: Likewise.
3733 * gimple-ssa-split-paths.c: Likewise.
3734 * gimple-ssa-sprintf.c: Likewise.
3735 * gimple-ssa-store-merging.c: Likewise.
3736 * gimple-ssa-strength-reduction.c: Likewise.
3737 * gimple-ssa-warn-alloca.c: Likewise.
3738 * gimple-ssa-warn-restrict.c: Likewise.
3739 * graphite-isl-ast-to-gimple.c: Likewise.
3740 * graphite-optimize-isl.c: Likewise.
3741 * graphite-scop-detection.c: Likewise.
3742 * graphite-sese-to-poly.c: Likewise.
3743 * graphite.c: Likewise.
3744 * haifa-sched.c: Likewise.
3745 * hsa-gen.c: Likewise.
3746 * ifcvt.c: Likewise.
3747 * ipa-cp.c: Likewise.
3748 * ipa-fnsummary.c: Likewise.
3749 * ipa-inline-analysis.c: Likewise.
3750 * ipa-inline.c: Likewise.
3751 * ipa-polymorphic-call.c: Likewise.
3752 * ipa-profile.c: Likewise.
3753 * ipa-prop.c: Likewise.
3754 * ipa-split.c: Likewise.
3755 * ipa-sra.c: Likewise.
3756 * ira-build.c: Likewise.
3757 * ira-conflicts.c: Likewise.
3758 * loop-doloop.c: Likewise.
3759 * loop-invariant.c: Likewise.
3760 * loop-unroll.c: Likewise.
3761 * lra-assigns.c: Likewise.
3762 * lra-constraints.c: Likewise.
3763 * modulo-sched.c: Likewise.
3764 * opt-suggestions.c: Likewise.
3766 * postreload-gcse.c: Likewise.
3767 * predict.c: Likewise.
3768 * reload.c: Likewise.
3769 * reorg.c: Likewise.
3770 * resource.c: Likewise.
3771 * sanopt.c: Likewise.
3772 * sched-deps.c: Likewise.
3773 * sched-ebb.c: Likewise.
3774 * sched-rgn.c: Likewise.
3775 * sel-sched-ir.c: Likewise.
3776 * sel-sched.c: Likewise.
3777 * shrink-wrap.c: Likewise.
3779 * targhooks.c: Likewise.
3780 * toplev.c: Likewise.
3781 * tracer.c: Likewise.
3782 * trans-mem.c: Likewise.
3783 * tree-chrec.c: Likewise.
3784 * tree-data-ref.c: Likewise.
3785 * tree-if-conv.c: Likewise.
3786 * tree-inline.c: Likewise.
3787 * tree-loop-distribution.c: Likewise.
3788 * tree-parloops.c: Likewise.
3789 * tree-predcom.c: Likewise.
3790 * tree-profile.c: Likewise.
3791 * tree-scalar-evolution.c: Likewise.
3792 * tree-sra.c: Likewise.
3793 * tree-ssa-ccp.c: Likewise.
3794 * tree-ssa-dom.c: Likewise.
3795 * tree-ssa-dse.c: Likewise.
3796 * tree-ssa-ifcombine.c: Likewise.
3797 * tree-ssa-loop-ch.c: Likewise.
3798 * tree-ssa-loop-im.c: Likewise.
3799 * tree-ssa-loop-ivcanon.c: Likewise.
3800 * tree-ssa-loop-ivopts.c: Likewise.
3801 * tree-ssa-loop-manip.c: Likewise.
3802 * tree-ssa-loop-niter.c: Likewise.
3803 * tree-ssa-loop-prefetch.c: Likewise.
3804 * tree-ssa-loop-unswitch.c: Likewise.
3805 * tree-ssa-math-opts.c: Likewise.
3806 * tree-ssa-phiopt.c: Likewise.
3807 * tree-ssa-pre.c: Likewise.
3808 * tree-ssa-reassoc.c: Likewise.
3809 * tree-ssa-sccvn.c: Likewise.
3810 * tree-ssa-scopedtables.c: Likewise.
3811 * tree-ssa-sink.c: Likewise.
3812 * tree-ssa-strlen.c: Likewise.
3813 * tree-ssa-structalias.c: Likewise.
3814 * tree-ssa-tail-merge.c: Likewise.
3815 * tree-ssa-threadbackward.c: Likewise.
3816 * tree-ssa-threadedge.c: Likewise.
3817 * tree-ssa-uninit.c: Likewise.
3818 * tree-switch-conversion.c: Likewise.
3819 * tree-vect-data-refs.c: Likewise.
3820 * tree-vect-loop.c: Likewise.
3821 * tree-vect-slp.c: Likewise.
3822 * tree-vrp.c: Likewise.
3824 * value-prof.c: Likewise.
3825 * var-tracking.c: Likewise.
3827 2019-11-12 Martin Liska <mliska@suse.cz>
3829 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3830 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3832 (asan_sanitize_allocas_p): Likewise.
3833 (asan_emit_stack_protection): Likewise.
3834 (asan_protect_global): Likewise.
3835 (instrument_derefs): Likewise.
3836 (instrument_builtin_call): Likewise.
3837 (asan_expand_mark_ifn): Likewise.
3838 * auto-profile.c (auto_profile): Likewise.
3839 * bb-reorder.c (copy_bb_p): Likewise.
3840 (duplicate_computed_gotos): Likewise.
3841 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3842 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3843 (try_crossjump_bb): Likewise.
3844 * cfgexpand.c (defer_stack_allocation): Likewise.
3845 (stack_protect_classify_type): Likewise.
3846 (pass_expand::execute): Likewise.
3847 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3848 (estimate_reg_pressure_cost): Likewise.
3849 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3850 * combine.c (combine_instructions): Likewise.
3851 (record_value_for_reg): Likewise.
3852 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3853 (aarch64_option_default_params): Likewise.
3854 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3855 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3856 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3857 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3858 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3859 (aarch64_allocate_and_probe_stack_space): Likewise.
3860 (aarch64_expand_epilogue): Likewise.
3861 (aarch64_override_options_internal): Likewise.
3862 * config/alpha/alpha.c (alpha_option_override): Likewise.
3863 * config/arm/arm.c (arm_option_override): Likewise.
3864 (arm_valid_target_attribute_p): Likewise.
3865 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3866 * config/i386/i386.c (get_probe_interval): Likewise.
3867 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3868 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3869 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3870 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3871 (get_stack_clash_protection_guard_size): Likewise.
3872 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3873 * config/s390/s390.c (allocate_stack_space): Likewise.
3874 (s390_emit_prologue): Likewise.
3875 (s390_option_override_internal): Likewise.
3876 * config/sparc/sparc.c (sparc_option_override): Likewise.
3877 * config/visium/visium.c (visium_option_override): Likewise.
3878 * coverage.c (get_coverage_counts): Likewise.
3879 (coverage_compute_profile_id): Likewise.
3880 (coverage_begin_function): Likewise.
3881 (coverage_end_function): Likewise.
3882 * cse.c (cse_find_path): Likewise.
3883 (cse_extended_basic_block): Likewise.
3884 (cse_main): Likewise.
3885 * cselib.c (cselib_invalidate_mem): Likewise.
3886 * dse.c (dse_step1): Likewise.
3887 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3888 (get_max_insn_count): Likewise.
3889 (make_debug_insn_raw): Likewise.
3890 (init_emit): Likewise.
3891 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3892 * final.c (compute_alignments): Likewise.
3893 * fold-const.c (fold_range_test): Likewise.
3894 (fold_truth_andor): Likewise.
3895 (tree_single_nonnegative_warnv_p): Likewise.
3896 (integer_valued_real_single_p): Likewise.
3897 * gcse.c (want_to_gcse_p): Likewise.
3898 (prune_insertions_deletions): Likewise.
3899 (hoist_code): Likewise.
3900 (gcse_or_cprop_is_too_expensive): Likewise.
3901 * ggc-common.c: Likewise.
3902 * ggc-page.c (ggc_collect): Likewise.
3903 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3904 (MAX_DATAREFS): Likewise.
3905 (OUTER_STRIDE_RATIO): Likewise.
3906 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3907 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3908 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3909 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3910 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3911 (imm_store_chain_info::output_merged_store): Likewise.
3912 (pass_store_merging::process_store): Likewise.
3913 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3914 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3915 (scop_to_isl_ast): Likewise.
3916 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3917 (optimize_isl): Likewise.
3918 * graphite-scop-detection.c (build_scops): Likewise.
3919 * haifa-sched.c (set_modulo_params): Likewise.
3920 (rank_for_schedule): Likewise.
3921 (model_add_to_worklist): Likewise.
3922 (model_promote_insn): Likewise.
3923 (model_choose_insn): Likewise.
3924 (queue_to_ready): Likewise.
3925 (autopref_multipass_dfa_lookahead_guard): Likewise.
3926 (schedule_block): Likewise.
3927 (sched_init): Likewise.
3928 * hsa-gen.c (init_prologue): Likewise.
3929 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3930 (cond_move_process_if_block): Likewise.
3931 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3932 (merge_agg_lats_step): Likewise.
3933 (devirtualization_time_bonus): Likewise.
3934 (hint_time_bonus): Likewise.
3935 (incorporate_penalties): Likewise.
3936 (good_cloning_opportunity_p): Likewise.
3937 (ipcp_propagate_stage): Likewise.
3938 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3939 (set_switch_stmt_execution_predicate): Likewise.
3940 (analyze_function_body): Likewise.
3941 (compute_fn_summary): Likewise.
3942 * ipa-inline-analysis.c (estimate_growth): Likewise.
3943 * ipa-inline.c (caller_growth_limits): Likewise.
3944 (inline_insns_single): Likewise.
3945 (inline_insns_auto): Likewise.
3946 (can_inline_edge_by_limits_p): Likewise.
3947 (want_early_inline_function_p): Likewise.
3948 (big_speedup_p): Likewise.
3949 (want_inline_small_function_p): Likewise.
3950 (want_inline_self_recursive_call_p): Likewise.
3951 (edge_badness): Likewise.
3952 (recursive_inlining): Likewise.
3953 (compute_max_insns): Likewise.
3954 (early_inliner): Likewise.
3955 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
3956 * ipa-profile.c (ipa_profile): Likewise.
3957 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
3958 (ipa_analyze_node): Likewise.
3959 (ipcp_transform_function): Likewise.
3960 * ipa-split.c (consider_split): Likewise.
3961 * ipa-sra.c (allocate_access): Likewise.
3962 (process_scan_results): Likewise.
3963 (ipa_sra_summarize_function): Likewise.
3964 (pull_accesses_from_callee): Likewise.
3965 * ira-build.c (loop_compare_func): Likewise.
3966 (mark_loops_for_removal): Likewise.
3967 * ira-conflicts.c (build_conflict_bit_table): Likewise.
3968 * loop-doloop.c (doloop_optimize): Likewise.
3969 * loop-invariant.c (gain_for_invariant): Likewise.
3970 (move_loop_invariants): Likewise.
3971 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
3972 (decide_unroll_runtime_iterations): Likewise.
3973 (decide_unroll_stupid): Likewise.
3974 (expand_var_during_unrolling): Likewise.
3975 * lra-assigns.c (spill_for): Likewise.
3976 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
3977 * modulo-sched.c (sms_schedule): Likewise.
3978 (DFA_HISTORY): Likewise.
3979 * opts.c (default_options_optimization): Likewise.
3980 (finish_options): Likewise.
3981 (common_handle_option): Likewise.
3982 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3984 * predict.c (get_hot_bb_threshold): Likewise.
3985 (maybe_hot_count_p): Likewise.
3986 (probably_never_executed): Likewise.
3987 (predictable_edge_p): Likewise.
3988 (predict_loops): Likewise.
3989 (expr_expected_value_1): Likewise.
3990 (tree_predict_by_opcode): Likewise.
3991 (handle_missing_profiles): Likewise.
3992 * reload.c (find_equiv_reg): Likewise.
3993 * reorg.c (redundant_insn): Likewise.
3994 * resource.c (mark_target_live_regs): Likewise.
3995 (incr_ticks_for_insn): Likewise.
3996 * sanopt.c (pass_sanopt::execute): Likewise.
3997 * sched-deps.c (sched_analyze_1): Likewise.
3998 (sched_analyze_2): Likewise.
3999 (sched_analyze_insn): Likewise.
4000 (deps_analyze_insn): Likewise.
4001 * sched-ebb.c (schedule_ebbs): Likewise.
4002 * sched-rgn.c (find_single_block_region): Likewise.
4003 (too_large): Likewise.
4004 (haifa_find_rgns): Likewise.
4005 (extend_rgns): Likewise.
4006 (new_ready): Likewise.
4007 (schedule_region): Likewise.
4008 (sched_rgn_init): Likewise.
4009 * sel-sched-ir.c (make_region_from_loop): Likewise.
4010 * sel-sched-ir.h (MAX_WS): Likewise.
4011 * sel-sched.c (process_pipelined_exprs): Likewise.
4012 (sel_setup_region_sched_flags): Likewise.
4013 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4014 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4015 * toplev.c (print_version): Likewise.
4016 (process_options): Likewise.
4017 * tracer.c (tail_duplicate): Likewise.
4018 * trans-mem.c (tm_log_add): Likewise.
4019 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4020 * tree-data-ref.c (split_constant_offset): Likewise.
4021 (compute_all_dependences): Likewise.
4022 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4023 * tree-inline.c (remap_gimple_stmt): Likewise.
4024 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4025 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4026 (create_parallel_loop): Likewise.
4027 * tree-predcom.c (determine_unroll_factor): Likewise.
4028 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4029 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4030 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4031 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4032 (dse_optimize_redundant_stores): Likewise.
4033 (dse_classify_store): Likewise.
4034 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4035 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4036 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4037 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4038 (try_peel_loop): Likewise.
4039 (tree_unroll_loops_completely): Likewise.
4040 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4041 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4042 (MAX_CONSIDERED_GROUPS): Likewise.
4043 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4044 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4045 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4046 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4047 (L1_CACHE_SIZE_BYTES): Likewise.
4048 (L2_CACHE_SIZE_BYTES): Likewise.
4049 (should_issue_prefetch_p): Likewise.
4050 (schedule_prefetches): Likewise.
4051 (determine_unroll_factor): Likewise.
4052 (volume_of_references): Likewise.
4053 (add_subscript_strides): Likewise.
4054 (self_reuse_distance): Likewise.
4055 (mem_ref_count_reasonable_p): Likewise.
4056 (insn_to_prefetch_ratio_too_small_p): Likewise.
4057 (loop_prefetch_arrays): Likewise.
4058 (tree_ssa_prefetch_arrays): Likewise.
4059 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4060 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4061 (convert_mult_to_fma): Likewise.
4062 (math_opts_dom_walker::after_dom_children): Likewise.
4063 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4064 (hoist_adjacent_loads): Likewise.
4065 (gate_hoist_loads): Likewise.
4066 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4067 (compute_partial_antic_aux): Likewise.
4068 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4069 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4070 (vn_reference_lookup): Likewise.
4071 (do_rpo_vn): Likewise.
4072 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4073 * tree-ssa-sink.c (select_best_block): Likewise.
4074 * tree-ssa-strlen.c (new_stridx): Likewise.
4075 (new_addr_stridx): Likewise.
4076 (get_range_strlen_dynamic): Likewise.
4077 (class ssa_name_limit_t): Likewise.
4078 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4079 (create_variable_info_for_1): Likewise.
4080 (init_alias_vars): Likewise.
4081 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4082 (tail_merge_optimize): Likewise.
4083 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4084 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4085 (thread_jumps::find_jump_threads_backwards): Likewise.
4086 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4087 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4088 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4089 (jump_table_cluster::can_be_handled): Likewise.
4090 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4091 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4092 (param_switch_conversion_branch_ratio): Likewise.
4093 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4094 (vect_enhance_data_refs_alignment): Likewise.
4095 (vect_prune_runtime_alias_test_list): Likewise.
4096 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4097 (vect_get_datarefs_in_loop): Likewise.
4098 (vect_analyze_loop): Likewise.
4099 * tree-vect-slp.c (vect_slp_bb): Likewise.
4100 * tree-vectorizer.h: Likewise.
4101 * tree-vrp.c (find_switch_asserts): Likewise.
4102 (vrp_prop::check_mem_ref): Likewise.
4103 * tree.c (wide_int_to_tree_1): Likewise.
4104 (cache_integer_cst): Likewise.
4105 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4106 (reverse_op): Likewise.
4107 (vt_find_locations): Likewise.
4109 2019-11-12 Martin Liska <mliska@suse.cz>
4111 * Makefile.in: Include params.opt.
4112 * flag-types.h (enum parloops_schedule_type): Add
4113 parloops_schedule_type used in params.opt.
4114 * params.opt: New file.
4116 2019-11-12 Martin Liska <mliska@suse.cz>
4118 * common.opt: Remove --param and --param= options.
4119 * opt-functions.awk: Mark CL_PARAMS for options
4120 that have Param keyword.
4121 * opts-common.c (decode_cmdline_options_to_array):
4122 Replace --param key=value with --param=key=value.
4123 * opts.c (print_filtered_help): Remove special
4125 (print_specific_help): Update title for params.
4126 (common_handle_option): Do not handle OPT__param.
4127 opts.h (SET_OPTION_IF_UNSET): New macro.
4128 * doc/options.texi: Document Param keyword.
4130 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4131 Frederik Harwath <frederik@codesourcery.com>
4132 Thomas Schwinge <thomas@codesourcery.com>
4135 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4136 enumeration constant.
4137 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4138 (is_gimple_omp_offloaded): Likewise.
4139 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4140 constant. Adjust the value of ORT_NONE accordingly.
4141 (is_gimple_stmt): Handle OACC_SERIAL.
4142 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4143 (gomp_needs_data_present): Likewise.
4144 (gimplify_adjust_omp_clauses): Likewise.
4145 (gimplify_omp_workshare): Handle OACC_SERIAL.
4146 (gimplify_expr): Likewise.
4147 * omp-expand.c (expand_omp_target):
4148 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4149 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4150 * omp-low.c (is_oacc_parallel): Rename function to...
4151 (is_oacc_parallel_or_serial): ... this.
4152 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4153 (scan_sharing_clauses): Adjust accordingly.
4154 (scan_omp_for): Likewise.
4155 (lower_oacc_head_mark): Likewise.
4156 (convert_from_firstprivate_int): Likewise.
4157 (lower_omp_target): Likewise.
4158 (check_omp_nesting_restrictions): Handle
4159 GF_OMP_TARGET_KIND_OACC_SERIAL.
4160 (lower_oacc_reductions): Likewise.
4161 (lower_omp_target): Likewise.
4162 * tree.def (OACC_SERIAL): New tree code.
4163 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4165 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4167 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4170 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4171 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4173 PR tree-optimization/92452
4174 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4175 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4178 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4180 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4183 2019-11-12 Alan Modra <amodra@gmail.com>
4185 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4186 element of unspec vec.
4187 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4189 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4190 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4191 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4192 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4194 2019-11-12 Alan Modra <amodra@gmail.com>
4196 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4197 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4198 (IS_NOMARK_TLSGETADDR): Likewise.
4199 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4200 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4201 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4202 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4203 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4204 (rs6000_indirect_call_template_1): Likewise.
4205 (rs6000_pltseq_template): Likewise.
4206 (rs6000_opt_vars): Remove "tls-markers" entry.
4207 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4209 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4210 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4211 (pltseq_plt_pcrel<mode>): Likewise.
4212 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4213 (call_value_local64): Likewise.
4214 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4215 output and length attribute sub-expression.
4216 (call_value_nonlocal_sysv<mode>),
4217 (call_value_nonlocal_sysv_secure<mode>),
4218 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4219 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4220 (call_value_indirect_pcrel<mode>): Likewise.
4221 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4222 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4223 * configure: Regenerate.
4224 * config.in: Regenerate.
4226 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4228 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4229 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4230 address being a prefixed load/store.
4231 (stack_protect_testdi): Deal with either address being a prefixed
4234 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4237 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4238 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4241 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4243 PR tree-optimization/92420
4244 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4246 (get_group_load_store_type): Use it for reversed SLP accesses.
4248 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4250 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4252 (ipcp_transformation_t::duplicate): Break out from ...
4253 (ipa_node_params_t::duplicate): ... here; add copying of agg
4255 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4256 (ipcp_transformation_t): Add duplicate.
4258 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4261 * doc/install.texi: Document that the minimum MPFR version is
4264 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4266 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4267 use new register constraint letters.
4269 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4271 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4272 as well, if interesting recover the symbol and re-legitimize the
4275 2019-11-11 Martin Liska <mliska@suse.cz>
4277 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4280 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4282 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4283 account when checking if there are enough iterations to vectorize
4286 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4287 Kwok Cheung Yeung <kcy@codesourcery.com>
4289 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4290 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4291 (LANG_HOOKS_DECLS): Rename also here.
4292 * langhooks.h (lang_hooks_for_decls): Rename
4293 omp_is_optional_argument to omp_check_optional_argument; take
4294 additional bool argument.
4295 * omp-general.h (omp_check_optional_argument): Likewise.
4296 * omp-general.h (omp_check_optional_argument): Likewise.
4297 * omp-low.c (lower_omp_target): Update calls; handle absent
4298 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4300 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4303 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4304 -fPIC and -shared the last to create offload image.
4306 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4308 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4311 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4312 (config.status): Use/depend on it.
4313 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4314 * configure: Regenerate.
4316 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4318 PR tree-optimization/88760
4319 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4320 * gcc/common/config/rs6000/rs6000-common.c
4321 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4322 Turn on -funroll-loops and -munroll-only-small-loops.
4323 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4324 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4325 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4326 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4327 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4328 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4330 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4332 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4333 Make scalar_load, vector_load, unaligned_load and
4334 vector_gather_load cost more to conform hardware latency and
4337 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4339 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4340 (MACHO_SYMBOL_LINKER_VIS_P): New.
4342 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4344 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4345 registers in eliminable_regset.
4347 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4349 * ipa-inline.c (compute_uninlined_call_time,
4350 compute_inlined_call_time): Take edge frequency as
4351 parameter rather than computing it by itself.
4352 (big_speedup_p, edge_badness): Manually CSE sreal
4353 frequency calculations.
4355 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4357 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4358 case where profiles are same.
4360 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4362 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4364 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4366 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4367 args summaries of inlined edge unless it holds info about
4368 described reference.
4370 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4372 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4373 (*movcc_internal1): Rename to...
4374 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4376 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4378 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4379 (cgraph_node::create_virtual_clone): Copy it.
4380 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4382 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4383 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4385 (propagate_constants_across_call): If callee is not analyzed, give up.
4386 (propagate_constants_topo): Lower to bottom latties of all callees of
4387 functions with ipa-cp disabled.
4388 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4389 (cgraph_edge_brings_value_p): Check for availability first.
4390 (create_specialized_node): Set ipcp_clone.
4391 (ipcp_store_bits_results): Check that info is present.
4392 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4394 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4395 conservative when callee summary is missing.
4396 (remap_edge_summaries): Lookup call summary only when needed.
4397 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4398 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4400 (ipa_analyze_node): Use get_create.
4401 (propagate_controlled_uses): Do not propagate when function is not
4403 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4404 (ipa_read_node_info): Use get_create.
4405 * ipa-prop.h (IPA_NODE_REF): Use get.
4406 (IPA_NODE_REF_GET_CREATE): New.
4408 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4410 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4413 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4415 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4416 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4417 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4418 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4420 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4422 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4423 capping the growth cumulated.
4424 (offline_size): Break out from ...
4425 (estimate_growth): ... here.
4426 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4428 (growth_likely_positive): Turn to ...
4429 (growth_positive_p): Re-implement.
4430 * ipa-inline.h (growth_likely_positive): Remove.
4431 (growth_positive_p): Declare.
4432 * ipa-inline.c (want_inline_small_function_p): Use
4434 (want_inline_function_to_all_callers_p): Likewise.
4436 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4438 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4439 calculation of min_size.
4440 (ipa_update_overall_fn_summary): Likewise.
4442 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4444 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4445 estimate_edge_devirt_benefit when not computing hints;
4446 do not compute time when not asked for.
4447 (estimate_calls_size_and_time): Pass NULL hints and time when
4448 these are not computed; do not evaluate hint predicates when these are
4450 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4453 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4455 PR tree-optimization/92401
4456 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4457 if res_op->code is an expression with code length 1.
4458 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4459 if res_op->code is an expression with code length 2.
4460 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4461 if res_op->code is an expression with code length 3.
4463 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4465 * config/darwin.c (machopic_mcount_stub_name): Validate the
4466 symbol stub name when it is created.
4467 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4470 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4472 * symtab.c: Fix comment typos.
4473 * cgraphunit.c: Likewise.
4474 * cgraph.h: Likewise.
4475 * cgraphclones.c: Likewise.
4476 * cgraph.c: Likewise.
4477 * varpool.c: Likewise.
4478 * tree-ssa-strlen.c: Likewise.
4479 * ipa-sra.c: Likewise.
4480 (scan_expr_access, check_all_callers_for_issues): Fix typo
4483 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4485 * config/darwin-protos.h: Add include quard.
4487 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4489 * range-op.h (range_operator::fold_range): Return result in a
4490 reference parameter instead of by value.
4491 (range_operator::wi_fold): Same.
4492 * range-op.cc (range_operator::wi_fold): Return result in a reference
4493 parameter instead of by value.
4494 (range_operator::fold_range): Same.
4495 (value_range_from_overflowed_bounds): Same.
4496 (value_range_with_overflow): Same
4497 (create_possibly_reversed_range): Same.
4498 (operator_equal::fold_range): Same.
4499 (operator_not_equal::fold_range): Same.
4500 (operator_lt::fold_range): Same.
4501 (operator_le::fold_range): Same.
4502 (operator_gt::fold_range): Same.
4503 (operator_ge::fold_range): Same.
4504 (operator_plus::wi_fold): Same.
4505 (operator_plus::op1_range): Change call to fold_range.
4506 (operator_plus::op2_range): Change call to fold_range.
4507 (operator_minus::wi_fold): Return result via reference parameter.
4508 (operator_minus::op1_range): Change call to fold_range.
4509 (operator_minus::op2_range): Change call to fold_range.
4510 (operator_min::wi_fold): Return result via reference parameter.
4511 (operator_max::wi_fold): Same.
4512 (cross_product_operator::wi_cross_product): Same.
4513 (operator_mult::wi_fold): Same.
4514 (operator_div::wi_fold): Same.
4515 (operator_div op_floor_div): Fix whitespace.
4516 (operator_exact_divide::op1_range): Change call to fold_range.
4517 (operator_lshift::fold_range): Return result via reference parameter.
4518 (operator_lshift::wi_fold): Same.
4519 (operator_rshift::fold_range): Same.
4520 (operator_rshift::wi_fold): Same.
4521 (operator_cast::fold_range): Same.
4522 (operator_cast::op1_range): Change calls to fold_range.
4523 (operator_logical_and::fold_range): Return result via reference.
4524 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4525 (operator_bitwise_and::wi_fold): Return result via reference.
4526 (operator_logical_or::fold_range): Same.
4527 (operator_bitwise_or::wi_fold): Same.
4528 (operator_bitwise_xor::wi_fold): Same.
4529 (operator_trunc_mod::wi_fold): Same.
4530 (operator_logical_not::fold_range): Same.
4531 (operator_bitwise_not::fold_range): Same.
4532 (operator_bitwise_not::op1_range): Change call to fold_range.
4533 (operator_cst::fold_range): Return result via reference.
4534 (operator_identity::fold_range): Same.
4535 (operator_abs::wi_fold): Same.
4536 (operator_absu::wi_fold): Same.
4537 (operator_negate::fold_range): Same.
4538 (operator_negate::op1_range): Change call to fold_range.
4539 (operator_addr_expr::fold_range): Return result via reference.
4540 (operator_addr_expr::op1_range): Change call to fold_range.
4541 (operator_pointer_plus::wi_fold): Return result via reference.
4542 (operator_pointer_min_max::wi_fold): Same.
4543 (operator_pointer_and::wi_fold): Same.
4544 (operator_pointer_or::wi_fold): Same.
4545 (range_op_handler): Change call to fold_range.
4547 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4549 (range_fold_unary_symbolics_p): Same.
4550 (range_fold_binary_expr): Same.
4551 (range_fold_unary_expr): Same.
4553 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4555 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4556 vector type as an argument rather than reading it from the
4558 (vect_create_epilog_for_reduction): Update accordingly.
4559 (vectorizable_reduction): Likewise.
4560 (vect_transform_cycle_phi): Likewise.
4562 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4564 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4565 the comparison codes that make sense for the mode used, and only the
4566 codes that can be done with a single branch instruction.
4568 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4570 PR tree-optimization/92351
4571 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4572 peeling the main loop for alignment, make sure to set the misalignment
4573 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4575 2019-11-08 Richard Biener <rguenther@suse.de>
4577 * dbgcnt.def (ivopts_loop): Add.
4578 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4579 ivopts_loop before optimizing a loop.
4581 2019-11-08 Richard Biener <rguenther@suse.de>
4584 * tree-inline.c (declare_return_variable): Properly handle
4585 type mismatches for the return slot.
4587 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4590 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4591 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4593 (got_helper_needed): New static variable.
4594 (output_load_pcrel_sym): New function.
4595 (get_pc_thunk_name): Remove after inlining...
4596 (load_got_register): ...here. Rework the initialization of the GOT
4597 register and of the GOT helper.
4598 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4599 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4600 helper must be emitted. Use output_asm_insn instead of fprintf.
4601 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4602 if optimization is enabled.
4603 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4604 by calling output_load_pcrel_sym.
4606 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4608 * tree-sra.c (create_access): Delay disqualifying the base
4609 for poly_int values until we know we have a base.
4611 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4613 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4614 for loops with SIMDUID set. Enable epilogue vectorization for loops
4615 with SIMDLEN set after finding a main loop with a VF that matches it.
4617 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4620 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4621 value only, return non-NULL if there is a single non-clobber
4622 constituent store even if there are constituent clobbers and return
4623 one of clobber constituent stores if all constituent stores are
4625 (split_group): Handle clobbers.
4626 (imm_store_chain_info::output_merged_store): When computing
4627 bzero_first, look after all clobbers at the start. Don't count
4628 clobber stmts in orig_num_stmts, except if the first orig store is
4629 a clobber covering the whole area and split_stores cover the whole
4630 area, consider equal number of stmts ok. Punt if split_stores
4631 contains only ->orig stores and their number plus number of original
4632 clobbers is equal to original number of stmts. For ->orig, look past
4633 clobbers in the constituent stores.
4634 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4636 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4638 (store_valid_for_store_merging_p): Allow clobber stmts.
4639 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4642 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4643 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4645 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4646 force creation of a unique data.stack_parm slot.
4648 2019-11-08 Richard Biener <rguenther@suse.de>
4650 * genmatch.c (expr::gen_transform): Use the resimplify
4651 member function instead of hard-coding the gimple_resimplifyN variant.
4652 (dt_simplify::gen_1): Likewise.
4654 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4656 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4659 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4661 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4662 instead of INTEGER_CST.
4664 2019-11-08 Richard Biener <rguenther@suse.de>
4666 PR tree-optimization/92324
4667 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4668 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4669 sign-conversions as necessary.
4670 (vectorizable_reduction): Reject conversions in the chain
4671 that are not sign-conversions, base analysis on a non-converting
4672 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4673 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4675 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4676 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4678 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4681 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4682 Fix a missing '-' when displaying these options in the
4685 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4687 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4689 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4691 * config/aarch64/aarch64-builtins.c
4692 (aarch64_builtin_vectorized_function): Remove bswap handling.
4694 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4696 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4697 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4698 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4699 Treat the vector types as indivisible.
4701 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4703 * optabs.def (gather_load_optab, mask_gather_load_optab)
4704 (scatter_store_optab, mask_scatter_store_optab): Turn into
4705 conversion optabs, with the offset mode given explicitly.
4706 * doc/md.texi: Update accordingly.
4707 * config/aarch64/aarch64-sve-builtins-base.cc
4708 (svld1_gather_impl::expand): Likewise.
4709 (svst1_scatter_impl::expand): Likewise.
4710 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4711 (expand_scatter_store_optab_fn): Likewise.
4712 (direct_gather_load_optab_supported_p): Likewise.
4713 (direct_scatter_store_optab_supported_p): Likewise.
4714 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4716 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4717 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4718 argument with the offset vector type. Require the two vector
4719 types to have the same number of elements but allow their element
4720 sizes to be different. Treat the optabs as conversion optabs.
4721 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4722 prototype accordingly.
4723 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4724 (supports_vec_convert_optab_p): ...this new function.
4725 (supports_vec_gather_load_p): Update accordingly.
4726 (supports_vec_scatter_store_p): Likewise.
4727 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4728 Replace the offset sign and bits parameters with a scalar type tree.
4729 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4730 Pass back the offset vector type instead of the scalar element type.
4731 Allow the offset to be wider than the memory elements. Search for
4732 an offset type that the target supports, stopping once we've
4733 reached the maximum of the element size and pointer size.
4734 Update call to internal_gather_scatter_fn_supported_p.
4735 (vect_check_gather_scatter): Update calls accordingly.
4736 When testing a new scale before knowing the final offset type,
4737 check whether the scale is supported for any signed or unsigned
4738 offset type. Check whether the target supports the source and
4739 target types of a conversion before deciding whether to look
4740 through the conversion. Record the chosen offset_vectype.
4741 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4742 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4743 directly from the gs_info's offset_vectype instead. Pass a zero
4744 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4745 * tree-vect-stmts.c (check_load_store_masking): Update call to
4746 internal_gather_scatter_fn_supported_p, passing the offset vector
4747 type recorded in the gs_info.
4748 (vect_truncate_gather_scatter_offset): Update call to
4749 vect_check_gather_scatter, leaving it to search for a valid
4751 (vect_use_strided_gather_scatters_p): Convert the offset to the
4752 element type of the gs_info's offset_vectype.
4753 (vect_get_gather_scatter_ops): Get the offset vector type directly
4755 (vect_get_strided_load_store_ops): Likewise.
4756 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4757 and IFN_MASK_GATHER_LOAD.
4758 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4759 (gather_load<mode><v_int_equiv>): ...this.
4760 (mask_gather_load<mode>): Rename to...
4761 (mask_gather_load<mode><v_int_equiv>): ...this.
4762 (scatter_store<mode>): Rename to...
4763 (scatter_store<mode><v_int_equiv>): ...this.
4764 (mask_scatter_store<mode>): Rename to...
4765 (mask_scatter_store<mode><v_int_equiv>): ...this.
4767 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4770 * config/rs6000/predicates.md
4771 (signed_or_equality_comparison_operator): New predicate.
4772 (unsigned_or_equality_comparison_operator): Likewise.
4773 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4774 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4775 * config/rs6000/vector.md
4776 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4777 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4778 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4779 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4780 vector modes and same-size integer vector modes.
4781 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4782 (vector_lt<mode> for VEC_F): New expand.
4783 (vector_le<mode> for VEC_F): Likewise.
4784 (vector_ne<mode> for VEC_F): Likewise.
4785 (vector_unge<mode> for VEC_F): Likewise.
4786 (vector_ungt<mode> for VEC_F): Likewise.
4787 (vector_unle<mode> for VEC_F): Likewise.
4788 (vector_unlt<mode> for VEC_F): Likewise.
4789 (vector_uneq<mode>): Expose name.
4790 (vector_ltgt<mode>): Likewise.
4791 (vector_unordered<mode>): Likewise.
4792 (vector_ordered<mode>): Likewise.
4794 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4797 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4798 Enhance ix86_expand_vector_init_concat.
4800 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4802 * doc/invoke.texi (-Wold-style-definition): Document () not being
4803 considered an old-style definition for C2x.
4805 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4807 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4809 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4810 insn patterns using ldcw instruction.
4811 (memory_barrier): Remove insn pattern using sync instruction.
4812 * config/pa/pa.opt (coherent-ldcw): New option.
4813 (ordered): New option.
4815 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4817 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4820 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4822 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4823 typo - mistmatch -> mismatch.
4824 * ipa-profile.c (ipa_profile): Likewise.
4825 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4826 - mistmatch -> mismatch.
4828 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4830 * simplify-rtx.c (comparison_to_mask): New function.
4831 (mask_to_comparison): New function.
4832 (simplify_logical_relational_operation): New function.
4833 (simplify_binary_operation_1): Call
4834 simplify_logical_relational_operation.
4836 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4839 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4840 modes for integer constants.
4842 2019-11-07 Jan Hubicka <jh@suse.cz>
4845 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4848 2019-11-07 Jan Hubicka <jh@suse.cz>
4850 * optc-save-gen.awk: Generate cl_target_option_free
4851 and cl_optimization_option_free.
4852 * opth-en.awk: Declare cl_target_option_free
4853 and cl_optimization_option_free.
4854 * tree.c (free_node): Use it.
4856 2019-11-06 Jan Hubicka <jh@suse.cz>
4858 * lto-streamer-in.c: Include alloc-pool.h.
4859 (freeing_string_slot_hasher): Remove.
4860 (string_slot_allocator): New object allocator.
4861 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4862 (file_name_obstack): New obstack.
4863 (canon_file_name): Allocate in obstack and allocator.
4864 (lto_reader_init): Initialize obstack and allocator.
4865 (lto_free_file_name_hash): New function.
4866 * lto-streamer.h (lto_free_file_name_hash): New.
4868 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4870 PR tree-optimization/89134
4871 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4872 * params.def: Add min-loop-cond-split-prob.
4873 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4874 outside checks on loop into the function.
4875 (split_info): New class.
4876 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4877 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4878 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4879 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4880 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4881 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4882 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4883 (split_loop_on_cond): Likewise.
4884 (tree_ssa_split_loops): Add loop split on conditional statement.
4886 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4888 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4891 2019-11-07 Richard Biener <rguenther@suse.de>
4893 PR tree-optimization/92405
4894 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4895 restrict lane-reducing ops to single stmt chains.
4897 2019-11-07 Martin Jambor <mjambor@suse.cz>
4900 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4901 * cgraph.h (gimple_check_call_matching_types): Remove
4902 * cgraph.c (gimple_check_call_args): Likewise.
4903 (gimple_check_call_matching_types): Likewise.
4904 (symbol_table::create_edge): Do not call
4905 gimple_check_call_matching_types.
4906 (cgraph_edge::make_direct): Likewise.
4907 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4908 * value-prof.h (check_ic_target): Remove.
4909 * value-prof.c (check_ic_target): Remove.
4910 (gimple_ic_transform): Do nat call check_ic_target.
4911 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4912 (afdo_indirect_call): Likewise.
4913 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4914 gimple_check_call_matching_types.
4915 * ipa-inline.c (early_inliner): Likewise.
4917 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4919 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4920 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4921 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4922 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4923 * config/arm/iterators.md (USSAT16): New int_iterator.
4924 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4926 * config/arm/predicates.md (ssat16_imm): New predicate.
4927 (usat16_imm): Likewise.
4928 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4930 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4932 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4934 (arm_<simd32_op>): New define_expands.
4935 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4936 __smuad, __smuadx): Define.
4937 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4938 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4939 (SIMD32_BINOP_Q): Likewise.
4940 (simd32_op): Handle the above.
4941 * config/arm/unspecs.md: Define unspecs for the above.
4943 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4945 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
4946 * config/arm/arm.md (APSRGE_REGNUM): Define.
4947 (arm_<simd32_op>): New define_insn.
4948 (arm_sel): Likewise.
4949 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
4950 (CALL_USED_REGISTERS): Likewise.
4951 (REG_ALLOC_ORDER): Likewise.
4952 (FIRST_PSEUDO_REGISTER): Update value.
4953 (ARM_GE_BITS_READ): Define.
4954 * config/arm/arm.c (arm_conditional_register_usage): Clear
4955 APSRGE_REGNUM from operand_reg_set.
4956 (arm_ge_bits_access): Define.
4957 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
4959 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
4960 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
4961 FAIL if ARM_GE_BITS_READ.
4962 (*arm_add<mode>3): New define_insn.
4963 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
4964 (*arm_sub<mode>3): New define_insn.
4965 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
4966 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
4968 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4969 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
4970 (simd32_op): Handle the above.
4971 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
4972 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
4973 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
4974 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
4976 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4978 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
4979 (arm_smlabb): New define_expand.
4980 (*maddhisi4tb): Rename to...
4981 (maddhisi4tb): ... This.
4982 (*maddhisi4tt): Rename to...
4983 (maddhisi4tt): ... This.
4984 (arm_smlatb_setq): New define_insn.
4985 (arm_smlatb): New define_expand.
4986 (arm_smlatt_setq): New define_insn.
4987 (arm_smlatt): New define_expand.
4988 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
4989 (arm_<smlaw_op>): New define_expand.
4990 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
4991 __smlawb, __smlawt): Define.
4992 * config/arm_acle_builtins.def: Define builtins for the above.
4993 * config/arm/iterators.md (SMLAWBT): New int_iterator.
4994 (slaw_op): New int_attribute.
4995 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
4997 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4999 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5000 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5001 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5002 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5003 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5004 (ss_op): New code_attr.
5006 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5008 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5009 * config/arm/arm.md (APSRQ_REGNUM): Define.
5010 (add_setq): New define_subst.
5011 (add_clobber_q_name): New define_subst_attr.
5012 (add_clobber_q_pred): Likewise.
5013 (maddhisi4): Change to define_expand. Split into mult and add if
5015 (arm_maddhisi4): New define_insn.
5016 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5017 (*maddhisi4tt): Likewise.
5018 (arm_ssat): New define_expand.
5019 (arm_usat): Likewise.
5020 (arm_get_apsr): New define_insn.
5021 (arm_set_apsr): Likewise.
5022 (arm_saturation_occurred): New define_expand.
5023 (arm_set_saturation): Likewise.
5024 (*satsi_<SAT:code>): Rename to...
5025 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5026 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5027 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5028 (CALL_USED_REGISTERS): Mark apsrq.
5029 (FIRST_PSEUDO_REGISTER): Update value.
5030 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5031 (machine_function): Add q_bit_access.
5032 (ARM_Q_BIT_READ): Define.
5033 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5034 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5036 (arm_q_bit_access): Define.
5037 * config/arm/arm-builtins.c: Include stringpool.h.
5038 (arm_sat_binop_imm_qualifiers,
5039 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5040 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5041 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5042 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5043 SET_SAT_QUALIFIERS): Likewise.
5044 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5045 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5046 Handle 0 argument expander.
5047 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5048 (arm_check_builtin_call): Define.
5049 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5050 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5051 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5052 (arm_q_bit_access): Likewise.
5053 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5054 __saturation_occurred, __set_saturation_occurred): Define.
5055 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5056 saturation_occurred, set_saturation_occurred.
5057 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5058 (UNSPEC_APSR_READ): Likewise.
5059 (VUNSPEC_APSR_WRITE): Likewise.
5060 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5061 (*arm_ssadd<mode>3): New define_insn.
5062 (sssub<mode>3): Convert to define_expand.
5063 (*arm_sssub<mode>3): New define_insn.
5064 (ssmulsa3): Convert to define_expand.
5065 (*arm_ssmulsa3): New define_insn.
5066 (usmulusa3): Convert to define_expand.
5067 (*arm_usmulusa3): New define_insn.
5068 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5069 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5070 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5072 2019-11-07 Martin Liska <mliska@suse.cz>
5075 * cgraph.c (delete_function_version): Clear global
5076 variable version_info_node if equal to deleted
5079 2019-11-07 Martin Liska <mliska@suse.cz>
5081 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5082 of CONSTRUCTOR_NO_CLEARING.
5083 (operand_compare::hash_operand): Likewise.
5085 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5087 Support 64-bit double and 64-bit long double configurations.
5090 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5091 --with-long-double=.
5092 * config/avr/t-multilib: Remove.
5093 * config/avr/t-avr: Output of genmultilib.awk is now fully
5094 dynamically generated and no more part of the repo.
5095 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5096 Pass them down to...
5097 * config/avr/genmultilib.awk: ...here and handle them.
5098 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5099 (-mlong-double=, avr_long_double). New option and var.
5100 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5101 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5102 Set default as requested by --with-double=
5103 (TARGET_HANDLE_OPTION): Define to this...
5104 (avr_handle_option): ...new hook worker.
5105 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5106 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5107 (avr_double_lib): New proto for spec function.
5108 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5109 (DRIVER_SELF_SPECS): Call %:double-lib.
5110 * config/avr/avr.c (avr_option_override): Assert
5111 sizeof(long double) >= sizeof(double) for the target.
5112 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5113 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5114 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5115 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5116 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5117 New built-in define depending on --with-double=, --with-long-double=.
5118 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5119 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5120 * doc/install.texi (Cross-Compiler-Specific Options)
5121 <--with-double=, --with-long-double=>: Doc.
5123 2019-11-07 Richard Biener <rguenther@suse.de>
5125 * dbgcnt.def (gimple_unroll): New.
5126 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5127 gimple_unroll debug counter before applying transform.
5128 (try_peel_loop): Likewise.
5130 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5132 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5133 frame pointer in multiple registers.
5134 (ira_setup_eliminable_regset): Setup eliminable_regset,
5135 ira_no_alloc_regs and regs_ever_live for frame pointer in
5138 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5140 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5143 2019-11-06 Jan Hubicka <jh@suse.cz>
5145 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5147 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5148 Do not silently ignore summary corruptions.
5150 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5152 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5153 the epilogue if there are peeled iterations for it to handle.
5155 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5157 * config/arc/arc.c (arc_split_ior): Add asserts.
5158 (arc_split_mov_const): Likewise.
5159 (arc_check_ior_const): Do not match known short immediate values.
5160 * config/arc/arc.md (movsi): Don't split predicated instructions
5163 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5165 * config/arc/arc.opt (mea): Update help string.
5166 * doc/invoke.texi(ARC): Update mea option info.
5168 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5170 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5171 (zero_extendqisi2_ac): Likewise.
5172 (zero_extendhisi2_i): Likewise.
5173 (extendqihi2_i): Likewise.
5174 (extendqisi2_ac): Likewise.
5175 (extendhisi2_i): Likewise.
5177 2019-11-06 Richard Biener <rguenther@suse.de>
5179 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5180 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5181 Simplify single_defuse_cycle condition.
5183 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5185 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5186 epilogue loop, make sure that the VF is small enough or that
5187 the epilogue loop can be fully-masked.
5189 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5191 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5192 loop when we've finished, rather than returning directly from
5193 the loop. Use a local variable to track whether we're still
5194 searching for the preferred simdlen. Make vect_epilogues
5195 record whether the next iteration should try to treat the
5196 loop as an epilogue.
5198 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5200 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5201 __arc_hard_float__, __ARC_HARD_FLOAT__,
5202 __arc_soft_float__, __ARC_SOFT_FLOAT__
5204 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5206 PR tree-optimization/92317
5207 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5208 update phi's with constant phi arguments.
5210 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5211 Alexandre Oliva <oliva@adacore.com>
5213 * common.opt (-fcallgraph-info[=]): New option.
5214 * doc/invoke.texi (Developer options): Document it.
5215 * opts.c (common_handle_option): Handle it.
5216 * builtins.c (expand_builtin_alloca): Record allocation if
5217 -fcallgraph-info=da.
5218 * calls.c (expand_call): If -fcallgraph-info, record the call.
5219 (emit_library_call_value_1): Likewise.
5220 * flag-types.h (enum callgraph_info_type): New type.
5221 * explow.c: Include stringpool.h.
5222 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5223 * function.c (allocate_stack_usage_info): New.
5224 (allocate_struct_function): Call it for -fcallgraph-info.
5225 (prepare_function_start): Call it otherwise.
5226 (record_final_call, record_dynamic_alloc): New.
5227 * function.h (struct callinfo_callee): New.
5228 (CALLEE_FROM_CGRAPH_P): New.
5229 (struct callinfo_dalloc): New.
5230 (struct stack_usage): Add callees and dallocs.
5231 (record_final_call, record_dynamic_alloc): Declare.
5232 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5233 object if -fcallgraph-info=da.
5234 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5235 * print-tree.h (print_decl_identifier): Declare.
5236 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5237 * print-tree.c: Include print-tree.h.
5238 (print_decl_identifier): New function.
5239 * toplev.c: Include print-tree.h.
5240 (callgraph_info_file): New global variable.
5241 (callgraph_info_external_printed): Likewise.
5242 (output_stack_usage): Rename to...
5243 (output_stack_usage_1): ... this. Make it static, add cf
5244 parameter. If -fcallgraph-info=su, print stack usage to cf.
5245 If -fstack-usage, use print_decl_identifier for
5247 (INDIRECT_CALL_NAME): New.
5248 (dump_final_node_vcg_start): New.
5249 (dump_final_callee_vcg, dump_final_node_vcg): New.
5250 (output_stack_usage): New.
5251 (lang_dependent_init): Open and start file if
5252 -fcallgraph-info. Allocated callgraph_info_external_printed.
5253 (finalize): If callgraph_info_file is not null, finish it,
5254 close it, and release callgraph_info_external_printed.
5256 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5257 Frederik Harwath <frederik@codesourcery.com>
5258 Thomas Schwinge <thomas@codesourcery.com>
5260 * omp-low.c (struct omp_context): New fields
5261 local_reduction_clauses, outer_reduction_clauses.
5262 (new_omp_context): Initialize these.
5263 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5264 (scan_omp_for): Check reduction clauses for incorrect nesting.
5266 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5269 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5270 operands with non-memory constraints.
5272 2019-11-05 Martin Sebor <msebor@redhat.com>
5274 PR tree-optimization/92373
5275 * tree.c (component_ref_size): Only consider initializers of objects
5276 of matching struct types.
5277 Return null for instances of interior zero-length arrays.
5279 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5281 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5283 2019-11-05 Jason Merrill <jason@redhat.com>
5285 PR tree-optimization/91825
5286 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5288 2019-11-05 Jim Wilson <jimw@sifive.com>
5291 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5292 optimize_insn_for_speed_p is true.
5294 2019-11-05 Martin Sebor <msebor@redhat.com>
5298 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5300 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5301 name and location for a temporary variable.
5303 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5305 * tree-vrp.c (value_range::value_range): Fix whitespace.
5306 (defined_ranges_p): Same.
5307 (range_fold_binary_symbolics_p): Same.
5308 (value_range::intersect_helper): Same.
5309 (value_range::union_helper): Same.
5310 * tree-vrp.h (range_fold_binary_expr): Same.
5312 2019-11-04 Martin Sebor <msebor@redhat.com>
5316 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5317 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5318 of message printed in a warning for empty arrays.
5319 (vrp_prop::check_mem_ref): Also handle function parameters and
5322 2019-11-05 Richard Biener <rguenther@suse.de>
5324 PR tree-optimization/92371
5325 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5326 on the original stmt of live stmts in the chain.
5327 (vectorizable_live_operation): Look at the original stmt when
5328 checking STMT_VINFO_REDUC_DEF.
5330 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5332 * gimple-fold.c, gimple-loop-versioning.cc,
5333 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5334 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5335 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5336 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5337 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5338 value_range_equiv, and value_range_base to value_range.
5340 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5342 * expr.c (build_personality_function): Fix generated type to
5343 match actual personality functions.
5345 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5347 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5348 enough bytes for the NULL character.
5350 2019-11-05 Richard Biener <rguenther@suse.de>
5352 PR tree-optimization/92280
5353 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5354 had a single use do not create a new CTOR.
5355 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5356 BIT_FIELD_REF of a CTOR via GENERIC.
5358 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5360 * config/s390/s390.c (s390_vector_alignment): Check if the value
5361 fits into uhwi before using it.
5363 2019-11-05 Martin Liska <mliska@suse.cz>
5365 * symbol-summary.h: Use ggc_delete.
5367 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5369 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5370 Change vec_perm field to 10.
5372 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5374 * doc/install.texi: Further fix syntax for html generation.
5376 2019-11-05 Martin Liska <mliska@suse.cz>
5378 * symbol-summary.h: Rename allocator to m_allocator and
5381 2019-11-05 Richard Biener <rguenther@suse.de>
5383 PR tree-optimization/92324
5384 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5385 all signed or unsigned operations.
5387 2019-11-05 Jan Hubicka <jh@suse.cz>
5389 * hsa-brig.c: Include alloc-pool.h
5390 * hsa-dump.c: Likewise.
5391 * hsa-gen.c: Likewise.
5392 * hse-regalloc.c: Likewise.
5393 * ipa-hsa.c: Likewise.
5394 * ipa-predicate.c: Likewise.
5395 * ipa-reference.c: Likewise.
5396 * ipa-sra.c: Likewise.
5397 * omp-expand.c: Likewise.
5398 * omp-general.c: Likewise.
5399 * omp-low.c: Likewise.
5400 * sumbol-summary.h (function_summary_base): Add allocator.
5401 (function_summary<T *>::function_summary): Update construction.
5402 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5403 (call_summary_base): Add allcator.
5404 (call_summary<T *>::call_summary): Update construction.
5405 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5407 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5409 PR tree-optimization/91945
5410 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5411 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5414 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5416 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5417 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5418 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5419 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5420 (vrp_set_zero_nonzero_bits): Move to...
5421 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5422 (vr_values::simplify_bit_ops_using_ranges): Rename
5423 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5425 2019-11-05 Martin Liska <mliska@suse.cz>
5428 * fold-const.c (operand_compare::hash_operand): Remove
5429 FIELD_DECL handling.
5431 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5433 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5434 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5437 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5439 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5440 properly handle symbolics.
5441 (range_compatible_p): Remove.
5443 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5445 * common.opt (-fabi-version): Document =14.
5446 * doc/invoke.texi (C++ Dialect Options): Likewise.
5448 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5450 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5452 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5454 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5455 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5456 gcn_omp_device_kind_arch_isa.
5457 * config/gcn/t-omp-device: New file.
5458 * configure.ac: Support gcn for omp_device_property.
5459 * configure: Regenerate.
5461 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5463 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5464 (vrp_val_max): Same.
5465 (vrp_val_is_min): Same.
5466 (vrp_val_is_max): Same.
5467 (value_range_base::nonzero_p): Remove last argument to
5469 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5470 (vrp_val_max): Same.
5471 (vrp_val_is_min): Same.
5472 (vrp_val_is_max): Same.
5473 (value_range_base::set_varying): Remove last argument to vrp_val*.
5474 (value_range_base::dump): Same.
5475 (value_range_base::set): Same.
5476 (value_range_base::normalize_symbolics): Same.
5477 (value_range_base::num_pairs): Same.
5478 (value_range_base::lower_bound): Same.
5479 (value_range_base::upper_bound): Same.
5480 (ranges_from_anti_range): Remove handle_pointers argument.
5481 (value_range_base::singleton_p): Remove last argument to
5482 ranges_from_anti_range.
5484 2019-11-04 Jan Hubicka <jh@suse.cz>
5486 * ipa-reference.c (init_function_info): Initialize
5487 info->global.statics_read.
5489 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5491 * tree-vrp.c (value_range_base::invert): Use constructors to build
5494 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5496 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5497 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5499 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5501 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5504 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5506 * tree-vrp.c (dump_assert_info): New.
5507 (dump_asserts_info): New.
5509 2019-11-04 Jan Hubicka <jh@suse.cz>
5511 * ipa-inline-transform.c: Include ipa-utils.h
5512 (inline_call): Set thunk_expansion flag.
5513 * ipa-utils.h (thunk_expansion): Declare.
5514 * ipa-devirt.c (thunk_expansion): New global var.
5515 (devirt_node_removal_hook): Do not invalidate cache while
5516 doing thunk expansion.
5518 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5520 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5522 2019-11-04 Martin Sebor <msebor@redhat.com>
5524 PR tree-optimization/92349
5525 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5526 memebers have constant sizes.
5528 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5530 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5532 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5533 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5536 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5538 * expr.c (store_constructor): Modify to handle single element vectors.
5539 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5541 (vect_slp_check_for_constructors): New function.
5542 (vect_slp_analyze_bb_1): Call new function to check for vector
5544 (vectorize_slp_instance_root_stmt): New function.
5545 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5547 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5549 2019-11-04 Richard Biener <rguenther@suse.de>
5551 PR tree-optimization/92345
5552 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5553 we produced a reduction chain.
5554 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5555 LOOP_VINFO_REDUCTIONS.
5557 2019-11-04 Jan Hubicka <jh@suse.cz>
5559 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5560 duplicate summaries.
5561 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5563 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5564 access call summaries.
5565 (dump_ipa_call_summary): Be ready for missing edge summaries.
5566 (analyze_function_body): Use get instead of get_create to access
5568 (estimate_calls_size_and_time): Do not access summaries of
5569 inlined edges; sanity check they are missing.
5570 (ipa_call_context::estimate_size_and_time): Use get instead
5571 of get_create to access node summary.
5572 (inline_update_callee_summaries): Do not update depth of
5574 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5576 (ipa_merge_fn_summary_after_inlining): Use get instead
5578 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5579 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5581 (initialize_growth_caches): Update.
5582 (do_estimate_edge_time): Remove redundant copy of context.
5583 (ipa_remove_from_growth_caches): New function.
5584 * ipa-inline.c (flatten_function): Update overall summary
5585 only when optimizing.
5586 (inline_to_all_callers): Update overall summary of function
5588 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5589 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5592 2019-11-04 Richard Biener <rguenther@suse.de>
5594 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5595 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5597 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5599 * ggc-common.c: Include system.h before malloc.h.
5601 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5603 * configure.ac: Pass --enable-obsolete=* and
5604 --enable-option-checking=* down to build configure, and fail
5605 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5606 * configure: Rebuild.
5607 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5608 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5610 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5612 * config.in: Regenerate.
5613 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5614 -mtiny-printf is used without GCC being configured with
5615 --enable-newlib-nano-formatted-io.
5616 * config/msp430/msp430.h (LINK_SPEC): Pass
5617 "--wrap puts --wrap printf" when -mtiny-printf is used.
5618 * config/msp430/msp430.opt: Document -mtiny-printf.
5619 * configure: Regenerate.
5620 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5621 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5622 --enable-newlib-nano-formatted-io is passed.
5623 * doc/invoke.texi: Document -mtiny-printf.
5625 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5627 * configure: Regenerate.
5629 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5631 * config/msp430/driver-msp430.c
5632 (msp430_get_linker_devices_include_path): New spec function.
5633 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5634 (extract_devices_dir_from_exec_prefix): New function.
5635 (extract_devices_dir_from_collect_gcc): New function.
5636 (msp430_check_env_var_for_devices): New function.
5637 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5638 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5639 devices.csv was not found using other methods.
5640 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5642 (msp430_dirname): Likewise.
5643 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5644 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5645 msp430_get_linker_devices_include_path.
5646 (TARGET_EXTRA_PRE_INCLUDES): Define.
5647 * doc/invoke.texi: Document new ways of searching for support files.
5649 2019-11-04 Richard Biener <rguenther@suse.de>
5651 PR tree-optimization/92301
5652 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5653 as required by epilogue generation
5655 2019-11-04 Martin Liska <mliska@suse.cz>
5658 * fold-const.c (operand_compare::hash_operand): Fix field
5659 hashing of CONSTRUCTOR.
5661 2019-11-04 Martin Liska <mliska@suse.cz>
5663 * ggc.h (ggc_delete): New function.
5664 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5665 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5666 (ipa_free_all_node_params): Likewise.
5667 * ipa-sra.c (ipa_sra_analysis): Likewise.
5669 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5671 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5672 set_switch_stmt_execution_predicate, compute_bb_predicates,
5673 will_be_nonconstant_expr_predicate,
5674 phi_result_unknown_predicate,
5675 analyze_function_body): Pass arround params summary.
5676 (ipa_call_context::duplicate_from): New comment;
5677 only duplicate useful values.
5678 (ipa_call_context::equal_to): Only compare useful values.
5679 (remap_edge_summaries): Pass params_summary.
5680 (remap_hint_predicate): Likewise.
5681 (ipa_merge_fn_summary_after_inlining): Likewise.
5682 (inline_read_section): Initialize params summary used flags.
5683 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5684 around param_summary.
5685 (add_condition): Initialized used params summary flags.
5686 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5687 (inline_param_summary::useless_p): New predicate.
5688 (remap_after_inlining, add_condition): Update prototype
5689 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5691 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5693 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5694 (ipa_analyze_virtual_call_uses): Likewise.
5695 (update_indirect_edges_after_inlining): Update param summaries.
5696 (ipa_print_node_params): Print used flags.
5697 (ipa_read_indirect_edge_info): Update param summareis.
5698 * ipa-prop.h (ipa_param_descriptor): Add
5699 used_by_ipa_predicates, used_by_indirect_call
5700 and used_by_polymorphic_call.
5701 (ipa_set_param_used_by_ipa_predicates,
5702 ipa_set_param_used_by_indirect_call,
5703 ipa_set_param_used_by_polymorphic_call,
5704 ipa_is_param_used_by_ipa_predicates,
5705 ipa_is_param_used_by_indirect_call,
5706 ipa_is_param_used_by_polymorphic_call): New inline functions.
5708 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5710 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5712 (ipa_call_context::release): Add ALL parameter.
5713 (ipa_call_context::equal_to): New member function.
5714 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5715 duplicate_form, release, equal_to and exists_p member functoins.
5716 * ipa-inline-analysis.c (node_context_cache_entry): New
5718 (node_context_summary): Likewise.
5719 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5720 node_context_clear): New static vars.
5721 (initialize_growth_caches): New function.
5722 (free_growth_caches): Also delete node_context_cache; output stats.
5723 (do_estimate_edge_time): Cache contexts.
5724 (reset_node_cache): New function.
5725 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5726 (inline_small_functions): Initialize growth caches.
5727 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5729 * ipa-predicate.h (inline_param_summary::equal_to): New.
5730 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5731 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5732 (ipa_agg_jump_function): Implement equal_to member function.
5734 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5736 * ipa-fnsummary.c (inline_read_section): Set vector size
5739 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5741 * ipa-fnsummary.c (ipa_call_context): New constructor.
5742 (estimate_node_size_and_time): Turn to ...
5743 (ipa_call_context::estimate_size_and_time): ... this one.
5744 (ipa_call_context::release): New.
5745 * ipa-fnsummary.h (ipa_call_context): New class.
5746 (estimate_node_size_and_time): Remove.
5747 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5748 do_estimate_edge_hints): Update.
5750 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5752 * config.in: Regenerate.
5753 * configure: Regenerate.
5754 * configure.ac: Check for mallinfo.
5755 * ggc-common.c: Include malloc.h if available;
5757 (report_heap_memory_use): New functoin.
5758 * ggc-page.c (ggc_grow): Do not print "start".
5759 * ggc.h (report_heap_memory_use): Declare.
5760 * pases.c (execute_one_pass): Report memory after IPA passes.
5761 (ipa_read_summaries_1): Likewise.
5762 (ipa_read_optimization_summaries_1): Likewise.
5764 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5766 * gimplify.h (omp_construct_selector_matches): Change return
5767 type to int, add a new SCORES argument.
5768 * gimplify.c (omp_construct_selector_matches): Likewise. If
5769 SCORES is non-NULL, compute scores of each construct.
5770 * omp-general.h (omp_get_context_selector): Declare.
5771 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5772 Adjust omp_construct_selector_matches callers.
5773 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5774 (omp_context_compute_score): New function.
5775 (omp_resolve_declare_variant): Compute scores and decide based on
5779 * configure.ac: Don't look for omp-device-properties files from
5780 installed offloading compilers. Instead add tmake_file snippets
5781 for configured offloading targets and use files they generate.
5782 * Makefile.in (install): Don't depend on
5783 install-omp-device-properties.
5784 (install-omp-device-properties): Remove goal.
5785 * config/i386/t-omp-device: New file.
5786 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5787 * config/nvptx/t-omp-device: New file.
5788 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5789 * configure: Regenerated.
5791 * omp-general.h (omp_context_selector_set_compare): Declare.
5792 * omp-general.c (omp_construct_simd_compare,
5793 omp_context_selector_props_compare, omp_context_selector_set_compare,
5794 omp_context_selector_compare): New functions.
5795 (omp_resolve_declare_variant): Prune variants that are strict subset
5798 2019-11-01 Martin Sebor <msebor@redhat.com>
5804 * doc/invoke.texi (-Wzero-length-bounds): Document.
5805 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5806 instead of a hand-rolled loop to avoid PR 92323.
5807 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5809 (vrp_prop::check_mem_ref): Handle declared struct objects.
5810 * tree.c (last_field): New function.
5811 (array_at_struct_end_p): Handle MEM_REF.
5812 (get_initializer_for): New helper.
5813 (component_ref_size): Add argument. Rename locals. Call
5814 get_initializer_for instead of fold_ctor_reference. Correct handling
5815 of flexible array members.
5816 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5818 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5820 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5821 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5822 UNSPEC_VSX_CVSPUXDS): Remove.
5823 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5824 (vsx_xvcvspdp_be): ... this. New. And...
5825 (vsx_xvcvspdp_le): ... this. New.
5826 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5827 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5828 (vsx_xvcv<su>xwdp_le): ... this. New.
5829 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5830 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5831 (vsx_xvcvsp<su>xds_le): ... this. New.
5833 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5835 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5836 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5837 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5838 UNSPEC_VSX_XVCVSPSXWS): Remove.
5839 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5840 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5842 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5844 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5845 (UNSPEC_VSX_XVCDPSP): Remove.
5846 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5847 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5849 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5851 * hooks.c (hook_tree_tree_bool_null): New.
5852 * hooks.h (hook_tree_tree_bool_null): Declare.
5853 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5854 (LANG_HOOKS_DECLS): Add it.
5855 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5856 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5857 (lower_omp_target): Handle Fortran array with descriptor in
5858 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5860 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5862 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5863 Assert that the type we store in abi_vector_types is its own
5865 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5867 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5869 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5870 from a CONST_INT address when TARGET_THUMB2.
5872 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5874 * config/arm/arm.md (add_not_cin): New insn.
5875 (add_not_shift_cin): Likewise.
5877 2019-10-31 Martin Liska <mliska@suse.cz>
5879 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5880 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5881 and compare_memory_operand.
5883 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5885 * configure.ac: Compute and substitute omp_device_properties and
5886 omp_device_property_deps.
5887 * Makefile.in (generated_files): Add omp-device-properties.h.
5888 (omp-general.o): Depend on omp-device-properties.h.
5889 (omp_device_properties): New make variable.
5890 (omp-device-properties.h, s-omp-device-properties-h,
5891 install-omp-device-properties): New goals.
5892 (install): Depend on install-omp-device-properties for accelerators.
5893 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5894 * target.h (enum omp_device_kind_arch_isa): New enum.
5895 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5897 * omp-general.c: Include omp-device-properties.h.
5898 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5899 colon instead of comma.
5900 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5902 (omp_context_selector_matches): Implement device set arch/isa
5903 selectors, improve device set kind selector handling.
5904 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5905 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5906 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5907 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5908 ix86_omp_device_kind_arch_isa.
5909 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5910 definition from ix86_target_string to file scope.
5911 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5913 (ix86_omp_device_kind_arch_isa): New function.
5914 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5915 isa_opts definitions to file scope.
5916 * config/i386/t-intelmic (omp-device-properties): New goal.
5917 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5918 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5919 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5920 nvptx_omp_device_kind_arch_isa.
5921 * configure: Regenerate.
5922 * doc/tm.texi: Regenerate.
5925 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5926 DECL_BUILT_IN in comment. Remove redundant ()s around return
5928 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5929 before calling fndecl_built_in_p.
5930 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5931 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5932 fndecl_built_in_p on it.
5934 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5936 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5938 2019-10-31 Martin Liska <mliska@suse.cz>
5940 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5941 of cgraph_local_info and use local_info_node instead.
5942 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
5943 (bfin_function_ok_for_sibcall): Likewise.
5944 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
5945 (must_reload_pic_reg_p): Likewise.
5947 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5950 * tree.h (type_initializer_zero_p): Remove.
5951 * tree.c (type_initializer_zero_p): Remove.
5953 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
5955 * doc/invoke.texi (-Wshadow, -Wshadow=global
5956 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
5958 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
5960 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
5961 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
5962 and 'target exit data'.
5964 2019-10-30 Martin Jambor <mjambor@suse.cz>
5967 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
5968 availability comparison.
5970 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5972 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
5973 calls to __mspabi_mpy* functions.
5974 * config/msp430/msp430.md (mulhisi3): New define_expand.
5975 (umulhisi3): New define_expand.
5976 (*mulhisi3_inline): Use old mulhisi3 define_insn.
5977 (*umulhisi3_inline): Use old umulhisi3 define_insn.
5979 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5981 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
5982 (msp430_check_plus_not_high_mem): New.
5983 (msp430_op_not_in_high_mem): Use new functions to check if the operand
5984 might be in low memory.
5985 Indicate that a 16-bit absolute address is in lower memory.
5987 2019-10-30 Martin Jambor <mjambor@suse.cz>
5989 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
5990 ultimate_alias_target.
5992 2019-10-30 Richard Biener <rguenther@suse.de>
5994 PR tree-optimization/92275
5995 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
5996 Copy all loop-closed PHIs.
5998 2019-10-30 Martin Liska <mliska@suse.cz>
6000 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6001 const_tree as function argument.
6002 (func_checker::compare_decl): Likewise.
6003 (func_checker::operand_equal_p): Likewise.
6004 (func_checker::compare_variable_decl): Likewise.
6005 (func_checker::parse_labels): Likewise.
6006 * ipa-icf-gimple.h: Likewise.
6008 2019-10-30 Martin Liska <mliska@suse.cz>
6010 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6011 Do not compare alias sets. It's handled by operand_equal_p.
6013 2019-10-30 Martin Liska <mliska@suse.cz>
6015 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6016 initialize m_compare_polymorphic.
6017 (func_checker::compare_decl): Do not compare polymorphic types.
6018 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6019 * ipa-icf.c (sem_function::equals_private): Do not call
6020 compare_polymorphic_p.
6022 2019-10-30 Martin Liska <mliska@suse.cz>
6024 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6026 (func_checker::compare_memory_operand): Remove.
6027 (func_checker::compare_cst_or_decl): Remove.
6028 (func_checker::operand_equal_valueize): Do not handle
6030 (func_checker::compare_gimple_call): Call compare_operand.
6031 (func_checker::compare_gimple_assign): Likewise.
6032 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6033 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6034 * ipa-icf.h (icf_handled_component_p): Remove.
6036 2019-10-30 Martin Liska <mliska@suse.cz>
6038 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6039 (func_checker::compare_cst_or_decl): Remove handling
6041 (func_checker::compare_operand): Transform to ...
6042 (func_checker::operand_equal_p): ... this.
6043 * ipa-icf-gimple.h (class func_checker): Add
6044 operand_equal_p and hash_operand.
6045 * ipa-icf.c (sem_function::equals_private): Fix
6046 pushing and popping of cfun.
6048 2019-10-30 Martin Liska <mliska@suse.cz>
6050 * fold-const.c (operand_equal_p): Move to ...
6051 (operand_compare::operand_equal_p): ... here.
6052 (operand_compare::verify_hash_value): New.
6053 (add_expr): Move to ...
6054 (operand_compare::hash_operand): ... here.
6055 * fold-const.h (operand_equal_p): Move to the class.
6056 (class operand_compare): New.
6057 * tree.c (add_expr): Remove.
6059 2019-10-30 Martin Liska <mliska@suse.cz>
6061 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6062 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6064 2019-10-30 Martin Liska <mliska@suse.cz>
6068 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6069 from a first_clone in order to get proper LTO section
6071 (cgraph_node::get_untransformed_body):
6072 Use lto_get_section_data where symtab_node::order
6074 * cgraphclones.c (cgraph_node::find_replacement):
6075 Update also symbol order.
6076 * ipa-fnsummary.c (ipa_fn_summary_read):
6077 Use new function lto_get_summary_section_data.
6078 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6079 * ipa-icf.c (sem_item_optimizer::read_summary):
6081 * ipa-prop.c (ipa_prop_read_jump_functions):
6083 (ipcp_read_transformation_summaries): Likewise.
6084 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6085 * lto-cgraph.c (input_node): Add also order_base.
6086 (input_varpool_node): Likewise.
6087 (input_cgraph_1): Assign the order_base.
6088 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6089 * lto-opts.c (lto_write_options): Pass new argument.
6090 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6091 (lto_get_summary_section_data): New.
6092 (lto_get_raw_section_data): Add order argument.
6093 (lto_create_simple_input_block): Likewise.
6094 * lto-section-out.c (lto_destroy_simple_output_block):
6096 * lto-streamer-in.c (lto_input_toplevel_asms):
6097 Use lto_get_summary_section_data.
6098 (lto_input_mode_table): Likewise.
6099 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6100 (lto_output_toplevel_asms): Pass new argument.
6101 (copy_function_or_variable): Likewise.
6102 (produce_lto_section):Likewise.
6103 (produce_symtab): Likewise.
6104 (lto_write_mode_table): Likewise.
6105 (produce_asm_for_decls): Likewise.
6106 * lto-streamer.c (lto_get_section_name): Concat symbol name
6108 * lto-streamer.h (lto_get_section_data): Add order argument.
6109 (lto_get_summary_section_data): New.
6110 (lto_get_raw_section_data): Add order argument.
6111 (lto_get_section_name): Likewise.
6112 * varpool.c (varpool_node::get_constructor): Pass order argument.
6114 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6116 PR tree-optimization/92262
6117 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6118 ubase or cbase here.
6119 (remove_unused_ivs): Unshare comp before using it.
6121 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6123 * ipa-prop.c (update_jump_functions_after_inlining):
6124 Watch for missing summaries.
6126 2019-10-30 Richard Biener <rguenther@suse.de>
6128 PR tree-optimization/65930
6129 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6130 chains also allow a leading and trailing conversion.
6131 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6132 intermediate reduction chains.
6133 (vect_analyze_slp_instance): Likewise. Build a SLP
6134 node for a trailing conversion manually.
6136 2019-10-30 Martin Liska <mliska@suse.cz>
6138 * cgraph.c (cgraph_node::local_info): Transform to ...
6139 (cgraph_node::local_info_node): ... this.
6140 (cgraph_node::dump): Remove cgraph_local_info and
6141 put its fields directly into cgraph_node.
6142 (cgraph_node::get_availability): Likewise.
6143 (cgraph_node::make_local): Likewise.
6144 (cgraph_node::verify_node): Likewise.
6145 * cgraph.h (struct GTY): Likewise.
6146 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6147 (duplicate_thunk_for_node): Likewise.
6148 (cgraph_node::create_clone): Likewise.
6149 (cgraph_node::create_virtual_clone): Likewise.
6150 (cgraph_node::create_version_clone): Likewise.
6151 * cgraphunit.c (cgraph_node::reset): Likewise.
6152 (cgraph_node::finalize_function): Likewise.
6153 (cgraph_node::add_new_function): Likewise.
6154 (analyze_functions): Likewise.
6155 * combine.c (setup_incoming_promotions): Likewise.
6156 * config/i386/i386.c (ix86_function_regparm): Likewise.
6157 (ix86_function_sseregparm): Likewise.
6158 (init_cumulative_args): Likewise.
6159 * ipa-cp.c (determine_versionability): Likewise.
6160 (count_callers): Likewise.
6161 (set_single_call_flag): Likewise.
6162 (initialize_node_lattices): Likewise.
6163 (estimate_local_effects): Likewise.
6164 (create_specialized_node): Likewise.
6165 (identify_dead_nodes): Likewise.
6166 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6167 (ipa_fn_summary_generate): Likewise.
6168 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6169 (process_hsa_functions): Likewise.
6170 * ipa-icf.c (set_local): Likewise.
6171 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6172 * ipa-inline.c (speculation_useful_p): Likewise.
6173 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6174 (ipa_profile): Likewise.
6175 * ipa-split.c (split_function): Likewise.
6176 (execute_split_functions): Likewise.
6177 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6178 (ipa_sra_ipa_function_checks): Likewise.
6179 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6180 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6181 * lto-cgraph.c (lto_output_node): Likewise.
6182 (input_overwrite_node): Likewise.
6183 * multiple_target.c (expand_target_clones): Likewise.
6184 * omp-simd-clone.c (simd_clone_create): Likewise.
6185 * trans-mem.c (expand_call_tm): Likewise.
6186 (ipa_tm_mayenterirr_function): Likewise.
6187 (ipa_tm_diagnose_tm_safe): Likewise.
6188 (ipa_tm_diagnose_transaction): Likewise.
6189 (ipa_tm_create_version): Likewise.
6190 (ipa_tm_transform_calls_redirect): Likewise.
6191 (ipa_tm_execute): Likewise.
6192 * tree-inline.c (expand_call_inline): Likewise.
6194 2019-10-29 Martin Liska <mliska@suse.cz>
6196 * symbol-summary.h (function_summary): Pass memory location
6197 to underlaying hash_map (or vec).
6198 (V>::fast_function_summary): Likewise.
6200 2019-10-29 Martin Liska <mliska@suse.cz>
6202 * ggc.h (ggc_alloc_no_dtor): New function.
6203 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6204 destructor and ggc_free.
6205 (ipa_free_size_summary): Call delete instead
6207 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6208 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6209 (ipa_free_all_edge_args): Call destructor and ggc_free.
6210 (ipa_free_all_node_params): Likewise.
6211 (ipcp_free_transformation_sum): Likewise.
6212 * ipa-prop.h (ipa_check_create_node_params):
6213 Call new ggc_alloc_no_dtor.
6214 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6215 (ipa_sra_analysis): Call destructor and ggc_free.
6216 Replace release with delete operator.
6217 * symbol-summary.h (release): Remove ..
6218 (V>::~fast_function_summary): and move logic here.
6219 Likewise for other classes.
6221 2019-10-29 Richard Biener <rguenther@suse.de>
6223 PR tree-optimization/92260
6224 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6227 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6229 PR tree-optimization/88915
6230 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6231 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6232 and make the valueize function pointer also take a void pointer.
6233 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6234 around vn_valueize, to call it without a context.
6235 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6236 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6237 (~_loop_vec_info): Release epilogue_vinfos.
6238 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6239 number of iterations of epilogue.
6240 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6241 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6242 versioning threshold needed for main loop.
6243 (vect_analyze_loop): Likewise.
6244 (find_in_mapping): New helper function.
6245 (update_epilogue_loop_vinfo): New function.
6246 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6247 on main loop and call update_epilogue_loop_vinfo to update it.
6248 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6249 stmts on loop preheader edge.
6250 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6251 we decided to vectorize epilogues. Update epilogues NITERS and
6252 construct ADVANCE to update epilogues data references where needed.
6253 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6254 (vect_do_peeling, vect_update_inits_of_drs,
6255 determine_peel_for_niter, vect_analyze_loop): Add or update
6257 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6258 created loop_vec_info's for epilogues when available. Otherwise analyse
6259 epilogue separately.
6261 2019-10-29 Richard Biener <rguenther@suse.de>
6263 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6266 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6268 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6269 index for the COND_EXPR from stmt_info rather than reduc_info.
6271 2019-10-29 Richard Biener <rguenther@suse.de>
6273 PR tree-optimization/65930
6274 * tree-vect-loop.c (check_reduction_path): Relax single-use
6275 check allowing out-of-loop uses.
6276 (vect_is_simple_reduction): SLP reduction chains cannot have
6277 intermediate stmts used outside of the loop.
6278 (vect_create_epilog_for_reduction): The adjustment might need
6280 (vectorizable_reduction): Annotate live stmts of the reduction
6281 chain with STMT_VINFO_REDUC_DEF.
6282 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6284 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6286 * calls.c (pass_by_reference): Leave the target to decide whether
6287 POLY_INT_CST-sized arguments should be passed by value or reference,
6288 rather than forcing them to be passed by reference.
6289 (must_pass_in_stack_var_size): Likewise.
6290 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6291 V31_REGNUM to P15_REGNUM.
6292 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6293 Take an extra "silent_p" parameter, defaulting to false.
6294 (aarch64_sve::svbool_type_p): Declare.
6295 (aarch64_sve::nvectors_if_data_type): Likewise.
6296 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6297 (aarch64_frame::reg_offset): Turn into poly_int64s.
6298 (aarch64_frame::save_regs_size): Likewise.
6299 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6300 (aarch64_frame::sve_callee_adjust): Likewise.
6301 (aarch64_frame::spare_reg_reg): Likewise.
6302 (ARM_PCS_SVE): New arm_pcs value.
6303 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6304 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6305 (CUMULATIVE_ARGS::silent_p): Likewise.
6306 (BITS_PER_SVE_PRED): New macro.
6307 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6308 function. Reject aarch64_vector_pcs attributes on SVE functions.
6309 (aarch64_attribute_table): Use the above handler.
6310 (aarch64_sve_abi): New function.
6311 (aarch64_sve_argument_p): Likewise.
6312 (aarch64_returns_value_in_sve_regs_p): Likewise.
6313 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6314 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6315 descriptor for them.
6316 (aarch64_simd_decl_p): Delete.
6317 (aarch64_emit_cfi_for_reg_p): New function.
6318 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6319 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6320 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6321 as partly clobbered for the SVE PCS.
6322 (aarch64_function_ok_for_sibcall): Check whether the two functions
6323 use the same ABI, rather than checking specifically for whether
6324 they're aarch64_vector_pcs functions.
6325 (aarch64_pass_by_reference): Raise an error for attempts to pass
6326 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6327 if there are not enough free registers left, or if the argument is
6329 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6330 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6332 (aarch64_layout_arg): Take a function_arg_info rather than
6333 individual properties. Handle SVE predicates, vectors and tuples.
6334 Raise an error if they are passed to unprototyped functions.
6335 (aarch64_function_arg): If the silent_p flag is set, suppress the
6336 usual error about using float registers without TARGET_FLOAT.
6337 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6338 it in the cumulative_args structure. Initialize aapcs_nprn and
6339 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6340 error about using float registers without TARGET_FLOAT.
6341 If the silent_p flag is not set, also raise an error about
6342 using SVE functions when SVE is disabled.
6343 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6344 and call it for SVE functions too. Update aapcs_nprn similarly
6345 to the other register counts.
6346 (aarch64_layout_frame): If a big-endian function needs to save
6347 and restore Z8-Z15, search for a spare predicate that it can use.
6348 Store SVE predicates at the bottom of the register save area,
6349 followed by SVE vectors, then followed by the normal slots.
6350 Keep pointing the hard frame pointer at the base of the normal slots,
6351 above the SVE vectors. Update the various frame creation and
6352 tear-down strategies for the new layout, initializing the new
6353 sve_callee_adjust field. Add an additional layout for frames
6354 whose saved registers are all SVE registers.
6355 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6356 (aarch64_return_address_signing_enabled): Likewise.
6357 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6358 aarch64_reg_save_mode.
6359 (aarch64_adjust_sve_callee_save_base): New function.
6360 (aarch64_add_cfa_expression): Move earlier in file. Take the
6361 saved register as an rtx rather than a register number and use
6362 its mode for the MEM slot.
6363 (aarch64_save_callee_saves): Remove the mode argument and instead
6364 use aarch64_reg_save_mode to get the mode of each save slot.
6365 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6366 offsets. Allow GP offsets to be saved at a VL-based offset from
6367 the stack, handling this case using the frame pointer if available
6368 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6369 big-endian SVE functions; use normal moves for other SVE saves.
6370 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6371 returns true. Add explicit CFA notes when not storing via the
6372 stack pointer. Do not try to pair SVE saves.
6373 (aarch64_restore_callee_saves): Cope with poly_int64 register
6374 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6375 use normal moves for other SVE restores. Only add CFA restore notes
6376 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6378 (aarch64_get_separate_components): Always keep the first SVE save
6379 in the prologue if we need to use it as a stack probe. Don't allow
6380 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6381 Likewise the spare predicate register that they need. Update the
6382 offset calculation to account for the SVE save area. Use the
6383 appropriate range check for SVE LDR and STR instructions.
6384 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6385 (aarch64_process_components): Likewise. Update the offset
6386 calculation to account for the SVE save area. Only mark the
6387 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6388 Do not try to pair SVE saves.
6389 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6390 reg_offsets. When handling the final allocation, expect the
6391 first SVE register save to be part of the initial allocation
6392 and for it to act as a probe at SP. Account for the SVE callee
6393 save area in the dump information.
6394 (aarch64_expand_prologue): Update the frame diagram. Fold the
6395 SVE callee allocation into the initial allocation if stack clash
6396 protection is enabled. Use new variables to track the offset
6397 of the frame chain (and hard frame pointer) from the current
6398 stack pointer, and likewise the offset of the bottom of the
6399 register save area. Update calls to aarch64_save_callee_saves
6400 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6401 saving the FP&SIMD registers. Save the predicate registers.
6402 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6403 into account when setting the stack pointer from the frame pointer,
6404 and when deciding whether we can inherit the initial adjustment
6405 amount from the prologue. Restore the predicate registers after
6406 the vector registers, then apply sve_callee_adjust, then restore
6407 the general registers.
6408 (aarch64_secondary_reload): Don't use secondary SVE reloads
6410 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6411 (aarch64_short_vector_p): Return false for SVE types.
6412 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6413 at the start of the function. Return false for SVE types.
6414 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6416 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6417 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6418 to big-endian targets for bytewise moves.
6419 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6421 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6422 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6423 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6425 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6426 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6427 aarch64-sve-builtins-base.o to extra_objs. Add
6428 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6429 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6430 (aarch64-sve-builtins-shapes.o): Likewise.
6431 (aarch64-sve-builtins-base.o): New rules.
6432 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6433 (aarch64_resolve_overloaded_builtin): Likewise.
6434 (aarch64_check_builtin_call): Likewise.
6435 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6436 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6438 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6439 (aarch64_svprfop): New enum.
6440 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6441 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6442 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6443 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6444 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6445 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6446 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6447 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6448 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6449 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6450 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6451 (aarch64_sve::mangle_builtin_type): Likewise.
6452 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6453 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6454 (aarch64_sve::expand_builtin): Likewise.
6455 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6456 (aarch64_sve_int_mode): Likewise.
6457 (aarch64_ptrue_all_mode): New function.
6458 (aarch64_convert_sve_data_to_pred): Make public.
6459 (svprfop_token): New function.
6460 (aarch64_output_sve_prefetch): Likewise.
6461 (aarch64_fold_sve_cnt_pat): Likewise.
6462 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6463 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6464 instead of gen_while_ult.
6465 (aarch64_replace_reg_mode): Make public.
6466 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6467 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6468 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6469 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6470 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6471 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6472 (aarch64_sve_ptrue_svpattern_p): Likewise.
6473 (aarch64_sve_pred_valid_immediate): Check
6474 aarch64_sve_ptrue_svpattern_p.
6475 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6476 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6478 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6479 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6480 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6481 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6482 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6483 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6485 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6486 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6487 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6488 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6489 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6490 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6491 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6492 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6493 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6494 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6495 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6496 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6497 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6498 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6499 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6500 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6501 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6502 (Vesize): Handle partial vector modes.
6503 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6505 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6507 (s, paired_extend, inc_dec): New code attributes.
6508 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6509 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6510 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6511 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6512 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6513 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6515 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6516 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6517 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6518 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6519 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6520 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6521 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6522 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6523 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6524 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6525 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6526 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6527 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6528 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6529 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6530 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6532 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6533 (binqops_op, binqops_op_rev, last_op): New int attributes.
6534 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6535 (fn, ab): New int attributes.
6536 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6537 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6538 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6539 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6541 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6542 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6543 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6544 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6545 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6547 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6548 (brk_reg_con, brk_reg_opno): New int attributes.
6549 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6550 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6551 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6553 (max_elem_bits): New int attribute.
6554 (min_elem_bits): Handle UNSPEC_RBIT.
6555 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6556 TRUNCATE as well as SUBREG.
6557 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6558 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6559 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6560 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6561 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6562 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6563 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6564 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6565 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6566 (aarch64_gather_scale_operand_h): New predicates.
6567 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6568 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6569 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6570 (*aarch64_sve_reinterpret<mode>): Allow any source register
6571 instead of requiring an exact match.
6572 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6573 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6574 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6575 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6576 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6577 (aarch64_update_ffrt): New patterns.
6578 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6579 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6580 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6581 (@aarch64_ld<fn>f1<mode>): New patterns.
6582 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6583 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6584 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6585 (@aarch64_ldnt1<mode>): New patterns.
6586 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6587 the scalar part of the address.
6588 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6589 scalar part of the addresse and add an alternative for handling
6591 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6592 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6593 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6594 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6595 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6596 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6597 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6598 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6599 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6600 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6601 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6602 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6603 (@aarch64_sve_prefetch<mode>): New patterns.
6604 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6605 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6606 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6607 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6608 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6609 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6610 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6611 (@aarch64_stnt1<mode>): New patterns.
6612 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6613 the scalar part of the address.
6614 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6615 the scalar part of the addresse and add an alternative for handling
6617 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6618 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6619 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6620 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6621 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6622 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6624 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6625 (extract_last_<mode>): Generalize to...
6626 (@extract_<LAST:last_op>_<mode>): ...this.
6627 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6628 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6629 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6630 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6631 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6632 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6633 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6634 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6635 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6636 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6637 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6638 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6639 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6640 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6641 (*aarch64_adr_uxtw_unspec): Likewise.
6642 (*aarch64_adr_uxtw): Rename to...
6643 (*aarch64_adr_uxtw_and): ...this.
6644 (@aarch64_adr<mode>_shift): New expander.
6645 (*aarch64_adr_shift_sxtw): New pattern.
6646 (aarch64_<su>abd<mode>_3): Rename to...
6647 (@aarch64_pred_<su>abd<mode>): ...this.
6648 (<su>abd<mode>_3): Update accordingly.
6649 (@aarch64_cond_<su>abd<mode>): New expander.
6650 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6651 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6652 (*<su>mul<mode>3_highpart): Rename to...
6653 (@aarch64_pred_<optab><mode>): ...this.
6654 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6655 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6656 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6657 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6658 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6659 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6660 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6661 (*v<ASHIFT:optab><mode>3): Rename to...
6662 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6663 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6664 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6665 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6666 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6667 (@cond_asrd<mode>): New expander.
6668 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6669 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6670 (*sdiv_pow2<mode>3): Delete.
6671 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6672 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6673 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6674 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6675 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6676 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6677 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6678 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6679 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6680 (*add<SVE_F:mode>3): Rename to...
6681 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6683 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6684 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6685 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6686 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6687 (*sub<SVE_F:mode>3): Rename to...
6688 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6690 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6691 (*fabd<SVE_F:mode>3): Rename to...
6692 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6693 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6694 (*mul<SVE_F:mode>3): Rename to...
6695 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6697 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6698 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6700 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6701 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6702 (*<nlogical><PRED_ALL:mode>3): Rename to...
6703 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6704 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6705 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6706 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6707 (aarch64_pred_<logical_nn><mode>_z): ...this.
6708 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6709 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6710 (*fma<SVE_I:mode>4): Rename to...
6711 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6712 (*fnma<SVE_I:mode>4): Rename to...
6713 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6714 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6715 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6716 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6717 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6718 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6719 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6720 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6721 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6722 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6723 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6724 (@aarch64_sve_tmad<mode>): Likewise.
6725 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6726 (*aarch64_sel_dup<mode>): Rename to...
6727 (@aarch64_sel_dup<mode>): ...this.
6728 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6729 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6730 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6731 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6732 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6733 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6734 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6735 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6736 (*fcm<cmp_op><mode>): Rename to...
6737 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6738 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6739 (*fcmuo<mode>): Rename to...
6740 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6741 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6742 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6743 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6744 (fold_extract_last_<mode>): Generalize to...
6745 (@fold_extract_<last_op>_<mode>): ...this.
6746 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6747 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6748 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6749 DImode result explicit.
6750 (reduc_plus_scal_<mode>): Update accordingly.
6751 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6752 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6753 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6754 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6755 (*aarch64_sve_tbl<mode>): Rename to...
6756 (@aarch64_sve_tbl<mode>): ...this.
6757 (@aarch64_sve_compact<mode>): New pattern.
6758 (*aarch64_sve_dup_lane<mode>): Rename to...
6759 (@aarch64_sve_dup_lane<mode>): ...this.
6760 (@aarch64_sve_dupq_lane<mode>): New pattern.
6761 (@aarch64_sve_splice<mode>): Likewise.
6762 (aarch64_sve_<perm_insn><mode>): Rename to...
6763 (@aarch64_sve_<perm_insn><mode>): ...this.
6764 (*aarch64_sve_ext<mode>): Rename to...
6765 (@aarch64_sve_ext<mode>): ...this.
6766 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6767 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6769 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6770 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6772 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6774 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6775 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6776 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6777 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6779 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6780 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6782 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6783 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6784 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6786 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6787 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6788 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6789 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6790 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6792 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6793 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6794 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6795 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6796 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6797 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6798 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6799 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6800 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6801 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6802 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6803 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6804 (aarch64_sve_cnt_pat): Likewise.
6805 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6806 (*aarch64_sve_incsi_pat): Likewise.
6807 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6808 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6809 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6810 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6811 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6812 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6813 (*aarch64_sve_decsi_pat): Likewise.
6814 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6815 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6816 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6817 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6818 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6819 (@aarch64_pred_cntp<mode>): Likewise.
6820 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6822 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6823 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6824 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6826 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6828 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6829 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6830 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6831 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6832 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6833 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6834 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6836 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6837 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6838 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6840 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6842 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6844 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6845 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6847 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6848 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6850 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6851 * config/aarch64/arm_sve.h: New file.
6852 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6853 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6854 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6855 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6856 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6857 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6858 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6859 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6860 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6862 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6864 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6866 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6869 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6871 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6872 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6874 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6875 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6876 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6877 (aarch64_hard_regno_nregs): Handle the new register classes.
6878 (aarch64_hard_regno_mode_ok): Likewise.
6879 (aarch64_regno_regclass): Likewise.
6880 (aarch64_class_max_nregs): Likewise.
6881 (aarch64_register_move_cost): Likewise.
6882 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6883 as general register_operands.
6885 2019-10-29 Martin Liska <mliska@suse.cz>
6887 * ggc-common.c: One can't subtract unsigned types
6888 in compare function.
6890 2019-10-29 Martin Liska <mliska@suse.cz>
6892 * cgraphunit.c (symbol_table::compile): Pass
6893 title as dump_memory_report argument.
6894 * toplev.c (dump_memory_report): New argument.
6895 (finalize): Pass new argument.
6896 * toplev.h (dump_memory_report): Add argument.
6898 2019-10-29 Martin Liska <mliska@suse.cz>
6900 * ggc-common.c: Move Leak to the first column.
6902 2019-10-29 Martin Liska <mliska@suse.cz>
6904 * cgraphunit.c (symbol_table::compile): Remove argument
6905 for dump_memory_report.
6906 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6907 (compare_final): Remove in order to make report
6909 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6910 * mem-stats.h (mem_alloc_description::get_list):
6912 (mem_alloc_description::dump): Likewise here.
6913 * toplev.c (dump_memory_report): Remove final
6915 (finalize): Likewise.
6916 * toplev.h (dump_memory_report): Remove argument.
6918 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6920 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6921 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6922 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6923 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6926 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6928 * coretypes.h (string_int_pair): New typedef.
6929 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6930 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6931 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6933 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6935 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6936 (simulate_builtin_function_decl): Declare.
6937 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6938 (LANG_HOOKS_INITIALIZER): Include it.
6939 * langhooks.c (add_builtin_function_common): Rename to...
6940 (build_builtin_function): ...this. Add a location parameter and use
6941 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
6943 (add_builtin_function): Update accordingly, passing the returned
6944 decl to the lang hook.
6945 (add_builtin_function_ext_scope): Likewise
6946 (simulate_builtin_function_decl): New function.
6948 2019-10-29 Jakub Jelinek <jakub@redhat.com>
6950 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
6951 example, use actual names of supported offload targets.
6954 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
6956 2019-10-28 Martin Sebor <msebor@redhat.com>
6958 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
6959 (handle_store): Pass argument to get_addr_stridx.
6961 2019-10-28 Martin Sebor <msebor@redhat.com>
6963 PR tree-optimization/92226
6964 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
6965 the offset is in the open range outlined by SI's length.
6967 2019-10-28 Martin Sebor <msebor@redhat.com>
6970 * doc/cpp.texi (__has_builtin): Document.
6971 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
6973 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6976 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
6977 doubleword and low doubleword result of multiplication on
6980 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
6981 pure qualifier to the built-in.
6982 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
6984 (struct mips_builtin_description): Add is_pure flag.
6985 (mips_init_builtins): Mark built-in as pure if the flag in the
6986 corresponding mips_builtin_description struct is set.
6988 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
6989 alternative which covers the floating-point input value. Also
6990 forbid the split of insert.d pattern for floating-point values.
6992 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
6994 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
6995 * config/riscv/riscv-sr.c: New file.
6996 * config/riscv/riscv.c (riscv_reorg): New function.
6997 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6998 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
6999 (riscv_remove_unneeded_save_restore_calls): Declare.
7000 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7002 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7004 PR tree-optimization/92163
7005 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7006 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7007 before calling bitmap_set_bit.
7008 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7009 delete_dead_or_redundant_assignment.
7010 (dse_dom_walker::dse_optimize_stmt): Likewise.
7011 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7013 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7016 * tree-vect-stmts.c (vectorizable_condition): Support
7017 EXTRACT_LAST_REDUCTION with fully-masked loops.
7019 2019-10-28 Richard Biener <rguenther@suse.de>
7021 PR tree-optimization/92252
7022 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7023 STMT_VINFO_REDUC_IDX when swapping operands.
7025 2019-10-28 Richard Biener <rguenther@suse.de>
7027 PR tree-optimization/92241
7028 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7029 we failed to update the reduction index do not use the pattern
7030 stmts for the reduction chain.
7031 (vectorizable_reduction): When the reduction chain is corrupt,
7033 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7034 fail to update the reduction chain.
7036 2019-10-28 Richard Biener <rguenther@suse.de>
7038 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7039 STMT_VINFO_REDUC_IDX from the actual stmt.
7040 (vect_transform_reduction): Likewise.
7041 (vectorizable_reduction): Compute the reduction chain length,
7042 do not recompute the reduction operand index. Remove no longer
7043 necessary restriction for condition reduction chains.
7045 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7048 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7049 condition for V2DImode.
7051 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7053 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7054 Remove %k operand modifier.
7055 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7057 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7059 PR rtl-optimization/92007
7060 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7061 call it after reload if hot/cold partitioning has been done.
7062 (class pass_postreload_jump): Rename to
7063 pass_jump_after_combine.
7064 (make_pass_postreload_jump): Rename to
7065 make_pass_jump_after_combine.
7066 * passes.def(pass_postreload_jump): Move before reload, rename
7067 to pass_jump_after_combine.
7068 * tree-pass.h (make_pass_postreload_jump): Rename to
7069 make_pass_jump_after_combine.
7071 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7074 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7075 for missing EDGE_REF
7076 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7078 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7080 PR tree-optimization/88760
7081 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7082 Enable -funroll-loops for -O2 and above.
7083 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7084 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7085 do not turn on web and rngreg implicitly, if the unroller is not
7088 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7090 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7093 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7095 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7096 * cgraph.h (cgraph_node::rtl_info): Likewise.
7098 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7100 * ipa-cp.c (propagate_constants_across_call): If args are not available
7101 just drop everything to varying.
7102 (find_aggregate_values_for_callers_subset): Watch for missing
7104 (find_more_scalar_values_for_callers_subs): Likewise.
7105 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7106 update_jump_functions_after_inlining, propagate_controlled_uses):
7107 Watch for missing summaries.
7108 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7110 (ipa_write_node_info): Watch for missing summaries.
7111 (ipa_read_edge_info): Create new ref.
7112 (ipa_edge_args_sum_t): Add remove.
7113 (IPA_EDGE_REF_GET_CREATE): New macro.
7114 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7116 (remap_edge_change_prob): Likewise.
7118 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7120 * ipa-inline-transform.c (inline_call): update function summaries
7121 after expanidng thunk.
7123 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7125 * ipa-icf.c (sem_function::merge): Update function summaries.
7126 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7128 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7130 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7131 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7132 operand already has scalar mode.
7133 (iptr): Remove SF/DF.
7135 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7138 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7139 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7142 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7144 * config/i386/sse.md
7145 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7146 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7147 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7148 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7149 <sse>_vmmaskcmp<mode>3):
7150 Change predicates from vector_operand to nonimmediate_operand,
7151 constraints xBm to xm, since scalar operations don't need
7152 memory address alignment.
7153 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7154 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7155 round_saeonly_nimm_predicate with
7156 round_saeonly_nimm_scalar_predicate.
7157 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7158 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7159 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7160 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7161 avx512f_vmfmadd_<mode>_mask3<round_name>,
7162 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7163 *avx512f_vmfmsub_<mode>_mask<round_name>,
7164 avx512f_vmfmsub_<mode>_mask3<round_name>,
7165 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7166 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7167 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7168 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7169 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7170 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7171 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7172 cvtusi2<ssescalarmodesuffix>32<round_name>,
7173 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7174 round_nimm_predicate with round_nimm_scalr_predicate.
7175 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7176 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7177 avx512er_vmrcp28<mode><round_saeonly_name>,
7178 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7179 ): Replace round_saeonly_nimm_predicate with
7180 round_saeonly_nimm_scalar_predicate.
7181 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7182 vector_operand with nonimmediate_operand.
7183 * config/i386/subst.md (round_scalar_nimm_predicate,
7184 round_saeonly_scalar_nimm_predicate): Replace
7185 vector_operand with nonimmediate_operand.
7187 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7190 * config/i386/i386.md (*rcpsf2_sse): Add
7191 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7192 (*rsqrtsf2_sse): Ditto.
7193 (*sqrt<mode>2_sse): Ditto.
7194 (sse4_1_round<mode>2): separate constraint vm, add
7195 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7196 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7198 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7200 (*sse_vmrsqrtv4sf2): Ditto.
7201 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7202 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7203 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7204 <iptr> pointer size modifier since vround support memory operand.
7206 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7209 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7212 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7213 Tobias Burnus <tobias@codesourcery.com>
7215 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7216 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7219 2019-10-25 Richard Biener <rguenther@suse.de>
7221 PR tree-optimization/92222
7222 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7223 (_slp_oprnd_info::second_pattern): Likewise.
7224 (_slp_oprnd_info::any_pattern): New.
7225 (vect_create_oprnd_info): Adjust.
7226 (vect_get_and_check_slp_defs): Compute whether any stmt is
7228 (vect_build_slp_tree_2): Avoid building up a node from scalars
7229 if any of the operand defs, not just the first, is in a pattern.
7231 2019-10-25 Richard Biener <rguenther@suse.de>
7233 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7234 swapping if we actually have to modify the IL on a shared stmt.
7235 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7236 because we no longer modify the IL.
7238 2019-10-25 Martin Liska <mliska@suse.cz>
7240 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7242 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7244 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7245 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7246 handled by vect_transform_reduction. Allow fully-masked loops
7247 to be used with reduction chains.
7248 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7249 operations in fully-masked loops.
7250 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7251 operations in fully-masked loops.
7253 2019-10-25 Richard Biener <rguenther@suse.de>
7255 * tree-vect-loop.c (vectorizable_reduction): Verify
7256 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7258 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7259 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7262 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7264 * gimplify.h (omp_construct_selector_matches): Declare.
7265 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7266 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7267 called function if needed for flag_openmp.
7268 (gimplify_scan_omp_clauses): Set ctx->code.
7269 (omp_construct_selector_matches): New function.
7270 * omp-general.h (omp_constructor_traits_to_codes,
7271 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7272 * omp-general.c (omp_constructor_traits_to_codes,
7273 omp_context_selector_matches, omp_resolve_declare_variant): New
7276 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7278 * config/rx/rx.c (rx_print_operand): Likewise.
7279 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7280 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7281 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7283 * genemit.c (emit_c_code): Likewise.
7284 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7286 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7288 * symbols-summary.h (fast_function_summary<T *, V>::release,
7289 fast_call_summary<T *, V>::release): Free m_vector.
7291 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7293 * cgraphunit.c (symbol_table::process_new_functions): Call
7294 ipa_free_size_summary.
7295 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7296 (devirtualization_time_bonus): Update.
7297 (ipcp_propagate_stage): Update.
7298 * ipa-fnsummary.c (ipa_size_summaries): New.
7299 (ipa_fn_summary_alloc): Alloc size summary.
7300 (dump_ipa_call_summary): Update.
7301 (ipa_dump_fn_summary): Update.
7302 (analyze_function_body): Update.
7303 (compute_fn_summary): Likewise.
7304 (ipa_get_stack_frame_offset): New function.
7305 (inline_update_callee_summaries): Do not update frame offsets.
7306 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7307 remove call and function summary.
7308 (ipa_update_overall_fn_summary): Update.
7309 (inline_read_section): Update.
7310 (ipa_fn_summary_write): Update.
7311 (ipa_free_fn_summary): Do not remove summaries.
7312 (ipa_free_size_summary): New.
7313 (release summary pass): Also run at WPA.
7314 * ipa-fnsummary.h (ipa_size_summary): Declare.
7315 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7316 estimated_self_stack_size.
7317 (ipa_size_summary_t): New type.
7318 (ipa_size_summaries): Declare.
7319 (ipa_free_size_summary): Declare.
7320 (ipa_get_stack_frame_offset): Declare.
7321 * ipa-icf.c (sem_function::merge): Update.
7322 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7323 (estimate_growth): Update.
7324 (growth_likely_positive): Update.
7325 (clone_inlined_nodes): Update.
7326 (inline_call): Update.
7327 * ipa-inline.c (caller_growth_limits): Update.
7328 (edge_badness): Update.
7329 (recursive_inlining): Update.
7330 (inline_small_functions): Update.
7331 (inline_to_all_callers_1): Update.
7332 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7334 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7336 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7337 (uavg<mode>3_ceil): ... This.
7338 (altivec_vavgs<VI_char>): Rename to...
7339 (avg<mode>3_ceil): ... This.
7340 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7341 VAVGUW, VAVGSW): Adjust.
7343 2019-10-24 Nathan Sidwell <nathan@acm.org>
7345 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7347 2019-10-24 Martin Liska <mliska@suse.cz>
7349 * symbol-summary.h (gt_pch_nx): Mark all functions
7350 with gcc_unreachable as we do not expect to be called.
7352 2019-10-24 Richard Biener <rguenther@suse.de>
7354 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7355 chains try harder with operand swapping and instead of
7356 putting a shifted chain into the reduction operands put
7357 a repetition of the final reduction op there as if we'd
7358 reassociate the expression.
7360 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7362 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7363 statics_not_read and statics_not_written to statics_read and
7364 statics_written respectively.
7365 (no_module_statics): New static var.
7366 (ipa_reference_get_not_read_global): Rename to ...
7367 (ipa_reference_get_read_global): ... this.
7368 (ipa_reference_get_not_written_global): Rename to ...
7369 (ipa_reference_get_written_global): ... this.
7370 (dump_static_vars_set_to_file): Dump no_module_statics.
7371 (copy_static_var_set): Add for propagation parameter.
7372 (ipa_init): Initialize no_module_statics.
7373 (ipa_ref_opt_summary_t::duplicate): Update.
7374 (ipa_ref_opt_summary_t::remove): Update.
7375 (propagate): Update.
7376 (write_node_summary_p): Look correctly for bitmap differences.
7377 (ipa_reference_write_optimization_summary): Update.
7378 (ipa_reference_read_optimization_summary): Update.
7380 (ipa_reference_get_not_read_global): Rename to ...
7381 (ipa_reference_get_read_global): ... this.
7382 (ipa_reference_get_not_written_global): Rename to ...
7383 (ipa_reference_get_written_global): ... this.
7384 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7385 (call_may_clobber_ref_p_1): Update.
7387 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7389 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7391 (msp430_hard_regno_nregs_with_padding): Remove.
7393 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7395 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7396 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7397 shift amount is between 1 and 4.
7398 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7401 2019-10-24 Richard Biener <rguenther@suse.de>
7403 PR tree-optimization/92205
7404 * tree-vect-loop.c (vectorizable_reduction): Restrict
7405 search for alternate vectype_in to lane-reducing patterns
7408 2019-10-24 Richard Biener <rguenther@suse.de>
7410 PR tree-optimization/92203
7411 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7412 Skip eliminating conversion stmts inserted by insertion.
7414 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7416 * config/s390/s390.c (s390_get_thread_pointer): Use
7417 gen_get_thread_pointer.
7418 (s390_expand_split_stack_prologue): Likewise.
7419 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7420 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7421 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7422 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7425 2019-10-24 Richard Biener <rguenther@suse.de>
7427 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7428 SLP discovery fails try to handle the reduction as part
7429 of SLP reduction discovery.
7431 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7433 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7435 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7436 attribute if it exists, rather than the insn size. If we use the
7437 insn size, adjust the size to remove the extra size that prefixed
7439 (rs6000_adjust_insn_length): New function.
7440 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7441 update the instruction sized if prefixed instructions are used.
7442 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7443 (non_prefixed_length attribute): Delete.
7444 (num_insns attribute): New insn attribute to return the number of
7446 (max_prefixed_insns attribute): New insn attribute to return the
7447 maximum number of prefixed instructions in an insn.
7448 (length attribute): Do not adjust for prefix instructions here,
7449 punt to ADJUST_INSN_LENGTH.
7450 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7451 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7452 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7453 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7454 max_prefixed_insns and num_insns.
7456 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7457 (movtd_64bit_nodm): Reformat.
7458 (mov<mode>_32bit): Reformat.
7459 (mov<mode>_softfloat): Reformat.
7460 (FMOVE128_GPR splitter): Reformat.
7461 (DIFD splitter): Reformat.
7462 (TI2 splitter): Reformat.
7463 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7464 bits of the offset for the memory address are non-zero, use PLWA
7465 if prefixed instructions are available.
7467 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7469 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7471 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7473 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7476 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7478 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7479 (cmp_symbol_files): New.
7480 (lto_output): Copy sections in file order.
7481 * lto-streamer.h (lto_file_decl_data): Add field order.
7483 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7485 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7486 * ipa-reference.c (reference_vars_map_t): new type.
7487 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7488 (ipa_reference_var_uid): Implement.
7489 (varpool_node_hooks): New static var.
7490 (varpool_removal_hook): New function.
7491 (is_improper): Do not check bitmap for id==-1
7492 (get_static_name): Update.
7493 (ipa_init): Initialize new datastructures.
7494 (analyze_function): Do not recompute ids.
7495 (propagate): Free reference_vars_to_consider.
7496 (stream_out_bitmap): Update.
7497 (ipa_reference_read_optimization_summary): Update.
7499 2019-10-23 qing zhao <qing.zhao@oracle.com>
7501 PR gcov-profile/91971
7502 * coverage.c (coverage_init): Mangle the full path of filename when
7503 filename is a absolute path.
7505 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7507 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7508 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7509 (msp430_has_hwmult): New.
7510 (msp430_output_labelref):
7511 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7512 * config/msp430/msp430.md (mulhisi3): Likewise.
7513 (umulhisi3): Likewise.
7514 (mulsidi3): Likewise.
7515 (umulsidi3): Likewise.
7517 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7520 * params.def (inline-heuristics-hint-percent): Set to 600.
7522 2019-10-23 Richard Biener <rguenther@suse.de>
7524 PR tree-optimization/65930
7525 * tree-vect-loop.c (check_reduction_path): Allow conversions
7526 that only change the sign.
7527 (vectorizable_reduction): Relax latch def stmts we handle further.
7529 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7532 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7533 (remove_unused_ivs): Use it instead of get_computation_at. When
7534 choosing best candidate, only consider candidates where
7535 get_debug_computation_at actually returns non-NULL.
7537 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7539 PR tree-optimization/92131
7540 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7541 range would be symbolic, drop to varying for any explicit overflow
7542 in the constant part or if neither range is a singleton.
7544 2019-10-23 Martin Liska <mliska@suse.cz>
7547 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7550 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7552 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7553 int_mode_for_mode rather than mode_for_int_vector for scalars.
7555 2019-10-23 Richard Biener <rguenther@suse.de>
7557 PR tree-optimization/92179
7558 * tree-vect-stmts.c (vectorizable_shift): For shift args
7559 that are all the same remove type restriction in the SLP case.
7560 Adjust SLP code to handle converting of the shift arg to
7561 only apply in case the modes are different.
7563 2019-10-23 Martin Liska <mliska@suse.cz>
7566 * ipa-inline.c (recursive_inlining): Do not print
7567 when curr->count is not initialized.
7569 2019-10-23 Richard Biener <rguenther@suse.de>
7571 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7572 op from scalars in case there's a constant operand in its
7575 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7577 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7578 against out of range max skip or log values.
7580 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7582 * cgraph.c (dump_graphviz): Change name to dump_name
7584 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7586 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7587 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7588 subtraction from a carry operation.
7590 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7592 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7594 2019-10-22 Richard Biener <rguenther@suse.de>
7596 PR tree-optimization/92173
7597 * tree-vect-loop.c (vectorizable_reduction): If
7598 vect_transform_reduction cannot handle code-generation try without
7599 the single-def-use-cycle optimization. Pass optab_vector to
7600 optab_for_tree_code to get vector shifts as that's what we'd
7603 2019-10-22 Michael Matz <matz@suse.de>
7606 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7607 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7608 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7610 2019-10-22 Richard Biener <rguenther@suse.de>
7612 PR tree-optimization/92173
7613 * tree-vect-loop.c (vectorizable_reduction): If
7614 vect_transform_reduction cannot handle code-generation try without
7615 the single-def-use-cycle optimization. Pass optab_vector to
7616 optab_for_tree_code to get vector shifts as that's what we'd
7619 2019-10-22 Martin Liska <mliska@suse.cz>
7621 * diagnostic-format-json.cc (json_from_expanded_location):
7622 Use json::integer_number.
7623 * gcov.c (output_intermediate_json_line): Use new
7624 json::integer_number.
7625 (output_json_intermediate_file): Likewise.
7626 * json.cc (number::print): Move to ...
7627 (float_number::print): ... this.
7628 (integer_number::print): New.
7629 (test_writing_numbers): Move to ...
7630 (test_writing_float_numbers): ... this.
7631 (test_writing_integer_numbers): New.
7632 (json_cc_tests): Register test_writing_integer_numbers.
7633 * json.h (class value): Add forward declaration
7634 for float_number and integer_number.
7635 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7636 (class number): Move to ...
7637 (class float_number): ... this.
7638 (class integer_number): New.
7639 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7640 Use json::integer_number.
7641 (optrecord_json_writer::location_to_json): Likewise.
7642 (optrecord_json_writer::profile_count_to_json): Likewise.
7643 (optrecord_json_writer::pass_to_json): Likewise.
7645 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7647 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7648 autodetected_vector_size rather than vector_size is zero.
7649 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7650 Set autodetected_vector_size immediately after calling
7651 vect_analyze_loop_2. Check for a fatal error before advancing
7654 2019-10-21 Jason Merrill <jason@redhat.com>
7656 * lock-and-run.sh: Check for process existence rather than timeout.
7658 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7660 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7661 widening multiplication.
7663 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7665 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7666 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7668 (subsi3_carryin_shift): Separate into register and constant controlled
7669 alternatives. Use shift_amount_operand for operand 4. Set shift
7670 attribute and simplify type attribute.
7671 (subsi3_carryin_shift_alt): Likewise.
7672 (rsbsi3_carryin_shift): Likewise.
7673 (rsbsi3_carryin_shift_alt): Likewise.
7674 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7675 and register controlled shifts into distinct alternatives.
7676 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7677 (andsi_not_shiftsi_si_scc): Likewise.
7678 (arm_cmpsi_negshiftsi_si): Likewise.
7679 (not_shiftsi): Remove redundant M constraint from alternative 1.
7680 (not_shiftsi_compare0): Likewise.
7681 (arm_cmpsi_insn): Remove redundant alternative 2.
7682 (cmpsi_shift_swp): Likewise.
7683 (sub_shiftsi): Likewise.
7684 (sub_shiftsi_compare0_scratch): Likewise.
7685 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7686 (thumb2_cmpsi_neg_shiftsi): Likewise.
7688 2019-10-21 Richard Biener <rguenther@suse.de>
7690 PR tree-optimization/92162
7691 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7692 STMT_VINFO_REDUC_IDX in reduc_info.
7693 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7695 2019-10-21 Richard Biener <rguenther@suse.de>
7697 * tree-vectorizer.h (_slp_tree::ops): New member.
7698 (SLP_TREE_SCALAR_OPS): New.
7699 (vect_get_slp_defs): Adjust prototype.
7700 * tree-vect-slp.c (vect_free_slp_tree): Release
7701 SLP_TREE_SCALAR_OPS.
7702 (vect_create_new_slp_node): Initialize it. New overload for
7703 initializing by an operands array.
7704 (_slp_oprnd_info::ops): New member.
7705 (vect_create_oprnd_info): Initialize it.
7706 (vect_free_oprnd_info): Release it.
7707 (vect_get_and_check_slp_defs): Populate the operands array.
7708 Do not swap operands in the IL when not necessary.
7709 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7710 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7711 swap operands in the operands array. Do not swap operands in
7713 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7714 (vect_gather_slp_loads): Fix.
7715 (vect_detect_hybrid_slp_stmts): Likewise.
7716 (vect_slp_analyze_node_operations_1): Search for a internal
7717 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7718 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7719 the def-type push/pop dance.
7720 (vect_get_constant_vectors): Compute number_of_vectors here.
7721 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7722 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7723 (vect_get_slp_defs): Simplify greatly.
7724 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7725 (vect_transform_reduction): Likewise.
7726 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7727 (vectorizable_call): Likewise.
7728 (vectorizable_operation): Likewise.
7729 (vectorizable_load): Likewise.
7730 (vectorizable_condition): Likewise.
7731 (vectorizable_comparison): Likewise.
7733 2019-10-21 Richard Biener <rguenther@suse.de>
7735 PR tree-optimization/92161
7736 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7739 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7741 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7742 (aarch64_rndr): New define_insn.
7743 (aarch64_rndrrs): Likewise.
7744 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7745 (TARGET_RNG): Likewise.
7746 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7748 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7749 Add fourth argument in prototype.
7750 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7751 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7752 (aarch64_init_rng_builtins): Define.
7753 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7754 (aarch64_expand_rng_builtin): Define.
7755 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7757 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7758 __ARM_FEATURE_RNG when TARGET_RNG.
7759 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7761 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7763 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7764 alignment is more restrictive.
7766 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7768 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7769 (vect_update_max_nunits): Update comment.
7770 (current_vector_size): Delete.
7771 * tree-vect-stmts.c (current_vector_size): Likewise.
7772 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7773 of current_vector_size.
7774 (get_mask_type_for_scalar_type): Likewise.
7775 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7776 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7777 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7778 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7779 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7780 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7782 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7784 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7785 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7786 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7789 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7791 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7792 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7793 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7795 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7797 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7799 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7801 (vect_set_loop_condition_masked): Update call accordingly.
7803 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7805 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7806 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7807 (simple_integer_narrowing): Update call accordingly.
7808 (vectorizable_conversion): Likewise.
7810 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7812 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7813 (vectorizable_call): Update call accordingly.
7815 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7817 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7818 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7819 (duplicate_and_interleave): Update call accordingly.
7820 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7822 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7824 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7825 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7826 (vect_get_constant_vectors): Update call accordingly.
7827 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7829 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7831 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7832 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7833 (vect_prologue_cost_for_slp_op): Update call accordingly.
7834 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7835 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7836 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7837 (get_mask_type_for_scalar_type): Likewise.
7838 (vect_get_vector_types_for_stmt): Likewise.
7839 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7840 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7841 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7842 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7843 (vect_split_statement, vect_convert_input): Likewise.
7844 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7845 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7846 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7847 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7848 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7849 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7850 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7851 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7852 (vect_recog_mask_conversion_pattern): Likewise.
7853 (vect_add_conversion_to_pattern): Likewise.
7854 (vect_recog_gather_scatter_pattern): Likewise.
7855 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7856 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7858 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7860 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7861 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7862 (vect_check_load_store_mask): Update call accordingly.
7863 (vect_get_mask_type_for_stmt): Likewise.
7864 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7865 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7866 (vect_convert_mask_for_vectype): Likewise.
7868 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7870 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7872 (vect_recog_dot_prod_pattern): Update call accordingly.
7873 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7874 (vect_recog_widen_sum_pattern): Likewise.
7876 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7878 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7879 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7880 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7883 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7885 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7886 get_vectype_for_scalar_type_and_size instead of
7887 get_vectype_for_scalar_type.
7889 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7891 * common.opt (-fcommon): Fix description.
7893 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7895 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7896 * config/i386/i386.c (ix86_pre_reload_split): New function.
7897 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7898 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7899 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7900 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7901 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7902 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7903 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7904 *<shift_insn><dwi>3_doubleword_mask,
7905 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7906 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7907 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7908 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7909 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7910 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7911 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7912 *avx2_<code>v8qiv8si2<mask_name>_2,
7913 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7914 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7915 *avx512f_<code>v8qiv8di2<mask_name>_2,
7916 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7917 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7918 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7919 sse4_2_pcmpistr): Likewise.
7921 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7923 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7924 now defaults to https.
7926 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7928 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7929 skip non-zero array accesses.
7931 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7933 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7934 and return a boolean success value. Move the allocation and
7935 initialization of the bb_vec_info to...
7936 (vect_slp_bb_region): ...here. Update call accordingly.
7937 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7938 than in vect_slp_analyze_bb_1.
7940 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7942 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
7943 when processing the given datarefs for the first time and
7944 check_datarefs subsequently.
7945 (vect_slp_bb_region): New function, split out of...
7946 (vect_slp_bb): ...here. Don't recompute the region bounds and
7947 dataref sets when retrying with a different vector size.
7949 2019-10-19 Jakub Jelinek <jakub@redhat.com>
7950 Uroš Bizjak <ubizjak@gmail.com>
7953 * config/i386/predicates.md (int_nonimmediate_operand): New special
7955 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
7956 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
7957 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
7958 define_insn_and_split patterns.
7960 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
7962 * config/rs6000/rs6000.md: Delete out--of-date comment about
7963 special-casing integer loads.
7965 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
7967 * escaped_string.h (escaped_string): New header.
7968 * tree.c (escaped_string): Remove escaped_string class.
7970 2019-10-18 Martin Sebor <msebor@redhat.com>
7972 PR tree-optimization/92157
7973 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
7974 compute_string_length to return a negative result.
7976 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7978 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
7979 (negvsi3, negvdi3): Delete.
7980 (negdi2_compare): Delete.
7982 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7984 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
7986 (subdi3_compare1): Delete pattern.
7987 (subvsi3_borrow): New insn pattern.
7988 (subvsi3_borrow_imm): Likewise.
7990 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
7992 * config/arm/arm.md (subv<mode>4): Delete.
7993 (subvdi4): New expander pattern.
7994 (subvsi4): Likewise. Handle some immediate values.
7995 (subvsi3_intmin): New insn pattern.
7996 (subvsi3): Likewise.
7997 (subvsi3_imm1): Likewise.
7998 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8001 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8003 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8004 incoming operands. Early split the calculation into SImode
8006 (usubvsi3_borrow): New insn pattern.
8007 (usubvsi3_borrow_imm): Likewise.
8009 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8011 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8012 (usubvsi4): New pattern. Allow some immediate values for inputs.
8013 (usubvdi4): New pattern.
8015 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8017 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8018 or second operand of the PLUS inside a DImode equality test to be
8019 sign-extend when selecting CC_Vmode.
8020 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8022 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8024 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8025 (addsi3_cin_vout_0): Likewise.
8026 (adddi3_compareV): Delete.
8028 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8030 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8031 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8032 to transform this back into the summation version when that leads
8035 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8037 * config/arm/arm.md (addv<mode>4): Delete.
8038 (addvsi4): New pattern. Handle immediate values that the architecture
8040 (addvdi4): New pattern.
8041 (addsi3_compareV): Rename to ...
8042 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8043 and use COMPARE rather than NE.
8044 (addsi3_compareV_imm): New pattern.
8045 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8046 a signed-overflow check.
8048 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8050 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8051 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8053 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8054 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8056 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8058 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8059 (addsi3_cin_cout_imm_insn): Likewise.
8060 (adddi3_compareC): Delete insn.
8061 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8063 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8065 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8066 * (uaddv<mode>4): Delete expansion pattern.
8067 (uaddvsi4): New pattern.
8068 (uaddvdi4): Likewise.
8069 (addsi3_compareC): Delete pattern, change callers to use
8071 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8072 reduce the number of alternatives and re-work type attribute handling.
8073 (addsi3_compare_op2): Clean up constraints to reduce the number of
8074 alternatives and re-work type attribute handling.
8075 (compare_addsi2_op0): Likewise.
8076 (compare_addsi2_op1): Likewise.
8078 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8080 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8081 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8082 for DImode operands.
8083 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8084 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8086 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8087 (arm_cmpdi_unsigned): Delete.
8089 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8091 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8092 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8093 unchanged only if that will be cheaper.
8094 (arm_select_cc_mode): Recognize a swapped comparison that will
8095 be regenerated using RSBS or RSCS. Relax restriction on selecting
8097 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8099 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8101 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8103 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8104 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8106 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8108 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8109 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8111 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8112 of EQ, NE, LT, GE, LTU and GEU.
8113 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8114 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8115 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8116 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8117 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8119 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8121 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8123 (cstoredi4): Similarly, but for operand 3.
8124 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8125 canonicalization of unsigned compares with a constant on Arm.
8126 Prefer using const+1 and adjusting the comparison over swapping the
8127 operands whenever the original constant was not valid.
8128 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8130 (arm_validize_comparison): Do not force invalid DImode operands to
8133 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8135 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8136 return CC_Zmode if comparing against a constant where one word is
8138 (arm_gen_compare_reg): Split DImode handling to ...
8139 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8140 against simple constants.
8141 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8143 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8145 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8146 (rsbsi3_carryin_shift_alt): Likewise.
8148 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8150 * config/arm/arm.md (negscc_borrow): New pattern.
8151 (mov_negscc): Don't split if the insn would match negscc_borrow.
8152 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8153 (thumb2_mov_negscc_strict_it): Likewise.
8155 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8157 * config/arm/arm.c (arm_insn_cost): New function.
8158 (TARGET_INSN_COST): Override default definition.
8160 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8162 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8165 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8167 * config/arm/arm.c (strip_carry_operation): New function.
8168 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8171 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8173 * config/arm/predicates.md (arm_carry_operation): New special
8175 * config/arm/iterators.md (LTUGEU): Delete iterator.
8176 (cnb): Delete code attribute.
8177 (optab): Delete ltu and geu elements.
8178 * config/arm/arm.md (addsi3_carryin): Renamed from
8179 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8180 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8181 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8182 (addsi3_carryin_clobercc): Similarly.
8183 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8186 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8188 * config/arm/arm.md (arm_subdi3): Delete insn.
8189 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8191 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8193 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8194 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8195 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8197 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8198 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8200 (subdi3): Rewrite to early-expand the sub-operations.
8201 (rsb_im_compare): New pattern.
8203 (negdi2_insn): Delete.
8204 (arm_negsi2): Correct type attribute to alu_imm.
8205 (negsi2_0compare): New insn pattern.
8206 (negsi2_carryin): New insn pattern.
8208 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8210 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8213 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8215 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8216 to match canonical form.
8218 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8220 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8221 (extend<mode>di2): Likewise.
8223 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8225 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8226 * config/arm/arm.c (arm_decompose_di_binop): New function.
8227 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8228 If not generating Thumb-1 code, decompose the operation into 32-bit
8230 * add0si_carryin_<optab>: New pattern.
8232 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8234 * arm.md (adddi3): Only accept register operands.
8235 (arm_adddi3): Convert to simple insn with no split. Do not accept
8237 (adddi_sesidi_di): Delete patern.
8238 (adddi_zesidi_di): Likewise.
8239 (uaddv<mode>4): Use LTU as condition for branch.
8240 (adddi3_compareV): Convert to simple insn with no split.
8241 (addsi3_compareV_upper): Delete pattern.
8242 (adddi3_compareC): Convert to simple insn with no split. Correct
8243 flags setting expression.
8244 (addsi3_compareC_upper): Delete pattern.
8245 (addsi3_compareC): Correct flags setting expression.
8246 (subdi3_compare1): Convert to simple insn with no split.
8247 (subsi3_carryin_compare): Delete pattern.
8248 (arm_subdi3): Convert to simple insn with no split.
8249 (subdi_zesidi): Delete pattern.
8250 (subdi_di_sesidi): Delete pattern.
8251 (subdi_zesidi_di): Delete pattern.
8252 (subdi_sesidi_di): Delete pattern.
8253 (subdi_zesidi_zesidi): Delete pattern.
8254 (negvdi3): Use s_register_operand.
8255 (negdi2_compare): Convert to simple insn with no split.
8256 (negdi2_insn): Likewise.
8257 (negsi2_carryin_compare): Delete pattern.
8258 (negdi_zero_extendsidi): Delete pattern.
8259 (arm_cmpdi_insn): Convert to simple insn with no split.
8260 (negdi2): Don't call gen_negdi2_neon.
8261 * config/arm/neon.md (adddi3_neon): Delete pattern.
8262 (subdi3_neon): Delete pattern.
8263 (negdi2_neon): Delete pattern.
8264 (splits for negdi2_neon): Delete splits.
8266 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8269 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8272 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8274 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8275 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8276 new multilib variants and new mappings.
8278 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8281 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8283 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8284 Richard Sandiford <richard.sandiford@arm.com>
8287 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8288 and define hashmap traits for it.
8289 (loop_vec_info::scalar_cond_masked_set): New member.
8290 (vect_record_loop_mask): Adjust prototype.
8291 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8293 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8294 vect_record_loop_mask.
8295 (vectorizable_live_operation): Likewise.
8296 (vect_record_loop_mask): New param scalar_mask. Add entry
8297 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8298 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8299 Pass it as last arg to vect_record_loop_mask.
8300 (vectorizable_call): Pass scalar_mask as last arg to
8301 vect_record_loop_mask.
8302 (vectorizable_store): Likewise.
8303 (vectorizable_load): Likewise.
8304 (vectorizable_condition): Check if another part of vectorized code
8305 applies loop_mask to condition or to it's inverse, and if yes,
8306 apply loop_mask to result of vector comparison.
8308 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8310 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8312 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8314 PR tree-optimization/92056
8315 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8316 before calling compute_builtin_object_size.
8318 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8321 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8322 (movdi_low_st): Delete.
8323 * config/rs6000/rs6000.c
8324 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8325 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8326 * config/rs6000/rs6000.md (movsi_low): Delete.
8328 2019-10-17 Jason Merrill <jason@redhat.com>
8330 * gimplify.h (get_initialized_tmp_var): Add default argument to
8332 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8333 NULL post_p argument.
8334 * targhooks (std_gimplify_va_arg_expr): Likewise.
8336 2019-10-17 Richard Biener <rguenther@suse.de>
8338 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8339 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8340 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8341 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8342 * tree-vect-loop.c (vect_is_simple_reduction): Set
8343 STMT_VINFO_REDUC_CODE.
8344 (vectorizable_reduction): Remove dead and redundant code, use
8345 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8347 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8349 Fix breakage introduced by r276985.
8351 * config/avr/avr.c (avr_option_override): Remove set of
8352 PARAM_ALLOW_STORE_DATA_RACES.
8353 * common/config/avr/avr-common.c (avr_option_optimization_table)
8354 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8356 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8358 * config/i386/i386.h (processor_costs): Add clear_ratio.
8359 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8360 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8361 of 6 and move_ratio in all cost models.
8363 2019-10-17 Richard Biener <rguenther@suse.de>
8365 * tree-vect-loop.c (check_reduction_path): Compute reduction
8367 (vect_is_simple_reduction): Remove special-case of single-stmt
8368 reduction path detection.
8370 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8372 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8374 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8376 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8377 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8378 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8379 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8380 New combine patterns.
8381 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8383 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8385 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8387 * tree-vrp.c (value_range_base::dump): Display +INF for both
8388 pointers and integers when appropriate.
8390 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8392 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8393 when to use versioning threshold.
8395 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8397 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8398 outlined code from ...
8399 (vect_analyze_loop_2): ... here.
8401 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8403 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8404 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8405 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8407 2019-10-17 Richard Biener <rguenther@suse.de>
8409 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8410 (vect_is_simple_reduction): Move all validity checks ...
8411 (vectorizable_reduction): ... here. Compute whether we
8412 need a fold-left reduction here.
8413 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8414 both overloads, check needs_fold_left_reduction_p directly.
8415 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8417 2019-10-17 Richard Biener <rguenther@suse.de>
8419 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8420 TARGET_MEM_REF creation.
8422 2019-10-17 Richard Biener <rguenther@suse.de>
8424 PR tree-optimization/92129
8425 * tree-vect-loop.c (vectorizable_reduction): Also fail
8426 on GIMPLE_SINGLE_RHS.
8428 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8430 PR tree-optimization/92056
8431 * tree-object-size.c (cond_expr_object_size): Return early if then_
8432 processing resulted in unknown size.
8434 PR tree-optimization/92115
8435 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8436 temporary if it could trap.
8438 2019-10-17 Richard Biener <rguenther@suse.de>
8441 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8442 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8444 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8446 * tree-ssa-strlen.c (maybe_invalidate): Use
8447 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8449 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8450 Jim Wilson <jimw@sifive.com>
8452 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8453 regs to SIBCALL_REGS.
8454 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8455 passing regs to SIBCALL_REGS.
8457 2019-10-16 Martin Sebor <msebor@redhat.com>
8459 PR tree-optimization/83821
8460 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8461 the length of a string when available.
8462 (handle_builtin_memset) Add argument.
8463 (handle_store, strlen_check_and_optimize_call): Same.
8464 (check_and_optimize_stmt): Same. Pass it to callees.
8466 2019-10-16 Martin Sebor <msebor@redhat.com>
8468 PR tree-optimization/91996
8469 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8471 (compare_nonzero_chars): Add an overload.
8472 (count_nonzero_bytes): Add an argument. Call overload above.
8473 Handle non-constant lengths in some range.
8474 (handle_store): Add an argument.
8475 (check_and_optimize_stmt): Pass an argument to handle_store.
8477 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8479 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8481 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8483 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8484 operands which correspond to the same input-output register to
8485 have the same pseudo assigned to them.
8487 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8489 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8491 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8493 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8494 Apply reasonable limit to symbol offsets.
8496 2019-10-16 Richard Biener <rguenther@suse.de>
8498 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8499 (vect_is_simple_reduction): Delay checking to
8500 vectorizable_reduction and relax the checking.
8501 (vectorizable_reduction): Check we have a simple use. Check
8502 for bogus condition reductions.
8503 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8504 are looking at the last stmt in a pattern sequence when
8505 filling in backedge PHI values.
8507 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8508 Jiufu Guo <guojiufu@linux.ibm.com>
8511 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8512 the callee explicitly disables some isa_flags the caller is using.
8514 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8516 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8518 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8520 * genmodes.c (mode_data::order): New field.
8521 (blank_mode): Update accordingly.
8522 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8523 (make_vector_modes): Likewise.
8524 (VECTOR_MODES): Update use accordingly.
8525 (cmp_modes): Sort by the new order field ahead of sorting by size.
8526 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8527 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8528 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8529 (aarch64_classify_vector_mode): Handle the new partial modes.
8530 (aarch64_vl_bytes): New function.
8531 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8532 when counting the number of registers in an SVE mode.
8533 (aarch64_class_max_nregs): Likewise.
8534 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8536 (aarch64_classify_address): Treat partial vectors analogously
8538 (aarch64_print_address_internal): Consolidate the printing of
8539 MUL VL addresses, using aarch64_vl_bytes as the number of
8540 bytes represented by "VL".
8541 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8543 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8545 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8546 rather than known_lt when choosing frame layouts.
8548 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8550 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8551 that all the adjustments add up to the full frame size.
8552 Use crtl->outgoing_args_size directly as the final adjustment
8555 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8557 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8558 "frame" reference instead of always referring directly to
8559 "cfun->machine->frame".
8561 2019-10-16 Richard Biener <rguenther@suse.de>
8563 PR tree-optimization/92119
8564 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8565 against missing bswap lhs.
8567 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8570 * poly-int.h (constant_lower_bound_with_limit): New function.
8571 (constant_upper_bound_with_limit): Likewise.
8572 * doc/poly-int.texi: Document them.
8573 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8574 into the worst-case INTEGER_CST bounds.
8576 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8579 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8580 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8581 * ipa-predicat.h (struct expr_eval_op): New struct.
8582 (expr_eval_ops): New typedef.
8583 (struct condition): Add type and param_ops fields, remove size field.
8584 (add_condition): Replace size parameter with type parameter, add
8585 param_ops parameter.
8586 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8587 (predicate::add_clause): Add comparisons on type and param_ops.
8588 (dump_condition): Add debug dump for param_ops.
8589 (remap_after_inlining): Adjust call arguments to add_condition.
8590 (add_condition): Replace size parameter with type parameter, add
8591 param_ops parameter. Unshare constant value used in conditions.
8592 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8593 parameter expressions using param_ops.
8594 (decompose_param_expr): New function.
8595 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8596 to replace call to unmodified_parm_or_parm_agg_item.
8597 (set_switch_stmt_execution_predicate): Likewise.
8598 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8600 (inline_read_section): Read param_ops from summary stream.
8601 (ipa_fn_summary_write): Write param_ops to summary stream.
8603 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8605 PR rtl-optimization/92107
8606 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8609 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8611 * config/darwin.c: Update description of fix and continue.
8613 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8615 * config/darwin.c (darwin_binds_local_p): Update to call
8616 default_binds_local_p_3 () directly. amend comments.
8618 2019-10-15 Richard Biener <rguenther@suse.de>
8620 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8621 (tree_is_indexable): Use it.
8622 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8623 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8624 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8626 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8628 * config/msp430/msp430.md (zero_extendqipsi2): New.
8629 (zero_extendqisi2): Optimize case where src register and base dst
8630 register are the same.
8631 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8632 (zero_extendpsisi2): Optimize r->m case.
8633 Add unnamed insn patterns to catch insns combine searches for when
8634 optimizing pointer manipulation.
8636 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8638 * config/msp430/msp430.md: Group zero_extend* insns together.
8640 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8642 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8644 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8646 (msp430_subreg): Likewise.
8647 (msp430_split_addsi): Likewise.
8648 (msp430_print_operand_addr): Likewise.
8649 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8650 (USE_STORE_POST_INCREMENT): Define.
8651 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8652 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8653 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8654 (msp430_general_dst_operand): New.
8655 (msp430_general_dst_nonv_operand): New.
8656 (msp430_nonsubreg_operand): Remove.
8657 (msp430_nonsubreg_dst_operand): New.
8658 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8659 of defunct msp430_nonsubreg_operand.
8660 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8662 2019-10-15 Richard Biener <rguenther@suse.de>
8664 PR tree-optimization/91929
8665 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8666 (get_or_alloc_expr_for_name): Initialize it.
8667 (get_or_alloc_expr_for_constant): Likewise.
8668 (phi_translate_1): Copy it.
8669 (create_expression_by_pieces): Use the original location
8670 of the expression for the inserted stmt.
8671 (compute_avail): Record the location of the stmt for the
8672 expressions created.
8674 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8676 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8677 before using tree_to_uhwi.
8679 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8681 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8683 2019-10-15 Richard Biener <rguenther@suse.de>
8685 PR tree-optimization/92094
8686 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8687 do not adjust the reduction definition def type.
8688 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8689 defines the latch argument of the PHI.
8691 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8694 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8695 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8696 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8697 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8698 _mm_maskz_roundscale_round_sd): New intrinsics.
8699 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8700 __builtin_ia32_rndscales?_mask_round builtins instead of
8701 __builtin_ia32_rndscales?_round.
8702 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8703 __builtin_ia32_rndscalesd_round): Remove.
8704 (__builtin_ia32_rndscaless_mask_round,
8705 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8706 * config/i386/sse.md
8707 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8708 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8709 ... this, adjust and add subst atrributes to make it maskable.
8711 2019-10-15 Richard Biener <rguenther@suse.de>
8714 * common.opt (fallow-store-data-races): New.
8715 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8716 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8717 * doc/invoke.texi (fallow-store-data-races): Document.
8718 (--param allow-store-data-races): Remove docs.
8719 * opts.c (default_options_table): Enable -fallow-store-data-races
8721 (default_options_optimization): Do not enable --param
8722 allow-store-data-races at -Ofast.
8723 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8724 instead of PARAM_ALLOW_STORE_DATA_RACES.
8725 * tree-ssa-loop-im.c (execute_sm): Likewise.
8727 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8729 PR tree-optimization/92085
8730 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8731 instead of calling it unconditionally after
8732 delete_dead_or_redundant_assignment and fix indentation.
8734 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8736 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8738 (*fmsub<SDF:mode>4): Likewise.
8739 *fnmsub<SDF:mode>4): Likewise.
8740 (*fnmadd<SDF:mode>4): Likewise.
8742 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8744 * doc/tree-ssa.texi: Update renamed macro name.
8746 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8748 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8751 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8753 * config/darwin.c: Use unsigned ints for the picbase label
8754 counters, initialise the vars explicitly.
8755 (update_pic_label_number_if_needed): Move a variable declaration
8756 to where it's needed.
8757 (machopic_output_function_base_name): Use a more strict checking
8758 assert, and and unsigned int for the picbase label counter.
8759 (machopic_get_function_picbase): Likewise.
8761 2019-10-14 Richard Biener <rguenther@suse.de>
8764 * dse.c (scan_insn): Use param max_active_local_stores.
8765 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8766 based on optimization level.
8767 * loop-invariant.c (move_loop_invariants): Adjust
8768 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8769 * opts.c (default_options_optimization): Do not adjust
8770 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8771 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8773 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8775 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8777 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8779 * config/arm/arm.c (arm_option_override): Don't override sched
8782 2019-10-14 Richard Biener <rguenther@suse.de>
8784 PR tree-optimization/92069
8785 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8786 cycles do not set vect_nested_cycle on the latch definition.
8788 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8790 * function-abi.h (expr_callee_abi): Declare.
8791 * function-abi.cc (expr_callee_abi): New function.
8793 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8795 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8797 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8798 non-zero being represented as [1,MAX].
8800 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8802 * tree-sra.c (dump_access): Add missing braces.
8804 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8806 * config/darwin.c (machopic_indirection_name): Rework the
8807 function to emit linker-visible symbols only for indirections
8808 in the data section. Clean up the code and update comments.
8810 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8812 * config/darwin.c (machopic_indirect_data_reference): Remove
8815 2019-10-13 Nathan Sidwell <nathan@acm.org>
8817 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8819 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8821 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8824 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8826 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8827 so non-virutal are before virutals.
8828 (output_function): Avoid body modifications.
8830 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8832 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8833 %r22. Load function address before global pointer.
8834 (pa_attr_length_indirect_call): Adjust length of inline versions of
8836 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8837 before normal cases. Update inline $$dyncall sequences to preserve
8838 function descriptor address in register %r22.
8839 (TRAMPOLINE_CODE_SIZE): Adjust.
8840 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8841 register %r22 contains trampoline address.
8842 (pa_trampoline_init): Adjust offsets.
8843 (pa_trampoline_adjust_address): Likewise.
8844 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8846 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8849 * config/darwin.c (machopic_indirection): New field to flag
8850 non-lazy-symbol-pointers in the data section.
8851 (machopic_indirection_name): Compute if an indirection should
8852 appear in the data section.
8853 (machopic_output_data_section_indirection): New callback split
8854 from machopic_output_indirection.
8855 (machopic_output_stub_indirection): Likewise.
8856 (machopic_output_indirection): Retain the code for non-lazy
8857 symbol pointers in their regular section.
8858 (machopic_finish): Use the new callbacks to order the indirection
8861 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8863 * config/darwin-protos.h (machopic_finish): Delete.
8864 * config/darwin.c (machopic_finish): Make static.
8866 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8868 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8869 sections when building kernel extension code.
8871 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8873 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8876 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8878 * config/pa/pa.c (pa_option_override): Remove trailing comma
8881 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8884 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8885 <case VEC_COND_EXPR>: Return false with *handled = false.
8886 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8887 recursing on the first operand.
8888 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8889 instead of tree_could_trap_p.
8890 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8892 2019-10-11 Jim Wilson <jimw@sifive.com>
8894 PR rtl-optimization/91860
8895 * combine.c (subst): If new_rtx is a constant, also check for
8896 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8898 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8900 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8901 INTVAL when calling store_bit_field.
8903 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8905 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8908 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8910 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8911 vectorizable_live_operation.
8912 (vectorizable_live_operation): Adjust parameters.
8913 * tree-vect-stmts.c (vect_init_vector,
8914 vect_gen_widened_results_half): Fix typo in function comment.
8915 (can_vectorize_live_stmts): Adjust function comment.
8916 Adjust parameters. Adjust call to vectorizable_live_operation.
8917 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8918 (vect_transform_stmt): Adjust function comment. Adjust call to
8919 can_vectorize_live_stmts.
8920 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8922 2019-10-11 Richard Biener <rguenther@suse.de>
8924 PR tree-optimization/90883
8925 PR tree-optimization/91091
8926 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8927 alias-sets both for recording VN table entries and continuing
8928 walking after translating through copies. Handle same-sized
8929 reads from SSA names by returning the plain SSA name.
8930 (eliminate_dom_walker::eliminate_stmt): Properly handle
8931 non-size precision stores in redundant store elimination.
8933 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8935 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8936 (ggc_collect): Dump later to not interfere with release_page dump.
8937 (ggc_trim): New function.
8938 * ggc-none.c (ggc_trim): New.
8939 * ggc.h (ggc_trim): Declare.
8941 2019-10-11 Richard Biener <rguenther@suse.de>
8943 PR tree-optimization/92066
8944 PR tree-optimization/92046
8945 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8946 Fix bogus cost model check.
8948 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
8950 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
8951 (LANG_HOOKS_DECLS): Add it.
8952 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
8953 update comment for omp_is_optional_argument.
8954 * omp-general.c (omp_is_allocatable_or_ptr): New.
8955 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
8956 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
8957 Fortran's optional arguments and allocatable/pointer scalars
8958 with use_device_addr.
8960 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
8963 * config/s390/2827.md: Add new opcodes.
8964 * config/s390/2964.md: Likewise.
8965 * config/s390/3906.md: Likewise.
8966 * config/s390/8561.md: Likewise.
8967 * config/s390/s390-builtins.def (s390_vfchesb): Use
8968 the new vec_cmpgev4sf_quiet_nocc.
8969 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
8970 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
8971 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
8972 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
8973 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
8974 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
8975 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
8976 * config/s390/s390-modes.def (CCSFPS): New mode.
8977 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
8978 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
8979 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
8980 (s390_expand_vec_compare): Use non-signaling patterns where
8982 (s390_reverse_condition): Support CCSFPS.
8983 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
8984 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
8985 (asm_fcmp_op): Likewise.
8986 (*smaxv2df3_vx): Use pattern for quiet comparison.
8987 (*sminv2df3_vx): Likewise.
8988 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
8989 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
8990 (vec_cmpgt<mode>_quiet_nocc): Likewise.
8991 (vec_cmplt<mode>_quiet_nocc): New expander.
8992 (vec_cmpge<mode>_quiet_nocc): New pattern.
8993 (vec_cmple<mode>_quiet_nocc): New expander.
8994 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
8995 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
8996 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
8997 (*vec_cmpge<mode>_signaling_nocc): Likewise.
8998 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
8999 (vec_cmpungt<mode>): New expander.
9000 (vec_cmpunge<mode>): Likewise.
9001 (vec_cmpuneq<mode>): Use quiet patterns.
9002 (vec_cmpltgt<mode>): Allow only on z14+.
9003 (vec_cmpordered<mode>): Use quiet patterns.
9004 (vec_cmpunordered<mode>): Likewise.
9005 (VEC_CMP_EXPAND): Add ungt and unge.
9007 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9009 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9011 * lto-streamer-out.c: Include tree-dfa.h.
9012 (output_cfg): Do not use cfun.
9013 (lto_prepare_function_for_streaming): New.
9014 (output_function): Do not push cfun; do not initialize loop optimizer.
9015 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9016 * passes.c (ipa_write_summaries): Use it.
9017 (ipa_write_optimization_summaries): Do not modify bodies.
9018 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9019 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9020 * tree-ssa-dse.c (pass_dse::execute): Update use of
9021 renumber_gimple_stmt_uids.
9022 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9024 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9026 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9027 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9029 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9031 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9033 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9034 Also define DFP macros for these conditions.
9035 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9036 DEC128_SUBNORMAL_MIN): Do not define.
9037 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9038 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9040 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9041 Sandra Loosemore <sandra@codesourcery.com>
9044 * doc/lto.texi (IPA): Reference to the IPA passes.
9045 * doc/passes.texi (Pass manager): Add node IPA passes and
9046 description for each IPA pass.
9048 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9050 * ipa-reference.c: Do not include splay-tree.h
9051 (reference_vars_to_consider): Turn to hash map.
9052 (get_static_name, ipa_init, analyze_function, propagate,
9053 stream_out_bitmap, ipa_reference_write_optimization_summary,
9054 ipa_reference_write_optimization_summary): Update.
9056 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9058 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9060 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9062 * config/darwin.c: Lookup Objective C metadata and force indirection
9065 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9067 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9069 (mem_operand_gpr): Add check for prefixed addresses.
9070 (mem_operand_ds_form): Add check for prefixed addresses.
9071 (rs6000_legitimate_offset_address_p): If we support prefixed
9072 addresses, check for a 34-bit offset instead of 16-bit.
9073 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9074 Do not allow load/store with update if the address is prefixed.
9075 (rs6000_mode_dependent_address): If we support prefixed
9076 addresses, check for a 34-bit offset instead of 16-bit.
9078 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9081 * config/s390/vector.md (vcond_comparison_operator): New
9083 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9085 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9088 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9090 * configure.ac (--with-documentation-root-url): New option.
9091 * configure: Regenerate.
9092 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9093 option URL, add it as a new string field of the diagnostic option.
9094 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9095 (print_option_information): If get_option_url is non-NULL, call
9096 it, and if the result is non-NULL, potentially emit an escape
9097 sequence to markup the option text with the resulting URL.
9098 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9099 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9100 example of JSON output.
9101 * opts-diagnostic.h (get_option_url): New decl.
9102 * opts.c (get_option_url): New function.
9103 * toplev.c (general_init): Initialize the get_option_url callback.
9105 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9108 * common.opt (fdiagnostics-urls=): New option.
9109 (diagnostic-url.h): Add SourceInclude.
9110 (diagnostic_url_rule): New enum.
9111 * diagnostic-color.c: Include "diagnostic-url.h".
9112 (diagnostic_urls_enabled_p): New function.
9113 * diagnostic-url.h: New file.
9114 * diagnostic.c: Include "diagnostic-url.h".
9115 (diagnostic_urls_init): New function.
9116 * diagnostic.h (diagnostic_urls_init): New decl.
9117 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9118 -fdiagnostics-urls to the list.
9119 (-fdiagnostics-urls): New option.
9120 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9121 (driver::global_initializations): Call diagnostic_urls_init.
9122 * opts-global.c (init_options_once): Likewise.
9123 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9124 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9126 (pp_begin_url): New function.
9127 (pp_end_url): New function.
9128 (selftest::test_urls): New selftest.
9129 (selftest::pretty_print_c_tests): Call it.
9130 * pretty-print.h (pretty_printer::show_urls): New field.
9131 (pp_begin_url): New decl.
9132 (pp_end_url): New decl.
9134 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9137 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9139 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9142 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9143 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9144 also for TARGET_FPU_SH4_300.
9145 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9147 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9148 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9149 (*negsf2_i): Split into ...
9150 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9151 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9152 (**abssf2_i): Split into ...
9153 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9154 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9155 (*negdf2_i): Split into ...
9156 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9157 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9158 (**abssf2_i): Split into ...
9159 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9161 2019-10-10 Richard Biener <rguenther@suse.de>
9164 * opts.c (finish_options): Do not influence global --params
9165 from options that are adjustable per function.
9166 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9167 Apply --param adjustment based on active cost-model.
9168 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9169 further store-sinking when vectorization or if-conversion
9172 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9175 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9176 rather than ggc_alloc_cleared to alloc symbol table.
9177 * toplev.c (general_init): Likewise.
9178 * cgraph.h (symbol_table): Explicitly construct every field.
9180 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9182 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9184 * config.gcc: Add z15 as option for --with-arch and --with-tune
9186 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9187 error reporting for unsupported builtins.
9188 * config/s390/s390-opts.h (enum processor_type): Rename
9189 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9190 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9191 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9193 * config/s390/s390-builtins.def: Likewise.
9194 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9195 (s390_expand_builtin): Add missing check for unsupported builtins.
9196 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9197 (s390_rtx_costs): Likewise.
9198 (s390_get_sched_attrmask): Rename arch13 to z15.
9199 (s390_get_unit_mask): Likewise.
9200 (s390_is_fpd): Likewise.
9201 (s390_is_fxd): Likewise.
9202 * config/s390/s390.h (enum processor_flags): Likewise.
9203 * config/s390/s390.md: Likewise.
9204 * config/s390/vector.md: Likewise.
9205 * config/s390/vx-builtins.md: Likewise.
9206 * config/s390/s390.opt: Add z15 to processor_type value.
9208 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9211 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9213 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9214 ("split_stack_data", "split_stack_call")
9215 ("split_stack_call_<mode>", "split_stack_cond_call")
9216 ("split_stack_cond_call_<mode>"): Remove.
9217 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9219 * config/s390/s390.c (s390_output_split_stack_data): New function.
9220 (s390_expand_split_stack_prologue): Use the merged expander.
9222 2019-10-09 Martin Sebor <msebor@redhat.com>
9224 PR tree-optimization/90879
9225 * builtins.c (check_access): Avoid using maxbound when null.
9226 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9227 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9228 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9230 (get_range_strlen): Overwrite initial maxbound when non-null.
9231 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9233 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9234 (used_only_for_zero_equality): New function.
9235 (handle_builtin_memcmp): Call it.
9236 (determine_min_objsize): Return an integer instead of tree.
9237 (get_len_or_size, strxcmp_eqz_result): New functions.
9238 (maybe_warn_pointless_strcmp): New function.
9239 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9240 between a longer string and a smaller array.
9241 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9243 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9245 * config/darwin.c (darwin_override_options): Make the check for
9246 Objective-C ABI version more specific for 64bit code.
9248 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9250 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9251 indicate that the new symbol is an indirection.
9252 (machopic_indirect_call_target): Likewise.
9253 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9254 (MACHO_SYMBOL_INDIRECTION_P): New.
9255 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9257 2019-10-08 Jason Merrill <jason@redhat.com>
9259 * doc/invoke.texi: Document -fconcepts-ts.
9261 2019-10-09 Richard Biener <rguenther@suse.de>
9263 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9264 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9266 2019-10-08 Richard Biener <rguenther@suse.de>
9268 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9269 (_stmt_vec_info::force_single_cycle): Likewise.
9270 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9271 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9272 * tree-vect-loop.c (vectorizable_reduction): Set
9273 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9274 (vect_transform_reduction): Use them to remove redundant code.
9275 (vect_transform_cycle_phi): Likewise.
9277 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9279 PR tree-optimization/90836
9280 * match.pd (popcount): New pattern.
9282 2019-10-08 Martin Sebor <msebor@redhat.com>
9286 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9287 again once nbytes has been set. Set the access size when not yet set.
9289 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9291 * config/darwin.c (machopic_select_section): Remove dead code for
9292 old Objective-C section selection method, replace with unreachable.
9294 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9296 * config/darwin.c (machopic_indirect_data_reference): Check for
9297 required indirections before making direct access to defined
9299 (machopic_output_indirection): Place the indirected pointes for
9300 required indirections into the non-lazy symbol pointers section.
9301 (darwin_encode_section_info):
9302 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9303 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9305 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9308 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9309 instead of ALL_SSE_REG to check if function call preserves some
9310 256-bit SSE registers.
9312 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9314 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9315 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9316 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9318 2019-10-08 Richard Biener <rguenther@suse.de>
9320 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9321 (_stmt_vec_info::is_reduc_info): Add.
9322 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9323 (vectorizable_condition): Remove.
9324 (vectorizable_shift): Likewise.
9325 (vectorizable_reduction): Adjust.
9326 (info_for_reduction): New.
9327 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9328 (vect_analyze_scalar_cycles_1): ... here.
9329 (vect_analyze_loop_operations): Adjust.
9330 (needs_fold_left_reduction_p): Simplify for single caller.
9331 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9332 for nested cycles not part of double reductions.
9333 (vect_model_reduction_cost): Pass in the reduction type.
9334 (info_for_reduction): New function.
9335 (vect_create_epilog_for_reduction): Use it, access reduction
9336 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9337 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9338 (vectorize_fold_left_reduction): Remove pointless assert.
9339 (vectorizable_reduction): Analyze the full reduction when
9340 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9341 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9342 stmt code-generation to vectorizable_* in most cases. Verify
9343 code-generation only for cases handled by
9344 vect_transform_reductuon.
9345 (vect_transform_reduction): Use info_for_reduction to get at
9346 reduction meta. Simplify.
9347 (vect_transform_cycle_phi): Likewise.
9348 (vectorizable_live_operation): Likewise.
9349 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9350 at the PHI node for STMT_VINFO_REDUC_TYPE.
9351 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9352 longer necessary code.
9353 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9354 (vectorizable_condition): Likewise. Get at reduction related
9355 info via info_for_reduction.
9356 (vect_analyze_stmt): Adjust.
9357 (vect_transform_stmt): Likewise.
9358 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9359 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9361 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9363 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9364 -fno-fp-int-builtin-inexact default for C2X.
9366 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9367 Richard Biener <rguenther@suse.de>
9369 PR tree-optimization/91532
9370 * tree-if-conv.c: Include tree-ssa-dse.h.
9371 (ifcvt_local_dce): Change param from bb to loop,
9372 and call dse_classify_store.
9373 (tree_if_conversion): Pass loop instead of loop->header as arg
9375 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9376 (delete_dead_or_redundant_assignment): Remove static qualifier from
9377 declaration, and add prototype in tree-ssa-dse.h.
9378 (dse_store_status): Move to tree-ssa-dse.h.
9379 (dse_classify_store): Remove static qualifier and add new tree param
9380 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9381 * tree-ssa-dse.h: New header.
9383 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9385 * config/darwin.c (machopic_output_indirection): Don't put
9386 hidden symbol indirections into the .data section, use the
9387 non-lazy symbol pointers section as normal.
9388 (darwin_encode_section_info): Record if a symbol is hidden.
9389 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9390 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9392 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9394 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9395 predicates instead of accessing bits directly.
9396 (machopic_indirect_call_target): Likewise.
9397 (machopic_output_indirection): Likewise.
9398 (darwin_encode_section_info): Improve description. Use renamed
9399 symbol flags. Use predicate macros for variables and functions.
9401 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9402 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9403 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9404 (MACHO_SYMBOL_VARIABLE_P): New.
9405 (MACHO_SYMBOL_DEFINED_P):New.
9406 (MACHO_SYMBOL_STATIC_P): New.
9407 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9408 (SYMBOL_FLAG_SUBT_DEP): New.
9409 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9411 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9413 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9414 (msp430_expand_epilogue): Likewise.
9415 * config/msp430/predicates.md: Likewise.
9416 * config/msp430/msp430.md: Likewise.
9417 Replace blocks of 8 spaces with tabs.
9419 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9421 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9422 * config/msp430/msp430.c (msp430_split_addsi): New.
9423 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9424 a block of C code for splitting addsi.
9426 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9428 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9429 ix86_expand_rounddf_32): Reorder functions.
9430 * config/i386/i386-protos.h: Update.
9432 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9434 * config.in: Regenerate.
9435 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9436 Add new "Yx" constraint.
9437 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9439 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9441 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9442 code/data region to be selected in the small memory model.
9443 (msp430_section_attr): Don't warn if the "section" and "lower"
9444 attributes are used together.
9445 (msp430_handle_generic_attribute): Likewise.
9446 (msp430_var_in_low_mem): New function.
9447 (TARGET_ENCODE_SECTION_INFO): Define.
9448 (msp430_encode_section_info): New function.
9449 (gen_prefix): Return early in the small memory model.
9450 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9451 ".lower" prefix if -m{code,data}-region=lower have been passed.
9452 (msp430_output_aligned_decl_common): Emit common symbols when
9453 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9455 (TARGET_ASM_FILE_END): Define.
9456 (msp430_file_end): New function.
9457 (msp430_do_not_relax_short_jumps): Allow relaxation when
9458 function will be in the lower region.
9459 (msp430_op_not_in_high_mem): New function.
9460 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9461 the 'X' operand selector.
9462 Clarify comment for 'x' operand selector.
9463 * config/msp430/msp430.h (LINK_SPEC): Propagate
9464 -m{code,data}-region to the linker via spec function
9465 msp430_propagate_region_opt.
9466 (msp430_propagate_region_opt): New prototype.
9467 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9468 (SYMBOL_FLAG_LOW_MEM): Define.
9469 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9471 (zero_extendqihi2): Fix operand number used by "%X" selector.
9472 (zero_extendqisi2): Likewise.
9473 (zero_extendhisi2): Likewise.
9474 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9479 (addhi3_cy): Likewise.
9480 (addchi4_cy): Likewise.
9484 (bic<mode>3): Likewise.
9485 (and<mode>3): Likewise.
9486 (ior<mode>3): Likewise.
9487 (xor<mode>3): Likewise.
9488 (slli_1): Add missing "%X" operand selector.
9496 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9498 (cbranchhi4_real): Likewise.
9499 (cbranchqi4_reversed): Likewise.
9500 (cbranchhi4_reversed): Likewise.
9501 (*bitbranch<mode>4): Likewise.
9502 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9503 * config/msp430/msp430.opt (mcode-region=): Set default to
9504 MSP430_REGION_LOWER. Improve docstring.
9505 (mdata-region=): Likewise.
9506 (muse-lower-region-prefix): New option.
9507 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9508 mdata-region=none multilib.
9509 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9510 mdata-region=none multilib.
9511 MULTILIB_EXCEPTIONS: Remove.
9512 MULTILIB_REQUIRED: Define.
9513 * configure: Regenerate.
9514 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9515 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9516 * doc/extend.texi: Clarify comment for {upper,lower,either}
9517 function attributes.
9518 Add separate description for "lower" variable attribute.
9520 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9523 * optabs-tree.c (vcond_icode_p): New function.
9524 (vcond_eq_icode_p): Likewise.
9525 (expand_vec_cond_expr_p): Use vcond_icode_p and
9527 * optabs.c (can_vcond_compare_p): New function.
9528 * optabs.h (can_vcond_compare_p): Likewise.
9530 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9533 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9534 caller passes a non-trapping condition.
9535 (is_gimple_condexpr): Allow trapping conditions.
9536 (is_gimple_condexpr_1): New helper function.
9537 (is_gimple_condexpr_for_cond): New function, acts like old
9539 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9540 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9541 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9542 * gimplify.c (gimplify_cond_expr): Use
9543 is_gimple_condexpr_for_cond.
9544 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9545 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9547 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9548 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9549 is_gimple_condexpr_for_cond, remove pointless tmp check
9550 (forward_propagate_into_cond): Remove pointless tmp check.
9552 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9554 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9555 match that of other gsi_next_* functions. Adjust the comment.
9556 (gsi_start_nonvirtual_phis): New function.
9557 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9558 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9560 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9562 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9563 setjmp situation here. Fix a verb's ending: "the exact variables or
9564 elements for which there are warnings depends" -> "... depend".
9566 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9568 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9570 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9572 * ipa-prop.c (ipa_vr::nonzero_p): New.
9573 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9575 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9576 * tree-vrp.c (range_has_numeric_bounds_p): New.
9577 (range_int_cst_p): Use range_has_numeric_bounds_p.
9578 (get_range_op_handler): New.
9579 (supported_types_p): New.
9580 (defined_ranges_p): New.
9581 (drop_undefines_to_varying): New.
9582 (range_fold_binary_symbolics_p): New.
9583 (range_fold_unary_symbolics_p): New.
9584 (range_fold_unary_expr): Extract out into above functions.
9585 (range_fold_binary_expr): Same.
9586 (value_range_base::normalize_addresses): New.
9587 (value_range_base::normalize_symbolics): Normalize addresses.
9588 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9590 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9592 * tree-vrp.c (value_range_base::singleton_p): Use
9593 value_range_base::num_pairs instead of vrp_val_is* to check
9594 if a range has one sub-range.
9596 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9598 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9599 DEF is not a true earlyclobber but is tied to a specific input
9600 operand, and so is effectively earlyclobber wrt inputs that have
9602 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9604 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9606 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9607 (pod_mode): Mark operators likewise.
9608 (scalar_int_mode): Mark non-default constructors and
9609 operators with CONSTEXPR.
9610 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9611 (fixed_size_mode): Likewise.
9613 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9616 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9617 and wrap the unspec_volatile in a parallel.
9618 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9619 the unspec_volatile.
9620 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9621 unspec_volatile to be wrapped in a parallel.
9622 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9623 (ix86_add_reg_usage_to_vzerouppers): New functions.
9624 (rest_of_handle_insert_vzeroupper): Use them to add register
9625 usage information to the vzeroupper instructions.
9627 2019-10-07 Richard Biener <rguenther@suse.de>
9629 PR tree-optimization/91975
9630 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9633 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9635 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9636 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9638 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9640 * config/darwin.c (darwin_override_options): Adjust objective-c
9641 ABI version error messages to avoid punctuation and contracted
9644 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9646 * ipa-inline.c: Fix type; compute size rather than self_size
9647 for size of caller function.
9649 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9652 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9653 choose const_data section for constants with relocations.
9654 (machopic_select_section): Pass relocation flag to
9655 darwin_rodata_section ().
9657 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9659 PR tree-optimization/91734
9660 * generic-match-head.c: Include fold-const-call.h.
9661 * match.pd (sqrt(x) cmp c): Check the boundary value and
9662 in case inexact computation of c*c affects comparison of the boundary,
9663 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9664 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9665 for -frounding-math. For c2, try the next smaller or larger floating
9666 point constant depending on comparison code and if it has the same
9667 sqrt as c2, use it instead of c2.
9669 2019-10-04 Martin Sebor <msebor@redhat.com>
9672 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9673 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9674 uninitialized objects.
9676 2019-10-04 Martin Sebor <msebor@redhat.com>
9678 * builtins.c (compute_objsize): Add an argument.
9679 * tree-object-size.c (addr_object_size): Same.
9680 (compute_builtin_object_size): Same.
9681 * tree-object-size.h (compute_builtin_object): Same.
9683 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9685 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9687 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9689 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9691 2019-10-04 Martin Jambor <mjambor@suse.cz>
9693 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9694 fntype when switching to calling memcpy instead of memset.
9696 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9698 * hash-table.h (hash_table::empty_slow): Don't assign
9699 size_t values to int variables.
9701 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9703 * expr.c (convert_mode_scalar): Remove shadowing local var.
9704 (emit_block_move): Rename local vars.
9705 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9706 (emit_push_insn): Rename local vars.
9707 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9708 shadowing local vars.
9709 (store_constructor): Remove shadowing local vars. Rename local var.
9710 (store_field, expand_cond_expr_using_cmove,
9711 expand_expr_real_2): Remove shadowing local vars.
9712 (expand_expr_real_1,
9713 do_store_flag): Remove shadowing local vars. Rename local vars.
9715 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9717 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9719 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9721 * genmatch.c (commutate): Rename local var.
9722 (lower_cond): Reuse local var.
9723 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9724 dt_operand::gen, dt_operand::gen_gimple_expr,
9725 dt_simplify::gen): Add a param. Rename generated vars.
9726 (decision_tree::insert_operand,
9727 (capture_info::walk_match, capture_info::walk_result,
9728 capture_info::walk_c_expr): Rename local vars.
9729 (expr::gen_transform): Rename generated vars.
9730 Use snprintf. Rename local vars.
9731 (capture::gen_transform, dt_operand::get_name,
9732 dt_operand::gen_opname): Rename generated vars.
9733 (write_predicate): Adjust call to gen_kids.
9734 (parser::get_internal_capture_id): Rename generated vars.
9735 (parser::parse_expr): Rename local vars.
9736 (parser::parse_if): Remove local var.
9737 (parser::parse_pattern, add_operator): Rename local vars.
9739 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9741 * builtins.def (DEF_C2X_BUILTIN): New macro.
9742 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9743 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9744 (strndup): Use DEF_C2X_BUILTIN.
9745 * coretypes.h (enum function_class): Add function_c2x_misc.
9747 2019-10-04 Maya Rashish <coypu@sdf.org>
9749 * ira-color.c (update_costs_from_allocno): Call
9750 ira_init_register_move_cost_if_necessary.
9752 2019-10-04 Jeff Law <law@redhat.com>
9754 * config/h8300/h8300.md (cpymemsi): Disable.
9755 (movmd, movmd_internal_<mode>, movstr, movsd):
9756 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9757 (movmd splitter, movsd splitter): Likewise.
9759 * range-op.cc (range_tests): Avoid two tests when ints and
9760 shorts are the same size.
9762 2019-10-04 Richard Biener <rguenther@suse.de>
9765 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9768 2019-10-04 Richard Biener <rguenther@suse.de>
9770 PR tree-optimization/91982
9771 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9772 against EXTRACT_LAST_REDUCTION.
9773 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9775 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9777 * range-op.o (value_range_from_overflowed_bounds): Rename from
9778 adjust_overflow_bound.
9779 (value_range_with_overflow): Rename from
9780 create_range_with_overflow.
9781 (create_possibly_reversed_range): Adjusted for above renames.
9782 (operator_*::wi_fold): Same.
9783 (cross_product_operator::wi_cross_productor): Same.
9785 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9787 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9788 -Wshadow=compatible-local): Fix description.
9789 Add an example where -Wshadow=compatible-local does not
9792 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9794 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9796 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9797 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9799 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9801 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9802 can_move_by_pieces issue.
9804 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9807 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9808 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9809 is available and the user has not set one on the command line.
9811 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9814 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9815 instead of REGNO equality check on addr.reg.
9817 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9819 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9820 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9821 * doc/invoke.texi (inline-heuristics-hint-percent,
9822 inline-heuristics-hint-percent-O2): Document.
9823 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9825 (can_inline_edge_by_limits_p): Use it.
9827 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9829 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9830 to print CONST_DOUBLEs.
9832 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9834 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9835 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9836 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9838 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9840 * Makefile.in (OBJS): Add range.o and range-op.o.
9841 Remove wide-int-range.o.
9842 * function-tests.c (test_ranges): New.
9843 (function_tests_c_tests): Call test_ranges.
9844 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9845 range_fold_unary_expr instead of extract_range_from_unary_expr.
9846 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9847 * range-op.cc: New file.
9848 * range-op.h: New file.
9849 * range.cc: New file.
9850 * range.h: New file.
9851 * selftest.h (range_tests): New prototype.
9852 * ssa.h: Include range.h.
9853 * tree-vrp.c (value_range_base::value_range_base): New
9855 (value_range_base::singleton_p): Do not call
9856 ranges_from_anti_range until sure we will need to.
9857 (value_range_base::type): Rename gcc_assert to
9858 gcc_checking_assert.
9859 (vrp_val_is_max): New argument.
9860 (vrp_val_is_min): Same.
9861 (wide_int_range_set_zero_nonzero_bits): Move from
9863 (extract_range_into_wide_ints): Remove.
9864 (extract_range_from_multiplicative_op): Remove.
9865 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9866 from extract_range_from_binary_expr.
9867 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9868 from extract_range_from_binary_expr.
9869 (extract_range_from_binary_expr): Remove.
9870 (normalize_for_range_ops): New.
9871 (range_fold_binary_expr): New.
9872 (range_fold_unary_expr): New.
9873 (value_range_base::num_pairs): New.
9874 (value_range_base::lower_bound): New.
9875 (value_range_base::upper_bound): New.
9876 (value_range_base::upper_bound): New.
9877 (value_range_base::contains_p): New.
9878 (value_range_base::invert): New.
9879 (value_range_base::union_): New.
9880 (value_range_base::intersect): New.
9881 (range_compatible_p): New.
9882 (value_range_base::operator==): New.
9883 (determine_value_range_1): Call range_fold_*expr instead of
9884 extract_range_from_*expr.
9885 * tree-vrp.h (class value_range_base): Add new constructors.
9886 Add methods for union_, intersect, operator==, contains_p,
9887 num_pairs, lower_bound, upper_bound, invert.
9888 (vrp_val_is_min): Add handle_pointers argument.
9889 (vrp_val_is_max): Same.
9890 (extract_range_from_unary_expr): Remove.
9891 (extract_range_from_binary_expr): Remove.
9892 (range_fold_unary_expr): New.
9893 (range_fold_binary_expr): New.
9894 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9895 range_fold_binary_expr instead of extract_range_from_binary_expr.
9896 (vr_values::extract_range_basic): Same.
9897 (vr_values::extract_range_from_unary_expr): Call
9898 range_fold_unary_expr instead of extract_range_from_unary_expr.
9899 * wide-int-range.cc: Remove.
9900 * wide-int-range.h: Remove.
9902 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9904 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9905 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9906 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9907 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9910 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9912 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9913 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9914 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9915 * glimits.h: Likewise.
9917 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9919 PR rtl-optimization/91976
9920 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9921 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9922 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9924 2019-10-02 Martin Sebor <msebor@redhat.com>
9926 PR tree-optimization/80936
9927 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9929 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9931 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9932 instead of reg_class_contents[ALL_REGS].
9934 2019-09-30 Jason Merrill <jason@redhat.com>
9936 Add some hash_map_safe_* functions like vec_safe_*.
9937 * hash-map.h (default_hash_map_size): New variable.
9938 (create_ggc): Use it as default argument.
9939 (hash_map_maybe_create, hash_map_safe_get)
9940 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
9942 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
9944 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
9945 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
9946 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
9947 (can_inline_edge_by_limits_p): Use it.
9948 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
9949 (want_inline_small_function_p): Use O2 bounds.
9950 (edge_badness): LIkewise.
9951 * opts.c (default_options): Add OPT_finline_functions.
9952 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
9953 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
9955 * doc/invoke.texi (-finline-functions): Update documentation.
9956 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
9957 inline-min-speedup-O2): Document.
9958 (early-inlining-insns-O2): Simplify docs.
9960 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
9962 PR rtl-optimization/87047
9963 * ifcvt.c (average_cost): New static function. Use it...
9964 (noce_process_if_block): ... here.
9966 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9968 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
9969 * config/rs6000/rs6000-string.c (expand_block_move): Add
9971 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
9972 (cpymemsi): Add might_overlap parm to expand_block_move() call.
9974 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
9976 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
9977 (expand_builtin_memcpy): Use might_overlap parm.
9978 (expand_builtin_mempcpy_args): Use might_overlap parm.
9979 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
9980 (expand_builtin_memory_copy_args): Add might_overlap parm.
9981 * expr.c (emit_block_move_via_cpymem): Rename to
9982 emit_block_move_via_pattern, add might_overlap parm, use cpymem
9983 or movmem optab as appropriate.
9984 (emit_block_move_hints): Add might_overlap parm, do the right
9985 thing for might_overlap==true.
9986 * expr.h (emit_block_move_hints): Update prototype.
9988 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
9990 * tree-eh.h (unsplit_eh_edges): Declare.
9991 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
9992 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
9993 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
9994 (struct store_immediate_info): Add lp_nr field.
9995 (store_immediate_info::store_immediate_info): Add NR2 parameter and
9996 initialize lp_nr with it.
9997 (struct merged_store_group): Add lp_nr and only_constants fields.
9998 (merged_store_group::merged_store_group): Initialize them.
9999 (merged_store_group::can_be_merged_into): Deal with them.
10000 (pass_store_merging): Rename terminate_and_release_chain into
10001 terminate_and_process_chain.
10002 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10003 renaming and remove useless assertions.
10004 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10005 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10006 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10007 instead of always recomputing it and compare lp_nr.
10008 (imm_store_chain_info::output_merged_store): If the group is in an
10009 active EH region, register new stores if they can throw. Moreover,
10010 if the insertion has created new basic blocks, adjust the PHI nodes
10011 of the post landing pad.
10012 (imm_store_chain_info::output_merged_stores): If the original stores
10013 are in an active EH region, deregister them.
10014 (lhs_valid_for_store_merging_p): Prettify.
10015 (adjust_bit_pos): New function extracted from...
10016 (mem_valid_for_store_merging): ...here. Use it for the base address
10017 and also for the offset if it is the addition of a constant.
10018 (lp_nr_for_store): New function.
10019 (pass_store_merging::process_store): Change return type to bool.
10020 Call lp_nr_for_store to initialize the store info. Propagate the
10021 return status of various called functions to the return value.
10022 (store_valid_for_store_merging_p): New predicate.
10023 (enum basic_block_status): New enumeration.
10024 (get_status_for_store_merging): New function.
10025 (pass_store_merging::execute): If the function can throw and catch
10026 non-call exceptions, unsplit the EH edges on entry and clean up the
10027 CFG on exit if something changed. Call get_status_for_store_merging
10028 for every basic block and keep the chains open across basic blocks
10029 when possible. Terminate and process open chains at the end, if any.
10031 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10033 * reginfo.c (globalize_reg): Fix shadowed variable in
10034 function_abis walk.
10036 2019-10-02 Martin Jambor <mjambor@suse.cz>
10038 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10039 do not compute some stuff when set.
10040 (cgraph_node::create_edge): Likewise.
10041 (cgraph_node::create_indirect_edge): Renamed last parameter to
10042 coning_p and flipped its meaning, don't even calculate
10043 inline_failed when set.
10044 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10045 (symbol_table::::create_edge): Likewise.
10046 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10048 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10049 call graph edge creating functions.
10051 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10054 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10057 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10059 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10061 2019-10-02 Richard Biener <rguenther@suse.de>
10063 * tree-vectorizer.h (vect_transform_reduction): Declare.
10064 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10065 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10066 stmt transform to ...
10067 (vect_transform_reduction): ... this.
10069 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10071 * omp-low.c (lower_omp_target): Dereference optional argument
10072 to work with the right pointer.
10074 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10076 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10078 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10079 * langhooks.h (omp_is_optional_argument): New hook.
10080 * omp-general.c (omp_is_optional_argument): New.
10081 * omp-general.h (omp_is_optional_argument): New declaration.
10082 * omp-low.c (lower_omp_target): Create temporary for received value
10083 and take the address for new_var if the original variable was a
10084 DECL_BY_REFERENCE. Use size of referenced object when a
10085 pass-by-reference optional argument used as argument to firstprivate.
10087 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10089 PR tree-optimization/91940
10090 * tree-vect-patterns.c: Include tree-vector-builder.h and
10091 vec-perm-indices.h.
10092 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10093 unpromoting the argument back to uint16_t, or by converting into a
10094 rotate, or into shifts plus ior.
10096 2019-10-02 Richard Biener <rguenther@suse.de>
10098 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10100 (vect_transform_cycle_phi): Declare.
10101 * tree-vect-stmts.c (vect_transform_stmt): Call
10102 vect_transform_cycle_phi.
10103 * tree-vect-loop.c (vectorizable_reduction): Split out
10104 PHI transformation stage to ...
10105 (vect_transform_cycle_phi): ... here.
10107 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10109 PR middle-end/91957
10110 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10111 eliminable registers.
10112 (make_hard_regno_live): Likewise, and don't make them live.
10114 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10116 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10117 Call pp_emit_prefix.
10118 (layout::print_source_line): Likewise.
10119 (layout::start_annotation_line): Likewise.
10120 (diagnostic_show_locus): Remove call to temporarily clear the
10122 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10123 interaction of pp_set_prefix with rulers and fix-it hints.
10124 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10125 prefix when calling diagnostic_show_locus, rather than destroying
10127 (print_parseable_fixits): Temporarily clear prefix.
10128 * pretty-print.c (pp_format): Save and restore line_length, rather
10129 than assuming it is zero.
10130 (pp_output_formatted_text): Remove assertion that line_length is
10133 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10135 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10137 (nonoverlapping_refs_since_match_p): ... this; handle also
10139 (alias_stats): Update stats.
10140 (dump_alias_stats): Likewise.
10141 (cheap_array_ref_low_bound): New function.
10142 (aliasing_matching_component_refs_p): Add partial_overlap
10144 pass it to nonoverlapping_refs_since_match_p.
10145 (aliasing_component_refs_walk): Update call of
10146 aliasing_matching_component_refs_p
10147 (nonoverlapping_array_refs_p): New function.
10148 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10149 indirect_refs_may_alias_p): Update calls of
10150 nonoverlapping_refs_since_match_p.
10152 2019-10-01 Maya Rashish <coypu@sdf.org>
10155 * ira-color.c (allocno_copy_cost_saving): Call
10156 ira_init_register_move_cost_if_necessary.
10158 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10160 * Makefile.in (gnat_install_lib): New variable.
10161 * configure.ac: Substitute it.
10162 * configure: Regenerate.
10164 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10167 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10168 is matched with non-C++ type
10170 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10172 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10175 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10177 * doc/invoke.texi (early-inlining-insns-O2): Document.
10178 (early-inlining-insns): Update.
10179 * params.def (early-inlining-insns-O2): New bound.
10180 (early-inlining-insns): Update docs.
10181 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10183 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10186 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10187 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10188 a memory access insn.
10190 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10192 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10195 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10198 * config/s390/s390.c (s390_expand_vec_compare): Use
10199 gen_vec_cmpordered and gen_vec_cmpunordered.
10200 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10201 vec_unordered): Delete.
10202 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10203 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10204 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10205 (vec_cmp<code>): Generic dispatcher.
10207 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10210 * config/s390/vector.md (V_HW): Add V1TI in order to make
10211 vcond$a$b generate vcondv1tiv1tf.
10213 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10215 PR rtl-optimization/91948
10216 * ira-build.c (ira_create_allocno): Initialize
10217 ALLOCNO_CROSSED_CALLS_ABIS.
10218 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10219 than regno to ira_need_caller_save_p.
10221 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10223 * config/i386/i386-options.c
10224 (ix86_recompute_optlev_based_flags): New, moved out of...
10225 (ix86_option_override_internal): ... this. Call it.
10226 (ix86_override_options_after_change): Call it here too.
10229 * dwarf2out.c (override_type_for_decl_p): New.
10230 (gen_variable_die): Use it.
10232 2019-10-01 Richard Biener <rguenther@suse.de>
10234 * tree-vect-loop.c (vectorizable_reduction): Move variables
10235 to where they are used.
10237 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10239 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10240 (build_def_use): Use PC instead of CC0 in a comment.
10242 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10244 * rtl.def (CLOBBER_HIGH): Delete.
10245 * doc/rtl.texi (clobber_high): Remove documentation.
10246 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10247 (reg_is_clobbered_by_clobber_high): Delete.
10248 (gen_hard_reg_clobber_high): Likewise.
10249 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10250 * cfgexpand.c (expand_gimple_stmt): Likewise.
10251 * combine-stack-adj.c (single_set_for_csa): Likewise.
10252 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10253 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10254 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10255 * cse.c (invalidate_reg): Remove clobber_high parameter.
10256 (invalidate): Update call accordingly.
10257 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10258 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10259 (count_reg_usage, insn_live_p): Likewise.
10260 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10261 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10262 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10263 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10264 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10265 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10266 (mark_nonreg_stores_2): Likewise.
10267 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10268 (df_get_call_refs): Likewise.
10269 * dwarf2out.c (mem_loc_descriptor): Likewise.
10270 * emit-rtl.c (verify_rtx_sharing): Likewise.
10271 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10272 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10273 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10274 * genemit.c (gen_exp, gen_insn): Likewise.
10275 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10276 * haifa-sched.c (haifa_classify_rtx): Likewise.
10277 * ira-build.c (create_insn_allocnos): Likewise.
10278 * ira-costs.c (scan_one_insn): Likewise.
10279 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10280 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10281 * jump.c (mark_jump_label_1): Likewise.
10282 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10283 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10285 (mark_not_eliminable): Likewise.
10286 * lra-lives.c (process_bb_lives): Likewise.
10287 * lra.c (new_insn_reg): Remove clobber_high parameter.
10288 (collect_non_operand_hard_regs): Likewise. Update call to new
10289 insn_reg. Remove CLOBBER_HIGH handling.
10290 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10291 to collect_non_operand_hard_regs.
10292 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10293 Update call to new_insn_reg.
10294 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10295 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10296 (move2add_note_store): Likewise.
10297 * print-rtl.c (print_pattern): Likewise.
10298 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10299 (if_test_bypass_p): Likewise.
10300 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10301 * reginfo.c (reg_scan_mark_refs): Likewise.
10302 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10303 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10304 (forget_old_reloads_1): Likewise.
10305 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10306 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10307 (dbr_schedule): Likewise.
10308 * resource.c (update_live_status, mark_referenced_resources)
10309 (mark_set_resources): Likewise.
10310 * rtl.c (copy_rtx): Likewise.
10311 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10312 (note_pattern_stores): Likewise.
10313 (reg_is_clobbered_by_clobber_high): Delete.
10314 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10315 CLOBBER_HIGH handling.
10317 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10320 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10321 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10322 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10323 Handle ARM_PCS_TLSDESC.
10324 (aarch64_tlsdesc_abi_id): New function.
10325 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10326 rtx instead of a list of clobbers and clobber_highs.
10327 (tlsdesc_small_<mode>): Update accordingly.
10329 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10331 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10332 extra callee_abi argument.
10333 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10334 Insert a CALLEE_ABI unspec into the call pattern as the second
10335 element in the PARALLEL.
10336 (aarch64_simd_call_p): Delete.
10337 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10338 the new CALLEE_ABI element of the PARALLEL.
10339 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10340 from the function type, if given.
10341 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10342 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10343 when passed the function_arg_info end marker.
10344 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10345 final argument of gen_sibcall.
10346 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10347 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10348 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10350 (call_value): Likewise operand 3.
10351 (sibcall): Likewise operand 2. Place the unspec before rather than
10353 (sibcall_value): Likewise operand 3.
10354 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10355 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10356 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10357 constraint strings.
10358 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10360 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10362 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10363 choose_hard_reg_mode.
10364 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10366 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10368 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10369 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10370 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10372 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10374 * diagnostic-show-locus.c (line_label::line_label): Initialize
10376 (line_label::comparator): Reverse the sort order by m_state_idx,
10377 so that when the list is walked backwards the labels appear in
10378 order of insertion into the rich_location.
10379 (line_label::m_has_vbar): New field.
10380 (layout::print_any_labels): When dealing with multiple labels at
10381 the same line and column, only print vertical bars for the one
10382 with the highest label_line.
10383 (selftest::test_one_liner_labels): Update test for multiple labels
10384 to expect the labels to be in the order of insertion into the
10385 rich_location. Add a test for many such labels, where the column
10386 numbers are out-of-order relative to the insertion order.
10388 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10390 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10391 (ix86_frame::expensive_count): Likewise.
10392 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10393 of use_fast_prologue_epilogue robust against incidental changes
10396 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10399 * config/s390/vector.md (vec_unordered<mode>): Call
10400 gen_vec_ordered<mode>.
10402 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10404 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10405 New pattern for ASRD.
10406 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10407 * internal-fn.def (IFN_DIV_POW2): New internal function.
10408 * optabs.def (sdiv_pow2_optab): New optab.
10409 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10410 Modify pattern to support new operation.
10411 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10412 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10413 Document new target selector.
10415 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10417 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10418 to test whether we're compiling a vector PCS function and to test
10419 whether the function needs to save a particular register.
10420 Remove the vector PCS handling of df_set_regs_ever_live.
10421 (aarch64_components_for_bb): Use crtl->abi to test whether
10422 the function needs to save a particular register.
10423 (aarch64_process_components): Use crtl->abi to test whether
10424 we're compiling a vector PCS function.
10425 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10426 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10428 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10430 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10432 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10433 whether the block calls a function that clobbers more registers
10434 than the current function is allowed to.
10435 (aarch64_use_simple_return_insn_p): Delete.
10436 * config/aarch64/aarch64.md (simple_return): Remove condition.
10438 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10440 * function-abi.h (function_abi_aggregator): New class.
10441 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10443 * ira.c (update_equiv_regs_prescan): New function. Call
10444 set_paradoxical_subreg here rather than...
10445 (update_equiv_regs): ...here.
10446 (ira): Call update_equiv_regs_prescan.
10448 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10450 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10452 (call_used_or_fixed_regs): Likewise.
10453 (call_used_or_fixed_reg_p): Likewise.
10454 * reginfo.c (regs_invalidated_by_call): New macro.
10456 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10458 * shrink-wrap.c: Include function-abi.h.
10459 (requires_stack_frame_p): Use crtl->abi to test whether the
10460 current function can use a register without saving it first.
10462 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10464 * sel-sched-ir.h (_def::crosses_call): Replace with...
10465 (_def::crossed_call_abis): ..this new field.
10466 (def_list_add): Take a mask of ABIs instead of a crosses_call
10468 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10469 of _def accordingly.
10470 * sel-sched.c: Include function-abi.h.
10471 (hard_regs_data::regs_for_call_clobbered): Delete.
10472 (reg_rename::crosses_call): Replace with...
10473 (reg_rename::crossed_call_abis): ...this new field.
10474 (fur_static_params::crosses_call): Replace with...
10475 (fur_static_params::crossed_call_abis): ...this new field.
10476 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10477 (init_hard_regs_data): Use crtl->abi to test which registers the
10478 current function would need to save before it uses them.
10479 (mark_unavailable_hard_regs): Update handling of call-clobbered
10480 registers, using call_clobbers_in_region to find out which registers
10481 might be call-clobbered (but without taking -fipa-ra into account
10482 for now). Remove separate handling of partially call-clobbered
10484 (verify_target_availability): Use crossed_call_abis instead of
10486 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10487 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10489 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10491 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10492 function to test whether a register is fully or partly clobbered.
10494 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10496 * rtlanal.c: Include function-abi.h.
10497 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10498 function and clobbers_reg_p to test whether the register
10500 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10501 to get the ABI of the called function and full_reg_clobbers to
10502 get the set of fully call-clobbered registers. Warn about the
10503 pitfalls of using this mode.
10505 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10507 * reload.c: Include function-abi.h.
10508 (find_equiv_reg): Use clobbers_reg_p to test whether either
10509 of the equivalent registers is clobbered by a call.
10510 * reload1.c: Include function-abi.h.
10511 (reg_reloaded_call_part_clobbered): Delete.
10512 (reload): Use crtl->abi to test which registers would need
10513 saving in the prologue before use.
10514 (find_reg): Likewise.
10515 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10516 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10517 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10519 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10521 * regrename.h (du_head::call_clobber_mask): New field.
10522 (du_head::need_caller_save_reg): Replace with...
10523 (du_head::call_abis): ...this new field.
10524 * regrename.c: Include function-abi.h.
10525 (call_clobbered_in_chain_p): New function.
10526 (check_new_reg_p): Use crtl->abi when deciding whether a register
10527 is free for use after RA. Use call_clobbered_in_chain_p to test
10528 whether a candidate register would be clobbered by a call.
10529 (find_rename_reg): Don't add call-clobber conflicts here.
10530 (rename_chains): Check call_abis instead of need_caller_save_reg.
10531 (merge_chains): Update for changes to du_head.
10532 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10533 target. Record the ABI identifier in call_abis and the set of
10534 fully or partially clobbered registers in call_clobber_mask.
10535 Add fully-clobbered registers to hard_conflicts here rather
10536 than in find_rename_reg.
10537 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10538 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10539 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10541 * config/c6x/c6x.c: Likewise.
10543 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10545 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10546 mode of the register when deciding whether it is no longer
10547 available after a call.
10549 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10551 * recog.c: Include function-abi.h.
10552 (peep2_find_free_register): Use crtl->abi when deciding whether
10553 a register is free for use after RA.
10555 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10557 * postreload-gcse.c: Include regs.h and function-abi.h.
10558 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10559 call insn target. Conservatively assume that partially-clobbered
10560 registers are altered.
10562 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10564 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10565 when deciding whether a register is free for use after RA.
10566 (reload_combine): Remove unnecessary use of fixed_reg_set.
10567 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10568 call insn target. Use reg_mode when testing whether a register
10569 is no longer available.
10571 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10573 * target.def (return_call_with_max_clobbers): Delete.
10574 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10575 * doc/tm.texi: Regenerate.
10576 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10577 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10578 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10579 (lra_reg::call_insn): Delete.
10580 * lra.c: Include function-abi.h.
10581 (initialize_lra_reg_info_element): Don't initialize the fields above.
10582 (lra): Use crtl->abi to test whether the current function needs to
10583 save a register in the prologue. Remove special pre-inheritance
10584 lra_create_live_ranges pass for flag_ipa_ra.
10585 * lra-assigns.c: Include function-abi.h
10586 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10587 function needs to save a register in the prologue.
10588 (lra_assign): Assert that registers aren't allocated to a
10589 conflicting register, rather than checking only for overlaps
10590 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10591 and for registers that are not live across a call.
10592 * lra-constraints.c (last_call_for_abi): New variable.
10593 (full_and_partial_call_clobbers): Likewise.
10594 (setup_next_usage_insn): Remove the register from
10595 full_and_partial_call_clobbers.
10596 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10597 whether the register needs a caller save.
10598 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10599 of call_used_or_fixed_regs.
10600 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10601 full_and_partial_call_clobbers.
10602 * lra-lives.c (check_pseudos_live_through_calls): Replace
10603 last_call_used_reg_set and call_insn arguments with an abi argument.
10604 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10605 as the set of conflicting registers.
10606 (calls_have_same_clobbers_p): Delete.
10607 (process_bb_lives): Track the ABI of the last call instead of an
10608 insn/HARD_REG_SET pair. Update calls to
10609 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10610 the set of registers that could be clobbered by an EH edge.
10611 Include partially-clobbered as well as fully-clobbered registers.
10612 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10613 * lra-remat.c: Include function-abi.h.
10614 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10615 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10616 registers and bitmap_view to combine them into dead_regs.
10617 (call_used_input_regno_present_p): Take a function_abi argument
10618 and use it to test whether a register is call-clobbered.
10619 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10620 call insn target. Update tje call to call_used_input_regno_present_p.
10621 (do_remat): Likewise.
10622 (lra_remat): Remove the initialization of call_used_regs_arr_len
10623 and call_used_regs_arr.
10625 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10627 * loop-iv.c: Include regs.h and function-abi.h.
10628 (simplify_using_initial_values): Use insn_callee_abi to get the
10629 ABI of the call insn target. Conservatively assume that
10630 partially-clobbered registers are altered.
10632 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10634 * function-abi.h (call_clobbers_in_region): Declare.
10635 (call_clobbered_in_region_p): New function.
10636 * function-abi.cc (call_clobbers_in_region): Likewise.
10637 * ira-int.h: Include function-abi.h.
10638 (ira_allocno::crossed_calls_abis): New field.
10639 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10640 (ira_need_caller_save_regs): New function.
10641 (ira_need_caller_save_p): Likewise.
10642 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10643 of call_used_or_fixed_regs.
10644 (do_reload): Use crtl->abi to test whether the current function
10645 needs to save a register in the prologue. Count registers that
10646 need to be saved rather than registers that don't.
10647 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10648 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10649 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10650 (propagate_some_info_from_allocno): Likewise.
10651 (copy_info_to_removed_store_destinations): Likewise.
10652 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10653 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10654 (ira_build): Use ira_need_caller_save_regs instead of
10655 call_used_or_fixed_regs.
10656 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10657 whether the current function would need to save a register
10659 (calculate_spill_cost): Likewise.
10660 (allocno_reload_assign): Use ira_need_caller_save_regs and
10661 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10662 * ira-conflicts.c (ira_build_conflicts): Use
10663 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10664 as the set of call-clobbered registers. Remove the
10665 call_used_or_fixed_regs mask from the calculation of
10666 temp_hard_reg_set and mask its use instead. Remove special
10667 handling of partially-clobbered registers.
10668 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10669 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10670 calculate the set of conflicting registers for calls that
10671 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10672 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10673 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10674 Use eh_edge_abi to calculate the set of registers that could
10675 be clobbered by an EH edge. Include partially-clobbered as
10676 well as fully-clobbered registers.
10678 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10680 * haifa-sched.c: Include function-abi.h.
10681 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10682 the function would need to save a register before using it.
10684 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10686 * gcse.c: Include function-abi.h.
10687 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10688 the call insn target. Invalidate partially call-clobbered
10689 registers as well as fully call-clobbered ones.
10691 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10693 * function.c (aggregate_value_p): Work out which ABI the
10694 function is using before testing which registers are at least
10695 partly preserved by a call.
10697 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10699 * early-remat.c: Include regs.h and function-abi.h.
10700 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10702 (early_remat::restrict_remat_for_unavail_regs): New function.
10703 (early_remat::restrict_remat_for_call): Likewise.
10704 (early_remat::process_block): Before calling emit_remat_insns
10705 for a previous call in the block, invalidate any candidates
10706 that would clobber call-preserved registers.
10707 (early_remat::emit_remat_insns_for_block): Likewise for the
10708 final call in a block. Do the same thing for live-in registers
10709 when calling emit_remat_insns at the head of a block.
10711 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10713 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10714 whether the current function needs to save at least part of a
10715 register before using it.
10716 (df_get_exit_block_use_set): Likewise for epilogue restores.
10718 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10720 * df-problems.c: Include regs.h and function-abi.h.
10721 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10722 sparse_invalidated_by_eh and dense_invalidated_by_call to
10723 dense_invalidated_by_eh.
10724 (df_print_bb_index): Update accordingly.
10725 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10726 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10727 that are clobbered by an EH edge. Clobber partially-clobbered
10728 registers as well as fully-clobbered ones.
10729 (df_md_confluence_n): Likewise.
10730 (df_rd_local_compute): Likewise. Update for changes to
10731 df_rd_problem_data.
10732 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10733 of registers that are clobbered by an EH edge. Includde partially-
10734 clobbered registers as well as fully-clobbered ones.
10736 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10738 * cselib.c (cselib_process_insn): If we know what mode a
10739 register was set in, check whether it is clobbered in that
10740 mode by a call. Only fall back to reg_raw_mode if that fails.
10742 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10744 * cse.c: Include regs.h and function-abi.h.
10745 (invalidate_for_call): Take the call insn as an argument.
10746 Use insn_callee_abi to get the ABI of the call and invalidate
10747 partially clobbered registers as well as fully clobbered ones.
10748 (cse_insn): Update call accordingly.
10750 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10752 * combine.c: Include function-abi.h.
10753 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10754 of the target of call insns. Invalidate partially-clobbered
10755 registers as well as fully-clobbered ones.
10757 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10759 * cfgloopanal.c: Include regs.h and function-abi.h.
10760 (init_set_costs): Use default_function_abi to test whether
10761 a general register is call-clobbered.
10763 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10765 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10766 instead of the call-clobbered sets.
10768 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10770 * caller-save.c (setup_save_areas): Remove redundant |s of
10772 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10773 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10776 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10778 * rtl.h (predefined_function_abi): Declare.
10779 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10780 instead of a boolean call_save flag.
10781 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10783 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10784 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10785 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10786 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10787 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10788 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10789 * reginfo.c (init_reg_modes_target): Likewise.
10790 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10791 instead of a boolean call_save flag.
10792 * targhooks.c: Include function-abi.h.
10793 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10794 using eh_edge_abi to choose the mode.
10796 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10798 * target.def (hard_regno_call_part_clobbered): Take an ABI
10799 identifier instead of an rtx_insn.
10800 * doc/tm.texi: Regenerate.
10801 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10802 (hook_bool_uint_uint_mode_false): New function.
10803 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10804 (hook_bool_uint_uint_mode_false): New function.
10805 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10806 Take an ABI identifier instead of an rtx_insn.
10807 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10808 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10809 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10810 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10811 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10813 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10814 * cselib.c: Include function-abi.h.
10815 (cselib_process_insn): Update call to
10816 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10817 to get the appropriate ABI identifier.
10818 * function-abi.cc (predefined_function_abi::initialize): Update call
10819 to targetm.hard_regno_call_part_clobbered.
10820 * ira-conflicts.c (ira_build_conflicts): Likewise.
10821 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10822 * lra-constraints.c: Include function-abi.h.
10823 (need_for_call_save_p): Update call to
10824 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10825 to get the appropriate ABI identifier.
10826 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10827 * regcprop.c (copyprop_hardreg_forward_1): Update call
10828 to targetm.hard_regno_call_part_clobbered.
10829 * reginfo.c (choose_hard_reg_mode): Likewise.
10830 * regrename.c (check_new_reg_p): Likewise.
10831 * reload.c (find_equiv_reg): Likewise.
10832 * reload1.c (emit_reload_insns): Likewise.
10833 * sched-deps.c: Include function-abi.h.
10834 (deps_analyze_insn): Update call to
10835 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10836 to get the appropriate ABI identifier.
10837 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10838 call to targetm.hard_regno_call_part_clobbered.
10839 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10841 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10843 * config/i386/i386.c: Include function-abi.h.
10844 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10845 if they preserve some 256-bit or 512-bit SSE registers.
10847 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10849 * target.def (insn_callee_abi): New hook.
10850 (remove_extra_call_preserved_regs): Delete.
10851 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10852 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10853 * doc/tm.texi: Regenerate.
10854 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10855 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10856 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10858 (aarch64_remove_extra_call_preserved_regs): Delete.
10859 (aarch64_insn_callee_abi): New function.
10860 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10861 (TARGET_INSN_CALLEE_ABI): New macro.
10862 * rtl.h (get_call_fndecl): Declare.
10863 (cgraph_rtl_info): Fix formatting. Tweak comment for
10864 function_used_regs. Remove function_used_regs_valid.
10865 * rtlanal.c (get_call_fndecl): Moved from final.c
10866 * function-abi.h (insn_callee_abi): Declare.
10867 (target_function_abi_info): Mention insn_callee_abi.
10868 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10869 way to get_call_reg_set_usage did.
10870 (insn_callee_abi): New function.
10871 * regs.h (get_call_reg_set_usage): Delete.
10872 * final.c: Include function-abi.h.
10873 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10874 function_used_regs before the main loop rather than afterwards.
10875 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10876 if function_used_regs ends up not being useful.
10877 (get_call_fndecl): Move to rtlanal.c
10878 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10879 * caller-save.c: Include function-abi.h.
10880 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10881 instead of get_call_reg_set_usage.
10882 * cfgcleanup.c: Include function-abi.h.
10883 (old_insns_match_p): Use insn_callee_abi instead of
10884 get_call_reg_set_usage.
10885 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10887 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10888 function_used_regs.
10889 * df-scan.c: Include function-abi.h.
10890 (df_get_call_refs): Use insn_callee_abi instead of
10891 get_call_reg_set_usage.
10892 * ira-lives.c: Include function-abi.h.
10893 (process_bb_node_lives): Use insn_callee_abi instead of
10894 get_call_reg_set_usage.
10895 * lra-lives.c: Include function-abi.h.
10896 (process_bb_lives): Use insn_callee_abi instead of
10897 get_call_reg_set_usage.
10898 * postreload.c: Include function-abi.h.
10899 (reload_combine): Use insn_callee_abi instead of
10900 get_call_reg_set_usage.
10901 * regcprop.c: Include function-abi.h.
10902 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10903 get_call_reg_set_usage.
10904 * resource.c: Include function-abi.h.
10905 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10906 instead of get_call_reg_set_usage.
10907 * var-tracking.c: Include function-abi.h.
10908 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10909 get_call_reg_set_usage.
10911 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10913 * target.def (fntype_abi): New target hook.
10914 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10915 * doc/tm.texi: Regenerate.
10916 * target.h (predefined_function_abi): Declare.
10917 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10919 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10920 * config/aarch64/aarch64.c: Include function-abi.h.
10921 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10922 (TARGET_FNTYPE_ABI): Define.
10924 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10926 * Makefile.in (OBJS): Add function-abi.o.
10927 (GTFILES): Add function-abi.h.
10928 * function-abi.cc: New file.
10929 * function-abi.h: Likewise.
10930 * emit-rtl.h (rtl_data::abi): New field.
10931 * function.c: Include function-abi.h.
10932 (prepare_function_start): Initialize crtl->abi.
10933 * read-rtl-function.c: Include regs.h and function-abi.h.
10934 (read_rtl_function_body): Initialize crtl->abi.
10935 (read_rtl_function_body_from_file_range): Likewise.
10936 * reginfo.c: Include function-abi.h.
10937 (init_reg_sets_1): Initialize default_function_abi.
10938 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10939 when making a register global.
10940 * target-globals.h (this_target_function_abi_info): Declare.
10941 (target_globals::function_abi_info): New field.
10942 (restore_target_globals): Copy it.
10943 * target-globals.c: Include function-abi.h.
10944 (default_target_globals): Initialize the function_abi_info field.
10945 (target_globals): Allocate it.
10946 (save_target_globals): Free it.
10948 2019-09-30 Nick Clifton <nickc@redhat.com>
10951 * config/frv/frv.c (frv_register_move_cost): Add break statements
10952 to avoid falling through to the wrong cases. Tidy code.
10954 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10956 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10957 For multi-registers modes, test how big each register part is.
10959 2019-09-30 Nick Clifton <nickc@redhat.com>
10962 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
10963 (TARGET_ASM_SELECT_SECTION): Remove definition.
10964 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
10966 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10968 * emit-rtl.c (init_raw_REG): New function.
10969 (gen_raw_REG): Use init_raw_REG.
10970 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
10972 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
10973 * rtl.h (rtx_init): New function.
10974 (rtx_alloca): New function.
10975 (init_raw_REG): New function.
10976 (alloca_raw_REG): New macro.
10978 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
10980 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
10981 (pcrel_local_address): Replace pcrel_address predicate, use the
10982 new function address_to_insn_form.
10983 (pcrel_external_address): Replace with new implementation using
10984 address_to_insn_form..
10985 (prefixed_mem_operand): Delete predicate which is now unused.
10986 (pcrel_external_mem_operand): Delete predicate which is now
10988 * config/rs6000/rs6000-protos.h (enum insn_form): New
10990 (enum non_prefixed_form): New enumeration.
10991 (address_to_insn_form): New declaration.
10992 (prefixed_load_p): New declaration.
10993 (prefixed_store_p): New declaration.
10994 (prefixed_paddi_p): New declaration.
10995 (rs6000_asm_output_opcode): New declaration.
10996 (rs6000_final_prescan_insn): Move declaration and update calling
10998 (address_is_prefixed): New helper inline function.
10999 * config/rs6000/rs6000.c(print_operand_address): Check for either
11000 PC-relative local symbols or PC-relative external symbols.
11001 (rs6000_emit_move): Support loading PC-relative addresses.
11002 (mode_supports_prefixed_address_p): Delete, no longer used.
11003 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11004 (address_to_insn_form): New function to decode an address format.
11005 (reg_to_non_prefixed): New function to identify what the
11006 non-prefixed memory instruction format is for a register.
11007 (prefixed_load_p): New function to identify prefixed loads.
11008 (prefixed_store_p): New function to identify prefixed stores.
11009 (prefixed_paddi_p): New function to identify prefixed load
11011 (next_insn_prefixed_p): New static state variable.
11012 (rs6000_final_prescan_insn): New function to determine if an insn
11013 uses a prefixed instruction.
11014 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11015 prefixed instruction.
11016 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11017 (ASM_OUTPUT_OPCODE): New target hook.
11018 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11019 prefixed instructions.
11020 (prefixed_length): New insn attribute for the size of prefixed
11022 (non_prefixed_length): New insn attribute for the size of
11023 non-prefixed instructions.
11024 (pcrel_local_addr): New insn to load up a local PC-relative
11026 (pcrel_extern_addr): New insn to load up an external PC-relative
11028 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11029 GPR and loading a 128-bit floating point type to a GPR.
11031 2019-09-30 Richard Biener <rguenther@suse.de>
11033 * gimple.c (gimple_get_lhs): For PHIs return the result.
11034 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11035 SLP instance as argument.
11036 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11037 double-reduction PHIs with vectorizable_lc_phi.
11038 (vect_analyze_loop_operations): Adjust.
11039 (vect_create_epilog_for_reduction): Remove all code not dealing
11040 with reduction LC PHI or epilogue generation.
11041 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11042 for live stmts of reductions.
11043 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11044 do not handle defs that are not vect_internal_def.
11045 (can_vectorize_live_stmts): Adjust.
11046 (vect_analyze_stmt): When the vectorized stmt defined a value
11047 used on backedges adjust the backedge uses of vectorized PHIs.
11049 2019-09-30 Martin Jambor <mjambor@suse.cz>
11052 * tree-inline.c (force_value_to_type): New function.
11053 (setup_one_parameter): Use force_value_to_type to convert type.
11054 * tree-inline.c (force_value_to_type): Declare.
11055 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11056 with register type mismatches.
11058 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11060 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11062 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11063 * config/rs6000/t-freebsd64: Make use of the above define and build
11064 the 32-bit libraries with secure-plt.
11066 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11069 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11070 gen_int_mode instead of GEN_INT.
11072 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11074 * config/darwin.c (gen_macho_low): Amend to include the mode
11076 (machopic_indirect_data_reference): Amend gen_macho_low call
11077 to include mode argument
11078 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11079 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11080 the macho_high expander and two define_insn entries.
11082 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11085 * optc-save-gen.awk: Fix up printing string option differences.
11087 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11089 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11090 vec_perm cost to 1 for non-Power7 VSX architectures.
11092 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11094 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11095 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11096 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11098 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11100 * config/darwin.c (gen_macho_high): Amend to include the mode
11102 (machopic_indirect_data_reference): Amend gen_macho_high call
11103 to include mode argument.
11104 (machopic_legitimize_pic_address): Likewise.
11105 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11106 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11107 the macho_high expander and two define_insn entries.
11109 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11112 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11114 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11117 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11118 std::string::compare instead of std::string::find.
11120 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11122 * configure: Regenerate.
11124 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11126 PR middle-end/91920
11127 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11128 variables as shared.
11130 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11132 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11133 replaces the expander and two define_insn entries.
11134 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11136 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11138 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11140 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11141 (fibonacci_heap::nodes): Likewise.
11142 (fibonacci_heap::min_key): Likewise.
11143 (fibonacci_heap::min): Likewise.
11145 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11147 * cgraph.c (cgraph_node::get_fun): Make const.
11148 * cgraph.h (cgraph_node::get_fun): Likewise.
11150 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11153 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11156 2019-09-27 Richard Biener <rguenther@suse.de>
11158 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11159 (STMT_VINFO_REDUC_FN): Likewise.
11160 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11161 STMT_VINFO_REDUC_FN.
11162 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11163 for condition reductions.
11164 (vect_create_epilog_for_reduction): Compute all required state
11165 from the stmt to be vectorized.
11166 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11167 invocation and remove then dead code. For single def-use chains
11168 record only a single vector stmt.
11170 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11172 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11173 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11174 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11175 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11176 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11177 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11178 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11179 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11180 (aarch64_general_builtin_rsqrt): Declare.
11181 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11183 (aarch64_mangle_builtin_type): Rename to...
11184 (aarch64_general_mangle_builtin_type): ...this.
11185 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11186 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11187 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11188 aarch64_general_add_builtin instead of add_builtin_function.
11189 (aarch64_init_builtins): Rename to...
11190 (aarch64_general_init_builtins): ...this. Use
11191 aarch64_general_add_builtin instead of add_builtin_function.
11192 (aarch64_builtin_decl): Rename to...
11193 (aarch64_general_builtin_decl): ...this and remove the unused
11195 (aarch64_expand_builtin): Rename to...
11196 (aarch64_general_expand_builtin): ...this and remove the unused
11198 (aarch64_builtin_rsqrt): Rename to...
11199 (aarch64_general_builtin_rsqrt): ...this.
11200 (aarch64_fold_builtin): Rename to...
11201 (aarch64_general_fold_builtin): ...this. Take the function subcode
11202 and return type as arguments. Remove the "ignored" argument.
11203 (aarch64_gimple_fold_builtin): Rename to...
11204 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11205 subcode and gcall as arguments, and return the new function call.
11206 * config/aarch64/aarch64.c (aarch64_init_builtins)
11207 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11208 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11209 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11210 instead of aarch64_builtin_rsqrt.
11211 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11212 instead of aarch64_mangle_builtin_type.
11214 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11216 * target.def (check_builtin_call): New target hook.
11217 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11218 * doc/tm.texi: Regenerate.
11220 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11222 PR tree-optimization/91909
11223 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11224 reduc_index parameter. When handling COND_REDUCTION, make sure
11225 that the reduction phi operand is in the correct arm of the
11227 (vectorizable_reduction): Pass reduc_index to the above.
11229 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11231 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11232 New combine pattern.
11234 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11236 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11237 loop instruction into new basic block before the loop when basic
11238 block that precedes the loop is empty.
11240 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11242 * function.c (gimplify_parameters): Use build_clobber function.
11243 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11244 * tree-inline.c (expand_call_inline): Likewise.
11245 * tree-sra.c (clobber_subtree): Likewise.
11246 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11247 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11248 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11249 lower_omp_target): Likewise.
11250 * omp-expand.c (expand_omp_for_generic): Likewise.
11251 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11253 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11255 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11256 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11257 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11258 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11259 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11260 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11261 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11262 LD_ELEMREV_V16QI): Use the PURE attribute.
11264 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11266 * config/rs6000/darwin.md: Replace the expanders for
11267 load_macho_picbase and reload_macho_picbase with use of '@'
11268 and <mode> in their respective define_insns.
11269 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11270 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11271 Pmode to gen_load_macho_picbase.
11272 * config/rs6000/rs6000.md: Likewise.
11274 2019-09-25 Richard Biener <rguenther@suse.de>
11276 PR tree-optimization/91896
11277 * tree-vect-loop.c (vectorizable_reduction): The single
11278 def-use cycle optimization cannot apply when there's more
11279 than one pattern stmt involved.
11281 2019-09-26 Richard Biener <rguenther@suse.de>
11283 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11284 loop-closed PHIs that are vect_internal_def.
11285 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11287 (vectorizable_lc_phi): New.
11288 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11289 (vect_transform_stmt): Likewise.
11290 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11291 (vectorizable_lc_phi): Declare.
11293 2019-09-26 Richard Biener <rguenther@suse.de>
11295 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11296 vectorizable_reduction for vect_double_reduction_def.
11297 (vect_transform_loop): Likewise.
11298 (vect_create_epilog_for_reduction): Move double-reduction
11299 PHI creation and preheader argument setting of PHIs ...
11300 (vectorizable_reduction): ... here. Also process
11301 vect_double_reduction_def PHIs, creating the vectorized
11302 PHI nodes, remembering the scalar adjustment computed for
11303 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11304 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11305 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11306 Initialize STMT_VINFO_REDUC_CODE.
11307 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11308 (_stmt_vec_info::reduc_code): Likewise.
11309 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11310 (STMT_VINFO_REDUC_CODE): Likewise.
11312 2019-09-26 Matt Turner <mattst88@gmail.com>
11315 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11316 (mtune=): Add Negative(mtune=).
11317 (mcpu=): Add Negative(mcpu=).
11318 * config/arm/arm.opt: Likewise.
11320 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11322 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11323 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11325 * config/arm/arm_acle.h: Define builtins for the above.
11326 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11327 (simd32_op): Handle the above.
11328 * config/arm/unspecs.md: Define unspecs for the above.
11330 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11332 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11333 (arm_<sup>xtb16): Likewise.
11334 (arm_usada8): Likewise.
11335 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11336 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11337 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11338 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11339 __sxtb16, __uxtab16, __uxtb16): Define.
11340 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11341 * config/arm/unspecs.md: Define unspecs for the above.
11342 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11343 (USXTB16): Likewise.
11344 (simd32_op): New int_attribute.
11345 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11346 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11348 2019-09-26 Martin Jambor <mjambor@suse.cz>
11350 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11353 2019-09-26 Martin Jambor <mjambor@suse.cz>
11355 * ipa-sra.c (process_scan_results): Fix continue condition.
11357 2019-09-26 Martin Liska <mliska@suse.cz>
11359 PR tree-optimization/91885
11360 * tree-vectorizer.c (try_vectorize_loop_1): Add
11361 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11363 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11365 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11366 aarch64_plus_immediate rather than aarch64_uimm12_shift
11367 to test for valid PLUS immediates.
11369 2019-09-25 Martin Jambor <mjambor@suse.cz>
11371 * tree-sra.c (no_accesses_p): Remove.
11372 (no_accesses_representant): Likewise.
11374 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11376 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11378 (vaba_s16): Likewise.
11379 (vaba_s32): Likewise.
11380 (vaba_u8): Likewise.
11381 (vaba_u16): Likewise.
11382 (vaba_u32): Likewise.
11383 (vabal_high_s8): Likewise.
11384 (vabal_high_s16): Likewise.
11385 (vabal_high_s32): Likewise.
11386 (vabal_high_u8): Likewise.
11387 (vabal_high_u16): Likewise.
11388 (vabal_high_u32): Likewise.
11389 (vabal_s8): Likewise.
11390 (vabal_s16): Likewise.
11391 (vabal_s32): Likewise.
11392 (vabal_u8): Likewise.
11393 (vabal_u16): Likewise.
11394 (vabal_u32): Likewise.
11395 (vabaq_s8): Likewise.
11396 (vabaq_s16): Likewise.
11397 (vabaq_s32): Likewise.
11398 (vabaq_u8): Likewise.
11399 (vabaq_u16): Likewise.
11400 (vabaq_u32): Likewise.
11401 (vabd_s8): Likewise.
11402 (vabd_s16): Likewise.
11403 (vabd_s32): Likewise.
11404 (vabd_u8): Likewise.
11405 (vabd_u16): Likewise.
11406 (vabd_u32): Likewise.
11407 (vabdl_high_s8): Likewise.
11408 (vabdl_high_s16): Likewise.
11409 (vabdl_high_s32): Likewise.
11410 (vabdl_high_u8): Likewise.
11411 (vabdl_high_u16): Likewise.
11412 (vabdl_high_u32): Likewise.
11413 (vabdl_s8): Likewise.
11414 (vabdl_s16): Likewise.
11415 (vabdl_s32): Likewise.
11416 (vabdl_u8): Likewise.
11417 (vabdl_u16): Likewise.
11418 (vabdl_u32): Likewise.
11419 (vabdq_s8): Likewise.
11420 (vabdq_s16): Likewise.
11421 (vabdq_s32): Likewise.
11422 (vabdq_u8): Likewise.
11423 (vabdq_u16): Likewise.
11424 (vabdq_u32): Likewise.
11425 (vaddlv_s8): Likewise.
11426 (vaddlv_s16): Likewise.
11427 (vaddlv_u8): Likewise.
11428 (vaddlv_u16): Likewise.
11429 (vaddlvq_s8): Likewise.
11430 (vaddlvq_s16): Likewise.
11431 (vaddlvq_s32): Likewise.
11432 (vaddlvq_u8): Likewise.
11433 (vaddlvq_u16): Likewise.
11434 (vaddlvq_u32): Likewise.
11435 (vcvtx_f32_f64): Likewise.
11436 (vcvtx_high_f32_f64): Likewise.
11437 (vcvtxd_f32_f64): Likewise.
11438 (vmla_n_f32): Likewise.
11439 (vmla_n_s16): Likewise.
11440 (vmla_n_s32): Likewise.
11441 (vmla_n_u16): Likewise.
11442 (vmla_n_u32): Likewise.
11443 (vmla_s8): Likewise.
11444 (vmla_s16): Likewise.
11445 (vmla_s32): Likewise.
11446 (vmla_u8): Likewise.
11447 (vmla_u16): Likewise.
11448 (vmla_u32): Likewise.
11449 (vmlal_high_n_s16): Likewise.
11450 (vmlal_high_n_s32): Likewise.
11451 (vmlal_high_n_u16): Likewise.
11452 (vmlal_high_n_u32): Likewise.
11453 (vmlal_high_s8): Likewise.
11454 (vmlal_high_s16): Likewise.
11455 (vmlal_high_s32): Likewise.
11456 (vmlal_high_u8): Likewise.
11457 (vmlal_high_u16): Likewise.
11458 (vmlal_high_u32): Likewise.
11459 (vmlal_n_s16): Likewise.
11460 (vmlal_n_s32): Likewise.
11461 (vmlal_n_u16): Likewise.
11462 (vmlal_n_u32): Likewise.
11463 (vmlal_s8): Likewise.
11464 (vmlal_s16): Likewise.
11465 (vmlal_s32): Likewise.
11466 (vmlal_u8): Likewise.
11467 (vmlal_u16): Likewise.
11468 (vmlal_u32): Likewise.
11469 (vmlaq_n_f32): Likewise.
11470 (vmlaq_n_s16): Likewise.
11471 (vmlaq_n_s32): Likewise.
11472 (vmlaq_n_u16): Likewise.
11473 (vmlaq_n_u32): Likewise.
11474 (vmlaq_s8): Likewise.
11475 (vmlaq_s16): Likewise.
11476 (vmlaq_s32): Likewise.
11477 (vmlaq_u8): Likewise.
11478 (vmlaq_u16): Likewise.
11479 (vmlaq_u32): Likewise.
11480 (vmls_n_f32): Likewise.
11481 (vmls_n_s16): Likewise.
11482 (vmls_n_s32): Likewise.
11483 (vmls_n_u16): Likewise.
11484 (vmls_n_u32): Likewise.
11485 (vmls_s8): Likewise.
11486 (vmls_s16): Likewise.
11487 (vmls_s32): Likewise.
11488 (vmls_u8): Likewise.
11489 (vmls_u16): Likewise.
11490 (vmls_u32): Likewise.
11491 (vmlsl_high_n_s16): Likewise.
11492 (vmlsl_high_n_s32): Likewise.
11493 (vmlsl_high_n_u16): Likewise.
11494 (vmlsl_high_n_u32): Likewise.
11495 (vmlsl_high_s8): Likewise.
11496 (vmlsl_high_s16): Likewise.
11497 (vmlsl_high_s32): Likewise.
11498 (vmlsl_high_u8): Likewise.
11499 (vmlsl_high_u16): Likewise.
11500 (vmlsl_high_u32): Likewise.
11501 (vmlsl_n_s16): Likewise.
11502 (vmlsl_n_s32): Likewise.
11503 (vmlsl_n_u16): Likewise.
11504 (vmlsl_n_u32): Likewise.
11505 (vmlsl_s8): Likewise.
11506 (vmlsl_s16): Likewise.
11507 (vmlsl_s32): Likewise.
11508 (vmlsl_u8): Likewise.
11509 (vmlsl_u16): Likewise.
11510 (vmlsl_u32): Likewise.
11511 (vmlsq_n_f32): Likewise.
11512 (vmlsq_n_s16): Likewise.
11513 (vmlsq_n_s32): Likewise.
11514 (vmlsq_n_u16): Likewise.
11515 (vmlsq_n_u32): Likewise.
11516 (vmlsq_s8): Likewise.
11517 (vmlsq_s16): Likewise.
11518 (vmlsq_s32): Likewise.
11519 (vmlsq_u8): Likewise.
11520 (vmlsq_u16): Likewise.
11521 (vmlsq_u32): Likewise.
11522 (vmovl_high_s8): Likewise.
11523 (vmovl_high_s16): Likewise.
11524 (vmovl_high_s32): Likewise.
11525 (vmovl_high_u8): Likewise.
11526 (vmovl_high_u16): Likewise.
11527 (vmovl_high_u32): Likewise.
11528 (vmovl_s8): Likewise.
11529 (vmovl_s16): Likewise.
11530 (vmovl_s32): Likewise.
11531 (vmovl_u8): Likewise.
11532 (vmovl_u16): Likewise.
11533 (vmovl_u32): Likewise.
11534 (vmovn_high_s16): Likewise.
11535 (vmovn_high_s32): Likewise.
11536 (vmovn_high_s64): Likewise.
11537 (vmovn_high_u16): Likewise.
11538 (vmovn_high_u32): Likewise.
11539 (vmovn_high_u64): Likewise.
11540 (vmovn_s16): Likewise.
11541 (vmovn_s32): Likewise.
11542 (vmovn_s64): Likewise.
11543 (vmovn_u16): Likewise.
11544 (vmovn_u32): Likewise.
11545 (vmovn_u64): Likewise.
11546 (vmull_high_n_s16): Likewise.
11547 (vmull_high_n_s32): Likewise.
11548 (vmull_high_n_u16): Likewise.
11549 (vmull_high_n_u32): Likewise.
11550 (vmull_high_p8): Likewise.
11551 (vmull_high_s8): Likewise.
11552 (vmull_high_s16): Likewise.
11553 (vmull_high_s32): Likewise.
11554 (vmull_high_u8): Likewise.
11555 (vmull_high_u16): Likewise.
11556 (vmull_high_u32): Likewise.
11557 (vmull_n_s16): Likewise.
11558 (vmull_n_s32): Likewise.
11559 (vmull_n_u16): Likewise.
11560 (vmull_n_u32): Likewise.
11561 (vmull_p8): Likewise.
11562 (vmull_s8): Likewise.
11563 (vmull_s16): Likewise.
11564 (vmull_s32): Likewise.
11565 (vmull_u8): Likewise.
11566 (vmull_u16): Likewise.
11567 (vmull_u32): Likewise.
11568 (vpadal_s8): Likewise.
11569 (vpadal_s16): Likewise.
11570 (vpadal_s32): Likewise.
11571 (vpadal_u8): Likewise.
11572 (vpadal_u16): Likewise.
11573 (vpadal_u32): Likewise.
11574 (vpadalq_s8): Likewise.
11575 (vpadalq_s16): Likewise.
11576 (vpadalq_s32): Likewise.
11577 (vpadalq_u8): Likewise.
11578 (vpadalq_u16): Likewise.
11579 (vpadalq_u32): Likewise.
11580 (vpaddl_s8): Likewise.
11581 (vpaddl_s16): Likewise.
11582 (vpaddl_s32): Likewise.
11583 (vpaddl_u8): Likewise.
11584 (vpaddl_u16): Likewise.
11585 (vpaddl_u32): Likewise.
11586 (vpaddlq_s8): Likewise.
11587 (vpaddlq_s16): Likewise.
11588 (vpaddlq_s32): Likewise.
11589 (vpaddlq_u8): Likewise.
11590 (vpaddlq_u16): Likewise.
11591 (vpaddlq_u32): Likewise.
11592 (vpaddq_s8): Likewise.
11593 (vpaddq_s16): Likewise.
11594 (vpaddq_s32): Likewise.
11595 (vpaddq_s64): Likewise.
11596 (vpaddq_u8): Likewise.
11597 (vpaddq_u16): Likewise.
11598 (vpaddq_u32): Likewise.
11599 (vpaddq_u64): Likewise.
11600 (vqdmulh_n_s16): Likewise.
11601 (vqdmulh_n_s32): Likewise.
11602 (vqdmulhq_n_s16): Likewise.
11603 (vqdmulhq_n_s32): Likewise.
11604 (vqmovn_high_s16): Likewise.
11605 (vqmovn_high_s32): Likewise.
11606 (vqmovn_high_s64): Likewise.
11607 (vqmovn_high_u16): Likewise.
11608 (vqmovn_high_u32): Likewise.
11609 (vqmovn_high_u64): Likewise.
11610 (vqmovun_high_s16): Likewise.
11611 (vqmovun_high_s32): Likewise.
11612 (vqmovun_high_s64): Likewise.
11613 (vqrdmulh_n_s16): Likewise.
11614 (vqrdmulh_n_s32): Likewise.
11615 (vqrdmulhq_n_s16): Likewise.
11616 (vqrdmulhq_n_s32): Likewise.
11617 (vrsqrte_u32): Likewise.
11618 (vrsqrteq_u32): Likewise.
11619 (vtst_p8): Likewise.
11620 (vtst_p16): Likewise.
11621 (vtst_p64): Likewise.
11622 (vtstq_p8): Likewise.
11623 (vtstq_p16): Likewise.
11624 (vtstq_p64): Likewise.
11625 (vaddlv_s32): Likewise.
11626 (vaddlv_u32): Likewise.
11627 (vqtbl1_p8): Likewise.
11628 (vqtbl1_s8): Likewise.
11629 (vqtbl1_u8): Likewise.
11630 (vqtbl1q_p8): Likewise.
11631 (vqtbl1q_s8): Likewise.
11632 (vqtbl1q_u8): Likewise.
11633 (vqtbx1_s8): Likewise.
11634 (vqtbx1_u8): Likewise.
11635 (vqtbx1_p8): Likewise.
11636 (vqtbx1q_s8): Likewise.
11637 (vqtbx1q_u8): Likewise.
11638 (vqtbx1q_p8): Likewise.
11639 (vtbl1_s8): Likewise.
11640 (vtbl1_u8): Likewise.
11641 (vtbl1_p8): Likewise.
11642 (vtbl2_s8): Likewise.
11643 (vtbl2_u8): Likewise.
11644 (vtbl2_p8): Likewise.
11645 (vtbl3_s8): Likewise.
11646 (vtbl3_u8): Likewise.
11647 (vtbl3_p8): Likewise.
11648 (vtbl4_s8): Likewise.
11649 (vtbl4_u8): Likewise.
11650 (vtbl4_p8): Likewise.
11651 (vtbx2_s8): Likewise.
11652 (vtbx2_u8): Likewise.
11653 (vtbx2_p8): Likewise.
11654 (vld1_f32): Likewise.
11655 (vld1_f64): Likewise.
11656 (vld1_p8): Likewise.
11657 (vld1_p16): Likewise.
11658 (vld1_p64): Likewise.
11659 (vld1_s8): Likewise.
11660 (vld1_s16): Likewise.
11661 (vld1_s32): Likewise.
11662 (vld1_s64): Likewise.
11663 (vld1_u8): Likewise.
11664 (vld1_u16): Likewise.
11665 (vld1_u32): Likewise.
11666 (vld1_u64): Likewise.
11667 (vld1q_f32): Likewise.
11668 (vld1q_f64): Likewise.
11669 (vld1q_p8): Likewise.
11670 (vld1q_p16): Likewise.
11671 (vld1q_p64): Likewise.
11672 (vld1q_s8): Likewise.
11673 (vld1q_s16): Likewise.
11674 (vld1q_s32): Likewise.
11675 (vld1q_s64): Likewise.
11676 (vld1q_u8): Likewise.
11677 (vld1q_u16): Likewise.
11678 (vld1q_u32): Likewise.
11679 (vld1q_u64): Likewise.
11680 (vpmax_s8): Likewise.
11681 (vpmax_s16): Likewise.
11682 (vpmax_s32): Likewise.
11683 (vpmax_u8): Likewise.
11684 (vpmax_u16): Likewise.
11685 (vpmax_u32): Likewise.
11686 (vpmaxq_s8): Likewise.
11687 (vpmaxq_s16): Likewise.
11688 (vpmaxq_s32): Likewise.
11689 (vpmaxq_u8): Likewise.
11690 (vpmaxq_u16): Likewise.
11691 (vpmaxq_u32): Likewise.
11692 (vpmax_f32): Likewise.
11693 (vpmaxq_f32): Likewise.
11694 (vpmaxq_f64): Likewise.
11695 (vpmaxqd_f64): Likewise.
11696 (vpmaxs_f32): Likewise.
11697 (vpmaxnm_f32): Likewise.
11698 (vpmaxnmq_f32): Likewise.
11699 (vpmaxnmq_f64): Likewise.
11700 (vpmaxnmqd_f64): Likewise.
11701 (vpmaxnms_f32): Likewise.
11702 (vpmin_s8): Likewise.
11703 (vpmin_s16): Likewise.
11704 (vpmin_s32): Likewise.
11705 (vpmin_u8): Likewise.
11706 (vpmin_u16): Likewise.
11707 (vpmin_u32): Likewise.
11708 (vpminq_s8): Likewise.
11709 (vpminq_s16): Likewise.
11710 (vpminq_s32): Likewise.
11711 (vpminq_u8): Likewise.
11712 (vpminq_u16): Likewise.
11713 (vpminq_u32): Likewise.
11714 (vpmin_f32): Likewise.
11715 (vpminq_f32): Likewise.
11716 (vpminq_f64): Likewise.
11717 (vpminqd_f64): Likewise.
11718 (vpmins_f32): Likewise.
11719 (vpminnm_f32): Likewise.
11720 (vpminnmq_f32): Likewise.
11721 (vpminnmq_f64): Likewise.
11722 (vpminnmqd_f64): Likewise.
11723 (vpminnms_f32): Likewise.
11724 (vmla_f32): Likewise.
11725 (vmlaq_f32): Likewise.
11726 (vmlaq_f64): Likewise.
11727 (vmls_f32): Likewise.
11728 (vmlsq_f32): Likewise.
11729 (vmlsq_f64): Likewise.
11730 (vqtbl2_s8): Likewise.
11731 (vqtbl2_u8): Likewise.
11732 (vqtbl2_p8): Likewise.
11733 (vqtbl2q_s8): Likewise.
11734 (vqtbl2q_u8): Likewise.
11735 (vqtbl2q_p8): Likewise.
11736 (vqtbl3_s8): Likewise.
11737 (vqtbl3_u8): Likewise.
11738 (vqtbl3_p8): Likewise.
11739 (vqtbl3q_s8): Likewise.
11740 (vqtbl3q_u8): Likewise.
11741 (vqtbl3q_p8): Likewise.
11742 (vqtbl4_s8): Likewise.
11743 (vqtbl4_u8): Likewise.
11744 (vqtbl4_p8): Likewise.
11745 (vqtbl4q_s8): Likewise.
11746 (vqtbl4q_u8): Likewise.
11747 (vqtbl4q_p8): Likewise.
11748 (vqtbx2_s8): Likewise.
11749 (vqtbx2_u8): Likewise.
11750 (vqtbx2_p8): Likewise.
11751 (vqtbx2q_s8): Likewise.
11752 (vqtbx2q_u8): Likewise.
11753 (vqtbx2q_p8): Likewise.
11754 (vqtbx3_s8): Likewise.
11755 (vqtbx3_u8): Likewise.
11756 (vqtbx3_p8): Likewise.
11757 (vqtbx3q_s8): Likewise.
11758 (vqtbx3q_u8): Likewise.
11759 (vqtbx3q_p8): Likewise.
11760 (vqtbx4_s8): Likewise.
11761 (vqtbx4_u8): Likewise.
11762 (vqtbx4_p8): Likewise.
11763 (vqtbx4q_s8): Likewise.
11764 (vqtbx4q_u8): Likewise.
11765 (vqtbx4q_p8): Likewise.
11766 (vrev16_p8): Likewise.
11767 (vrev16_s8): Likewise.
11768 (vrev16_u8): Likewise.
11769 (vrev16q_p8): Likewise.
11770 (vrev16q_s8): Likewise.
11771 (vrev16q_u8): Likewise.
11772 (vrev32_p8): Likewise.
11773 (vrev32_p16): Likewise.
11774 (vrev32_s8): Likewise.
11775 (vrev32_s16): Likewise.
11776 (vrev32_u8): Likewise.
11777 (vrev32_u16): Likewise.
11778 (vrev32q_p8): Likewise.
11779 (vrev32q_p16): Likewise.
11780 (vrev32q_s8): Likewise.
11781 (vrev32q_s16): Likewise.
11782 (vrev32q_u8): Likewise.
11783 (vrev32q_u16): Likewise.
11784 (vrev64_f32): Likewise.
11785 (vrev64_p8): Likewise.
11786 (vrev64_p16): Likewise.
11787 (vrev64_s8): Likewise.
11788 (vrev64_s16): Likewise.
11789 (vrev64_s32): Likewise.
11790 (vrev64_u8): Likewise.
11791 (vrev64_u16): Likewise.
11792 (vrev64_u32): Likewise.
11793 (vrev64q_f32): Likewise.
11794 (vrev64q_p8): Likewise.
11795 (vrev64q_p16): Likewise.
11796 (vrev64q_s8): Likewise.
11797 (vrev64q_s16): Likewise.
11798 (vrev64q_s32): Likewise.
11799 (vrev64q_u8): Likewise.
11800 (vrev64q_u16): Likewise.
11801 (vrev64q_u32): Likewise.
11802 (vsha1cq_u32): Likewise.
11803 (vsha1mq_u32): Likewise.
11804 (vsha1pq_u32): Likewise.
11805 (vsha1h_u32): Likewise.
11806 (vsha1su0q_u32): Likewise.
11807 (vsha1su1q_u32): Likewise.
11808 (vsha256hq_u32): Likewise.
11809 (vsha256h2q_u32): Likewise.
11810 (vsha256su0q_u32): Likewise.
11811 (vsha256su1q_u32): Likewise.
11812 (vmull_p64): Likewise.
11813 (vmull_high_p64): Likewise.
11814 (vsqrt_f32): Likewise.
11815 (vsqrtq_f32): Likewise.
11816 (vsqrt_f64): Likewise.
11817 (vsqrtq_f64): Likewise.
11818 (vst1_f32): Likewise.
11819 (vst1_f64): Likewise.
11820 (vst1_p8): Likewise.
11821 (vst1_p16): Likewise.
11822 (vst1_p64): Likewise.
11823 (vst1_s8): Likewise.
11824 (vst1_s16): Likewise.
11825 (vst1_s32): Likewise.
11826 (vst1_s64): Likewise.
11827 (vst1_u8): Likewise.
11828 (vst1_u16): Likewise.
11829 (vst1_u32): Likewise.
11830 (vst1_u64): Likewise.
11831 (vst1q_f32): Likewise.
11832 (vst1q_f64): Likewise.
11833 (vst1q_p8): Likewise.
11834 (vst1q_p16): Likewise.
11835 (vst1q_p64): Likewise.
11836 (vst1q_s8): Likewise.
11837 (vst1q_s16): Likewise.
11838 (vst1q_s32): Likewise.
11839 (vst1q_s64): Likewise.
11840 (vst1q_u8): Likewise.
11841 (vst1q_u16): Likewise.
11842 (vst1q_u32): Likewise.
11843 (vst1q_u64): Likewise.
11844 (vst1_s64_x2): Likewise.
11845 (vst1_u64_x2): Likewise.
11846 (vst1_f64_x2): Likewise.
11847 (vst1_s8_x2): Likewise.
11848 (vst1_p8_x2): Likewise.
11849 (vst1_s16_x2): Likewise.
11850 (vst1_p16_x2): Likewise.
11851 (vst1_s32_x2): Likewise.
11852 (vst1_u8_x2): Likewise.
11853 (vst1_u16_x2): Likewise.
11854 (vst1_u32_x2): Likewise.
11855 (vst1_f16_x2): Likewise.
11856 (vst1_f32_x2): Likewise.
11857 (vst1_p64_x2): Likewise.
11858 (vst1q_s8_x2): Likewise.
11859 (vst1q_p8_x2): Likewise.
11860 (vst1q_s16_x2): Likewise.
11861 (vst1q_p16_x2): Likewise.
11862 (vst1q_s32_x2): Likewise.
11863 (vst1q_s64_x2): Likewise.
11864 (vst1q_u8_x2): Likewise.
11865 (vst1q_u16_x2): Likewise.
11866 (vst1q_u32_x2): Likewise.
11867 (vst1q_u64_x2): Likewise.
11868 (vst1q_f16_x2): Likewise.
11869 (vst1q_f32_x2): Likewise.
11870 (vst1q_f64_x2): Likewise.
11871 (vst1q_p64_x2): Likewise.
11872 (vst1_s64_x3): Likewise.
11873 (vst1_u64_x3): Likewise.
11874 (vst1_f64_x3): Likewise.
11875 (vst1_s8_x3): Likewise.
11876 (vst1_p8_x3): Likewise.
11877 (vst1_s16_x3): Likewise.
11878 (vst1_p16_x3): Likewise.
11879 (vst1_s32_x3): Likewise.
11880 (vst1_u8_x3): Likewise.
11881 (vst1_u16_x3): Likewise.
11882 (vst1_u32_x3): Likewise.
11883 (vst1_f16_x3): Likewise.
11884 (vst1_f32_x3): Likewise.
11885 (vst1_p64_x3): Likewise.
11886 (vst1q_s8_x3): Likewise.
11887 (vst1q_p8_x3): Likewise.
11888 (vst1q_s16_x3): Likewise.
11889 (vst1q_p16_x3): Likewise.
11890 (vst1q_s32_x3): Likewise.
11891 (vst1q_s64_x3): Likewise.
11892 (vst1q_u8_x3): Likewise.
11893 (vst1q_u16_x3): Likewise.
11894 (vst1q_u32_x3): Likewise.
11895 (vst1q_u64_x3): Likewise.
11896 (vst1q_f16_x3): Likewise.
11897 (vst1q_f32_x3): Likewise.
11898 (vst1q_f64_x3): Likewise.
11899 (vst1q_p64_x3): Likewise.
11900 (vst2_s64): Likewise.
11901 (vst2_u64): Likewise.
11902 (vst2_f64): Likewise.
11903 (vst2_s8): Likewise.
11904 (vst2_p8): Likewise.
11905 (vst2_s16): Likewise.
11906 (vst2_p16): Likewise.
11907 (vst2_s32): Likewise.
11908 (vst2_u8): Likewise.
11909 (vst2_u16): Likewise.
11910 (vst2_u32): Likewise.
11911 (vst2_f16): Likewise.
11912 (vst2_f32): Likewise.
11913 (vst2_p64): Likewise.
11914 (vst2q_s8): Likewise.
11915 (vst2q_p8): Likewise.
11916 (vst2q_s16): Likewise.
11917 (vst2q_p16): Likewise.
11918 (vst2q_s32): Likewise.
11919 (vst2q_s64): Likewise.
11920 (vst2q_u8): Likewise.
11921 (vst2q_u16): Likewise.
11922 (vst2q_u32): Likewise.
11923 (vst2q_u64): Likewise.
11924 (vst2q_f16): Likewise.
11925 (vst2q_f32): Likewise.
11926 (vst2q_f64): Likewise.
11927 (vst2q_p64): Likewise.
11928 (vst3_s64): Likewise.
11929 (vst3_u64): Likewise.
11930 (vst3_f64): Likewise.
11931 (vst3_s8): Likewise.
11932 (vst3_p8): Likewise.
11933 (vst3_s16): Likewise.
11934 (vst3_p16): Likewise.
11935 (vst3_s32): Likewise.
11936 (vst3_u8): Likewise.
11937 (vst3_u16): Likewise.
11938 (vst3_u32): Likewise.
11939 (vst3_f16): Likewise.
11940 (vst3_f32): Likewise.
11941 (vst3_p64): Likewise.
11942 (vst3q_s8): Likewise.
11943 (vst3q_p8): Likewise.
11944 (vst3q_s16): Likewise.
11945 (vst3q_p16): Likewise.
11946 (vst3q_s32): Likewise.
11947 (vst3q_s64): Likewise.
11948 (vst3q_u8): Likewise.
11949 (vst3q_u16): Likewise.
11950 (vst3q_u32): Likewise.
11951 (vst3q_u64): Likewise.
11952 (vst3q_f16): Likewise.
11953 (vst3q_f32): Likewise.
11954 (vst3q_f64): Likewise.
11955 (vst3q_p64): Likewise.
11956 (vst4_s64): Likewise.
11957 (vst4_u64): Likewise.
11958 (vst4_f64): Likewise.
11959 (vst4_s8): Likewise.
11960 (vst4_p8): Likewise.
11961 (vst4_s16): Likewise.
11962 (vst4_p16): Likewise.
11963 (vst4_s32): Likewise.
11964 (vst4_u8): Likewise.
11965 (vst4_u16): Likewise.
11966 (vst4_u32): Likewise.
11967 (vst4_f16): Likewise.
11968 (vst4_f32): Likewise.
11969 (vst4_p64): Likewise.
11970 (vst4q_s8): Likewise.
11971 (vst4q_p8): Likewise.
11972 (vst4q_s16): Likewise.
11973 (vst4q_p16): Likewise.
11974 (vst4q_s32): Likewise.
11975 (vst4q_s64): Likewise.
11976 (vst4q_u8): Likewise.
11977 (vst4q_u16): Likewise.
11978 (vst4q_u32): Likewise.
11979 (vst4q_u64): Likewise.
11980 (vst4q_f16): Likewise.
11981 (vst4q_f32): Likewise.
11982 (vst4q_f64): Likewise.
11983 (vst4q_p64): Likewise.
11984 (vtbx4_s8): Likewise.
11985 (vtbx4_u8): Likewise.
11986 (vtbx4_p8): Likewise.
11987 (vtrn_f32): Likewise.
11988 (vtrn_p8): Likewise.
11989 (vtrn_p16): Likewise.
11990 (vtrn_s8): Likewise.
11991 (vtrn_s16): Likewise.
11992 (vtrn_s32): Likewise.
11993 (vtrn_u8): Likewise.
11994 (vtrn_u16): Likewise.
11995 (vtrn_u32): Likewise.
11996 (vtrnq_f32): Likewise.
11997 (vtrnq_p8): Likewise.
11998 (vtrnq_p16): Likewise.
11999 (vtrnq_s8): Likewise.
12000 (vtrnq_s16): Likewise.
12001 (vtrnq_s32): Likewise.
12002 (vtrnq_u8): Likewise.
12003 (vtrnq_u16): Likewise.
12004 (vtrnq_u32): Likewise.
12005 (vrsqrte_f16): Likewise.
12006 (vrsqrteq_f16): Likewise.
12007 (vsqrt_f16): Likewise.
12008 (vsqrtq_f16): Likewise.
12009 (vabd_f16): Likewise.
12010 (vabdq_f16): Likewise.
12011 (vpadd_f16): Likewise.
12012 (vpaddq_f16): Likewise.
12013 (vpmax_f16): Likewise.
12014 (vpmaxq_f16): Likewise.
12015 (vpmaxnm_f16): Likewise.
12016 (vpmaxnmq_f16): Likewise.
12017 (vpmin_f16): Likewise.
12018 (vpminq_f16): Likewise.
12019 (vpminnm_f16): Likewise.
12020 (vpminnmq_f16): Likewise.
12021 (vrsqrts_f16): Likewise.
12022 (vrsqrtsq_f16): Likewise.
12024 2019-09-25 Richard Biener <rguenther@suse.de>
12026 PR tree-optimization/91896
12027 * tree-vect-loop.c (vectorizable_reduction): The single
12028 def-use cycle optimization cannot apply when there's more
12029 than one pattern stmt involved.
12031 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12033 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12034 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12035 (reload_macho_picbase_<mode>): Likewise.
12037 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12039 * config/rs6000/rs6000.md: Move darwin.md include until
12040 after the definition of the mode iterators.
12042 2019-09-23 Martin Sebor <msebor@redhat.com>
12044 PR tree-optimization/91570
12045 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12046 non-constant minlen, maxlen and maxbound.
12048 2019-09-24 Richard Biener <rguenther@suse.de>
12050 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12052 (_stmt_vec_info::cond_reduc_code): ... this.
12053 (_stmt_vec_info::induc_cond_initial_val): Add.
12054 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12055 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12056 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12057 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12058 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12059 the reduction code.
12060 (vect_create_epilog_for_reduction): Drop special
12061 induction condition reduction params, pass in reduction code
12063 (vectorizable_reduction): Perform condition reduction kind
12064 selection only at analysis time. Adjust passing on state.
12066 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12068 * config/aarch64/aarch64.md (mov<mode>): Don't call
12069 aarch64_split_dimode_const_store on volatile MEM.
12071 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12073 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12074 Update hwcap string for fp16fml.
12076 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12078 PR middle-end/91866
12079 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12080 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12082 2019-09-24 Martin Liska <mliska@suse.cz>
12084 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12085 instead of if-elseif-elseif-...
12086 * gimple-expr.c (extract_ops_from_tree): Likewise.
12087 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12088 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12090 2019-09-24 Martin Jambor <mjambor@suse.cz>
12093 * ipa-param-manipulation.c (carry_over_param): Make a method of
12094 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12095 in case of a context mismatch.
12096 (ipa_param_body_adjustments::common_initialization): Adjust call to
12098 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12099 private method carry_over_param.
12101 2019-09-24 Martin Jambor <mjambor@suse.cz>
12104 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12106 2019-09-24 Richard Biener <rguenther@suse.de>
12108 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12111 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12113 * config/arm/t-arm (arm-builtins.o): Add dependency on
12114 arm_acle_builtins.def.
12116 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12119 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12120 canonical CONST_INTs. Use gen_rtvec.
12122 2019-09-23 Richard Biener <rguenther@suse.de>
12124 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12125 avoid adjusting by + 0 or * 1.
12126 (vect_create_epilog_for_reduction): Get reduction code only
12127 when necessary. Deal with adjustment_def only when necessary.
12129 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12131 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12134 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12137 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12140 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12142 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12143 code. Merge code blocks with common conditionals. Use declared
12144 macro instead of a magic number for PIC level.
12146 2019-09-21 Martin Sebor <msebor@redhat.com>
12148 PR middle-end/91830
12149 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12150 Simplify computation of the offset of the referenced subobject.
12152 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12154 * config/darwin.c (machopic_legitimize_pic_address): Check
12155 for lra not reload.
12157 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12159 * ira-conflicts.c (can_use_same_reg_p): New function.
12160 (process_reg_shuffles): Take an insn parameter. Ignore cases
12161 in which input operand op_num could seemingly never be allocated
12162 to the same register as the destination.
12163 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12165 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12167 * simplify-rtx.c (neg_const_int): Replace with...
12168 (neg_poly_int_rtx): ...this new function.
12169 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12170 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12171 (simplify_plus_minus): Likewise for constant terms here.
12173 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12175 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12176 HOST_WIDE_PRINT_UNSIGNED.
12178 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12180 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12183 2019-09-20 Maya Rashish <coypu@sdf.org>
12186 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12187 Define to speculation_safe_value_not_needed.
12189 2019-09-20 Richard Biener <rguenther@suse.de>
12190 Uros Bizjak <ubizjak@gmail.com>
12193 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12195 (general_scalar_chain::convert_op): Force not suitable memory
12196 operands to a register.
12198 2019-09-20 Richard Biener <rguenther@suse.de>
12200 PR tree-optimization/91821
12201 * tree-vect-loop.c (check_reduction_path): Check we can compute
12203 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12204 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12205 operands in canonical order.
12206 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12207 STMT_VINFO_REDUC_IDX.
12208 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12209 (STMT_VINFO_REDUC_IDX): Likewise.
12211 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12214 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12216 2019-09-20 Richard Biener <rguenther@suse.de>
12218 PR tree-optimization/91822
12219 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12221 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12222 for reduc_index in nested cycles, adjust vectorizable_condition
12224 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12226 (vect_analyze_stmt): Adjust.
12227 (vect_transform_stmt): Likewise.
12229 2019-09-20 Richard Biener <rguenther@suse.de>
12232 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12233 Ensure there's a sequence point between allocating the new register
12234 and passing a reference to a reg via regno_reg_rtx.
12236 2019-09-20 Martin Jambor <mjambor@suse.cz>
12238 * coretypes.h (cgraph_edge): Declare.
12239 * ipa-param-manipulation.c: Rewrite.
12240 * ipa-param-manipulation.h: Likewise.
12241 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12242 (OBJS): Added ipa-sra.o.
12243 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12244 and ref_p, added fields param_adjustments and performed_splits.
12245 (struct cgraph_clone_info): Remove ags_to_skip and
12246 combined_args_to_skip, new field param_adjustments.
12247 (cgraph_node::create_clone): Changed parameters to use
12248 ipa_param_adjustments.
12249 (cgraph_node::create_virtual_clone): Likewise.
12250 (cgraph_node::create_virtual_clone_with_body): Likewise.
12251 (tree_function_versioning): Likewise.
12252 (cgraph_build_function_type_skip_args): Removed.
12253 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12254 using ipa_param_adjustments.
12255 (clone_of_p): Likewise.
12256 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12257 (build_function_decl_skip_args): Likewise.
12258 (duplicate_thunk_for_node): Adjust parameters using
12259 ipa_param_body_adjustments, copy param_adjustments instead of
12261 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12262 (cgraph_node::create_virtual_clone): Likewise.
12263 (cgraph_node::create_version_clone_with_body): Likewise.
12264 (cgraph_materialize_clone): Likewise.
12265 (symbol_table::materialize_all_clones): Likewise.
12266 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12267 ipa_replace_map check.
12268 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12269 (initialize_node_lattices): Make aware that some parameters might have
12270 already been removed.
12271 (want_remove_some_param_p): New function.
12272 (create_specialized_node): Convert to using ipa_param_adjustments and
12273 deal with possibly pre-existing adjustments.
12274 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12275 (output_node_opt_summary): Do not stream removed fields. Stream
12276 parameter adjustments instead of argumetns to skip.
12277 (input_node_opt_summary): Likewise.
12278 (input_node_opt_summary): Likewise.
12279 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12280 * lto-streamer.h (lto_section_type): Likewise.
12281 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12283 (copy_decl_to_var): Declare.
12284 * tree-inline.c (update_clone_info): Do not remap old_tree.
12285 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12286 statements, walk all extra generated statements and remap their
12288 (redirect_all_calls): Add killed SSA names to a hash set.
12289 (remap_ssa_name): Do not remap killed SSA names.
12290 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12291 half of functionality moved to ipa_param_body_adjustments.
12292 (copy_decl_to_var): Make exported.
12293 (copy_body): Destroy killed_new_ssa_names hash set.
12294 (expand_call_inline): Remap performed splits.
12295 (update_clone_info): Likewise.
12296 (tree_function_versioning): Simplify tree_map processing. Updated to
12297 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12298 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12299 for the new interface.
12300 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12301 (simd_clone_compute_base_data_type): Likewise.
12302 (simd_clone_init_simd_arrays): Adjust for the new interface.
12303 (simd_clone_adjust_argument_types): Likewise.
12304 (struct modify_stmt_info): Likewise.
12305 (ipa_simd_modify_stmt_ops): Likewise.
12306 (ipa_simd_modify_function_body): Likewise.
12307 (simd_clone_adjust): Likewise.
12308 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12309 (type_internals_preclude_sra_p): Make public.
12310 * tree-sra.h: New file.
12311 * ipa-inline-transform.c (save_inline_function_body): Update to
12312 refelct new tree_function_versioning signature.
12313 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12314 ipa_param_adjustments to get current parameter indices.
12315 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12316 (ipcp_update_bits): Likewise.
12317 (ipcp_update_vr): Likewise.
12318 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12319 * ipa-sra.c: New file.
12320 * multiple_target.c (create_target_clone): Update to reflet new type
12321 of create_version_clone_with_body.
12322 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12323 tree_function_versioning.
12324 (modify_function): Update to reflect new type of
12325 tree_function_versioning.
12326 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12327 * passes.def: Remove old IPA-SRA and add new one.
12328 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12329 (make_pass_ipa_sra): Declare.
12330 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12332 * doc/invoke.texi (ipa-sra-max-replacements): New.
12334 2019-09-19 Martin Sebor <msebor@redhat.com>
12336 PR middle-end/91631
12337 * builtins.c (component_size): Correct trailing array computation,
12338 rename to component_ref_size and move...
12339 (compute_objsize): Adjust.
12340 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12341 (builtin_access::strict): Do not consider memmove.
12342 (builtin_access::write_off): New function.
12343 (builtin_memref::builtin_memref): Initialize refsize.
12344 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12346 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12348 (builtin_access::builtin_access): Initialize dstoff to destination
12349 refeence offset here instead of in maybe_diag_overlap. Adjust
12350 referencess even to unrelated objects. Adjust sizrange of bounded
12351 string functions to reflect bound. For strcat, adjust destination
12352 sizrange by that of source.
12353 (builtin_access::strcat_overlap): Adjust offsets and sizes
12354 to reflect the increase in destination sizrange above.
12355 (builtin_access::overlap): Do not set dstoff here but instead
12356 in builtin_access::builtin_access.
12357 (check_bounds_or_overlap): Use builtin_access::write_off.
12358 (maybe_diag_access_bounds): Add argument. Add informational notes.
12359 (dump_builtin_memref, dump_builtin_access): New functions.
12360 * tree.c (component_ref_size): ...to here.
12361 * tree.h (component_ref_size): Declare.
12362 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12363 nul in the size of the source string.
12365 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12368 * doc/cpp.texi: Document support for extended characters in
12370 * doc/cppopts.texi: Likewise.
12372 2019-09-19 Richard Biener <rguenther@suse.de>
12374 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12375 (check_reduction_path): New overload having the path as result.
12376 (vect_is_simple_reduction): From the detected reduction
12377 path build a SLP reduction chain if possible.
12379 2019-09-19 Richard Biener <rguenther@suse.de>
12382 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12383 Force operand to a register if it isn't nonimmediate_operand.
12385 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12387 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12388 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12389 (logical_op): Remove code attribute.
12390 (logical_OP): Likewise.
12392 2019-09-19 Martin Liska <mliska@suse.cz>
12394 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12395 Use proper casting.
12397 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12399 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12402 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12403 for NE comparison of TImode values.
12404 (aarch64_emit_load_exclusive): Add support for TImode.
12405 (aarch64_emit_store_exclusive): Likewise.
12406 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12407 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12408 Change iterator from ALLI to ALLI_TI.
12409 (@atomic_compare_and_swap<JUST_TI>): New.
12410 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12411 (aarch64_load_exclusive_pair): New.
12412 (aarch64_store_exclusive_pair): New.
12413 * config/aarch64/iterators.md (JUST_TI): New.
12415 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12416 strong_zero_p for aarch64_track_speculation; unify some code paths;
12417 use aarch64_gen_compare_reg instead of open-coding.
12419 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12420 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12421 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12422 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12423 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12424 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12425 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12426 (atomic_<atomic_op><ALLI>): Likewise.
12427 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12428 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12429 * doc/invoke.texi: Document -moutline-atomics.
12431 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12433 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12434 trivial predicate for condition branch.
12435 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12437 (compute_bb_predicates): Update predicate based on post-dominating
12439 (analyze_function_body): Calculate post-dominating information.
12441 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12443 * tree-vectorizer.h (vectorizable_condition): Take an int
12444 reduction index instead of a boolean flag.
12445 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12446 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12447 reductions if the reduction accumulator is the "then" rather
12448 than the "else" value.
12449 (vect_analyze_stmt): Update call accordingly.
12450 (vect_transform_stmt): Likewise.
12451 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12452 asserting that the index is > 0.
12454 2019-09-19 Martin Liska <mliska@suse.cz>
12456 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12457 (sort_congruence_classes_by_decl_uid): Likewise.
12458 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12460 (sem_item_optimizer::merge_classes): Likewise.
12462 2019-09-19 Richard Biener <rguenther@suse.de>
12464 PR tree-optimization/91812
12465 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12468 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12470 * defaults.h (TARGET_UNIT): New macro.
12471 (target_unit): New type.
12472 * rtl.h (native_encode_rtx, native_decode_rtx)
12473 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12474 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12475 * rtlanal.c (subreg_lsb_1): Delete.
12476 (subreg_size_lsb): New function.
12477 * simplify-rtx.c: Include rtx-vector-builder.h
12478 (simplify_immed_subreg): Delete.
12479 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12480 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12482 (simplify_subreg): Use them.
12483 (test_vector_subregs_modes, test_vector_subregs_repeating)
12484 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12485 (test_vector_subregs): New functions.
12486 (test_vector_ops): Call test_vector_subregs for integer vector
12487 modes with at least 2 elements.
12489 2019-09-19 Richard Biener <rguenther@suse.de>
12491 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12492 LOOP_VINFO_OPERANDS_SWAPPED.
12493 (parloops_is_simple_reduction): Likewise.
12494 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12495 initialize operands_swapped.
12496 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12497 (vect_is_slp_reduction): Do not swap operands.
12498 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12499 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12501 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12504 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12505 Add avx_partial_xmm_update.
12507 2019-09-18 Jim Wilson <jimw@sifive.com>
12510 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12511 (riscv_move_integer): Likewise.
12512 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12513 riscv_move_integer arg.
12514 (riscv_legitimize_move): Likewise.
12515 (riscv_force_temporary): New parameter in_splitter. Don't call
12517 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12519 (riscv_add_offset): Likewise.
12520 (riscv_split_symbol): New parameter in_splitter. Pass to
12521 riscv_force_temporary.
12522 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12524 (riscv_move_integer): New parameter in_splitter. New local
12525 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12527 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12528 riscv_split_symbol, and riscv_force_temporary args.
12529 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12530 riscv_move_integer arg.
12531 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12533 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12536 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12537 hard register store cost to 6.
12539 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12542 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12543 pseudo register store cost from 3 to 6 to make it the same as
12546 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12549 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12550 (one_cmpldi2): Likewise.
12551 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12552 of the constant parts is simple.
12553 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12554 (logical_op): Add new code attribute.
12555 (logical_OP): Likewise.
12556 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12557 (arm_iordi_operand): Add predicate.
12558 (arm_xordi_operand): Add predicate.
12560 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12562 * config/arm/arm.md (maddsidi4): Remove expander.
12563 (mulsidi3adddi): Remove pattern.
12564 (mulsidi3adddi_v6): Likewise.
12565 (mulsidi3_nov6): Likewise.
12566 (mulsidi3_v6): Likewise.
12567 (umulsidi3): Remove expander.
12568 (umulsidi3_nov6): Remove pattern.
12569 (umulsidi3_v6): Likewise.
12570 (umulsidi3adddi): Likewise.
12571 (umulsidi3adddi_v6): Likewise.
12572 (<Us>mulsidi3): Add combined expander.
12573 (<Us>maddsidi4): Likewise.
12574 (<US>mull): Add combined umull and smull pattern.
12575 (<US>mlal): Likewise.
12576 * config/arm/iterators.md (Us): Add new iterator.
12578 2019-09-18 Richard Biener <rguenther@suse.de>
12580 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12582 (vectorize_fold_left_reduction): Remove assert.
12583 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12584 operand in position 2. Remove assert.
12586 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12588 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12589 (smulsi3_highpart_nov6): Remove pattern.
12590 (smulsi3_highpart_v6): Likewise.
12591 (umulsi3_highpart): Likewise.
12592 (umulsi3_highpart_nov6): Likewise.
12593 (umulsi3_highpart_v6): Likewise.
12594 (<US>mull_high): Add new combined multiply pattern.
12596 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12598 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12599 (arm_mulsi3_v6): Likewise.
12600 (mulsi3addsi_v6): Likewise.
12601 (mulsi3subsi): Likewise.
12602 (mul): Add new multiply pattern.
12606 2019-09-18 Richard Biener <rguenther@suse.de>
12608 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12609 (parloops_valid_reduction_input_p): Copy from
12610 valid_reduction_input_p.
12611 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12612 (parloops_needs_fold_left_reduction_p): Copy from
12613 needs_fold_left_reduction_p.
12614 (parloops_is_simple_reduction): Copy from
12615 vect_is_simple_reduction.
12616 (parloops_force_simple_reduction): Copy from
12617 vect_force_simple_reduction.
12618 (gather_scalar_reductions): Adjust.
12619 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12620 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12622 2019-09-18 Richard Biener <rguenther@suse.de>
12624 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12625 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12627 (vect_create_epilog_for_reduction): Remove dead code.
12629 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12631 * varasm.c (assemble_real): Generate canonical const_ints.
12633 2019-09-18 Richard Biener <rguenther@suse.de>
12636 * lto-streamer-in.c (input_eh_regions): Move EH init to
12637 lto_materialize_function.
12638 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12641 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12643 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12646 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12648 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12649 of checking specifically for INTEGER_CST.
12651 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12653 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12654 sizes instead of uhwi sizes.
12656 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12658 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12659 (add_const_value_attribute): Handle CONST_POLY_INT.
12661 2019-09-18 Martin Liska <mliska@suse.cz>
12663 * dbgcnt.def (store_merging): New counter.
12664 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12665 Use it in store merging.
12667 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12669 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12671 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12672 * config/arm/arm.c (arm_sched_variable_issue): New function.
12673 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12675 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12677 * config/arm/types.md (no_reservation): New reservation.
12678 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12680 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12681 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12682 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12683 * config/arm/arm1020e.md (1020alu_op): Likewise.
12684 * config/arm/arm1026ejs.md (alu_op): Likewise.
12685 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12686 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12687 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12688 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12689 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12690 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12691 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12692 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12693 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12694 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12695 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12696 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12697 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12698 * config/arm/fa526.md (526_alu_op): Likewise.
12699 * config/arm/fa606te.md (606te_alu_op): Likewise.
12700 * config/arm/fa626te.md (626te_alu_op): Likewise.
12701 * config/arm/fa726te.md (726te_alu_op): Likewise.
12702 * config/arm/xgene1.md (xgene1_nop): Likewise.
12704 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12706 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12707 "no_insn" to "branch".
12709 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12711 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12713 2019-09-17 Richard Biener <rguenther@suse.de>
12716 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12717 was missing generate locations only once.
12719 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12722 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12724 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12725 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12726 for switch default case using range analysis information.
12728 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12731 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12732 mode attributed is supported by FDPIC.
12734 2019-09-17 Richard Biener <rguenther@suse.de>
12736 PR tree-optimization/91790
12737 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12738 use the correct DR for setting up realignment.
12740 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12743 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12744 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12745 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12746 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12748 2019-09-16 Jason Merrill <jason@redhat.com>
12750 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12752 2019-09-16 Martin Liska <mliska@suse.cz>
12754 * gimple-fold.c (or_comparisons_1): Remove rules moved
12756 * match.pd: ... here.
12758 2019-09-16 Martin Liska <mliska@suse.cz>
12760 * gimple-fold.c (or_comparisons_1): Remove rules
12762 * match.pd: ... here.
12764 2019-09-16 Martin Liska <mliska@suse.cz>
12766 * genmatch.c (dt_node::append_simplify): Do not print
12767 warning when we have duplicate patterns belonging
12768 to a same simplify rule.
12769 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12770 (maybe_fold_comparisons_from_match_pd): Handle
12771 tcc_comparison as a results.
12772 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12774 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12775 Qi Feng <ffengqi@linux.ibm.com>
12777 PR middle-end/88784
12778 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12779 (x > y && x == XXX_MIN): Optimize into 'false'.
12780 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12781 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12782 (x < y && x == XXX_MAX): Optimize into 'false'.
12783 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12784 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12785 (x <= y || x != XXX_MIN): Optimize into 'true'.
12786 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12787 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12788 (x >= y || x != XXX_MAX): Optimize into 'true'.
12789 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12791 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12792 Martin Liska <mliska@suse.cz>
12794 * gimple-fold.c (and_comparisons_1): Add type as first
12796 (and_var_with_comparison): Likewise.
12797 (and_var_with_comparison_1): Likewise.
12798 (or_comparisons_1): Likewise.
12799 (or_var_with_comparison): Likewise.
12800 (or_var_with_comparison_1): Likewise.
12801 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12802 (maybe_fold_or_comparisons): Likewise.
12803 (maybe_fold_comparisons_from_match_pd): New.
12804 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12805 (maybe_fold_or_comparisons): Likewise.
12806 * gimple.c (gimple_size): Make it public and add num_ops argument.
12807 (gimple_init): New function.
12808 (gimple_alloc): Call gimple_init.
12809 * gimple.h (gimple_size): New.
12810 (gimple_init): Likewise.
12811 * tree-if-conv.c (fold_or_predicates): Pass type.
12812 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12813 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12814 (optimize_vec_cond_expr): Likewise.
12815 (ovce_extract_ops): Return type of conditional expression.
12816 * tree-ssanames.c (init_ssa_name_imm_use): New.
12817 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12818 * tree-ssanames.h (init_ssa_name_imm_use): New.
12820 2019-09-16 Richard Biener <rguenther@suse.de>
12822 PR tree-optimization/91756
12823 PR tree-optimization/87132
12824 * tree-ssa-alias.h (enum translate_flags): New.
12825 (get_continuation_for_phi): Use it instead of simple bool flag.
12826 (walk_non_aliased_vuses): Likewise.
12827 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12828 (get_continuation_for_phi): When looking across backedges only
12829 disallow valueization.
12830 (walk_non_aliased_vuses): Adjust.
12831 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12834 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12836 PR middle-end/80791
12837 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12838 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12839 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12840 * target.def (have_count_reg_decr_p): New hook.
12841 (doloop_cost_for_generic): Likewise.
12842 (doloop_cost_for_address): Likewise.
12843 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12844 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12845 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12846 * doc/tm.texi: Regenerate.
12847 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12849 (record_group): Init doloop_p.
12850 (add_candidate_1): Add optional argument doloop, change the handlings
12852 (add_candidate): Likewise.
12853 (generic_predict_doloop_p): Update attribute.
12854 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12855 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12856 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12858 (get_computation_cost): Update for doloop IV cand extra cost.
12859 (determine_group_iv_cost_cond): Update for doloop IV cand.
12860 (determine_iv_cost): Likewise.
12861 (ivopts_estimate_reg_pressure): Likewise.
12862 (may_eliminate_iv): Update handlings for doloop IV cand.
12863 (add_iv_candidate_for_doloop): New function.
12864 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12865 (iv_ca_set_no_cp): Update for doloop IV cand.
12866 (iv_ca_set_cp): Likewise.
12867 (iv_ca_dump): Dump register cost.
12868 (find_doloop_use): New function.
12869 (analyze_and_mark_doloop_use): Likewise.
12870 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12872 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12874 PR middle-end/91708
12875 * cse.c (cse_insn): Do not replace anything with a
12878 2019-09-13 Ian Lance Taylor <iant@golang.org>
12880 * doc/invoke.texi (Optimize Options): Fix typo.
12882 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12884 PR tree-optimization/89386
12885 * config/i386/sse.md (smulhrs<mode>3): New expander.
12886 (smulhrsv4hi3): Ditto.
12888 2019-09-12 Richard Biener <rguenther@suse.de>
12890 PR tree-optimization/91750
12891 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12892 in the type of the evolution.
12894 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12896 PR tree-optimization/89386
12897 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12898 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12899 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12900 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12901 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12902 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12903 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12904 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12905 (su, r): Handle the unspecs above.
12906 (bt): New int attribute.
12907 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12908 * internal-fn.c (first_commutative_argument): Commutativity info for
12910 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12911 (umulhrs_optab): New optabs.
12912 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12913 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12914 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12916 (vect_vect_recog_func_ptrs): Add it.
12918 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12920 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12923 2019-09-11 Nathan Sidwell <nathan@acm.org>
12925 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12926 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12928 2019-09-11 Richard Biener <rguenther@suse.de>
12930 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12931 * lto-wrapper.c (merge_and_complain): Pick up -g.
12932 (append_compiler_options): Likewise.
12933 (run_gcc): Re-instantiate handling -g0 at link-time.
12934 * doc/invoke.texi (flto): Document debug info generation.
12936 2019-09-11 Richard Biener <rguenther@suse.de>
12938 PR tree-optimization/90387
12939 * vr-values.c (vr_values::extract_range_basic): After inlining
12940 simplify non-constant __builtin_constant_p to false.
12942 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
12944 PR rtl-optimization/89795
12945 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
12946 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
12948 2019-09-11 Jakub Jelinek <jakub@redhat.com>
12950 PR tree-optimization/91723
12951 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
12952 instead of pointer equality when checking if argument vectypes are
12955 PR middle-end/91725
12956 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
12957 of get_nonzero_bits, only call it for integral types.
12959 2019-09-11 Richard Biener <rguenther@suse.de>
12962 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12964 * match.pd: Add flag_unsafe_math_optimizations check
12965 before deciding on the widest type in a binary math operation.
12967 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
12969 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
12970 and CALL_REALLY_USED_REGISTERS must be defined, and that
12971 CALL_REALLY_USED_REGISTERS is preferred.
12972 * doc/tm.texi: Regenerate.
12973 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
12974 (call_really_used_regs): Likewise.
12975 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
12976 CALL_REALLY_USED_REGISTERS are defined.
12977 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
12978 initial value if defined.
12979 (initial_call_really_used_regs): Delete.
12980 (saved_call_really_used_regs): Likewise.
12981 (CALL_REALLY_USED_REGNO_P): Likewise.
12982 (init_reg_sets): Remove handling of call_really_used_regs.
12983 (save_register_info, restore_register_info, globalize_reg): Likewise.
12984 (init_reg_sets_1): Likewise. Use call_used_regs instead of
12985 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
12986 outside operand_reg_set.
12987 (fix_register): Don't change call_used_regs if
12988 CALL_REALLY_USED_REGISTERS is defined.
12989 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
12990 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
12991 instead of call_really_used_regs.
12992 (csky_conditional_register_usage): Remove the old handling of
12993 call_used_regs and change the handling of call_really_used_regs
12994 to use call_used_regs instead.
12995 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
12996 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
12997 making a register fixed.
12998 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
12999 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13000 instead of call_really_used_regs.
13001 (m32r_conditional_register_usage): Don't set call_used_regs when
13002 making a register fixed.
13003 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13004 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13005 instead of call_really_used_regs.
13006 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13007 (mips_cfun_call_saved_reg_p): Likewise.
13008 (mips_swap_registers): Remove the old handling of call_used_regs
13009 and change the handling of call_really_used_regs to use call_used_regs
13011 (mips_conditional_register_usage): Likewise.
13012 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13013 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13014 instead of call_really_used_regs.
13015 (mn10300_get_live_callee_saved_regs): Likewise.
13016 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13017 (mn10300_conditional_register_usage): Don't set call_used_regs when
13018 making a register fixed.
13019 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13020 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13021 Remove the old handling of call_used_regs and change the handling
13022 of call_really_used_regs to use call_used_regs instead.
13023 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13024 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13025 instead of call_really_used_regs.
13026 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13027 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13028 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13029 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13030 (s390_conditional_register_usage): Remove the old handling of
13031 call_used_regs and change the handling of call_really_used_regs
13032 to use call_used_regs instead.
13033 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13034 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13035 (sh_fix_range, reg_unused_after): Likewise.
13036 (sh_conditional_register_usage): Remove the old handling of
13037 call_used_regs and change the handling of call_really_used_regs
13038 to use call_used_regs instead.
13039 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13040 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13041 call_used_regs when making a register fixed.
13042 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13043 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13044 call_used_regs when making a register fixed.
13045 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13046 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13047 set call_used_regs when making a register fixed.
13048 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13049 * config/visium/visium.c (visium_conditional_register_usage): Remove
13050 the old handling of call_used_regs and change the handling of
13051 call_really_used_regs to use call_used_regs instead.
13053 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13055 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13056 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13057 * reginfo.c (call_used_regs): New macro.
13059 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13061 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13063 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13064 (bpf_expand_epilogue): Likewise.
13065 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13066 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13067 (ft32_expand_epilogue): Likewise.
13068 * config/i386/i386.c (ix86_save_reg): Likewise.
13069 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13070 (moxie_expand_epilogue): Likewise.
13071 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13072 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13073 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13075 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13077 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13078 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13079 instead of testing call_used_regs directly.
13080 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13081 (aarch64_components_for_bb): Likewise.
13082 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13083 * config/arc/arc.c (arc_must_save_register): Likewise.
13084 (arc_epilogue_uses): Likewise.
13085 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13086 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13087 (arm_compute_save_reg0_reg12_mask): Likewise.
13088 (arm_compute_save_core_reg_mask): Likewise.
13089 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13090 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13091 (cmse_nonsecure_entry_clear_before_return): Likewise.
13092 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13093 (arm_expand_epilogue): Likewise.
13094 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13095 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13096 (_reg_unused_after): Likewise.
13097 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13098 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13099 (add_to_reg, hwloop_optimize): Likewise.
13100 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13101 (bpf_expand_epilogue): Likewise.
13102 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13103 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13104 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13105 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13106 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13107 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13108 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13109 * config/frv/frv.c (frv_stack_info): Likewise.
13110 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13111 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13112 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13113 (move_callee_saved_registers): Likewise.
13114 * config/h8300/h8300.c (byte_reg): Likewise.
13115 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13116 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13117 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13118 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13119 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13120 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13121 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13122 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13123 * config/m32c/m32c.c (need_to_save): Likewise.
13124 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13125 * config/mcore/mcore.c (calc_live_regs): Likewise.
13126 * config/microblaze/microblaze.c (microblaze_must_save_register):
13128 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13129 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13130 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13131 (mmix_expand_epilogue): Likewise.
13132 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13133 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13134 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13135 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13136 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13137 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13138 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13139 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13140 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13141 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13142 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13143 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13144 * config/rl78/rl78.c (need_to_save): Likewise.
13145 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13146 (rs6000_stack_info, generate_set_vrsave): Likewise.
13147 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13148 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13149 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13150 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13151 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13152 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13153 (save_local_or_in_reg_p): Likewise.
13154 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13155 (xstormy16_epilogue_uses): Likewise.
13156 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13157 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13158 * config/v850/v850.c (compute_register_save_size): Likewise.
13159 * config/vax/vax.c (vax_expand_prologue): Likewise.
13160 * config/visium/visium.c (visium_save_reg_p): Likewise.
13161 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13162 * cselib.c (cselib_process_insn): Likewise.
13163 * df-scan.c (df_get_entry_block_def_set): Likewise.
13164 * function.c (aggregate_value_p): Likewise.
13165 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13166 * ira-lives.c (process_bb_node_lives): Likewise.
13167 * ira.c (do_reload): Likewise.
13168 * lra-lives.c (process_bb_lives): Likewise.
13169 * lra-remat.c (lra_remat): Likewise.
13170 * lra.c (lra): Likewise.
13171 * postreload.c (reload_combine_recognize_pattern): Likewise.
13172 (reload_cse_move2add): Likewise.
13173 * recog.c (peep2_find_free_register): Likewise.
13174 * regrename.c (check_new_reg_p): Likewise.
13175 * reload.c (find_equiv_reg): Likewise.
13176 * reload1.c (reload, find_reg): Likewise.
13177 * sel-sched.c (init_hard_regs_data): Likewise.
13179 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13181 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13182 regs_invalidated_by_call & ~fixed_reg_set instead of
13183 call_used_or_fixed_regs & ~fixed_reg_set.
13184 * config/sh/sh.c (output_stack_adjust): Likewise.
13186 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13188 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13189 (call_used_reg_set): Delete.
13190 (call_used_or_fixed_regs): New macro.
13191 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13192 of call_used_reg_set.
13193 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13194 instead of call_used_regs.
13195 (save_call_clobbered_regs): Likewise.
13196 * cfgcleanup.c (old_insns_match_p): Likewise.
13197 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13198 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13200 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13201 * config/sh/sh.c (output_stack_adjust): Likewise.
13202 * final.c (collect_fn_hard_reg_usage): Likewise.
13203 * ira-build.c (ira_build): Likewise.
13204 * ira-color.c (calculate_saved_nregs): Likewise.
13205 (allocno_reload_assign, calculate_spill_cost): Likewise.
13206 * ira-conflicts.c (ira_build_conflicts): Likewise.
13207 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13208 * ira-lives.c (process_bb_node_lives): Likewise.
13209 * ira.c (setup_reg_renumber): Likewise.
13210 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13211 * lra-constraints.c (need_for_call_save_p): Likewise.
13212 (need_for_split_p, inherit_in_ebb): Likewise.
13213 * lra-lives.c (process_bb_lives): Likewise.
13214 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13215 * postreload.c (reload_combine): Likewise.
13216 * regrename.c (find_rename_reg): Likewise.
13217 * reload1.c (reload_as_needed): Likewise.
13218 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13219 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13220 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13222 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13224 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13225 (no_caller_save_reg_set): Delete.
13226 * caller-save.c (init_caller_save): Don't initialize it.
13227 * ira-conflicts.c (ira_build_conflicts): Calculate
13228 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13230 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13232 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13233 (target_hard_regs::x_savable_regs): New field.
13234 (call_fixed_reg_set): Delete.
13235 (savable_regs): New macro,
13236 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13237 (init_reg_sets_1): Likewise. Initialize savable_regs.
13238 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13239 for all registers. Set savable_regs instead of call_fixed_reg_set.
13240 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13241 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13242 * config/sh/sh.c (output_stack_adjust): Likewise.
13244 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13246 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13247 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13248 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13250 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13252 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13253 * rtlanal.c (get_call_rtx_from): Likewise.
13254 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13255 than the pattern to get_call_rtx_from.
13256 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13257 an rtx_insn * instead of an rtx.
13258 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13260 2019-09-10 Martin Liska <mliska@suse.cz>
13262 * common.opt: Use newly added WarnRemoved.
13263 * config/aarch64/aarch64.opt: Likewise.
13264 * config/arm/arm.opt: Likewise.
13265 * config/i386/i386.opt: Likewise.
13266 * config/ia64/ia64.opt: Likewise.
13267 * config/rs6000/rs6000.opt: Likewise.
13268 * doc/options.texi: Document WarnRemoved properly.
13269 * dwarf2out.c (gen_producer_string): Handle renamed
13270 OPT_SPECIAL_warn_removed.
13271 * lto-opts.c (lto_write_options): Likewise.
13272 * lto-wrapper.c (merge_and_complain): Likewise.
13273 * opts-common.c (decode_cmdline_option): Likewise.
13274 (prune_options): Likewise.
13275 (read_cmdline_option): Likewise.
13276 (control_warning_option): Likewise.
13277 * opts.c (print_filtered_help): Likewise.
13278 * optc-gen.awk: Parse for WarnRemoved and make usage
13279 of Deprecated an error.
13280 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13282 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13284 * doc/install.texi: Fix syntax for html generation.
13286 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13288 PR middle-end/91680
13289 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13290 the shift type to type.
13292 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13294 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13296 (stack_protect_combined_test_insn): Likewise.
13298 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13299 Mickaël Guêné <mickael.guene@st.com>
13301 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13302 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13303 (load_tp_soft_fdpic): New pattern.
13304 (load_tp_soft): Disable in FDPIC mode.
13306 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13307 Mickaël Guêné <mickael.guene@st.com>
13309 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13310 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13311 (arm_call_tls_get_addr): Add FDPIC support.
13312 (legitimize_tls_address): Likewise.
13313 (arm_emit_tls_decoration): Likewise.
13315 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13316 Mickaël Guêné <mickael.guene@st.com>
13318 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13320 (arm_trampoline_init): Likewise.
13321 (arm_trampoline_adjust_address): Likewise.
13322 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13324 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13325 Mickaël Guêné <mickael.guene@st.com>
13327 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13328 (legitimize_pic_address): Enforce binding rules on function
13329 pointers in FDPIC mode.
13330 (arm_assemble_integer): Likewise.
13332 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13333 Mickaël Guêné <mickael.guene@st.com>
13335 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13336 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13339 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13340 Mickaël Guêné <mickael.guene@st.com>
13342 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13345 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13346 Mickaël Guêné <mickael.guene@st.com>
13348 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13350 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13352 * config/arm/arm.c (arm_option_override): Define pic register to
13354 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13355 have no decl or go through PLT.
13356 (calculate_pic_address_constant): New function.
13357 (legitimize_pic_address): Call calculate_pic_address_constant.
13358 (arm_load_pic_register): Handle TARGET_FDPIC.
13359 (arm_is_segment_info_known): New function.
13360 (arm_pic_static_addr): Add support for FDPIC.
13361 (arm_load_function_descriptor): New function.
13362 (arm_emit_call_insn): Add support for FDPIC.
13363 (arm_assemble_integer): Add support for FDPIC.
13364 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13365 Define. (FDPIC_REGNUM): New define.
13366 * config/arm/arm.md (call): Add support for FDPIC.
13367 (call_value): Likewise.
13368 (restore_pic_register_after_call): New pattern.
13369 (untyped_call): Disable if FDPIC.
13370 (untyped_return): Likewise.
13371 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13373 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13374 Mickaël Guêné <mickael.guene@st.com>
13376 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13377 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13378 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13379 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13380 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13381 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13382 * config/arm/uclinuxfdpiceabi.h: New file.
13384 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13386 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13388 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13389 Mickaël Guêné <mickael.guene@st.com>
13391 * config/arm/arm.opt: Add -mfdpic option.
13392 * doc/invoke.texi: Add documentation for -mfdpic.
13394 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13396 * expmed.c (extract_bit_field): Update function comment
13398 * expr.c (expand_expr_real): Update function comment
13400 (expand_misaligned_mem_ref): New helper function.
13401 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13402 Remove duplicate assignment to "base" at case MEM_REF.
13403 Remove a shadowed variable "unsignedp" at case VCE.
13405 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13407 * regset.h (regs_invalidated_by_call_regset): Delete.
13408 (fixed_reg_set_regset): Likewise.
13409 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13410 (fixed_reg_set_regset, persistent_obstack): Likewise.
13411 (init_reg_sets_1, globalize_reg): Update accordingly.
13412 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13413 instead of a bitmap.
13414 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13415 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13416 instead of regs_invalidated_by_call_regset.
13417 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13418 * df-scan.c (df_scan_start_dump): Likewise.
13419 * dse.c (copy_fixed_regs): Likewise.
13420 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13422 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13424 * array-traits.h: New file.
13425 * coretypes.h (array_traits, bitmap_view): New types.
13426 * bitmap.h: Include "array-traits.h"
13427 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13428 (base_bitmap_view, bitmap_view): New classes.
13429 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13430 * hard-reg-set.h: Include array-traits.h.
13431 (array_traits<HARD_REG_SET>): New struct.
13432 * regset.h (IOR_REG_SET_HRS): New macro.
13433 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13434 rather than iterating over each hard register.
13435 * sched-deps.c (sched_analyze_insn): Likewise.
13436 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13438 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13440 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13441 instead of a HARD_REG_SET *.
13442 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13443 (ira_build): Update call accordingly.
13444 * ira-emit.c (add_range_and_copies_from_move_list): 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 (hard_reg_set_equal_p): Delete.
13451 * cfgcleanup.c (old_insns_match_p): Use == instead of
13452 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13453 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13454 (add_allocno_hard_regs_to_forest): Likewise.
13455 (setup_allocno_available_regs_num): Likewise.
13456 * ira.c (setup_pressure_classes): Likewise.
13457 (setup_allocno_and_important_classes): Likewise.
13458 (setup_reg_class_relations): Likewise.
13459 * lra-lives.c (process_bb_lives): Likewise.
13460 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13462 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13464 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13465 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13466 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13467 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13469 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13470 * ira.c (setup_reg_renumber): Likewise.
13471 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13472 * regrename.c (regrename_find_superclass): Likewise.
13473 * reload1.c (find_reg): Likewise.
13475 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13477 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13478 * caller-save.c (setup_save_areas): Use "&~" instead of
13479 AND_COMPL_HARD_REG_SET.
13480 (save_call_clobbered_regs): Likewise.
13481 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13483 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13484 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13485 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13486 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13487 (mips_conditional_register_usage): Likewise.
13488 * config/sh/sh.c (output_stack_adjust): Likewise.
13489 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13490 (setup_profitable_hard_regs): Likewise.
13491 (get_conflict_and_start_profitable_regs): Likewise.
13492 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13493 (ira_build_conflicts): Likewise.
13494 * ira-costs.c (restrict_cost_classes): Likewise.
13495 (setup_regno_cost_classes_by_aclass): Likewise.
13496 * ira-lives.c (process_bb_node_lives): Likewise.
13497 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13498 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13499 (setup_allocno_and_important_classes, setup_class_translate_array)
13500 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13502 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13503 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13504 (process_alt_operands, inherit_in_ebb): Likewise.
13505 * lra-eliminations.c (update_reg_eliminate): Likewise.
13506 * lra-lives.c (process_bb_lives): Likewise.
13507 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13508 * resource.c (find_dead_or_set_registers): Likewise.
13509 (mark_target_live_regs): Likewise.
13510 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13511 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13512 (implicit_clobber_conflict_p): Likewise.
13513 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13514 (try_shrink_wrapping): Likewise.
13516 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13518 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13519 (HARD_REG_SET::operator|=): Likewise.
13520 (IOR_HARD_REG_SET): Delete.
13521 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13523 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13524 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13525 * final.c (collect_fn_hard_reg_usage): Likewise.
13526 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13527 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13528 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13529 (propagate_some_info_from_allocno): Likewise.
13530 (copy_info_to_removed_store_destinations): Likewise.
13531 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13532 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13533 (fast_allocation): Likewise.
13534 * ira-conflicts.c (ira_build_conflicts): Likewise.
13535 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13536 (process_bb_node_lives): Likewise.
13537 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13538 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13539 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13540 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13541 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13542 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13543 (process_bb_lives): Likewise.
13544 * lra-spills.c (assign_spill_hard_regs): Likewise.
13545 * postreload.c (reload_combine): Likewise.
13546 * reginfo.c (init_reg_sets_1): Likewise.
13547 * regrename.c (merge_overlapping_regs, find_rename_reg)
13548 (merge_chains): Likewise.
13549 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13550 (find_reload_regs, finish_spills, choose_reload_regs_init)
13551 (emit_reload_insns): Likewise.
13552 * reorg.c (redundant_insn): Likewise.
13553 * resource.c (find_dead_or_set_registers, mark_set_resources)
13554 (mark_target_live_regs): Likewise.
13555 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13556 * sched-deps.c (sched_analyze_insn): Likewise.
13557 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13558 (find_best_reg_for_expr): Likewise.
13559 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13561 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13563 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13564 (HARD_REG_SET::operator&): Likewise.
13565 (AND_HARD_REG_SET): Delete.
13566 * caller-save.c (setup_save_areas): Use "&" instead of
13568 (save_call_clobbered_regs): Likewise.
13569 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13570 * config/m32c/m32c.c (reduce_class): Likewise.
13571 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13572 * final.c (get_call_reg_set_usage): Likewise.
13573 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13574 (setup_left_conflict_sizes_p): Likewise.
13575 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13576 (ira_build_conflicts): Likewise.
13577 * ira-costs.c (restrict_cost_classes): Likewise.
13578 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13579 (setup_reg_class_relations): Likewise.
13580 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13581 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13582 * resource.c (find_dead_or_set_registers): Likewise.
13583 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13585 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13587 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13588 (COMPL_HARD_REG_SET): Delete.
13589 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13590 of COMPL_HARD_REG_SET.
13591 (try_rename_operands): Likewise.
13592 * config/sh/sh.c (push_regs): Likewise.
13593 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13594 * lra-constraints.c (contains_reg_p): Likewise.
13595 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13597 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13599 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13600 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13601 of COPY_HARD_REG_SET.
13602 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13603 (epiphany_conditional_register_usage): Likewise.
13604 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13605 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13606 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13607 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13608 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13609 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13610 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13611 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13612 * config/sh/sh.c (output_stack_adjust): Likewise.
13613 * final.c (collect_fn_hard_reg_usage): Likewise.
13614 (get_call_reg_set_usage): Likewise.
13615 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13616 (ira_flattening): Likewise.
13617 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13618 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13619 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13620 (ira_reassign_pseudos): Likewise.
13621 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13622 (ira_build_conflicts): Likewise.
13623 * ira-costs.c (restrict_cost_classes): Likewise.
13624 (setup_regno_cost_classes_by_aclass): Likewise.
13625 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13626 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13627 (setup_stack_reg_pressure_class, setup_pressure_classes)
13628 (setup_allocno_and_important_classes, setup_class_translate_array)
13629 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13630 (ira_setup_eliminable_regset): Likewise.
13631 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13632 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13633 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13634 (process_alt_operands, inherit_in_ebb): Likewise.
13635 * lra-lives.c (process_bb_lives): Likewise.
13636 * lra-spills.c (assign_spill_hard_regs): Likewise.
13637 * lra.c (lra): Likewise.
13638 * mode-switching.c (new_seginfo): Likewise.
13639 * postreload.c (reload_combine): Likewise.
13640 * reg-stack.c (straighten_stack): Likewise.
13641 * reginfo.c (save_register_info, restore_register_info): Likewise.
13642 (init_reg_sets_1, record_subregs_of_mode): Likewise
13643 * regrename.c (create_new_chain, rename_chains): Likewise.
13644 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13645 (find_reload_regs): Likewise.
13646 * resource.c (find_dead_or_set_registers): Likewise.
13647 (mark_target_live_regs): Likewise.
13648 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13650 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13652 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13653 (note_pattern_stores): Declare.
13654 (note_stores): Take an rtx_insn *.
13655 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13656 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13657 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13658 (note_stores): Take an rtx_insn * as argument and process
13659 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13660 (note_pattern_stores): ...this.
13661 (find_first_parameter_load): Pass the insn rather than
13662 its pattern to note_stores.
13663 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13664 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13665 (insert_one_insn): Likewise.
13666 * combine.c (combine_instructions): Likewise.
13667 (likely_spilled_retval_p): Likewise.
13668 (try_combine): Use note_pattern_stores instead of note_stores.
13669 (record_dead_and_set_regs): Pass the insn rather than its pattern
13671 (reg_dead_at_p): Likewise.
13672 * config/bfin/bfin.c (workaround_speculation): Likewise.
13673 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13674 rather than an rtx.
13675 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13676 instead of note_stores.
13677 (frv_optimize_membar_local): Pass the insn rather than its pattern
13679 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13680 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13681 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13682 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13683 (mips_reorg_process_insns): Likewise.
13684 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13685 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13687 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13688 its pattern to note_stores.
13689 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13691 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13692 the insn to note_stores.
13693 (prescan_insns_for_dce): Update call accordingly.
13694 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13696 * df-problems.c (can_move_insns_across): Likewise.
13697 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13698 * function.c (assign_parm_setup_reg): Likewise.
13699 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13700 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13701 (single_set_gcse): Likewise.
13702 * ira.c (validate_equiv_mem): Likewise.
13703 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13705 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13706 pattern to note_stores.
13707 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13708 * loop-iv.c (simplify_using_initial_values): Likewise.
13709 * mode-switching.c (optimize_mode_switching): Likewise.
13710 * optabs.c (emit_libcall_block_1): Likewise.
13711 (expand_atomic_compare_and_swap): Likewise.
13712 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13713 (record_opr_changes): Likewise. Remove explicit handling of
13714 CALL_INSN_FUNCTION_USAGE.
13715 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13716 * regcprop.c (kill_clobbered_values): Likewise.
13717 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13719 * regrename.c (build_def_use): Likewise.
13720 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13721 for mark_not_eliminable.
13722 (reload_as_needed): Pass the insn rather than its pattern
13724 (emit_output_reload_insns): Likewise.
13725 * resource.c (mark_target_live_regs): Likewise.
13726 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13727 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13728 instead of note_stores.
13729 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13730 its pattern to note_stores.
13731 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13732 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13734 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13736 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13737 than a #define. Use a structure rather than an array as the
13738 fallback definition. Remove special cases for low array sizes.
13739 (const_hard_reg_set): New typedef.
13740 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13741 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13742 (hard_reg_set_empty_p): Likewise.
13743 (SET_HARD_REG_BIT): Use a function rather than a macro to
13744 handle the case in which HARD_REG_SET is a structure.
13745 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13746 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13747 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13748 (IOR_COMPL_HARD_REG_SET): Likewise.
13749 (hard_reg_set_iterator::pset): Constify the pointer target.
13750 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13751 of a "const HARD_REG_SET". Update the handling of non-integer
13753 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13754 * reload.h: Likewise.
13755 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13756 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13757 of a "const HARD_REG_SET".
13758 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13759 (range_in_hard_reg_set_p): Likewise.
13760 * ira-costs.c (restrict_cost_classes): Likewise.
13761 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13762 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13763 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13764 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13765 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13766 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13767 take an unsigned int and open-code the HARD_REG_SET operations.
13769 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13771 * Makefile.in (OBJS): Remove bt-load.o.
13772 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13773 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13774 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13775 document that the option no longer does anything.
13776 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13777 * target.def (branch_target_register_class): Delete.
13778 (branch_target_register_callee_saved): Likewise.
13779 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13780 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13781 * doc/tm.texi: Regenerate.
13782 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13783 (make_pass_branch_target_load_optimize2): Likewise.
13784 * passes.def (pass_branch_target_load_optimize1): Likewise.
13785 (pass_branch_target_load_optimize2): Likewise.
13786 * targhooks.h (default_branch_target_register_class): Likewise.
13787 * targhooks.c (default_branch_target_register_class): Likewise.
13788 * opt-suggestions.c (test_completion_valid_options): Remove
13789 -fbtr-bb-exclusive from the list of test options.
13790 * bt-load.c: Remove.
13792 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13794 * match.pd: Add flag_unsafe_math_optimizations check
13795 before deciding on the widest type in a binary math operation.
13797 2019-09-09 Martin Liska <mliska@suse.cz>
13799 * config/i386/i386.opt: Update comment of removed
13800 options that are preserved only for backward
13803 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13806 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13807 instead of __v16qs.
13810 * config/i386/avxintrin.h (__v32qs): New typedef.
13811 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13812 instead of __v32qi.
13814 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13816 * doc/invoke.texi (Option Summary): Cover eBPF.
13817 (eBPF Options): New section.
13818 * doc/extend.texi (BPF Built-in Functions): Likewise.
13819 (BPF Kernel Helpers): Likewise.
13821 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13823 * config.gcc: Support for bpf-*-* targets.
13824 * common/config/bpf/bpf-common.c: New file.
13825 * config/bpf/t-bpf: Likewise.
13826 * config/bpf/predicates.md: Likewise.
13827 * config/bpf/constraints.md: Likewise.
13828 * config/bpf/bpf.opt: Likewise.
13829 * config/bpf/bpf.md: Likewise.
13830 * config/bpf/bpf.h: Likewise.
13831 * config/bpf/bpf.c: Likewise.
13832 * config/bpf/bpf-protos.h: Likewise.
13833 * config/bpf/bpf-opts.h: Likewise.
13834 * config/bpf/bpf-helpers.h: Likewise.
13835 * config/bpf/bpf-helpers.def: Likewise.
13837 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13839 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13842 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13844 * opt-functions.awk (integer_range_info): Make sure values are in
13845 numeric context before operating with them.
13847 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13849 * genemit.c (gen_split): Print the filename and line number where the
13850 splitter (or peephole2) was defined, to the dump file.
13852 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13854 PR tree-optimization/91665
13855 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13856 incompatible with the type of PHI result.
13858 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13861 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13862 gen_unaligned_storedi for 4-byte aligned addresses.
13864 2019-09-06 Jim Wilson <jimw@sifive.com>
13866 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13869 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13871 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13873 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13875 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13876 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13878 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13881 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13882 cost of SSE->integer and integer->SSE moves from 2 to 6.
13883 (core_cost): Ditto.
13885 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13887 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13888 before testing TYPE_TRANSPARENT_AGGR.
13889 * calls.c (initialize_argument_information, load_register_parameters):
13892 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13894 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13896 (cmp_ior): Likewise.
13898 2019-09-06 Martin Liska <mliska@suse.cz>
13900 * doc/match-and-simplify.texi: Separate tuples with ;.
13902 2019-09-06 Martin Liska <mliska@suse.cz>
13905 * Makefile.in: Remove tlink.o.
13906 * collect2.c (do_link): New function isolated
13909 * collect2.h (do_tlink): Remove declaration of do_tlink.
13910 * doc/extend.texi: Remove documentation of -frepo.
13911 * doc/invoke.texi: Likewise.
13912 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13915 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13916 Jim Wilson <jimw@sifive.com>
13919 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13920 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13921 paradoxical_subreg_p (operands[0]).
13922 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13923 use as intermediate value.
13925 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13927 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13928 (sync_compare_and_swap<mode>_insn): Likewise.
13930 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13932 PR middle-end/91615
13933 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13934 without movmisalign optab.
13936 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13938 PR middle-end/91001
13939 PR middle-end/91105
13940 PR middle-end/91106
13941 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
13942 types, use type of their first field instead of type of
13943 args[i].tree_value.
13945 2019-09-05 Richard Biener <rguenther@suse.de>
13947 PR rtl-optimization/91656
13948 * postreload-gcse.c (record_last_mem_set_info): Revert addition
13951 2019-09-05 Richard Biener <rguenther@suse.de>
13953 PR middle-end/90501
13954 * tree-inline.c (declare_return_variable): Mark the return
13955 slot as addressable after building an address of it.
13957 2019-09-05 Arnaud Charlet <charlet@adacore.com>
13959 * doc/install.texi: Update and clarify requirements to build GNAT.
13961 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
13963 PR middle-end/91577
13964 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
13965 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
13966 call to be in memory.
13967 (pass_expand::execute): Call discover_nonconstant_array_refs before
13968 setting currently_expanding_to_rtl.
13970 2019-09-04 Caroline Tice <cmtice@google.com>
13972 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
13973 specified together.
13975 2019-09-04 Marek Polacek <polacek@redhat.com>
13977 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
13979 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
13982 * config/i386/i386.c (inline_secondary_memory_needed): Return true
13983 for QI and HImode moves between SSE and general registers.
13985 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13988 * doc/invoke.texi: Document -Wenum-conversion.
13990 2019-09-04 Richard Biener <rguenther@suse.de>
13992 PR rtl-optimization/36262
13993 * postreload-gcse.c: Include intl.h and gcse.h.
13994 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
13995 to avoid linear list walk.
13996 (record_last_mem_set_info): Gate off if not computing transparentness.
13997 (get_bb_avail_insn): If transparentness isn't computed give up
13999 (gcse_after_reload_main): Skip compute_transp and extended PRE
14000 if gcse_or_cprop_is_too_expensive says so.
14002 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14004 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14006 (msp430_select_section): Handle decls with the "noinit" attribute with
14007 default_elf_select_section.
14008 Handle SECCAT_RODATA_MERGE_* section types with
14009 default_elf_select_section.
14010 Add comments about handling of unsupported section types.
14011 (msp430_section_type_flags): Remove handling of the noinit section.
14013 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14015 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14016 conflicting msp430-specific attributes.
14017 (msp430_section_attr): Likewise.
14018 Add warnings about conflicts with generic "noinit" and "section"
14020 Fix grammar in -mlarge error message.
14021 (msp430_data_attr): Rename to msp430_persist_attr.
14022 Add warnings about conflicts with generic "noinit" and "section"
14024 Add warning for when variable is not initialized.
14025 Chain conditionals which prevent the attribute being added.
14026 (ATTR_EXCL): New helper.
14027 (attr_reent_exclusions): New exclusion table.
14028 (attr_naked_exclusions): Likewise.
14029 (attr_crit_exclusions): Likewise.
14030 (attr_lower_exclusions): Likewise.
14031 (attr_upper_exclusions): Likewise.
14032 (attr_either_exclusions): Likewise.
14033 (attr_persist_exclusions): Likewise.
14034 (msp430_attribute_table): Update with exclusion rules.
14035 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14038 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14040 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14041 (msp430_handle_generic_attribute): New function.
14042 * doc/tm.texi: Regenerate.
14043 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14044 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14045 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14046 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14048 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14050 PR tree-optimization/91504
14051 * match.pd: Add ((~a & b) ^a) --> (a | b).
14053 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14056 * config/i386/i386-expand.c (split_double_mode): If there is more than
14057 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14058 already split matching MEM operand instead of calling adjust_address
14061 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14063 * config.gcc: Obsolete spu target. Remove references to spu.
14064 * configure.ac: Remove references to spu.
14065 * configure: Regenerate.
14066 * config/spu/: Remove directory.
14067 * common/config/spu/: Remove directory.
14069 * doc/extend.texi: Remove references to spu.
14070 * doc/invoke.texi: Likewise.
14071 * doc/md.texi: Likewise.
14072 * doc/sourcebuild.texi: Likewise.
14074 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14076 PR middle-end/91603
14077 PR middle-end/91612
14078 PR middle-end/91613
14079 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14080 and SSA_NAME referring to CONSTANT_P correctly.
14082 2019-09-03 Richard Biener <rguenther@suse.de>
14084 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14085 (vn_nary_op_insert): Likewise.
14086 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14087 (vn_nary_op_lookup): Likewise.
14088 (vn_nary_op_insert): Likewise.
14090 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14092 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14093 (*op0, 1) instead of XEXP (*op1, 0).
14095 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14097 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14098 (aarch64_fjcvtzs): New define_insn.
14099 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14100 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14102 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14103 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14104 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14105 __ARM_FEATURE_JCVT where appropriate.
14106 * config/aarch64/arm_acle.h (__jcvt): Define.
14108 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14110 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14111 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14112 (aarch64_<frintnzs_op><mode>): New define_insn.
14113 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14114 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14115 __ARM_FEATURE_FRINT when appropriate.
14116 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14117 frint32x, frint64z, frint64x.
14118 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14119 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14120 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14121 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14122 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14123 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14124 * config/aarch64/iterators.md (VSFDF): Define.
14125 (FRINTNZX): Likewise.
14126 (frintnzs_op): Likewise.
14128 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14130 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14131 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14133 * config/aarch64/aarch64-tune.md: Regenerated.
14134 * doc/invoke.texi: Document the new processors.
14136 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14138 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14142 (sve2-sm4): Likewise.
14143 (sveaes): Likewise.
14144 (svesha3): Likewise.
14145 (svebitperm): Likewise.
14147 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14148 Richard Biener <rguenther@suse.de>
14150 PR tree-optimization/91597
14151 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14152 BIT_AND_EXPR optimization for pointers, even if both operand
14153 ranges don't include NULL, the result can be NULL.
14155 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14157 PR middle-end/91605
14158 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14159 (non_mem_decl_p): ...this.
14160 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14161 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14162 unconditionally as before.
14164 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14167 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14168 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14169 * tree.def (LTGT_EXPR): Likewise.
14170 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14172 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14175 * fold-const.c (range_check_type): For enumeral and boolean
14176 type, pass 1 to type_for_size langhook instead of
14177 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14178 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14179 (build_range_check): Don't call unsigned_type_for for pointer types.
14180 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14181 range_check_type result.
14183 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14185 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14186 (replace_ref): Do not replace a chain of only two candidates which are
14187 valid memory references.
14189 2019-09-02 Martin Liska <mliska@suse.cz>
14191 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14192 Bail out when we'll end up with the same number of clusters as
14194 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14195 (jump_table_cluster::can_be_handled): Remove the guard
14196 as it's already handled in ::is_enabled. Allocate output
14197 after early bail out.
14199 2019-09-02 Martin Liska <mliska@suse.cz>
14201 PR gcov-profile/91601
14202 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14203 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14204 also negative edges.
14205 (circuit): Handle also negative edges as they can happen
14206 in some situations.
14208 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14211 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14212 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14213 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14215 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14217 PR middle-end/91623
14218 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14219 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14220 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14224 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14225 GIMPLE_ASM TREE_LIST operands.
14227 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14229 * doc/generic.texi (Unary and Binary Expressions): Mark up
14230 an instance of TYPE_MIN.
14232 2019-08-31 Stafford Horne <shorne@gmail.com>
14234 * config/or1k/constraints.md (t): New constraint.
14235 * config/or1k/or1k.h (GOT_REGS): New register class.
14236 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14238 2019-08-30 Jim Wilson <jimw@sifive.com>
14240 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14241 and -fpic and -mplt then disable -msave-restore and warn.
14243 2019-08-30 Martin Sebor <msebor@redhat.com>
14245 PR middle-end/91599
14246 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14247 the statement doesn't have one.
14248 * gimple-pretty-print.c (percent_G_format): Same.
14250 PR middle-end/91584
14251 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14252 before using them to validate MEM_REF offset.
14254 2019-08-30 Marek Polacek <polacek@redhat.com>
14256 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14258 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14260 * config/arm/arm.md (unaligned_loaddi,
14261 unaligned_storedi): New unspec insn patterns.
14262 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14263 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14264 and unaligned_storedi for 4-byte aligned memory.
14265 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14266 4-byte aligned memory.
14268 2019-08-30 Martin Jambor <mjambor@suse.cz>
14270 tree-optimization/91579
14271 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14272 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14274 (arg_needs_copy_p): Removed.
14275 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14277 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14279 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14281 * config/i386/i386-features.c
14282 (general_scalar_chain::compute_convert_gain):
14283 Correct cost for double-word shifts.
14284 (general_scalar_to_vector_candidate_p): Reject count operands
14285 greater or equal to mode bitsize.
14287 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14289 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14290 for moves between SSE and non-general registers and between
14291 mask and non-general registers.
14292 (ix86_register_move_cost): Remove stalled comment.
14294 2019-08-29 Richard Biener <rguenther@suse.de>
14296 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14297 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14299 2019-08-29 Richard Biener <rguenther@suse.de>
14302 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14303 Do not emit scalar copies for debug-insns, instead replace
14304 their uses with the reg copy used in the chain or reset them
14305 if there is a reaching definition outside of the chain as well.
14307 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14310 * config/i386/i386-expand.c (expand_vec_perm_movs,
14311 expand_vec_perm_blend, expand_vec_perm_vpermil,
14312 expand_vec_perm_pshufb, expand_vec_perm_1,
14313 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14314 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14315 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14316 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14317 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14318 comments - replace ix86_expand_vec_perm_builtin_1 with
14319 ix86_expand_vec_perm_const_1.
14320 (expand_vec_perm2_vperm2f128_vblend): New function.
14321 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14322 expand_vec_perm2_vperm2f128_vblend as last resort.
14323 (canonicalize_perm): Formatting fix.
14325 PR tree-optimization/91351
14326 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14328 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14329 range_check_type returns NULL.
14330 * tree-switch-conversion.c (switch_conversion::build_one_array):
14331 Use range_check_type instead of unsigned_type_for, don't perform
14332 linear opt if it returns NULL.
14333 (bit_test_cluster::find_bit_tests): Formatting fix.
14334 (bit_test_cluster::emit): Use range_check_type instead of
14336 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14339 2019-08-29 Richard Biener <rguenther@suse.de>
14341 PR tree-optimization/91568
14342 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14343 (vect_update_max_nunits): Add overload for poly_uint64.
14344 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14345 (vect_build_slp_tree): Record max_nunits into the subtree
14346 and merge it upwards.
14347 (vect_print_slp_tree): Print max_nunits.
14349 2019-08-28 Marek Polacek <polacek@redhat.com>
14351 Implement P1152R4: Deprecating some uses of volatile.
14353 * doc/invoke.texi: Document -Wvolatile.
14355 2019-08-28 Marek Polacek <polacek@redhat.com>
14357 PR c++/91360 - Implement C++20 P1143R2: constinit.
14358 * doc/invoke.texi: Document -Wc++20-compat.
14360 2019-08-28 Martin Sebor <msebor@redhat.com>
14362 PR tree-optimization/91457
14363 * builtins.c (component_size): New function.
14364 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14365 * builtins.h (compute_objsize): Add argument.
14366 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14367 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14368 (vrp_prop::check_mem_ref): Same.
14369 (vrp_prop::search_for_addr_array): Set no-warning bit.
14370 (check_array_bounds): Same.
14372 2019-08-28 Martin Sebor <msebor@redhat.com>
14375 * opts-common.c (option_enabled): Correct checking for language
14378 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14380 * config/i386/i386.c (ix86_register_move_cost): Do not
14381 limit the cost of moves to/from XMM register to minimum 8.
14383 2019-08-28 Martin Jambor <mjambor@suse.cz>
14386 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14387 checking assert a normal assert to test it really is redundant.
14388 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14390 (update_jump_functions_after_inlining): Removed combining unary
14391 arithmetic operations with an ancestor jump function.
14392 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14395 2019-08-28 Richard Biener <rguenther@suse.de>
14397 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14398 add the MD problem.
14400 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14401 Richard Biener <rguenther@suse.de>
14403 * expr.c (expand_assignment): Handle misaligned DECLs.
14404 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14405 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14407 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14408 * varasm.c (build_constant_desc): Align constants of misaligned types.
14409 * config/arm/predicates.md (aligned_operand): New predicate.
14410 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14411 aligned_operand to check restrictions on memory addresses.
14412 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14413 * config/arm/vec-common.md (mov<VALL>): Likewise.
14415 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14418 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14419 V_128 iterator instead of VI_128.
14421 2019-08-28 Martin Liska <mliska@suse.cz>
14423 PR tree-optimization/90970
14424 * builtins.c (check_access): Remove assignment to maxread
14425 as it hasn't been used since when it was introduced in r255755.
14427 2019-08-27 Martin Sebor <msebor@redhat.com>
14429 PR tree-optimization/91567
14430 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14431 of unknown strings.
14432 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14433 to PTRDIFF_MAX - 2.
14435 2019-08-27 Jeff Law <law@redhat.com>
14437 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14438 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14440 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14443 * config/i386/i386-features.c (convert_scalars_to_vector):
14444 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14445 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14446 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14447 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14449 2019-08-27 Richard Biener <rguenther@suse.de>
14451 * config/i386/i386-features.h
14452 (general_scalar_chain::~general_scalar_chain): Add.
14453 (general_scalar_chain::insns_conv): New bitmap.
14454 (general_scalar_chain::n_sse_to_integer): New.
14455 (general_scalar_chain::n_integer_to_sse): Likewise.
14456 (general_scalar_chain::make_vector_copies): Adjust signature.
14457 * config/i386/i386-features.c
14458 (general_scalar_chain::general_scalar_chain): Outline,
14459 initialize new members.
14460 (general_scalar_chain::~general_scalar_chain): New.
14461 (general_scalar_chain::mark_dual_mode_def): Record insns
14462 we need to insert conversions at and count them.
14463 (general_scalar_chain::compute_convert_gain): Account
14464 for conversion instructions at chain boundary.
14465 (general_scalar_chain::make_vector_copies): Generate a single
14466 copy for a def by a specific insn.
14467 (general_scalar_chain::convert_registers): First populate
14468 defs_map, then make copies at out-of chain insns.
14470 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14472 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14474 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14476 2019-08-27 Martin Liska <mliska@suse.cz>
14478 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14480 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14481 Enclose in anonymous namespace.
14482 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14483 hard_register initialization in braces.
14484 * tree-vrp.h (value_range_base::supports_type_p): Return false
14485 for function with boolean return type.
14487 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14489 * config/i386/i386.c (emit_i387_cw_initialization)
14490 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14492 2019-08-26 Martin Sebor <msebor@redhat.com>
14495 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14496 (sprintf_dom_walker): Remove class.
14497 (get_int_range): Make argument const.
14498 (directive::fmtfunc, directive::set_precision): Same.
14499 (format_none): Same.
14500 (build_intmax_type_nodes): Same.
14501 (adjust_range_for_overflow): Same.
14502 (format_floating): Same.
14503 (format_character): Same.
14504 (format_string): Same.
14505 (format_plain): Same.
14506 (get_int_range): Cast away constness.
14507 (format_integer): Same.
14508 (get_string_length): Call get_range_strlen_dynamic. Handle
14509 null lendata.maxbound.
14510 (should_warn_p): Adjust argument scope qualifier.
14511 (maybe_warn): Same.
14512 (format_directive): Same.
14513 (parse_directive): Same.
14514 (is_call_safe): Same.
14515 (try_substitute_return_value): Same.
14516 (sprintf_dom_walker::handle_printf_call): Rename...
14517 (handle_printf_call): ...to this. Initialize target to host charmap
14518 here instead of in pass_sprintf_length::execute.
14519 (struct call_info): Make global.
14520 (sprintf_dom_walker::compute_format_length): Make global.
14521 (sprintf_dom_walker::handle_gimple_call): Same.
14522 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14523 * print-rtl.c (print_pattern): Reduce the number of spaces to
14524 avoid -Wformat-truncation.
14525 * tree-pass.h (make_pass_warn_printf): New function.
14526 * tree-ssa-strlen.c (strlen_optimize): New variable.
14527 (get_string_length): Add comments.
14528 (get_range_strlen_dynamic): New function.
14529 (check_and_optimize_call): New function.
14530 (handle_integral_assign): New function.
14531 (strlen_check_and_optimize_stmt): Factor code out into
14532 strlen_check_and_optimize_call and handle_integral_assign.
14533 (strlen_dom_walker::evrp): New member.
14534 (strlen_dom_walker::before_dom_children): Use evrp member.
14535 (strlen_dom_walker::after_dom_children): Use evrp member.
14536 (printf_strlen_execute): New function.
14537 (pass_strlen::gate): Update to handle printf calls.
14538 (dump_strlen_info): New function.
14539 (pass_data_warn_printf): New variable.
14540 (pass_warn_printf): New class.
14541 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14542 (handle_printf_call): Same.
14543 * tree-vrp.c (value_range_base::type): Adjust assertion.
14544 * vr-values.c (vr_values::update_value_range): Use type of the first
14545 argument rather than the second.
14547 2019-08-26 Richard Biener <rguenther@suse.de>
14549 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14551 (convert_scalars_to_vector): Do not call it.
14553 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14554 Uros Bizjak <ubizjak@gmail.com>
14556 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14557 CASE_MATHFN_FLOATN for roundeven.
14558 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14560 (ix86_mode_needed): Likewise.
14561 (ix86_mode_after): Likewise.
14562 (ix86_mode_entry): Likewise.
14563 (ix86_mode_exit): Likewise.
14564 (ix86_emit_mode_set): Likewise.
14565 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14566 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14567 (ix86_entity): Add I387_ROUNDEVEN.
14568 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14569 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14570 (define_int_iterator): Likewise.
14571 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14572 (define_constant): Define ROUND_ROUNDEVEN mode.
14573 (define_attr): Add roundeven mode for i387_cw.
14574 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14575 * internal-fn.def (ROUNDEVEN): New builtin function.
14576 * optabs.def (roundeven_optab): New optab.
14578 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14580 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14582 * builtins.def: Added function definitions for roundeven function
14584 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14585 function call. Adjust condition for floor, ceil, trunc and round.
14586 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14587 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14588 (integer_valued_real_call_p): Added case for roundeven function.
14589 * real.c (is_even): New function. Returns true if real number is even,
14590 otherwise returns false.
14591 (is_halfway_below): New function. Returns true if real number is
14592 halfway between two integers, else return false.
14593 (real_roundeven): New function. Round real number to nearest integer,
14594 rounding halfway cases towards even.
14595 * real.h (real_value): Added descriptive comments. Added function
14596 declaration for roundeven function.
14597 * doc/extend.texi (Other Builtins): List roundeven variants among
14598 functions which can be handled as builtins.
14600 2019-08-26 Richard Biener <rguenther@suse.de>
14604 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14606 (general_scalar_chain::replace_with_subreg): Remove.
14607 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14608 (general_scalar_chain::convert_reg): Adjust signature.
14609 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14610 iterate over all defs of a reg.
14611 (general_scalar_chain::replace_with_subreg): Remove.
14612 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14613 (general_scalar_chain::make_vector_copies): Populate defs_map,
14614 place copy only after defs that are used as vectors in the chain.
14615 (general_scalar_chain::convert_reg): Emit a copy for a specific
14616 def in a specific instruction.
14617 (general_scalar_chain::convert_op): All reg uses are converted here.
14618 (general_scalar_chain::convert_insn): Emit copies for scalar
14619 uses of defs here. Replace uses with the copies we created.
14620 Replace and convert the def. Adjust REG_DEAD notes, remove
14621 REG_EQUIV/EQUAL notes.
14622 (general_scalar_chain::convert_registers): Only handle copies
14623 into the chain here.
14625 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14627 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14629 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14631 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14632 Add nop_convert case.
14633 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14634 Fold all statements if requested.
14635 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14636 Allow to fold all statements.
14637 * tree-vrp.c (class vrp_folder):
14638 Let substitute_and_fold_engine fold all statements.
14640 2019-08-26 Richard Biener <rguenther@suse.de>
14642 PR tree-optimization/91526
14643 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14644 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14645 TODO_update_address_taken.
14647 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14649 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14652 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14654 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14655 machine mode for unspec_volatile operand.
14657 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14659 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14660 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14661 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14662 (prefer_neon_for_64bits): Remove.
14663 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14664 (tune_params): Remove PREF_NEON_64_FALSE uses.
14665 (arm_option_override): Remove prefer_neon selection code.
14666 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14667 * config/arm/arm-protos.h (tune_params): Remove
14668 prefer_neon_for_64bits.
14669 (prefer_neon_for_64bits): Remove.
14671 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14674 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14675 and issue any diagnostics needed before collecting the pre-PCH
14678 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14680 PR middle-end/91283
14681 * common.opt (fexcess-precision=): Add Optimization flag. Use
14682 flag_excess_precision variable instead of
14683 flag_excess_precision_cmdline.
14684 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14686 (flag_excess_precision): Don't define.
14687 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14688 flag_excess_precision_cmdline. Remove comment.
14689 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14690 and x_flag_excess_precision instead of
14691 frontend_set_flag_excess_precision_cmdline and
14692 x_flag_excess_precision_cmdline.
14693 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14694 x_flag_excess_precision_cmdline.
14695 * toplev.c (init_excess_precision): Remove.
14696 (lang_dependent_init_target): Don't call it.
14698 2019-08-23 Martin Liska <mliska@suse.cz>
14700 * lto-wrapper.c (run_gcc): When setting jobserver
14701 set also parallel to 1. This was done so before r273908.
14703 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14705 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14706 (cortex-a76ae): Likewise.
14707 (cortex-a77): Likewise
14708 * config/arm/arm-tables.opt: Regenerate.
14709 * config/arm/arm-tune.md: Likewise.
14710 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14711 cortex-a77 CPU options.
14713 2019-08-23 Martin Liska <mliska@suse.cz>
14715 * profile.c (instrument_values): Do not set
14716 0 as last argument.
14717 * tree-profile.c (gimple_gen_interval_profiler): Remove
14719 (gimple_gen_pow2_profiler): Likewise.
14720 (gimple_gen_topn_values_profiler): Likewise.
14721 (gimple_gen_ic_profiler): Likewise.
14722 (gimple_gen_time_profiler): Likewise.
14723 (gimple_gen_average_profiler): Likewise.
14724 (gimple_gen_ior_profiler): Likewise.
14725 * value-prof.c (dump_histogram_value): Use default
14726 in switch statement instead of HIST_TYPE_MAX.
14727 (stream_in_histogram_value): Likewise.
14728 (gimple_duplicate_stmt_histograms): Do not
14729 use NULL for implicitly set arguments.
14730 (gimple_divmod_values_to_profile): Do not use
14731 reserve+quick_push.
14732 (gimple_indirect_call_to_profile): Likewise.
14733 (gimple_find_values_to_profile): Use implicit
14734 function call arguments.
14735 * value-prof.h (gimple_alloc_histogram_value):
14736 Set default values.
14737 (gimple_gen_interval_profiler): Remove last argument.
14738 (gimple_gen_pow2_profiler): Likewise.
14739 (gimple_gen_topn_values_profiler): Likewise.
14740 (gimple_gen_ic_profiler): Likewise.
14741 (gimple_gen_time_profiler): Likewise.
14742 (gimple_gen_average_profiler): Likewise.
14743 (gimple_gen_ior_profiler): Likewise.
14745 2019-08-22 Martin Sebor <msebor@redhat.com>
14747 PR middle-end/91490
14748 * builtins.c (c_strlen): Rename argument and introduce new local.
14749 Set no-warning bit on original argument.
14750 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14751 Fold empty and zero constructors into empty strings.
14752 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14753 for missing initializers.
14754 * tree.c (build_string_literal): Handle optional argument.
14755 * tree.h (build_string_literal): Add defaulted argument.
14756 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14757 no-warning bit on original expression.
14759 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14762 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14763 and UNSPEC_DARN_RAW.
14764 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14766 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14767 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14768 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14770 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14772 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14773 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14774 * config/rs6000/rs6000.md (unspec): ... here.
14775 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14776 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14777 cmpeqb, *cmpeqb_internal): Delete, move to...
14778 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14779 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14780 cmpeqb, *cmpeqb_internal): ... here.
14782 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14784 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14785 intrinsics if __ARM_FP.
14786 Use __ARM_FEATURE_CRC32 ifdef guard.
14788 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14790 * config/arm/arm.md (neon_for_64bits): Remove.
14791 (avoid_neon_for_64bits): Remove.
14792 (arm_adddi3): Always split early.
14793 (arm_subdi3): Always split early.
14794 (negdi2): Remove Neon expansion.
14795 (split zero_extend): Split before reload.
14796 (split sign_extend): Split before reload.
14798 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14800 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14801 (qhs_extenddi_cstr): Likewise.
14802 * config/arm/arm.md (ashldi3): Always expand early.
14803 (ashlsi3): Likewise.
14804 (ashrsi3): Likewise.
14805 (zero_extend<mode>di2): Remove Neon variants.
14806 (extend<mode>di2): Likewise.
14807 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14808 (signed_shift_di3_neon): Likewise.
14809 (unsigned_shift_di3_neon): Likewise.
14810 (ashrdi3_neon_imm_noclobber): Likewise.
14811 (lshrdi3_neon_imm_noclobber): Likewise.
14812 (<shift>di3_neon): Likewise.
14813 (split extend): Remove DI extend split patterns.
14815 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14817 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14818 (split not): Add DImode not splitter.
14819 (anddi3): Remove pattern.
14820 (anddi3_insn): Likewise.
14821 (anddi_zesidi_di): Likewise.
14822 (anddi_sesdi_di): Likewise.
14823 (anddi_notdi_di): Likewise.
14824 (anddi_notzesidi_di): Likewise.
14825 (anddi_notsesidi_di): Likewise.
14826 (iordi3): Likewise.
14827 (iordi3_insn): Likewise.
14828 (iordi_zesidi_di): Likewise.
14829 (iordi_sesidi_di): Likewise.
14830 (xordi3): Likewise.
14831 (xordi3_insn): Likewise.
14832 (xordi_sesidi_di): Likewise.
14833 (xordi_zesidi_di): Likewise.
14834 (one_cmpldi2): Likewise.
14835 (one_cmpldi2_insn): Likewise.
14836 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14837 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14839 (iwmmxt_xordi3): Likewise.
14840 (iwmmxt_anddi3): Likewise.
14841 * config/arm/neon.md (orndi3_neon): Remove pattern.
14842 (anddi_notdi_di): Likewise.
14843 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14844 (arm_iordi_operand_neon): Likewise.
14845 (arm_xordi_operand_neon): Likewise.
14846 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14847 (iordi_notzesidi_di): Likewise.
14848 (iordi_notdi_zesidi): Likewise.
14849 (iordi_notsesidi_di): Likewise.
14851 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14853 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14855 (iorsi3_compare0_scratch): Likewise.
14857 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14859 * config/aarch64/aarch64-simd-builtins.def:
14862 * config/aarch64/aarch64-simd.md:
14863 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14864 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14865 (aarch64_ld1_x4_<mode>): Likewise.
14866 (aarch64_st1_x4_<mode>): Likewise.
14867 * config/aarch64/arm_neon.h:
14868 (vld1_s8_x4): New function.
14869 (vld1q_s8_x4): Likewise.
14870 (vld1_s16_x4): Likewise.
14871 (vld1q_s16_x4): Likewise.
14872 (vld1_s32_x4): Likewise.
14873 (vld1q_s32_x4): Likewise.
14874 (vld1_u8_x4): Likewise.
14875 (vld1q_u8_x4): Likewise.
14876 (vld1_u16_x4): Likewise.
14877 (vld1q_u16_x4): Likewise.
14878 (vld1_u32_x4): Likewise.
14879 (vld1q_u32_x4): Likewise.
14880 (vld1_f16_x4): Likewise.
14881 (vld1q_f16_x4): Likewise.
14882 (vld1_f32_x4): Likewise.
14883 (vld1q_f32_x4): Likewise.
14884 (vld1_p8_x4): Likewise.
14885 (vld1q_p8_x4): Likewise.
14886 (vld1_p16_x4): Likewise.
14887 (vld1q_p16_x4): Likewise.
14888 (vld1_s64_x4): Likewise.
14889 (vld1_u64_x4): Likewise.
14890 (vld1_p64_x4): Likewise.
14891 (vld1q_s64_x4): Likewise.
14892 (vld1q_u64_x4): Likewise.
14893 (vld1q_p64_x4): Likewise.
14894 (vld1_f64_x4): Likewise.
14895 (vld1q_f64_x4): Likewise.
14896 (vst1_s8_x4): Likewise.
14897 (vst1q_s8_x4): Likewise.
14898 (vst1_s16_x4): Likewise.
14899 (vst1q_s16_x4): Likewise.
14900 (vst1_s32_x4): Likewise.
14901 (vst1q_s32_x4): Likewise.
14902 (vst1_u8_x4): Likewise.
14903 (vst1q_u8_x4): Likewise.
14904 (vst1_u16_x4): Likewise.
14905 (vst1q_u16_x4): Likewise.
14906 (vst1_u32_x4): Likewise.
14907 (vst1q_u32_x4): Likewise.
14908 (vst1_f16_x4): Likewise.
14909 (vst1q_f16_x4): Likewise.
14910 (vst1_f32_x4): Likewise.
14911 (vst1q_f32_x4): Likewise.
14912 (vst1_p8_x4): Likewise.
14913 (vst1q_p8_x4): Likewise.
14914 (vst1_p16_x4): Likewise.
14915 (vst1q_p16_x4): Likewise.
14916 (vst1_s64_x4): Likewise.
14917 (vst1_u64_x4): Likewise.
14918 (vst1_p64_x4): Likewise.
14919 (vst1q_s64_x4): Likewise.
14920 (vst1q_u64_x4): Likewise.
14921 (vst1q_p64_x4): Likewise.
14922 (vst1_f64_x4): Likewise.
14923 (vst1q_f64_x4): Likewise.
14925 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14927 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14929 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14930 Richard Sandiford <richard.sandiford@arm.com>
14933 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14934 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14936 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14939 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14940 in reg if it fails aarch64_plus_operand predicate.
14942 2019-08-21 Richard Biener <rguenther@suse.de>
14944 PR tree-optimization/91482
14945 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
14946 BUILT_IN_ASSUME_ALIGNED calls.
14948 2019-08-21 Richard Biener <rguenther@suse.de>
14952 * config/i386/i386-features.c
14953 (general_scalar_chain::make_vector_copies): Copy stack temporary
14954 rtx when using it multiple times.
14955 (general_scalar_chain::convert_reg): Likewise.
14957 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
14959 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
14961 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
14963 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
14964 catch more redundant zero initialization cases.
14965 (dse_dom_walker::dse_optimize_stmt): Likewise.
14967 2019-08-20 Richard Biener <rguenther@suse.de>
14970 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
14971 by collect2 when targetm.have_ctors_dtors which avoids dragging
14972 in temporary filenames from LTO input objects.
14974 2019-08-20 Richard Biener <rguenther@suse.de>
14976 PR tree-optimization/37242
14977 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
14978 to (T)a + (T)b if we know that a + b does not overflow.
14980 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
14982 PR rtl-optimization/91347
14983 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
14984 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
14986 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
14988 * calls.h (function_arg_info): Add a pass_by_reference field,
14989 defaulting to false.
14990 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
14991 when applying pass-by-reference semantics.
14992 (initialize_argument_information): Likewise.
14993 (emit_library_call_value_1): Likewise.
14994 * function.c (assign_parm_data_one): Remove passed_pointer field.
14995 (assign_parm_find_data_types): Don't set it.
14996 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
14997 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
14998 arg.pass_by_reference instead of passed_pointer.
15000 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15002 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15003 into a single function_arg_info, updating its fields when we
15004 apply pass-by-reference and promotion semantics. Use the
15005 function_arg_info to track the mode rather than keeping it in
15006 a separate local variable.
15007 (initialize_argument_information): Likewise. Base the final
15008 arg_to_skip on this new function_arg_info rather than creating
15009 a new one from scratch.
15011 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15013 * function.c (assign_parm_data_one): Replace passed_type,
15014 promoted_mode and named_arg with a function_arg_info field.
15015 (assign_parm_find_data_types): Remove local variables and
15016 assign directly to "data". Make data->passed_mode shadow
15017 data->arg.mode until promotion, then assign the promoted
15018 mode to data->arg.mode.
15019 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15020 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15021 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15022 (assign_parm_setup_block, assign_parm_setup_reg)
15023 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15024 arg.mode instead of promoted_mode, arg.type instead of passed_type
15025 and arg.named instead of named_arg. Use data->arg for
15026 function_arg_info structures that had the field values passed_type,
15027 promoted_mode and named_arg. Base other function_arg_infos on
15028 data->arg, changing the necessary properties.
15030 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15032 * calls.h (apply_pass_by_reference_rules): Declare.
15033 * calls.c (apply_pass_by_reference_rules): New function.
15034 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15035 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15036 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15037 * function.c (assign_parm_find_data_types): Likewise.
15038 * var-tracking.c (prepare_call_arguments): Likewise.
15040 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15042 * target.def (must_pass_in_stack): Take a function_arg_info instead
15043 of a mode and a type.
15044 * doc/tm.texi: Regenerate.
15045 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15046 instead of a mode and a type.
15047 (must_pass_in_stack_var_size_or_pad): Likewise.
15048 * calls.c (must_pass_in_stack_var_size): Likewise.
15049 (must_pass_in_stack_var_size_or_pad): Likewise.
15050 (initialize_argument_information): Update call to
15051 targetm.calls.must_pass_in_stack.
15052 (must_pass_va_arg_on_stack): Likewise.
15053 * function.c (assign_parm_find_entry_rtl): Likewise.
15054 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15055 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15056 (alpha_function_arg_advance): Likewise.
15057 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15058 (cr16_function_arg_advance): Likewise.
15059 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15060 (cris_arg_partial_bytes): Likewise.
15061 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15062 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15063 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15064 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15065 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15066 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15067 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15068 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15069 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15070 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15071 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15072 instead of a mode and a type.
15073 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15074 (fr30_num_arg_regs): Likewise.
15075 (fr30_setup_incoming_varargs): Update calls accordingly.
15076 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15077 (fr30_function_arg_advance): Likewise.
15078 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15079 instead of a mode and a type.
15080 * config/gcn/gcn.c (num_arg_regs): Likewise.
15081 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15082 num_arg_regs and targetm.calls.must_pass_in_stack.
15083 (gcn_arg_partial_bytes): Likewise.
15084 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15085 function_arg_info instead of a mode and a type.
15086 (classify_argument): Update call accordingly.
15087 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15088 function_arg_info instead of a mode and a type.
15089 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15091 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15092 (rs6000_parm_needs_stack): Update call accordingly.
15093 (setup_incoming_varargs): Likewise.
15095 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15097 * target.def (callee_copies): Take a function_arg_info instead
15098 of a mode, type and named flag.
15099 * doc/tm.texi: Regenerate.
15100 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15101 instead of a mode, type and named flag.
15102 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15103 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15104 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15105 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15106 instead of a mode, type and named flag.
15107 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15108 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15109 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15110 * calls.h (reference_callee_copied): Take a function_arg_info
15111 instead of a mode, type and named flag.
15112 * calls.c (reference_callee_copied): Likewise.
15113 (initialize_argument_information): Update call accordingly.
15114 (emit_library_call_value_1): Likewise.
15115 * function.c (gimplify_parameters): Likewise.
15116 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15117 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15118 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15119 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15120 (TARGET_CALLEE_COPIES): Define to
15121 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15122 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15123 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15124 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15125 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15126 instead of a mode, type and named flag.
15127 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15128 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15129 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15130 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15131 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15132 (TARGET_CALLEE_COPIES): Define to
15133 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15134 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15135 instead of a mode, type and named flag.
15136 * config/sh/sh.c (sh_callee_copies): Likewise.
15137 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15138 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15139 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15141 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15143 * target.def (function_arg_advance): Take a function_arg_info instead
15144 of a mode, type and named flag.
15145 * doc/tm.texi: Regenerate.
15146 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15147 instead of a mode, type and named flag.
15148 * targhooks.c (default_function_arg_advance): Likewise.
15149 * calls.c (initialize_argument_information): Update call to
15150 targetm.calls.function_arg_advance.
15151 (emit_library_call_value_1): Likewise.
15152 * dse.c (get_call_args): Likewise.
15153 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15154 * function.c (assign_parms, gimplify_parameters): Likewise.
15155 * var-tracking.c (prepare_call_arguments): Likewise.
15156 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15157 function_arg_info instead of a mode, type and named flag.
15158 (aarch64_setup_incoming_varargs): Update call accordingly.
15159 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15160 function_arg_info instead of a mode, type and named flag.
15161 (alpha_setup_incoming_varargs): Update call accordingly.
15162 * config/arc/arc.c (arc_function_arg_advance): Take a
15163 function_arg_info instead of a mode, type and named flag.
15164 (arc_setup_incoming_varargs): Update call accordingly.
15165 * config/arm/arm.c (arm_function_arg_advance): Take a
15166 function_arg_info instead of a mode, type and named flag.
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_advance): Take a
15171 function_arg_info instead of a mode, type and named flag.
15172 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15173 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15174 (c6x_call_saved_register_used): Update call accordingly.
15175 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15176 function_arg_info instead of a mode, type and named flag.
15177 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15178 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15179 (csky_setup_incoming_varargs): Update call accordingly.
15180 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15181 function_arg_info instead of a mode, type and named flag.
15182 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15183 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15184 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15185 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15186 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15187 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15188 (ix86_setup_incoming_varargs): Update call accordingly.
15189 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15190 function_arg_info instead of a mode, type and named flag.
15191 (ia64_setup_incoming_varargs): Update call accordingly.
15192 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15193 function_arg_info instead of a mode, type and named flag.
15194 (iq2000_expand_prologue): Update call accordingly.
15195 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15196 function_arg_info instead of a mode, type and named flag.
15197 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15198 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15199 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15200 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15201 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15203 (microblaze_expand_prologue): Update call accordingly.
15204 * config/mips/mips.c (mips_function_arg_advance): Take a
15205 function_arg_info instead of a mode, type and named flag.
15206 (mips_setup_incoming_varargs): Update call accordingly.
15207 (mips_output_args_xfer): Likewise.
15208 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15209 function_arg_info instead of a mode, type and named flag.
15210 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15211 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15212 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15213 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15214 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15215 (nios2_setup_incoming_varargs): Update call accordingly.
15216 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15217 function_arg_info instead of a mode, type and named flag.
15218 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15219 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15220 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15221 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15222 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15223 (riscv_setup_incoming_varargs): Update call accordingly.
15224 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15225 function_arg_info instead of a mode, type and named flag.
15226 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15228 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15229 (rs6000_parm_needs_stack): Update call accordingly.
15230 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15231 instead of a mode, type and named flag.
15232 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15233 (s390_call_saved_register_used): Update call accordingly.
15234 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15235 instead of a mode, type and named flag.
15236 (sh_output_mi_thunk): Update call accordingly.
15237 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15238 function_arg_info instead of a mode, type and named flag.
15239 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15240 (spu_setup_incoming_varargs): Update call accordingly.
15241 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15242 function_arg_info instead of a mode, type and named flag.
15243 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15244 (tilegx_setup_incoming_varargs): Update call accordingly.
15245 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15246 function_arg_info instead of a mode, type and named flag.
15247 (tilegx_setup_incoming_varargs): Update call accordingly.
15248 * config/v850/v850.c (v850_function_arg_advance): Take a
15249 function_arg_info instead of a mode, type and named flag.
15250 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15251 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15252 (visium_setup_incoming_varargs): Update call accordingly.
15253 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15254 function_arg_info instead of a mode, type and named flag.
15256 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15258 * target.def (function_arg, function_incoming_arg): Take a
15259 function_arg_info instead of a mode, tree and named flag.
15260 * doc/tm.texi: Regenerate.
15261 * targhooks.h (default_function_arg): Take a function_arg_info
15262 instead of a mode, tree and named flag.
15263 (default_function_incoming_arg): Likewise.
15264 * targhooks.c (default_function_arg): Likewise.
15265 (default_function_incoming_arg): Likewise.
15266 * calls.h (function_arg_info::end_marker_p): New function.
15267 (function_arg_info::end_marker): Likewise.
15268 * calls.c (prepare_call_address, initialize_argument_information)
15269 (expand_call, emit_library_call_value_1): Update calls to
15270 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15271 * dse.c: Include calls.h.
15272 (get_call_args): Update call to targetm.calls.function_arg.
15273 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15274 * var-tracking.c (prepare_call_arguments): Likewise.
15275 * function.c (assign_parm_find_entry_rtl): Update call to
15276 targetm.calls.function_incoming_arg.
15277 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15278 function_arg_info instead of a mode, tree and named flag.
15279 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15280 * config/arc/arc.c (arc_function_arg): Likewise.
15281 * config/arm/arm.c (arm_function_arg): Likewise.
15282 (cmse_func_args_or_return_in_stack): Update call accordingly.
15283 (arm_function_ok_for_sibcall): Likewise.
15284 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15285 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15286 instead of a mode, tree and named flag.
15287 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15288 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15289 (c6x_call_saved_register_used): Update call accordingly.
15290 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15291 instead of a mode, tree and named flag.
15292 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15293 (cris_function_arg_1): Likewise.
15294 * config/csky/csky.c (csky_function_arg): Likewise.
15295 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15296 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15297 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15298 (frv_function_arg_1): Likewise.
15299 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15300 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15301 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15302 * config/i386/i386.c (ix86_function_arg): Likewise.
15303 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15304 (ia64_function_arg_1): Likewise.
15305 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15306 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15308 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15309 instead of a mode, tree and named flag.
15310 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15311 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15312 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15313 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15314 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15315 (microblaze_expand_prologue): Update call accordingly.
15316 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15317 instead of a mode, tree and named flag.
15318 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15319 (mmix_function_arg_1): Likewise.
15320 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15321 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15322 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15323 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15324 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15325 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15326 (nvptx_function_incoming_arg): Likewise.
15327 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15328 * config/pa/pa.c (pa_function_arg): Likewise.
15329 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15330 * config/pru/pru.c (pru_function_arg): Likewise.
15331 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15332 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15333 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15334 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15335 (rs6000_parm_needs_stack): Update call accordingly.
15336 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15337 instead of a mode, tree and named flag.
15338 * config/s390/s390.c (s390_function_arg): Likewise.
15339 (s390_call_saved_register_used): Update call accordingly.
15340 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15341 instead of a mode, tree and named flag.
15342 (sh_output_mi_thunk): Update call accordingly.
15343 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15344 (sparc_function_incoming_arg): Take a function_arg_info instead of
15345 a mode, tree and named flag.
15346 * config/spu/spu.c (spu_function_arg): Likewise.
15347 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15348 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15349 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15350 * config/v850/v850.c (v850_function_arg): Likewise.
15351 * config/vax/vax.c (vax_function_arg): Likewise.
15352 * config/visium/visium.c (visium_function_arg): Likewise.
15353 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15354 (xtensa_function_incoming_arg): Likewise.
15356 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15358 * target.def (setup_incoming_varargs): Take a function_arg_info
15359 instead of a mode and tree.
15360 * doc/tm.texi: Regenerate.
15361 * targhooks.h (default_setup_incoming_varargs): Take a
15362 function_arg_info instead of a mode and tree.
15363 * targhooks.c (default_setup_incoming_varargs): Likewise.
15364 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15365 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15366 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15367 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15368 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15369 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15370 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15371 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15373 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15374 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15375 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15376 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15377 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15378 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15379 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15380 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15381 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15382 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15383 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15384 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15385 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15386 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15387 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15388 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15389 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15390 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15391 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15392 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15393 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15394 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15395 * function.c (assign_parms_setup_varargs): Update call to
15396 targetm.calls.setup_incoming_varargs.
15398 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15400 * target.def (pass_by_reference): Take a function_arg_info instead
15401 of a mode, type and named flag.
15402 * doc/tm.texi: Regenerate.
15403 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15405 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15406 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15407 function_arg_info instead of a mode, type and named flag.
15408 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15409 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15410 mode, type and named flag.
15411 * calls.c (pass_by_reference): Likewise.
15412 (pass_va_arg_by_reference): Update call accordingly.
15413 (initialize_argument_information): Likewise.
15414 (emit_library_call_value_1): Likewise.
15415 * function.c (assign_parm_find_data_types): Likewise.
15416 * var-tracking.c (prepare_call_arguments): Likewise.
15417 * stor-layout.c: Include calls.h.
15418 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15419 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15420 function_arg_info instead of a mode, type and named flag.
15421 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15422 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15423 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15424 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15425 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15426 (c6x_call_saved_register_used): Update call to pass_by_reference.
15427 * config/cris/cris.c (cris_pass_by_reference): Take a
15428 function_arg_info instead of a mode, type and named flag.
15429 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15430 function_arg_info instead of a mode, type and named flag.
15431 (epiphany_arg_partial_bytes): Update call accordingly.
15432 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15433 function_arg_info instead of a mode, type and named flag.
15434 (ft32_arg_partial_bytes): Update call accordingly.
15435 * config/i386/i386.c (ix86_pass_by_reference): Take a
15436 function_arg_info instead of a mode, type and named flag.
15437 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15438 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15439 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15440 (m32r_return_in_memory): Update call accordingly.
15441 * config/mips/mips.c (mips_pass_by_reference): Take a
15442 function_arg_info instead of a mode, type and named flag.
15443 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15444 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15445 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15446 (moxie_arg_partial_bytes): Update call accordingly.
15447 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15448 function_arg_info instead of a mode, type and named flag.
15449 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15450 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15451 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15452 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15453 (riscv_return_in_memory): Update call accordingly.
15454 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15455 function_arg_info instead of a mode, type and named flag.
15456 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15457 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15458 * config/s390/s390.c (s390_pass_by_reference): Take a
15459 function_arg_info instead of a mode, type and named flag.
15460 (s390_call_saved_register_used): Update call accordingly.
15461 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15462 instead of a mode, type and named flag.
15463 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15464 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15465 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15466 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15467 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15468 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15470 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15472 * target.def (arg_partial_bytes): Take a function_arg_info instead
15473 of a mode, type and named flag.
15474 * doc/tm.texi: Regenerate.
15475 * target.h (function_arg_info): Declare.
15476 * calls.h (function_arg_info): New class.
15477 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15478 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15479 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15480 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15481 * calls.c (initialize_argument_information): Update call to
15482 targetm.calls.partial_bytes.
15483 (emit_library_call_value_1): Likewise.
15484 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15485 * function.c (assign_parm_find_entry_rtl): Likewise.
15486 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15487 function_arg_info instead of a mode, type and named flag.
15488 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15489 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15490 (cmse_func_args_or_return_in_stack): Update accordingly.
15491 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15492 function_arg_info instead of a mode, type and named flag.
15493 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15494 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15495 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15496 * config/fr30/fr30.c: Include calls.h.
15497 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15498 type and named flag.
15499 * config/frv/frv.c: Include calls.h.
15500 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15501 type and named flag.
15502 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15503 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15504 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15505 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15506 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15507 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15508 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15510 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15511 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15512 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15513 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15514 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15515 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15516 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15517 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15518 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15519 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15520 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15521 (rs6000_parm_needs_stack): Update call accordingly.
15522 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15523 function_arg_info instead of a mode, type and named flag.
15524 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15525 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15527 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15529 * calls.h (must_pass_va_arg_in_stack): Declare.
15530 * calls.c (must_pass_va_arg_in_stack): New function.
15531 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15532 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15533 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15535 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15537 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15539 * calls.h (pass_va_arg_by_reference): Declare.
15540 * calls.c (pass_va_arg_by_reference): New function.
15541 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15542 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15543 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15544 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15545 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15546 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15547 (mips_gimplify_va_arg_expr): Likewise.
15548 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15549 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15550 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15551 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15552 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15553 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15554 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15555 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15556 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15557 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15558 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15560 2019-08-20 Richard Biener <rguenther@suse.de>
15563 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15564 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15565 (convert_scalars_to_vector): Add timode_p parameter and use it
15566 to guard TImode-only operation.
15567 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15568 (pass_stv::execute): Pass down timode_p.
15570 2019-08-20 Lili Cui <lili.cui@intel.com>
15572 * common/config/i386/i386-common.c
15573 (processor_names): Add tigerlake and cooperlake.
15574 (processor_alias_table): Add tigerlake and cooperlake.
15575 * config.gcc: Add -march=tigerlake and cooperlake.
15576 * config/i386/driver-i386.c
15577 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15578 Add "has_avx" to classify processor.
15579 * config/i386/i386-builtins.c (processor_model) :
15580 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15581 (arch_names_table): Add tigerlake and cooperlake.
15582 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15583 and PROCESSOR_COOPERLAKE.
15584 * config/i386/i386-c.c
15585 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15586 * config/i386/i386-options.c
15587 (m_TIGERLAKE): Define.
15588 (m_COOPERLAKE): Ditto.
15589 (m_CORE_AVX512): Ditto.
15590 (processor_cost_table): Add cascadelake.
15591 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15592 * config/i386/i386.h
15593 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15594 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15595 (PTA_MOVDIRI): Ditto.
15596 (PTA_MOVDIR64B): Ditto.
15597 (PTA_COOPERLAKE): Ditto.
15598 (PTA_TIGERLAKE): Ditto.
15599 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15600 * doc/extend.texi: Add tigerlake and cooperlake.
15601 * doc/invoke.texi: Add tigerlake and cooperlake.
15603 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15605 * doc/install.texi (Specific, alpha): Remove note to use
15606 binutils 2.11.2 or later.
15608 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15610 PR middle-end/89544
15611 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15614 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15616 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15617 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15618 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15619 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15620 * config/aarch64/constraints.md (Dt): New constraint
15621 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15623 2019-08-19 Richard Biener <rguenther@suse.de>
15625 PR tree-optimization/91403
15626 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15627 cases we can handle with tail-recursion...
15628 (follow_ssa_edge_expr): ... here. Do so.
15630 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15633 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15634 implemented for -fsanitize=kernel-address, and merge check logic
15635 with -fsanitize=address.
15637 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15639 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15640 for cpu and machine. Factor 64/32b builtins.
15642 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15644 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15645 gone, point to sourceforge.net.
15647 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15649 * doc/ux.texi (User Experience Guidelines): Update reference.
15651 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15653 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15656 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15658 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15659 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15661 2019-08-16 Martin Sebor <msebor@redhat.com>
15663 * tree.def (TYPE_SIZE): Clarify.
15664 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15666 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15668 PR tree-optimization/91109
15669 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15670 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15671 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15673 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15675 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15676 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15677 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15678 (uavg<mode>3_ceil): New expander.
15679 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15680 mode iterator when creating CONST1_RTX.
15681 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15682 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15683 mode iterator for const1_operand predicate.
15685 2019-08-16 Richard Biener <rguenther@suse.de>
15687 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15688 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15690 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15691 (analyze_evolution_in_loop): Likewise.
15692 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15693 (follow_ssa_edge_expr): ... here. Refactor code.
15695 2019-08-16 Richard Biener <rguenther@suse.de>
15698 * config/i386/i386-features.c
15699 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15701 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15704 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15705 only if subst_name matches curr_attr string.
15707 2019-08-16 Richard Biener <rguenther@suse.de>
15709 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15710 stmt at gsi_p, instead replace it with a NOP removed later.
15711 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15712 that became dead because of that.
15714 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15716 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15717 for which we can't represent a range.
15718 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15720 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15721 Set VR_UNDEFINED if type is not supported.
15722 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15723 * tree-vrp.c (value_range_base::check): Assert that a varying has
15725 (value_range_base::equal_p): Early bail for undefines.
15726 (value_range_base::set_varying): Accept a type.
15727 (value_range::set_varying): Same.
15728 (value_range_base::type): VARYING can have a type, while UNDEFINE
15730 (value_range_base::dump): Print type for VARYING nodes.
15731 (value_range_base::set): Add type to VARYING.
15732 (extract_range_from_multiplicative_op): Pass type to set_varying.
15733 (extract_range_from_binary_expr): Same.
15734 (value_range_base::intersect_helper): Same.
15735 (value_range_base::union_helper): Same.
15736 (value_range_base::normalize_symbolics): Same.
15737 (determine_value_range_1): Same.
15738 * tree-vrp.h (class value_range_base): Add type to set_varying.
15739 Add prototype for dump(void).
15740 Add prototype for supports_type_p.
15741 (class value_range): Add type to set_varying.
15742 Add prototype for dump(void).
15743 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15745 (vr_values::get_lattice_entry): Set varying even if propagation
15747 Pass type to set_varying.
15748 (vr_values::get_value_range): Remove vr_const_varying.
15749 Reallocate the lattice if needed.
15750 (vr_values::update_value_range): Pass type to set_varying.
15751 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15752 (vr_values::extract_range_from_binary_expr): Same.
15753 (vr_values::extract_range_from_unary_expr): Same.
15754 (vr_values::extract_range_from_cond_expr): Same.
15755 (vr_values::check_for_binary_op_overflow): Same.
15756 (vr_values::extract_range_basic): Same.
15757 (vr_values::extract_range_from_assignment): Same.
15758 (vr_values::vr_values): Increase size of num_vr_values.
15759 (vr_values::extract_range_from_phi_node): Pass type to
15762 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15765 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15766 for costs of hard register moves.
15767 (ix86_register_move_cost): Likewise.
15768 * config/i386/i386.h (processor_costs): Move costs of hard
15769 register moves to hard_register. Add int_load, int_store,
15770 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15771 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15772 for costs of RTL expressions.
15773 * config/i386/x86-tune-costs.h: Move costs of hard register
15774 moves to hard_register. Duplicate int_load, int_store,
15775 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15776 sse_load, sse_store for costs of RTL expressions.
15778 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15780 * target.def (setup_incoming_vararg_bounds): Remove.
15781 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15782 * doc/tm.texi: Regenerate.
15783 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15784 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15785 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15786 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15788 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15790 MSP430: Fix lines over 80 characters long in
15791 config/msp430/*.{c,h} files
15793 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15794 specifier in string.
15795 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15796 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15797 redundant old comment.
15798 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15799 Split line more than 80 characters long.
15800 * config/msp430/msp430.c (msp430_option_override): Likewise.
15801 (msp430_return_in_memory): Likewise.
15802 (msp430_gimplify_va_arg_expr): Likewise.
15803 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15804 (msp430_legitimate_constant): Likewise.
15805 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15806 (msp430_attr): Likewise.
15807 (msp430_data_attr): Likewise.
15808 (msp430_start_function): Likewise.
15809 (gen_prefix): Likewise.
15810 (msp430_init_sections): Likewise.
15811 (msp430_select_section): Likewise.
15812 (msp430_function_section): Likewise.
15813 (msp430_unique_section): Likewise.
15814 (msp430_output_aligned_decl_common): Likewise.
15815 (msp430_do_not_relax_short_jumps): Likewise.
15816 (msp430_init_builtins): Likewise.
15817 (msp430_expand_delay_cycles): Likewise.
15818 (msp430_expand_prologue): Likewise.
15819 (msp430_expand_epilogue): Likewise.
15820 (msp430_expand_helper): Likewise.
15821 (msp430_split_movsi): Likewise.
15822 (msp430_print_operand): Likewise.
15823 (msp430_return_addr_rtx): Likewise.
15824 (msp430x_extendhisi): Likewise.
15825 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15826 (ASM_SPEC): Likewise.
15827 Remove very obvious comments.
15828 (LIB_SPEC): Split line more than 80 characters long.
15829 (EH_RETURN_HANDLER_RTX): Likewise.
15830 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15832 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15834 MSP430: Fix whitespace errors and incorrect indentation in
15835 config/msp430/*.{c,h} files
15837 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15838 (msp430_select_hwmult_lib): Likewise.
15839 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15840 (msp430_extract_mcu_data): Likewise.
15841 (struct t_msp430_mcu_data): Likewise.
15842 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15843 before left square bracket.
15844 (msp430_option_override): Fix indentation.
15845 (msp430_hard_regno_nregs_with_padding): Likewise.
15846 (msp430_initial_elimination_offset): Likewise.
15847 (msp430_special_register_convention_p): Remove whitespace before left
15848 square bracket and after exclamation mark.
15849 (msp430_evaluate_arg): Likewise.
15850 (msp430_callee_copies): Fix indentation.
15851 (msp430_gimplify_va_arg_expr): Likewise.
15852 (msp430_function_arg_advance): Remove whitespace before left square
15854 (reg_ok_for_addr): Likewise.
15855 (msp430_preserve_reg_p): Likewise.
15856 (msp430_compute_frame_info): Likewise.
15857 (msp430_asm_output_addr_const_extra): Add space between function name
15858 and open parenthesis.
15859 (has_section_name): Fix indentation.
15860 (msp430_attr): Remove trailing whitespace.
15861 (msp430_section_attr): Likewise.
15862 (msp430_data_attr): Likewise.
15863 (struct msp430_attribute_table): Fix comment and whitespace.
15864 (msp430_start_function): Remove whitespace before left square bracket.
15865 Add space between function name and open parenthesis.
15866 (msp430_select_section): Remove trailing whitespace.
15867 (msp430_section_type_flags): Remove trailing whitespace.
15868 (msp430_unique_section): Remove space before closing parenthesis.
15869 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15870 (msp430_builtins): Remove whitespace before left square bracket.
15871 (msp430_init_builtins): Fix indentation.
15872 (msp430_expand_prologue): Remove whitespace before left square bracket.
15873 Remove space before closing parenthesis.
15874 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15875 (msp430_split_movsi): Remove space before closing parenthesis.
15876 (helper_function_name_mappings): Fix indentation.
15877 (msp430_use_f5_series_hwmult): Fix whitespace.
15878 (use_32bit_hwmult): Likewise.
15879 (msp430_no_hwmult): Likewise.
15880 (msp430_output_labelref): Remove whitespace before left square bracket.
15881 (msp430_print_operand_raw): Likewise.
15882 (msp430_print_operand_addr): Likewise.
15883 (msp430_print_operand): Add two spaces after '.' in comment.
15884 Fix trailing whitespace.
15885 (msp430x_extendhisi): Fix indentation.
15886 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15888 (PC_REGNUM): Likewise.
15889 (STACK_POINTER_REGNUM): Likewise.
15890 (CC_REGNUM): Likewise.
15892 2019-08-15 Richard Biener <rguenther@suse.de>
15895 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15897 (general_scalar_chain::make_vector_copies): Use it.
15899 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15901 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15903 2019-08-15 Martin Liska <mliska@suse.cz>
15905 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15906 operators with no arguments.
15907 (eliminate_unnecessary_stmts): Likewise here.
15909 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15911 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15912 <case COMPARE>: Revert 2019-08-14 change.
15913 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15914 for (TARGET_64BIT || mode != DImode).
15916 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15918 * tree-vrp.c (value_range_base::set): Merge in code from
15919 value_range_base::set_and_canonicalize.
15920 Enforce canonicalization at set time.
15921 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15922 (value_range_base::set_undefined): Inline call to set().
15923 (value_range_base::set_varying): Same.
15924 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15925 (vrp_val_max): New argument handle_pointers.
15926 (vrp_val_min): Same.
15927 (ranges_from_anti_range): Same.
15928 (extract_range_into_wide_ints): Use tree argument instead of sign
15930 (extract_range_from_multiplicative_op): Take in tree type instead
15931 of precision and sign. Adapt function for canonicalized ranges.
15932 (extract_range_from_binary_expr): Pass type to
15933 extract_range_from_multiplicative_op.
15934 Adapt for canonicalized ranges.
15935 (extract_range_from_unary_expr): Same.
15936 (value_range_base::intersect_helper): Adjust for canonicalized
15938 (value_range_base::union_helper): Same.
15939 (value_range_base::normalize_symbolics): New.
15940 * tree-vrp.h (class value_range_base): Remove
15941 set_and_canonicalize.
15942 New prototype for normalize_symbolics.
15943 (class value_range): Remove set_and_canonicalize.
15944 (vrp_val_min): Adjust prototype.
15945 (vrp_val_max): Same.
15947 (vr_values::extract_range_for_var_from_comparison_expr): Call set
15948 instead of set_and_canonicalize.
15950 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15952 PR middle-end/91444
15953 * tree-vect-stmts.c (vectorizable_call): Check that the function
15954 is a BUILT_IN_MD function before passing it to
15955 targetm.vectorize.builtin_md_vectorized_function.
15957 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15959 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
15960 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
15961 (aarch64_select_early_remat_modes): Use it.
15963 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15965 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
15966 16 for SVE predicates even if they are fixed-length.
15968 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15970 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
15971 operand order match the MOV /Z alias.
15973 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15975 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
15976 the vector pattern as an aarch64_svpattern argument. Update the
15977 overloaded caller accordingly.
15978 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
15979 (aarch64_output_sve_vector_inc_dec): Likewise.
15981 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15983 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
15984 multiplication case, try to compute VG * (lowest set bit) directly
15985 rather than always basing the multiplication on VG. Use
15986 expand_mult for the multiplication if we can.
15988 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15990 * config/aarch64/aarch64-protos.h
15991 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
15992 (aarch64_sve_inc_dec_immediate_p): Rename to...
15993 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
15994 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
15995 (aarch64_output_sve_scalar_inc_dec): Declare.
15996 (aarch64_output_sve_inc_dec_immediate): Rename to...
15997 (aarch64_output_sve_vector_inc_dec): ...this.
15998 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
15999 (aarch64_output_sve_scalar_inc_dec): New functions.
16000 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16001 arguments. Only handle true ADDVL and ADDPL instructions;
16002 don't emit an INC or DEC.
16003 (aarch64_sve_inc_dec_immediate_p): Rename to...
16004 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16005 (aarch64_output_sve_inc_dec_immediate): Rename to...
16006 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16007 aarch64_sve_vector_inc_dec_immediate_p.
16008 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16009 (aarch64_sve_plus_immediate): New predicates.
16010 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16011 rather than aarch64_sve_addvl_addpl_immediate.
16012 (aarch64_sve_inc_dec_immediate): Rename to...
16013 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16014 aarch64_sve_vector_inc_dec_immediate_p.
16015 (aarch64_sve_add_operand): Update accordingly.
16016 * config/aarch64/constraints.md (Uai): New constraint.
16017 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16018 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16019 operand into a register if it satisfies aarch64_sve_plus_immediate.
16020 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16021 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16022 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16023 aarch64_output_sve_vector_inc_dec instead of
16024 aarch64_output_sve_inc_dec_immediate.
16026 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16028 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16029 (UNSPEC_REVW): New constants.
16030 (elem_bits): New mode attribute.
16031 (SVE_INT_UNARY): New int iterator.
16032 (optab): Handle UNSPEC_REV[BHW].
16033 (sve_int_op): New int attribute.
16034 (min_elem_bits): Handle VNx16QI and the predicate modes.
16035 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16036 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16037 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16038 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16039 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16040 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16041 unspecs based on the total width of the reversed data.
16042 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16043 reinterpret followed by a subreg on big-endian targets.
16045 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16046 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16048 * config/aarch64/aarch64-sve.md
16049 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16050 alternatives in which one of the inputs is in the same register
16053 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16055 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16056 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16058 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16060 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16061 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16063 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16064 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16066 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16067 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16068 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16070 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16071 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16073 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16074 Add an alternative that uses reversed shifts.
16076 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16078 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16081 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16083 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16084 a commutativity marker.
16086 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16087 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16089 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16090 (aarch64_prepare_sve_cond_int_fma): Declare.
16091 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16092 (aarch64_prepare_sve_int_fma): New functions.
16093 (aarch64_prepare_sve_cond_int_fma): Likewise.
16094 * config/aarch64/aarch64-sve.md
16095 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16096 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16097 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16098 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16099 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16100 (*madd<mode>): Rename to...
16101 (*fma<mode>4): ...this.
16102 (*msub<mode>): Rename to...
16103 (*fnma<mode>4): ...this.
16105 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16106 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16108 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16109 Print 2.0 naturally.
16110 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16111 * config/aarch64/predicates.md
16112 (aarch64_sve_float_negated_arith_immediate): New predicate,
16113 renamed from aarch64_sve_float_arith_with_sub_immediate.
16114 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16115 positive and negative constants.
16116 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16117 or an aarch64_sve_float_arith_with_sub_immediate.
16118 * config/aarch64/constraints.md (vsN): Use
16119 aarch64_sve_float_negated_arith_immediate.
16120 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16122 (sve_pred_fp_rhs2_immediate): New int attribute.
16123 * config/aarch64/aarch64-sve.md
16124 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16125 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16126 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16127 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16128 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16129 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16131 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16132 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16134 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16135 (*aarch64_cond_abd<SVE_F:mode>_3)
16136 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16138 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16139 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16141 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16142 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16144 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16145 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16147 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16148 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16149 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16150 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16152 * optabs.h (create_convert_operand_from): Expand comment.
16153 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16154 when mapping scalar rtxes to vector operands.
16155 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16156 ashiftrt and lshiftrt.
16157 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16158 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16159 (*cond_<optab><mode>_any_const): New patterns.
16161 2019-08-15 Martin Liska <mliska@suse.cz>
16164 * cgraph.c (cgraph_node::remove): When setting
16165 n->origin = NULL for all nested functions, reset
16168 2019-08-15 Martin Liska <mliska@suse.cz>
16170 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16173 2019-08-15 Martin Liska <mliska@suse.cz>
16176 * passes.c (order): Remove.
16177 (uid_hash_t): Likewise).
16178 (remove_cgraph_node_from_order): Remove from set
16179 of pointers (cgraph_node *).
16180 (insert_cgraph_node_to_order): New.
16181 (duplicate_cgraph_node_to_order): New.
16182 (do_per_function_toporder): Register all 3 cgraph hooks.
16183 Skip removed_nodes now as we know about all of them.
16185 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16187 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16188 <case E_V8QImode>: Use vector_set path for
16189 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16190 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16191 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16193 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16195 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16197 2019-08-14 Martin Sebor <msebor@redhat.com>
16199 PR tree-optimization/91294
16200 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16201 source length as exact.
16203 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16205 * doc/extend.texi: Add "noinit" attribute documentation.
16206 * doc/sourcebuild.texi: Add noinit effective target documentation.
16207 * varasm.c (default_section_type_flags): Add support for "noinit"
16209 (default_elf_select_section): Add support for "noinit" attribute.
16210 * config/msp430/msp430.c (msp430_attribute_table): Remove
16213 2019-08-14 Richard Biener <rguenther@suse.de>
16214 Uroš Bizjak <ubizjak@gmail.com>
16217 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16219 (scalar_chain::smode): New member.
16220 (scalar_chain::vmode): Likewise.
16221 (dimode_scalar_chain): Rename to...
16222 (general_scalar_chain): ... this.
16223 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16224 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16225 base with TImode and V1TImode.
16226 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16227 (general_scalar_chain::vector_const_cost): Adjust for SImode
16229 (general_scalar_chain::compute_convert_gain): Likewise. Add
16230 {S,U}{MIN,MAX} support.
16231 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16232 (general_scalar_chain::make_vector_copies): Likewise. Handle
16233 non-DImode chains appropriately.
16234 (general_scalar_chain::convert_reg): Likewise.
16235 (general_scalar_chain::convert_op): Likewise.
16236 (general_scalar_chain::convert_insn): Likewise. Add
16237 fatal_insn_not_found if the result is not recognized.
16238 (convertible_comparison_p): Pass in the scalar mode and use that.
16239 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16240 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16241 (scalar_to_vector_candidate_p): Remove by inlining into single
16243 (general_remove_non_convertible_regs): Rename from
16244 dimode_remove_non_convertible_regs.
16245 (remove_non_convertible_regs): Remove by inlining into single caller.
16246 (convert_scalars_to_vector): Handle SImode and DImode chains
16247 in addition to TImode chains.
16248 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16249 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16250 (*<maxmin>di3_doubleword): Likewise.
16252 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16253 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16255 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16256 (*cond_bic<mode>_any): New patterns.
16258 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16260 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16261 take the equivalent mask, as well as a bit count.
16262 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16263 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16264 (aarch64_sve_pred_and_operand): New predicates.
16265 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16267 * config/aarch64/aarch64-sve.md
16268 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16269 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16271 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16273 * config/aarch64/aarch64-sve.md
16274 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16275 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16278 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16279 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16281 * config/aarch64/aarch64-sve.md
16282 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16283 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16285 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16286 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16288 * config/aarch64/aarch64-sve.md
16289 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16290 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16292 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16294 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16295 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16298 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16299 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16301 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16303 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16304 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16306 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16307 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16308 (aarch64_print_operand): Add support for %I.
16309 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16310 Bitcast floating-point constants to the corresponding integer constant.
16311 (aarch64_float_const_representable_p): Handle vectors as well
16313 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16314 for the new vcond_mask_<mode><vpred> expander.
16315 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16316 test aarch64_float_const_representable_p.
16317 (aarch64_sve_reg_or_dup_imm): New predicate.
16318 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16319 gen_vcond_mask_<mode><vpred> instead of
16320 gen_aarch64_sve_dup<mode>_const.
16321 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16322 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16323 for operands 1 and 2 respectively. Force operand 2 into a
16324 register if operand 1 is a register. Fold old define_insn...
16325 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16326 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16327 floating-point constants that can be moved as integers. Add
16328 alternatives for MOV /M and FMOV /M.
16329 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16330 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16331 1 and 2 respectively.
16332 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16334 (vss): New constraint.
16336 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16338 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16339 (aarch64_sve_float_maxmin_operand): New predicates.
16340 * config/aarch64/constraints.md (vsB): New constraint.
16342 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16343 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16344 UNSPEC_COND_FMINNM.
16345 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16346 Use aarch64_sve_float_maxmin_operand for operand 2.
16347 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16348 Add alternatives for the constant forms.
16350 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16352 * config/aarch64/constraints.md (vsb): New constraint.
16353 (vsm): Generalize description.
16354 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16356 (sve_imm_con): Handle smax, smin, umax and umin.
16357 (sve_imm_prefix): New code attribute.
16358 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16359 (aarch64_sve_vsb_operand): New predicates.
16360 (aarch64_sve_mul_immediate): Rename to...
16361 (aarch64_sve_vsm_immediate): ...this.
16362 (aarch64_sve_mul_operand): Rename to...
16363 (aarch64_sve_vsm_operand): ...this.
16364 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16365 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16366 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16367 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16368 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16369 add movprfx support for the immediate alternatives.
16370 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16372 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16375 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16377 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16378 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16379 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16381 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16383 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16384 (optab, sve_int_op): Handle them.
16385 * config/aarch64/aarch64-sve.md: Expand comment.
16387 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16389 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16390 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16391 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16393 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16395 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16396 (aarch64_expand_sve_const_pred_trn): New functions.
16397 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16398 use the above functions when the parameter is true.
16399 (aarch64_expand_sve_const_pred): Update call accordingly.
16400 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16402 (@aarch64_sve_<perm_insn><mode>): ...this.
16404 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16406 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16408 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16409 (aarch64_sve_emit_int_cmp): New functions.
16410 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16411 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16412 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16413 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16414 (UNSPEC_PRED_Z): New unspec.
16415 (set_clobber_cc_nzc): Delete.
16416 * config/aarch64/aarch64-sve.md: Add a block comment about
16418 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16419 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16420 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16421 UNSPEC_MERGE_PTRUE.
16422 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16423 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16424 check for compatible predicates.
16425 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16426 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16427 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16430 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16432 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16433 * config/aarch64/aarch64-sve.md: Add a section describing it.
16434 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16435 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16436 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16437 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16438 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16439 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16440 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16441 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16442 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16443 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16444 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16445 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16446 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16447 (aarch64_evpc_rev_local): Update accordingly.
16449 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16451 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16453 (SVE_BHSI, SVE_SDI): Tweak comment.
16454 (SVE_HSDI): Likewise. Fix definition.
16455 (SVE_SDF): New mode iterator.
16456 (elem_bits): New mode attribute.
16457 (SVE_COND_FCVT): New int iterator.
16458 * config/aarch64/aarch64-sve.md
16459 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16460 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16461 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16462 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16463 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16464 ...these new patterns.
16465 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16466 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16467 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16469 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16470 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16471 ...these new patterns.
16472 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16473 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16474 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16475 ...this new pattern.
16476 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16477 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16478 ...this new pattern.
16479 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16481 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16483 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16484 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16485 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16487 (optab, su): Handle them.
16488 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16489 * config/aarch64/aarch64-sve.md
16490 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16491 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16492 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16493 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16494 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16495 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16496 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16497 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16498 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16500 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16501 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16502 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16503 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16504 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16505 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16506 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16507 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16508 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16509 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16510 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16511 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16512 of UNSPEC_FLOAT_CONVERT.
16513 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16514 aarch64_sve_extend<mode><Vwide>2.
16516 2019-08-14 Richard Biener <rguenther@suse.de>
16519 * config/i386/i386-features.c
16520 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16521 individual instruction gain. Fix reg-reg copy GRP cost. Use
16522 ix86_cost->sse_op for vector instruction costs.
16524 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16526 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16527 (cmp_op): Handle it.
16528 (SVE_COND_FP_CMP): Rename to...
16529 (SVE_COND_FP_CMP_I0): ...this.
16530 (SVE_FP_CMP): Remove.
16531 * config/aarch64/aarch64-sve.md
16532 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16533 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16534 using unspecs to represent the comparison.
16535 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16536 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16538 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16539 (aarch64_unspec_cond_code): Move after integer code. Handle
16541 (aarch64_emit_sve_predicated_cond): Replace with...
16542 (aarch64_emit_sve_fp_cond): ...this new function.
16543 (aarch64_emit_sve_or_conds): Replace with...
16544 (aarch64_emit_sve_or_fp_conds): ...this new function.
16545 (aarch64_emit_sve_inverted_cond): Replace with...
16546 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16547 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16549 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16551 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16552 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16553 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16554 SVE_HSD instead of SVE_SD.
16556 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16557 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16559 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16561 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16563 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16564 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16565 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16566 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16567 (*div<SVE_F:mode>3): Generalize to...
16568 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16570 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16571 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16573 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16575 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16577 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16579 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16581 * config/aarch64/aarch64-sve.md: Add a block comment about the
16582 handling of predicated FP operations.
16583 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16584 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16585 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16586 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16587 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16589 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16590 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16592 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16593 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16594 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16595 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16596 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16597 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16598 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16599 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16600 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16601 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16602 strictness operands. Use aarch64_sve_pred_dominates_p to check
16603 whether the predicate on the conditional operation is suitable
16604 for merging. Split patterns into the canonical equal-predicate form.
16605 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16606 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16608 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16609 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16611 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16612 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16613 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16615 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16616 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16619 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16620 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16622 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16623 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16624 actually has, rather than relying on REG_EQUAL notes.
16625 Make the insn operand order match the SVE operand order.
16626 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16627 the SVE operand order.
16629 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16631 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16632 (aarch64_emit_set_immediate): Likewise.
16633 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16634 (aarch64_pfalse_reg): Likewise.
16635 (aarch64_convert_sve_data_to_pred): New function.
16636 (aarch64_sve_move_pred_via_while): Take an optional target register
16637 and the required register mode.
16638 (aarch64_expand_sve_const_pred_1): New function.
16639 (aarch64_expand_sve_const_pred): Likewise.
16640 (aarch64_expand_mov_immediate): Build an all-true predicate
16641 if the significant bits of the immediate are all true. Use
16642 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16643 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16644 before register allocation.
16645 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16646 a VNx16BI PTRUE when splitting the memory alternative.
16647 (vec_duplicate<mode>): Update accordingly.
16648 (*pred_cmp<cmp_op><mode>): Rename to...
16649 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16651 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16653 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16654 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16655 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16656 (UNSPEC_PTEST): New unspec.
16657 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16658 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16659 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16660 * config/aarch64/aarch64-sve.md: Add a new section describing the
16661 handling of UNSPEC_PTEST.
16662 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16663 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16664 (ptest_ptrue<mode>): Replace with...
16665 (aarch64_ptest<mode>): ...this new pattern.
16666 (cbranch<mode>4): Update after above changes.
16667 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16668 UNSPEC_PTEST_PTRUE.
16669 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16670 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16671 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16673 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16676 * builtins.c (builtin_with_linkage_p): New function.
16677 * builtins.h (builtin_with_linkage_p): New function.
16678 * symtab.c (write_symbol): Remove redundant assert.
16679 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16680 Remove FIXME and use builtin_with_linkage_p.
16682 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16684 PR middle-end/91421
16685 * tree-core.h (function_decl::function_code): Change type to
16687 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16688 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16689 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16690 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16691 is BUILT_IN_NORMAL.
16692 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16693 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16694 (fndecl_built_in_p): Change the type of the "name" argument to
16696 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16697 after check for DECL_BUILT_IN_CLASS.
16698 * cgraphclones.c (build_function_decl_skip_args): Use
16699 set_decl_built_in_function.
16700 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16701 * ipa-split.c (split_function): Likewise.
16702 * langhooks.c (add_builtin_function_common): Likewise.
16703 * omp-simd-clone.c (simd_clone_create): Likewise.
16704 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16705 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16706 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16707 DECL_FUNCTION_CODE.
16708 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16709 instead of DECL_FUNCTION_CODE.
16710 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16711 instead of DECL_FUNCTION_CODE.
16712 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16713 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16714 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16715 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16716 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16717 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16718 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16719 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16720 (alpha_gimple_fold_builtin): Likewise.
16721 * config/arc/arc.c (arc_expand_builtin): Likewise.
16722 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16723 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16724 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16725 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16726 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16727 * config/frv/frv.c (frv_expand_builtin): Likewise.
16728 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16729 (gcn_expand_builtin): Likewise.
16730 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16731 (fold_builtin_cpu): Likewise.
16732 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16733 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16734 (ix86_gimple_fold_builtin): Likewise.
16735 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16736 (ia64_expand_builtin): Likewise.
16737 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16738 * config/mips/mips.c (mips_expand_builtin): Likewise.
16739 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16740 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16741 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16742 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16743 * config/pa/pa.c (pa_expand_builtin): Likewise.
16744 * config/pru/pru.c (pru_expand_builtin): Likewise.
16745 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16746 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16748 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16749 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16750 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16751 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16752 (rs6000_builtin_reciprocal): Likewise.
16753 * config/rx/rx.c (rx_expand_builtin): Likewise.
16754 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16755 * config/s390/s390.c (s390_expand_builtin): Likewise.
16756 * config/sh/sh.c (sh_expand_builtin): Likewise.
16757 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16758 (sparc_fold_builtin): Likewise.
16759 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16760 * config/spu/spu.c (spu_expand_builtin): Likewise.
16761 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16762 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16763 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16764 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16765 (xtensa_expand_builtin): Likewise.
16767 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16769 PR middle-end/91421
16770 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16771 before the DECL_FUNCTION_CODE.
16772 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16773 to check for a BUILT_IN_ALLOCA call.
16774 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16775 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16776 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16777 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16778 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16779 for BUILT_IN_NORMAL functions.
16780 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16781 test for BUILT_IN_TM_ABORT.
16782 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16783 to check for a BUILT_IN_STACK_RESTORE call.
16784 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16785 * tree-ssa-threadedge.c
16786 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16787 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16788 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16789 test for a BUILT_IN_NORMAL call instead of a negative test for
16790 an internal function call.
16792 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16794 * tree.h (build_vector_a_then_b): Declare.
16795 * tree.c (build_vector_a_then_b): New function.
16796 * fold-const-call.c (fold_while_ult): Likewise.
16797 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16798 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16799 (aarch64_svpattern): New enum.
16800 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16801 constants through aarch64_expand_mov_immediate.
16802 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16803 than general_operand as the predicate for operand 1.
16804 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16805 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16807 (simd_immediate_info::simd_immediate_info): New overload that
16808 takes a scalar_int_mode and an svpattern.
16809 (simd_immediate_info::u): Add a "pattern" field.
16810 (svpattern_token): New function.
16811 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16812 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16813 (aarch64_sve_move_pred_via_while): New functions.
16814 (aarch64_expand_mov_immediate): Try using
16815 aarch64_sve_move_pred_via_while for predicates that contain N ones
16816 followed by M zeros but that do not correspond to a VLnnn pattern.
16817 (aarch64_sve_pred_valid_immediate): New function.
16818 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16819 with PTRUE and PFALSE.
16820 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16823 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16825 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16827 (darwin_override_options): Likewise.
16828 * config/darwin.h: Likewise.
16829 * config/darwin.opt: Likewise.
16830 * config/i386/i386.c (output_pic_addr_const): Likewise.
16831 * config/rs6000/darwin.h: Likewise.
16832 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16833 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16834 ... this TARGET_MACHO_SYMBOL_STUBS.
16835 (FUNCTION_PROFILER):Likewise.
16836 * config/i386/i386.h: Likewise.
16838 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16840 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16841 <case E_V2SImode>: Use vec_extr path for
16842 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16843 <case E_V8QImode>: Ditto.
16844 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16845 Use SWI48 mode iterator. Use %k to output operand 0.
16846 (*mmx_pextrw): New insn pattern.
16847 (*mmx_pextrb): Ditto.
16848 (*mmx_pextrb_zext): Ditto.
16850 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16852 * target.def (libc_has_function, libc_has_fast_function): Improve
16853 documentation strings.
16854 * doc/tm.texi: Regenerate.
16856 2019-08-13 Caroline Tice <cmtice@google.com>
16859 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16860 vtv_end.o or vtv_end_preinit.o files if !static.
16862 2019-08-13 Olivier Hainque <hainque@adacore.com>
16864 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16866 2019-08-13 Olivier Hainque <hainque@adacore.com>
16868 * rtlanal.c (tablejump_casesi_pattern): New function, to
16869 determine if a tablejump insn is a casesi dispatcher. Extracted
16870 from patch_jump_insn.
16871 * rtl.h (tablejump_casesi_pattern): Declare.
16872 * cfgrtl.c (patch_jump_insn): Use it.
16873 * dwarf2cfi.c (create_trace_edges): Use it.
16875 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16878 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16879 operand is larger than a long int.
16881 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16883 * machmode.h (opt_mode::else_mode): New function.
16884 (opt_mode::else_blk): Use it.
16885 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16886 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16887 (aarch64_gen_stepped_int_parallel): Likewise.
16888 (aarch64_stepped_int_parallel_p): Likewise.
16889 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16891 * config/aarch64/aarch64.c
16892 (aarch64_expand_sve_widened_duplicate): Delete.
16893 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16894 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16895 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16896 argument. Use early returns in the !CONST_INT_P handling.
16897 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16898 than handling some inline.
16899 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16901 (aarch64_simd_container_mode): ...here.
16902 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16903 (aarch64_sve_ld1rq_operand_p): New functions.
16904 * config/aarch64/predicates.md (descending_int_parallel)
16905 (aarch64_sve_ld1rq_operand): New predicates.
16906 * config/aarch64/constraints.md (UtQ): New constraint.
16907 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16908 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16909 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16910 (@aarch64_sve_reinterpret<mode>): New expander.
16911 (*aarch64_sve_reinterpret<mode>): New pattern.
16912 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16913 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16914 (*sve_ld1rq<Vesize>): Replace with...
16915 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16917 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16919 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16922 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16924 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16925 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16926 (msp430_check_path_for_devices): New.
16927 (parse_devices_csv_1): New.
16928 (parse_devices_csv): New.
16929 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16930 MCU data in devices.csv before using the hard-coded data.
16931 Warn if devices.csv isn't found and the MCU wasn't found in the
16932 hard-coded data either.
16933 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16934 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16935 Search for devices.csv on -I and -L paths.
16936 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16937 msp430_set_driver_var.
16938 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16939 -mdevices-csv-loc=.
16940 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16941 searched for devices.csv.
16942 (mwarn-devices-csv): Document option.
16944 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16946 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
16947 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
16948 Use a single Dn alternative instead of separate Dz and Dm
16949 alternatives. Use aarch64_output_sve_move_immediate.
16950 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
16952 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
16953 for predicates too.
16954 (aarch64_output_sve_mov_immediate): Handle predicate modes.
16955 (aarch64_output_ptrue): Delete.
16957 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16959 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
16961 (simd_immediate_info::value, simd_immediate_info::step)
16962 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
16964 (simd_immediate_info::u): ...this new union.
16965 (simd_immediate_info::simd_immediate_info): Update accordingly.
16966 (aarch64_output_simd_mov_immediate): Likewise.
16967 (aarch64_output_sve_mov_immediate): Likewise.
16969 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16971 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
16973 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
16974 (msp430_select_cpu): New spec function.
16975 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
16977 * config/msp430/msp430-devices.c: New file.
16978 * config/msp430/msp430-devices.h: New file.
16979 * config/msp430/msp430.c: Remove msp430_mcu_data.
16980 (msp430_option_override): Use msp430_extract_mcu_data to extract
16982 (msp430_use_f5_series_hwmult): Likewise.
16983 (use_32bit_hwmult): Likewise.
16984 (msp430_no_hwmult): Likewise.
16985 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
16987 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
16989 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
16990 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
16991 Remove hard-coded MCU multilib data.
16993 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16995 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
16996 based on the mode instead of testing properties of it.
16998 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17000 * doc/md.texi: Document the x and y constraints for AArch64.
17001 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17002 (FP_LO8_REGS): New reg_class.
17003 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17004 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17005 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17006 * config/aarch64/predicates.md (aarch64_simd_register): Use
17007 FP_REGNUM_P instead of checking the classes manually.
17008 * config/aarch64/constraints.md (y): New constraint.
17010 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17012 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17013 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17014 * config/aarch64/aarch64-simd.md
17015 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17016 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17017 from the asm template.
17018 * config/aarch64/aarch64-sve.md
17019 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17020 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17021 from the asm template.
17022 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17023 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17024 from the asm template.
17025 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17027 2019-08-13 Martin Liska <mliska@suse.cz>
17029 * value-prof.c (gimple_ic_transform): Add new line.
17030 Print details with MSG_NOTE.
17032 2019-08-13 Martin Liska <mliska@suse.cz>
17034 * doc/invoke.texi: Document automatic detection of jobserver.
17035 * lto-wrapper.c (run_gcc): Detect jobserver always.
17037 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17039 * config/i386/i386-expand.c (ix86_expand_vector_set)
17040 <case E_V2SImode>: Use vec_merge path for
17041 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17042 <case E_V8QImode>: Ditto.
17043 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17044 (*mmx_pinsrb): Ditto.
17046 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17050 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17051 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17052 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17053 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17054 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17056 2019-08-12 Richard Biener <rguenther@suse.de>
17059 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17062 2019-08-12 Richard Biener <rguenther@suse.de>
17065 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17066 lang_mask option, always use CL_DRIVER.
17067 (get_options_from_collect_gcc_options): Adjust.
17068 (find_and_merge_options): Likewise.
17069 (run_gcc): Likewise.
17071 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17073 * ipa-predicate.c (add_condition): Restore inverted test.
17075 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17077 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17078 (enum omp_clause_device_type_kind): New enum.
17079 (struct tree_omp_clause): Add subcode.device_type_kind.
17080 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17081 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17082 for device_type clause.
17083 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17084 * tree-pretty-print.c (dump_omp_clause): Likewise.
17087 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17090 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17092 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17093 handling spilled pseudos.
17095 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17098 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17099 to preserve the contents of the original insns.
17101 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17103 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17104 (addsi3_compare_op2): Likewise.
17106 2019-08-09 Martin Liska <mliska@suse.cz>
17108 * alias.c (alias_ptr_types_compatible_p): Strengten
17109 type comparison in LTO mode.
17111 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17113 PR middle-end/90313
17114 * tree-tailcall.c (find_tail_calls): Reject calls that might
17115 read from an escaped RESULT_DECL.
17117 2019-08-09 Martin Liska <mliska@suse.cz>
17119 * doc/invoke.texi: Document the option value.
17120 * lto-wrapper.c (run_gcc): Set auto_parallel
17121 only with -flto=auto.
17123 2019-08-09 Martin Liska <mliska@suse.cz>
17125 * opts.c (common_handle_option): Error for an invalid argument
17128 2019-08-09 Martin Liska <mliska@suse.cz>
17130 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17131 use dump_printf to report optimization.
17132 (sem_variable::merge): Likwise.
17133 (sem_item_optimizer::merge_classes): Use dump_printf to report
17136 2019-08-09 Martin Liska <mliska@suse.cz>
17138 * value-prof.c (gimple_divmod_fixed_value_transform):
17139 Use dump_printf_loc.
17140 (gimple_mod_pow2_value_transform): Likewise.
17141 (gimple_mod_subtract_transform): Likewise.
17142 (init_node_map): Likewise.
17143 (gimple_ic_transform): Likewise.
17144 (gimple_stringops_transform): Likewise.
17146 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17148 * doc/extend.texi: Add const qualifier to ld intrinsics.
17150 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17152 * config/rs6000/dfp.md (D64_D128): Rename to ...
17153 (DDTD): ... this, throughout.
17154 (dfp_suffix): Rename to ...
17155 (q): ... this, throughout.
17157 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17159 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17160 (dfp_suffix): Ditto.
17161 (adddd3, addtd3): Merge to ...
17162 (add<mode>3 for D64_D128): ... this.
17163 (subdd3, subtd3): Merge to ...
17164 (sub<mode>3 for D64_D128): ... this.
17165 (muldd3, multd3): Merge to ...
17166 (mul<mode>3 for D64_D128): ... this.
17167 (divdd3, divtd3): Merge to ...
17168 (div<mode>3 for D64_D128): ... this.
17169 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17170 (*cmp<mode>_internal1 for D64_D128): ... this.
17171 (ftruncdd2, ftrunctd2): Merge to ...
17172 (ftrunc<mode>2 for D64_D128): ... this.
17173 (fixdddi2, fixtddi2): Merge to ...
17174 (fix<mode>di2 for D64_D128): ... this.
17176 2019-08-08 Jim Wilson <jimw@sifive.com>
17179 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17180 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17181 Pass into recursive call.
17182 (riscv_flatten_aggregate_argument): New arg. Pass to
17183 riscv_flatten_aggregate_field.
17184 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17185 riscv_flatten_aggregate_argument twice, with false and true as last
17186 arg. Process result twice. Compare results and warn if different.
17187 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17189 2019-08-08 Martin Liska <mliska@suse.cz>
17192 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17193 * lto-wrapper.c (jobserver_active_p): Likewise.
17195 2019-08-08 Martin Liska <mliska@suse.cz>
17197 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17198 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17199 (create_version_clone_with_body): Likewise.
17201 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17203 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17204 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17205 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17206 GOVD_EXPLICIT flags.
17207 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17208 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17209 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17210 call install_var_field with mask 11 instead of 3.
17211 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17212 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17214 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17216 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17217 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17219 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17221 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17222 MOVPRFX alternatives. Make the GPR alternatives more expensive
17225 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17227 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17228 Disparage the GPR alternative relative to the FPR one.
17229 Fix handling of 8-bit and 16-bit FPR values.
17231 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17233 * config/aarch64/iterators.md (BITWISEV): Delete.
17234 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17235 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17236 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17237 UNSPEC_FMINNMV, UNSPEC_FMINV.
17238 (bit_reduc_op): Delete.
17239 (sve_int_op): New int attribute.
17240 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17241 UNSPEC_FMINNMV, UNSPEC_FMINV.
17242 * config/aarch64/aarch64-sve.md
17243 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17244 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17245 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17246 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17247 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17248 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17250 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17251 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17252 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17253 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17254 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17257 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17259 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17260 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17261 (fms<mode>4, *fms<mode>4): Replace with...
17262 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17263 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17264 Use unspecs instead of rtx codes.
17265 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17266 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17268 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17270 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17272 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17273 * config/aarch64/aarch64-sve.md
17274 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17275 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17276 use a single unspec for the rhs.
17277 (*<su><maxmin><mode>3): Delete.
17278 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17280 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17282 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17283 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17284 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17285 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17286 (optab, sve_fp_op): Handle them.
17287 (SVE_FP_UNARY): Delete.
17288 (optab): Remove sqrt entry.
17289 (sve_fp_op): Remove neg, abs and sqrt entries.
17290 (SVE_COND_FP_UNARY): New int iterator.
17291 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17292 (*<frint_pattern><mode>2): Delete.
17293 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17294 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17295 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17296 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17298 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17300 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17302 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17304 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17305 (UNSPEC_COND_FADD): ...this.
17306 (UNSPEC_COND_SUB): Rename to...
17307 (UNSPEC_COND_FSUB): ...this.
17308 (UNSPEC_COND_MUL): Rename to...
17309 (UNSPEC_COND_FMUL): ...this.
17310 (UNSPEC_COND_DIV): Rename to...
17311 (UNSPEC_COND_FDIV): ...this.
17312 (UNSPEC_COND_MAX): Rename to...
17313 (UNSPEC_COND_FMAXNM): ...this.
17314 (UNSPEC_COND_MIN): Rename to...
17315 (UNSPEC_COND_FMINNM): ...this.
17316 (UNSPEC_COND_LT): Rename to...
17317 (UNSPEC_COND_FCMLT): ...this.
17318 (UNSPEC_COND_LE): Rename to...
17319 (UNSPEC_COND_FCMLE): ...this.
17320 (UNSPEC_COND_EQ): Rename to...
17321 (UNSPEC_COND_FCMEQ): ...this.
17322 (UNSPEC_COND_NE): Rename to...
17323 (UNSPEC_COND_FCMNE): ...this.
17324 (UNSPEC_COND_GE): Rename to...
17325 (UNSPEC_COND_FCMGE): ...this.
17326 (UNSPEC_COND_GT): Rename to...
17327 (UNSPEC_COND_FCMGT): ...this.
17328 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17329 (sve_fp_op_rev): Update accordingly.
17330 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17332 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17334 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17336 * config/aarch64/check-sve-md.awk: New file.
17337 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17338 (insn-conditions.md): Depend on it.
17340 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17343 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17344 (*negsi2_cmpz_zext): Ditto.
17346 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17348 * config/aarch64/iterators.md (commutative): Remove.
17350 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17353 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17354 processing COLLECT_GCC_OPTIONS.
17355 (run_gcc): Likewise.
17357 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17359 PR tree-optimization/91109
17360 * lra-remat.c (update_scratch_ops): Remove assignment of the
17363 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17365 * data-streamer.h (streamer_write_poly_uint64): Declare.
17366 (streamer_read_poly_uint64): Likewise.
17367 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17368 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17369 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17370 (add_condition): Take a poly_int64 size.
17371 * ipa-predicate.c (add_condition): Likewise.
17372 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17373 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17374 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17375 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17376 condition::size as a poly_int64.
17377 (unmodified_parm_1): Take a poly_int64 size pointer.
17378 (unmodified_parm): Likewise.
17379 (unmodified_parm_or_parm_agg_item): Likewise.
17380 (set_cond_stmt_execution_predicate): Update accordingly.
17381 (set_switch_stmt_execution_predicate): Likewise.
17382 (will_be_nonconstant_expr_predicate): Likewise.
17383 (will_be_nonconstant_predicate): Likewise.
17384 (inline_read_section): Stream condition::size as a poly_int.
17385 (ipa_fn_summary_write): Likewise.
17387 2019-08-07 Martin Liska <mliska@suse.cz>
17389 * fold-const.c (twoval_comparison_p): Replace int
17390 with bool as a return type.
17391 (simple_operand_p): Likewise.
17392 (operand_equal_p): Replace int with bool as a return type.
17393 * fold-const.h (operand_equal_p): Likewise.
17395 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17397 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17398 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17399 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17400 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17401 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17402 * tree-pretty-print.c (dump_omp_clause): Likewise.
17403 * tree-nested.c (convert_nonlocal_omp_clauses,
17404 convert_local_omp_clauses): Likewise.
17405 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17407 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17408 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17409 clause with array or reference to array types, no matter what type
17410 except for reference it has.
17412 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17414 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17416 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17418 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17419 (arch_canonicalize): Support rv32g and rv64g and fix error
17422 2019-08-06 Martin Liska <mliska@suse.cz>
17424 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17425 and DECL_IS_OPERATOR_DELETE_P.
17427 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17429 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17430 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17431 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17432 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17433 (gimplify_omp_for): Don't do C++ random access iterator clause
17434 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17435 don't predetermine the artificial iterator in case of C++ random
17436 access iterators as lastprivate, but private. For OMP_LOOP, force
17437 bind expr around simd body and force for_pre_body before the
17438 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17439 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17440 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17441 diff var of C++ random access iterators. Handle
17442 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17443 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17444 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17445 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17446 * omp-low.c (lower_rec_input_clauses): For
17447 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17448 variables instead of default constructing them.
17449 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17450 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17451 is_taskloop_ctx check from the assert to the guarding condition.
17453 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17455 * config/riscv/multilib-generator: (canonical_order): New.
17456 (arch_canonicalize): Dito.
17457 Apply arch_canonicalize for alts.
17459 2019-08-05 Martin Sebor <msebor@redhat.com>
17461 * doc/extend.texi (Common Variable Attributes): Document alias
17464 2019-08-05 Marek Polacek <polacek@redhat.com>
17466 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17467 * doc/invoke.texi: Document -Wcomma-subscript.
17469 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17471 * tree-core.h (tree_function_decl): Make function_code an
17472 independent field. Group the remaining bitfields into bytes
17473 and move decl_type so that it contines to be at a byte boundary.
17474 Leave 12 bits for future expansion.
17476 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17478 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17479 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17480 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17483 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17485 * gimple.h (gimple_move_vops): Declare.
17486 * gimple.c (gimple_move_vops): New function
17487 * gimple-fold.c (replace_call_with_call_and_fold)
17488 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17489 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17490 (gimple_fold_call): Use it.
17491 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17492 * tree-call-cdce.c (use_internal_fn): Likewise.
17493 * tree-if-conv.c (predicate_load_or_store): Likewise.
17494 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17495 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17496 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17497 (update_call_from_tree): Likewise.
17498 * tree-vect-stmts.c (vectorizable_load): Likewise.
17499 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17501 2019-08-05 Martin Liska <mliska@suse.cz>
17504 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17505 with not arguments.
17506 (eliminate_unnecessary_stmts): Likewise.
17508 2019-08-05 Richard Biener <rguenther@suse.de>
17510 PR middle-end/91169
17511 * fold-const.c (get_array_ctor_element_at_index): Create
17512 offset_ints according to the sign of the index type and treat
17513 that as signed if it is obviously so.
17515 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17518 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17519 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17520 _mm256_storeu2_m128i): New function.
17522 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17524 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17525 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17527 2019-08-05 Alan Modra <amodra@gmail.com>
17530 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17531 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17533 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17535 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17536 bug that was fixed in Tcl 8.6.1.
17538 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17540 * config/rs6000/future.md: New file.
17541 * config/rs6000/rs6000.md: Include future.md.
17542 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17544 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17546 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17547 check to use targetm.slow_unaligned_access instead.
17549 * function.c (assign_param_data_one): Remove unused data members.
17551 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17553 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17554 build_distinct_type_copy.
17555 (simd_clone_adjust_argument_types): Ditto.
17556 (simd_clone_adjust): Call build_distinct_type_copy here.
17557 (expand_simd_clones): Ditto.
17559 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17562 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17564 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17566 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17567 from 'const void *'.
17568 (sort_locs_in_loop_postorder_cmp): Likewise.
17570 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17572 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17573 (hot-bb-count-ws-permille): Likewise.
17574 (hot-bb-frequency-fraction): Likewise.
17575 (unlikely-bb-count-fraction): Likewise.
17576 * params.def (hot-bb-count-fraction): Rework description.
17577 (hot-bb-count-ws-permille): Likewise.
17578 (hot-bb-frequency-fraction): Likewise.
17579 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17580 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17582 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17585 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17588 2019-08-02 Richard Biener <rguenther@suse.de>
17590 * vec.h (vec::sort): Add gcc_qsort_r support.
17591 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17592 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17593 to gcc_qsort_r style callback.
17594 (sort_locs_in_loop_postorder_cmp): Likewise.
17595 (analyze_memory_references): Use gcc_sort_r interfaces.
17596 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17598 2019-08-02 Martin Liska <mliska@suse.cz>
17601 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17602 to detect working job server.
17603 (driver::detect_jobserver): Test whether jobserver
17604 is active from GCC driver. That will prevent situation where
17605 GCC is invoked from a LD plugin and the linker already uses
17606 file descriptors suggested by make. That leads to a wrong
17608 * gcc.h (driver): Add detect_jobserver.
17609 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17610 not scanning for --jobserver-auth prefix.
17612 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17614 PR tree-optimization/91201
17615 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17616 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17619 2019-08-01 Martin Sebor <msebor@redhat.com>
17622 * tree.c (type_initializer_zero_p): Define.
17623 * tree.h (type_initializer_zero_p): New function.
17625 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17627 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17629 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17631 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17632 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17633 * predict.c (maybe_hot_count_p): Likewise.
17634 (maybe_hot_bb_p): Tweak comment.
17635 (maybe_hot_edge_p): Likewise.
17636 (probably_never_executed): Likewise. Minor tweak.
17637 (probably_never_executed_bb_p): Likewise.
17638 (unlikely_executed_edge_p): Likewise.
17639 (probably_never_executed_edge_p): Likewise.
17640 (optimize_function_for_size_p): Likewise.
17641 (optimize_function_for_speed_p): Likewise.
17642 (function_optimization_type): Likewise.
17643 (optimize_bb_for_size_p): Likewise.
17644 (optimize_bb_for_speed_p): Likewise.
17645 (bb_optimization_type): Likewise.
17646 (optimize_edge_for_size_p): Likewise.
17647 (optimize_edge_for_speed_p): Likewise.
17648 (optimize_insn_for_size_p): Likewise.
17649 (optimize_insn_for_speed_p): Likewise.
17650 (optimize_loop_for_size_p): Likewise.
17651 (optimize_loop_for_speed_p): Likewise.
17652 (optimize_loop_nest_for_speed_p): Likewise.
17653 (optimize_loop_nest_for_size_p): Likewise.
17654 (predictable_edge_p): Likewise.
17655 (handle_missing_profiles): Minor tweak.
17657 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17659 * config/rs6000/predicates.md (pcrel_external_address): Update
17662 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17665 * config/i386/mmx.md (usadv8qi): New expander.
17667 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17670 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17671 with reserved names that are in a system header.
17673 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17675 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17676 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17677 (*vec_extractv2si_0_zext): Ditto.
17678 (*vec_extractv2si_1): Add (rm,x) alternative.
17679 (*vec_extractv2si_1_zext): New insn pattern.
17680 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17683 2019-08-01 Richard Biener <rguenther@suse.de>
17685 * domwalk.c (bb_postorder): Remove static variable.
17686 (cmp_bb_postorder): Adjust.
17687 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17688 (dom_walker::walk): Adjust.
17690 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17692 * sort.cc (sort_r_ctx): New struct.
17693 (reorder23): Make templated on context type.
17694 (reorder45): Ditto.
17695 (cmp1): Ditto. Adjust signature.
17697 (mergesort): Ditto.
17698 [CHECKING_P] (cmp2to3): New static function. Use it...
17699 (gcc_qsort) [CHECKING_P]: ...here.
17700 (gcc_sort_r): New function.
17701 * system.h (sort_r_cmp_fn): New function typedef.
17702 (qsort_chk): Adjust signature.
17703 (gcc_sort_r): Declare.
17704 * vec.c (qsort_chk_error): Adjust.
17705 (qsort_chk): Adjust.
17707 2019-08-01 Richard Biener <rguenther@suse.de>
17709 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17710 (compute_antic): Localize it here.
17712 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17714 * common/config/riscv/riscv-common.c: Check -march string ends
17717 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17719 * ipa-devirt.c (type_warning_cmp): Make static.
17720 (decl_warning_cmp): Ditto.
17722 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17725 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17726 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17727 use of deleted rs6000_dejagnu_cpu_index variable.
17728 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17729 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17730 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17731 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17732 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17733 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17735 2019-07-31 Richard Biener <rguenther@suse.de>
17737 PR tree-optimization/91280
17738 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17739 Decompose MEM_REF manually for offset handling.
17741 2019-07-31 Richard Biener <rguenther@suse.de>
17743 PR tree-optimization/91293
17744 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17745 of reduction stmts.
17747 2019-07-31 Matt Thomas <matt@3am-software.com>
17748 Nick Hudson <nick@nthcliff.demon.co.uk>
17749 Matthew Green <mrg@eterna.com.au>
17750 Maya Rashish <coypu@sdf.org>
17752 * config.gcc (hppa*-*-netbsd*): New target.
17753 * config/pa/pa-netbsd.h: New file.
17754 * config/pa/pa32-netbsd.h: New file.
17756 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17758 PR tree-optimization/91201
17759 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17761 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17763 * config/gcn/gcn-valu.md
17764 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17765 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17766 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17767 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17768 struct ilist. Add nops for delayeduse insns.
17769 * config/gcn/gcn.md (delayeduse): New attribute.
17770 (*movbi): Remove s_waitcnt from stores.
17771 (*mov<mode>_insn): Likewise.
17772 (*movti_insn): Likewise. Add delayeduse attribute.
17773 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17774 (atomic_store<mode>): Remove or adjust s_waitcnt.
17776 2019-07-31 Richard Biener <rguenther@suse.de>
17778 * vr-values.h (vr_values::swap_vr_value): New.
17779 (vr_values::free_value_range): likewise.
17780 * vr-values.c (vr_values::swap_vr_value): Implement.
17781 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17782 Do not return a range or take a var.
17783 (evrp_range_analyzer::stack): Change back to recording a non-const
17785 * gimple-ssa-evrp-analyze.c
17786 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17788 (evrp_range_analyzer::pop_to_marker): Adjust.
17789 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17790 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17791 no longer needed value-range.
17793 2019-07-31 Martin Liska <mliska@suse.cz>
17795 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17796 have size and (or) alignment as 2nd and later arguments.
17797 Mark all of them as necessary.
17799 2019-07-31 Richard Biener <rguenther@suse.de>
17801 PR tree-optimization/91178
17802 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17803 Use tail-recursion.
17805 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17807 PR tree-optimization/91201
17808 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17809 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17811 (reduc_plus_scal_<mode>): Improve formatting by introducing
17814 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17816 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17817 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17818 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17819 (aarch64_init_tme_builtins): New.
17820 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17821 (aarch64_expand_builtin_tme): New.
17822 (aarch64_expand_builtin): Handle TME builtins.
17823 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17824 __ARM_FEATURE_TME when enabled.
17825 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17826 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17828 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17829 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17831 (tstart, ttest, tcommit, tcancel): New instructions.
17832 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17833 (__tcancel, __ttest): New.
17834 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17835 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17836 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17837 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17838 * config/arm/types.md: Add new tme type attr.
17839 * doc/invoke.texi: Document "tme".
17841 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17843 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17844 warn_unused_result attribute.
17845 (cmse_check_address_range): Add warn_unused_result attribute.
17847 2019-07-31 Richard Biener <rguenther@suse.de>
17849 PR tree-optimization/91257
17850 * tree-vrp.c (union_ranges): Unify equality and less tests
17851 by using compare_values. Re-order cheap tests first.
17853 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17855 PR middle-end/91301
17856 * gimplify.c (gimplify_omp_for): If for class iterator on
17857 distribute parallel for there is no data sharing clause
17858 on inner_for_stmt, look for private clause on combined
17859 parallel too and if found, move it to inner_for_stmt.
17861 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17863 * lra-int.h (lra_operand_data): Remove early_clobber field.
17864 (lra_insn_reg): Likewise.
17865 * lra.c (debug_operand_data): Update accordingly.
17866 (setup_operand_alternative): Likewise.
17867 (new_insn_reg): Likewise. Remove early_clobber parameter.
17868 (collect_non_operand_hard_regs): Update call accordingly.
17869 Don't assign to lra_insn_reg::early_clobber.
17870 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17871 and update calls to new_insn_reg.
17872 (lra_update_insn_regno_info): Update calls accordingly.
17873 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17874 alternative number as a parameter and test whether the operand
17875 is earlyclobbered in that particular alternative.
17876 (process_alt_operands): Update call accordingly. Use per-alternative
17877 checks for earyclobber here too.
17878 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17879 against zero for IRA_UNKNOWN_ALT.
17881 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17883 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17885 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17887 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17888 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17890 2019-07-30 Martin Liska <mliska@suse.cz>
17893 * cgraph.c (cgraph_edge::make_direct): Use
17894 edge->indirect_unknown_callee as edge->resolve_speculation can
17895 deallocate edge which is this pointer.
17897 2019-07-30 Richard Biener <rguenther@suse.de>
17899 PR tree-optimization/91257
17900 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17902 2019-07-30 Martin Liska <mliska@suse.cz>
17904 * doc/invoke.texi: Document new behavior.
17905 * lto-wrapper.c (cpuset_popcount): New function
17906 is a copy of libgomp/config/linux/proc.c.
17907 (init_num_threads): Likewise.
17908 (run_gcc): Automatically detect core count for -flto.
17909 (jobserver_active_p): New function.
17911 2019-07-30 Richard Biener <rguenther@suse.de>
17913 PR tree-optimization/91257
17914 * bitmap.h (bitmap_ior_into_and_free): Declare.
17915 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17916 whether to add the unliked element to the freelist.
17917 (bitmap_list_insert_element_after): Add defaulted param for
17918 an already allocated element.
17919 (bitmap_ior_into_and_free): New function.
17920 * tree-ssa-structalias.c (condense_visit): Reduce the
17921 ponts-to and edge bitmaps of the SCC members in a
17922 logarithmic fashion rather than all to one.
17924 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17926 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17927 parameter. When nonnull, make sure that the addition or subtraction
17928 has the same condition.
17929 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17930 for CFN_COND_MUL too.
17932 2019-07-30 Richard Biener <rguenther@suse.de>
17934 PR tree-optimization/91291
17935 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17938 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17940 PR middle-end/91216
17941 * omp-low.c (global_nonaddressable_vars): New variable.
17942 (use_pointer_for_field): For global decls, if they are non-addressable,
17943 remember it in the global_nonaddressable_vars bitmap, if they are
17944 addressable and in the global_nonaddressable_vars bitmap, ignore their
17945 TREE_ADDRESSABLE bit.
17946 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
17947 vars in global_nonaddressable_vars bitmap.
17948 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
17951 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
17952 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
17953 comparison to unsigned HOST_WIDE_INT before shifting it left.
17955 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17957 * config/i386/i386.md (movstrict<mode>): Use register_operand
17958 predicate for operand 0. Add expander condition. Assert that
17959 operand 0 is a SUBREG RTX.
17960 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
17961 Update operand constraints and insn condition.
17962 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
17963 (zero_extendqihi2_and): Do not call gen_movstrictqi.
17964 (*setcc_qi_slp): Use register_operand predicate for operand 0.
17965 Update operand 0 constraints.
17966 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
17968 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17970 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
17971 when -m{code,data}-region are used without -mlarge.
17972 * config/msp430/msp430.c (msp430_option_override): Error when a
17973 non-default code or data region is used without -mlarge.
17974 (msp430_section_attr): Emit a warning and do not add upper/lower/either
17975 attributes when they are used without -mlarge.
17977 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17980 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
17982 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
17984 PR middle-end/91242
17985 * wide-int.h (generic_wide_int::sext_elt): New function.
17986 * inchash.h (hash::add_wide_int): Use it instead of elt.
17988 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17990 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
17992 * config/arm/arm.md (<crc_variant>): Rename to...
17993 (arm_<crc_variant>): ... This.
17994 (<cdp>): Rename to...
17995 (arm_<cdp>): ... This.
17996 (<ldc>): Rename to...
17997 (arm_<ldc>): ... This.
17998 (<stc>): Rename to...
17999 (arm_<stc>): ... This.
18000 (<mcr>): Rename to...
18001 (arm_<mcr>): ... This.
18002 (<mrc>): Rename to...
18003 (arm_<mrc>): ... This.
18004 (<mcrr>): Rename to...
18005 (arm_<mcrr>): ... This.
18006 (<mrrc>): Rename to...
18007 (arm_<mrrc>): ... This.
18009 2019-07-29 Richard Biener <rguenther@suse.de>
18011 PR tree-optimization/91257
18012 * tree-ssa-sccvn.h (struct vn_avail): New.
18013 (struct vn_ssa_aux): Add avail member.
18014 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18015 member, add m_avail_freelist one.
18016 (rpo_elim::~rpo_elim): Remove.
18017 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18019 (rpo_elim::eliminate_push_avail): Likewise.
18020 (do_unwind): Likewise.
18021 (do_rpo_vn): Likewise.
18023 2019-07-29 Richard Biener <rguenther@suse.de>
18025 PR tree-optimization/91257
18026 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18027 most cases, instead call compare_values which handles the
18028 symbolic ranges we handle specially.
18029 (compare_values_warnv): Do not call operand_less_p but open-code
18030 the effective fold calls. Avoid converting so much.
18032 2019-07-29 Martin Liska <mliska@suse.cz>
18034 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18035 remove LHS of operator new call. It's handled latter.
18037 2019-07-29 Richard Biener <rguenther@suse.de>
18039 PR tree-optimization/91267
18040 * vr-values.c (vr_values::update_value_range): Add early return
18041 for effectively VARYING lattice entry.
18043 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18046 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18047 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18048 necessary if keep_all_vdefs_p is true.
18049 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18050 that keep_all_vdefs_p is false.
18051 (mark_all_reaching_defs_necessary): Likewise.
18052 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18054 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18056 * common.opt (Og): Change the initial value of flag_dse to 0.
18057 * opts.c (default_options_table): Move OPT_ftree_dse from
18058 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18059 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18060 entry before the OPT_ftree_sra entry.
18061 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18062 of flags disabled by Og.
18064 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18066 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18069 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18071 * doc/sourcebuild.texi (check-function-bodies): Document.
18073 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18075 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18076 VEC_DUPLICATE of a fixed-length vector even if the result
18077 is variable-length. Likewise fold a duplicate of a
18078 variable-length vector if the variable-length vector is
18079 itself a duplicate of a fixed-length sequence.
18080 (test_vector_ops_duplicate): Test more cases.
18082 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18084 * vector-builder.h (vector_builder): Add a shape template parameter.
18085 (vector_builder::new_unary_operation): New function, generalizing
18086 the old tree_vector_builder function.
18087 (vector_builder::new_binary_operation): Likewise.
18088 (vector_builder::binary_encoded_nelts): Likewise.
18089 * int-vector-builder.h (int_vector_builder): Update template
18090 parameters to vector_builder.
18091 (int_vector_builder::shape_nelts): New function.
18092 * rtx-vector-builder.h (rtx_vector_builder): Update template
18093 parameters to vector_builder.
18094 (rtx_vector_builder::shape_nelts): New function.
18095 (rtx_vector_builder::nelts_of): Likewise.
18096 (rtx_vector_builder::npatterns_of): Likewise.
18097 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18098 * tree-vector-builder.h (tree_vector_builder): Update template
18099 parameters to vector_builder.
18100 (tree_vector_builder::shape_nelts): New function.
18101 (tree_vector_builder::nelts_of): Likewise.
18102 (tree_vector_builder::npatterns_of): Likewise.
18103 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18104 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18105 (tree_vector_builder::new_binary_operation): Delete.
18106 (tree_vector_builder::binary_encoded_nelts): Likewise.
18107 * simplify-rtx.c: Include rtx-vector-builder.h.
18108 (distributes_over_addition_p): New function.
18109 (simplify_const_unary_operation)
18110 (simplify_const_binary_operation): Generalize handling of vector
18111 constants to include variable-length vectors.
18112 (test_vector_ops_series): Add more tests.
18114 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18117 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18118 than INDENTIFIER_POINTER.
18120 2019-07-28 Martin Liska <mliska@suse.cz>
18123 * cgraph.c (symbol_table::create_edge): Always allocate
18125 (symbol_table::free_edge): Store summary_id to
18126 edge_released_summary_ids if != -1;
18127 * cgraph.h (NEXT_FREE_NODE): Remove.
18128 (SET_NEXT_FREE_NODE): Likewise.
18129 (NEXT_FREE_EDGE): Likewise.
18130 (symbol_table::release_symbol): Store summary_id to
18131 cgraph_released_summary_ids if != -1;
18132 (symbol_table::allocate_cgraph_symbol): Always allocate
18135 2019-07-28 Alan Modra <amodra@gmail.com>
18137 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18140 2019-07-28 Alan Modra <amodra@gmail.com>
18143 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18145 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18146 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18147 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18149 2019-07-28 Alan Modra <amodra@gmail.com>
18152 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18153 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18154 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18155 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18156 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18157 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18158 in asm_default spec.
18159 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18160 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18162 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18164 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18166 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18169 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18170 * config/aarch64/aarch64-option-extensions.def: Add new comments
18171 and restore easier to read options.
18173 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18175 * convert.c (convert_to_real_1): Move part of conversion code...
18176 * match.pd: ...To here.
18178 2019-07-26 Martin Jambor <mjambor@suse.cz>
18181 * ipa-inline-transform.c (check_speculations_1): New function.
18182 (push_all_edges_in_set_to_vec): Likewise.
18183 (check_speculations): Use check_speculations_1, new parameter
18185 (inline_call): Pass new_edges to check_speculations.
18186 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18188 (speculation_useful_p): Early return true if edge is inlined, remove
18189 later checks for inline_failed.
18191 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18193 PR rtl-optimization/91223
18194 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18195 matching with INOUT operand.
18197 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18199 * stmt.c (expand_case): Try to narrow the index type if it's larger
18200 than a word. Tidy up.
18202 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18204 * cif-code.def (NEVER_CALL): New code.
18205 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18206 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18208 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18210 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18211 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18213 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18215 * ipa-devirt.c (add_type_duplicate): Fix return value.
18217 2019-07-25 Richard Biener <rguenther@suse.de>
18219 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18220 type parameter and use it instead of guessing expression
18221 type from the first operand.
18222 (extract_range_from_binary_expr): Pass expr_type down.
18224 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18226 * config/arm/arm.md (SATrev): Change to code attribute.
18227 (*satsi_<SAT:code>): Adjust for the above.
18228 (*satsi_<SAT:code>_shift): Likewise.
18230 2019-07-25 Richard Biener <rguenther@suse.de>
18232 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18233 Make value_range * temporary const.
18234 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18236 (evrp_range_analyzer::record_ranges_from_): Likewise.
18237 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18238 deal with having recorded a const one.
18239 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18240 Return a const value_range *.
18241 (evrp_range_analyzer::pop_value_range): Likewise.
18242 (evrp_range_analyzer::stack): Record const value_range *s.
18243 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18245 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18246 (format_integer): Likewise.
18247 (sprintf_dom_walker::handle_gimple_call): Likewise.
18248 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18249 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18250 (vrp_prop::get_value_range): Adjust.
18251 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18252 modifying the lattice in-place.
18253 (vrp_prop::visit_stmt): Likewise.
18254 * vr-values.c (vr_values::get_lattice_entry): New private method.
18255 (vr_values::get_value_range): Wrap it and return a const
18257 (vr_values::set_def_to_varying): New.
18258 (vr_values::set_defs_to_varying): Use it.
18259 (vr_values::update_value_range): Likewise.
18260 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18261 (values::op_with_constant_singleton_va): Likewise.
18262 (vr_values::extract_range_for_var_from_co): Likewise.
18263 (vr_values::extract_range_from_ssa_name): Likewise.
18264 (vr_values::extract_range_from_cond_expr): Likewise.
18265 (vr_values::extract_range_basic): Likewise.
18266 (compare_ranges): Take const value_range *, adjust.
18267 (compare_range_with_value): Likewise.
18268 (vrp_valueize): Adjust.
18269 (vrp_valueize_1): Likewise.
18270 (vr_values::get_vr_for_comparison): Return a const value_range *.
18271 (vr_values::compare_name_with_value): Adjust.
18272 (vr_values::compare_names): Likewise.
18273 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18275 (vr_values::vrp_evaluate_conditional): Likewise.
18276 (find_case_label_ranges): Take a const value_range *.
18277 (vr_values::vrp_visit_switch_stmt): Adjust.
18278 (vr_values::extract_range_from_phi_node): Likewise.
18279 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18280 (vr_values::simplify_abs_using_ranges): Likewise.
18281 (test_for_singularity): Take a const value_range *.
18282 (range_fits_type_p): Likewise.
18283 (vr_values::simplify_cond_using_ranges_1): Adjust.
18284 (vr_values::simplify_cond_using_ranges_2): Likewise.
18285 (vr_values::simplify_switch_using_ranges): Likewise.
18286 (vr_values::simplify_float_conversion_usi): Likewise.
18287 (vr_values::two_valued_val_range_p): Likewise.
18288 * vr-values.h (vr_values::get_value_range): Return a const
18290 (vr_values::set_def_to_varying): New.
18291 (vr_values::get_lattice_entry): New private method.
18292 (vr_values::get_vr_for_comparison): Return a const value_range *.
18294 2019-07-25 Martin Liska <mliska@suse.cz>
18295 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18298 * common.opt: Add -fallocation-dce
18299 * gimple.c (gimple_call_operator_delete_p): New.
18300 * gimple.h (gimple_call_operator_delete_p): Likewise.
18301 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18302 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18303 DECL_IS_OPERATOR_DELETE_P.
18304 (mark_all_reaching_defs_necessary_1): Likewise.
18305 (propagate_necessity): Likewise.
18306 (eliminate_unnecessary_stmts): Handle
18307 gimple_call_operator_delete_p.
18308 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18309 Add packing of OPERATOR_DELETE.
18310 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18312 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18313 (DECL_SET_IS_OPERATOR_DELETE): New.
18314 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18316 2019-07-25 Martin Liska <mliska@suse.cz>
18318 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18319 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18320 * coverage.c (coverage_begin_function): Likewise.
18321 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18322 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18323 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18324 (sem_item::hash_referenced_symbol_properties): Likewise.
18325 * lto-streamer-out.c (hash_tree): Likewise.
18326 * predict.c (expr_expected_value_1): Likewise.
18327 * tree-inline.c (expand_call_inline): Likewise.
18328 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18329 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18330 * tree-core.h (enum function_decl_type): New enum.
18331 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18332 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18333 (set_function_decl_type): Likewise.
18334 (DECL_IS_OPERATOR_NEW_P): New.
18335 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18336 (DECL_LAMBDA_FUNCTION): Likewise.
18337 (DECL_LAMBDA_FUNCTION_P): Likewise.
18338 (DECL_IS_OPERATOR_NEW): Remove.
18339 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18341 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18343 * ipa-profile.c (get_most_common_single_value): Use
18344 get_nth_most_common_value.
18345 * profile.c (sort_hist_value): New function.
18346 (compute_value_histograms): Call sort_hist_value to sort the
18347 values after loading from disk.
18348 * value-prof.c (get_most_common_single_value): Rename to ...
18349 get_nth_most_common_value. Add input params n, return
18350 the n_th value and count.
18351 (gimple_divmod_fixed_value_transform): Use
18352 get_nth_most_common_value.
18353 (gimple_ic_transform): Likewise.
18354 (gimple_stringops_transform): Likewise.
18355 * value-prof.h (get_most_common_single_value): Add input params
18358 2019-07-25 Richard Biener <rguenther@suse.de>
18360 PR tree-optimization/91236
18361 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18362 size of CONSTRUCTOR write. Fix buffer size we pass to
18363 native_encode_expr.
18365 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18367 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18368 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18371 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18373 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18374 explicitly disabled with --disable-initfini-array.
18376 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18378 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18381 2019-07-24 Martin Sebor <msebor@redhat.com>
18383 PR tree-optimization/91183
18384 PR tree-optimization/86688
18385 * builtins.c (compute_objsize): Handle MEM_REF.
18386 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18387 (get_min_string_length): Remove.
18388 (count_nonzero_bytes): New function.
18389 (handle_char_store): Rename...
18390 (handle_store): to this. Handle multibyte stores via integer types.
18391 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18394 2019-07-24 Martin Sebor <msebor@redhat.com>
18397 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18398 (diagnostic_report_diagnostic): Same.
18399 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18400 (diagnostic_context::lang_mask): New data member.
18401 * ipa-pure-const.c (suggest_attribute): Use
18402 lang_hooks.option_lang_mask ().
18403 * opts-common.c (option_enabled): Handle new argument.
18404 (get_option_state): Pass an additional argument.
18405 * opts.c (print_filtered_help): Print supported languages for
18406 unsupported options. Adjust printing of current state.
18407 * opts.h (option_enabled): Add argument.
18408 * toplev.c (print_switch_values): Use lang_mask.
18409 (general_init): Set global_dc->lang_mask.
18411 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18414 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18416 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18418 * cgraphunit.c (symbol_table::compile): Start and stop
18419 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18420 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18422 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18424 * gimplify.c (flag_instrument_functions_exclude_p): Include
18425 namespace/class information in the printable name.
18426 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18427 to tokens entered into the vector.
18429 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18431 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18432 (get_static_chain): Call it instead of build_simple_mem_ref.
18433 (get_frame_field): Likewise.
18434 (get_nonlocal_debug_decl): Likewise.
18435 (convert_nonlocal_reference_op): Likewise.
18437 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18439 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18441 (arc_compute_frame_size): Millicode is disabled when compiling
18443 (arc_return_address_register): Likewise.
18444 (arc_compute_function_type): Likewise.
18445 (arc_compute_frame_size): Likewise.
18446 (secondary_reload_info): Likewise.
18447 (arc_get_unalign): Likewise.
18448 (arc_can_use_return_insn): Declare.
18449 * config/arc/arc.c (AUX_LP_START): Define
18450 (AUX_LP_END): Likewise.
18451 (arc_frame_info): Update gmask member to 64-bit datum.
18452 (GMASK_LEN): Update.
18453 (arc_compute_function_type): Make it static, move it forward.
18454 (arc_must_save_register): Update, consider the extra regs.
18455 (arc_compute_millicode_save_restore_regs): Update to use the 64
18457 (arc_compute_frame_size): Likewise.
18458 (arc_enter_leave_p): Likewise.
18459 (arc_save_callee_saves): Likewise.
18460 (arc_restore_callee_saves): Likewise.
18461 (arc_save_callee_enter): Likewise.
18462 (arc_restore_callee_leave): Likewise.
18463 (arc_save_callee_milli): Likewise.
18464 (arc_restore_callee_milli): Likewise.
18465 (arc_expand_prologue): Add new interrupt handling.
18466 (arc_return_address_register): Make it static, move it forward.
18467 (arc_expand_epilogue): Add new interrupt handling.
18468 (arc_get_unalign): Delete.
18469 (arc_epilogue_uses): Make sure we do not remove the extra
18470 saved/restored registers when interrupt.
18471 (arc_can_use_return_insn): New function.
18472 (push_reg): Likewise.
18473 (pop_reg): Likewise.
18474 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18476 (arc_restore_callee_saves): Likewise, but restoring.
18477 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18478 (R33_REG): Likewise.
18479 (R34_REG): Likewise.
18480 (R35_REG): Likewise.
18481 (R36_REG): Likewise.
18482 (R37_REG): Likewise.
18483 (R38_REG): Likewise.
18484 (R39_REG): Likewise.
18485 (R45_REG): Likewise.
18486 (R46_REG): Likewise.
18487 (R47_REG): Likewise.
18488 (R48_REG): Likewise.
18489 (R49_REG): Likewise.
18490 (R50_REG): Likewise.
18491 (R51_REG): Likewise.
18492 (R52_REG): Likewise.
18493 (R53_REG): Likewise.
18494 (R54_REG): Likewise.
18495 (R55_REG): Likewise.
18496 (R56_REG): Likewise.
18497 (R58_REG): Likewise.
18498 (type): Add rtie attribute.
18499 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18500 (movsi_insn): Accept moves to lp_count.
18501 (rtie): Update pattern.
18502 (simple_return): Simplify it, don't use this pattern as a return
18504 (arc600_rtie): New pattern.
18505 (p_return_i): Clean up.
18506 (return): Likewise.
18507 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18509 * config/arc/predicates.md (move_src_operand): Consider lp_count
18512 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18514 * config/s390/predicates.md (addv_const_operand): New predicate.
18515 * config/s390/s390-modes.def (CCO): New condition code mode.
18516 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18517 (s390_branch_condition_mask): Likewise.
18518 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18519 ("mulv<mode>4"): New expanders.
18520 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18521 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18522 pattern definitions.
18524 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18526 PR middle-end/91166
18527 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18528 (define_predicates): Add entry for uniform_vector_p.
18529 (vec_same_elem_p): New match pattern.
18531 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18534 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18535 * config/i386/darwin32-biarch.h .. to here.
18536 * config/i386/darwin64-biarch.h: Adjust comments.
18537 * config/rs6000/darwin32-biarch.h: Likewise.
18538 * config/rs6000/darwin64-biarch.h: Likewise.
18539 * config.gcc: Missed commit from r273746
18540 (*-*-darwin*): Don't include CPU t-darwin here.
18541 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18542 an error message if i686-darwin configuration is attempted for
18545 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18548 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18549 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18550 an error message if i686-darwin configuration is attempted for
18552 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18553 (powerpc-*-darwin*): Use biarch files where needed.
18554 (powerpc64-*-darwin*): Likewise.
18555 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18556 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18558 * config/i386/darwin32-biarch.h: New.
18559 * config/i386/darwin64.h: Rename.
18560 * config/i386/darwin64-biarch.h: To this.
18561 * config/i386/t-darwin: Rename.
18562 * config/i386/t-darwin32-biarch: To this.
18563 * config/i386/t-darwin64: Rename.
18564 * config/i386/t-darwin64-biarch: To this.
18565 * config/rs6000/darwin32-biarch.h: New.
18566 * config/rs6000/darwin64.h: Rename.
18567 * config/rs6000/darwin64-biarch.h: To this.
18568 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18570 * config/rs6000/t-darwin8: Rename.
18571 * config/rs6000/t-darwin32-biarch: To this.
18572 * config/rs6000/t-darwin64 Rename.
18573 * config/rs6000/t-darwin64-biarch: To this.
18575 2019-07-23 Martin Sebor <msebor@redhat.com>
18577 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18579 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18581 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18582 (rh): New alias for it.
18584 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18586 * gdbhooks.py: Pass replace=True to
18587 gdb.printing.register_pretty_printer.
18589 2019-07-23 Richard Biener <rguenther@suse.de>
18592 * lto-streamer-in.c (input_function): Drop inline-entry markers
18593 that ended up with an unknown location block.
18595 2019-07-23 Richard Biener <rguenther@suse.de>
18597 PR tree-optimization/83518
18598 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18599 init from a constant even when partial defs are already recorded.
18601 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18603 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18604 * config/i386/znver1.md: Enable patterns for znver2 and add store
18605 variants which use extra AGU unit.
18607 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18609 * config/i386/i386-options.c (ix86_option_override_internal): Default
18610 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18611 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18614 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18616 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18617 (znver2_costs): Update 256 bit SSE costs and multiplication.
18619 2019-07-23 Jan Beulich <jbeulich@suse.com>
18621 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18622 Require only AVX512F.
18623 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18624 alternative expanding to vpternlog.
18626 2019-07-23 Martin Liska <mliska@suse.cz>
18628 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18629 to -flto in dwarf producer string.
18631 2019-07-23 Richard Biener <rguenther@suse.de>
18633 * tree-cfg.c (label_for_bb): Remove global var.
18634 (main_block_label): Take label_for_bb as argument.
18635 (cleanup_dead_labels_eh): Likewise, adjust.
18636 (cleanup_dead_labels): Adjust.
18638 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18640 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18641 Configurations): Add documentation for __builtin_mtfsf.
18643 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18645 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18646 * config/riscv/riscv.c (riscv_constant_alignment): Use
18647 riscv_align_data_type.
18648 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18649 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18650 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18651 * config/riscv/riscv.opt (malign-data): New.
18652 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18654 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18656 * cgraph.c (dump_graphviz): New function.
18657 * cgraph.h (dump_graphviz): New function.
18658 * symtab.c (dump_graphviz): New function.
18660 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18662 * config/aarch64/aarch64-simd.md
18663 (*aarch64_simd_sra<mode>): New.
18664 * config/aarch64/iterators.md
18665 (SHIFTRT): New iterator.
18666 (sra_op): New attribute.
18668 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18670 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18671 callee-saved regs R4->R10 in an interrupt function that calls another
18674 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18676 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18677 (_mm_blendv_epi8): New.
18679 2019-07-22 Richard Biener <rguenther@suse.de>
18681 PR tree-optimization/91221
18682 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18683 restrict partial-def handling of empty constructors and
18684 memset to refs with known offset.
18686 2019-07-22 Jan Beulich <jbeulich@suse.com>
18688 * config/i386/sse.md (ternlogsuffix): New.
18689 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18691 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18693 2019-07-22 Martin Liska <mliska@suse.cz>
18695 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18697 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18699 2019-07-22 Martin Liska <mliska@suse.cz>
18701 * lto-section-in.c (lto_get_section_data):
18702 Use new function get_compression.
18703 * lto-streamer-out.c (produce_lto_section): Use
18704 set_compression to encode compression algorithm.
18705 * lto-streamer.h (struct lto_section): Do not
18706 use bitfields in the format.
18708 2019-07-22 Martin Liska <mliska@suse.cz>
18711 * opts-common.c (decode_cmdline_option): Decode
18712 argument of -Werror and check it for a wrong language.
18713 * opts-global.c (complain_wrong_lang): Remove such case.
18715 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18717 * config/arc/arc.c (prepare_move_operands): Always use an
18718 intermediate register when storing a TLS symbols.
18720 2019-07-22 Stafford Horne <shorne@gmail.com>
18722 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18725 2019-07-22 Stafford Horne <shorne@gmail.com>
18727 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18728 and munordered-float validations.
18729 * config/or1k/constraints.md (d): New register constraint.
18730 * config/or1k/predicates.md (fp_comparison_operator): New.
18731 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18733 (or1k_expand_compare): Normalize unordered comparisons.
18734 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18735 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18736 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18737 * config/or1k/or1k.md (type): Add fpu.
18738 (fpu): New instruction reservation.
18739 (F, f, fr, fi, FI, FOP, fop): New.
18740 (<fop><F:mode>3): New ALU instruction definition.
18741 (float<fi><F:mode>2): New conversion instruction definition.
18742 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18743 (fpcmpcc): New code iterator.
18744 (*sf_fp_insn): New instruction definition.
18745 (cstore<F:mode>4): New expand definition.
18746 (cbranch<F:mode>4): New expand definition.
18747 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18748 munordered-float): New options.
18749 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18752 2019-07-22 Stafford Horne <shorne@gmail.com>
18754 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18755 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18756 documenation to be more clear.
18757 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18759 * config/or1k/or1k.opt (mrori): New option.
18760 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18761 msfimm, mshftimm): Rewrite documentation to be more clear.
18762 * config/or1k/or1k.md (insn_support): Add ror and rori.
18763 (enabled): Add conditions for ror and rori.
18764 (rotrsi3): Replace condition for shftimm with ror and rori.
18766 2019-07-22 Stafford Horne <shorne@gmail.com>
18769 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18770 (extend<mode>si2): Update predicate.
18771 * config/or1k/predicates.md (volatile_mem_operand): New.
18772 (reg_or_mem_operand): New.
18774 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18776 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18777 * config/rs6000/rs6000-call.c: ... to here.
18779 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18781 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18784 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18786 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18788 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18790 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18792 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18794 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18795 (any_memory_operand): New predicate.
18796 (reg_or_mem_operand): Use it.
18798 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18801 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18803 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18805 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18806 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18808 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18810 * tree.def (OMP_LOOP): New tree code.
18811 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18812 (enum omp_clause_bind_kind): New enum.
18813 (struct tree_omp_clause): Add subcode.bind_kind.
18814 * tree.h (OMP_LOOP_CHECK): Rename to ...
18815 (OMP_LOOPING_CHECK): ... this.
18816 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18817 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18818 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18819 (OMP_CLAUSE_BIND_KIND): Define.
18820 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18821 bind clause entries.
18822 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18823 * tree-pretty-print.c (dump_omp_clause): Likewise.
18824 (dump_generic_node): Handle OMP_LOOP.
18825 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18826 (in_omp_construct): New variable.
18827 (is_gimple_stmt): Handle OMP_LOOP.
18828 (gimplify_scan_omp_clauses): For lastprivate don't set
18829 check_non_private if code == OMP_LOOP. For reduction clause
18830 on OMP_LOOP combined with parallel or teams propagate as shared
18831 on the combined construct. Handle OMP_CLAUSE_BIND.
18832 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18833 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18834 for constructs from a loop construct to gimplify_scan_omp_clauses.
18835 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18836 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18837 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18838 to match the implicit ORT_TARGET construct around whole body.
18839 Temporarily clear in_omp_construct when processing body.
18840 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18841 etc. temporarily set in_omp_construct when processing body.
18842 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18843 * omp-low.c (struct omp_context): Add loop_p.
18844 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18845 in that the original var might be private.
18846 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18847 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18848 addition of loop construct.
18849 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18851 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18852 lastprivate non-addressable iterator of a collapse(1) simd.
18854 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18856 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18859 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18861 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18862 refer to default conditions. Warn for the 'y' spec which is ignored
18863 by current linkers.
18865 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18867 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18868 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18869 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18870 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18871 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18872 init_cumulative_args, rs6000_promote_function_mode,
18873 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18874 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18875 rs6000_function_arg_boundary, rs6000_parm_offset,
18876 rs6000_parm_start, rs6000_arg_size,
18877 rs6000_darwin64_record_arg_advance_flush,
18878 rs6000_darwin64_record_arg_advance_recurse,
18879 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18880 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18881 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18882 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18883 rs6000_finish_function_arg, rs6000_function_arg,
18884 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18885 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18886 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18887 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18888 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18889 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18890 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18891 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18892 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18893 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18894 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18895 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18896 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18897 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18898 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18899 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18900 get_element_number, altivec_expand_vec_set_builtin,
18901 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18902 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18903 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18904 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18905 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18906 rs6000_expand_builtin, rs6000_vector_type,
18907 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18908 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18909 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18911 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18912 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18913 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18914 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18915 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18916 init_cumulative_args, rs6000_promote_function_mode,
18917 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18918 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18919 rs6000_function_arg_boundary, rs6000_parm_offset,
18920 rs6000_parm_start, rs6000_arg_size,
18921 rs6000_darwin64_record_arg_advance_flush,
18922 rs6000_darwin64_record_arg_advance_recurse,
18923 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18924 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18925 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18926 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18927 rs6000_finish_function_arg, rs6000_function_arg,
18928 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18929 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18930 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18931 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18932 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18933 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18934 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18935 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18936 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18937 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18938 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18939 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18940 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18941 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18942 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18943 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18944 get_element_number, altivec_expand_vec_set_builtin,
18945 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18946 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18947 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18948 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18949 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18950 rs6000_expand_builtin, rs6000_vector_type,
18951 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18952 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18953 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
18954 to here from rs6000.c.
18955 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
18956 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
18957 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
18958 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
18959 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
18960 rs6000_return_in_memory, rs6000_return_in_msb,
18961 rs6000_pass_by_reference, setup_incoming_varargs,
18962 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
18963 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
18964 rs6000_function_arg_padding, rs6000_function_arg,
18965 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
18966 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
18967 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
18968 rs6000_passes_long_double, rs6000_passes_vector,
18969 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
18970 altivec_builtin_mask_for_load) Add declarations.
18971 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
18972 * config/config.gcc: Add new source file rs6000-call.c to garbage
18973 collector and extra_objs.
18975 2019-07-19 Jeff Law <law@redhat.com>
18977 PR tree-optimization/86061
18978 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
18979 strncpy. Drop some trivial dead code.
18980 (maybe_trim_memstar_call): Handle strncpy.
18982 2019-07-19 Richard Biener <rguenther@suse.de>
18984 PR tree-optimization/91211
18985 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18986 memset encoding size.
18988 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
18991 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
18993 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
18996 * ipa-inline.c (recursive_inlining): Fix limits check.
18998 2019-07-19 Richard Biener <rguenther@suse.de>
19000 PR tree-optimization/91200
19001 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19002 no PHI nodes in middle-bb.
19004 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19006 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19008 * config/aarch64/aarch64-option-extensions.def: Likewise.
19010 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19012 PR middle-end/91190
19013 * function.c (insert_temp_slot_address): Store into the hash table
19014 a copy of address to avoid RTL sharing issues.
19016 2019-07-19 Richard Biener <rguenther@suse.de>
19018 PR tree-optimization/91207
19020 2019-07-17 Richard Biener <rguenther@suse.de>
19022 PR tree-optimization/91178
19023 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19024 loads with a gap larger than the vector size always use
19026 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19027 avoid loading vectors that are only contained in the gap
19028 and thus are not needed.
19030 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19032 * config/i386/i386.md (*addqi_2_slp): Remove.
19033 (*<code>qi_2_slp): Ditto.
19035 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19037 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19038 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19039 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19040 Rename function from rs6000_prefixed_address.
19041 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19043 (TARGET_TOC): Likewise.
19044 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19046 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19048 (TARGET_TOC): Likewise.
19049 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19051 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19053 (TARGET_TOC): Likewise.
19054 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19055 check to require -mcmodel=medium for pc-relative addressing.
19056 (create_TOC_reference): Add assertion for TARGET_TOC.
19057 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19059 (rs6000_emit_move): Likewise.
19060 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19061 to 'TOC_alias_set'.
19062 (get_TOC_alias_set): Likewise.
19063 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19065 (rs6000_can_eliminate): Likewise.
19066 (rs6000_prefixed_address_mode_p): Rename function from
19067 rs6000_prefixed_address.
19068 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19069 TARGET_HAS_TOC and not pc-relative.
19070 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19071 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19073 (TARGET_TOC): Likewise.
19074 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19077 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19080 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19081 for operand 0. Do not use (match_dup) to match operand 1 with
19082 operand 0. Add check in insn constraint that either input operand
19083 matches operand 0. Use SWI12 mode iterator to also handle
19085 (*and<mode>_1_slp): Ditto.
19086 (*<code>qi_1_slp): Ditto.
19087 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19088 Do not use (match_dup) to match operand 1 with operand 0. Add
19089 check in insn constraint that operand 1 matches operand 0.
19090 Use SWI12 mode iterator to also handle HImode operands.
19091 (*ashl<mode>3_1_slp): Ditto.
19092 (*<shift_insn><mode>3_1_slp): Ditto.
19093 (*<rotate_insn><mode>3_1_slp): Ditto.
19095 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19097 * config/arm/arm-builtins.c
19098 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19099 (arm_expand_unop_builtin): Likewise.
19100 * config/arm/crypto.md
19101 (crypto_sha1h): Convert from define_insn to define_expand.
19102 (crypto_<crypto_pattern>): Likewise.
19103 (crypto_sha1h_lb): New define_insn.
19104 (crypto_<crypto_pattern>_lb): Likewise.
19106 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19109 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19110 (vsha1cq_u32): Likewise.
19111 (vsha1pq_u32): Likewise.
19112 (vsha1mq_u32): Likewise.
19113 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19115 (crypto_sha1c): Correct vec select.
19116 (crypto_sha1m): Likewise.
19117 (crypto_sha1p): Likewise.
19119 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19121 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19122 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19123 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19124 (subdi_zesidi_zesidi): Likewise.
19125 (negdi2_compare, negdi2_insn): Likewise.
19126 (negdi_extensidi): Likewise.
19127 (negdi_zero_extendsidi): Likewise.
19128 (arm_cmpdi_insn): Likewise.
19129 (subsi3_carryin): Use arm_borrow_operation.
19130 (subsi3_carryin_const): Likewise.
19131 (subsi3_carryin_const0): Likewise.
19132 (subsi3_carryin_compare): Likewise.
19133 (subsi3_carryin_compare_const): Likewise.
19134 (subsi3_carryin_compare_const0): Likewise.
19135 (subsi3_carryin_shift): Likewise.
19136 (rsbsi3_carryin_shift): Likewise.
19137 (negsi2_carryin_compare): Likewise.
19139 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19141 PR tree-optimization/91137
19142 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19143 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19144 Init, use and fini the above new field.
19145 (determine_base_object_1): New function.
19146 (determine_base_object): Reimplement using walk_tree.
19148 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19150 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19151 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19152 CLEANUP_FORCE_FAST_DCE is set.
19153 * ifcvt.c (rest_of_handle_if_conversion): Pass
19154 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19155 if-conversion succeeded.
19157 2019-07-18 Richard Biener <rguenther@suse.de>
19159 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19160 branches to make code less indented.
19162 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19164 PR middle-end/81824
19165 * attribs.c (decls_mismatched_attributes): Simplify the logic
19166 that avoids duplicates and false positives.
19168 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19170 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19171 data into data section when generating PIC code.
19172 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19173 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19174 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19175 return 2 for SOM and 0 for other targets.
19177 2019-07-17 Jeff Law <law@redhat.com>
19179 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19180 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19181 avoid unexpected switch statement fallthru.
19183 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19185 * config/i386/i386.md (*add<dwi>3_doubleword):
19186 Remove redundant constraints.
19187 (*add<mode>_1): Ditto.
19190 (*addqi_1_slp): Ditto.
19191 (*add<mode>_2): Ditto.
19192 (*addv<mode>4): Ditto.
19193 (*sub<dwi>3_doubleword): Ditto.
19194 (*sub<mode>_1): Ditto.
19195 (*subqi_1_slp): Ditto.
19196 (*sub<mode>_2): Ditto.
19197 (*subv<mode>4): Ditto.
19198 (*sub<mode>_3): Ditto.
19199 (@add<mode>3_carry): Ditto.
19200 (@sub<mode>3_carry): Ditto.
19201 (*add<mode>3_cc_overflow_1): Ditto.
19202 (*add<mode>3_zext_cc_overflow_2): Ditto.
19204 (*and<mode>_1): Ditto.
19206 (*andqi_1_slp): Ditto.
19208 (*andqi_2_maybe_si): Ditto.
19209 (*and<mode>_2): Ditto.
19210 (*andqi_2_slp): Ditto.
19211 (*<code><mode>_1): Ditto.
19212 (*<code>qi_1): Ditto.
19213 (*<code>qi_1_slp): Ditto.
19214 (*<code><mode>_2): Ditto.
19215 (*<code>qi_2_slp): Ditto.
19217 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19219 * alias.c (record_component_aliases): Do not simplify pointed-to
19220 types of ODR types.
19222 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19224 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19225 partial reg stall on alternative 2.
19227 2019-07-17 Richard Biener <rguenther@suse.de>
19229 PR tree-optimization/91178
19230 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19231 lower SSA names to avoid quadratic behavior in the common case.
19232 * tree-data-ref.c (split_constant_offset): Add limit argument
19233 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19234 (split_constant_offset_1): Add limit argument and use it to
19235 limit SSA def walking. Optimize the common plus/minus case.
19237 2019-07-17 Richard Biener <rguenther@suse.de>
19239 PR tree-optimization/91178
19240 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19241 loads with a gap larger than the vector size always use
19243 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19244 avoid loading vectors that are only contained in the gap
19245 and thus are not needed.
19247 2019-07-17 Richard Biener <rguenther@suse.de>
19249 PR tree-optimization/91180
19250 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19251 computation for memset partial defs.
19253 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19255 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19256 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19257 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19258 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19259 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19260 * omp-grid.c (grid_process_grid_body,
19261 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19262 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19263 == GF_OMP_FOR_KIND_SIMD.
19264 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19265 check_omp_nesting_restrictions, scan_omp_1_stmt,
19266 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19267 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19268 omp_find_scan): Likewise.
19269 * omp-expand.c (expand_omp_for): Likewise.
19270 * omp-general.c (omp_extract_for_data): Likewise.
19272 PR tree-optimization/91157
19273 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19274 a vector boolean with scalar mode.
19275 (expand_vector_condition): Handle first operand being a vector boolean
19277 (expand_vector_operations_1): For comparisons, don't bail out early
19278 if the return type is vector boolean with scalar mode, but comparison
19279 operand type is not.
19281 2019-07-17 Richard Biener <rguenther@suse.de>
19283 PR tree-optimization/91181
19284 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19285 IFN_LOADs as calls.
19287 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19289 * config/i386/i386.md (*testdi_1): Match CCZmode for
19290 constants that might have the SImode sign bit set.
19291 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19292 Use correct constraints for pentium pairing.
19293 (*test<mode>_1): Ditto.
19295 2019-07-16 Jeff Law <law@redhat.com>
19297 PR rtl-optimization/91173
19298 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19299 SSA_NAME with a constant value, fold its value into the offset
19300 and clear the base before calling gen_addr_rtx.
19302 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19304 PR rtl-optimization/91164
19305 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19306 invalidate dominance info.
19308 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19310 * read-md.h (md_reader::record_potential_iterator_use): Add a
19311 file_location parameter.
19312 * read-rtl.c (attribute_use::loc): New field.
19313 (map_attr_string): Take a file_location parameter. Report cases
19314 in which attributes map to multiple distinct values.
19315 (apply_attribute_uses): Update call accordingly.
19316 (md_reader::handle_overloaded_name): Likewise.
19317 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19319 (record_attribute_use): Take a file_location parameter.
19320 Initialize attribute_use::loc.
19321 (md_reader::record_potential_iterator_use): Take a file_location
19322 parameter. Update call to record_attribute_use.
19323 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19324 (rtx_reader::read_rtx_code): Likewise.
19325 (rtx_reader::read_rtx_operand): Likewise. Record a location
19326 for implicitly-expanded empty strings.
19328 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19330 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19331 Use file_location instead of separate fields.
19332 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19333 separate filename and line number.
19334 * read-md.c (ptr_loc): As above.
19335 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19336 (md_reader::fprint_md_ptr_loc): Likewise.
19337 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19338 instead of a separate filename and line number.
19339 (md_reader::read_string): Update call accordingly.
19341 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19343 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19344 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19345 leaving the choice between SFDF and P implicit.
19346 (*mov<mode>_update2): Likewise.
19347 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19348 rather than leaving the choice betweem IBM128 and GPR implicit.
19349 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19350 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19352 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19353 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19354 * config/rs6000/vsx.md
19355 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19356 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19357 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19358 and VSX_EXTRACT_I implicit.
19360 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19362 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19363 Explicitly use <MOVEP1:MODE> for the mode attribute.
19365 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19368 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19370 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19373 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19374 .machine directive.
19376 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19378 * config/i386/i386.md (@test<mode>_ccno_1):
19379 Rename from test<mode>_ccno_1.
19380 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19381 (*testqi_1_maybe_si): Remove modrm attribute.
19382 (*test<mode>_1): Ditto.
19383 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19384 gen_test_ccno_1 and gen_extend_insn.
19386 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19388 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19391 2019-07-15 Richard Biener <rguenther@suse.de>
19393 PR middle-end/91162
19394 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19395 node make sure to replace all uses with something valid.
19397 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19399 PR tree-optimization/88497
19400 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19401 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19402 function undistribute_bitref_for_vector.
19403 (undistribute_bitref_for_vector): New function.
19404 (cleanup_vinfo_map): Likewise.
19405 (sort_by_mach_mode): Likewise.
19407 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19409 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19410 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19411 and testdi_ccno_1 using SWI48 mode attribute.
19412 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19413 x86_64_szext_general_operand.
19414 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19415 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19416 instead of genera_operand mode attribute.
19418 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19420 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19421 fopen and fclose to their respective types.
19422 (DotFn.invoke): Ditto.
19424 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19426 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19427 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19428 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19429 (array_index_predicate): Remove.
19430 (analyze_function_body): Account cost for variable ofsetted array
19432 (estimate_node_size_and_time): Do not compute array index hint.
19433 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19434 (inline_read_section): Do not read array index hint.
19435 (ipa_fn_summary_write): Do not write array index hint.
19436 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19437 * ipa-cp.c (hint_time_bonus): Remove.
19438 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19439 (ipa_fnsummary): Remove array_index.
19440 * ipa-inline.c (want_inline_small_function_p): Do not use
19442 (edge_badness): Likewise.
19443 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19445 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19448 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19449 superfluous "builtin function" phrasing.
19451 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19453 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19455 (aliasing_component_refs_walk): Break out from ...
19456 (aliasing_component_refs_p): ... here.
19458 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19461 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19462 "builtin function" phrasing.
19464 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19467 * recog.h (temporary_volatile_ok): New class.
19468 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19469 volatile_ok temporarily to true using temporary_volatile_ok.
19470 * expr.c (emit_block_move_via_cpymem): Likewise.
19471 * optabs.c (maybe_legitimize_operand): Likewise.
19473 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19475 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19476 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19477 uses inside of order(concurrent) constructs.
19478 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19479 OMP_CLAUSE_ORDER is seen.
19480 * omp-low.c (struct omp_context): Add order_concurrent member.
19481 (scan_sharing_clauses): Set ctx->order_concurrent if
19482 OMP_CLAUSE_ORDER is seen.
19483 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19484 of simd order(concurrent). Diagnose constructs not allowed inside of
19485 for order(concurrent).
19486 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19487 complaining about static double setjmp (double); or class static
19488 methods or non-global namespace setjmps.
19489 (omp_runtime_api_call): New function.
19490 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19491 order(concurrent) loops.
19493 2019-07-12 Martin Sebor <msebor@redhat.com>
19495 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19496 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19497 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19498 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19500 2019-07-12 Jan Hubicka <jh@suse.cz>
19502 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19503 (indirect_refs_may_alias_p): ... here.
19504 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19505 mem refs in the access paths.
19507 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19509 PR tree-optimization/89430
19510 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19511 store elimination for local variable without address escape.
19513 2019-07-12 Jeff Law <law@redhat.com>
19515 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19516 for the ".far" section.
19518 2019-07-12 Richard Biener <rguenther@suse.de>
19520 PR tree-optimization/91145
19521 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19524 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19526 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19527 rather than this_state as the lowering context for the ELSE
19528 seq in a GIMPLE_EH_ELSE.
19530 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19532 * vector-builder.h (vector_builder::elt): Allow already-supplied
19533 elements to be read back before building is complete.
19535 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19537 PR rtl-optimization/91136
19538 * df-core.c (ACCESSING REFS): Fix typos in comment.
19539 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19540 the beginning of the block to the initial set of live registers.
19542 2019-07-12 Richard Biener <rguenther@suse.de>
19544 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19545 * fold-const.c (get_array_ctor_element_at_index): Add
19546 ctor_idx output parameter informing the caller where in
19547 the constructor the element was (not) found. Add early exit
19548 for when the ctor is sorted.
19549 * gimple-fold.c (fold_array_ctor_reference): Support constant
19550 folding across multiple array elements.
19552 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19554 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19555 doesn't have location, set the current location to the function's end.
19557 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19559 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19560 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19561 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19562 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19563 * config/aarch64/aarch64-simd.md
19564 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19565 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19566 * config/aarch64/aarch64-sve.md
19567 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19568 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19570 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19572 * doc/md.texi: Document that @ patterns can have different
19573 numbers of operands.
19574 * genemit.c (handle_overloaded_gen): Handle this case.
19575 * genopinit.c (handle_overloaded_gen): Likewise.
19576 * gensupport.c (replace_operands_with_dups): Iterate over
19577 the new rtx's format rather than the old one's.
19579 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19581 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19582 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19583 order clause entries.
19584 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19585 * tree-pretty-print.c (dump_omp_clause): Likewise.
19586 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19588 * omp-low.c (scan_sharing_clauses): Likewise.
19589 * tree-nested.c (convert_nonlocal_omp_clauses,
19590 convert_local_omp_clauses): Likewise.
19592 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19594 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19595 fallthrough target of current basic block isn't the placed
19598 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19601 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19602 (_mm512_storeu_epi64): Likewise.
19603 (_mm512_loadu_epi32): Likewise.
19604 (_mm512_storeu_epi32): Likewise.
19605 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19606 (_mm_storeu_epi64): Likewise.
19607 (_mm256_storeu_epi32): Likewise.
19608 (_mm_storeu_epi32): Likewise.
19610 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19612 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19614 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19616 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19619 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19622 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19623 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19624 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19625 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19626 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19627 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19629 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19630 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19631 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19633 (sse2_cvttpd2dq<mask_name>): Change into ...
19634 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19635 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19636 (*sse2_cvtpd2dq<mask_name>): Change into ...
19637 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19638 Add "C" constraint to const0_operand.
19639 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19640 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19644 * config/i386/i386-builtin-types.def
19645 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19646 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19647 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19648 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19649 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19650 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19651 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19652 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19653 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19654 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19655 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19656 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19657 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19658 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19659 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19660 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19661 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19662 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19663 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19664 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19665 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19666 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19667 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19668 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19669 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19670 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19671 __builtin_ia32_vpdpbusd_v4si_maskz,
19672 __builtin_ia32_vpdpbusds_v16si_mask,
19673 __builtin_ia32_vpdpbusds_v16si_maskz,
19674 __builtin_ia32_vpdpbusds_v8si_mask,
19675 __builtin_ia32_vpdpbusds_v8si_maskz,
19676 __builtin_ia32_vpdpbusds_v4si_mask,
19677 __builtin_ia32_vpdpbusds_v4si_maskz,
19678 __builtin_ia32_vpdpwssd_v16si_mask,
19679 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19680 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19681 __builtin_ia32_vpdpwssd_v4si_maskz,
19682 __builtin_ia32_vpdpwssds_v16si_mask,
19683 __builtin_ia32_vpdpwssds_v16si_maskz,
19684 __builtin_ia32_vpdpwssds_v8si_mask,
19685 __builtin_ia32_vpdpwssds_v8si_maskz,
19686 __builtin_ia32_vpdpwssds_v4si_mask,
19687 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19688 suffixed types rather than *_INT.
19689 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19690 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19691 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19692 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19693 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19694 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19696 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19698 * tree-vrp.c (intersect_ranges): If we know the intersection is
19699 empty, there is no need to conservatively add anything else to
19702 2019-07-11 Richard Biener <rguenther@suse.de>
19704 PR middle-end/91131
19705 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19706 when the object is volatile and we have not cleared it even though
19707 there are no nonzero elements.
19709 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19711 * config/rs6000/predicates.md (cint34_operand): Update
19712 SIGNED_34BIT_OFFSET_P call.
19713 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19714 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19715 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19716 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19717 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19719 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19720 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19721 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19722 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19723 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19725 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19727 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19728 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19729 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19730 (DEF_MIN_OSX_VERSION): New.
19732 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19734 * fold-const.c (fold_relational_const): Fix folding of
19735 vector-to-scalar NE_EXPRs.
19736 (test_vector_folding): Add more tests.
19738 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19741 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19742 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19743 (vec_setv2di_internal): Reexpress as...
19744 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19745 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19746 rather than gen_neon_vset_lane<mode>.
19748 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19751 * lra-constraints.c (process_alt_operands): Don't match user
19752 defined regs only if they are early clobbers.
19754 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19756 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19758 2019-07-10 Richard Biener <rguenther@suse.de>
19760 PR tree-optimization/91126
19761 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19762 native encoding offset for BYTES_BIG_ENDIAN.
19763 (vn_reference_lookup_3): Likewise.
19765 2019-07-10 Richard Biener <rguenther@suse.de>
19767 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19768 LHS whenever possible.
19770 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19772 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19773 from ...; work also on duplicated types.
19774 (nonoverlapping_component_refs_since_match): ... here
19775 (ncr_type_uid): Break out from ...
19776 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19778 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19779 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19781 2019-07-09 Martin Sebor <msebor@redhat.com>
19783 PR tree-optimization/90989
19784 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19785 optimization to just single character stores.
19787 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19789 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19790 Swap operands only once.
19792 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19794 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19795 for both call instructions.
19797 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19799 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19800 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19802 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19804 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19805 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19806 function from rs6000-logue.c back to rs6000.c.
19807 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19809 2019-07-09 Martin Sebor <msebor@redhat.com>
19812 * auto-profile.c: Change class-key of PODs to struct and others
19814 * basic-block.h: Same.
19815 * bitmap.c (bitmap_alloc): Same.
19817 * builtins.c (expand_builtin_prefetch): Same.
19818 (expand_builtin_interclass_mathfn): Same.
19819 (expand_builtin_strlen): Same.
19820 (expand_builtin_mempcpy_args): Same.
19821 (expand_cmpstr): Same.
19822 (expand_builtin___clear_cache): Same.
19823 (expand_ifn_atomic_bit_test_and): Same.
19824 (expand_builtin_thread_pointer): Same.
19825 (expand_builtin_set_thread_pointer): Same.
19826 * caller-save.c (setup_save_areas): Same.
19827 (replace_reg_with_saved_mem): Same.
19828 (insert_restore): Same.
19829 (insert_save): Same.
19830 (add_used_regs): Same.
19831 * cfg.c (get_bb_copy): Same.
19832 (set_loop_copy): Same.
19835 * cfgexpand.c (alloc_stack_frame_space): Same.
19836 (add_stack_var): Same.
19837 (add_stack_var_conflict): Same.
19838 (add_scope_conflicts_1): Same.
19839 (update_alias_info_with_stack_vars): Same.
19840 (expand_used_vars): Same.
19841 * cfghooks.c (redirect_edge_and_branch_force): Same.
19842 (delete_basic_block): Same.
19843 (split_edge): Same.
19844 (make_forwarder_block): Same.
19845 (force_nonfallthru): Same.
19846 (duplicate_block): Same.
19847 (lv_flush_pending_stmts): Same.
19848 * cfghooks.h: Same.
19849 * cfgloop.c (flow_loops_cfg_dump): Same.
19850 (flow_loop_nested_p): Same.
19851 (superloop_at_depth): Same.
19852 (get_loop_latch_edges): Same.
19853 (flow_loop_dump): Same.
19854 (flow_loops_dump): Same.
19855 (flow_loops_free): Same.
19856 (flow_loop_nodes_find): Same.
19857 (establish_preds): Same.
19858 (flow_loop_tree_node_add): Same.
19859 (flow_loop_tree_node_remove): Same.
19860 (flow_loops_find): Same.
19861 (find_subloop_latch_edge_by_profile): Same.
19862 (find_subloop_latch_edge_by_ivs): Same.
19863 (mfb_redirect_edges_in_set): Same.
19864 (form_subloop): Same.
19865 (merge_latch_edges): Same.
19866 (disambiguate_multiple_latches): Same.
19867 (disambiguate_loops_with_multiple_latches): Same.
19868 (flow_bb_inside_loop_p): Same.
19869 (glb_enum_p): Same.
19870 (get_loop_body_with_size): Same.
19871 (get_loop_body): Same.
19872 (fill_sons_in_loop): Same.
19873 (get_loop_body_in_dom_order): Same.
19874 (get_loop_body_in_custom_order): Same.
19875 (release_recorded_exits): Same.
19876 (get_loop_exit_edges): Same.
19877 (num_loop_branches): Same.
19878 (remove_bb_from_loops): Same.
19879 (find_common_loop): Same.
19880 (delete_loop): Same.
19881 (cancel_loop): Same.
19882 (verify_loop_structure): Same.
19883 (loop_preheader_edge): Same.
19884 (loop_exit_edge_p): Same.
19885 (single_exit): Same.
19886 (loop_exits_to_bb_p): Same.
19887 (loop_exits_from_bb_p): Same.
19888 (get_loop_location): Same.
19889 (record_niter_bound): Same.
19890 (get_estimated_loop_iterations_int): Same.
19891 (max_stmt_executions_int): Same.
19892 (likely_max_stmt_executions_int): Same.
19893 (get_estimated_loop_iterations): Same.
19894 (get_max_loop_iterations): Same.
19895 (get_max_loop_iterations_int): Same.
19896 (get_likely_max_loop_iterations): Same.
19897 * cfgloop.h (simple_loop_desc): Same.
19899 (loop_depth): Same.
19900 (loop_outer): Same.
19901 (loop_iterator::next): Same.
19902 (loop_outermost): Same.
19903 * cfgloopanal.c (mark_irreducible_loops): Same.
19904 (num_loop_insns): Same.
19905 (average_num_loop_insns): Same.
19906 (expected_loop_iterations_unbounded): Same.
19907 (expected_loop_iterations): Same.
19908 (mark_loop_exit_edges): Same.
19909 (single_likely_exit): Same.
19910 * cfgloopmanip.c (fix_bb_placement): Same.
19911 (fix_bb_placements): Same.
19912 (remove_path): Same.
19913 (place_new_loop): Same.
19915 (scale_loop_frequencies): Same.
19916 (scale_loop_profile): Same.
19917 (create_empty_if_region_on_edge): Same.
19918 (create_empty_loop_on_edge): Same.
19921 (fix_loop_placements): Same.
19922 (copy_loop_info): Same.
19923 (duplicate_loop): Same.
19924 (duplicate_subloops): Same.
19925 (loop_redirect_edge): Same.
19926 (can_duplicate_loop_p): Same.
19927 (duplicate_loop_to_header_edge): Same.
19928 (mfb_keep_just): Same.
19929 (has_preds_from_loop): Same.
19930 (create_preheader): Same.
19931 (create_preheaders): Same.
19932 (lv_adjust_loop_entry_edge): Same.
19933 (loop_version): Same.
19934 * cfgloopmanip.h: Same.
19936 * cgraphbuild.c: Same.
19937 * combine.c (make_extraction): Same.
19938 * config/i386/i386-features.c: Same.
19939 * config/i386/i386-features.h: Same.
19940 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19941 (ix86_emit_outlined_ms2sysv_restore): Same.
19942 (ix86_noce_conversion_profitable_p): Same.
19943 (ix86_init_cost): Same.
19944 (ix86_simd_clone_usable): Same.
19945 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
19947 * coretypes.h: Same.
19948 * data-streamer-in.c (string_for_index): Change class-key of PODs
19949 to struct and others to class.
19950 (streamer_read_indexed_string): Same.
19951 (streamer_read_string): Same.
19952 (bp_unpack_indexed_string): Same.
19953 (bp_unpack_string): Same.
19954 (streamer_read_uhwi): Same.
19955 (streamer_read_hwi): Same.
19956 (streamer_read_gcov_count): Same.
19957 (streamer_read_wide_int): Same.
19958 * data-streamer.h (streamer_write_bitpack): Same.
19959 (bp_unpack_value): Same.
19960 (streamer_write_char_stream): Same.
19961 (streamer_write_hwi_in_range): Same.
19962 (streamer_write_record_start): Same.
19963 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
19964 (add_cross_iteration_register_deps): Same.
19965 (build_intra_loop_deps): Same.
19966 * df-core.c (df_analyze): Same.
19967 (loop_post_order_compute): Same.
19968 (loop_inverted_post_order_compute): Same.
19969 * df-problems.c (df_rd_alloc): Same.
19970 (df_rd_simulate_one_insn): Same.
19971 (df_rd_local_compute): Same.
19972 (df_rd_init_solution): Same.
19973 (df_rd_confluence_n): Same.
19974 (df_rd_transfer_function): Same.
19975 (df_rd_free): Same.
19976 (df_rd_dump_defs_set): Same.
19977 (df_rd_top_dump): Same.
19978 (df_lr_alloc): Same.
19979 (df_lr_reset): Same.
19980 (df_lr_local_compute): Same.
19981 (df_lr_init): Same.
19982 (df_lr_confluence_n): Same.
19983 (df_lr_free): Same.
19984 (df_lr_top_dump): Same.
19985 (df_lr_verify_transfer_functions): Same.
19986 (df_live_alloc): Same.
19987 (df_live_reset): Same.
19988 (df_live_init): Same.
19989 (df_live_confluence_n): Same.
19990 (df_live_finalize): Same.
19991 (df_live_free): Same.
19992 (df_live_top_dump): Same.
19993 (df_live_verify_transfer_functions): Same.
19994 (df_mir_alloc): Same.
19995 (df_mir_reset): Same.
19996 (df_mir_init): Same.
19997 (df_mir_confluence_n): Same.
19998 (df_mir_free): Same.
19999 (df_mir_top_dump): Same.
20000 (df_word_lr_alloc): Same.
20001 (df_word_lr_reset): Same.
20002 (df_word_lr_init): Same.
20003 (df_word_lr_confluence_n): Same.
20004 (df_word_lr_free): Same.
20005 (df_word_lr_top_dump): Same.
20006 (df_md_alloc): Same.
20007 (df_md_simulate_one_insn): Same.
20008 (df_md_reset): Same.
20009 (df_md_init): Same.
20010 (df_md_free): Same.
20011 (df_md_top_dump): Same.
20012 * df-scan.c (df_insn_delete): Same.
20013 (df_insn_rescan): Same.
20014 (df_notes_rescan): Same.
20015 (df_sort_and_compress_mws): Same.
20016 (df_install_mws): Same.
20017 (df_refs_add_to_chains): Same.
20018 (df_ref_create_structure): Same.
20019 (df_ref_record): Same.
20020 (df_def_record_1): Same.
20021 (df_find_hard_reg_defs): Same.
20022 (df_uses_record): Same.
20023 (df_get_conditional_uses): Same.
20024 (df_get_call_refs): Same.
20025 (df_recompute_luids): Same.
20026 (df_get_entry_block_def_set): Same.
20027 (df_entry_block_defs_collect): Same.
20028 (df_get_exit_block_use_set): Same.
20029 (df_exit_block_uses_collect): Same.
20030 (df_mws_verify): Same.
20031 (df_bb_verify): Same.
20032 * df.h (df_scan_get_bb_info): Same.
20033 * doc/tm.texi: Same.
20034 * dse.c (record_store): Same.
20035 * dumpfile.h: Same.
20036 * emit-rtl.c (const_fixed_hasher::equal): Same.
20037 (set_mem_attributes_minus_bitpos): Same.
20038 (change_address): Same.
20039 (adjust_address_1): Same.
20040 (offset_address): Same.
20041 * emit-rtl.h: Same.
20042 * except.c (dw2_build_landing_pads): Same.
20043 (sjlj_emit_dispatch_table): Same.
20044 * explow.c (allocate_dynamic_stack_space): Same.
20045 (emit_stack_probe): Same.
20046 (probe_stack_range): Same.
20047 * expmed.c (store_bit_field_using_insv): Same.
20048 (store_bit_field_1): Same.
20049 (store_integral_bit_field): Same.
20050 (extract_bit_field_using_extv): Same.
20051 (extract_bit_field_1): Same.
20052 (emit_cstore): Same.
20053 * expr.c (emit_block_move_via_cpymem): Same.
20054 (expand_cmpstrn_or_cmpmem): Same.
20055 (set_storage_via_setmem): Same.
20056 (emit_single_push_insn_1): Same.
20057 (expand_assignment): Same.
20058 (store_constructor): Same.
20059 (expand_expr_real_2): Same.
20060 (expand_expr_real_1): Same.
20061 (try_casesi): Same.
20063 * function.c (try_fit_stack_local): Same.
20064 (assign_stack_local_1): Same.
20065 (assign_stack_local): Same.
20066 (cut_slot_from_list): Same.
20067 (insert_slot_to_list): Same.
20068 (max_slot_level): Same.
20069 (move_slot_to_level): Same.
20070 (temp_address_hasher::equal): Same.
20071 (remove_unused_temp_slot_addresses): Same.
20072 (assign_temp): Same.
20073 (combine_temp_slots): Same.
20074 (update_temp_slot_address): Same.
20075 (preserve_temp_slots): Same.
20076 * function.h: Same.
20078 * gcc-rich-location.h: Same.
20080 * genattrtab.c (check_attr_test): Same.
20081 (check_attr_value): Same.
20082 (convert_set_attr_alternative): Same.
20083 (convert_set_attr): Same.
20084 (check_defs): Same.
20085 (copy_boolean): Same.
20086 (get_attr_value): Same.
20087 (expand_delays): Same.
20088 (make_length_attrs): Same.
20090 (make_alternative_compare): Same.
20091 (simplify_test_exp): Same.
20092 (tests_attr_p): Same.
20093 (get_attr_order): Same.
20094 (clear_struct_flag): Same.
20096 (compares_alternatives_p): Same.
20099 (find_attrs_to_cache): Same.
20100 (write_test_expr): Same.
20101 (walk_attr_value): Same.
20102 (write_attr_get): Same.
20103 (eliminate_known_true): Same.
20104 (write_insn_cases): Same.
20105 (write_attr_case): Same.
20106 (write_attr_valueq): Same.
20107 (write_attr_value): Same.
20108 (write_dummy_eligible_delay): Same.
20109 (next_comma_elt): Same.
20111 (make_internal_attr): Same.
20112 (copy_rtx_unchanging): Same.
20113 (gen_insn_reserv): Same.
20114 (check_tune_attr): Same.
20115 (make_automaton_attrs): Same.
20116 (handle_arg): Same.
20117 * genextract.c (gen_insn): Same.
20118 (VEC_char_to_string): Same.
20119 * genmatch.c (print_operand): Same.
20121 (parser::parse_operation): Same.
20122 (parser::parse_capture): Same.
20123 (parser::parse_c_expr): Same.
20124 (parser::parse_simplify): Same.
20126 * genoutput.c (output_operand_data): Same.
20127 (output_get_insn_name): Same.
20128 (compare_operands): Same.
20129 (place_operands): Same.
20130 (process_template): Same.
20131 (validate_insn_alternatives): Same.
20132 (validate_insn_operands): Same.
20133 (gen_expand): Same.
20134 (note_constraint): Same.
20135 * genpreds.c (write_one_predicate_function): Same.
20136 (add_constraint): Same.
20137 (process_define_register_constraint): Same.
20138 (write_lookup_constraint_1): Same.
20139 (write_lookup_constraint_array): Same.
20140 (write_insn_constraint_len): Same.
20141 (write_reg_class_for_constraint_1): Same.
20142 (write_constraint_satisfied_p_array): Same.
20143 * genrecog.c (optimize_subroutine_group): Same.
20144 * gensupport.c (process_define_predicate): Same.
20145 (queue_pattern): Same.
20146 (remove_from_queue): Same.
20147 (process_rtx): Same.
20148 (is_predicable): Same.
20149 (change_subst_attribute): Same.
20150 (subst_pattern_match): Same.
20151 (alter_constraints): Same.
20152 (alter_attrs_for_insn): Same.
20153 (shift_output_template): Same.
20154 (alter_output_for_subst_insn): Same.
20155 (process_one_cond_exec): Same.
20157 (process_define_cond_exec): Same.
20158 (mnemonic_htab_callback): Same.
20159 (gen_mnemonic_attr): Same.
20160 (read_md_rtx): Same.
20161 * ggc-page.c: Same.
20162 * gimple-loop-interchange.cc (dump_reduction): Same.
20163 (dump_induction): Same.
20164 (loop_cand::~loop_cand): Same.
20165 (free_data_refs_with_aux): Same.
20166 (tree_loop_interchange::interchange_loops): Same.
20167 (tree_loop_interchange::map_inductions_to_loop): Same.
20168 (tree_loop_interchange::move_code_to_inner_loop): Same.
20169 (compute_access_stride): Same.
20170 (compute_access_strides): Same.
20171 (proper_loop_form_for_interchange): Same.
20172 (tree_loop_interchange_compute_ddrs): Same.
20173 (prune_datarefs_not_in_loop): Same.
20174 (prepare_data_references): Same.
20175 (pass_linterchange::execute): Same.
20176 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20177 (unroll_jam_possible_p): Same.
20178 (fuse_loops): Same.
20179 (adjust_unroll_factor): Same.
20180 (tree_loop_unroll_and_jam): Same.
20181 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20182 (loop_versioning::expensive_stmt_p): Same.
20183 (loop_versioning::version_for_unity): Same.
20184 (loop_versioning::dump_inner_likelihood): Same.
20185 (loop_versioning::find_per_loop_multiplication): Same.
20186 (loop_versioning::analyze_term_using_scevs): Same.
20187 (loop_versioning::record_address_fragment): Same.
20188 (loop_versioning::analyze_expr): Same.
20189 (loop_versioning::analyze_blocks): Same.
20190 (loop_versioning::prune_conditions): Same.
20191 (loop_versioning::merge_loop_info): Same.
20192 (loop_versioning::add_loop_to_queue): Same.
20193 (loop_versioning::decide_whether_loop_is_versionable): Same.
20194 (loop_versioning::make_versioning_decisions): Same.
20195 (loop_versioning::implement_versioning_decisions): Same.
20196 * gimple-ssa-evrp-analyze.c
20197 (evrp_range_analyzer::record_ranges_from_phis): Same.
20198 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20199 (count_multiple_uses): Same.
20200 (split_group): Same.
20201 (imm_store_chain_info::output_merged_store): Same.
20202 (pass_store_merging::process_store): Same.
20203 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20204 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20206 (alloca_call_type): Same.
20207 (pass_walloca::execute): Same.
20208 * gimple-streamer-in.c (input_phi): Same.
20209 (input_gimple_stmt): Same.
20210 * gimple-streamer.h: Same.
20211 * godump.c (go_force_record_alignment): Same.
20212 (go_format_type): Same.
20213 (go_output_type): Same.
20214 (go_output_fndecl): Same.
20215 (go_output_typedef): Same.
20216 (keyword_hash_init): Same.
20217 (find_dummy_types): Same.
20218 * graph.c (draw_cfg_nodes_no_loops): Same.
20219 (draw_cfg_nodes_for_loop): Same.
20220 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20221 * hsa-brig.c: Same.
20222 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20223 * hsa-dump.c (dump_hsa_cfun): Same.
20224 * hsa-gen.c (gen_function_def_parameters): Same.
20225 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20226 * input.c (dump_line_table_statistics): Same.
20227 (test_lexer): Same.
20229 * internal-fn.c (get_multi_vector_move): Same.
20230 (expand_load_lanes_optab_fn): Same.
20231 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20232 (expand_GOMP_SIMT_EXIT): Same.
20233 (expand_GOMP_SIMT_LAST_LANE): Same.
20234 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20235 (expand_GOMP_SIMT_VOTE_ANY): Same.
20236 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20237 (expand_GOMP_SIMT_XCHG_IDX): Same.
20238 (expand_addsub_overflow): Same.
20239 (expand_neg_overflow): Same.
20240 (expand_mul_overflow): Same.
20241 (expand_call_mem_ref): Same.
20242 (expand_mask_load_optab_fn): Same.
20243 (expand_scatter_store_optab_fn): Same.
20244 (expand_gather_load_optab_fn): Same.
20245 * ipa-cp.c (ipa_get_parm_lattices): Same.
20246 (print_all_lattices): Same.
20247 (ignore_edge_p): Same.
20248 (build_toporder_info): Same.
20249 (free_toporder_info): Same.
20250 (push_node_to_stack): Same.
20251 (ipcp_lattice<valtype>::set_contains_variable): Same.
20252 (set_agg_lats_to_bottom): Same.
20253 (ipcp_bits_lattice::meet_with): Same.
20254 (set_single_call_flag): Same.
20255 (initialize_node_lattices): Same.
20256 (ipa_get_jf_ancestor_result): Same.
20257 (ipcp_verify_propagated_values): Same.
20258 (propagate_scalar_across_jump_function): Same.
20259 (propagate_context_across_jump_function): Same.
20260 (propagate_bits_across_jump_function): Same.
20261 (ipa_vr_operation_and_type_effects): Same.
20262 (propagate_vr_across_jump_function): Same.
20263 (set_check_aggs_by_ref): Same.
20264 (set_chain_of_aglats_contains_variable): Same.
20265 (merge_aggregate_lattices): Same.
20266 (agg_pass_through_permissible_p): Same.
20267 (propagate_aggs_across_jump_function): Same.
20268 (call_passes_through_thunk_p): Same.
20269 (propagate_constants_across_call): Same.
20270 (devirtualization_time_bonus): Same.
20271 (good_cloning_opportunity_p): Same.
20272 (context_independent_aggregate_values): Same.
20273 (gather_context_independent_values): Same.
20274 (perform_estimation_of_a_value): Same.
20275 (estimate_local_effects): Same.
20276 (value_topo_info<valtype>::add_val): Same.
20277 (add_all_node_vals_to_toposort): Same.
20278 (value_topo_info<valtype>::propagate_effects): Same.
20279 (ipcp_propagate_stage): Same.
20280 (ipcp_discover_new_direct_edges): Same.
20281 (same_node_or_its_all_contexts_clone_p): Same.
20282 (cgraph_edge_brings_value_p): Same.
20283 (gather_edges_for_value): Same.
20284 (create_specialized_node): Same.
20285 (find_more_scalar_values_for_callers_subset): Same.
20286 (find_more_contexts_for_caller_subset): Same.
20287 (copy_plats_to_inter): Same.
20288 (intersect_aggregates_with_edge): Same.
20289 (find_aggregate_values_for_callers_subset): Same.
20290 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20291 (decide_about_value): Same.
20292 (decide_whether_version_node): Same.
20293 (spread_undeadness): Same.
20294 (identify_dead_nodes): Same.
20295 (ipcp_store_vr_results): Same.
20296 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20297 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20298 (redirect_to_unreachable): Same.
20299 (edge_set_predicate): Same.
20300 (evaluate_conditions_for_known_args): Same.
20301 (evaluate_properties_for_edge): Same.
20302 (ipa_fn_summary_t::duplicate): Same.
20303 (ipa_call_summary_t::duplicate): Same.
20304 (dump_ipa_call_summary): Same.
20305 (ipa_dump_fn_summary): Same.
20306 (eliminated_by_inlining_prob): Same.
20307 (set_cond_stmt_execution_predicate): Same.
20308 (set_switch_stmt_execution_predicate): Same.
20309 (compute_bb_predicates): Same.
20310 (will_be_nonconstant_expr_predicate): Same.
20311 (phi_result_unknown_predicate): Same.
20312 (analyze_function_body): Same.
20313 (compute_fn_summary): Same.
20314 (estimate_edge_devirt_benefit): Same.
20315 (estimate_edge_size_and_time): Same.
20316 (estimate_calls_size_and_time): Same.
20317 (estimate_node_size_and_time): Same.
20318 (remap_edge_change_prob): Same.
20319 (remap_edge_summaries): Same.
20320 (ipa_merge_fn_summary_after_inlining): Same.
20321 (ipa_fn_summary_generate): Same.
20322 (inline_read_section): Same.
20323 (ipa_fn_summary_read): Same.
20324 (ipa_fn_summary_write): Same.
20325 * ipa-fnsummary.h: Same.
20326 * ipa-hsa.c (ipa_hsa_read_section): Same.
20327 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20328 * ipa-icf.c (sem_function::param_used_p): Same.
20329 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20330 * ipa-inline.c (edge_badness): Same.
20331 (inline_small_functions): Same.
20332 * ipa-polymorphic-call.c
20333 (ipa_polymorphic_call_context::stream_out): Same.
20334 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20335 (predicate::remap_after_inlining): Same.
20336 (predicate::stream_out): Same.
20337 * ipa-predicate.h: Same.
20338 * ipa-profile.c (ipa_profile_read_summary): Same.
20339 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20340 (count_formal_params): Same.
20341 (ipa_dump_param): Same.
20342 (ipa_alloc_node_params): Same.
20343 (ipa_print_node_jump_functions_for_edge): Same.
20344 (ipa_print_node_jump_functions): Same.
20345 (ipa_load_from_parm_agg): Same.
20346 (get_ancestor_addr_info): Same.
20347 (ipa_compute_jump_functions_for_edge): Same.
20348 (ipa_analyze_virtual_call_uses): Same.
20349 (ipa_analyze_stmt_uses): Same.
20350 (ipa_analyze_params_uses_in_bb): Same.
20351 (update_jump_functions_after_inlining): Same.
20352 (try_decrement_rdesc_refcount): Same.
20353 (ipa_impossible_devirt_target): Same.
20354 (update_indirect_edges_after_inlining): Same.
20355 (combine_controlled_uses_counters): Same.
20356 (ipa_edge_args_sum_t::duplicate): Same.
20357 (ipa_write_jump_function): Same.
20358 (ipa_write_indirect_edge_info): Same.
20359 (ipa_write_node_info): Same.
20360 (ipa_read_edge_info): Same.
20361 (ipa_prop_read_section): Same.
20362 (read_replacements_section): Same.
20363 * ipa-prop.h (ipa_get_param_count): Same.
20364 (ipa_get_param): Same.
20365 (ipa_get_type): Same.
20366 (ipa_get_param_move_cost): Same.
20367 (ipa_set_param_used): Same.
20368 (ipa_get_controlled_uses): Same.
20369 (ipa_set_controlled_uses): Same.
20370 (ipa_get_cs_argument_count): Same.
20371 * ipa-pure-const.c (analyze_function): Same.
20372 (pure_const_read_summary): Same.
20374 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20375 * ipa-split.c (test_nonssa_use): Same.
20376 (dump_split_point): Same.
20377 (dominated_by_forbidden): Same.
20378 (split_part_set_ssa_name_p): Same.
20379 (find_split_points): Same.
20380 * ira-build.c (finish_loop_tree_nodes): Same.
20381 (low_pressure_loop_node_p): Same.
20382 * ira-color.c (ira_reuse_stack_slot): Same.
20384 * ira.c (setup_reg_equiv): Same.
20385 (print_insn_chain): Same.
20387 * loop-doloop.c (doloop_condition_get): Same.
20389 (record_reg_sets): Same.
20390 (doloop_optimize): Same.
20391 * loop-init.c (loop_optimizer_init): Same.
20392 (fix_loop_structure): Same.
20393 * loop-invariant.c (merge_identical_invariants): Same.
20394 (compute_always_reached): Same.
20395 (find_exits): Same.
20396 (may_assign_reg_p): Same.
20397 (find_invariants_bb): Same.
20398 (find_invariants_body): Same.
20399 (replace_uses): Same.
20400 (can_move_invariant_reg): Same.
20401 (free_inv_motion_data): Same.
20402 (move_single_loop_invariants): Same.
20403 (change_pressure): Same.
20404 (mark_ref_regs): Same.
20405 (calculate_loop_reg_pressure): Same.
20406 * loop-iv.c (biv_entry_hasher::equal): Same.
20407 (iv_extend_to_rtx_code): Same.
20408 (check_iv_ref_table_size): Same.
20409 (clear_iv_info): Same.
20410 (latch_dominating_def): Same.
20411 (iv_get_reaching_def): Same.
20412 (iv_constant): Same.
20418 (get_biv_step): Same.
20420 (analyzed_for_bivness_p): Same.
20421 (record_biv): Same.
20422 (iv_analyze_biv): Same.
20423 (iv_analyze_expr): Same.
20424 (iv_analyze_def): Same.
20425 (iv_analyze_op): Same.
20426 (iv_analyze): Same.
20427 (iv_analyze_result): Same.
20429 (eliminate_implied_conditions): Same.
20430 (simplify_using_initial_values): Same.
20431 (shorten_into_mode): Same.
20432 (canonicalize_iv_subregs): Same.
20433 (determine_max_iter): Same.
20434 (check_simple_exit): Same.
20435 (find_simple_exit): Same.
20436 (get_simple_loop_desc): Same.
20437 * loop-unroll.c (report_unroll): Same.
20438 (decide_unrolling): Same.
20439 (unroll_loops): Same.
20440 (loop_exit_at_end_p): Same.
20441 (decide_unroll_constant_iterations): Same.
20442 (unroll_loop_constant_iterations): Same.
20443 (compare_and_jump_seq): Same.
20444 (unroll_loop_runtime_iterations): Same.
20445 (decide_unroll_stupid): Same.
20446 (unroll_loop_stupid): Same.
20447 (referenced_in_one_insn_in_loop_p): Same.
20448 (reset_debug_uses_in_loop): Same.
20449 (analyze_iv_to_split_insn): Same.
20450 * lra-eliminations.c (lra_debug_elim_table): Same.
20451 (setup_can_eliminate): Same.
20453 (lra_get_elimination_hard_regno): Same.
20454 (lra_eliminate_regs_1): Same.
20455 (eliminate_regs_in_insn): Same.
20456 (update_reg_eliminate): Same.
20457 (init_elimination): Same.
20458 (lra_eliminate): Same.
20460 * lra-lives.c (initiate_live_solver): Same.
20461 * lra-remat.c (create_remat_bb_data): Same.
20462 * lra-spills.c (lra_spill): Same.
20463 * lra.c (lra_set_insn_recog_data): Same.
20464 (lra_set_used_insn_alternative_by_uid): Same.
20465 (init_reg_info): Same.
20466 (expand_reg_info): Same.
20467 * lto-cgraph.c (output_symtab): Same.
20468 (read_identifier): Same.
20469 (get_alias_symbol): Same.
20470 (input_node): Same.
20471 (input_varpool_node): Same.
20473 (input_edge): Same.
20474 (input_cgraph_1): Same.
20475 (input_refs): Same.
20476 (input_symtab): Same.
20477 (input_offload_tables): Same.
20478 (output_cgraph_opt_summary): Same.
20479 (input_edge_opt_summary): Same.
20480 (input_cgraph_opt_section): Same.
20481 * lto-section-in.c (lto_free_raw_section_data): Same.
20482 (lto_create_simple_input_block): Same.
20483 (lto_free_function_in_decl_state_for_node): Same.
20484 * lto-streamer-in.c (lto_tag_check_set): Same.
20485 (lto_location_cache::revert_location_cache): Same.
20486 (lto_location_cache::input_location): Same.
20487 (lto_input_location): Same.
20488 (stream_input_location_now): Same.
20489 (lto_input_tree_ref): Same.
20490 (lto_input_eh_catch_list): Same.
20491 (input_eh_region): Same.
20492 (lto_init_eh): Same.
20493 (make_new_block): Same.
20495 (fixup_call_stmt_edges): Same.
20496 (input_struct_function_base): Same.
20497 (input_function): Same.
20498 (lto_read_body_or_constructor): Same.
20499 (lto_read_tree_1): Same.
20500 (lto_read_tree): Same.
20501 (lto_input_scc): Same.
20502 (lto_input_tree_1): Same.
20503 (lto_input_toplevel_asms): Same.
20504 (lto_input_mode_table): Same.
20505 (lto_reader_init): Same.
20506 (lto_data_in_create): Same.
20507 * lto-streamer-out.c (output_cfg): Same.
20508 * lto-streamer.h: Same.
20509 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20510 (generate_prolog_epilog): Same.
20511 (mark_loop_unsched): Same.
20512 (dump_insn_location): Same.
20513 (loop_canon_p): Same.
20514 (sms_schedule): Same.
20515 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20516 (expand_omp_for_generic): Same.
20517 (expand_omp_for_static_nochunk): Same.
20518 (expand_omp_for_static_chunk): Same.
20519 (expand_omp_simd): Same.
20520 (expand_omp_taskloop_for_inner): Same.
20521 (expand_oacc_for): Same.
20522 (expand_omp_atomic_pipeline): Same.
20523 (mark_loops_in_oacc_kernels_region): Same.
20524 * omp-offload.c (oacc_xform_loop): Same.
20525 * omp-simd-clone.c (simd_clone_adjust): Same.
20526 * optabs-query.c (get_traditional_extraction_insn): Same.
20527 * optabs.c (expand_vector_broadcast): Same.
20528 (expand_binop_directly): Same.
20529 (expand_twoval_unop): Same.
20530 (expand_twoval_binop): Same.
20531 (expand_unop_direct): Same.
20532 (emit_indirect_jump): Same.
20533 (emit_conditional_move): Same.
20534 (emit_conditional_neg_or_complement): Same.
20535 (emit_conditional_add): Same.
20536 (vector_compare_rtx): Same.
20537 (expand_vec_perm_1): Same.
20538 (expand_vec_perm_const): Same.
20539 (expand_vec_cond_expr): Same.
20540 (expand_vec_series_expr): Same.
20541 (maybe_emit_atomic_exchange): Same.
20542 (maybe_emit_sync_lock_test_and_set): Same.
20543 (expand_atomic_compare_and_swap): Same.
20544 (expand_atomic_load): Same.
20545 (expand_atomic_store): Same.
20546 (maybe_emit_op): Same.
20547 (valid_multiword_target_p): Same.
20548 (create_integer_operand): Same.
20549 (maybe_legitimize_operand_same_code): Same.
20550 (maybe_legitimize_operand): Same.
20551 (create_convert_operand_from_type): Same.
20552 (can_reuse_operands_p): Same.
20553 (maybe_legitimize_operands): Same.
20554 (maybe_gen_insn): Same.
20555 (maybe_expand_insn): Same.
20556 (maybe_expand_jump_insn): Same.
20557 (expand_insn): Same.
20558 * optabs.h (create_expand_operand): Same.
20559 (create_fixed_operand): Same.
20560 (create_output_operand): Same.
20561 (create_input_operand): Same.
20562 (create_convert_operand_to): Same.
20563 (create_convert_operand_from): Same.
20565 * poly-int.h: Same.
20566 * predict.c (optimize_insn_for_speed_p): Same.
20567 (optimize_loop_for_size_p): Same.
20568 (optimize_loop_for_speed_p): Same.
20569 (optimize_loop_nest_for_speed_p): Same.
20570 (get_base_value): Same.
20571 (predicted_by_loop_heuristics_p): Same.
20572 (predict_extra_loop_exits): Same.
20573 (predict_loops): Same.
20574 (predict_paths_for_bb): Same.
20575 (predict_paths_leading_to): Same.
20576 (propagate_freq): Same.
20577 (pass_profile::execute): Same.
20579 * profile-count.c (profile_count::differs_from_p): Same.
20580 (profile_probability::differs_lot_from_p): Same.
20581 * profile-count.h: Same.
20582 * profile.c (branch_prob): Same.
20583 * regrename.c (free_chain_data): Same.
20584 (mark_conflict): Same.
20585 (create_new_chain): Same.
20586 (merge_overlapping_regs): Same.
20587 (init_rename_info): Same.
20588 (merge_chains): Same.
20589 (regrename_analyze): Same.
20590 (regrename_do_replace): Same.
20591 (scan_rtx_reg): Same.
20592 (record_out_operands): Same.
20593 (build_def_use): Same.
20594 * regrename.h: Same.
20596 * reload1.c (init_reload): Same.
20597 (maybe_fix_stack_asms): Same.
20598 (copy_reloads): Same.
20599 (count_pseudo): Same.
20600 (count_spilled_pseudo): Same.
20602 (find_reload_regs): Same.
20603 (select_reload_regs): Same.
20604 (spill_hard_reg): Same.
20605 (fixup_eh_region_note): Same.
20606 (set_reload_reg): Same.
20607 (allocate_reload_reg): Same.
20608 (compute_reload_subreg_offset): Same.
20609 (reload_adjust_reg_for_icode): Same.
20610 (emit_input_reload_insns): Same.
20611 (emit_output_reload_insns): Same.
20612 (do_input_reload): Same.
20613 (inherit_piecemeal_p): Same.
20615 * sanopt.c (maybe_get_dominating_check): Same.
20616 (maybe_optimize_ubsan_ptr_ifn): Same.
20617 (can_remove_asan_check): Same.
20618 (maybe_optimize_asan_check_ifn): Same.
20619 (sanopt_optimize_walker): Same.
20620 * sched-deps.c (add_dependence_list): Same.
20621 (chain_to_prev_insn): Same.
20622 (add_insn_mem_dependence): Same.
20623 (create_insn_reg_set): Same.
20624 (maybe_extend_reg_info_p): Same.
20625 (sched_analyze_reg): Same.
20626 (sched_analyze_1): Same.
20627 (get_implicit_reg_pending_clobbers): Same.
20628 (chain_to_prev_insn_p): Same.
20629 (deps_analyze_insn): Same.
20630 (deps_start_bb): Same.
20631 (sched_free_deps): Same.
20633 (init_deps_reg_last): Same.
20635 * sched-ebb.c: Same.
20636 * sched-int.h: Same.
20637 * sched-rgn.c (add_branch_dependences): Same.
20638 (concat_insn_mem_list): Same.
20640 (sched_rgn_compute_dependencies): Same.
20641 * sel-sched-ir.c (reset_target_context): Same.
20642 (copy_deps_context): Same.
20643 (init_id_from_df): Same.
20644 (has_dependence_p): Same.
20645 (change_loops_latches): Same.
20646 (bb_top_order_comparator): Same.
20647 (make_region_from_loop_preheader): Same.
20648 (sel_init_pipelining): Same.
20649 (get_loop_nest_for_rgn): Same.
20650 (make_regions_from_the_rest): Same.
20651 (sel_is_loop_preheader_p): Same.
20652 * sel-sched-ir.h (inner_loop_header_p): Same.
20653 (get_all_loop_exits): Same.
20654 * selftest.h: Same.
20655 * sese.c (sese_build_liveouts): Same.
20656 (sese_insert_phis_for_liveouts): Same.
20657 * sese.h (defined_in_sese_p): Same.
20658 * sreal.c (sreal::stream_out): Same.
20660 * streamer-hooks.h: Same.
20661 * target-globals.c (save_target_globals): Same.
20662 * target-globals.h: Same.
20663 * target.def: Same.
20665 * targhooks.c (default_has_ifunc_p): Same.
20666 (default_empty_mask_is_expensive): Same.
20667 (default_init_cost): Same.
20668 * targhooks.h: Same.
20670 * tree-affine.c (aff_combination_mult): Same.
20671 (aff_combination_expand): Same.
20672 (aff_combination_constant_multiple_p): Same.
20673 * tree-affine.h: Same.
20674 * tree-cfg.c (build_gimple_cfg): Same.
20675 (replace_loop_annotate_in_block): Same.
20676 (replace_uses_by): Same.
20678 (dump_cfg_stats): Same.
20679 (gimple_duplicate_sese_region): Same.
20680 (gimple_duplicate_sese_tail): Same.
20681 (move_block_to_fn): Same.
20682 (replace_block_vars_by_duplicates): Same.
20683 (move_sese_region_to_fn): Same.
20684 (print_loops_bb): Same.
20685 (print_loop): Same.
20686 (print_loops): Same.
20688 (debug_loops): Same.
20689 * tree-cfg.h: Same.
20690 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20691 (chrec_fold_multiply_poly_poly): Same.
20692 (chrec_evaluate): Same.
20693 (chrec_component_in_loop_num): Same.
20694 (reset_evolution_in_loop): Same.
20695 (is_multivariate_chrec): Same.
20696 (chrec_contains_symbols): Same.
20697 (nb_vars_in_chrec): Same.
20698 (chrec_convert_1): Same.
20699 (chrec_convert_aggressive): Same.
20700 * tree-chrec.h: Same.
20701 * tree-core.h: Same.
20702 * tree-data-ref.c (dump_data_dependence_relation): Same.
20703 (canonicalize_base_object_address): Same.
20704 (data_ref_compare_tree): Same.
20705 (prune_runtime_alias_test_list): Same.
20706 (get_segment_min_max): Same.
20707 (create_intersect_range_checks): Same.
20708 (conflict_fn_no_dependence): Same.
20709 (object_address_invariant_in_loop_p): Same.
20710 (analyze_ziv_subscript): Same.
20711 (analyze_siv_subscript_cst_affine): Same.
20712 (analyze_miv_subscript): Same.
20713 (analyze_overlapping_iterations): Same.
20714 (build_classic_dist_vector_1): Same.
20715 (add_other_self_distances): Same.
20716 (same_access_functions): Same.
20717 (build_classic_dir_vector): Same.
20718 (subscript_dependence_tester_1): Same.
20719 (subscript_dependence_tester): Same.
20720 (access_functions_are_affine_or_constant_p): Same.
20721 (get_references_in_stmt): Same.
20722 (loop_nest_has_data_refs): Same.
20723 (graphite_find_data_references_in_stmt): Same.
20724 (find_data_references_in_bb): Same.
20725 (get_base_for_alignment): Same.
20726 (find_loop_nest_1): Same.
20727 (find_loop_nest): Same.
20728 * tree-data-ref.h (dr_alignment): Same.
20729 (ddr_dependence_level): Same.
20730 * tree-if-conv.c (fold_build_cond_expr): Same.
20731 (add_to_predicate_list): Same.
20732 (add_to_dst_predicate_list): Same.
20733 (phi_convertible_by_degenerating_args): Same.
20734 (idx_within_array_bound): Same.
20735 (all_preds_critical_p): Same.
20736 (pred_blocks_visited_p): Same.
20737 (predicate_bbs): Same.
20738 (build_region): Same.
20739 (if_convertible_loop_p_1): Same.
20740 (is_cond_scalar_reduction): Same.
20741 (predicate_scalar_phi): Same.
20742 (remove_conditions_and_labels): Same.
20743 (combine_blocks): Same.
20744 (version_loop_for_if_conversion): Same.
20745 (versionable_outer_loop_p): Same.
20746 (ifcvt_local_dce): Same.
20747 (tree_if_conversion): Same.
20748 (pass_if_conversion::gate): Same.
20749 * tree-if-conv.h: Same.
20750 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20751 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20753 (stmt_has_scalar_dependences_outside_loop): Same.
20754 (copy_loop_before): Same.
20755 (create_bb_after_loop): Same.
20756 (const_with_all_bytes_same): Same.
20757 (generate_memset_builtin): Same.
20758 (generate_memcpy_builtin): Same.
20759 (destroy_loop): Same.
20760 (build_rdg_partition_for_vertex): Same.
20761 (compute_access_range): Same.
20762 (data_ref_segment_size): Same.
20763 (latch_dominated_by_data_ref): Same.
20764 (compute_alias_check_pairs): Same.
20765 (fuse_memset_builtins): Same.
20766 (finalize_partitions): Same.
20767 (find_seed_stmts_for_distribution): Same.
20768 (prepare_perfect_loop_nest): Same.
20769 * tree-parloops.c (lambda_transform_legal_p): Same.
20770 (loop_parallel_p): Same.
20771 (reduc_stmt_res): Same.
20772 (add_field_for_name): Same.
20773 (create_call_for_reduction_1): Same.
20774 (replace_uses_in_bb_by): Same.
20775 (transform_to_exit_first_loop_alt): Same.
20776 (try_transform_to_exit_first_loop_alt): Same.
20777 (transform_to_exit_first_loop): Same.
20779 (gen_parallel_loop): Same.
20780 (gather_scalar_reductions): Same.
20781 (get_omp_data_i_param): Same.
20782 (try_create_reduction_list): Same.
20783 (oacc_entry_exit_single_gang): Same.
20784 (parallelize_loops): Same.
20785 * tree-pass.h: Same.
20786 * tree-predcom.c (determine_offset): Same.
20787 (last_always_executed_block): Same.
20788 (split_data_refs_to_components): Same.
20789 (suitable_component_p): Same.
20790 (valid_initializer_p): Same.
20791 (find_looparound_phi): Same.
20792 (insert_looparound_copy): Same.
20793 (add_looparound_copies): Same.
20794 (determine_roots_comp): Same.
20795 (predcom_tmp_var): Same.
20796 (initialize_root_vars): Same.
20797 (initialize_root_vars_store_elim_1): Same.
20798 (initialize_root_vars_store_elim_2): Same.
20799 (finalize_eliminated_stores): Same.
20800 (initialize_root_vars_lm): Same.
20801 (remove_stmt): Same.
20802 (determine_unroll_factor): Same.
20803 (execute_pred_commoning_cbck): Same.
20804 (base_names_in_chain_on): Same.
20805 (combine_chains): Same.
20806 (pcom_stmt_dominates_stmt_p): Same.
20807 (try_combine_chains): Same.
20808 (prepare_initializers_chain_store_elim): Same.
20809 (prepare_initializers_chain): Same.
20810 (prepare_initializers): Same.
20811 (prepare_finalizers_chain): Same.
20812 (prepare_finalizers): Same.
20813 (insert_init_seqs): Same.
20814 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20815 (compute_overall_effect_of_inner_loop): Same.
20816 (add_to_evolution_1): Same.
20817 (add_to_evolution): Same.
20818 (follow_ssa_edge_binary): Same.
20819 (follow_ssa_edge_expr): Same.
20820 (backedge_phi_arg_p): Same.
20821 (follow_ssa_edge_in_condition_phi_branch): Same.
20822 (follow_ssa_edge_in_condition_phi): Same.
20823 (follow_ssa_edge_inner_loop_phi): Same.
20824 (follow_ssa_edge): Same.
20825 (analyze_evolution_in_loop): Same.
20826 (analyze_initial_condition): Same.
20827 (interpret_loop_phi): Same.
20828 (interpret_condition_phi): Same.
20829 (interpret_rhs_expr): Same.
20830 (interpret_expr): Same.
20831 (interpret_gimple_assign): Same.
20832 (analyze_scalar_evolution_1): Same.
20833 (analyze_scalar_evolution): Same.
20834 (analyze_scalar_evolution_for_address_of): Same.
20835 (get_instantiated_value_entry): Same.
20836 (loop_closed_phi_def): Same.
20837 (instantiate_scev_name): Same.
20838 (instantiate_scev_poly): Same.
20839 (instantiate_scev_binary): Same.
20840 (instantiate_scev_convert): Same.
20841 (instantiate_scev_not): Same.
20842 (instantiate_scev_r): Same.
20843 (instantiate_scev): Same.
20844 (resolve_mixers): Same.
20845 (initialize_scalar_evolutions_analyzer): Same.
20846 (scev_reset_htab): Same.
20847 (scev_reset): Same.
20848 (derive_simple_iv_with_niters): Same.
20849 (simple_iv_with_niters): Same.
20850 (expression_expensive_p): Same.
20851 (final_value_replacement_loop): Same.
20852 * tree-scalar-evolution.h (block_before_loop): Same.
20853 * tree-ssa-address.h: Same.
20854 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20855 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20856 (record_edge_info): Same.
20857 * tree-ssa-live.c (var_map_base_fini): Same.
20858 (remove_unused_locals): Same.
20859 * tree-ssa-live.h: Same.
20860 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20861 (pass_ch_vect::execute): Same.
20862 (pass_ch::process_loop_p): Same.
20863 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20864 (movement_possibility): Same.
20865 (outermost_invariant_loop): Same.
20867 (determine_max_movement): Same.
20868 (invariantness_dom_walker::before_dom_children): Same.
20869 (move_computations): Same.
20870 (may_move_till): Same.
20871 (force_move_till_op): Same.
20872 (force_move_till): Same.
20873 (memref_free): Same.
20874 (record_mem_ref_loc): Same.
20875 (set_ref_stored_in_loop): Same.
20876 (mark_ref_stored): Same.
20877 (sort_bbs_in_loop_postorder_cmp): Same.
20878 (sort_locs_in_loop_postorder_cmp): Same.
20879 (analyze_memory_references): Same.
20880 (mem_refs_may_alias_p): Same.
20881 (find_ref_loc_in_loop_cmp): Same.
20882 (rewrite_mem_ref_loc::operator): Same.
20883 (first_mem_ref_loc_1::operator): Same.
20884 (sm_set_flag_if_changed::operator): Same.
20885 (execute_sm_if_changed_flag_set): Same.
20886 (execute_sm): Same.
20887 (hoist_memory_references): Same.
20888 (ref_always_accessed::operator): Same.
20889 (refs_independent_p): Same.
20890 (record_dep_loop): Same.
20891 (ref_indep_loop_p_1): Same.
20892 (ref_indep_loop_p): Same.
20893 (can_sm_ref_p): Same.
20894 (find_refs_for_sm): Same.
20895 (loop_suitable_for_sm): Same.
20896 (store_motion_loop): Same.
20897 (store_motion): Same.
20898 (fill_always_executed_in): Same.
20899 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20900 (estimated_unrolled_size): Same.
20901 (loop_edge_to_cancel): Same.
20902 (remove_exits_and_undefined_stmts): Same.
20903 (remove_redundant_iv_tests): Same.
20904 (unloop_loops): Same.
20905 (estimated_peeled_sequence_size): Same.
20906 (try_peel_loop): Same.
20907 (canonicalize_loop_induction_variables): Same.
20908 (canonicalize_induction_variables): Same.
20909 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20911 (stmt_after_inc_pos): Same.
20912 (contains_abnormal_ssa_name_p): Same.
20913 (niter_for_exit): Same.
20916 (find_givs_in_bb): Same.
20917 (find_induction_variables): Same.
20918 (find_interesting_uses_cond): Same.
20919 (outermost_invariant_loop_for_expr): Same.
20920 (idx_find_step): Same.
20921 (add_candidate_1): Same.
20922 (add_iv_candidate_derived_from_uses): Same.
20923 (alloc_use_cost_map): Same.
20924 (prepare_decl_rtl): Same.
20925 (generic_predict_doloop_p): Same.
20926 (computation_cost): Same.
20927 (determine_common_wider_type): Same.
20928 (get_computation_aff_1): Same.
20929 (get_use_type): Same.
20930 (determine_group_iv_cost_address): Same.
20932 (difference_cannot_overflow_p): Same.
20933 (may_eliminate_iv): Same.
20934 (determine_set_costs): Same.
20935 (cheaper_cost_pair): Same.
20936 (compare_cost_pair): Same.
20937 (iv_ca_cand_for_group): Same.
20938 (iv_ca_recount_cost): Same.
20939 (iv_ca_set_remove_invs): Same.
20940 (iv_ca_set_no_cp): Same.
20941 (iv_ca_set_add_invs): Same.
20942 (iv_ca_set_cp): Same.
20943 (iv_ca_add_group): Same.
20944 (iv_ca_cost): Same.
20945 (iv_ca_compare_deps): Same.
20946 (iv_ca_delta_reverse): Same.
20947 (iv_ca_delta_commit): Same.
20948 (iv_ca_cand_used_p): Same.
20949 (iv_ca_delta_free): Same.
20951 (iv_ca_free): Same.
20952 (iv_ca_dump): Same.
20953 (iv_ca_extend): Same.
20954 (iv_ca_narrow): Same.
20955 (iv_ca_prune): Same.
20956 (cheaper_cost_with_cand): Same.
20957 (iv_ca_replace): Same.
20958 (try_add_cand_for): Same.
20959 (get_initial_solution): Same.
20960 (try_improve_iv_set): Same.
20961 (find_optimal_iv_set_1): Same.
20962 (create_new_iv): Same.
20963 (rewrite_use_compare): Same.
20964 (remove_unused_ivs): Same.
20965 (determine_scaling_factor): Same.
20966 * tree-ssa-loop-ivopts.h: Same.
20967 * tree-ssa-loop-manip.c (create_iv): Same.
20968 (compute_live_loop_exits): Same.
20969 (add_exit_phi): Same.
20970 (add_exit_phis): Same.
20971 (find_uses_to_rename_use): Same.
20972 (find_uses_to_rename_def): Same.
20973 (find_uses_to_rename_in_loop): Same.
20974 (rewrite_into_loop_closed_ssa): Same.
20975 (check_loop_closed_ssa_bb): Same.
20976 (split_loop_exit_edge): Same.
20977 (ip_end_pos): Same.
20978 (ip_normal_pos): Same.
20979 (copy_phi_node_args): Same.
20980 (gimple_duplicate_loop_to_header_edge): Same.
20981 (can_unroll_loop_p): Same.
20982 (determine_exit_conditions): Same.
20983 (scale_dominated_blocks_in_loop): Same.
20984 (niter_for_unrolled_loop): Same.
20985 (tree_transform_and_unroll_loop): Same.
20986 (rewrite_all_phi_nodes_with_iv): Same.
20987 * tree-ssa-loop-manip.h: Same.
20988 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
20989 (number_of_iterations_ne): Same.
20990 (assert_no_overflow_lt): Same.
20991 (assert_loop_rolls_lt): Same.
20992 (number_of_iterations_lt): Same.
20993 (adjust_cond_for_loop_until_wrap): Same.
20994 (tree_simplify_using_condition): Same.
20995 (simplify_using_initial_conditions): Same.
20996 (simplify_using_outer_evolutions): Same.
20997 (loop_only_exit_p): Same.
20998 (ssa_defined_by_minus_one_stmt_p): Same.
20999 (number_of_iterations_popcount): Same.
21000 (number_of_iterations_exit): Same.
21001 (find_loop_niter): Same.
21002 (finite_loop_p): Same.
21003 (chain_of_csts_start): Same.
21004 (get_val_for): Same.
21005 (loop_niter_by_eval): Same.
21006 (derive_constant_upper_bound_ops): Same.
21007 (do_warn_aggressive_loop_optimizations): Same.
21008 (record_estimate): Same.
21009 (get_cst_init_from_scev): Same.
21010 (record_nonwrapping_iv): Same.
21011 (idx_infer_loop_bounds): Same.
21012 (infer_loop_bounds_from_ref): Same.
21013 (infer_loop_bounds_from_array): Same.
21014 (infer_loop_bounds_from_pointer_arith): Same.
21015 (infer_loop_bounds_from_signedness): Same.
21016 (bound_index): Same.
21017 (discover_iteration_bound_by_body_walk): Same.
21018 (maybe_lower_iteration_bound): Same.
21019 (estimate_numbers_of_iterations): Same.
21020 (estimated_loop_iterations): Same.
21021 (estimated_loop_iterations_int): Same.
21022 (max_loop_iterations): Same.
21023 (max_loop_iterations_int): Same.
21024 (likely_max_loop_iterations): Same.
21025 (likely_max_loop_iterations_int): Same.
21026 (estimated_stmt_executions_int): Same.
21027 (max_stmt_executions): Same.
21028 (likely_max_stmt_executions): Same.
21029 (estimated_stmt_executions): Same.
21030 (stmt_dominates_stmt_p): Same.
21031 (nowrap_type_p): Same.
21032 (loop_exits_before_overflow): Same.
21033 (scev_var_range_cant_overflow): Same.
21034 (scev_probably_wraps_p): Same.
21035 (free_numbers_of_iterations_estimates): Same.
21036 * tree-ssa-loop-niter.h: Same.
21037 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21038 (idx_analyze_ref): Same.
21039 (analyze_ref): Same.
21040 (gather_memory_references_ref): Same.
21041 (mark_nontemporal_store): Same.
21042 (emit_mfence_after_loop): Same.
21043 (may_use_storent_in_loop_p): Same.
21044 (mark_nontemporal_stores): Same.
21045 (should_unroll_loop_p): Same.
21046 (volume_of_dist_vector): Same.
21047 (add_subscript_strides): Same.
21048 (self_reuse_distance): Same.
21049 (insn_to_prefetch_ratio_too_small_p): Same.
21050 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21051 (patch_loop_exit): Same.
21052 (find_or_create_guard_phi): Same.
21053 (easy_exit_values): Same.
21054 (connect_loop_phis): Same.
21055 (connect_loops): Same.
21056 (compute_new_first_bound): Same.
21057 (split_loop): Same.
21058 (tree_ssa_split_loops): Same.
21059 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21060 (is_maybe_undefined): Same.
21061 (tree_may_unswitch_on): Same.
21062 (simplify_using_entry_checks): Same.
21063 (tree_unswitch_single_loop): Same.
21064 (tree_unswitch_loop): Same.
21065 (tree_unswitch_outer_loop): Same.
21066 (empty_bb_without_guard_p): Same.
21067 (used_outside_loop_p): Same.
21068 (get_vop_from_header): Same.
21069 (hoist_guard): Same.
21070 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21071 (get_lsm_tmp_name): Same.
21072 * tree-ssa-loop.h: Same.
21073 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21074 (build_and_add_sum): Same.
21075 (no_side_effect_bb): Same.
21077 (linearize_expr): Same.
21078 (should_break_up_subtract): Same.
21079 (linearize_expr_tree): Same.
21080 * tree-ssa-scopedtables.c: Same.
21081 * tree-ssa-scopedtables.h: Same.
21082 * tree-ssa-structalias.c (condense_visit): Same.
21083 (label_visit): Same.
21084 (dump_pred_graph): Same.
21085 (perform_var_substitution): Same.
21086 (move_complex_constraints): Same.
21087 (remove_preds_and_fake_succs): Same.
21088 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21089 (determine_bb_domination_status): Same.
21090 (duplicate_thread_path): Same.
21091 (thread_through_all_blocks): Same.
21092 * tree-ssa-threadupdate.h: Same.
21093 * tree-streamer-in.c (streamer_read_string_cst): Same.
21094 (input_identifier): Same.
21095 (unpack_ts_type_common_value_fields): Same.
21096 (unpack_ts_block_value_fields): Same.
21097 (unpack_ts_translation_unit_decl_value_fields): Same.
21098 (unpack_ts_omp_clause_value_fields): Same.
21099 (streamer_read_tree_bitfields): Same.
21100 (streamer_alloc_tree): Same.
21101 (lto_input_ts_common_tree_pointers): Same.
21102 (lto_input_ts_vector_tree_pointers): Same.
21103 (lto_input_ts_poly_tree_pointers): Same.
21104 (lto_input_ts_complex_tree_pointers): Same.
21105 (lto_input_ts_decl_minimal_tree_pointers): Same.
21106 (lto_input_ts_decl_common_tree_pointers): Same.
21107 (lto_input_ts_decl_non_common_tree_pointers): Same.
21108 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21109 (lto_input_ts_field_decl_tree_pointers): Same.
21110 (lto_input_ts_function_decl_tree_pointers): Same.
21111 (lto_input_ts_type_common_tree_pointers): Same.
21112 (lto_input_ts_type_non_common_tree_pointers): Same.
21113 (lto_input_ts_list_tree_pointers): Same.
21114 (lto_input_ts_vec_tree_pointers): Same.
21115 (lto_input_ts_exp_tree_pointers): Same.
21116 (lto_input_ts_block_tree_pointers): Same.
21117 (lto_input_ts_binfo_tree_pointers): Same.
21118 (lto_input_ts_constructor_tree_pointers): Same.
21119 (lto_input_ts_omp_clause_tree_pointers): Same.
21120 (streamer_read_tree_body): Same.
21121 * tree-streamer.h: Same.
21122 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21123 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21124 (vect_analyze_possibly_independent_ddr): Same.
21125 (vect_analyze_data_ref_dependence): Same.
21126 (vect_compute_data_ref_alignment): Same.
21127 (vect_enhance_data_refs_alignment): Same.
21128 (vect_analyze_data_ref_access): Same.
21129 (vect_check_gather_scatter): Same.
21130 (vect_find_stmt_data_reference): Same.
21131 (vect_create_addr_base_for_vector_ref): Same.
21132 (vect_setup_realignment): Same.
21133 (vect_supportable_dr_alignment): Same.
21134 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21135 (adjust_phi_and_debug_stmts): Same.
21136 (vect_set_loop_mask): Same.
21137 (add_preheader_seq): Same.
21138 (vect_maybe_permute_loop_masks): Same.
21139 (vect_set_loop_masks_directly): Same.
21140 (vect_set_loop_condition_masked): Same.
21141 (vect_set_loop_condition_unmasked): Same.
21142 (slpeel_duplicate_current_defs_from_edges): Same.
21143 (slpeel_add_loop_guard): Same.
21144 (slpeel_can_duplicate_loop_p): Same.
21145 (create_lcssa_for_virtual_phi): Same.
21147 (vect_update_ivs_after_vectorizer): Same.
21148 (vect_gen_vector_loop_niters_mult_vf): Same.
21149 (slpeel_update_phi_nodes_for_loops): Same.
21150 (slpeel_update_phi_nodes_for_guard1): Same.
21151 (find_guard_arg): Same.
21152 (slpeel_update_phi_nodes_for_guard2): Same.
21153 (slpeel_update_phi_nodes_for_lcssa): Same.
21154 (vect_do_peeling): Same.
21155 (vect_create_cond_for_alias_checks): Same.
21156 (vect_loop_versioning): Same.
21157 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21158 (vect_inner_phi_in_double_reduction_p): Same.
21159 (vect_analyze_scalar_cycles_1): Same.
21160 (vect_fixup_scalar_cycles_with_patterns): Same.
21161 (vect_get_loop_niters): Same.
21162 (bb_in_loop_p): Same.
21163 (vect_get_max_nscalars_per_iter): Same.
21164 (vect_verify_full_masking): Same.
21165 (vect_compute_single_scalar_iteration_cost): Same.
21166 (vect_analyze_loop_form_1): Same.
21167 (vect_analyze_loop_form): Same.
21168 (vect_active_double_reduction_p): Same.
21169 (vect_analyze_loop_operations): Same.
21170 (neutral_op_for_slp_reduction): Same.
21171 (vect_is_simple_reduction): Same.
21172 (vect_model_reduction_cost): Same.
21173 (get_initial_def_for_reduction): Same.
21174 (get_initial_defs_for_reduction): Same.
21175 (vect_create_epilog_for_reduction): Same.
21176 (vectorize_fold_left_reduction): Same.
21177 (vectorizable_reduction): Same.
21178 (vectorizable_induction): Same.
21179 (vectorizable_live_operation): Same.
21180 (loop_niters_no_overflow): Same.
21181 (vect_get_loop_mask): Same.
21182 (vect_transform_loop_stmt): Same.
21183 (vect_transform_loop): Same.
21184 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21185 (vect_determine_precisions): Same.
21186 (vect_pattern_recog_1): Same.
21187 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21188 * tree-vect-stmts.c (stmt_vectype): Same.
21189 (process_use): Same.
21190 (vect_init_vector_1): Same.
21191 (vect_truncate_gather_scatter_offset): Same.
21192 (get_group_load_store_type): Same.
21193 (vect_build_gather_load_calls): Same.
21194 (vect_get_strided_load_store_ops): Same.
21195 (vectorizable_simd_clone_call): Same.
21196 (vectorizable_store): Same.
21197 (permute_vec_elements): Same.
21198 (vectorizable_load): Same.
21199 (vect_transform_stmt): Same.
21200 (supportable_widening_operation): Same.
21201 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21202 (vec_info::free_stmt_vec_info): Same.
21203 (vect_free_loop_info_assumptions): Same.
21204 (vect_loop_vectorized_call): Same.
21205 (set_uid_loop_bbs): Same.
21206 (vectorize_loops): Same.
21207 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21208 * tree.c (add_tree_to_fld_list): Same.
21209 (fld_type_variant_equal_p): Same.
21210 (fld_decl_context): Same.
21211 (fld_incomplete_type_of): Same.
21212 (free_lang_data_in_binfo): Same.
21213 (need_assembler_name_p): Same.
21214 (find_decls_types_r): Same.
21215 (get_eh_types_for_runtime): Same.
21216 (find_decls_types_in_eh_region): Same.
21217 (find_decls_types_in_node): Same.
21218 (assign_assembler_name_if_needed): Same.
21219 * value-prof.c (stream_out_histogram_value): Same.
21220 * value-prof.h: Same.
21221 * var-tracking.c (use_narrower_mode): Same.
21222 (prepare_call_arguments): Same.
21223 (vt_expand_loc_callback): Same.
21224 (resolve_expansions_pending_recursion): Same.
21225 (vt_expand_loc): Same.
21226 * varasm.c (const_hash_1): Same.
21227 (compare_constant): Same.
21228 (tree_output_constant_def): Same.
21229 (simplify_subtraction): Same.
21230 (get_pool_constant): Same.
21231 (output_constant_pool_2): Same.
21232 (output_constant_pool_1): Same.
21233 (mark_constants_in_pattern): Same.
21234 (mark_constant_pool): Same.
21235 (get_section_anchor): Same.
21236 * vr-values.c (compare_range_with_value): Same.
21237 (vr_values::extract_range_from_phi_node): Same.
21238 * vr-values.h: Same.
21239 * web.c (unionfind_union): Same.
21240 * wide-int.h: Same.
21242 2019-07-09 Martin Sebor <msebor@redhat.com>
21245 * align.h: Change class-key from class to struct and vice versa
21246 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21247 * alloc-pool.h: Same.
21248 * asan.c (shadow_mem_size): Same.
21249 * auto-profile.c: Same.
21250 * basic-block.h: Same.
21252 * cfgexpand.c (set_rtl): Same.
21253 (expand_one_stack_var_at): Same.
21254 * cfghooks.h: Same.
21257 * config/i386/i386.h: Same.
21258 * df-problems.c (df_print_bb_index): Same.
21260 * df.h (df_single_use): Same.
21261 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21262 (layout::annotation_line_showed_range_p): Same.
21263 (get_printed_columns): Same.
21264 (correction::ensure_terminated): Same.
21265 (line_corrections::~line_corrections): Same.
21268 * dump-context.h: Same.
21269 * dumpfile.h: Same.
21270 * dwarf2out.c: Same.
21271 * edit-context.c: Same.
21272 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21274 * function.c (assign_stack_local): Same.
21275 * function.h: Same.
21277 * gcov.c (block_info::block_info): Same.
21278 * genattrtab.c: Same.
21279 * genextract.c: Same.
21280 * genmatch.c (comparison_code_p): Same.
21281 (id_base::id_base): Same.
21282 (decision_tree::print): Same.
21283 * genoutput.c: Same.
21284 * genpreds.c (write_one_predicate_function): Same.
21285 * genrecog.c (validate_pattern): Same.
21286 (find_operand_positions): Same.
21287 (optimize_subroutine_group): Same.
21288 (merge_pattern_transition::merge_pattern_transition): Same.
21289 (merge_pattern_info::merge_pattern_info): Same.
21290 (merge_state_result::merge_state_result): Same.
21291 (merge_into_state): Same.
21292 * gensupport.c: Same.
21293 * gensupport.h: Same.
21294 * ggc-common.c (init_ggc_heuristics): Same.
21295 * ggc-tests.c (test_union): Same.
21296 * gimple-loop-interchange.cc (dump_induction): Same.
21297 * gimple-loop-versioning.cc: Same.
21298 * gimple-match.h (gimple_match_cond::any_else): Same.
21299 * gimple-ssa-backprop.c: Same.
21300 * gimple-ssa-sprintf.c: Same.
21301 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21303 (store_immediate_info::store_immediate_info): Same.
21304 (merged_store_group::apply_stores): Same.
21305 (get_location_for_stmts): Same.
21306 * gimple-ssa-strength-reduction.c: Same.
21307 * gimple-ssa-warn-alloca.c: Same.
21308 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21309 * godump.c (go_type_decl): Same.
21310 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21311 * hash-map.h: Same.
21312 * hash-set-tests.c (test_set_of_strings): Same.
21313 * hsa-brig.c: Same.
21314 * hsa-common.h: Same.
21315 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21316 * input.c (assert_loceq): Same.
21319 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21320 * ipa-fnsummary.h: Same.
21321 * ipa-inline.h: Same.
21322 * ipa-prop.h: Same.
21323 * ipa-split.c (visit_bb): Same.
21324 * ira-int.h (minmax_set_iter_next): Same.
21325 * loop-invariant.c: Same.
21327 * lra-eliminations.c: Same.
21329 * lra-lives.c (mark_regno_dead): Same.
21330 * lra-remat.c: Same.
21331 * lra-spills.c: Same.
21332 * lto-streamer.h: Same.
21333 * mem-stats.h: Same.
21334 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21335 * omp-low.c (omp_clause_aligned_alignment): Same.
21336 * optabs-query.h (get_vcond_eq_icode): Same.
21338 * opts.c (wrap_help): Same.
21339 * poly-int.h: Same.
21340 * predict.c (predict_paths_leading_to_edge): Same.
21341 * pretty-print.h: Same.
21342 * profile-count.h: Same.
21344 * read-rtl-function.c: Same.
21347 * regrename.c: Same.
21348 * regrename.h: Same.
21350 * rtl-iter.h: Same.
21351 * rtl.h (costs_add_n_insns): Same.
21353 * sched-int.h: Same.
21354 * sel-sched-ir.h: Same.
21355 * selftest.h: Same.
21356 * sese.h (vec_find): Same.
21358 * target-globals.h: Same.
21359 * tree-affine.c (aff_combination_find_elt): Same.
21360 * tree-affine.h: Same.
21361 * tree-data-ref.h: Same.
21362 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21363 * tree-predcom.c: Same.
21364 * tree-scalar-evolution.c (find_var_scev_info): Same.
21365 * tree-ssa-alias.h: Same.
21366 * tree-ssa-ccp.c: Same.
21367 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21368 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21369 (rewrite_mem_refs): Same.
21370 (execute_sm_if_changed): Same.
21371 (hoist_memory_references): Same.
21372 * tree-ssa-loop-ivopts.c (operator<=): Same.
21373 * tree-ssa-loop.h: Same.
21374 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21375 * tree-ssa-structalias.c: Same.
21376 * tree-switch-conversion.h (cluster::cluster): Same.
21377 (simple_cluster::simple_cluster): Same.
21378 * tree-vect-patterns.c (type_conversion_p): Same.
21379 * tree-vectorizer.c (dump_stmt_cost): Same.
21380 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21381 * tree.c (protected_set_expr_location): Same.
21382 * tree.h (desired_pro_or_demotion_p): Same.
21383 (fndecl_built_in_p): Same.
21384 * unique-ptr-tests.cc: Same.
21385 * var-tracking.c (delete_variable_part): Same.
21386 * varasm.c (assemble_real): Same.
21387 (tree_output_constant_def): Same.
21389 * wide-int-bitmask.h: Same.
21390 * wide-int.h (decompose): Same.
21392 2019-07-09 Richard Biener <rguenther@suse.de>
21394 PR tree-optimization/91114
21395 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21396 find a vector type isn't fatal.
21398 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21400 * config/aarch64/aarch64-simd.md
21401 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21402 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21403 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21404 (*aarch64_crypto_aese_fused,
21405 *aarch64_crypto_aesd_fused): Update to new definition.
21406 * config/aarch64/aarch64.c
21407 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21409 2019-07-09 Richard Biener <rguenther@suse.de>
21411 * gimple-match.h (gimple_match_op::resimplify): New.
21412 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21413 gimple_resimplify4, gimple_resimplify5): Remove.
21414 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21415 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21417 (gimple_match_op::resimplify): New.
21418 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21419 according to availability. Use gimple_match_op::resimplify.
21421 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21423 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21425 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21427 * config/arm/crypto.md:
21428 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21429 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21430 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21431 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21433 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21434 * config/arm/aarch-common-protos.h
21435 (aarch_crypto_can_dual_issue): Remove.
21436 * config/arm/aarch-common.c
21437 (aarch_crypto_can_dual_issue): Likewise.
21438 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21439 * config/arm/cortex-a53.md: Likewise.
21440 * config/arm/cortex-a57.md: Likewise.
21441 * config/arm/iterators.md:
21442 (CRYPTO_BINARY): Redefine.
21443 (CRYPTO_UNARY): Removed.
21444 (CRYPTO_AES, CRYPTO_AESMC): New.
21446 2019-07-09 Richard Biener <rguenther@suse.de>
21448 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21449 (vn_reference_lookup_3): If the main ref has no access path recorded
21450 but orig_ref has use it to do access-path based disambiguation.
21451 (vn_reference_lookup_pieces): Adjust.
21452 (vn_reference_lookup): Pass down original ref if we valueized.
21454 2019-07-09 Martin Liska <mliska@suse.cz>
21456 * doc/extend.texi: Document influence on loop
21459 2019-07-09 Martin Liska <mliska@suse.cz>
21461 * lto-compress.c (lto_normalized_zstd_level): Do not use
21462 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21463 of libzstd. One can use 0 as a default compression level.
21465 2019-07-09 Martin Liska <mliska@suse.cz>
21467 * doc/invoke.texi: Add link from -fprofile-dir option.
21468 Use better wording for 'gcno filename'.
21470 2019-07-08 Martin Sebor <msebor@redhat.com>
21472 PR middle-end/71924
21473 PR middle-end/90549
21474 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21476 (args_loc_t): New type.
21477 (args_loc_t, locmap_t): same.
21478 (diag_returned_locals): New function.
21479 (is_addr_local): Same.
21480 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21481 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21482 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21484 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21486 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21487 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21488 and casts in offset when different, both through gimple stmts
21489 and through trees. Rewritten using loops to minimize code duplication
21492 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21494 * emit-rtl.c (set_insn_locations): New function moved from...
21495 * function.c (set_insn_locations): ...here.
21496 * ira-emit.c (emit_moves): Propagate location of the first instruction
21497 to the inserted move instructions.
21498 * reg-stack.c (compensate_edge): Set the location if the sequence is
21499 inserted on the edge.
21500 * rtl.h (set_insn_locations): Declare.
21502 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21504 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21505 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21508 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21510 PR rtl-optimization/88233
21511 * common.opt (fsplit-wide-types-early): New option.
21512 * common/config/rs6000/rs6000-common.c
21513 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21515 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21516 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21517 flag_split_wide_types_early.
21518 (pass_data_lower_subreg3): New.
21519 (pass_lower_subreg3): New.
21520 (make_pass_lower_subreg3): New.
21521 * passes.def (pass_lower_subreg2): Move after the loop passes.
21522 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21523 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21524 the pass pipeline; its previous place is taken by ...
21525 (make_pass_lower_subreg3): ... this.
21527 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21529 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21530 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21532 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21534 * config/s390/constraints.md: Add new jsc constraint.
21535 * config/s390/predicates.md: New predicates.
21536 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21537 * config/s390/s390.c (s390_valid_shift_count): New function.
21538 (print_shift_count_operand): Use s390_valid_shift_count.
21539 (print_operand): Likewise.
21540 * config/s390/s390.md: Use new predicate.
21541 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21542 * config/s390/vector.md: Use new predicate.
21544 2019-07-08 Andrew Waterman <andrew@sifive.com>
21545 Jim Wilson <jimw@sifive.com>
21547 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21548 bitsize instead of BITS_PER_WORD.
21550 2019-07-08 Martin Liska <mliska@suse.cz>
21552 * collect2.c (defined): Revert to before r254460.
21553 (scan_prog_file): Revert to before r254460.
21555 2019-07-08 Richard Biener <rguenther@suse.de>
21557 PR tree-optimization/83518
21558 * tree-ssa-sccvn.c: Include splay-tree.h.
21559 (struct pd_range, struct pd_data): New.
21560 (struct vn_walk_cb_data): Add data to track partial definitions.
21561 (vn_walk_cb_data::~vn_walk_cb_data): New.
21562 (vn_walk_cb_data::push_partial_def): New.
21563 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21564 (vn_reference_lookup_2): When partial defs are registered give up.
21565 (vn_reference_lookup_3): Track partial defs for memset and
21566 constructor zeroing and for defs from constants.
21568 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21570 * doc/install.texi (bootstrap-Og): Document.
21572 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21574 * config/riscv/pic.md (*local_pic_load_s<mode>)
21575 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21576 referenced by <mode>, giving...
21577 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21578 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21579 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21580 use <X:MODE> for the mode attribute.
21582 2019-07-07 Jeff Law <law@redhat.com>
21584 PR tree-optimization/91090
21585 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21586 in handling of ranges to simplify switch statements.
21588 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21590 * config/darwin.c (darwin_override_options): Make a final check on PIC
21593 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21595 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21596 on for kernel code.
21598 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21601 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21602 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21603 instead of matching them to "l" output operands.
21605 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21607 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21608 and check whether addr.reg is nonnull before using it.
21610 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21612 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21613 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21614 variable(s). For conditional lastprivate look through outer
21615 GIMPLE_OMP_SCAN context.
21616 (lower_omp_1): For conditional lastprivate look through outer
21617 GIMPLE_OMP_SCAN context.
21619 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21620 member to combined_into_simd_safelen1.
21621 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21622 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21623 clauses if ctx->combined_into_simd_safelen1 put statements after the
21624 predicate conditionalized block rather than into it.
21626 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21628 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21630 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21631 Make the choice of <mode> explicit, giving...
21632 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21634 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21636 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21637 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21639 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21640 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21641 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21642 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21643 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21644 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21645 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21646 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21647 (*avx512f_scatterdi<mode>): Likewise.
21648 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21650 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21652 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21653 specify the mode iterator referenced by <mode>, giving...
21654 (*push1_h8300hs_<QHI:mode>): ...this.
21656 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21658 * config/gcn/gcn-valu.md
21659 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21660 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21661 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21662 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21663 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21664 but using the _exec comparison patterns.
21665 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21666 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21667 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21668 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21669 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21670 but using the _exec comparison patterns.
21672 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21674 * config/arm/sync.md
21675 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21676 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21677 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21678 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21679 <SIDI:cas_cmp_str>.
21681 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21683 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21684 (maybe_lookup_ctx): Add forward declaration.
21685 (omp_find_scan): Likewise. Walk into body of simd if composited
21686 with worksharing loop.
21687 (scan_omp_simd_scan): New function.
21688 (scan_omp_1_stmt): Call it.
21689 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21690 ctx->for_simd_scan_phase.
21691 (lower_rec_input_clauses): Do much less work for inscan reductions
21692 in ctx->for_simd_scan_phase is_simd regions.
21693 (lower_omp_scan): Set is_simd also on simd constructs composited
21694 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21695 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21696 emit their body after in simd constructs composited with worksharing
21698 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21700 * omp-low.c (omp_find_scan): Make static.
21701 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21702 the second loop, var2 represents the first partial sum and so needs
21703 to go before rprivb[ivar].
21705 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21707 * config/rs6000/rs6000-logue.c: Remove unused code.
21709 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21711 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21713 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21716 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21717 check with a frame laid out check.
21719 2019-07-05 Richard Biener <rguenther@suse.de>
21721 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21722 when comparing against a store with possibly the same value.
21724 2019-07-05 Richard Biener <rguenther@suse.de>
21726 PR tree-optimization/91091
21727 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21728 (walk_non_aliased_vuses): Likewise.
21729 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21730 (get_continuation_for_phi): New tbaa_p parameter and pass
21732 (walk_non_aliased_vuses): Likewise.
21733 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21734 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21735 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21737 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21738 (adjust_offsets_for_equal_base_address): New function.
21739 (vn_reference_lookup_3): Use it to catch more base equivalences.
21740 Handle and pass down tbaa_p flag.
21741 (vn_reference_lookup_pieces): Adjust.
21742 (vn_reference_lookup): Remove alias-set altering, instead pass
21743 down false as tbaa_p.
21745 2019-07-05 Richard Biener <rguenther@suse.de>
21747 PR tree-optimization/91091
21748 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21749 accesses can happen with -fno-strict-aliasing.
21751 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21753 * tree-ssa-alias.c (alias_stats): Add
21754 nonoverlapping_component_refs_since_match_p_must_overlap.
21755 (dump_alias_stats): Print it.
21756 (nonoverlapping_component_refs_since_match_p): Add early exit.
21757 (nonoverlapping_component_refs_p): Do not account early exit.
21759 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21761 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21762 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21763 (emit_eh_dispatch): Delete.
21764 (lower_catch): Emit the eh_dispatch manually and set the location of
21765 the first catch statement onto it.
21766 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21767 (lower_eh_dispatch): Propagate location.
21768 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21769 (eliminate_build): Likewise.
21771 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21773 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21774 phi nodes if possible.
21775 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21776 location info on the newly created statement.
21777 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21778 newly created increment if needed.
21780 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21782 PR middle-end/78884
21783 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21784 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21785 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21786 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21787 ctx->add_safelen1 is set.
21789 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21790 GOMP_loop_start at the start of second worksharing loop in a scan.
21791 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21792 worksharing loop in a scan even if there are conditional lastprivates,
21793 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21795 2019-07-04 Jan Hubicka <jh@suse.cz>
21797 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21798 Fix check for match in the ref walk.
21800 2019-07-04 Martin Liska <mliska@suse.cz>
21802 * tree-ssa-loop-niter.c
21803 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21804 (estimate_numbers_of_iterations):
21805 Support __builtin_expect_with_probability for analysis
21806 of # of loop iterations.
21808 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21810 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21811 * except.c: Likewise.
21812 * expr.c (expand_expr_real_1): Reject it.
21813 * gimplify.c (gimplify_expr): Gimplify it, within
21815 * tree-dump.c (dequeue_and_dump): Dump it.
21816 * tree-pretty-print.c (dump_generic_node): Likewise.
21817 * tree.c (block_may_fallthru): Handle it.
21818 * tree.def (EH_ELSE_EXPR): Introduce it.
21819 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21820 with GIMPLE_EH_ELSE as try/finally/else.
21822 2019-07-04 Richard Biener <rguenther@suse.de>
21825 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21826 parameter whether to disable GC collection.
21827 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21829 (execute_all_ipa_transforms): Likewise and pass it down.
21830 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21831 collection from applying IPA transforms.
21832 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21833 from applying IPA transforms.
21835 2019-07-04 Richard Biener <rguenther@suse.de>
21837 PR tree-optimization/90911
21838 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21839 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21840 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21841 scalar_loop_scaling.
21842 (vect_transform_loop): Scale scalar loop profile if needed.
21843 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21844 the loop copy from if-conversion adjust edge probabilities
21845 and scale the vectorized loop body profile, queue the scalar
21846 profile for updating after peeling.
21848 2019-07-04 Jan Hubicka <jh@suse.cz>
21850 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21851 parameters; return early for must-alias.
21852 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21853 outer types match, try nonoverlapping_component_refs
21854 if must-alias is not obvious.
21855 (indirect_refs_may_alias_p): Likewise.
21856 (refs_may_alias_p_2): Likewise.
21858 2019-07-04 Richard Biener <rguenther@suse.de>
21860 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21862 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21864 (struct vn_walk_cb_data): New callback data struct.
21865 (vn_reference_lookup_2): Adjust.
21866 (vn_reference_lookup_3): Likewise.
21867 (vn_reference_lookup_pieces): Likewise.
21868 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21869 (visit_reference_op_load): Adjust.
21871 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21873 PR tree-optimization/91063
21874 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21875 stmt from stmts sequence before calling vect_init_vector_1.
21878 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21881 * fwprop.c (reg_single_def_p): New function.
21882 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21883 (forward_propagate_into): New parameter reg_prop_only
21884 with default value false.
21885 Propagate def's src into loop only if SET_SRC and SET_DEST
21886 of def_set have single definitions.
21887 Likewise if reg_prop_only is set to true.
21888 (fwprop): New param fwprop_addr_p.
21889 Integrate fwprop_addr into fwprop.
21890 (fwprop_addr): Remove.
21891 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21893 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21894 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21895 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21897 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21899 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21900 in worksharing loop scans.
21902 PR tree-optimization/91074
21903 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21906 PR rtl-optimization/90756
21907 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21910 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21912 * config/aarch64/aarch64.md: Remove redundant constraints from
21913 define_expand but keep some patterns untouched if they are
21914 specially selected by TARGET_SECONDARY_RELOAD hook.
21915 * config/aarch64/aarch64-sve.md: Likewise.
21916 * config/aarch64/atomics.md: Remove redundant constraints from
21918 * config/aarch64/aarch64-simd.md: Likewise.
21920 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21922 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21923 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21924 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21926 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21929 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21931 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21932 (STARTFILE_SPEC): Split crt3 into a separate spec.
21933 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21934 (DARWIN_CRT2_SPEC): New.
21935 (DARWIN_CRT3_SPEC): New.
21936 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21937 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21938 (DARWIN_CRT3_SPEC): New.
21940 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
21942 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
21943 Change the RTL attribute "length" from "4" to "*" to allow the
21944 length attribute to be adjusted automatically for prefixed load,
21945 store, and add immediate instructions.
21946 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
21948 (extendsi<mode>2, EXTSI iterator): Likewise.
21949 (movsi_internal1): Likewise.
21950 (movsi_from_sf): Likewise.
21951 (movdi_from_sf_zero_ext): Likewise.
21952 (mov<mode>_internal): Likewise.
21953 (movcc_internal1, QHI iterator): Likewise.
21954 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
21955 (movsf_from_si): Likewise.
21956 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
21957 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
21958 (mov<mode>, FMOVE128 iterator): Likewise.
21959 (movdi_internal64): Likewise.
21960 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
21962 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
21963 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
21964 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
21965 (vsx_splat_v4sf): Likewise.
21967 2019-07-03 Mark Wielaard <mark@klomp.org>
21970 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
21971 DW_AT_addr_base if there is actually a .debug_addr section with
21973 (output_addr_table): Add DWARF5 table header generation here after
21974 checking there are actually any addresses from...
21975 (dwarf2out_finish): ...here.
21977 2019-07-03 Richard Biener <rguenther@suse.de>
21979 PR middle-end/91069
21980 * match.pd (vec_perm -> bit_insert): Fix element read from
21983 2019-07-03 Martin Liska <mliska@suse.cz>
21985 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
21986 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
21988 * generic-match-head.c: Include dbgcnt.h.
21989 * gimple-match-head.c: Likewise.
21991 2019-07-03 Martin Liska <mliska@suse.cz>
21993 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
21994 (GCOV_COUNTER_V_TOPN): New.
21995 (GCOV_COUNTER_V_INDIR): Use _topn.
21996 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
21997 (GCOV_TOPN_VALUES): New.
21998 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
21999 (GCOV_TOPN_VALUES_COUNTERS): New.
22000 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22002 (gimple_init_gcov_profiler): Rename variables from one_value
22004 (gimple_gen_one_value_profiler): Remove.
22005 (gimple_gen_topn_values_profiler): New function.
22006 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22007 names instead of SINGLE_VALUE.
22008 (stream_out_histogram_value): Likewise.
22009 (stream_in_histogram_value): Likewise.
22010 (get_most_common_single_value): Likewise.
22011 (gimple_divmod_fixed_value_transform): Likewise.
22012 (gimple_stringops_transform): Likewise.
22013 (gimple_divmod_values_to_profile): Likewise.
22014 (gimple_stringops_values_to_profile): Likewise.
22015 (gimple_find_values_to_profile): Likewise.
22016 * value-prof.h (enum hist_type): Rename to TOPN.
22017 (gimple_gen_one_value_profiler): Remove.
22018 (gimple_gen_topn_values_profiler): New.
22020 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22022 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22023 if it has the DW_AT_data_member_location attribute.
22025 2019-07-03 Richard Biener <rguenther@suse.de>
22027 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22030 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22032 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22033 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22034 (tlsdesc_small_sve_<mode>): Likewise.
22036 2019-07-03 Martin Liska <mliska@suse.cz>
22038 * Makefile.in: Define ZSTD_LIB.
22039 * common.opt: Adjust compression level
22040 to support also zstd levels.
22041 * config.in: Regenerate.
22042 * configure: Likewise.
22043 * configure.ac: Add --with-zstd and --with-zstd-include options
22045 * doc/install.texi: Mention zstd dependency.
22046 * gcc.c: Print supported LTO compression algorithms.
22047 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22048 (lto_compression_zstd): Likewise.
22049 (lto_uncompression_zstd): Likewise.
22050 (lto_end_compression): Dispatch in between zlib and zstd.
22051 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22052 (lto_uncompression_zlib): Make it static.
22053 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22054 * lto-section-in.c (lto_get_section_data): Pass info
22055 about used compression.
22056 * lto-streamer-out.c: By default use zstd when possible.
22057 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22058 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22060 2019-07-03 Martin Liska <mliska@suse.cz>
22062 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22063 * lto-section-out.c (lto_destroy_simple_output_block): Never
22064 compress LTO_section_lto section.
22065 * lto-streamer-out.c (produce_asm): Do not set major_version
22067 (lto_output_toplevel_asms): Likewise.
22068 (produce_lto_section): New function.
22069 (lto_output): Call produce_lto_section.
22070 (lto_write_mode_table): Do not set major_version and
22072 (produce_asm_for_decls): Likewise.
22073 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22075 (struct lto_header): Remove.
22076 (struct lto_section): New struct.
22077 (struct lto_simple_header): Do not inherit from lto_header.
22078 (struct lto_file_decl_data): Add lto_section_header field.
22080 2019-07-03 Martin Liska <mliska@suse.cz>
22082 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22084 * reg-stack.c (check_asm_stack_operands): Likewise.
22085 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22086 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22087 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22088 force_expand_binop.
22090 2019-07-03 Martin Liska <mliska@suse.cz>
22092 PR tree-optimization/90892
22093 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22094 in string constants.
22096 2019-07-03 Martin Liska <mliska@suse.cz>
22098 PR middle-end/90899
22099 * multiple_target.c (create_dispatcher_calls): Add to comdat
22100 group only if set for ifunc.
22102 2019-07-03 Martin Liska <mliska@suse.cz>
22105 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22106 Define local_object_name in outer scope in order to handle
22107 use-after-scope issue.
22109 2019-07-03 Martin Liska <mliska@suse.cz>
22111 * common.opt: Add fprofile-note.
22112 * coverage.c (coverage_init): Append the option
22114 * doc/invoke.texi: Document -fprofile-note.
22116 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22118 PR tree-optimization/91033
22119 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22120 vect_analyze_data_refs): Add bool * arguments.
22121 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22122 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22123 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22124 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22125 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22126 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22127 vect_analyze_data_refs caller.
22129 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22131 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22132 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22133 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22134 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22135 OMP_CLAUSE__SCANTEMP_ entry.
22136 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22137 * tree-pretty-print.c (dump_omp_clause): Likewise.
22138 * tree-nested.c (convert_nonlocal_omp_clauses,
22139 convert_local_omp_clauses): Likewise.
22140 * omp-general.h (struct omp_for_data): Add have_scantemp and
22141 have_nonctrl_scantemp members.
22142 * omp-general.c (omp_extract_for_data): Initialize them.
22143 * omp-low.c (struct omp_context): Add scan_exclusive member.
22144 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22145 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22146 ctx->scan_exclusive.
22147 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22148 of !ctx->scan_inclusive.
22149 (lower_rec_input_clauses): Simplify gimplification of dtors using
22150 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22151 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22152 loops. Don't add barrier for reduction_omp_orig_ref if
22153 ctx->scan_??xclusive.
22154 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22155 (lower_omp_scan): Use ctx->scan_exclusive instead
22156 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22157 reductions. Use new_vard != new_var instead of repeated
22158 omp_is_reference calls.
22159 (omp_find_scan, lower_omp_for_scan): New functions.
22160 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22162 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22163 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22164 and fd->have_scantemp.
22166 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22167 on worksharing loop propagate it as shared clause to containing
22170 * omp-expand.c (expand_omp_for_static_nochunk,
22171 expand_omp_for_static_chunk): For nowait worksharing loop with
22172 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22175 2019-07-02 qing zhao <qing.zhao@oracle.com>
22177 PR preprocessor/90581
22178 * doc/cppopts.texi: Add document for -fmax-include-depth.
22179 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22181 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22183 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22184 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22185 (mmx_packssdw): Ditto.
22186 (mmx_punpckhbw): Ditto.
22187 (mmx_punpcklbw): Ditto.
22188 (mmx_punpckhwd): Ditto.
22189 (mmx_punpcklwd): Ditto.
22190 (mmx_punpckhdq): Ditto.
22191 (mmx_punpckldq): Ditto.
22192 (*vec_dupv4hi): Ditto.
22193 (*vec_dupv2si): Ditto.
22194 (mmx_pmovmskb): Ditto.
22195 * config/i386/sse.md (sse_cvtpi2ps): Use
22196 TARGET_SSE2 && SSE_REG_P in split condition.
22197 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22198 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22199 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22200 (ssse3_pshufbv8qi3): Ditto.
22201 (ssse3_palignrdi): Ditto.
22203 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22205 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22206 with inlined save and restore.
22208 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22210 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22211 to be inserted on single successor edge of the entry block. Then call
22212 commit_edge_insertions instead of inserting the instructions manually.
22213 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22214 RTL expansion and rebuild jump labels chain.
22216 2019-07-02 Richard Biener <rguenther@suse.de>
22218 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22220 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22222 * tree.c (build_common_tree_nodes): Initialize them.
22223 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22224 Make declarations comments.
22225 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22226 chrec_known): Remove definitions.
22227 (initialize_scalar_evolutions_analyzer): Remove.
22228 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22229 * tree-streamer.c (preload_common_nodes): Do not preload
22230 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22232 2019-07-02 Jan Hubicka <jh@suse.cz>
22234 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22237 2019-07-02 Jan Hubicka <jh@suse.cz>
22239 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22241 (nonoverlapping_component_refs_since_match_p): ... this one;
22242 handle also non-decl bases; return -1 if search gave up.
22243 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22244 nonoverlapping_component_refs_of_decl_p_no_alias to
22245 nonoverlapping_component_refs_since_match_p_may_alias,
22246 nonoverlapping_component_refs_since_match_p_no_alias.
22247 (dump_alias_stats): Update dumping.
22248 (aliasing_matching_component_refs_p): Break out from ...;
22249 dispatch to nonoverlapping_component_refs_for_decl_p
22250 and nonoverlapping_component_refs_since_match_p.
22251 (aliasing_component_refs_p): ... here; call
22252 nonoverlapping_component_refs_p in scenarios where we can not
22253 precisely determine base match.
22254 (decl_refs_may_alias_p): Use
22255 nonoverlapping_component_refs_since_match_p.
22256 (indirect_ref_may_alias_decl_p): Do not call
22257 nonoverlapping_component_refs_p.
22258 (indirect_refs_may_alias_p): Likewise.
22260 2019-07-02 Jan Hubicka <jh@suse.cz>
22262 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22263 to clobber of return value.
22265 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22267 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22268 for is_neon_type instructions that have not already been categorized.
22270 2019-07-02 Richard Biener <rguenther@suse.de>
22272 PR tree-optimization/58483
22273 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22274 for MEM_REF base hashing.
22275 (equal_mem_array_ref_p): Likewise for base comparison.
22277 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22279 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22280 parameterized name.
22281 (signbit<mode>2): Use that name. Simplify.
22283 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22285 PR middle-end/66726
22286 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22287 Tune heuristic from PR71016 to allow MIN / MAX.
22289 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22291 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22292 parameterized name.
22293 (abs<mode>2): Use that name. Simplify.
22295 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22297 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22298 parameterized name.
22299 (neg<mode>2): Use that name. Simplify.
22301 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22303 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22305 (abs<mode>2): Use that name. Simplify.
22307 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22309 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22311 (neg<mode>2): Use that name. Simplify.
22313 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22315 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22316 ("enabled" attribute): Handle sse_noavx isa attribute.
22317 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22318 Use TARGET_SSE && SSE_REGNO_P in split condition.
22319 (*vec_dupv2sf): Ditto.
22321 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22323 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22325 (floatsi<mode>2): Use that name. Simplify.
22327 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22329 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22330 parameterized name.
22331 (extenddf<mode>2_vsx): Make this a parameterized name.
22332 (extenddf<mode>2): Use those names. Simplify.
22334 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22336 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22338 (eh_return): Use that name. Simplify.
22340 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22342 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22343 (doloop_end): Use that name. Simplify.
22345 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22347 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22348 parameterized name.
22349 (indirect_jump): Use that name. Simplify.
22351 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22353 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22354 parameterized name.
22355 (abs<mode>2): Use that name. Simplify.
22357 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22359 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22360 parameterized name.
22361 (fix_trunc<mode>si2): Use that name. Simplify.
22363 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22365 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22366 (allocate_stack): Use that name. Simplify.
22368 2019-07-01 Martin Sebor <msebor@redhat.com>
22370 PR middle-end/90923
22371 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22372 (hash_map::get_or_insert): Same. Reformat comment.
22373 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22374 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22375 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22376 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22377 (hash_table::hash_table (const hash_table&)): Use copy ctor
22378 instead of assignment to copy elements.
22380 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22381 John David Anglin <danglin@gcc.gnu.org>
22384 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22385 using saved frame pointer.
22387 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22389 PR middle-end/64242
22390 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22391 Add frame clobber and schedule blockage.
22393 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22395 * doc/invoke.texi (Link Options): Further editorial changes to
22396 -flinker-output docs.
22398 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22400 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22401 Load both operands of a PLUS into registers separately.
22403 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22405 * config/s390/vector.md: Fix shift count operand printing.
22407 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22409 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22411 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22413 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22414 Use recog_data to test for an output operand.
22416 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22418 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22419 exclude any others that are disparaged or that are bound to need
22421 (ira_get_dup_out_num): Expand comment.
22423 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22425 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22426 constraint string for each operand/alternative combo. Only handle
22427 '%' at the start of constraint strings, and look for it outside
22430 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22432 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22433 alternative_mask instead of HARD_REG_SET to represent a
22434 bitmask of alternatives.
22435 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22436 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22438 2019-07-01 Martin Liska <mliska@suse.cz>
22440 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22441 use () for a constructor call.
22442 (test_applying_fixits_line_out_of_range): Likewise.
22443 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22445 (free_page): Likewise.
22447 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22449 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22450 parameter names to match usage (no functional change).
22451 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22453 2019-07-01 Richard Biener <rguenther@suse.de>
22455 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22457 (pass_fre::execute): Honor it.
22458 * passes.def: Adjust pass_fre invocations to allow iterating,
22459 add non-iterating pass_fre before late threading/dom.
22461 2019-07-01 Richard Biener <rguenther@suse.de>
22463 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22464 TARGET_MEM_REF handling to also handle address-taken ones.
22466 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22468 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22469 hardware attributes): Document avx512vp2intersect.
22471 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22473 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22474 (abs<mode>2): New expander.
22475 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22476 Use CODE_FOR_ssse3_absv8qi2.
22477 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22478 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22480 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22482 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22483 to sse, sse_noavx and avx. Update all uses.
22485 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22487 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22488 (*mmx_<plusminus_insn><mode>3): Ditto.
22489 (*mmx_mulv4hi3"): Ditto.
22490 (*mmx_smulv4hi3_highpart): Ditto.
22491 (*mmx_umulv4hi3_highpart): Ditto.
22492 (*mmx_pmaddwd): Ditto.
22493 (*sse2_umulv1siv1di3): Ditto.
22494 (*mmx_<code>v4hi3): Ditto.
22495 (*mmx_<code>v8qi3): Ditto.
22496 (mmx_ashr<mode>3): Ditto.
22497 ("mmx_<shift_insn><mode>3): Ditto.
22498 (*mmx_eq<mode>3): Ditto.
22499 (mmx_gt<mode>3): Ditto.
22500 (mmx_andnot<mode>3): Ditto.
22501 (*mmx_<code><mode>3): Ditto.
22502 (*mmx_pinsrw): Ditto.
22503 (*mmx_pextrw): Ditto.
22504 (mmx_pshufw_1): Ditto.
22505 (*mmx_uavgv8qi3): Ditto.
22506 (*mmx_uavgv4hi3): Ditto.
22507 ("mmx_psadbw): Ditto.
22508 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22509 (sse_cvttps2pi): Ditto.
22510 (ssse3_pmaddubsw): Ditto.
22511 (*ssse3_pmulhrswv4hi3): Ditto.
22512 (ssse3_psign<mode>3): Ditto.
22514 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22516 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22517 adjustment for bit-fields to all aggregate types.
22519 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22521 * config/rs6000/predicates.md (pcrel_address): Use
22522 SYMBOL_REF_LOCAL_P to determine if a label is local.
22523 (pcrel_external_address): New predicate.
22524 (non_prefixed_mem_operand): Delete, predicate not used.
22525 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22526 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22528 (SYMBOL_REF_PCREL_P): Likewise.
22531 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22533 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22534 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22535 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22537 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22539 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22540 override on extra_headers.
22542 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22544 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22545 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22547 (darwin_driver_init): Likewise.
22549 2019-06-28 Jan Beulich <jbeulich@suse.com>
22551 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22552 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22553 Eliminate redundant alternative.
22555 2019-06-28 Jan Beulich <jbeulich@suse.com>
22557 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22558 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22559 Use vector_operand.
22561 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22563 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22564 having a lower cost regardless of the speed option.
22566 2019-06-28 Jan Beulich <jbeulich@suse.com>
22568 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22569 vector_operand plus, on both alternatives, "Bm" constraint.
22571 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22573 * config/arm/arm.md: Remove redundant constraints from
22574 define_expand but leave reload_inm and reload_outm patterns
22575 untouched since they need special constraints to work.
22576 * config/arm/arm-fixed.md: Remove redundant constraints from
22578 * config/arm/iwmmxt.md: Likewise.
22579 * config/arm/neon.md: Likewise.
22580 * config/arm/sync.md: Likewise.
22581 * config/arm/thumb1.md: Likewise.
22582 * config/arm/vec-common.md: Likewise.
22584 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22586 * doc/install.texi: Document --disable-tm-clone-registry.
22588 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22591 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22594 PR tree-optimization/91010
22595 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22596 return true. Otherwise, don't call operand_equal_p if offset1 or
22597 offset2 is NULL and just return false.
22599 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22601 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22602 user-specified float mode choice for kernel mode code.
22604 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22606 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22609 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22611 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22612 use longcall for 64b code.
22614 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22616 * builtins.c (get_memory_rtx): Fix comment.
22617 * optabs.def (movmem_optab): Change to cpymem_optab.
22618 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22619 (emit_block_move_hints): Change movmem to cpymem.
22620 * defaults.h: Change movmem to cpymem.
22621 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22622 (default_use_by_pieces_infrastructure_p): Ditto.
22623 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22624 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22626 * config/aarch64/aarch64.h: Change movmem to cpymem.
22627 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22628 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22629 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22631 * config/arc/arc-protos.h: Change movmem to cpymem.
22632 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22633 * config/arc/arc.h: Change movmem to cpymem in comment.
22634 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22635 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22636 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22637 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22638 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22639 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22640 * config/avr/avr-protos.h: Change movmem to cpymem.
22641 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22642 avr_out_movmem): Change movmem to cpymem.
22643 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22644 Change movmem to cpymem.
22645 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22646 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22647 Change movmem to cpymem.
22648 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22649 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22650 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22651 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22652 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22653 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22654 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22655 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22656 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22657 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22658 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22659 expand_small_cpymem_or_setmem,
22660 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22661 expand_set_or_cpymem_constant_prologue,
22662 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22663 * config/i386/i386-protos.h: Change movmem to cpymem.
22664 * config/i386/i386.h: Change movmem to cpymem in comment.
22665 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22666 (setmem<mode>): Change expansion function name.
22667 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22668 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22669 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22670 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22671 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22672 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22673 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22675 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22676 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22677 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22678 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22679 Change movmem to cpymem.
22680 * config/mips/mips.h: Change movmem to cpymem.
22681 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22682 * config/nds32/nds32-memory-manipulation.c
22683 (nds32_expand_movmemsi_loop_unknown_size,
22684 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22685 nds32_expand_movmemsi_unroll,
22686 nds32_expand_movmemsi): Change movmem to cpymem.
22687 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22688 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22689 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22690 (pa_adjust_insn_length): Change call to compute_movmem_length.
22691 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22692 movmemdi, movmemdi_prereload,
22693 movmemdi_postreload): Change movmem to cpymem.
22694 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22695 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22696 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22697 * config/riscv/riscv.h: Change movmem to cpymem.
22698 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22699 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22700 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22702 * config/s390/s390-protos.h: Change movmem to cpymem.
22703 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22704 s390_expand_insv): Change movmem to cpymem.
22705 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22706 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22707 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22708 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22709 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22710 for nonexistent function.
22711 * config/vax/vax.h: Change movmem to cpymem in comment.
22712 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22713 * config/visium/visium.h: Change movmem to cpymem in comment.
22714 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22715 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22716 * doc/md.texi: Change movmem to cpymem and update description to match.
22717 * doc/rtl.texi: Change movmem to cpymem.
22718 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22719 * doc/tm.texi: Regenerate.
22721 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22723 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22724 -fvariable-expansion-in-unroller by default.
22725 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22728 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22731 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22732 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22734 * config.gcc(rs6000-*-*): Define target_gtfiles.
22736 2019-06-27 Jan Hubicka <jh@suse.cz>
22738 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22739 (add_type_duplicate): When odr hash is not allocated, to nothing.
22740 (odr_based_tbaa_p): New function.
22741 (set_type_canonical_for_odr_type): New function.
22742 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22743 set_type_canonical_for_odr_type): New.
22744 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22745 ODR based TBAA are not equivalent to non-ODR types.
22747 2019-06-27 Martin Liska <mliska@suse.cz>
22749 PR tree-optimization/90974
22750 PR rtl-optimization/90975
22751 PR rtl-optimization/90976
22753 PR tree-optimization/91017
22754 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22756 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22757 initial commit of IRA.
22758 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22760 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22761 Remove unused mode1.
22762 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22765 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22768 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22769 instead of register_operand for operands[1], add m to its constraints
22770 if operands[2] uses "C" constraint. Ensure in condition that if
22771 operands[2] is not 0, then operands[1] is not a MEM. For last two
22772 alternatives, use unaligned loads instead of aligned if operands[1] is
22773 misaligned_operand.
22775 2019-06-27 Martin Liska <mliska@suse.cz>
22777 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22779 * bt-load.c (move_btr_def): Likewise.
22780 * builtins.c (expand_builtin_apply_args_1): Likewise.
22781 (expand_builtin_apply): Likewise.
22782 * cfgexpand.c (expand_asm_stmt): Likewise.
22783 (construct_init_block): Likewise.
22784 * cfghooks.c (verify_flow_info): Likewise.
22785 * cfgloopmanip.c (remove_path): Likewise.
22786 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22787 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22788 * combine.c (simplify_if_then_else): Likewise.
22789 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22790 (choose_basereg): Likewise.
22791 (ix86_expand_prologue): Likewise.
22792 (ix86_preferred_output_reload_class): Likewise.
22793 * cselib.c (cselib_record_sets): Likewise.
22794 * df-scan.c (df_scan_alloc): Likewise.
22795 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22796 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22797 * emit-rtl.c (try_split): Likewise.
22798 * graphite-scop-detection.c (assign_parameter_index_in_region):
22800 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22801 * ira-color.c (setup_profitable_hard_regs): Likewise.
22802 * ira.c (rtx_moveable_p): Likewise.
22803 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22804 * read-rtl.c (read_subst_mapping): Likewise.
22805 * regrename.c (scan_rtx): Likewise.
22806 * reorg.c (fill_slots_from_thread): Likewise.
22807 * tree-inline.c (tree_function_versioning): Likewise.
22808 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22809 * tree-ssa-sink.c (statement_sink_location): Likewise.
22810 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22811 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22812 (vect_create_epilog_for_reduction): Likewise.
22813 * tree.c (build_nonstandard_integer_type): Likewise.
22815 2019-06-27 Richard Biener <rguenther@suse.de>
22817 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22819 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22821 PR tree-optimization/89772
22822 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22823 out-of-bound accesses checking.
22825 2019-06-27 Martin Liska <mliska@suse.cz>
22827 PR tree-optimization/91014
22828 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22829 when LHS is NULL_TREE.
22831 2019-06-27 Martin Liska <mliska@suse.cz>
22833 * symbol-summary.h (traverse): Pass
22834 argument a to the call of callback.
22835 (gt_ggc_mx): Mark arguments as unused.
22836 (gt_pch_nx): Likewise.
22838 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22841 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22844 2019-06-26 Jeff Law <law@redhat.com>
22846 PR tree-optimization/90883
22847 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22848 (delete_dead_or_redundant_assignment): Likewise.
22850 PR tree-optimization/90883
22851 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22852 * tree-ssa-dse.c: Update various comments to distinguish between
22853 dead and redundant stores.
22854 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22855 (dse_optimize_redundant_stores): New function.
22856 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22857 Distinguish between dead and redundant calls in dump output. All
22859 (delete_dead_or_redundant_assignment): Similarly for assignments.
22860 (dse_optimize_stmt): Handle _CHK variants. For statements which
22861 store 0 into multiple memory locations, try to prove a subsequent
22862 store is redundant.
22864 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22867 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22868 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22870 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22872 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22873 (branch_islands): New extern.
22874 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22875 * config/rs6000/rs6000.c: .. here.
22877 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22879 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22880 (powerpc*-*-*) ... to here.
22882 2019-06-26 Jeff Law <law@redhat.com>
22884 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22885 memcpy, memmove and memset builtins.
22886 (maybe_trim_memstar_call): Likewise.
22888 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22890 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22892 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22894 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22896 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22898 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22900 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22902 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22905 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22907 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22909 2019-06-26 Richard Biener <rguenther@suse.de>
22912 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22914 2019-06-26 Richard Biener <rguenther@suse.de>
22916 * lto-streamer.h (lto_bitmap_alloc): Remove.
22917 (lto_bitmap_free): Likewise.
22918 * lto-streamer.c (lto_bitmap_alloc): Remove.
22919 (lto_bitmap_free): Likewise.
22920 (lto_obstack): Likewise.
22921 (lto_obstack_initialized): Likewise.
22922 * lto-streamer-out.c (lto_output): Use own obstack for local
22923 bitmap, free it consistently.
22925 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22928 * config/i386/sse.md
22929 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22930 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22931 insns if operands[2] is misaligned_operand.
22933 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22935 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22937 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22940 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22942 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
22944 2019-06-26 Martin Liska <mliska@suse.cz>
22946 PR tree-optimization/90973
22947 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
22948 epilogue_cost_vec instead of prologue_cost_vec for
22951 2019-06-26 Martin Liska <mliska@suse.cz>
22953 * bb-reorder.c (connect_better_edge_p): Add missing else
22954 statement in the middle of if-else statements.
22956 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
22957 H.J. Lu <hongjiu.lu@intel.com>
22958 Olga Makhotina <olga.makhotina@intel.com>
22960 * common/config/i386/i386-common.c
22961 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
22962 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
22963 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
22964 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
22965 (ix86_handle_option): Handle -mavx512vp2intersect.
22966 * config/i386/avx512vp2intersectintrin.h: New.
22967 * config/i386/avx512vp2intersectvlintrin.h: New.
22968 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
22969 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22970 AVX512VP2INTERSECT.
22971 * config/i386/i386-builtin-types.def: Add new types.
22972 * config/i386/i386-builtin.def: Add new builtins.
22973 * config/i386/i386-builtins.c: (enum processor_features): Add
22974 F_AVX512VP2INTERSECT.
22975 (static const _isa_names_table isa_names_table): Ditto.
22976 * config/i386/i386-c.c (ix86_target_macros_internal): Define
22977 __AVX512VP2INTERSECT__.
22978 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
22979 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
22980 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
22981 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
22982 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
22983 * config/i386/i386-options.c (ix86_target_string): Add
22984 -mavx512vp2intersect.
22985 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
22986 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
22987 P2HImode and P2QImode.
22988 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
22989 number for P2QImode and P2HImode.
22990 (ix86_regmode_natural_size): New function.
22991 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
22992 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
22993 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
22994 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
22995 * config/i386/i386.opt: Add -mavx512vp2intersect.
22996 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
22997 avx512vp2intersectvlintrin.h.
22998 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
22999 (define_mode_iterator VI48_AVX512VP2VL): New.
23000 (avx512vp2intersect_2intersect<mode>,
23001 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23002 * config.gcc: Add avx512vp2intersectvlintrin.h and
23003 avx512vp2intersectintrin.h to extra_headers.
23004 * doc/invoke.texi: Document -mavx512vp2intersect.
23006 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23008 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23010 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23012 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23013 savres_routine_syms, savres_routine_name, morestack_ref,
23014 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23015 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23016 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23017 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23018 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23019 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23020 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23021 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23022 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23023 get_stack_clash_protection_probe_interval,
23024 get_stack_clash_protection_guard_size,
23025 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23026 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23027 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23028 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23029 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23030 gen_frame_mem_offset, rs6000_savres_routine_name,
23031 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23032 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23033 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23034 rs6000_global_entry_point_prologue_needed_p,
23035 rs6000_get_separate_components, rs6000_components_for_bb,
23036 rs6000_disqualify_components, rs6000_emit_prologue_components,
23037 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23038 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23039 rs6000_output_savres_externs, rs6000_output_function_prologue,
23040 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23041 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23042 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23043 rs6000_output_function_epilogue, gen_add3_const,
23044 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23045 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23047 (machine_function): Moved to rs6000.h.
23048 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23050 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23051 savres_routine_syms, savres_routine_name, morestack_ref,
23052 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23053 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23054 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23055 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23056 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23057 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23058 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23059 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23060 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23061 get_stack_clash_protection_probe_interval,
23062 get_stack_clash_protection_guard_size,
23063 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23064 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23065 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23066 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23067 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23068 gen_frame_mem_offset, rs6000_savres_routine_name,
23069 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23070 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23071 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23072 rs6000_global_entry_point_prologue_needed_p,
23073 rs6000_get_separate_components, rs6000_components_for_bb,
23074 rs6000_disqualify_components, rs6000_emit_prologue_components,
23075 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23076 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23077 rs6000_output_savres_externs, rs6000_output_function_prologue,
23078 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23079 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23080 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23081 rs6000_output_function_epilogue, gen_add3_const,
23082 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23083 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23084 to here from rs6000.c.
23085 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23086 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23087 quad_address_offset_p) Moved to here from rs6000.c.
23088 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23089 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23092 2019-06-25 Martin Liska <mliska@suse.cz>
23094 * hash-table.c (hashtab_chk_error): Move here from ...
23095 * hash-table.h (hashtab_chk_error): ... here.
23097 2019-06-25 Martin Liska <mliska@suse.cz>
23099 PR tree-optimization/90978
23100 * df-scan.c (df_update_entry_block_defs): Remove dead else
23102 (df_update_exit_block_uses): Likewise.
23104 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23105 Andrew Stubbs <ams@codesourcery.com>
23107 * config.gcc (thread_file): Set to gcn for AMD GCN.
23108 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23109 (TARGET_EMUTLS_VAR_INIT): New hook.
23111 2019-06-25 Martin Jambor <mjambor@suse.cz>
23114 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23116 2019-06-25 Richard Biener <rguenther@suse.de>
23118 PR tree-optimization/90930
23119 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23120 into parallel form in the last pass instance.
23122 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23124 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23125 (arc_legitimize_pic_address): Simplify and cleanup the function.
23126 (SYMBOLIC_CONST): Remove.
23127 (prepare_pic_move): Likewise.
23128 (prepare_move_operands): Handle complex mov cases here.
23129 (arc_legitimize_address_0): Remove call to
23130 arc_legitimize_pic_address.
23131 (arc_legitimize_address): Remove call to
23132 arc_legitimize_tls_address.
23133 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23134 (movhi_insn): Likewise.
23136 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23138 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23140 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23141 format of "__intN" types for UINTMAX_TYPE.
23142 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23143 format of "__intN" types for SIZETYPE.
23144 * tree.c (build_common_tree_nodes): Accept "__intN__"
23145 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23146 * doc/invoke.texi: Document that __intN__ disables pedantic
23149 2019-06-25 Jan Hubicka <jh@suse.cz>
23151 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23152 base2_alias_set is non-zero before doing TBAA based disambiguation.
23154 2019-06-25 Martin Liska <mliska@suse.cz>
23156 PR tree-optimization/90973
23157 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23158 of prologue and epilogue.
23160 2019-06-24 Jan Hubicka <jh@suse.cz>
23162 * ipa-utils.h (type_with_linkage_p): Verify that type is
23164 (odr_type_p): Remove extra return.
23165 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23166 hash STRING_FLAG only for arrays and integers.
23167 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23168 Update analogously.
23169 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23171 * print-tree.c (print_node): Print cxx-odr-p
23173 * tree.c (need_assembler_name_p): Also check that type
23175 (verify_type_variant): Update verification of SRING_FLAG;
23176 also check CXX_ODR_P.
23177 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23178 (TYPE_STRING_FLAG): Use it.
23179 (TYPE_CXX_ODR_P): New macro.
23180 * dwarf2out.c (gen_array_type_die): First check that type
23181 is an array and then test string flag.
23183 2019-06-24 Richard Biener <rguenther@suse.de>
23185 PR tree-optimization/90972
23186 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23187 in common code, dealing with STRING_CST properly.
23189 2019-06-24 Richard Biener <rguenther@suse.de>
23191 PR tree-optimization/90930
23192 PR tree-optimization/90316
23193 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23194 decrement of limit.
23196 2019-06-24 Martin Sebor <msebor@redhat.com>
23198 * tree-pretty-print.h: Remove unnecessary punctuation characters
23200 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23202 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23204 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23205 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23206 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23208 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23210 * config/rs6000/darwin.h: Handle GCC target pragma.
23212 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23214 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23216 2019-06-22 Jeff Law <law@redhat.com>
23218 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23220 2019-06-22 Jan Hubicka <jh@suse.cz>
23222 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23223 give up on bitfields; continue searching for different refs
23226 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23228 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23229 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23230 containing the offset as possible simd lane access. Look through
23231 widening conversion. Move the
23232 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23234 2019-06-21 Richard Biener <rguenther@suse.de>
23236 PR tree-optimization/90930
23237 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23238 flag on new stmts to avoid re-processing them.
23240 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23242 PR c++/90875 - added -Wswitch-outside-range option
23243 * doc/invoke.texi (Wswitch-outside-range): Document.
23245 2019-06-21 Jeff Law <law@redhat.com>
23247 PR tree-optimization/90949
23248 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23249 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23251 2019-06-21 Richard Biener <rguenther@suse.de>
23254 * dwarf2out.c (prune_unused_types_walk): Always consider
23255 function-local extern declarations as used.
23257 2019-06-21 Richard Biener <rguenther@suse.de>
23259 PR tree-optimization/90913
23260 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23261 the scalar variant of if-conversion versioning.
23263 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23265 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23266 create another "omp scan inscan exclusive" array if
23267 !ctx->scan_inclusive.
23268 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23269 (lower_omp_scan): Likewise.
23270 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23271 2-bit bitfield for simd_lane_access_p member.
23272 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23273 aux == (void *)-4 as simd lane access.
23274 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23275 comment with permutations to show the canonical permutation order.
23276 (vectorizable_scan_store): Handle exclusive scan.
23277 (vectorizable_store): Call vectorizable_scan_store even for
23278 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23280 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23281 "omp simd array" arrays with one byte elements.
23283 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23285 * config/alpha/alpha.md (@unaligned_store<mode>):
23286 Rename from unaligned_store<mode>.
23287 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23288 * config/alpha/sync.md (@load_locked_<mode>): Rename
23289 from load_locked_<mode>.
23290 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23291 (@atomic_compare_and_swap<mode>_1): Rename
23292 from atomic_compare_and_swap<mode>_1.
23293 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23294 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23295 Use gen_reload_in_aligned and gen_unaligned_store.
23296 (emit_load_locked): Remove.
23297 (emit_store_conditional): Ditto.
23298 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23299 (alpha_split_compare_and_swap): Ditto.
23300 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23301 (alpha_split_compare_and_swap_12): Use gen_load_locked
23302 and gen_store_conditional.
23303 (alpha_split_atomic_exchange): Ditto.
23304 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23305 (alpha_split_atomic_exchange_12): Use gen_load_locked
23306 and gen_store_conditional.
23308 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23310 * config/aarch64/aarch64-errata.h: New file.
23311 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23312 (CA53_ERR_843419_SPEC): Delete.
23313 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23314 * config/aarch64/aarch64-linux.h: Likewise.
23315 * config/aarch64/aarch64-netbsd.h: Likewise.
23316 * config/aarch64/aarch64-freebsd.h: Likewise.
23318 2019-06-20 Marek Polacek <polacek@redhat.com>
23320 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23322 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23324 * config/rs6000/rs6000.md (isa attribute): Add support for
23325 for a future processor.
23327 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23330 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23331 standard scalar operation pattern for V2DF.
23332 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23333 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23334 (*ieee_<ieee_maxmin><mode>3): Likewise.
23335 (vec_setv2df_0): Likewise.
23337 2019-06-20 Jan Hubicka <jh@suse.cz>
23339 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23340 parameter; it has no use in gimple memory model.
23341 (indirect_ref_may_alias_decl_p): Update.
23343 2019-06-20 Martin Liska <mliska@suse.cz>
23345 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23348 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23350 * tree-vect-stmts.c (enum scan_store_kind): New type.
23351 (scan_store_can_perm_p): Change last argument from int * to
23352 vec<enum scan_store_kind> *, record precisely which permutations
23353 need whole vector left shift or that plus VEC_COND_EXPR.
23354 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23355 and additional VEC_COND_EXPR only for those iterations that need it.
23357 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23359 * config.gcc: Fix ARM --with-fpu checking and error message.
23361 2019-06-19 Marek Polacek <polacek@redhat.com>
23363 PR c++/60364 - noreturn after first decl not diagnosed.
23364 * attribs.c (get_attribute_namespace): No longer static.
23365 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23367 (attr_noreturn_exclusions): Make it extern.
23368 * attribs.h (get_attribute_namespace): Declare.
23369 * tree-inline.c (function_attribute_inlinable_p): Use
23370 get_attribute_name.
23372 2019-06-19 Martin Sebor <msebor@redhat.com>
23374 PR tree-optimization/90626
23375 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23377 PR tree-optimization/90626
23378 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23379 (handle_builtin_string_cmp): Call it.
23381 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23383 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23384 and DARWIN_NOPIE_SPEC.
23385 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23386 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23387 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23388 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23389 (DARWIN_EXPORT_DYNAMIC): Delete.
23390 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23391 and pie options processing to darwin.h.
23392 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23394 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23396 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23397 in computing the number of options to be moved.
23399 2019-06-19 Maya Rashish <coypu@sdf.org>
23401 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23402 (CLEAR_INSN_CACHE) Use it.
23404 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23406 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23408 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23410 PR middle-end/84521
23411 * builtins.c (expand_builtin_setjmp_setup): Save
23412 hard_frame_pointer_rtx.
23413 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23415 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23417 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23419 (remove_reg_equal_offset_note): Remove unused function.
23420 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23422 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23423 (arc_builtin_setjmp_frame_value): Remove function.
23424 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23425 (avr_builtin_setjmp_frame_value): Remove function.
23426 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23427 (ix86_builtin_setjmp_frame_value): Remove function.
23428 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23429 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23430 (sparc_builtin_setjmp_frame_value): Remove function.
23431 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23432 (vax_builtin_setjmp_frame_value): Remove function.
23433 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23434 pointer if has_nonlocal_label.
23436 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23438 * doc/md.texi: Document vec_shl_<mode> pattern.
23439 * optabs.def (vec_shl_optab): New optab.
23440 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23441 argument, if == vec_shl_optab, check for left whole vector shift
23442 pattern rather than right shift.
23443 (expand_vec_perm_const): Add vec_shl_optab support.
23444 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23446 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23447 can be handled by vec_shl_optab.
23448 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23449 (check_scan_store): Use it.
23450 (vectorizable_scan_store): If target can't do normal permutations,
23451 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23453 * config/i386/sse.md (vec_shl_<mode>): New expander.
23455 * omp-low.c (lower_rec_input_clauses): Handle references properly
23457 (lower_omp_scan): Likewise.
23459 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23461 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23462 mem_mode is BLKmode.
23464 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23467 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23468 pointer adjustment for the case of no callee-saved registers and
23469 stack frame bigger than 128 bytes.
23471 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23473 PR middle-end/90862
23474 * omp-low.c (check_omp_nesting_restrictions): Handle
23475 GF_OMP_TARGET_KIND_OACC_DECLARE.
23477 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23479 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23480 (@add<mode>3_carry): Rename from add<mode>3_carry.
23481 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23482 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23483 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23484 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23485 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23486 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23487 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23488 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23489 (cmpstrnsi): Use gen_cmp_1.
23490 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23491 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23492 (@umonitor_<mode>): Rename from umonitor_<mode>.
23493 * config/i386/i386-expand.c (ix86_expand_copysign):
23494 Use gen_copysign3_const and gen_copysign3_var.
23495 (ix86_expand_xorsign): Use gen_xorsign3_1.
23496 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23497 gen_sub3_carry_ccgz and gen_cmp1.
23498 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23499 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23500 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23501 (ix86_split_lshr): Ditto.
23502 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23504 2019-06-18 Jason Merrill <jason@redhat.com>
23506 * tree.c (build_constructor): Add MEM_STAT_DECL.
23508 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23510 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23511 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23512 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23513 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23514 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23515 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23516 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23517 Use CC_NZC instead of CC.
23518 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23519 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23520 (aarch64_print_operand): Handle E_CC_NZCmode.
23521 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23522 of gen_set_clobber_cc.
23524 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23526 * config/aarch64/aarch64-sve.md: Tabify file.
23528 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23530 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23531 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23532 * config/aarch64/aarch64-sve.md: Use it.
23534 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23536 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23537 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23538 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23539 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23540 (aarch64_expand_sve_vec_cmp_int): Use it.
23541 (aarch64_expand_sve_vec_cmp_float): Likewise.
23542 * config/aarch64/aarch64-sve.md: Likewise throughout.
23544 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23545 Kugan Vivekanandarajah <kuganv@linaro.org>
23547 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23548 (*cond_<optab><mode>_z): Fold into...
23549 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23550 operand 4 can be tied to operand 0 (either inherently or via RA).
23552 2019-06-18 Richard Biener <rguenther@suse.de>
23555 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23556 as if optimized away.
23558 2019-06-18 Tom de Vries <tdevries@suse.de>
23560 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23561 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23562 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23564 (define_insn "@set_softstack_<mode>"): ... this.
23565 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23566 (define_insn "@omp_simt_enter_<mode>"): ... this.
23567 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23568 (define_insn "@omp_simt_exit_<mode>"): ... this.
23570 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23572 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23573 vf parameter. Restore the previous iv step of nscalars_step,
23574 but give it iv_type rather than compare_type. Tweak code order
23575 to match the comments.
23576 (vect_set_loop_condition_masked): Update accordingly.
23577 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23578 for iv_precision. Tweak comment formatting.
23580 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23582 * config/darwin.c: Strip trailing whitespace.
23584 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23586 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23587 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23589 2019-06-18 Martin Jambor <mjambor@suse.cz>
23592 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23593 caller does not have flag_ipa_cp set.
23595 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23597 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23598 from "*fold_left_plus_<mode>", updated operands order.
23599 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23600 * internal-fn.c (mask_fold_left_direct): New define.
23601 (expand_mask_fold_left_optab_fn): Likewise.
23602 (direct_mask_fold_left_optab_supported_p): Likewise.
23603 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23604 * optabs.def (mask_fold_left_plus_optab): New optab.
23605 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23606 masked internal_fn for a reduction ifn.
23607 (vectorize_fold_left_reduction): Add support for masking reductions.
23609 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23611 PR middle-end/80791
23612 * target.def (predict_doloop_p): New hook.
23613 * targhooks.h (default_predict_doloop_p): New declaration.
23614 * targhooks.c (default_predict_doloop_p): New function.
23615 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23616 * doc/tm.texi: Regenerate.
23617 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23618 (TARGET_PREDICT_DOLOOP_P): New macro.
23619 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23621 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23623 * omp-low.c (struct omp_context): Add scan_inclusive field.
23624 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23626 (struct omplow_simd_context): Add lastlane member.
23627 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23628 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23630 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23631 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23632 (lower_omp_scan): New function.
23633 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23634 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23635 check 3rd argument if present rather than 2nd.
23636 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23637 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23639 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23640 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23642 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23643 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23644 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23646 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23647 IFN_GOMP_SIMD_LANE argument.
23648 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23649 encoded ->aux value.
23650 * tree-vect-stmts.c: Include attribs.h.
23651 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23652 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23654 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23655 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23657 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23660 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23661 (*nabs<mode>2_1): Ditto.
23662 (nabs sse-reg splitter): New splitter.
23663 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23665 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23667 PR bootstrap/90873.
23668 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23671 2019-06-17 Tom de Vries <tdevries@suse.de>
23673 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23674 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23675 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23677 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23679 (define_insn "omp_simt_enter_insn"): Rename to ...
23680 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23681 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23682 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23683 gen_omp_simt_enter_si.
23684 (define_expand "omp_simt_exit"): New.
23685 (define_insn "omp_simt_exit"): Rename to ...
23686 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23689 2019-06-17 Matthew Green <mrg@eterna.com.au>
23690 Maya Rashish <coypu@sdf.org>
23692 * config.gcc (aarch64*-*-netbsd*): New target.
23693 * config/aarch64/aarch64-netbsd.h: New file.
23694 * config/aarch64/t-aarch64-netbsd: Likewise.
23696 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23698 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23699 the access path from base to first VIEW_CONVERT_EXPR or
23702 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23704 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23705 access path on BIT_FIELD_REFs.
23707 2019-06-17 Martin Liska <mliska@suse.cz>
23710 * ipa-utils.h (odr_type_p): Remove dead code.
23712 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23714 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23715 alternative Solaris 11.4 format.
23716 * configure: Regenerate.
23718 2019-06-17 Tom de Vries <tdevries@suse.de>
23720 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23721 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23723 (define_insn "call_value_insn"): Rename to ...
23724 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23726 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23729 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23731 PR middle-end/64242
23732 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23733 frame clobbers and schedule block.
23734 (builtin_longjmp): Likewise.
23736 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23738 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23739 describe how to perform MSPABI compliant 64-bit shift.
23740 * config/msp430/msp430.md (ashldi3): New define_expand.
23741 (ashrdi3): New define_expand.
23742 (lshrdi3): New define_expand.
23744 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23746 * doc/sourcebuild.texi: Document new effective target keyword
23749 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23751 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23752 indirect_refs_may_alias_p): Revert accidental commits.
23754 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23755 at the end of structures.
23757 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23759 * config/darwin.c (machopic_indirect_call_target): Use renamed
23760 darwin_picsymbol_stubs to decide on output.
23761 (darwin_override_options): Handle darwin_picsymbol_stubs.
23762 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23763 (LD64_VERSION): Revise default.
23764 * config/darwin.opt: (mpic-symbol-stubs): New option.
23765 (darwin_picsymbol_stubs): New variable.
23766 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23767 rename to TARGET_MACHO_PICSYM_STUBS.
23768 * config/i386/i386.c (output_pic_addr_const): Likewise.
23769 * config/i386/i386.h Likewise.
23770 * config/rs6000/darwin.h: Likewise.
23771 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23772 darwin_picsymbol_stubs.
23774 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23776 * config/darwin.opt (prebind, noprebind, seglinkedit,
23777 noseglinkedit): Add RejectNegative.
23779 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23781 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23782 in my previous patch.
23784 2019-06-16 Tom de Vries <tdevries@suse.de>
23786 PR tree-optimization/89376
23787 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23789 2019-06-15 Maya Rashish <coypu@sdf.org>
23791 * doc/invoke.texi (Spec Files): Update location of the
23794 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23796 * doc/extend.texi (Common Function Attributes): Clarify
23797 no_sanitize. Fix grammar.
23799 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23801 * tree-ssa-alias.c (alias_stats): Add
23802 nonoverlapping_component_refs_p_may_alias,
23803 nonoverlapping_component_refs_p_no_alias,
23804 nonoverlapping_component_refs_of_decl_p_may_alias,
23805 nonoverlapping_component_refs_of_decl_p_no_alias.
23806 (dump_alias_stats): Dump them.
23807 (nonoverlapping_component_refs_of_decl_p): Add stats.
23808 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23811 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23813 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23814 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23816 (*anddi3_doubleword): Split before reload. Merge with
23817 anddi->zext pre-reload splitter.
23818 (*andndi3_doubleword): Split before reload.
23819 (*<code>di3_doubleword): Ditto.
23820 (*one_cmpldi2_doubleword): Ditto.
23822 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23824 PR middle-end/90779
23825 * gimplify.c: Include omp-offload.h and context.h.
23826 (gimplify_bind_expr): Add "omp declare target" attributes
23827 to static block scope variables inside of target region or target
23830 2019-06-15 Tom de Vries <tdevries@suse.de>
23832 PR tree-optimization/90009
23833 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23834 Return NULL if bb contains IFN_UNIQUE.
23836 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23838 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23839 (un): New define_mode_attr.
23840 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23841 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23842 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23844 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23846 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23848 * config/darwin.opt: Add RejectNegative where needed, reorder
23849 and add minimal functional descriptions.
23851 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23853 PR rtl-optimization/90765
23854 * calls.c (update_stack_alignment_for_call): New function.
23855 (expand_call): Call update_stack_alignment_for_call when
23856 outgoing parameter is passed in the stack.
23857 (emit_library_call_value_1): Likewise.
23858 * function.c (locate_and_pad_parm): Don't update
23859 stack_alignment_needed and preferred_stack_boundary.
23861 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23864 * config/i386/i386-features.c
23865 (dimode_scalar_chain::compute_convert_gain): Replace
23866 mmxsse_to_integer with sse_to_integer.
23867 * config/i386/i386.c (ix86_register_move_cost): Verify that
23868 moves between MMX and non-MMX units require secondary memory.
23869 Correct costs of moves between SSE and integer units.
23870 * config/i386/i386.h (processor_costs): Rename cost of moving
23871 SSE register to integer to sse_to_integer. Rename cost of
23873 2019-06-14 Matt Thomas <matt@3am-software.com>
23874 Matthew Green <mrg@eterna.com.au>
23875 Nick Hudson <skrll@netbsd.org>
23876 Maya Rashish <coypu@sdf.org>
23877 Richard Earnshaw <rearnsha@arm.com>
23879 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23880 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23881 * config/arm/netbsd-eabi.h: New file.
23882 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23884 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23885 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23886 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23887 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23889 2019-06-14 Richard Biener <rguenther@suse.de>
23891 * tree-loop-distribution.c (classify_partition): Return
23892 whether a reduction appeared in all partitions and do not
23893 stop builtin detection because of this.
23894 (distribute_loop): Sort a non-builtin partition last if
23895 there's a reduction in all partitions and make sure the
23896 partition prevailing as last is not a builtin.
23898 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23901 * ipa-prop.c (add_to_agg_contents_list): New function.
23902 (clobber_by_agg_contents_list_p): Likewise.
23903 (extract_mem_content): Likewise.
23904 (get_place_in_agg_contents_list): Delete.
23905 (determine_known_aggregate_parts): Renamed from
23906 determine_locally_known_aggregate_parts. New parameter
23909 2019-06-13 Martin Sebor <msebor@redhat.com>
23911 PR tree-optimization/90662
23912 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23915 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23918 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23919 dbase is not TARGET_MEM_REF.
23921 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23923 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23925 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23926 Do not generate DImode extends for 32bit targets.
23927 (and->zext post-reload splitter): Use gen_extend_insn
23928 instead of indirect functions.
23929 (anddi->zext pre-reload splitter): New.
23930 (*zext<mode>_doubleword_and): Remove.
23931 (*zext<mode>_doubleword): Ditto.
23932 (*zextsi_doubleword): Dittto.
23934 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23936 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23937 Use gen_sub3_insn instead of indirect function.
23938 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23940 (ix86_adjust_counter): Ditto.
23942 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
23943 Lijia He <helijia@linux.ibm.com>
23945 PR tree-optimization/77820
23946 * tree-ssa-threadedge.c
23947 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
23949 (thread_across_edge): Add call to
23950 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
23952 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
23954 * config/darwin-driver.c (validate_macosx_version_min): New.
23955 (darwin_default_min_version): Cleanup and validate supplied version.
23956 (darwin_driver_init): Likewise and push cleaned version into opts.
23958 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23960 PR tree-optimization/90869
23961 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
23962 converts in MEM_REF referencing decl rather than view converts
23963 from decl type to MEM_REF type.
23965 2019-06-13 Richard Biener <rguenther@suse.de>
23967 PR tree-optimization/90856
23968 * tree-sra.c (build_ref_for_model): Only use
23969 build_reconstructed_reference when address-spaces are the same.
23971 2019-06-13 Jakub Jelinek <jakub@redhat.com>
23973 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
23974 wrap ei variable name in the declaration in ()s.
23975 (nvptx_single): Actually use mode_label variable. Formatting fix.
23977 2019-06-13 Richard Biener <rguenther@suse.de>
23979 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
23980 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
23981 also return the condition stmt.
23982 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
23983 loop we can version and version that, reusing the loop version
23984 created by if-conversion instead of versioning again.
23986 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
23988 * gimple-loop-versioning.cc (prune_loop_conditions): Use
23990 * tree-vrp (value_range_base::may_contain_p): Call into
23991 value_inside_range.
23992 (value_inside_range): Make private inside value_range_base class.
23993 Take min/max from *this.
23994 (range_includes_p): Remove.
23995 * tree-vrp.h (value_range_base): Add value_inside_range.
23996 (range_includes_p): Remove.
23997 (range_includes_zero_p): Call may_contain_p.
23998 * vr-values.c (compare_range_with_value): Same.
24000 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24002 * doc/extend.texi (ARC Function Attributes): Update info.
24004 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24006 PR tree-optimization/89713
24007 * doc/invoke.texi (-ffinite-loops): Document new option.
24008 * common.opt (-ffinite-loops): New option.
24009 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24010 IFN_GOACC_LOOP calls as necessary.
24011 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24013 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24014 IFN_GOACC_LOOP call is not used.
24015 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24017 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24020 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24021 compare_type is not with Pmode size, we will create an IV with
24022 Pmode size with truncated use (i.e. converted to the correct type).
24023 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24024 (vect_iv_limit_for_full_masking): New. Factored out of
24025 vect_set_loop_condition_masked.
24026 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24027 (vect_iv_limit_for_full_masking): Declare.
24029 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24032 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24033 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24034 (get_alias_ptr_type_for_ptr_address): Likewise.
24035 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24036 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24037 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24040 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24042 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24044 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24046 * common/config/pru/pru-common.c: New file.
24047 * config.gcc: Add PRU target.
24048 * config/pru/alu-zext.md: New file.
24049 * config/pru/constraints.md: New file.
24050 * config/pru/predicates.md: New file.
24051 * config/pru/pru-opts.h: New file.
24052 * config/pru/pru-passes.c: New file.
24053 * config/pru/pru-pragma.c: New file.
24054 * config/pru/pru-protos.h: New file.
24055 * config/pru/pru.c: New file.
24056 * config/pru/pru.h: New file.
24057 * config/pru/pru.md: New file.
24058 * config/pru/pru.opt: New file.
24059 * config/pru/t-pru: New file.
24060 * doc/extend.texi: Document PRU pragmas.
24061 * doc/invoke.texi: Document PRU-specific options.
24062 * doc/md.texi: Document PRU asm constraints.
24064 2019-06-12 Martin Sebor <msebor@redhat.com>
24066 PR middle-end/90676
24067 * tree-pretty-print.c (dump_mem_ref): New function. Include
24068 MEM_REF type in output when different size than operand.
24069 (dump_generic_node): Move code to dump_mem_ref and call it.
24071 2019-06-12 Martin Sebor <msebor@redhat.com>
24073 PR tree-optimization/90662
24074 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24077 2019-06-12 Tom de Vries <tdevries@suse.de>
24079 PR tree-optimization/90009
24080 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24082 2019-06-12 Martin Liska <mliska@suse.cz>
24084 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24086 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24087 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24088 Do not sanitize created maps.
24090 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24092 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24093 value_range::singleton_p.
24094 * tree-vrp.c (value_range_constant_singleton): Remove.
24095 * tree-vrp.h (value_range_constant_singleton): Remove.
24096 * vr-values.c (vr_values::singleton): Use
24097 value_range::singleton_p.
24099 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24102 * cfgexpand.c (align_local_variable): Add really_expand argument,
24103 don't SET_DECL_ALIGN if it is false.
24104 (add_stack_var): Add really_expand argument, pass it through to
24105 align_local_variable.
24106 (expand_one_stack_var_1): Pass true as really_expand to
24107 align_local_variable.
24108 (expand_one_ssa_partition): Pass true as really_expand to
24110 (expand_one_var): Pass really_expand through to add_stack_var.
24112 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24114 * config/arm/iterators.md (VABAL): New int iterator.
24115 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24116 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24117 UNSPEC_VABAL_U values.
24119 2019-06-12 Martin Liska <mliska@suse.cz>
24121 * value-prof.c (stream_out_histogram_value): Only first value
24124 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24127 * symtab.c (symtab_node::set_section): Allow being called on aliases
24128 as long as they aren't analyzed yet.
24130 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24132 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24133 to `mips_set_text_contents_type' to indicate whether a
24134 non-debug insn follows.
24136 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24138 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24139 enabling -mpcrel by default.
24140 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24141 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24142 that the test against -mcpu=future is done first. Then test if
24143 -mprefixed-addr is on for -mpcrel.
24144 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24146 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24149 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24150 instead of and.u%d.
24152 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24154 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24156 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24158 PR c++/90449 - add -Winaccessible-base option.
24159 * doc/invoke.texi (Winaccessible-base): Document.
24161 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24163 PR tree-optimization/62041
24164 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24166 2019-06-11 Jason Merrill <jason@redhat.com>
24168 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24169 * tree.c (get_tree_code_name): Likewise.
24170 * print-tree.c (print_node): Only briefly print a node with an
24173 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24176 * trans-mem.c (tm_memopt_compute_available): Add assertion
24177 that blocks is not empty. Formatting fix.
24179 2019-06-11 Martin Liska <mliska@suse.cz>
24182 * hash-table.h: Extend create_gcc, add one parameter
24183 that is passed into hash_table::hash_table.
24185 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24187 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24189 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24190 Emit clobber also for non-sse operations.
24191 (ix86_split_fp_absneg_operator): New function.
24192 * config/i386/i386.md (SSEMODEF): New mode iterator.
24193 (ssevecmodef): New mode attribute.
24194 (<code>tf2): Use absneg code iterator.
24195 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24196 Add three-operand AVX alternatives.
24197 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24198 Use absneg code iterator and X87MODEF mode iterator.
24199 (absneg fp_reg non-sse splitter): Call absneg code iterator
24200 and X87MODEF mode iterator.
24201 (absneg general_reg non-sse splitter): Use absneg code iterator
24202 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24203 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24204 code iterator. Add three-operand AVX alternative.
24205 (absneg sse_reg splitter): Use absneg code iterator
24206 and SSEMODEF mode iterator. Handle AVX operands.
24207 (absneg fp_reg splitter): Use absneg code iterator
24208 and MODEF mode iterator.
24209 (absneg general_reg splitter): Merge splitters using MODEF mode
24210 iterator. Use absneg code iterator. Call
24211 ix86_split_fp_absneg_operator.
24212 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24213 Do not enable for non-sse modes before reload.
24214 (CSGNMODE): Remove.
24215 (CSGNVMODE): Ditto.
24216 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24217 ssevecmodef mode attribute instaed of CSGNVMODE.
24218 (copysign<mode>3_const): Ditto.
24219 (copysign<mode>3_var): Ditto.
24220 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24221 Use absneg code iterator. Simplify code using std::swap.
24222 * config/i386/predicates.md (absneg_operator): Remove.
24224 2019-06-10 Martin Sebor <msebor@redhat.com>
24226 * gimple-fold.c (get_range_strlen): Update comment that didn't
24227 make it into r267503 or related commits.
24229 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24231 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24232 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24234 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24236 * tree.def (OMP_SCAN): New tree code.
24237 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24238 OMP_CLAUSE_EXCLUSIVE.
24239 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24240 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24241 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24242 OMP_CLAUSE_{IN,EX}CLUSIVE.
24243 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24244 * tree-nested.c (convert_nonlocal_reference_stmt,
24245 convert_local_reference_stmt, convert_gimple_call): Handle
24247 * tree-pretty-print.c (dump_omp_clause): Handle
24248 OMP_CLAUSE_{IN,EX}CLUSIVE.
24249 (dump_generic_node): Handle OMP_SCAN.
24250 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24251 * gimple.h (gomp_scan): New type.
24252 (is_a_helper <gomp_scan *>::test,
24253 is_a_helper <const gomp_scan *>::test): New templates.
24254 (gimple_build_omp_scan): Declare.
24255 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24256 gimple_omp_scan_set_clauses): New inline functions.
24257 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24258 * gimple.c (gimple_build_omp_scan): New function.
24259 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24260 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24261 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24262 GIMPLE_OMP_TASKGROUP.
24263 (dump_gimple_omp_scan): New function.
24264 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24265 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24266 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24267 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24268 (is_gimple_stmt): Handle OMP_SCAN.
24269 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24270 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24271 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24272 mentioned in nested #pragma omp scan. Handle
24273 OMP_CLAUSE_{IN,EX}CLUSIVE.
24274 (gimplify_expr): Handle OMP_SCAN.
24275 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24276 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24278 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24281 2019-06-10 Martin Liska <mliska@suse.cz>
24283 * ipa-cp.c (ignore_edge_p): New function.
24284 (build_toporder_info): Use it.
24285 * ipa-inline.c (ignore_edge_p): New function.
24286 (inline_small_functions): Use it.
24287 * ipa-pure-const.c (ignore_edge_for_nothrow):
24288 Verify opt_for_fn for caller and callee.
24289 (ignore_edge_for_pure_const): Likewise.
24290 * ipa-reference.c (ignore_edge_p): Extend to check
24292 * ipa-utils.c (searchc): Refactor.
24293 * ipa-utils.h: Fix coding style.
24295 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24297 * config/arc/arc.c (arc_rtx_costs): Update costs.
24299 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24301 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24302 (arc_split_ior): Likewise.
24303 (arc_check_mov_const): Likewise.
24304 (arc_split_mov_const): Likewise.
24305 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24306 (arc_rtx_costs): Replace check Crr with Cax constraint.
24307 (prepare_move_operands): Cleanup, remove unused code.
24308 (arc_split_ior): New function.
24309 (arc_check_ior_const): Likewise.
24310 (arc_split_mov_const): Likewise.
24311 (arc_check_mov_const): Likewise.
24312 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24313 in define_insn_and_split pattern.
24314 (iorsi3): Likewise.
24315 (mulsi3_v2): Add new matching variant.
24316 (andsi3_i): Cleanup pattern.
24317 (rotrsi3_cnt1): Update pattern.
24318 (rotrsi3_cnt8): New pattern.
24319 (ashlsi2_cnt8): Likewise.
24320 (ashlsi2_cnt16): Likewise.
24321 * config/arc/constraints.md (C0p): Update constraint.
24323 (C0x): New pattern.
24324 (Cax): New pattern.
24326 2019-06-10 Martin Liska <mliska@suse.cz>
24328 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24329 Update coding style.
24330 (sem_item_optimizer::dump_cong_classes):
24331 Print how many items are in a non-singular class. Improve
24334 2019-06-10 Martin Liska <mliska@suse.cz>
24336 * value-prof.c (dump_histogram_value): Change dump format.
24337 (gimple_mod_subtract_transform): Remove legacy comment.
24339 2019-06-10 Martin Liska <mliska@suse.cz>
24341 * value-prof.c (dump_histogram_value): Print histogram values
24344 2019-06-10 Martin Liska <mliska@suse.cz>
24346 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24347 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24348 * ipa-profile.c (ipa_profile_generate_summary):
24349 Use get_most_common_single_value.
24350 * tree-profile.c (gimple_init_gcov_profiler):
24351 Instrument with __gcov_one_value_profiler_v2
24352 and __gcov_indirect_call_profiler_v4.
24353 * value-prof.c (dump_histogram_value):
24354 Print all values for HIST_TYPE_SINGLE_VALUE.
24355 (stream_out_histogram_value): Update assert for
24357 (stream_in_histogram_value): Set number of
24358 counters for HIST_TYPE_SINGLE_VALUE.
24359 (get_most_common_single_value): New.
24360 (gimple_divmod_fixed_value_transform):
24361 Use get_most_common_single_value.
24362 (gimple_ic_transform): Likewise.
24363 (gimple_stringops_transform): Likewise.
24364 (gimple_find_values_to_profile): Set number
24365 of counters for HIST_TYPE_SINGLE_VALUE.
24366 * value-prof.h (get_most_common_single_value): New.
24368 2019-06-10 Martin Liska <mliska@suse.cz>
24370 * hash-map.h: Pass default value to hash_table ctor.
24371 * hash-table.h: Add default value to call of a ctor.
24373 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24375 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24376 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24378 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24381 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24382 Call pa_output_function_label.
24383 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24384 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24385 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24387 (pa_linux_output_function_prologue): Declare.
24388 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24389 (pa_output_function_label): New.
24390 (pa_output_function_prologue): Revise to use pa_output_function_label.
24391 (pa_linux_output_function_prologue): New.
24392 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24394 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24396 * tree-vrp.h (value_range_base::intersect): New.
24397 (value_range::intersect_helper): Move from here...
24398 (value_range_base::intersect_helper): ...to here.
24399 * tree-vrp.c (value_range::intersect_helper): Rename to...
24400 (value_range_base::intersect_helper): ...this, and rewrite to
24401 return a value instead of modifying THIS in place.
24402 Also, move equivalence handling...
24403 (value_range::intersect): ...here, while calling intersect_helper.
24404 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24406 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24408 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24410 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24412 * Makefile.in (genprogerr): Add condmd.
24413 (genprog): Remove it here.
24415 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24417 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24419 2019-06-07 Richard Biener <rguenther@suse.de>
24422 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24423 that appear after user labels.
24425 2019-06-07 Martin Liska <mliska@suse.cz>
24427 * cselib.c (cselib_init): Disable hash table
24429 * hash-set.h: Pass new default argument to m_table.
24430 * hash-table.c: Add global variable with hash table
24431 sanitization limit.
24432 * hash-table.h (Allocator>::hash_table): Add new argument
24434 (hashtab_chk_error): New.
24435 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24436 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24437 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24439 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24441 * common.opt (flto-odr-type-merging): Ignore.
24442 * invoke.texi (-flto-odr-type-merging): Remove.
24443 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24444 (can_be_vtable_hashed_p): Remove.
24445 (hash_odr_vtable): Remove.
24446 (odr_vtable_hasher::hash): Remove.
24447 (types_same_for_odr): Remove.
24448 (types_odr_comparable): Remove.
24449 (odr_vtable_hasher::equal): Remove.
24450 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24451 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24452 (get_odr_type): Do not use vtable hash.
24453 (dump_odr_type): Remove commented out code.
24454 (build_type_inheritance_graph): Do not allocate vtable hash.
24455 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24456 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24457 (odr_type_p): Likewise.
24458 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24461 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24463 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24464 immediately after same_types_for_tbaa_p returns -1 and continue
24465 looking for possible exact match; if matching types are arrays
24466 watch for partial overlaps.
24467 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24468 (indirect_refs_may_alias_p): Do type based disambiguation first;
24471 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24473 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24475 2019-06-07 Martin Liska <mliska@suse.cz>
24477 * doc/invoke.texi: Remove param.
24478 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24480 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24481 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24482 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24483 * profile.c (instrument_values): Remove
24484 HIST_TYPE_INDIR_CALL_TOPN.
24485 * tree-profile.c (init_ic_make_global_vars):
24486 Always build __gcov_indirect_call only.
24487 (gimple_init_gcov_profiler): Remove usage
24488 of PARAM_INDIR_CALL_TOPN_PROFILE.
24489 (gimple_gen_ic_profiler): Likewise.
24490 * value-prof.c (dump_histogram_value): Likewise.
24491 (stream_in_histogram_value): Likewise.
24492 (gimple_indirect_call_to_profile): Likewise.
24493 (gimple_find_values_to_profile): Likewise.
24494 * value-prof.h (enum hist_type): Likewise.
24496 2019-06-07 Martin Liska <mliska@suse.cz>
24498 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24501 2019-06-07 Martin Liska <mliska@suse.cz>
24503 PR tree-optimization/78902
24504 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24505 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24506 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24507 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24508 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24509 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24510 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24511 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24512 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24513 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24514 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24515 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24516 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24518 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24519 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24520 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24521 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24522 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24523 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24524 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24525 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24526 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24527 warn_unused_result attribute.
24528 (BUILT_IN_STRDUP): Likewise.
24529 (BUILT_IN_STRNDUP): Likewise.
24530 (BUILT_IN_ALLOCA): Likewise.
24531 (BUILT_IN_CALLOC): Likewise.
24532 (BUILT_IN_MALLOC): Likewise.
24533 (BUILT_IN_REALLOC): Likewise.
24535 2019-06-06 Jim Wilson <jimw@sifive.com>
24538 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24539 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24540 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24542 2019-06-06 Martin Sebor <msebor@redhat.com>
24544 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24545 (handle_builtin_malloc): Remove trailing spaces.
24546 (handle_builtin_memset): Same.
24547 (handle_builtin_memcmp): Same.
24548 (compute_string_length): Same.
24549 (determine_min_objsize): Same.
24550 (handle_builtin_string_cmp): Same.
24551 (handle_char_store): Same. Break up excessively long line.
24553 2019-06-06 Martin Jambor <mjambor@suse.cz>
24555 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24558 2019-06-06 Martin Jambor <mjambor@suse.cz>
24560 * tree-sra.c (struct access): New field grp_same_access_path.
24561 (dump_access): Dump it.
24562 (build_reconstructed_reference): New function.
24563 (build_ref_for_model): Use it if possible.
24564 (path_comparable_for_same_access): New function.
24565 (same_access_path_p): Likewise.
24566 (sort_and_splice_var_accesses): Set the new flag.
24567 (analyze_access_subtree): Likewise.
24568 (propagate_subaccesses_across_link): Propagate zero value of the new
24569 flag down the access tree.
24571 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24573 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24574 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24575 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24576 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24579 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24581 PR tree-optimization/90332
24582 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24583 Handle VALS containing two vectors.
24584 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24586 (@aarch64_combinez<mode>): ... This.
24587 (*aarch64_combinez_be<mode>): Rename to...
24588 (@aarch64_combinez_be<mode>): ... This.
24589 (vec_init<mode><Vhalf>): New define_expand.
24590 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24592 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24594 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24595 library functions only when not optimizing for size.
24596 (ashlsi3): Likewise.
24597 (ashrhi3): Likewise.
24598 (ashrsi3): Likewise.
24599 (lshrhi3): Likewise.
24600 (lshrsi3): Likewise.
24602 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24604 PR rtl-optimization/88751
24605 * ira.c (ira): Use the number of the actually referenced registers
24606 when calculating the threshold.
24608 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24610 * configure: Regenerate.
24612 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24614 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24615 register if it is in memory, so the shift can be emulated with a rotate
24617 (ashrhi3): Likewise.
24618 (lshrhi3): Likewise.
24620 2019-06-06 Martin Liska <mliska@suse.cz>
24622 PR tree-optimization/87954
24623 * match.pd: Simplify mult where both arguments are 0 or 1.
24625 2019-06-06 Richard Biener <rguenther@suse.de>
24627 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24628 put equivalences on UNDEFINED ranges.
24629 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24630 Make sure to drop defs of stmts added during simplification
24633 2019-06-06 Richard Biener <rguenther@suse.de>
24635 * tree-ssa-structalias.c: Include tree-cfg.h.
24636 (make_heapvar): Do not make heap vars artificial.
24637 (find_func_aliases_for_builtin_call): Handle stack allocation
24639 (find_func_aliases): Delay processing of simple enough returns
24641 (set_uids_in_ptset): Adjust.
24642 (find_what_var_points_to): Likewise.
24643 (solve_constraints): Do not dump points-to sets here.
24644 (compute_points_to_sets): Post-process return statements,
24645 amending the escaped solution. Dump points-to sets afterwards.
24646 (ipa_pta_execute): Dump points-to sets.
24648 2019-06-06 Martin Liska <mliska@suse.cz>
24651 * doc/install.texi: Fix HTML headers and
24652 titles for 'Installing GCC' pages.
24654 2019-06-06 Martin Liska <mliska@suse.cz>
24656 * ipa-icf-gimple.h (dump_message_1): Remove.
24657 (dump_message): Likewise.
24658 (return_false_with_message_1): Print also file.
24659 (return_false_with_msg): Likewise.
24660 (return_with_result): Likewise.
24661 (return_with_debug): Likewise.
24662 * ipa-icf.c (sem_function::equals_private): Remove call
24665 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24667 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24668 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24669 memory operand for it.
24670 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24672 2019-06-05 Martin Sebor <msebor@redhat.com>
24674 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24675 Adjust quoting and hyphenation.
24676 * convert.c (convert_to_real_1): Same.
24677 * gcc.c (driver_wrong_lang_callback): Same.
24678 (driver::handle_unrecognized_options): Same.
24679 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24680 * opts-common.c (cmdline_handle_error): Same.
24681 (read_cmdline_option): Same.
24682 * opts-global.c (complain_wrong_lang): Same.
24683 (print_ignored_options): Same.
24684 (handle_common_deferred_options): Same.
24685 * pretty-print.h: Same.
24686 * print-rtl.c (debug_bb_n_slim): Same.
24687 * sched-rgn.c (make_pass_sched_fusion): Same.
24688 * tree-cfg.c (verify_gimple_assign_unary): Same.
24689 (verify_gimple_label): Same.
24690 * tree-ssa-operands.c (verify_ssa_operands): Same.
24691 * varasm.c (do_assemble_alias): Same.
24692 (assemble_alias): Same.
24694 2019-06-05 Richard Henderson <rth@twiddle.net>
24696 * config/alpha/alpha.c (direct_return): Move down after
24697 struct machine_function definition; use saved frame_size;
24699 (struct machine_function): Add sa_mask, sa_size, frame_size.
24700 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24701 (alpha_compute_frame_layout): ... new function.
24702 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24703 (alpha_initial_elimination_offset): Use saved sa_size.
24704 (alpha_vms_initial_elimination_offset): Likewise.
24705 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24706 (alpha_expand_prologue): Use saved frame data. Merge integer
24707 and fp register save loops.
24708 (alpha_expand_epilogue): Likewise.
24709 (alpha_start_function): Use saved frame data.
24710 * config/alpha/alpha-protos.h (direct_return): Update.
24711 (alpha_sa_size): Remove.
24713 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24715 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24716 multiplication by a power-of-two value.
24717 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24718 and turn the modulo operation into a masking operation.
24720 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24723 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24724 with VOIDmode inner operands.
24726 2019-06-05 Richard Biener <rguenther@suse.de>
24728 PR middle-end/90726
24729 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24730 turn an expression graph into a tree.
24732 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24734 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24736 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24737 treat it like explicit monotonic schedule modifier.
24738 (expand_omp_for): Initialize has_lastprivate_conditional.
24739 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24742 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24743 references, lookup in in hash map MEM_REF operand instead of the
24745 (lower_omp_1): When looking for lastprivate conditional assignments,
24746 handle MEM_REFs with REFERENCE_TYPE operands.
24748 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24749 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24750 and references a VLA. Handle references to non-VLAs if is_simd
24751 all privatization clauses like reductions.
24752 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24753 If omp_is_reference, use always omp simd arrays and set
24754 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24755 fails, emit reference initialization.
24757 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24760 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24761 _mm_mask_fpclass_sd_mask): New intrinsics.
24762 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24763 * config/i386/i386-builtin.def
24764 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24766 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24767 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24768 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24769 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24770 case QI_FTYPE_V2SF_INT): Ditto.
24771 * config/i386/sse.md
24772 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24773 Extended to insnstructions with mask operands.
24775 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24777 * config/rs6000/constraints.md (define_register_constraint "wp"):
24779 (define_register_constraint "wq"): Delete.
24780 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24781 (rs6000_init_hard_regno_mode_ok): Adjust.
24782 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24783 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24784 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24785 (define_mode_attr VSa): Delete.
24786 (define_mode_attr VSisa): New.
24787 (rest of file): Adjust.
24788 * doc/md.texi (Machine Constraints): Adjust.
24790 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24792 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24793 (define_attr "enabled"): Handle those new isa values.
24795 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24797 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24798 (define_mode_attr VSr5): Delete.
24799 (define_mode_attr VStype_sqrt): Delete.
24800 (define_mode_iterator VSX_SPDP): Delete.
24801 (define_mode_attr VS_spdp_res): Delete.
24802 (define_mode_attr VS_spdp_insn): Delete.
24803 (define_mode_attr VS_spdp_type): Delete.
24804 (*vsx_sqrt<mode>2): Adjust.
24805 (vsx_<VS_spdp_insn>): Delete, split to...
24806 (vsx_xscvdpsp): ... this. New. And...
24807 (vsx_xvcvspdp): ... this. New. And...
24808 (vsx_xvcvdpsp): ... this. New.
24810 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24812 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24814 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24815 (rest of file): Adjust.
24817 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24819 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24820 (vsx_extract_<mode>_var): Ditto.
24822 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24824 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24827 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24829 * config/rs6000/constraints.md (define_register_constraint "ww"):
24831 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24832 (rs6000_init_hard_regno_mode_ok): Adjust.
24833 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24834 RS6000_CONSTRAINT_ww.
24835 * config/rs6000/rs6000.md: Adjust.
24836 * config/rs6000/vsx.md: Adjust.
24837 * doc/md.texi (Machine Constraints): Adjust.
24839 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24841 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24842 (define_mode_attr sd): New.
24843 (define_mode_attr s): New.
24844 (define_mode_attr Ftrad): Delete.
24845 (define_mode_attr Fvsx): Delete.
24846 (define_mode_attr Fs): Delete.
24847 (rest of file): Use the new mode attributes.
24848 * config.rs6000/vsx.md: Use the new mode attributes.
24850 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24852 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24855 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24857 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24858 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24859 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24861 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24864 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24865 C++ with strict ANSI requirements.
24867 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24869 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24870 computations when step is 1.
24872 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24874 * config/rs6000/constraints.md (define_register_constraint "wf"):
24876 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24877 (rs6000_init_hard_regno_mode_ok): Adjust.
24878 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24879 RS6000_CONSTRAINT_wf.
24880 * config/rs6000/rs6000.md: Adjust.
24881 * config/rs6000/vsx.md: Adjust.
24882 * doc/md.texi (Machine Constraints): Adjust.
24884 2019-06-04 Andrew Pinski <apinski@marvell.com>
24886 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24889 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24891 * config/rs6000/constraints.md (define_register_constraint "wd"):
24893 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24894 (rs6000_init_hard_regno_mode_ok): Adjust.
24895 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24896 RS6000_CONSTRAINT_wd.
24897 * config/rs6000/rs6000.md: Adjust.
24898 * config/rs6000/vsx.md: Adjust.
24899 * doc/md.texi (Machine Constraints): Adjust.
24901 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24903 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24904 (rest of file): Adjust.
24906 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24908 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24909 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24910 (vsx_splat_<mode>_reg): Adjust.
24912 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24914 * config/rs6000/constraints.md (define_register_constraint "ws"):
24916 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24917 (rs6000_init_hard_regno_mode_ok): Adjust.
24918 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24919 RS6000_CONSTRAINT_ws.
24920 * config/rs6000/rs6000.md: Adjust.
24921 * config/rs6000/vsx.md: Adjust.
24922 * doc/md.texi (Machine Constraints): Adjust.
24924 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24926 * config/rs6000/constraints.md (define_register_constraint "wv"):
24928 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24929 (rs6000_init_hard_regno_mode_ok): Adjust.
24930 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24931 RS6000_CONSTRAINT_wv.
24932 * config/rs6000/rs6000.md: Adjust.
24933 * config/rs6000/vsx.md: Adjust.
24934 * doc/md.texi (Machine Constraints): Adjust.
24936 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24938 * config/rs6000/constraints.md (define_register_constraint "wi"):
24940 (define_register_constraint "wt"): Delete.
24941 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24942 (rs6000_init_hard_regno_mode_ok): Adjust.
24943 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24944 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
24945 * config/rs6000/rs6000.md: Adjust.
24946 * config/rs6000/vsx.md: Adjust.
24947 * doc/md.texi (Machine Constraints): Adjust.
24949 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
24951 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
24953 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
24954 default_elf_asm_output_external.
24956 2019-06-04 Martin Liska <mliska@suse.cz>
24958 * ipa-icf.c (INCLUDE_LIST): Remove.
24959 (sem_item_optimizer::execute): Remove call to init_wpa.
24960 * ipa-icf.h (init_wpa): Remove.
24962 2019-06-04 Jakub Jelinek <jakub@redhat.com>
24964 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
24965 conditional on combined for simd.
24966 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
24968 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
24969 constructs, don't remove lastprivate_conditional_map, but instead set
24970 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
24971 to parent construct temporaries.
24972 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
24973 like !ctx->lastprivate_conditional_map.
24974 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
24975 use up->outer context instead of up.
24976 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
24977 gimple_omp_for_combined_p.
24978 (expand_omp_for_static_nochunk): Likewise.
24979 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
24980 probably moved over into expand_omp_for_generic rather than being copied
24983 2019-06-04 Martin Liska <mliska@suse.cz>
24985 * value-prof.c (dump_histogram_value): Fix typo.
24986 (gimple_mod_subtract_transform): Likewise.
24988 2019-06-04 Richard Biener <rguenther@suse.de>
24990 PR middle-end/90726
24991 * tree-chrec.c (chrec_contains_symbols): Add to visited.
24992 (tree_contains_chrecs): Likewise.
24993 (chrec_contains_symbols_defined_in_loop): Move here and avoid
24994 exponential behaivor from ...
24995 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
24997 (expression_expensive_p): Avoid exponential behavior and compute
24998 expanded size, rejecting any expansion.
24999 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25000 (idx_contains_abnormal_ssa_name_p): Likewise.
25001 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25002 (contains_abnormal_ssa_name_p): Simplify and use
25003 walk_tree_without_duplicates.
25005 2019-06-04 Richard Biener <rguenther@suse.de>
25007 PR tree-optimization/90738
25009 2019-06-03 Richard Biener <rguenther@suse.de>
25011 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25012 full reference tree and record in ref->ref.
25013 (vn_reference_lookup_3): Pass in original ref to
25014 ao_ref_init_from_vn_reference.
25015 (vn_reference_lookup): Likewise.
25016 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25017 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25018 Handle non-decl bases in the original reference.
25020 2019-06-04 Martin Liska <mliska@suse.cz>
25022 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25023 number of references.
25024 (sem_item_optimizer::do_congruence_step):
25025 (sem_item_optimizer::worklist_push): Dump how references
25027 (sem_item_optimizer::worklist_pop): Use heap.
25028 (sem_item_optimizer::process_cong_reduction): Likewise.
25029 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25031 2019-06-04 Martin Liska <mliska@suse.cz>
25033 * ipa-icf.h (struct sem_usage_pair_hash): New.
25034 (sem_usage_pair_hash::hash): Likewise.
25035 (sem_usage_pair_hash::equal): Likewise.
25036 (struct sem_usage_hash): Likewise.
25037 * ipa-icf.c (sem_item::sem_item): Initialize
25038 referenced_by_count.
25039 (sem_item::add_reference): Register a reference
25040 in ref_map and not in target->usages.
25041 (sem_item::setup): Remove initialization of
25043 (sem_item::~sem_item): Remove usage of dead vectors.
25044 (sem_item::dump): Remove dump of references.
25045 (sem_item_optimizer::sem_item_optimizer): Initialize
25047 (sem_item_optimizer::read_section): Remove useless
25049 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25050 (sem_item_optimizer::build_graph): Pass m_references
25051 to ::add_reference.
25052 (sem_item_optimizer::verify_classes): Remove usage of dead
25054 (sem_item_optimizer::traverse_congruence_split): Return true
25055 when a class is split.
25056 (sem_item_optimizer::do_congruence_step_for_index): Use
25057 hash_map for look up of (sem_item *, index). That brings
25058 significant speed up.
25059 (sem_item_optimizer::do_congruence_step): Return true
25060 when a split is done.
25061 (congruence_class::is_class_used): Use referenced_by_count.
25063 2019-06-04 Alan Modra <amodra@gmail.com>
25066 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25069 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25071 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25072 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25073 (rs6000_secondary_reload_simple_move): Adjust.
25074 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25075 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25076 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25079 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25080 (floatunssi<mode>2_lfiwzx): Adjust.
25081 (fix_trunc<mode>si2_stfiwx): Adjust.
25082 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25083 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25084 (mfpgpr): Mark as deprecated.
25085 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25086 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25087 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25089 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25091 * config/rs6000/constraints.md (define_register_constraint "wg"):
25093 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25094 RS6000_CONSTRAINT_wg.
25095 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25096 (rs6000_init_hard_regno_mode_ok): Adjust.
25097 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25098 Delete "wg" alternatives.
25099 * doc/md.texi (Machine Constraints): Adjust.
25101 2019-06-03 Alan Modra <amodra@gmail.com>
25103 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25104 (get_uncond_jump_length): Assert length less than INT_MAX and
25107 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25109 PR middle-end/64242
25110 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25112 (expand_builtin_nonlocal_goto): Likewise.
25114 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25116 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25117 (aarch64_asm_output_external): Declare.
25118 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25119 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25120 (aarch64_asm_output_alias): New.
25121 (aarch64_asm_output_external): New.
25122 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25123 (ASM_OUTPUT_EXTERNAL): Define.
25125 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25126 * tree-vrp.h (value_range_base::nonzero_p): New.
25127 (value_range_base::set_nonnull): Rename to...
25128 (value_range_base::set_nonzero): ...this.
25129 (value_range_base::set_null): Rename to...
25130 (value_range_base::set_zero): ...this.
25131 (value_range::set_nonnull): Remove.
25132 (value_range::set_null): Remove.
25133 * tree-vrp.c (range_is_null): Remove.
25134 (range_is_nonnull): Remove.
25135 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25136 instead of range_is_*null.
25137 (extract_range_from_unary_expr): Same.
25138 (value_range_base::set_nonnull): Rename to...
25139 (value_range_base::set_nonzero): ...this.
25140 (value_range::set_nonnull): Remove.
25141 (value_range_base::set_null): Rename to...
25142 (value_range_base::set_zero): ...this.
25143 (value_range::set_null): Remove.
25144 (extract_range_from_binary_expr): Rename set_*null uses to
25146 (extract_range_from_unary_expr): Same.
25147 (union_helper): Same.
25148 * vr-values.c (get_value_range): Use set_*zero instead of
25150 (vr_values::extract_range_from_binary_expr): Same.
25151 (vr_values::extract_range_basic): Same.
25153 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25156 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25158 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25160 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25161 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25163 (aarch64_<su>abd<mode>_3): ... This.
25164 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25166 2019-06-03 Richard Biener <rguenther@suse.de>
25168 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25169 full reference tree and record in ref->ref.
25170 (vn_reference_lookup_3): Pass in original ref to
25171 ao_ref_init_from_vn_reference.
25172 (vn_reference_lookup): Likewise.
25173 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25174 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25175 Handle non-decl bases in the original reference.
25177 2019-06-03 Martin Liska <mliska@suse.cz>
25179 * doc/generic.texi: Remove Java Trees.
25181 2019-06-03 Martin Liska <mliska@suse.cz>
25183 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25184 returns 0 when operands are equal.
25186 2019-06-03 Richard Biener <rguenther@suse.de>
25188 PR tree-optimization/90716
25189 * tree-loop-distribution.c (destroy_loop): Process blocks in
25192 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25195 * vector-builder.h (vector_builder::count_dups): New method.
25196 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25198 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25199 (vec_init<mode><Vel>): New pattern.
25200 * config/aarch64/aarch64.c (emit_insr): New function.
25201 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25202 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25203 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25204 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25206 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25208 PR tree-optimization/90681
25209 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25210 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25211 special case for SLP, but fail on non-groupped loads.
25213 2019-06-03 Martin Liska <mliska@suse.cz>
25215 * cfg.c (debug): Use TDF_DETAILS for debug and
25216 print edge info only once.
25218 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25221 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25223 2019-06-01 Martin Sebor <msebor@redhat.com>
25225 PR middle-end/90694
25226 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25228 2019-05-31 Jan Hubicka <jh@suse.cz>
25230 * alias.c: Include ipa-utils.h.
25231 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25232 * ipa-devirt.c (prevailing_odr_type): New.
25233 * ipa-utils.h (previaling_odr_type): Declare.
25235 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25236 Hongtao Liu <hongtao.liu@intel.com>
25239 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25240 NOTE_INSN_DELETED_LABEL check.
25242 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25243 Robert Suchanek <robert.suchanek@mips.com>
25245 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25246 and 3rd operands of the fmadd/fmsub/maddv builtin.
25248 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25250 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25251 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25252 on OMP_SIMD if not nested inside of worksharing loop that also has
25253 lastprivate conditional clause for the same decl.
25254 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25255 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25257 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25259 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25261 (lower_lastprivate_clauses): Likewise.
25262 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25263 calling lower_rec_input_clauses.
25264 (lower_omp_for): Likewise.
25265 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25266 clause on simd construct.
25267 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25268 OMP_CLAUSE__CONDTEMP_ clause is present.
25270 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25273 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25276 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25277 TEX_D32, TEX_D64 or TEX_D128.
25279 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25281 * match.pd (~(vec?cst1:cst2)): New transformation.
25283 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25285 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25286 ((size_t)(A /[ex] B) CMP C): New transformation.
25288 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25290 * doc/md.texi: Document define_insn_and_rewrite.
25291 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25292 * gensupport.c (queue_elem): Update comment.
25293 (replace_operands_with_dups): New function.
25294 (gen_rewrite_sequence): Likewise.
25295 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25296 * read-rtl.c (apply_subst_iterator): Likewise.
25297 (add_condition_to_rtx, named_rtx_p): Likewise.
25298 (rtx_reader::read_rtx_operand): Likewise.
25299 * config/aarch64/aarch64-sve.md
25300 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25301 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25302 define_insn_and_rewrite.
25303 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25304 Remove separate define_split.
25306 2019-05-31 Jan Hubicka <jh@suse.cz>
25308 * tree-ssa-alias.c (type_has_components_p): New function.
25309 (aliasing_component_refs_p): Use it.
25311 2019-05-31 Martin Liska <mliska@suse.cz>
25313 * gdbhooks.py: Add const_tree to TreePrinter.
25315 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25318 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25319 * doc/invoke.texi (Debugging Options): Document new default of
25320 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25322 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25324 PR tree-optimization/90671
25325 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25326 template_block used to be empty on the first call, don't use
25327 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25328 seq with bb_seq and set it with set_bb_seq.
25330 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25332 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25334 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25335 Michael Meissner <meissner@linux.ibm.com>
25337 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25338 (prefixed_mem_operand): Likewise.
25339 (non_prefixed_mem_operand): Likewise.
25340 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25342 * config/rs6000/rs6000.c (print_operand_address): Handle
25343 PC-relative addresses.
25344 (mode_supports_prefixed_address_p): New function.
25345 (rs6000_prefixed_address): New function.
25346 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25347 (SYMBOL_REF_PCREL_P): Likewise.
25349 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25351 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25352 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25353 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25354 is nested inside of parallel region, add _condtemp_ clause to both.
25355 * tree-nested.c (convert_nonlocal_omp_clauses,
25356 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25358 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25360 * omp-general.c (omp_extract_for_data): Compute it.
25361 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25362 (lower_rec_input_clauses): Likewise.
25363 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25364 clause is already present, just add one further one after it.
25365 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25366 (lower_send_shared_vars): Clear _condtemp_ vars.
25367 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25368 or section or taskgroup.
25369 * omp-expand.c (determine_parallel_type): Disallow combining only if
25370 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25371 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25372 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25373 expand_omp_for_static_chunk, expand_omp_for): Use
25374 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25375 determine if a special set of API routines are needed and if condtemp
25376 needs to be initialized, while always initialize cond_var if
25377 fd->lastprivate_conditional is non-zero.
25379 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25380 Michael Meissner <meissner@linux.ibm.com>
25382 * config/rs6000/constraints.md (eI): New constraint.
25383 * config/rs6000/predicates.md (cint34_operand): New predicate.
25384 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25385 (SIGNED_34BIT_OFFSET_P): Likewise.
25386 * doc/md.texi (eI): Document constraint.
25388 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25390 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25392 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25393 Michael Meissner <meissner@linux.ibm.com>
25395 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25396 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25397 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25398 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25399 (OTHER_FUTURE_MASKS): Likewise.
25400 (POWERPC_MASKS): Likewise.
25401 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25402 specified without -mprefixed-addr or -mcpu=future. Error if
25403 -mprefixed-addr is specified without -mcpu=future.
25404 (rs6000_opt_masks): Add entry for prefixed-addr.
25405 * rs6000.opt (mprefixed-addr): New option.
25407 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25409 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25410 cfun->is_thunk check.
25412 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25414 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25417 2019-05-30 Martin Liska <mliska@suse.cz>
25419 * gdbinit.in: Fix 'ptc' command. Add trt
25420 that prints TREE_TYPE($).
25422 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25423 Alan Modra <amodra@gmail.com>
25425 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25427 (rs6000_indirect_call_template_1): ...and here.
25428 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25429 plt16_ha, plt16_lo, mtctr indirect calls. Use
25430 rs6000_pltseq_enum.
25431 (rs6000_decl_ok_for_sibcall): New function.
25432 (rs6000_function_ok_for_sibcall): Refactor.
25433 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25434 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25435 when pcrel. Reorganize.
25436 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25437 * rs6000.h (rs6000_pltseq_enum): New enum.
25438 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25439 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25440 (*pltseq_plt16_ha): Likewise.
25441 (*pltseq_plt16_lo): Likewise.
25442 (*pltseq_mtctr): Likewise.
25443 (*pltseq_plt_pcrel): New insn.
25444 (*call_local_aix): Handle @notoc calls.
25445 (*call_value_local_aix): Likewise.
25446 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25447 (*call_value_nonlocal_aix): Likewise.
25448 (*call_indirect_pcrel): New insn.
25449 (*call_value_indirect_pcrel): Likewise.
25451 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25453 * config/i386/sse.md (*save_multiple<mode>): Rename from
25454 save_multiple<mode>.
25455 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25456 (*restore_multiple_and_return<mode>): Rename from
25457 restore_multiple_and_return<mode>.
25458 (*restore_multiple_leave_return<mode>): Rename from
25459 restore_multiple_leave_return<mode>.
25461 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25463 * config.gcc (rx-*-linux*): New target.
25464 * config/rx/elf.opt: New file.
25465 * config/rx/linux.h: Likewise.
25466 * config/rx/t-linux: Likewise.
25467 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25469 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25470 (ASM_APP_OFF): Likewise.
25471 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25474 2019-05-29 Jan Hubicka <jh@suse.cz>
25476 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25477 variants are pointer equivalent.
25479 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25481 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25482 * config/aarch64/aarch64-sve2.md: New file.
25483 (<u>avg<mode>3_floor): New pattern.
25484 (<u>avg<mode>3_ceil): Likewise.
25485 (*<sur>h<addsub><mode>): Likewise.
25486 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25487 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25489 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25492 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25493 for var_opt_string printing. In cl_optimization_print_diff, print
25494 (null) instead of invoking undefined behavior if one of the
25495 var_opt_string pointers is NULL and use && instead of first || in the
25496 guarding condition. For var_target_other options, handle const char *
25497 target variables similarly to const char * optimize node variables.
25499 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25501 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25502 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25503 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25504 Add autib1716 and pacib1716 initialisation.
25505 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25506 for autib1716 and pacib1716.
25507 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25508 aarch64_post_cfi_startproc): Define.
25509 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25510 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25511 aarch64_handle_pac_ret_protection): Set default sign key to A.
25512 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25513 aarch64_expand_prologue): Add check for b-key.
25514 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25515 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25516 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25517 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25518 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25519 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25520 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25521 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25522 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25523 pauth_hint_num_a with pauth_hint_num.
25524 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25525 pauth_hint_num_a with pauth_hint_num.
25526 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25527 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25528 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25529 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25530 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25531 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25532 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25533 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25534 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25535 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25536 UNSPEC_AUTIA1716 respectively.
25537 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25538 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25539 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25540 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25541 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25542 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25544 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25546 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25547 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25548 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25549 explicit clause on combined parallel into implicit shared clause.
25550 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25551 and firstprivate if the decl has one too from combined parallel to
25552 the worksharing construct.
25554 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25555 Michael Meissner <meissner@linux.ibm.com>
25557 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25559 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25561 * rtl.h (LABEL_REF_P): New #define.
25563 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25565 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25567 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25569 * internal-fn.c: Marked mask_load_direct as vectorizable.
25570 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25571 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25572 combined even if masks different with allow_slp_p param.
25573 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25574 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25575 dissolve SLP-only vectorizable groups when SLP has been discarded.
25576 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25577 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25579 (vect_build_slp_tree_1): Fixed comment typo.
25580 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25581 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25582 loads for SLP only.
25583 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25585 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25587 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25589 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25590 Remove obsolete use_thunk reference.
25591 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25592 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25593 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25594 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25595 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25596 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25597 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25598 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25599 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25601 2019-05-28 Nathan Sidwell <nathan@acm.org>
25603 * tree.h (IDENTIFIER_ANON_P): New.
25604 (anon_aggrname_format, anon_aggname_p): Don't declare.
25605 (make_anon_name): Declare.
25606 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25607 (hash_tree): Likewise.
25608 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25609 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25610 (anon_cnt, make_anon_name): New.
25612 2019-05-28 Martin Liska <mliska@suse.cz>
25615 * opts-global.c (decode_options): Print help for all
25616 help_option_arguments.
25617 * opts.c (print_help): Add new argument.
25618 (common_handle_option): Remember all values into
25619 help_option_arguments.
25620 * opts.h (print_help): Add new argument.
25622 2019-05-28 Martin Liska <mliska@suse.cz>
25625 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25626 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25627 (func_checker::compare_bb): Call compare_loops.
25629 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25631 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25632 on sections construct.
25633 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25635 (lower_omp_sections): Handle lastprivate conditional.
25636 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25637 lastprivate_conditional_map.
25638 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25640 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25641 critical, taskgroup and section regions when looking for a region
25642 with non-NULL lastprivate_conditional_map.
25644 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25646 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25647 (*ix86_gen_sub3): Ditto.
25648 (*ix86_gen_sub3_carry): Ditto.
25649 (*ix86_gen_one_cmpl2): Ditto.
25650 (*ix86_gen_andsp): Ditto.
25651 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25652 (gen_and2_insn): New static function.
25653 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25654 Use gen_add3_insn instead of ix86_gen_add3.
25655 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25656 instead of ix86_gen_add3.
25657 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25658 Use gen_sub3_insn instead of ix86_gen_sub3.
25659 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25660 instead of ix86_gen_add3.
25661 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25662 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25663 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25664 * config/i386/i386-options.c (ix86_option_override_internal):
25665 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25666 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25668 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25670 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25671 and DW_OP_GNU_const_index opcodes.
25673 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25675 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25677 2019-05-27 Richard Biener <rguenther@suse.de>
25679 PR tree-optimization/90637
25680 * tree-ssa-sink.c (statement_sink_location): Honor the
25681 computed sink location for single-uses.
25683 2019-05-27 Richard Biener <rguenther@suse.de>
25685 PR middle-end/90610
25686 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25689 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25691 * config/i386/i386.md (@sub<mode>3_carry): Rename
25692 from sub<mode>3_carry.
25693 (@leave_<mode>): New expander.
25694 (*leave): Rename from leave.
25695 (*leave_rex64): Rename from leave_rex64.
25696 (@monitorx_<mode>): Rename from monitorx_<mode>.
25697 (@clzero_<mode>): Rename from clzero_<mode>.
25698 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25699 from sse3_monitor_<mode>.
25700 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25701 (*ix86_gen_leave): Ditto.
25702 (*ix86_gen_monitor): Ditto.
25703 (*ix86_gen_monitorx): Ditto.
25704 (*ix86_gen_clzero): Ditto.
25705 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25706 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25707 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25708 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25709 Use gen_sse3_monitor instead of ix86_gen_monitor.
25710 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25711 instead of ix86_gen_monitorx.
25712 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25713 instead of ix86_gen_clzero.
25714 * config/i386/i386-options.c (ix86_option_override_internal):
25715 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25716 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25718 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25720 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25721 Rename from tls_global_dynamic_64_<mode>.
25722 (@tls_local_dynamic_base_64_<mode>): Rename from
25723 tls_local_dynamic_base_64_<mode>.
25724 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25725 Remove indirect function.
25726 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25727 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25728 instead of ix86_gen_tls_global_dynamic_64.
25729 Use gen_tls_local_dynamic_base_64 instead of
25730 ix86_gen_tls_local_dynamic_base_64.
25731 * config/i386/i386-options.c (ix86_option_override_internal):
25732 Do not initialize ix86_gen_tls_global_dynamic_64 and
25733 ix86_gen_tls_local_dynamic_base_64.
25735 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25737 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25738 Rename from pro_epilogue_adjust_stack_<mode>_add.
25739 (@pro_epilogue_adjust_stack_sub_<mode>)
25740 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25741 (@allocate_stack_worker_probe_<mode>):
25742 Rename from allocate_stack_worker_probe_<mode>.
25743 (allocate_stack): Use gen_allocate_stack_worker_probe.
25744 (probe_stack): Use gen_probe_stack_1.
25745 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25746 (@adjust_stack_and_probe_<mode>): Rename from
25747 adjust_stack_and_probe<mode>.
25748 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25749 (stack_protect_set): Use gen_stack_protect_set_1.
25750 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25751 (stack_protect_test): Use gen_stack_protect_test_1.
25752 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25753 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25754 Remove indirect function.
25755 (*ix86_gen_adjust_stack_and_probe): Ditto.
25756 (*ix86_gen_probe_stack_range): Ditto.
25757 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25758 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25759 (ix86_adjust_stack_and_probe_stack_clash): Use
25760 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25761 (ix86_adjust_stack_and_probe): Ditto.
25762 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25763 of ix86_gen_probe_stack_range.
25764 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25765 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25766 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25767 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25768 CODE_FOR_stack_protect_test_{si,di}.
25769 * config/i386/i386-options.c (ix86_option_override_internal):
25770 Do not initialize ix86_gen_allocate_stack_worker,
25771 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25773 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25775 * doc/invoke.texi (Link Options): Many editorial changes around
25778 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25780 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25781 pre-Solaris 11 referene and most Studio compiler details.
25783 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25786 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25787 DImode to SImode in floating-point registers on 64-bit target.
25788 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25789 register_operand in xmpyu patterns.
25791 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25793 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25794 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25795 OMP_CLAUSE__REDUCTEMP_.
25796 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25797 OMP_CLAUSE__CONDTEMP_.
25798 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25799 * tree-pretty-print.c (dump_omp_clause): Likewise.
25800 * tree-nested.c (convert_nonlocal_omp_clauses,
25801 convert_local_omp_clauses): Likewise.
25802 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25803 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25804 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25806 (gimplify_omp_for): Warn and disable conditional modifier from
25807 lastprivate on loop iterators.
25808 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25810 * omp-general.c (omp_extract_for_data): Initialize it.
25811 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25813 (delete_omp_context): Delete it.
25814 (lower_lastprivate_conditional_clauses): New function.
25815 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25816 handle lastprivate conditional clauses.
25817 (lower_reduction_clauses): Add CLIST argument, emit it into
25818 the critical section if any.
25819 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25820 lower_reduction_clauses callers.
25821 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25822 to lower_lastprivate_clauses.
25823 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25824 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25825 clist into a critical section if not emitted there already by
25826 lower_reduction_clauses.
25827 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25829 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25830 conditional variables.
25831 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25833 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25834 expand_omp_for_static_chunk): Handle lastprivate conditional.
25835 (expand_omp_for): Handle fd.lastprivate_conditional like
25838 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25840 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25841 kernel does not exit cleanly.
25842 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25844 2019-05-24 Jason Merrill <jason@redhat.com>
25847 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25849 2019-05-24 Richard Biener <rguenther@suse.de>
25852 * tree-loop-distribution.c (struct partition): Add location
25854 (partition_alloc): Initialize all fields.
25855 (generate_memset_builtin): Use the location recorded in the
25856 partition for the generated call.
25857 (generate_memcpy_builtin): Likewise.
25858 (classify_partition): Record the location of a single store
25859 as location for the partition.
25861 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25863 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25866 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25869 * common/config/aarch64/aarch64-common.c
25870 (aarch64_rewrite_selected_cpu): Change local temporary variable
25871 type from unsigned long to uint64_t.
25872 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25873 aarch64_get_extension_string_for_isa_flags): Change declaration to
25874 match new definition by replacing unsigned long with uint64_t.
25876 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25879 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25880 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25881 Handle stack_protect_test_<mode> codegen similarly to corresponding
25884 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25886 * config/i386/darwin.h: Reject -mfentry*.
25887 * doc/sourcebuild.texi: Document mfentry target support.
25889 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25891 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25892 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25893 false for PC-relative functions.
25894 (rs6000_output_function_prologue): Change called function name to
25895 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25896 name,1" for PC-relative functions.
25897 (rs6000_elf_declare_function_name): Change called function name to
25898 rs6000_global_entry_point_prologue_needed_p.
25900 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25903 * config/i386/i386.c (gen_rtx_cost):
25904 Use ix86_tune_cost instead of ix86_cost.
25906 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25907 Michael Meissner <meissner@linux.ibm.com>
25908 Segher Boessenkool <segher@kernel.crashing.org>
25910 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25912 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25913 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25914 (rs6000_fndecl_pcrel_p): Likewise.
25915 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25916 error if -mpcrel is requested without -mcpu=future.
25917 (rs6000_opt_masks): Add entry for pcrel.
25918 (rs6000_fndecl_pcrel_p): New function.
25919 (rs6000_pcrel_p): Likewise.
25920 * config/rs6000/rs6000.opt (mpcrel): New option.
25921 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25923 2019-05-23 Jan Hubicka <jh@suse.cz>
25924 Martin Liska <mliska@suse.cz>
25926 PR tree-optimization/90576
25927 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25929 (aliasing_component_refs_p): Fix three way size compare conditional;
25930 give up earlier in case we can not decide on equivalence.
25932 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25933 Michael Meissner <meissner@linux.ibm.com>
25934 Segher Boessenkool <segher@kernel.crashing.org>
25936 * config.gcc: Add future cpu.
25937 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25938 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25940 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25941 (RS6000_CPU): New instantiation for future cpu.
25942 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25944 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
25945 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
25946 * config/rs6000/rs6000-tables.opt: Regenerate.
25947 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
25948 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
25949 (rs6000_machine_from_flags): Handle future cpu.
25950 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
25951 PROCESSOR_POWER9 for now.
25952 (rs6000_adjust_cost): Likewise.
25953 (rs6000_issue_rate): Likewise.
25954 (rs6000_register_move_cost): Likewise.
25955 (rs6000_opt_masks): Add entry for future.
25956 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
25957 (MASK_FUTURE): New #define.
25958 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
25959 * config/rs6000/rs6000.opt (mfuture): New target option.
25960 * doc/invoke.texi (mcpu): Add future cpu.
25962 2019-05-23 Martin Liska <mliska@suse.cz>
25965 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
25966 operation points to a temporary (pointed via tree_to_wide_ref)
25967 that is out of scope after the &.
25969 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
25972 * doc/extend.texi (Function Names): Add missing word.
25974 2019-05-23 Richard Biener <rguenther@suse.de>
25976 PR tree-optimization/88440
25977 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
25979 * tree-loop-distribution.c (generate_memset_builtin): Fold the
25981 (generate_memcpy_builtin): Likewise.
25982 (distribute_loop): Pass in whether to only distribute patterns.
25983 (prepare_perfect_loop_nest): Also allow size optimization.
25984 (pass_loop_distribution::execute): When optimizing a loop
25985 nest for size allow pattern replacement.
25987 2019-05-23 Jakub Jelinek <jakub@redhat.com>
25990 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
25993 2019-05-23 Martin Liska <mliska@suse.cz>
25996 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
25997 expression similarly to gimplify_decl_expr.
25999 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26001 * cse.c (cse_dump_path): s/dump_file/f.
26003 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26006 * diagnostic-format-json.cc: Include "selftest.h".
26007 (json_from_expanded_location): Only add "file" key for non-NULL
26009 (json_from_location_range): Don't add "start" and "finish"
26010 children if they are UNKNOWN_LOCATION.
26011 (selftest::test_unknown_location): New selftest.
26012 (selftest::test_bad_endpoints): New selftest.
26013 (selftest::diagnostic_format_json_cc_tests): New function.
26014 * json.cc (json::object::get): New function.
26015 (selftest::test_object_get): New selftest.
26016 (selftest::json_cc_tests): Call it.
26017 * json.h (json::object::get): New decl.
26018 * selftest-run-tests.c (selftest::run_tests): Call
26019 selftest::diagnostic_format_json_cc_tests.
26020 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26023 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26024 Andrew Stubbs <amd@codesourcery.com>
26026 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26027 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26028 (kernel): Rename to...
26029 (main_kernel): ... this.
26030 (load_image): Load _init_array and _fini_array kernels.
26031 (run): Add argument for kernel to run.
26032 (main): Run init_array_kernel before main_kernel, and
26033 fini_array_kernel after.
26034 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26035 amdgpu_hsa_kernel attribute on functions.
26036 (gcn_disable_constructors): Delete.
26037 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26038 * config/gcn/crt0.c (size_t): Define.
26039 (_init_array, _fini_array): New.
26040 (__preinit_array_start, __preinit_array_end,
26041 __init_array_start, __init_array_end,
26042 __fini_array_start, __fini_array_end): Declare weak references.
26044 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26046 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26048 2019-05-22 Jason Merrill <jason@redhat.com>
26050 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26052 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26055 * config/i386/i386-options.c (ix86_init_machine_status): Set
26056 stack_frame_required to true.
26057 * config/i386/i386.c (ix86_get_frame_size): New function.
26058 (ix86_frame_pointer_required): Replace get_frame_size with
26059 ix86_get_frame_size.
26060 (ix86_compute_frame_layout): Likewise.
26061 (ix86_find_max_used_stack_alignment): Changed to void. Set
26062 stack_frame_required.
26063 (ix86_finalize_stack_frame_flags): Always call
26064 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26065 ix86_get_frame_size.
26066 * config/i386/i386.h (machine_function): Add stack_frame_required.
26068 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26070 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26072 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26074 * common/config/aarch64/aarch64-common.c
26075 (struct aarch64_option_extension, struct processor_name_to_arch,
26076 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26077 aarch64_contains_opt,
26078 aarch64_get_extension_string_for_isa_flags): Change type of
26079 variables storing flags to uint64_t.
26080 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26081 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26082 * config/aarch64/aarch64.c (struct processor,
26083 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26084 aarch64_validate_march, aarch64_override_options,
26085 aarch64_option_print, aarch64_handle_attr_isa_flags,
26086 aarch64_declare_function_name, aarch64_start_file): Make flag
26087 variables uint64_t.
26088 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26089 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26090 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26091 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26092 * config/aarch64/driver-aarch64.c
26093 (struct aarch64_arch_extension, struct aarch64_core_data,
26094 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26095 flag variables uint64_t.
26096 * doc/invoke.texi: Add documentation for new arguments.
26098 2019-05-22 Richard Biener <rguenther@suse.de>
26100 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26102 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26104 2019-05-22 Martin Liska <mliska@suse.cz>
26107 * doc/extend.texi: Document the change.
26109 2019-05-22 Richard Biener <rguenther@suse.de>
26111 PR tree-optimization/90450
26112 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26113 (mem_ref_hasher::equal): Check it.
26114 (mem_ref_alloc): Initialize it.
26115 (gather_mem_refs_stmt): Set it.
26117 2019-05-22 Richard Biener <rguenther@suse.de>
26119 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26121 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26124 2019-05-22 Alan Modra <amodra@gmail.com>
26126 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26127 (ASM_CPU_SPEC): Conditionally add -many.
26128 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26129 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26130 (rs6000_file_start): ..extracted from here, and modified to
26132 (rs6000_output_function_prologue): Emit .machine as necessary.
26134 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26136 PR middle-end/90553
26137 * ira-lives.c (process_bb_node_lives): Consider defs
26138 for a call insn to be die before the call, not after.
26140 * function.c (assign_parm_setup_block): Raise alignment of
26141 stacked parameter only for STRICT_ALIGNMENT targets.
26143 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26145 * config/rs6000/constraints.md (define_register_constraint "wz"):
26147 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26148 RS6000_CONSTRAINT_wz.
26149 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26150 (rs6000_init_hard_regno_mode_ok): Adjust.
26151 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26152 * doc/md.texi (Machine Constraints): Adjust.
26154 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26156 * config/rs6000/constraints.md (define_register_constraint "wl"):
26158 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26159 RS6000_CONSTRAINT_wl.
26160 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26161 (rs6000_init_hard_regno_mode_ok): Adjust.
26162 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26163 * doc/md.texi (Machine Constraints): Adjust.
26165 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26167 * config/rs6000/constraints.md (define_register_constraint "wm"):
26169 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26170 RS6000_CONSTRAINT_wm.
26171 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26172 (rs6000_init_hard_regno_mode_ok): Adjust.
26173 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26174 * doc/md.texi (Machine Constraints): Adjust.
26176 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26178 * config/rs6000/constraints.md (define_register_constraint "wk"):
26180 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26181 RS6000_CONSTRAINT_wk.
26182 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26183 (rs6000_init_hard_regno_mode_ok): Adjust.
26184 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26185 * doc/md.texi (Machine Constraints): Adjust.
26187 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26189 * config/rs6000/constraints.md (define_register_constraint "wj"):
26191 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26192 RS6000_CONSTRAINT_wj.
26193 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26194 (rs6000_init_hard_regno_mode_ok): Adjust.
26195 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26197 * config/rs6000/vsx.md: Ditto.
26198 * doc/md.texi (Machine Constraints): Adjust.
26200 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26202 * config/rs6000/constraints.md (define_register_constraint "wh"):
26204 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26205 RS6000_CONSTRAINT_wh.
26206 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26207 (rs6000_init_hard_regno_mode_ok): Adjust.
26208 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26209 * doc/md.texi (Machine Constraints): Adjust.
26211 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26214 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26215 Avoid calling gen_lowpart with CONST operand.
26217 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26219 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26220 field template_last_to_copy.
26221 (ssa_create_duplicates): Set it, and use it. Attempt to
26222 preserve more debug stmts.
26224 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26226 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26227 (signbit<mode>2): New expander
26229 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26232 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26233 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26235 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26237 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26238 %ebx and %ecx bafore calling cpuid with leaf 1 or
26239 non-constant leaf argument.
26241 2019-05-21 Alan Modra <amodra@gmail.com>
26244 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26245 power9 direct move cost.
26247 2019-05-21 Richard Biener <rguenther@suse.de>
26249 PR middle-end/90510
26250 * fold-const.c (fold_read_from_vector): New function.
26251 * fold-const.h (fold_read_from_vector): Declare.
26252 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26253 single-element insert permutations. Canonicalize selector
26254 further and fix issue with last commit.
26256 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26258 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26259 parameter with default value false to declaration.
26260 (split_edges_for_insertion): New inline function. Wrapper for
26261 split_critical_edges with for_edge_insertion_p = true.
26262 * tree-cfg.c (split_critical_edges): Don't split non-critical
26263 edges if for_edge_insertion_p is false. Fix whitespace.
26264 * tree-ssa-pre.c (pass_pre::execute): Call
26265 split_edges_for_insertion instead of split_critical_edges.
26266 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26267 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26268 (pass_data_sink_code): Update function name in the comment.
26270 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26272 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26273 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26274 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26275 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26278 2019-05-21 Martin Liska <mliska@suse.cz>
26280 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26282 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26283 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26285 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26287 (rs6000_function_arg): Likewise.
26288 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26289 (rs6000_expand_ternop_builtin): Use interval syntax.
26290 (get_element_number): Likewise.
26291 (altivec_expand_builtin): Likewise.
26292 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26294 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26298 * function.h (struct function): Add calls_eh_return member.
26299 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26300 gimplifying __builtin_eh_return call.
26301 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26303 (expand_call_inline): Or in src_cfun->calls_eh_return into
26304 dst_cfun->calls_eh_return.
26305 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26306 cfun->calls_eh_return.
26307 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26308 * lto-streamer-out.c (output_struct_function_base): Write
26311 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26313 PR rtl-optimization/43147
26314 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26315 IX86_BUILTIN_SHUFPD.
26317 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26319 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26320 (refs_may_alias_p_1): ... here; update stats.
26321 (refs_may_alias_p): Do not update stats here.
26323 2019-05-20 Richard Biener <rguenther@suse.de>
26325 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26326 doesn't produce pointers.
26327 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26328 the first operand points to.
26330 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26332 * tree-ssa-alias.c (compare_sizes): New function.
26333 (sompare_type_sizes): New function
26334 (aliasing_component_refs_p): Use it.
26335 (indirect_ref_may_alias_decl_p): Likewise.
26337 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26339 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26341 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26343 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26344 (LIBLSAN_EARLY_SPEC): Likewise.
26345 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26347 2019-05-20 Martin Liska <mliska@suse.cz>
26349 * config/i386/i386.c (ix86_libc_has_fast_function):
26350 Add ATTRIBUTE_UNUSED for the argument.
26352 2019-05-20 Richard Biener <rguenther@suse.de>
26354 * gimple-match-head.c: Include vec-perm-indices.h.
26355 * generic-match-head.c: Likewise.
26356 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26358 * fold-const.c (fold_vec_perm): Export.
26359 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26360 (match.pd): ...here.
26362 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26364 * cfgloop.h (struct loop): Add simdlen member.
26365 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26366 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26367 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26368 as new argument to autovectorize_vector_sizes target hook. If
26369 loop->simdlen, pick up vector size where the vectorization factor
26370 is equal to loop->simd, and if there is none, fall back to the first
26372 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26374 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26375 * omp-general.c (omp_max_vf): Likewise.
26376 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26377 * tree-vect-slp.c (vect_slp_bb): Likewise.
26378 * target.def (autovectorize_vector_sizes): Add ALL argument and
26380 * doc/tm.texi: Adjust documentation.
26381 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26382 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26383 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26385 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26386 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26387 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26388 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26389 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26390 preferred vector size is not 512-bit or 256-bit, just put those
26391 unpreferred ones last.
26393 2019-05-20 Martin Liska <mliska@suse.cz>
26395 * targhooks.c (default_libc_has_fast_function): New function.
26396 * targhooks.h (default_libc_has_fast_function): Likewise.
26398 2019-05-20 Martin Liska <mliska@suse.cz>
26400 PR middle-end/90263
26401 * builtins.c (expand_builtin_memory_copy_args): When having a
26402 target with fast mempcpy implementation do now use memcpy.
26403 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26404 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26405 * doc/tm.texi: Likewise.
26406 * doc/tm.texi.in: Likewise.
26408 * expr.c (emit_block_move_hints): Add 2 new arguments.
26409 * expr.h (emit_block_move_hints): Bail out when libcall
26410 to memcpy would be used.
26412 2019-05-20 Martin Liska <mliska@suse.cz>
26414 * profile-count.c: Add vertical spacing in order
26415 to separate functions.
26416 * profile-count.h: Likewise.
26418 2019-05-20 Martin Liska <mliska@suse.cz>
26420 * profile-count.h: Do not use full qualified
26422 * profile-count.c (profile_count::to_frequency): Likewise.
26424 2019-05-20 Martin Liska <mliska@suse.cz>
26426 * profile-count.h (enum profile_quality): Use capital letters
26427 for enum value names. Use the adjusted names.
26428 * profile-count.c: Use the adjusted names.
26430 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26432 * config/rs6000/constraints.md (define_register_constraint "wH"):
26434 (define_register_constraint "wI"): Delete.
26435 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26436 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26437 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26438 (rs6000_init_hard_regno_mode_ok): Adjust.
26439 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26440 resp. "d", or with "wa" as appropriate, all with "p8v".
26441 * config/rs6000/vsx.md: Ditto.
26442 * doc/md.texi (Machine Constraints): Adjust.
26444 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26446 * config/rs6000/constraints.md (define_register_constraint "wy"):
26448 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26449 RS6000_CONSTRAINT_wy.
26450 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26451 (rs6000_init_hard_regno_mode_ok): Adjust.
26452 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26453 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26454 (define_mode_attr Fisa): New.
26455 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26456 * doc/md.texi (Machine Constraints): Adjust.
26458 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26460 * config/rs6000/constraints.md (define_register_constraint "wu"):
26462 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26463 RS6000_CONSTRAINT_wu.
26464 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26465 (rs6000_init_hard_regno_mode_ok): Adjust.
26466 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26468 (define_mode_attr Fa): Delete.
26469 * config/rs6000/vsx.md: Ditto.
26470 * doc/md.texi (Machine Constraints): Adjust.
26472 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26474 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26476 (define_register_constraint "wK"): Delete.
26477 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26478 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26479 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26480 (rs6000_init_hard_regno_mode_ok): Adjust.
26481 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26482 Replace "wK" constraint by "wH" with "p9v".
26483 * config/rs6000/vsx.md: Ditto.
26484 * doc/md.texi (Machine Constraints): Adjust.
26486 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26488 * config/rs6000/constraints.md (define_register_constraint "wb"):
26490 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26491 RS6000_CONSTRAINT_wb.
26492 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26493 (rs6000_init_hard_regno_mode_ok): Adjust.
26494 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26495 * config/rs6000/vsx.md: Ditto.
26496 * doc/md.texi (Machine Constraints): Adjust.
26498 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26500 * config/rs6000/constraints.md (define_register_constraint "wo"):
26502 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26503 RS6000_CONSTRAINT_wo.
26504 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26505 (rs6000_init_hard_regno_mode_ok): Adjust.
26506 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26507 * config/rs6000/altivec.md: Ditto.
26508 * doc/md.texi (Machine Constraints): Adjust.
26510 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26512 * config/darwin-c.c (darwin_register_objc_includes): Do not
26513 prepend the sysroot when building gnu-runtime header search
26516 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26518 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26519 instead of direct output of the asm.
26521 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26523 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26524 argument to be type bool (was int before).
26525 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26526 at first use. Use type bool for some variables. Fix a theoretical
26527 eh_return bug for svr4.
26529 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26531 * config/rs6000/rs6000.md (isa): New attribute.
26532 (enabled): New attribute.
26534 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26536 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26537 assemble_start_function and assemble_end_function.
26539 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26541 PR middle-end/89433
26542 * omp-general.c (oacc_verify_routine_clauses): Change formal
26543 parameters. Add checking if already marked with an OpenACC
26544 'routine' directive. Adjust all users.
26546 PR middle-end/89433
26547 * omp-general.c (oacc_build_routine_dims): Move some of its
26549 (oacc_verify_routine_clauses): ... this new function.
26550 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26552 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26554 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26555 formating of picbase labels to match other ports.
26557 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26559 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26560 in the generated code.
26562 2019-05-16 Martin Sebor <msebor@redhat.com>
26564 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26565 identifiers, keywords, operators, and types in diagnostics. Correct
26566 quoting, spelling, and sentence capitalization issues.
26567 (expand_builtin_atomic_is_lock_free): Same.
26568 (fold_builtin_next_arg): Same.
26569 * cfgexpand.c (expand_one_var): Same.
26570 (tree_conflicts_with_clobbers_p): Same.
26571 (expand_asm_stmt): Same.
26572 (verify_loop_structure): Same.
26573 * cgraphunit.c (process_function_and_variable_attributes): Same.
26574 * collect-utils.c (collect_execute): Same.
26575 * collect2.c (maybe_run_lto_and_relink): Same.
26576 (is_lto_object_file): Same.
26577 (scan_prog_file): Same.
26578 * convert.c (convert_to_real_1): Same.
26579 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26580 * except.c (verify_eh_tree): Same.
26581 * gcc.c (execute): Same.
26582 (eval_spec_function): Same.
26583 (run_attempt): Same.
26584 (driver::set_up_specs): Same.
26585 (compare_debug_auxbase_opt_spec_function): Same.
26586 * gcov-tool.c (unlink_gcda_file): Same.
26588 (do_rewrite): Same.
26589 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26590 * gimplify.c (gimplify_asm_expr): Same.
26591 (gimplify_adjust_omp_clauses): Same.
26592 * hsa-gen.c (gen_hsa_addr_insns): Same.
26593 (gen_hsa_insns_for_load): Same.
26594 (gen_hsa_cmp_insn_from_gimple): Same.
26595 (gen_hsa_insns_for_operation_assignment): Same.
26596 (gen_get_level): Same.
26597 (gen_hsa_alloca): Same.
26598 (omp_simple_builtin::generate): Same.
26599 (gen_hsa_atomic_for_builtin): Same.
26600 (gen_hsa_insns_for_call): Same.
26601 * input.c (dump_location_info): Same.
26602 * ipa-devirt.c (compare_virtual_tables): Same.
26603 * ira.c (ira_setup_eliminable_regset): Same.
26604 * lra-assigns.c (lra_assign): Same.
26605 * lra-constraints.c (lra_constraints): Same.
26606 * lto-streamer-in.c (lto_input_mode_table): Same.
26607 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26608 (merge_and_complain): Same.
26609 (compile_offload_image): Same.
26610 (compile_images_for_offload_targets): Same.
26611 (debug_objcopy): Same.
26614 * opts.c (print_specific_help): Same.
26615 (parse_no_sanitize_attribute): Same.
26616 (print_help): Same.
26617 (handle_param): Same.
26618 * plugin.c (add_new_plugin): Same.
26619 (parse_plugin_arg_opt): Same.
26620 (try_init_one_plugin): Same.
26621 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26622 operators, and types in diagnostics. Correct quoting and spelling
26624 * read-rtl-function.c (parse_edge_flag_token): Same.
26625 (function_reader::parse_enum_value): Same.
26626 * reg-stack.c (check_asm_stack_operands): Same.
26627 * regcprop.c (validate_value_data): Same.
26628 * sched-rgn.c (make_pass_sched_fusion): Same.
26629 * stmt.c (check_unique_operand_names): Same.
26630 * targhooks.c (default_target_option_pragma_parse): Same.
26631 * tlink.c (recompile_files): Same.
26632 * toplev.c (process_options): Same.
26633 (do_compile): Same.
26634 * trans-mem.c (diagnose_tm_1): Same.
26635 (ipa_tm_scan_irr_block): Same.
26636 (ipa_tm_diagnose_transaction): Same.
26637 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26638 format a tree code name in a diagnostic.
26639 (verify_types_in_gimple_min_lval): Same.
26640 (verify_types_in_gimple_reference): Same.
26641 (verify_gimple_call): Same.
26642 (verify_gimple_assign_unary): Same.
26643 (verify_gimple_assign_binary): Same.
26644 (verify_gimple_assign_ternary): Same.
26645 (verify_gimple_assign_single): Same.
26646 (verify_gimple_switch): Same.
26647 (verify_gimple_label): Same.
26648 (verify_gimple_phi): Same.
26649 (verify_gimple_in_seq): Same.
26650 (verify_eh_throw_stmt_node): Same.
26651 (collect_subblocks): Same.
26652 (gimple_verify_flow_info): Same.
26653 (do_warn_unused_result): Same.
26654 * tree-inline.c (expand_call_inline): Same.
26655 * tree-into-ssa.c (update_ssa): Same.
26656 * tree.c (tree_int_cst_elt_check_failed): Same.
26657 (tree_vec_elt_check_failed): Same.
26658 (omp_clause_operand_check_failed): Same.
26659 (verify_type_variant): Same.
26660 (verify_type): Same.
26661 * value-prof.c (verify_histograms): Same.
26662 * varasm.c (assemble_start_function): Same.
26664 2019-05-16 Martin Sebor <msebor@redhat.com>
26666 * config/i386/i386-expand.c (get_element_number): Quote keywords
26667 and other internal names in diagnostics. Adjust other diagnostic
26668 formatting issues noted by -Wformat-diag.
26669 * config/i386/i386-features.c
26670 (ix86_mangle_function_version_assembler_name): Same.
26671 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26672 * config/i386/i386.c (ix86_function_type_abi): Same.
26673 (ix86_function_ms_hook_prologue): Same.
26674 (classify_argument): Same.
26675 (ix86_expand_prologue): Same.
26676 (ix86_md_asm_adjust): Same.
26677 (ix86_memmodel_check): Same.
26679 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26681 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26682 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26685 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26688 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26689 intrinsics without SSE/SSE2/SSSE3.
26690 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26692 (*mmx_uavgv8qi3): Likewise.
26694 2019-05-17 Richard Biener <rguenther@suse.de>
26696 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26697 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26699 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26701 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26702 vec_sldw insn pattern.
26704 2019-05-17 Richard Biener <rguenther@suse.de>
26706 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26708 2019-05-17 Martin Liska <mliska@suse.cz>
26711 * toplev.c (output_stack_usage): With LTO and sanitizer it
26712 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26713 has no file location.
26715 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26718 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26719 sz0 is equal to sz1, instead return false in that case.
26721 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26722 has non-constant expression, force sctx.lane and use two
26723 argument IFN_GOMP_SIMD_LANE instead of single argument.
26724 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26725 two argument IFN_GOMP_SIMD_LANE without lhs.
26726 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26728 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26730 (LOOP_REQUIRES_VERSIONING): Or in
26731 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26732 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26734 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26735 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26736 from simd if clause if needed.
26738 2019-05-16 Richard Biener <rguenther@suse.de>
26740 * tree-affine.c (expr_to_aff_combination): New function split
26742 (tree_to_aff_combination): ... here.
26743 (aff_combination_expand): Avoid building a GENERIC tree.
26745 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26747 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26748 assemble_start_function and assemble_end_function calls.
26749 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26750 assemble_start_function and assemble_end_function.
26751 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26752 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26753 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26754 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26755 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26756 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26757 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26758 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26759 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26760 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26761 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26762 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26764 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26765 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26766 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26767 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26768 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26769 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26770 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26771 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26772 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26773 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26774 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26775 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26776 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26777 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26779 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26780 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26781 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26783 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26785 * tree-ssa-alias.c (alias_stats): Add
26786 aliasing_component_refs_p_may_alias and
26787 aliasing_component_refs_p_no_alias.
26788 (dump_alias_stats): Print aliasing_component_refs_p stats.
26789 (aliasing_component_refs_p): Update stats.
26791 2019-05-16 Martin Liska <mliska@suse.cz>
26794 * multiple_target.c (expand_target_clones): Do not allow
26795 target_clones being used with a symbol that is an alias.
26797 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26799 PR tree-optimization/90394
26800 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26801 positives rather than ICE for cases where (code2 == NE_EXPR
26802 && code1 == BIT_AND_EXPR).
26804 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26807 * tree-core.h (struct tree_decl_common): Document
26808 decl_nonshareable_flag for PARM_DECLs.
26809 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26810 * calls.c (expand_call): Don't try tail call if caller
26811 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26812 passed on the stack and callee needs to pass any arguments on the
26814 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26815 else if instead of series of mutually exclusive ifs. Handle
26816 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26817 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26819 * lto-streamer.h (LTO_major_version): Bump to 9.
26821 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26823 PR tree-optimization/90106
26824 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26825 new parameter as new internal function call, also move it to new
26827 (use_internal_fn): Pass internal function call to
26828 shrink_wrap_one_built_in_call_with_conds.
26830 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26832 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26834 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26835 safelen_int and set loop->dont_vectorize.
26837 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26840 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26842 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26844 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26845 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26846 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26849 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26852 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26853 define_insn_and_split to support SSE emulation.
26854 (*vec_extractv2sf_0): Likewise.
26855 (*vec_extractv2sf_1): Likewise.
26856 (*vec_extractv2si_0): Likewise.
26857 (*vec_extractv2si_1): Likewise.
26858 (*vec_extractv2si_zext_mem): Likewise.
26859 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26860 (vec_extractv2sf_1 splitter): Likewise.
26861 (vec_extractv2sfsf): Likewise.
26862 (vec_setv2si): Likewise.
26863 (vec_extractv2si_1 splitter): Likewise.
26864 (vec_extractv2sisi): Likewise.
26865 (vec_setv4hi): Likewise.
26866 (vec_extractv4hihi): Likewise.
26867 (vec_setv8qi): Likewise.
26868 (vec_extractv8qiqi): Likewise.
26869 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26870 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26871 (vec_extractv2sisi): Likewise.
26872 (vec_extractv4hihi): Likewise.
26873 (vec_extractv8qiqi): Likewise.
26874 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26875 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26876 (vec_initv2sisi): Likewise.
26877 (vec_initv4hihi): Likewise.
26878 (vec_initv8qiqi): Likewise.
26879 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26880 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26881 (vec_setv4hi): Likewise.
26882 (vec_setv8qi): Likewise.
26884 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26887 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26888 TARGET_MMX_WITH_SSE.
26889 (MMXMODE:*mov<mode>_internal): Likewise.
26890 (MMXMODE:movmisalign<mode>): Likewise.
26892 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26895 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26896 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26897 (sse2_cvtpd2pi): Ditto.
26898 (sse2_cvttpd2pi): Ditto.
26899 (*vec_concatv2sf_sse4_1): Ditto.
26900 (*vec_concatv2sf_sse): Ditto.
26901 (*vec_concatv2si_sse4_1): Ditto.
26902 (*vec_concatv2si): Ditto.
26903 (*vec_concatv4si_0): Ditto.
26904 (*vec_concatv2di_0): Ditto.
26906 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26909 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26911 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26914 * config/i386/sse.md (ssse3_palignrdi): Changed to
26915 define_insn_and_split to support SSE emulation.
26917 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26920 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26922 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26925 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26926 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26929 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26932 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26933 or TARGET_MMX_WITH_SSE.
26934 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26936 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26939 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26941 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26944 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
26945 Changed to define_insn_and_split to support SSE emulation.
26947 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26950 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
26951 Changed to define_insn_and_split to support SSE emulation.
26953 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26956 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
26957 (*mmx_<emms>): This.
26958 (mmx_<emms>): New expander.
26960 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26963 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
26965 (*sse2_umulv1siv1di3): Add SSE2 emulation.
26967 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26970 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
26972 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26975 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
26977 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26980 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
26981 TARGET_MMX_WITH_SSE.
26982 (*mmx_uavgv4hi3): Add SSE emulation.
26984 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26987 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
26988 and TARGET_MMX_WITH_SSE.
26989 (*mmx_uavgv8qi3): Add SSE emulation.
26991 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26994 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
26995 maskmovdqu for __MMX_WITH_SSE__.
26997 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27000 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27001 TARGET_MMX and TARGET_MMX_WITH_SSE.
27002 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27004 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27007 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27008 define_insn_and_split to support SSE emulation.
27010 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27013 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27014 and TARGET_MMX_WITH_SSE.
27015 (mmx_<code>v8qi3): Likewise.
27016 (smaxmin:<code>v4hi3): New.
27017 (umaxmin:<code>v8qi3): Likewise.
27018 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27019 (umaxmin:*mmx_<code>v8qi3): Likewise.
27021 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27024 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27025 TARGET_MMX_WITH_SSE.
27026 (*mmx_pinsrw): Add SSE emulation.
27028 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27031 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27033 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27036 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27037 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27040 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27043 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27044 (sse_cvttps2pi): Likewise.
27046 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27049 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27050 TARGET_MMX_WITH_SSE.
27051 (mmx_pshufw_1): Add SSE emulation.
27052 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27053 TARGET_MMX_WITH_SSE to support SSE emulation.
27055 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27058 * config/i386/constraints.md (Yw): New constraint.
27059 * config/i386/mmx.md (*vec_dupv2si): Changed to
27060 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27061 support SSE emulation.
27063 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27066 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27067 TARGET_MMX_WITH_SSE.
27068 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27070 (mmx_gt<mode>3): Likewise.
27072 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27075 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27076 TARGET_MMX_WITH_SSE. Add SSE support.
27078 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27081 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27082 TARGET_MMX_WITH_SSE.
27083 (any_logic:<code><mode>3): New.
27084 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27087 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27090 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27091 TARGET_MMX_WITH_SSE. Add SSE emulation.
27092 (mmx_<shift_insn><mode>3): Likewise.
27093 (ashr<mode>3): New.
27094 (<shift_insn><mode>3): Likewise.
27096 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27099 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27100 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27102 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27105 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27106 TARGET_MMX_WITH_SSE.
27107 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27110 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27113 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27114 TARGET_MMX_WITH_SSE.
27116 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27119 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27122 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27123 (plusminus:mmx_<plusminus_insn><mode>3): Check
27124 TARGET_MMX_WITH_SSE.
27125 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27126 (<plusminus_insn><mode>3): New.
27127 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27128 (*mmx_<plusminus_insn><mode>3): Likewise.
27130 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27133 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27134 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27136 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27137 define_insn_and_split to support SSE emulation.
27138 (mmx_punpcklbw): Likewise.
27139 (mmx_punpckhwd): Likewise.
27140 (mmx_punpcklwd): Likewise.
27141 (mmx_punpckhdq): Likewise.
27142 (mmx_punpckldq): Likewise.
27144 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27145 Uros Bizjak <ubizjak@gmail.com>
27148 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27150 (ix86_split_mmx_pack): Likewise.
27151 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27153 (ix86_split_mmx_pack): Likewise.
27154 * config/i386/i386.md (mmx_isa): New.
27155 (enabled): Also check mmx_isa.
27156 * config/i386/mmx.md (any_s_truncate): New code iterator.
27157 (s_trunsuffix): New code attr.
27158 (mmx_packsswb): Removed.
27159 (mmx_packssdw): Likewise.
27160 (mmx_packuswb): Likewise.
27161 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27162 MMX packsswb/packuswb with SSE2.
27163 (mmx_packssdw): Likewise.
27164 * config/i386/predicates.md (register_mmxmem_operand): New.
27166 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27169 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27170 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27171 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27172 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27173 (ix86_vector_mode_supported_p): Likewise.
27174 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27176 2019-05-15 Martin Liska <mliska@suse.cz>
27178 PR middle-end/90478
27179 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27180 Check for overflow.
27182 2019-05-15 Richard Biener <rguenther@suse.de>
27184 * tree-into-ssa.c (pass_build_ssa::execute): Run
27185 update_address_taken before going into SSA.
27187 2019-05-15 Richard Biener <rguenther@suse.de>
27189 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27190 as __BIT_FIELD_REF with type with -gimple.
27192 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27194 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27195 semantically equivalent branches (left over after prior refactorings).
27197 2019-05-15 Richard Biener <rguenther@suse.de>
27199 PR tree-optimization/88828
27200 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27203 2019-05-14 Richard Biener <rguenther@suse.de>
27205 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27206 as __VIEW_CONVERT with -gimple.
27208 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27211 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27214 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27216 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27217 define_split to become a define_insn_and_split.
27219 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27221 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27223 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27224 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27225 (sibcall_epilogue): Adjust.
27226 (epilogue): Adjust.
27228 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27230 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27231 to unsupported ones.
27232 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27233 * config.host: Likewise.
27234 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27235 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27236 __svr4__]: Remove "brand" fallback.
27237 [!KSTAT_DATA_STRING]: Remove.
27238 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27240 (comdat_group): Likewise.
27241 (set_have_as_tls): Likewise.
27242 (gcc_cv_target_dl_iterate_phdr): Likewise.
27243 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27244 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27245 * configure: Regenerate.
27246 * doc/install.texi: Simplify Solaris target triplets.
27247 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27248 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27249 Remove Solaris 10 references.
27250 Remove obsolete Solaris bug reference.
27251 (Specific, sparc-sun-solaris2.10): Remove.
27253 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27255 * config/i386/i386.md (any_div): New code iterator.
27256 (paired_mod): New code attribute.
27257 (sgnprefix): Handle DIV and UDIV RTXes.
27259 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27260 and udivmod<mode>4 patterns using any_div code iterator.
27261 (divmod splitters): Macroize splitters using any_div code iterator.
27262 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27263 (*udivmodsi4_pow2_zext_2): Ditto.
27264 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27265 and *udivmod<mode>4_noext patterns using any_div code iterator.
27266 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27267 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27268 patterns using any_div code iterator.
27269 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27270 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27271 patterns using any_div code iterator.
27272 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27273 udivmodhiqi3 patterns using any_extend code iterator.
27275 2019-05-14 Richard Biener <rguenther@suse.de>
27276 H.J. Lu <hongjiu.lu@intel.com>
27278 PR tree-optimization/88828
27279 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27280 permuting in a single non-constant element not extracted
27283 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27285 * internal-fn.def (SIGNBIT): New.
27286 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27288 (signbitv4sf2): Likewise.
27290 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27293 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27294 next insn when the SRC reg is dead.
27296 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27298 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27299 (alloc_cand_and_find_basis): Ditto.
27300 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27301 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27302 (create_add_imm_cand, slsr_process_cast): Ditto.
27303 (slsr_process_copy, replace_mult_candidate): Ditto.
27304 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27305 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27306 (pass_strength_reduction::execute): Init the first NULL element.
27308 2019-05-13 Nathan Sidwell <nathan@acm.org>
27310 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27311 (run_attempt): Reformat line break.
27313 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27316 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27317 data registers in sibcall epilogues.
27318 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27320 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27323 * configure.ac (--enable-frame-pointer):
27324 Disable by default for cygwin and mingw.
27325 * configure: Regenerate.
27327 2019-05-13 Nathan Sidwell <nathan@acm.org>
27329 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27331 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27332 (gen_member_die): Move abstract origin check earlier. Only VARs
27333 can be static_inline_p. Simplify splicing control flow.
27335 2019-05-13 Richard Biener <rguenther@suse.de>
27337 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27339 (vect_build_slp_tree_1): Likewise.
27341 2019-05-13 Richard Biener <rguenther@suse.de>
27343 PR tree-optimization/90402
27344 * tree-if-conv.c (tree_if_conversion): Value number only
27345 the loop body by making the latch an exit of the region
27347 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27349 (do_rpo_vn): Deal with multiple edges into the entry block
27350 that are not backedges inside the region by skipping PHIs
27351 of the entry block.
27353 2019-05-13 Richard Biener <rguenther@suse.de>
27355 PR tree-optimization/90316
27356 * tree-ssa-pre.c (insert_aux): Fold into ...
27357 (insert): ... this function. Use a RPO walk to reduce the
27358 number of required iterations.
27360 2019-05-13 Martin Liska <mliska@suse.cz>
27362 PR tree-optimization/90416
27363 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27364 string instead of passing the second part as va_arg argument.
27366 2019-05-13 Martin Liska <mliska@suse.cz>
27368 PR gcov-profile/90380
27369 * gcov.c (handle_cycle): Do not support zero cycle count,
27370 it should not be possible.
27371 (path_contains_zero_cycle_arc): New function.
27372 (circuit): Ignore zero cycle arc counts.
27374 2019-05-13 Martin Liska <mliska@suse.cz>
27376 PR gcov-profile/90380
27377 * gcov.c (enum loop_type): Remove the enum and
27379 (handle_cycle): Assert that we should not reach
27381 (circuit): Use loop_found instead of a tri-state loop_type.
27382 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27385 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27388 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27389 (ix86_output_indirect_branch_via_reg): Use output mechanism
27390 accounting for __USER_LABEL_PREFIX__.
27391 (ix86_output_indirect_branch_via_push): Likewise.
27392 (ix86_output_function_return): Likewise.
27393 (ix86_output_indirect_function_return): Likewise.
27395 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27397 * doc/md.texi: Document use of code attributes in rtx patterns.
27398 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27399 * read-rtl.c (find_code): Split out search loops into...
27400 (maybe_find_code): ...this new function.
27401 (check_code_iterator): Make the error message more informative.
27402 (check_code_attribute): New function.
27403 (rtx_reader::rtx_alloc_for_name): Likewise.
27404 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27405 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27406 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27407 <max_opp> directly as an rtx code instead of via a match_operator.
27408 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27409 (<su>abd<mode>_3): Update accordingly.
27411 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27413 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27414 is given, print the state of the EH "save world" computation for
27417 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27420 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27421 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27423 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27425 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27426 Use pinsrd for TARGET_SSE4_1.
27427 * config/i386/sse.md (movdi_to_sse): Ditto.
27429 2019-05-10 Richard Biener <rguenther@suse.de>
27431 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27432 (do_rpo_vn): Initialize next_value_id.
27434 2019-05-10 Martin Liska <mliska@suse.cz>
27436 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27439 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27441 PR tree-optimization/90385
27442 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27443 arguments of the exit phis.
27446 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27447 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27449 (copy_tree_body_r): Likewise.
27450 (copy_fn): Set id.do_not_fold to true.
27452 2019-05-10 Martin Liska <mliska@suse.cz>
27454 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27455 Reapply changes from r269790.
27457 2019-05-10 Martin Liska <mliska@suse.cz>
27459 PR middle-end/90340
27460 * doc/invoke.texi: New params.
27461 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27462 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27463 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27465 * tree-switch-conversion.h (struct jump_table_cluster):
27468 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27470 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27472 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27474 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27476 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27478 PR rtl-optimization/88879
27479 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27481 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27484 * config/arm/arm.c (callee_saved_reg_p): Move before
27485 thumb_find_work_register.
27486 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27487 thumb_find_work_register. Only call df_get_live_out once.
27488 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27489 (thumb_find_work_register): Use
27490 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27491 algorithms to locate a spare call clobbered reg.
27493 2019-05-09 Martin Liska <mliska@suse.cz>
27495 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27496 and MAX_EXPR in GIMPLE FE format.
27498 2019-05-09 Martin Liska <mliska@suse.cz>
27500 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27501 * gimple-pretty-print.c (dump_gimple_bb_header):
27503 (pp_cfg_jump): Dump edge probability.
27504 * profile-count.c (profile_quality_as_string): Simplify
27505 with a static array.
27506 (parse_profile_quality): New function.
27507 (profile_count::dump): Simplify with a static array.
27508 (profile_count::from_gcov_type): Add new argument.
27509 * profile-count.h (parse_profile_quality): Likewise.
27510 * predict.h (set_hot_bb_threshold): New.
27511 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27513 * predict.c (get_hot_bb_threshold): Set from the new param.
27514 (set_hot_bb_threshold): New.
27516 2019-05-09 Richard Biener <rguenther@suse.de>
27518 PR tree-optimization/90395
27519 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27520 rewrite vector stores that throw internally.
27522 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27524 * cif-code.def (CHKP): Remove.
27527 * configure.ac (--enable-frame-pointer): Disable by default for
27529 * configure: Regenerate.
27531 2019-05-09 Alan Modra <amodra@gmail.com>
27534 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27535 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27536 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27537 cost for general <-> vsx when direct moves are available.
27538 Cost union classes at minimal cost for any reg in the class.
27539 Correct calculation for moves between vsx, float, and altivec.
27540 Don't return a low cost for moves between special regs. Don't
27541 use hard coded register numbers.
27542 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27543 (rs6000_ira_change_pseudo_allocno_class): New function.
27544 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27545 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27547 (movsi_internal1): Don't disparage vector alternatives.
27548 (mov<mode>_internal): Likewise, excepting alternative that
27550 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27551 we <- b alternative.
27553 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27556 PR tree-optimization/89060
27557 * tree-ssa-live.h (live_vars_map): New typedef.
27558 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27559 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27560 (struct compute_live_vars_data): New type.
27561 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27562 live_vars_at_stmt, destroy_live_vars): New functions.
27563 * tree-tailcall.c: Include tree-ssa-live.h.
27564 (live_vars, live_vars_vec): New global variables.
27565 (find_tail_calls): Perform variable life analysis before punting.
27566 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27567 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27569 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27570 Perform variable life analysis to select variables that really need
27572 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27573 instead set id->eh_landing_pad_dest and assert it is the same.
27574 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27576 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27577 Richard Earnshaw <rearnsha@arm.com>
27580 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27582 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27583 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27584 register if both the epilogue and prologue can use call-clobbered
27586 (thumb1_unexpanded_epilogue): Use
27587 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27588 picking temporaries for restoring high regs to match that of the
27589 prologue where possible.
27590 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27591 the list of work registers. Detect if the return address is still live
27592 at the end of the prologue and avoid using it for a work register if so.
27593 If the return address is not live, add LR to the list of pushable regs
27594 after the first pass.
27596 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27598 PR tree-optimization/90078
27599 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27600 (INFTY): Increase the value for infinite cost.
27601 (struct comp_cost): Promote type of members to int64_t.
27602 (infinite_cost): Don't set complexity in initialization.
27603 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27604 overflows to infinite_cost.
27605 (adjust_setup_cost): Promote type of parameter and cost computation
27607 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27609 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27610 cost computation to int64_t.
27611 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27612 int64_t's format specifier in dump.
27614 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27616 PR tree-optimization/90240
27617 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27618 with respect to scaling factor pre-computed for each basic block.
27619 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27620 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27621 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27622 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27623 live range for array of loop's basic blocks. Cleanup aux field of
27624 loop's basic blocks.
27626 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27628 PR tree-optimization/90356
27629 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27631 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27633 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27634 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27635 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27636 (ix86_handle_option): Handle -mavx512bf16.
27637 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27639 * config/i386/avx512bf16vlintrin.h: New.
27640 * config/i386/avx512bf16intrin.h: New.
27641 * config/i386/cpuid.h (bit_AVX512BF16): New.
27642 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27643 * config/i386/i386-builtin-types.def: Add new types.
27644 * config/i386/i386-builtin.def: Add new builtins.
27645 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27647 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27648 (ix86_option_override_internal): Handle BF16.
27649 (ix86_valid_target_attribute_inner_p): Ditto.
27650 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27651 * config/i386/i386-builtin.c (enum processor_features): Add
27653 (static const _isa_names_table isa_names_table): Ditto.
27654 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27655 (PTA_AVX512BF16): Ditto.
27656 * config/i386/i386.opt: Add -mavx512bf16.
27657 * config/i386/immintrin.h: Include avx512bf16intrin.h
27658 and avx512bf16vlintrin.h.
27659 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27660 avx512f_cvtneps2bf16_<mode><mask_name>,
27661 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27662 * config/i386/subst.md (mask_half): Add new subst.
27663 * doc/invoke.texi: Document -mavx512bf16.
27665 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27667 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27668 Delete declaration.
27669 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27670 (rs6000_debug_legitimize_reload_address): Delete.
27671 (rs6000_legitimize_reload_address_ptr): Delete.
27672 (rs6000_option_override_internal): Adjust.
27673 (mem_operand_gpr): Adjust comment.
27674 (legitimate_lo_sum_address_p): Ditto.
27675 (rs6000_legitimize_reload_address): Delete.
27676 (rs6000_debug_legitimize_reload_address): Delete.
27677 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27679 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27682 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27683 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27684 to compute vector element selector for both constant and variable
27687 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27689 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27690 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27691 ashrdi3_cvt using SWI48 mode iterator.
27693 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27695 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27696 (aarch64_<su>abd<mode>_3): Likewise.
27697 (*aarch64_<su>abd<mode>_3): New define_insn.
27698 (<sur>sad<vsi2qi>): New define_expand.
27699 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27700 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27701 (build_vect_cond_expr): Likewise.
27703 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27705 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27706 clobbers outside of accessible_reg_set.
27707 * config/i386/i386.c (ix86_conditional_register_usage):
27708 Disable register sets by clearing corresponding bits in
27709 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27710 call_used_regs and don't clear corresponding reg_names array members.
27712 2019-05-07 Richard Biener <rguenther@suse.de>
27714 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27715 not specified still compute a comp_vectype for invariant
27718 2019-05-07 Richard Biener <rguenther@suse.de>
27720 PR tree-optimization/90316
27721 * tree-ssa-pre.c (translate_vuse_through_block): When
27722 same_valid is NULL do not bother to search for a virtual
27724 (phi_translate_1): When operands changed we cannot keep
27725 the same value-number so do not bother to ask whether
27726 that's possible from translate_vuse_through_block.
27728 2019-05-07 Martin Liska <mliska@suse.cz>
27730 * bitmap.c (bitmap_register): Come up with
27731 alloc_descriptor_max_uid and assign it for
27733 (register_overhead): Use get_descriptor as
27735 (release_overhead): New.
27736 (bitmap_elem_to_freelist): Call it.
27737 (bitmap_elt_clear_from): Likewise.
27738 (bitmap_obstack_free): Likewise.
27739 (bitmap_move): Sensitively release memory.
27740 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27741 (bitmap_initialize): Initialize alloc_descriptor to zero.
27742 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27744 2019-05-07 Richard Biener <rguenther@suse.de>
27746 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27747 we build a SLP node. Remove max_size and limiting.
27748 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27750 2019-05-07 Richard Biener <rguenther@suse.de>
27752 PR tree-optimization/90316
27753 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27754 limit by reference.
27755 (walk_non_aliased_vuses): Take walking limit argument.
27756 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27757 walking if it is reached instead of just counting.
27758 (get_continuation_for_phi): Likewise.
27759 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27760 limiting to the callback.
27761 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27762 (vn_reference_lookup_3): Likewise.
27763 (vn_reference_lookup_pieces): Likewise.
27764 (vn_reference_lookup): Likewise.
27765 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27766 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27767 (avail_exprs_stack::lookup_avail_expr): Likewise.
27769 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27771 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27772 for comparaible types in the second direction even if first one
27773 hits incomparable type.
27775 2019-05-07 Richard Biener <rguenther@suse.de>
27778 * lto-wrapper.c (debug_objcopy): Use the original filename
27779 including archive offset for the filename used for -save-temps.
27781 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27783 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27786 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27787 Hongtao Liu <hongtao.liu@intel.com>
27791 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27792 Modified, original implementation isn't correct.
27794 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27796 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27797 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27798 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27799 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27800 (FRAME_POINTER_REGNUM): Change numbering.
27801 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27802 (alt_reg_names): Adjust.
27803 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27805 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27806 (DWARF_FRAME_REGISTERS): Delete.
27807 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27808 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27810 (REG_ALLOC_ORDER): Adjust.
27811 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27812 (REG_CLASS_CONTENTS): Adjust.
27813 (RETURN_ADDR_RTX): Change comment.
27814 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27816 (REGISTER_NAMES): Adjust.
27817 (ADDITIONAL_REGISTER_NAMES): Adjust.
27818 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27820 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27822 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27824 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27825 (DWARF_FRAME_REGISTERS): Adjust.
27826 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27828 (REG_ALLOC_ORDER): Adjust.
27829 (enum reg_class): Delete SPR_REGS.
27830 (REG_CLASS_NAMES): Delete SPR_REGS.
27831 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27832 (REGISTER_NAMES): Adjust.
27833 (ADDITIONAL_REGISTER_NAMES): Adjust.
27834 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27835 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27836 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27837 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27838 (htm_spr_regno): Delete.
27839 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27841 (rs6000_dbx_register_number): Adjust.
27843 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27845 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27847 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27849 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27850 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27852 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27854 PR tree-optimization/88709
27855 PR tree-optimization/90271
27856 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27857 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27858 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27860 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27861 of the store merging group is larger than
27862 PARAM_STORE_MERGING_MAX_SIZE parameter.
27863 (split_group): Add bzero_first argument. If set, always emit first
27864 the first store which must be = {} of the whole area and then for the
27865 rest of the stores consider all zero bytes as paddings.
27866 (imm_store_chain_info::output_merged_store): Check if first store
27867 is = {} of the whole area and if yes, determine which setting of
27868 bzero_first for split_group gives smaller number of stores. Adjust
27869 split_group callers.
27870 (lhs_valid_for_store_merging_p): Allow decls.
27871 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27873 (pass_store_merging::process_store): Likewise.
27875 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27878 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27879 handling of V1TImode.
27881 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27884 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27885 and enable_frame_pointer ...
27886 * configure.ac: ... here. Update help strings for
27887 --enable-frame-pointer.
27888 * configure: Regenerate.
27889 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27890 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27891 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27892 (USE_X86_64_FRAME_POINTER): Ditto.
27894 2019-05-06 Martin Liska <mliska@suse.cz>
27896 * config.gcc: Append to target_gtfiles and fix indentation.
27898 2019-05-06 Richard Biener <rguenther@suse.de>
27900 PR tree-optimization/90358
27901 * tree-vect-stmts.c (get_group_load_store_type): Properly
27902 detect unused upper half of load.
27903 (vectorizable_load): Likewise.
27905 2019-05-06 Richard Biener <rguenther@suse.de>
27907 PR tree-optimization/88828
27908 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27909 (simplify_vector_constructor): ...here. Handle constants in
27912 2019-05-06 Richard Biener <rguenther@suse.de>
27914 PR tree-optimization/90328
27915 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27916 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27917 is valid in the loop nest before using it.
27918 (initialize_data_dependence_relation): Adjust.
27919 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27920 loop as loop-nest to dr_may_alias_p.
27922 2019-05-06 Richard Biener <rguenther@suse.de>
27924 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27926 2019-05-06 Richard Biener <rguenther@suse.de>
27928 PR tree-optimization/90316
27929 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27930 compute target on demand.
27931 (get_continuation_for_phi): Remove code walking stmts to
27932 get to a target virtual operand which could end up being
27935 2019-05-06 Martin Liska <mliska@suse.cz>
27938 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27939 when -mabi is selected to a non-default version.
27941 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
27942 Martin Liska <mliska@suse.cz>
27944 * Makefile.in: Add lto-dump.texi.
27945 * cgraph.h: Add new functions get_visibility_string and
27946 get_symtab_type_string.
27947 * doc/gcc.texi: Include lto-dump section.
27948 * doc/lto-dump.texi: New file.
27949 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
27950 (parse_dump_option): Factor out this function.
27951 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
27952 (parse_dump_option): Export the function.
27953 * symtab.c (symtab_node::get_visibility_string): New function.
27954 (symtab_node::get_symtab_type_string): Likewise.
27956 2019-05-06 Martin Liska <mliska@suse.cz>
27958 * config/i386/i386-builtins.c: New file.
27959 * config/i386/i386-builtins.h: New file.
27960 * config/i386/i386-expand.c: New file.
27961 * config/i386/i386-expand.h: New file.
27962 * config/i386/i386-features.c: New file.
27963 * config/i386/i386-features.h: New file.
27964 * config/i386/i386-options.c: New file.
27965 * config/i386/i386-options.h: New file.
27966 * config.gcc: Add new files into extra_objs and
27968 * config/i386/i386.c: Split content of the file
27969 into newly introduced files.
27970 * config/i386/i386.h: Declare common variables
27972 * config/i386/t-i386: Define dependencies for new files.
27974 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
27977 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
27978 Restrict 'all' variant to 32-bit configurations.
27979 (unaligned_loadhiu): Likewise.
27980 (unaligned_storehi): Likewise.
27981 (unaligned_storesi): Likewise.
27982 (unaligned_loadhis): Disable when compiling for thumb1.
27984 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
27986 PR tree-optimization/90269
27987 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
27990 2019-05-03 Martin Liska <mliska@suse.cz>
27992 * hash-map.h: Add is_empty function.
27993 * hash-set.h: Likewise.
27994 * hash-table.h: Likewise.
27995 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
27996 elements () == 0 (and similar usages).
27997 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
27998 * gimplify.c (gimplify_bind_expr): Likewise.
27999 (gimplify_switch_expr): Likewise.
28000 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28001 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28002 * postreload-gcse.c (dump_hash_table): Likewise.
28003 (gcse_after_reload_main): Likewise.
28004 * predict.c (combine_predictions_for_bb): Likewise.
28005 * tree-parloops.c (reduction_phi): Likewise.
28006 (separate_decls_in_region): Likewise.
28007 (transform_to_exit_first_loop): Likewise.
28008 (gen_parallel_loop): Likewise.
28009 (gather_scalar_reductions): Likewise.
28010 (try_create_reduction_list): Likewise.
28011 * var-tracking.c (dump_vars): Likewise.
28012 (emit_notes_for_changes): Likewise.
28013 (vt_emit_notes): Likewise.
28015 2019-05-03 Richard Biener <rguenther@suse.de>
28017 PR tree-optimization/90316
28018 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28021 2019-05-03 Richard Biener <rguenther@suse.de>
28023 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28024 peeling for gaps by loading only lower halves of vectors
28026 (vectorizable_load): Likewise.
28028 2019-05-03 Richard Biener <rguenther@suse.de>
28030 PR middle-end/89518
28031 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28033 2019-05-03 Richard Biener <rguenther@suse.de>
28035 PR middle-end/87314
28036 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28037 Handle STRING_CST vs DECL or STRING_CST.
28039 2019-05-03 Richard Biener <rguenther@suse.de>
28041 PR tree-optimization/88963
28042 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28043 vector loads feeding only BIT_FIELD_REFs to component
28044 loads. Rewrite stores fed by CONSTRUCTORs to component
28047 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28049 * opts.h (finish_options): Remove lang_mask argument.
28050 (print_help, help_option_argument): Declare.
28051 * opts.c (print_help): Remove forward declaration, no longer static.
28052 (finish_options): Remove lang_mask argument, don't call print_help
28054 * opts-global.c (decode_options): Adjust finish_option caller, call
28057 PR tree-optimization/90303
28058 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28059 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28061 2019-05-03 Richard Biener <rguenther@suse.de>
28063 PR tree-optimization/89698
28064 * gimple-fold.c (canonicalize_constructor_val): Early out
28065 for constants, handle unfolded INTEGER_CSTs as they appear in
28066 C++ virtual table ctors.
28068 2019-05-03 Richard Biener <rguenther@suse.de>
28070 * passes.c (execute_function_todo): Remove dead code.
28072 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28074 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28075 the internal register number, for any "real" register.
28077 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28079 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28080 correct numbers for TFHAR, TFIAR, TEXASR.
28082 2019-05-02 Richard Biener <rguenther@suse.de>
28084 PR tree-optimization/89653
28085 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28086 update-address-taken before the pass.
28087 * passes.def (pass_tree_loop_init): Put comment before it.
28089 2019-05-02 Richard Biener <rguenther@suse.de>
28091 PR tree-optimization/89509
28092 * tree-ssa-structalias.c (compute_dependence_clique): Look
28093 at the first subvar when determining whether it is restrict.
28095 2019-05-02 Richard Biener <rguenther@suse.de>
28097 PR tree-optimization/90273
28098 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28099 useless debug stmts.
28101 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28103 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28105 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28107 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28108 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28109 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28110 (vectorizable_reduction): Use the functions above to vectorize in a
28111 fully masked loop codes that don't have a conditional internal
28114 2019-05-02 Martin Liska <mliska@suse.cz>
28116 * cgraphclones.c: Call valid_attribute_p with 1 for
28118 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28119 it's for target attribute.
28120 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28121 Add new boolean argument.
28122 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28124 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28125 to ix86_valid_target_attribute_inner_p.
28126 (ix86_valid_target_attribute_p): Pass flags argument to
28127 ix86_valid_target_attribute_inner_p.
28128 (get_builtin_code_for_version): Use 0 as it's target attribute.
28130 2019-05-02 Martin Liska <mliska@suse.cz>
28132 * gcc.c (process_command): Add dummy file only
28134 * opts-global.c (decode_options): Pass lang_mask.
28135 * opts.c (print_help): New function.
28136 (finish_options): Print --help if help_option_argument
28138 (common_handle_option): Factor out content of OPT__help_
28140 * opts.h (finish_options): Add new argument.
28142 2019-05-02 Martin Liska <mliska@suse.cz>
28145 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28146 With -minline-all-stringops use inline expansion using 4B loop.
28147 * doc/invoke.texi: Document the change of
28148 -minline-all-stringops.
28150 2019-05-01 Jeff Law <law@redhat.com>
28152 PR tree-optimization/88797
28153 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28154 PHI feeds a conditional on the RHS of an assignment.
28156 2019-04-30 Andrew Waterman <andrew@sifive.com>
28157 Jim Wilson <jimw@sifive.com>
28159 * config/riscv/constraints.md (L): New.
28160 * config/riscv/predicates.md (lui_operand): New.
28161 (sfb_alu_operand): New.
28162 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28163 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28164 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28165 * config/riscv/risc.md (type): Add sfb_alu.
28166 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28167 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28168 (branch_zero<mode>): Delete.
28169 (mov<mode>cc): New.
28170 (mov<GPR:mode><X:mode>cc): Likewise.
28171 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28173 2019-04-30 Nathan Sidwell <nathan@acm.org>
28175 * tree.h (MARK_TS_EXP): New.
28177 2019-04-30 Martin Liska <mliska@suse.cz>
28179 * opts.c (enable_warning_as_error): Provide hints
28180 for unknown options.
28182 2019-04-30 Martin Liska <mliska@suse.cz>
28185 * doc/invoke.texi: Add missing dash for gas-locview-support
28186 and gno-as-locview-support.
28188 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28191 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28192 whitespace at the start of target attribute string.
28194 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28197 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28198 Define __ARM_FEATURE_ATOMICS.
28200 2019-04-30 Martin Liska <mliska@suse.cz>
28202 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28203 into built_in_function enum. Remove code for endp == 2 and
28204 use BUILT_IN_* constants.
28205 (gimple_fold_builtin): Call the function with fcode.
28207 2019-04-30 Martin Liska <mliska@suse.cz>
28209 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28210 DECL_FUNCTION_CODE into ix86_builtins enum before
28211 the switch statement.
28213 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28215 PR tree-optimization/89475
28216 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28219 2019-04-30 Martin Liska <mliska@suse.cz>
28221 PR translation/90274
28222 * opts.c (print_filtered_help): Wrap string in _(...).
28224 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28226 PR tree-optimization/90240
28228 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28230 PR tree-optimization/90078
28231 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28232 checks for infinite_cost overflow.
28234 2019-04-29 Jeff Law <law@redhat.com>
28236 * passes.def: Move -Wrestrict pass after copy propagation.
28238 2019-04-29 Maya Rashish <coypu@sdf.org>
28240 * config.gcc (default_gnu_indirect_function): Default to yes
28241 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28242 sparc*-*-netbsd*, x86_64-*-netbsd*.
28244 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28246 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28247 where cond2 is NE_EXPR.
28248 (is_value_included_in): Update comment.
28250 2019-04-29 Richard Biener <rguenther@suse.de>
28252 PR tree-optimization/90278
28253 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28254 EH on comparison simplification.
28256 2019-04-29 Jason Merrill <jason@redhat.com>
28258 PR c++/82081 - tail call optimization breaks noexcept
28259 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28260 nothrow function to a might-throw function into a tail call.
28262 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28264 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28265 (DDR_INNER_LOOP): Likewise.
28266 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28267 (initialize_data_dependence_relation): Likewise.
28268 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28270 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28272 PR rtl-optimization/90257
28273 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28277 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28281 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28284 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28287 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28289 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28291 2019-04-29 Richard Biener <rguenther@suse.de>
28293 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28296 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28298 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28299 varasm.h, and netbsd-protos.h.
28301 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28304 * config/i386/i386-protos.h (ix86_data_alignment): Change
28305 the second argument type to unsigned int.
28306 * config/i386/i386.c (ix86_data_alignment): Change "align"
28307 argument type to unsigned int.
28309 2019-04-27 Martin Liska <mliska@suse.cz>
28311 PR middle-end/90258
28312 * opt-suggestions.c (option_proposer::build_option_suggestions):
28313 When get_valid_option_values returns empty values, add the
28314 misspelling candidate.
28316 2019-04-26 Jim Wilson <jimw@sifive.com>
28318 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28320 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28321 Pass orig_mode to riscv_build_integer.
28322 (riscv_split_integer): Pass mode to riscv_move_integer.
28323 (riscv_legitimize_const_move): Likewise.
28324 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28325 promoted_mode. Replace force_reg call with code to load constant into
28326 promoted reg and then subreg it for the store.
28327 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28328 riscv_move_integer.
28330 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28332 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28335 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28337 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28338 commentary about the encoding of precision.
28340 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28342 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28343 * config/i386/t-freebsd64: New file.
28344 * config.gcc: Add the t-freebsd64 for multilib support.
28346 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28348 * doc/extend.texi (vector_size): Add missing comma after @xref.
28350 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28352 * BASE-VER: Set to 10.0.0.
28354 2019-04-25 Richard Biener <rguenther@suse.de>
28356 PR middle-end/89765
28357 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28358 VIEW_CONVERT_EXPR into one operating on an rvalue.
28360 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28363 * config/i386/i386.c (feature_priority): Moved to file scope.
28364 (processor_features): Likewise.
28365 (processor_model): Likewise.
28366 (_arch_names_table): Likewise.
28367 (arch_names_table): Likewise.
28368 (_feature_list): Removed.
28369 (feature_list): Likewise.
28370 (_isa_names_table): Moved to file scope. Add priority.
28371 (isa_names_table): Likewise.
28372 (get_builtin_code_for_version): Replace feature_list with
28373 isa_names_table. Update error message for P_ZERO priority.
28375 2019-04-25 Richard Biener <rguenther@suse.de>
28377 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28378 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28380 2019-04-24 Jeff Law <law@redhat.com>
28382 PR tree-optimization/90037
28383 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28384 * passes.def: Replace all instance of phi-only cprop with the
28385 lattice propagator. Move propagation pass from after erroneous
28386 path isolation to before erroneous path isolation.
28387 * tree-ssa-phionlycprop.c: Remove.
28389 2019-04-24 Richard Biener <rguenther@suse.de>
28391 PR middle-end/90213
28392 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28393 by size and BITS_PER_UNIT on poly-wide-ints.
28395 2019-04-25 Richard Biener <rguenther@suse.de>
28397 PR middle-end/90194
28398 * match.pd: Add pattern to simplify view-conversion of an
28401 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28403 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28404 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28405 for Go on 32 bit AIX.
28406 * config/rs6000/aix72.h: Likewise.
28408 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28411 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28412 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28414 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28417 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28418 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28419 for restored hard frame pointer.
28420 (s390_sched_dependencies_evaluation): Implement new target hook.
28421 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28423 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28425 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28426 * config/arc/arc.c (arc_init): Cleanup warning message.
28427 (arc_override_options): Likewise.
28429 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28432 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28433 a register if both if_true and if_false are MEMs.
28435 PR tree-optimization/90208
28436 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28437 after labels of new_bb, not before them.
28439 PR tree-optimization/90211
28440 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28441 which are not SSA_NAMEs.
28443 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28445 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28447 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28449 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28451 PR rtl-optimization/87979
28452 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28455 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28457 PR rtl-optimization/84032
28458 * modulo-sched.c (ps_insn_find_column): Change condition so that
28459 branch will always be the last insn in a row inside partial
28462 2019-04-23 Richard Biener <rguenther@suse.de>
28465 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28466 dest_single_pred_p argument.
28467 (remove_forwarder_block): Adjust.
28468 (remove_forwarder_block_with_phi): Likewise.
28470 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28471 Bernd Edlinger <bernd.edlinger@hotmail.de>
28472 Jakub Jelinek <jakub@redhat.com>
28475 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28476 if used with general-regs-only.
28477 (arm_conditional_register_usage): Don't add non-general regs if
28479 (arm_valid_target_attribute_rec): Handle general-regs-only.
28480 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28482 (TARGET_HARD_FLOAT_SUB): Define.
28483 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28484 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28485 (TARGET_REALLY_IWMMXT2): Likewise.
28486 * config/arm/arm.opt: Add -mgeneral-regs-only.
28487 * doc/extend.texi: Document ARM general-regs-only target.
28488 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28490 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28492 PR tree-optimization/90078
28493 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28494 checks for infinite_cost overflow.
28496 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28498 PR tree-optimization/90021
28499 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28500 and check univariate against it.
28501 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28502 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28504 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28508 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28511 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28514 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28516 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28518 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28520 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28521 names using operand format, rather than hard-wired.
28522 (speculation_barrier): Likewise.
28524 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28526 PR tree-optimization/88055
28527 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28528 (gen_one_condition): Use it if !HONOR_NANS.
28530 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28532 PR middle-end/90139
28533 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28534 assign_temp instead of gen_reg_rtx.
28536 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28538 PR translation/90118
28539 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28540 Add missing space before %<.
28542 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28544 PR rtl-optimization/87871
28545 * ira-lives.c (make_object_dead): Don't add conflicts to
28546 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28548 2019-04-18 Martin Sebor <msebor@redhat.com>
28550 PR middle-end/89797
28551 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28552 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28553 assuming type size fits in SHWI.
28555 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28558 * ipa-inline.c (flatten_function): New parameter UPDATE.
28559 (ipa_inline, early_inliner): Use it.
28561 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28563 * fold-const.c (int_const_binop): Return early on failure.
28565 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28567 PR middle-end/85164
28568 * combine.c (force_int_to_mode): Cast the argument rather than
28569 the result of known_alignment.
28570 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28572 2019-04-18 Richard Biener <rguenther@suse.de>
28575 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28577 (remove_forwarder_block): ... here.
28578 (remove_forwarder_block_with_phi): Also move debug stmts here.
28580 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28582 PR translation/79183
28583 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28584 inform where appropriate.
28586 2019-04-18 Richard Biener <rguenther@suse.de>
28588 * tree.c (get_qualified_type): Put found type variants at the
28589 head of the variant list.
28591 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28593 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28595 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28598 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28599 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28600 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28601 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28602 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28604 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28606 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28607 even for allocno's with no conflicts.
28608 (print_conflicts): Print an extra newline.
28610 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28612 * auto-inc-dec.c (attempt_change): Set the alignment of the
28613 temporary memory to that of the original.
28615 2019-04-17 Joao Moreira <jmoreira@suse.de>
28617 * targhooks.c (default_print_patchable_function_entry): Emit
28618 __patchable_function_entries section with writable flags to allow
28619 relocation resolution.
28621 2019-04-17 Jonny Grant <jg@jguk.org>
28623 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28625 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28627 PR middle-end/90095
28628 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28629 on lowpart SUBREGs.
28631 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28633 * config/arc/arc.c (arc_init): Format diagnostic string.
28634 (arc_override_options): Likewise.
28635 (check_if_valid_regno_const): Likewise.
28636 (arc_reorg): Likewise.
28638 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28641 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28643 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28645 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28646 (*movdi_update1): Use Pmode.
28647 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28648 (movdi_<mode>_update_stack): Rename to ...
28649 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28651 (*movsi_update1): Use Pmode.
28652 (*movsi_update2): Use Pmode.
28653 (movsi_update): Rename to ...
28654 (movsi_<mode>_update): ... this. Use Pmode.
28655 (movsi_update_stack): Fix condition.
28656 (*movhi_update1): Use Pmode. Fix argument to
28657 avoiding_indexed_address_p.
28658 (*movhi_update2): Ditto.
28659 (*movhi_update3): Ditto.
28660 (*movhi_update4): Ditto.
28661 (*movqi_update1): Ditto.
28662 (*movqi_update2): Ditto.
28663 (*movqi_update3): Ditto.
28664 (*movsf_update1, *movdf_update1): Merge, rename to...
28665 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28666 avoiding_indexed_address_p. Add "size" attribute.
28667 (*movsf_update2, *movdf_update2): Merge, rename to...
28668 (*mov<mode>_update2): This. Ditto.
28669 (*movsf_update3): Use Pmode. Fix argument to
28670 avoiding_indexed_address_p.
28671 (*movsf_update4): Ditto.
28672 (allocate_stack): Simplify condition. Adjust pattern names.
28674 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28677 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28678 whitespace at the start of target attribute string.
28680 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28683 * config/rs6000/power9.md: Add store forwarding bypass.
28685 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28688 * valtrack.c (dead_debug_insert_temp): Reset debug references
28689 to the return value of a call being removed.
28691 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28693 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28694 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28695 implement target hook.
28696 (arc_memory_move_cost): New function.
28697 (TARGET_REGISTER_MOVE_COST): Define.
28698 (TARGET_MEMORY_MOVE_COST): Likewise.
28699 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28700 (MEMORY_MOVE_COST): Likewise.
28702 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28704 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28705 (sibcall_value_insn): Likewise.
28706 * config/arc/constraints.md (Rs5): Remove.
28708 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28710 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28711 for last two fake registers.
28712 (arc_conditional_register_usage): Make sure fake frame and arg
28713 pointer regs are in general regs class.
28714 (FRAME_POINTER_MASK): Remove.
28715 (RETURN_ADDR_MASK): Remove.
28716 (arc_must_save_register): Use hard frame regnum.
28717 (frame_restore_reg): Use hard_frame_pointer_rtx.
28718 (arc_save_callee_saves): Likewise.
28719 (arc_restore_callee_saves): Likewise.
28720 (arc_save_callee_enter): Likewise.
28721 (arc_restore_callee_leave): Likewise.
28722 (arc_save_callee_milli): Likewise.
28723 (arc_eh_return_address_location): Likewise.
28724 (arc_check_multi): Use hard frame regnum.
28725 (arc_can_eliminate): Likewise.
28726 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28727 for register allocator.
28728 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28729 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28730 (FRAME_POINTER_REGNUM): Change it to a fake register.
28731 (HARD_FRAME_POINTER_REGNUM): Defined.
28732 (ARG_POINTER_REGNUM): Change it to a new fake register.
28733 (ELIMINABLE_REGS): Update.
28734 (REGISTER_NAMES): Update names.
28735 * config/arc/arc.md (LP_START): Remove.
28736 (LP_END): Likewise.
28737 (shift_si3_loop): Update pattern.
28739 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28741 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28742 to avoid delay slot scheduling.
28743 (arc_must_save_register): Don't save SP.
28744 * config/arc/arc.md (stack_tie): Remove.
28745 (UNSPEC_ARC_STKTIE): Likewise.
28747 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28748 Shiva Chen <shiva0217@gmail.com>
28750 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28751 code gen with large shift amount.
28753 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28755 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28758 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28761 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28762 print -m64/-mx32/-m32 if it is true.
28763 (ix86_debug_options, ix86_function_specific_print): Pass true as
28764 ADD_ABI_P to ix86_target_string.
28765 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28766 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28767 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28769 PR rtl-optimization/90082
28770 * dce.c (can_delete_call): New function.
28771 (deletable_insn_p, mark_insn): Use it.
28773 PR tree-optimization/90090
28774 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28776 (is_division_by_square): Likewise. Formatting fix.
28778 2019-04-16 Richard Biener <rguenther@suse.de>
28780 PR tree-optimization/56049
28781 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28782 equality check if alias-set zero will prevail.
28784 2019-04-15 Jeff Law <law@redhat.com>
28786 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28787 size and alignment as unsigned.
28789 2019-04-15 Richard Biener <rguenther@suse.de>
28792 * tree-loop-distribution.c (destroy_loop): Preserve correct
28795 2019-04-15 Richard Biener <rguenther@suse.de>
28797 PR tree-optimization/90071
28798 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28799 abnormal operands from def stmts.
28801 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28803 PR rtl-optimization/89794
28804 * combine.c (count_auto_inc): New function.
28805 (try_combine): Count how many auto_inc expressions there were in the
28806 original instructions. Ensure we have the same number in the new
28807 instructions. Remove the code that tried to ensure auto_inc side
28808 effects on i1 and i0 are not lost.
28810 2019-04-15 Richard Biener <rguenther@suse.de>
28813 * tree.h (auto_var_p): Declare.
28814 * tree.c (auto_var_p): New function, split out from ...
28815 (auto_var_in_fn_p): ... here.
28816 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28818 (new_var_info): Initialize it.
28819 (set_uids_in_ptset): Also set the shadow variable uid if required.
28820 (ipa_pta_execute): Postprocess points-to solutions assigning
28821 shadow variable uids for locals that may reach their containing
28822 function recursively.
28823 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28824 assert but instead check whether the points-to solution is
28827 2019-04-15 Martin Jambor <mjambor@suse.cz>
28830 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28833 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28835 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28837 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28838 Kito Cheng <kito.cheng@gmail.com>
28839 Shiva Chen <shiva0217@gmail.com>
28841 * config/nds32/nds32-md-auxiliary.c
28842 (nds32_legitimize_pic_address): Use new PIC pattern.
28843 (nds32_legitimize_tls_address): Use new TLS pattern.
28844 (nds32_output_symrel): New.
28845 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28846 (nds32_alloc_relax_group_id): Ditto.
28847 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28848 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28850 (nds32_group_tls_insn): Ditto.
28851 (nds32_group_float_insns): Ditto.
28852 * config/nds32/nds32.md (tls_le): New.
28855 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28857 * configure: Add nds32 target for dwarf2 debug_line checking.
28858 * configure.ac: Regenerated.
28860 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28863 * ipa-devirt.c (skip_in_fields_list_p): New.
28864 (odr_types_equivalent_p): Use it.
28866 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28869 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28870 instead of strncmp when checking for thumb and arm. Formatting fixes.
28872 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28874 * doc/install.texi: Document --with-target-system-zlib.
28876 2019-04-12 Martin Sebor <msebor@redhat.com>
28882 * targhooks.c (default_vector_alignment): Avoid assuming
28883 argument fits in SHWI.
28884 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28885 a shift expression.
28886 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28888 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28890 PR rtl-optimization/89965
28891 * dce.c: Include rtl-iter.h.
28892 (struct check_argument_load_data): New type.
28893 (check_argument_load): New function.
28894 (find_call_stack_args): Check for loads from stack slots still tracked
28895 in sp_bytes and punt if any is found.
28897 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28899 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28901 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28902 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28904 2019-04-12 Martin Liska <mliska@suse.cz>
28906 PR middle-end/89970
28907 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28909 (separate_attrs): Handle multiple 'default's.
28910 (expand_target_clones): Rework error handling code.
28912 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28915 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28916 mode of vector rather than mode of destination for move instruction.
28917 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28918 Use QI inner mode with V16QI vector mode.
28920 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28923 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28924 "invalid %%t operand" in output_operand_lossage message.
28926 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28928 * config/s390/predicates.md (permute_pattern_operand): New
28930 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28931 operand for the permute pattern.
28932 ("*vec_perm<mode>"): New insn definition.
28933 ("bswap<mode>"): Generate the permute pattern operand in the
28934 expander and perform the operand reloads for pre arch13 level
28936 ("*bswap<mode>_emu"): Rename to ...
28937 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28938 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28939 Add the USE operand for the permute pattern.
28940 ("*vec_set_bswap_vec<mode>"): Likewise.
28942 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28945 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
28946 and gcc_unreachable if it fails, just call tree_to_uhwi which
28947 verifies that too. Test TREE_CHAIN instead of list_length > 1.
28948 Start warning message with a lower-case letter. Formatting fixes.
28950 PR rtl-optimization/90026
28951 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
28952 successors, look for BARRIERs inside of the whole BB_FOOTER chain
28953 rather than just at the start of it. If e->src BB_FOOTER is not NULL
28954 in cfglayout mode, use emit_barrier_after_bb.
28956 2018-04-11 Steve Ellcey <sellcey@marvell.com>
28958 PR rtl-optimization/87763
28959 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
28962 2019-04-11 Tom de Vries <tdevries@suse.de>
28964 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
28965 max macro using statement expression.
28967 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
28969 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
28970 * xcoffout.c (xcoff_private_rodata_section_name): Define.
28971 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
28972 read_only_private_data_section using xcoff_private_rodata_section_name.
28973 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
28975 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
28978 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
28980 2019-04-11 Jakub Jelinek <jakub@redhat.com>
28982 PR rtl-optimization/89965
28983 * dce.c (sp_based_mem_offset): New function.
28984 (find_call_stack_args): Use sp_based_mem_offset.
28986 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
28988 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
28990 2019-04-11 Richard Biener <rguenther@suse.de>
28992 PR tree-optimization/90020
28993 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
28994 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
28995 * tree-ssa-pre.c (compute_avail): Use it to not put
28996 possibly trapping references after a call that might not
28997 return into EXP_GEN.
28998 * gcse.c (compute_hash_table_work): Do not elide
28999 marking a block containing a call if the call might not
29002 2019-04-11 Richard Biener <rguenther@suse.de>
29004 PR tree-optimization/90018
29005 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29006 Test both SLP and interleaving variants.
29008 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29010 * config/s390/8561.md: New file.
29011 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29012 Add arch13 cpu model.
29013 * config/s390/s390-opts.h (enum processor_type): Likewise.
29014 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29015 (s390_get_unit_mask): Likewise.
29016 (s390_is_fpd): Likewise.
29017 (s390_is_fxd): Likewise.
29018 * config/s390/s390.h (s390_tune_attr): Likewise.
29019 * config/s390/s390.md: Include arch13 pipeline description.
29020 * config/s390/s390.opt: Add arch13.
29022 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29024 PR rtl-optimization/87763
29025 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29027 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29029 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29031 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29032 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29033 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29034 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29036 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29038 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29039 "Although" in -fipa-icf documentation.
29041 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29042 of using multiple -g options.
29044 2019-04-10 Martin Liska <mliska@suse.cz>
29046 PR gcov-profile/89959
29047 * doc/gcov.texi: Make documentation of -x option
29050 2019-04-10 Richard Biener <rguenther@suse.de>
29052 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29054 (DR_GROUP_SAME_DR_STMT): Remove.
29055 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29056 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29057 replace with assert.
29058 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29059 (vect_record_grouped_load_vectors): Remove unreachable code.
29061 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29064 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29065 obsolete reference to N.
29067 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29069 PR middle-end/90025
29070 * expr.c (store_expr): Set properly size on the MEM passed to
29074 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29075 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29076 translation is needed, and when translation is needed, only append
29077 ... if the string length is hostsz or more bytes long. Avoid using
29080 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29083 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29084 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29086 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29087 differences directly.
29088 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29090 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29092 PR translation/90011
29093 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29095 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29097 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29098 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29099 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29100 trailing space from -gsplit-dwarf diagnostics.
29102 PR tree-optimization/89998
29103 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29104 instead of integer_type_node if possible, don't add ranges if return
29105 type is not compatible with int.
29106 * gimple-fold.c (gimple_fold_builtin_sprintf,
29107 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29110 2019-04-09 Martin Liska <mliska@suse.cz>
29112 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29113 * doc/install.texi: Document the new config.
29115 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29117 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29118 use gimple_expr_type for load and store calls. Skip over the
29119 condition argument in a conditional internal function.
29120 Protect use of TREE_INT_CST_LOW.
29122 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29125 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29126 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29127 trailing period from it too.
29129 2019-04-08 wu yuan <wuyuan5@huawei.com>
29131 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29132 * config/aarch64/aarch64.md: Add "tsv110.md".
29133 * config/aarch64/tsv110.md: New file.
29135 2019-04-08 Richard Biener <rguenther@suse.de>
29137 PR tree-optimization/90006
29138 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29141 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29144 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29146 (fma_root_node): Likewise.
29147 (func_fma_steering): Likewise.
29149 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29151 PR rtl-optimization/89865
29152 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29154 PR rtl-optimization/89865
29155 * config/i386/i386.md
29156 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29157 numbers not to clash with the additional operands[4].
29158 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29159 with extra register copy in the middle.
29161 2019-04-08 Martin Liska <mliska@suse.cz>
29163 PR gcov-profile/89961
29164 * doc/gcov.texi: Document data_file.
29165 * gcov.c (generate_results): Add data_info into JSON output.
29167 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29169 PR tree-optimization/89725
29170 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29171 loop's chrec as invariant symbol.
29172 * tree-chrec.h (chrec_contains_symbols): New parameter.
29173 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29174 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29175 function of loops not in DDR's loop_nest.
29176 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29178 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29181 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29184 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29187 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29188 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29190 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29192 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29193 targetm.fixed_condition_code_regs.
29195 2019-04-05 Richard Biener <rguenther@suse.de>
29199 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29200 debug bind stmts but reset them if they are not valid at the
29203 2019-04-05 Martin Liska <mliska@suse.cz>
29205 PR translation/89936
29206 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29207 order to wrap keywords or arguments.
29208 * collect2.c (main): Likewise.
29209 (scan_prog_file): Likewise.
29210 (scan_libraries): Likewise.
29211 * common/config/riscv/riscv-common.c
29212 (riscv_subset_list::parsing_subset_version): Likewise.
29213 (riscv_subset_list::parse_std_ext): Likewise.
29214 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29216 * config/arm/arm.c (arm_option_override): Likewise.
29217 * config/cris/cris.c (cris_print_operand): Likewise.
29218 * config/darwin-c.c (darwin_pragma_options): Likewise.
29219 (darwin_pragma_unused): Likewise.
29220 (darwin_pragma_ms_struct): Likewise.
29221 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29222 * config/i386/i386.c (print_reg): Likewise.
29223 (ix86_print_operand): Likewise.
29224 * config/i386/xm-djgpp.h: Likewise.
29225 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29226 * config/m32c/m32c.c (m32c_option_override): Likewise.
29227 * config/msp430/msp430.c (msp430_option_override): Likewise.
29228 * config/nds32/nds32.c (nds32_option_override): Likewise.
29229 * config/nvptx/mkoffload.c (main): Likewise.
29230 * config/rx/rx.c (rx_print_operand): Likewise.
29231 (valid_psw_flag): Likewise.
29232 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29233 (vms_pragma_nomember_alignment): Likewise.
29234 (vms_pragma_extern_model): Likewise.
29235 * lto-wrapper.c (compile_offload_image): Likewise.
29236 * omp-offload.c (oacc_parse_default_dims): Likewise.
29237 * symtab.c (symtab_node::verify_base): Likewise.
29238 * tlink.c (recompile_files): Likewise.
29239 (start_tweaking): Likewise.
29240 * tree-profile.c (parse_profile_filter): Likewise.
29242 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29244 PR tree-optimization/89956
29245 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29246 multiple negates of the same value.
29248 2019-04-04 Martin Sebor <msebor@redhat.com>
29250 PR middle-end/89957
29251 PR middle-end/89911
29252 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29253 have the same precision since the function crashes otherwise.
29254 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29255 has non-zero arguments.
29257 2019-04-04 Martin Sebor <msebor@redhat.com>
29259 PR middle-end/89934
29260 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29261 out if the number of arguments is less than expected.
29263 2019-04-04 Jeff Law <law@redhat.com>
29265 PR rtl-optimization/89399
29266 * ree.c (combine_set_extension): Use single_set rather than
29267 digging into PATTERN for items on the candidate list.
29268 (combine_reaching_defs): Likewise.
29270 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29272 PR rtl-optimization/46590
29273 * loop-invariant.c (find_defs): Move df_remove_problem and
29274 df_process_deferred_rescans to move_invariants.
29275 Move df_live_add_problem and df_live_set_all_dirty calls
29276 to move_invariants.
29277 (move_invariants): Likewise.
29278 (move_loop_invariants): Likewise, making the df_live calls
29279 conditional on -O. Remove the problem again if we added it
29282 2019-04-03 qing zhao <qing.zhao@oracle.com>
29284 PR tree-optimization/89730
29285 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29286 -flive-patching=inline-only-static.
29287 (can_inline_edge_by_limits_p): Add the checking for
29288 -flive-patching=inline-only-static and grant always_inline
29289 even when -flive-patching=inline-only-static is specified.
29291 2019-04-03 Jeff Law <law@redhat.com>
29293 PR rtl-optimization/81025
29294 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29296 2019-04-03 Richard Biener <rguenther@suse.de>
29298 PR tree-optimization/84101
29299 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29300 regs.h for hard_regno_nregs.
29301 (cfun_returns): New helper.
29302 (vect_model_store_cost): When vectorizing a store to a decl
29303 we return and the function ABI returns in a multi-reg location
29304 account for the possible spilling that will happen.
29306 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29308 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29309 displacement addresses for vector mode operands.
29311 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29313 * config/arc/arc.c (GMASK_LEN): Define.
29314 (arc_restore_callee_saves): Restore first blink when
29317 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29319 * doc/extend.texi: Add deprecated comment on sign-return-address
29320 function attribute and add mbranch-protection.
29321 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29323 2019-04-03 Richard Biener <rguenther@suse.de>
29326 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29327 the all target phony.
29329 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29333 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29334 Return false for variable DImode shifts.
29335 (dimode_scalar_chain::compute_convert_gain): Do not handle
29336 register count operand in variable DImode shifts.
29337 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29338 count argument of a variable shift instruction to a vector register.
29339 (dimode_scalar_chain::convert_reg): Remove support to convert
29340 count argument of a variable shift instruction.
29342 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29344 PR rtl-optimization/84206
29345 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29346 iterating over loop headers.
29348 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29350 PR rtl-optimization/85876
29351 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29352 beyond the original fence.
29354 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29356 * config.gcc: Mark spu* targets as deprecated/obsolete.
29358 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29360 * config/s390/s390-builtin-types.def: New builtin function type
29361 definitions. Remove unused types.
29362 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29363 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29364 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29365 overloaded builtins.
29366 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29367 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29368 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29369 (vec_double, vec_signed, vec_unsigned): Define to use the new
29370 overloaded builtins.
29371 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29374 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29376 * config/s390/s390-builtin-types.def: New builtin function type
29378 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29379 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29380 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29381 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29382 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29383 constant definitions.
29384 * config/s390/vecintrin.h (vec_search_string_cc)
29385 (vec_search_string_until_zero_cc): New builtin name definitions.
29386 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29388 ("vec_vstrs<mode>"): New insn definition.
29390 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29392 * config/s390/s390-builtin-types.def: Add new builtin function
29394 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29395 New overloaded builtins.
29396 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29398 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29399 (UNSPEC_VEC_SLDBYTE): ... this.
29400 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29401 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29403 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29404 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29405 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29407 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29409 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29410 New insn definition.
29411 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29412 * config/s390/vector.md (V_HW_HSD): ... here.
29414 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29416 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29417 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29418 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29419 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29420 New insn definitions.
29422 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29424 * config/s390/s390-builtin-types.def: Add new builtin function type.
29425 * config/s390/s390-builtins.def: Add overloaded builtin
29426 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29427 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29428 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29429 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29430 ("eltswap<mode>"): New expander.
29431 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29434 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29436 * config/s390/s390-builtin-types.def: Add new builtin function types.
29437 * config/s390/s390-builtins.def: Add overloaded builtin
29438 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29440 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29441 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29442 ("bswap<mode>"): New expander.
29443 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29445 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29447 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29448 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29449 vector builtin version number in __VEC__.
29451 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29453 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29455 (SFSI): New mode attribute.
29456 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29457 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29459 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29460 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29461 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29462 ("floatsi<mode>2"): Add wcefb instruction.
29464 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29466 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29467 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29469 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29470 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29471 support 32 bit fp-int conversions. Rename to ...
29472 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29473 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29474 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29475 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29478 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29480 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29481 if-then-else constructs if we can use the select instruction.
29482 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29484 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29486 * config/s390/s390.md ("*popcountdi_arch13_cc")
29487 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29489 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29490 Append _z196 to make it ...
29491 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29492 ("popcounthi2_z196"): ... this.
29493 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29494 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29496 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29498 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29499 certain compares for arch13 in order to make use of the condition
29500 code result produced by the new instructions.
29501 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29502 nxrk, and nxgrk instruction patterns.
29503 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29504 (inv_no): Add new code iterator together with some attributes.
29505 ("*andc_split_<mode>"): Disable splitter for arch13.
29506 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29507 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29508 ("*<ANDOR:bitops_name>c<GPR:mode>")
29509 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29510 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29511 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29512 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29514 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29516 * common/config/s390/s390-common.c (processor_flags_table): New
29518 * config.gcc: Support arch13 with the --with-arch= configure flag.
29519 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29520 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29521 * config/s390/s390.c (s390_get_sched_attrmask)
29522 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29523 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29524 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29525 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29526 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29528 * config/s390/s390.opt: Support arch13 as processor type in
29529 command line options.
29531 2019-04-02 Martin Liska <mliska@suse.cz>
29533 PR translation/89912
29534 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29535 Fix param description of graphite-max-arrays-per-scop.
29537 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29539 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29540 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29541 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29543 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29545 PR rtl-optimization/85412
29546 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29547 sel_sched_region_1, not after.
29549 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29551 PR rtl-optimization/86928
29552 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29553 compute_live if necessary.
29554 (sel_redirect_edge_and_branch): Likewise.
29556 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29558 PR rtl-optimization/89865
29559 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29560 register if it is a part of small class.
29562 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29564 PR rtl-optimization/87273
29565 * sel-sched-ir.c (merge_fences): Remove assert.
29567 2019-04-01 Richard Biener <rguenther@suse.de>
29569 PR tree-optimization/46590
29570 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29571 (dom_walker::m_reachability): Add in place of...
29572 (dom_walker::m_skip_unreachable_blocks): ...this.
29573 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29574 Move complex initialization ...
29575 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29576 lazily and initialize edge flags on each invocation.
29577 (dom_walker::bb_reachable): Use m_reachability.
29579 2019-04-01 Martin Liska <mliska@suse.cz>
29582 * opt-suggestions.c (option_proposer::build_option_suggestions):
29583 Add variant without any argument in order to provide better
29586 2019-04-01 Richard Biener <rguenther@suse.de>
29589 * gimple.c: Include langhooks.h.
29590 (gimple_get_alias_set): Treat enumeral types as the underlying
29593 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29594 Eric Botcazou <ebotcazou@adacore.com>
29596 PR rtl-optimization/89862
29597 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29598 that operates on the full registers for WORD_REGISTER_OPERATIONS
29601 2019-03-29 Jim Wilson <jimw@sifive.com>
29603 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29604 Clear MASK_RVC and then set if C subset supported.
29606 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29609 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29610 non-addressable complit into its initializer if it is volatile.
29612 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29614 * opts-common.c (integral_argument): Set errno properly in one case.
29616 2019-03-29 Martin Liska <mliska@suse.cz>
29618 * doc/invoke.texi: Remove -Wchkp from documentation.
29620 2019-03-29 Martin Liska <mliska@suse.cz>
29622 * dbgcnt.c (print_limit_reach): New function.
29625 2019-03-29 Martin Liska <mliska@suse.cz>
29627 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29628 (dbg_cnt_process_opt): Parse first tokens aas
29629 dbg_cnt_process_single_pair is also using strtok.
29631 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29633 PR rtl-optimization/87485
29634 * function.c (expand_function_end): Move stack_protect_epilogue
29635 before loading of return value into hard register(s).
29637 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29639 PR middle-end/89621
29640 * tree-inline.h (struct copy_body_data): Add
29641 dont_remap_vla_if_no_change flag.
29642 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29643 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29644 and remap_type_2 returns false.
29645 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29646 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29647 only from where it is copied to nested contexts.
29649 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29652 * config/i386/i386.md (RMW operation with LEA peephole):
29653 Use LEAMODE mode attribute instead of SWI mode iterator for
29656 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29659 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29660 Also process XEXP (src, 0) of a shift insn.
29662 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29664 PR middle-end/89725
29665 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29666 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29668 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29670 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29672 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29673 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29674 immediately after first one with df_analyze in between, but rather
29675 process all bbs, queueing ones that need second pass in a worklist,
29676 df_analyze, process queued debug insn changes and if second pass is
29677 needed, process bbs from worklist, df_analyze, process queued debug
29680 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29681 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29682 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29684 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29687 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29690 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29693 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29694 function for 32-bit MS_ABI.
29695 (function_value_ms_32): New function.
29697 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29699 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29700 (movdi): Call gen_movdi_symbol_save_scc.
29701 (gen_movdi_symbol_save_scc): New insn and split.
29703 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29705 PR rtl-optimization/89313
29706 * function.c (matching_constraint_num): New static function.
29707 (match_asm_constraints_1): Use it. Fixup white space and comment.
29708 Don't replace inputs with non-matching constraints which conflict
29709 with early clobber outputs.
29711 2019-03-27 Jeff Law <law@redhat.com>
29713 PR rtl-optimization/87761
29714 PR rtl-optimization/89826
29715 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29717 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29718 note problem to get REG_DEAD/REG_UNUSED notes updated.
29720 2019-03-27 Richard Biener <rguenther@suse.de>
29722 PR tree-optimization/89463
29723 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29724 queue edges to remove.
29725 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29726 dead stmts. Delay edge removal until PHIs are removed to
29727 make debug-stmt creation not confused by seemingly degenerate
29730 2019-03-27 Alan Modra <amodra@gmail.com>
29732 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29734 * config/rs6000/darwin.h: Likewise.
29735 * config/rs6000/rs6000.c: Likewise.
29737 2019-03-27 Alan Modra <amodra@gmail.com>
29739 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29740 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29742 2019-03-26 Andrew Waterman <andrew@sifive.com>
29743 Jim Wilson <jimw@sifive.com>
29745 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29746 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29747 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29748 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29749 (generic_alu): Add auipc to type list.
29750 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29751 (riscv_microarchitecture): Declare.
29752 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29753 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29755 (riscv_microarchitecture): New.
29756 (sifive_7_tune_info): New.
29757 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29758 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29760 (riscv_store_data_bypass_p): New.
29761 (riscv_option_override): Set riscv_microarchitecture from
29762 cpu->microarchitecture.
29763 * config/riscv/riscv.md: Include sifive-7.md.
29766 (auipc<mode>): Change type to auipc.
29767 (restore_stack_nonlocal): New.
29768 * config/riscv/sifive-7.md: New.
29769 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29771 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29774 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29775 Also process XEXP (src, 0) of a shift insn.
29777 2019-03-26 Richard Biener <rguenther@suse.de>
29779 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29780 (copy_debug_stmt): Likewise.
29781 (expand_call_inline): Likewise.
29782 (copy_bb): Avoid redundant lookup & set of gimple_block.
29783 * gimple-low.c (lower_gimple_return): Likewise.
29784 (lower_builtin_setjmp): Likewise.
29786 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29788 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29789 is constant 0, turn into static const data member initialized to false.
29790 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29791 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29793 2019-03-26 Jason Merrill <jason@redhat.com>
29794 Jakub Jelinek <jakub@redhat.com>
29796 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29798 (mem_alloc_description::release_object_overhead): Fix comment typos.
29799 * hash-table.h (hash_table::~hash_table): Call
29800 release_instance_overhead only if m_entries is non-NULL, otherwise
29801 call unregister_descriptor.
29803 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29805 PR tree-optimization/81740
29806 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29807 In case of outer loop vectorization, check for backward dependence
29808 at the inner loop if outer loop dependence is reversed.
29810 2019-03-26 Alan Modra <amodra@gmail.com>
29812 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29813 rs6000_vector_mem init. Correct wI and wJ comment.
29815 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29817 PR rtl-optimization/88347
29818 PR rtl-optimization/88423
29819 * sched-deps.c (sched_analyze_insn): Take into account that for
29820 tablejumps the barrier appears after a label and a jump_table_data.
29822 2019-03-25 Martin Sebor <msebor@redhat.com>
29825 * c-common.c (check_user_alignment): Rename local. Correct maximum
29826 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29827 convert it to UHWI when it fits.
29829 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29832 * dwarf2out.c (premark_used_variables): New function.
29833 (prune_unused_types_walk): Do not mark not premarked external
29835 (prune_unused_types): Call premark_used_variables.
29837 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29839 PR rtl-optimization/89676
29840 * lra-constraints.c (curr_insn_transform): Do match reload for
29841 early clobbers when the match was successful only for different
29844 2019-03-25 Martin Sebor <msebor@redhat.com>
29846 * doc/extend.texi (Common Type Attributes): Document vector_size.
29847 (Common Variable Attributes): Mention size constraint. Correct
29849 (Vector Extensions): Use @dfn when defining bas type. Clarify
29850 base type and size constraints.
29852 2019-03-25 Richard Biener <rguenther@suse.de>
29854 PR tree-optimization/89789
29855 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29856 changes from non-undefined back to undefined.
29858 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29860 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29861 heap string and a gc string, but since this variable is unknown to
29862 ggc the gc string might get reused and corrupted. Fixed by always
29863 using a heap string.
29865 2019-03-25 Richard Biener <rguenther@suse.de>
29867 PR tree-optimization/89779
29868 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29869 to remove IV defs, delay actual removal.
29870 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29871 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29872 very end, properly also reset loop control IV information.
29874 2019-03-25 Richard Biener <rguenther@suse.de>
29876 PR tree-optimization/89802
29877 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29878 move EH data to folded stmt.
29880 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29882 * config/s390/s390-builtin-types.def: Remove few unused types and
29883 fix sort order for others.
29885 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29887 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29888 expected and found types with -mdebug during builtin matching.
29890 2019-03-25 Richard Biener <rguenther@suse.de>
29892 PR middle-end/89790
29893 * fold-const.c (operand_equal_p): Revert last change with
29896 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29898 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29899 notes for the result of the __tls_get_addr calls.
29900 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29902 2019-03-24 Jeff Law <law@redhat.com>
29904 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29906 PR rtl-optimization/87761
29907 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29908 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29910 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29911 rescans. Reprocess blocks as needed, calling df_analyze before
29912 reprocessing. Always call df_analyze before fixing up debug bind
29915 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29917 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29920 2019-03-22 Andrew Pinski <apinski@marvell.com>
29922 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29923 attrribute for uxtw.
29925 2019-03-26 Jeff Law <law@redhat.com>
29927 PR rtl-optimization/87761
29928 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29929 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29930 (mips_split_move): Accept new INSN argument. Try to forward SRC
29931 into the next instruction.
29932 (mips_split_move_insn): Pass INSN through to mips_split_move.
29934 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29936 PR rtl-optimization/89676
29937 * lra-constraints.c (curr_insn_transform): Do match reload for
29938 early clobbers even if the match was successful.
29940 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29943 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
29945 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
29947 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
29949 2019-03-22 Jakub Jelinek <jakub@redhat.com>
29951 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
29952 <avx512>_fmsub_<mode>_mask3<round_name>,
29953 <avx512>_fnmadd_<mode>_mask3<round_name>,
29954 <avx512>_fnmsub_<mode>_mask3<round_name>,
29955 avx512f_vmfmadd_<mode>_mask3<round_name>,
29956 avx512f_vmfmsub_<mode>_mask3<round_name>,
29957 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
29958 instead of register_operand and %v instead of v for match_operand 1.
29959 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
29960 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
29961 <round_nimm_predicate> instead of register_operand and %v instead of v
29962 for match_operand 1.
29964 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
29965 <avx512>_fmadd_<mode>_mask3<round_name>,
29966 <avx512>_fmsub_<mode>_mask<round_name>,
29967 <avx512>_fmsub_<mode>_mask3<round_name>,
29968 <avx512>_fnmadd_<mode>_mask<round_name>,
29969 <avx512>_fnmadd_<mode>_mask3<round_name>,
29970 <avx512>_fnmsub_<mode>_mask<round_name>,
29971 <avx512>_fnmsub_<mode>_mask3<round_name>,
29972 <avx512>_fmaddsub_<mode>_mask<round_name>,
29973 <avx512>_fmaddsub_<mode>_mask3<round_name>,
29974 <avx512>_fmsubadd_<mode>_mask<round_name>,
29975 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
29976 <round_nimm_predicate> instead of nonimmediate_operand.
29977 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
29978 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
29979 Use register_operand instead of <round_nimm_predicate> for the
29980 operand that needs to match output.
29981 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
29982 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
29983 Likewise. Formatting fixes.
29986 * config/i386/i386.c (enum ix86_builtins): Remove
29987 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
29988 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
29989 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
29990 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
29991 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
29992 __builtin_ia32_vfmsubss3_mask3): New builtins.
29993 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
29994 avx512f_vmfmadd_<mode>_mask3<round_name>,
29995 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
29996 *avx512f_vmfmsub_<mode>_mask<round_name>,
29997 avx512f_vmfmsub_<mode>_mask3<round_name>,
29998 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
29999 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30000 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30001 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30002 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30003 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30004 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30005 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30006 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30007 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30008 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30009 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30010 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30011 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30012 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30013 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30014 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30015 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30016 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30017 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30018 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30019 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30020 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30021 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30022 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30023 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30024 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30025 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30027 2019-03-21 Martin Sebor <msebor@redhat.com>
30029 PR tree-optimization/89350
30030 * builtins.c (compute_objsize): Also ignore offsets whose upper
30032 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30033 (builtin_memref::builtin_memref): Initialize new member.
30034 Allow EXPR to be null.
30035 (builtin_memref::extend_offset_range): Replace local with a member.
30036 Avoid assuming pointer offsets are unsigned.
30037 (builtin_memref::set_base_and_offset): Determine base object
30038 before computing offset range.
30039 (builtin_access::builtin_access): Handle memset.
30040 (builtin_access::generic_overlap): Replace local with a member.
30041 (builtin_access::strcat_overlap): Same.
30042 (builtin_access::overlap): Same.
30043 (maybe_diag_overlap): Same.
30044 (maybe_diag_access_bounds): Same.
30045 (wrestrict_dom_walker::check_call): Handle memset.
30046 (check_bounds_or_overlap): Same.
30048 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30049 Jakub Jelinek <jakub@redhat.com>
30052 * tree.c (fld_type_variant, fld_incomplete_type_of,
30053 fld_process_array_type): Call fld->pset.add and don't call
30054 add_tree_to_fld_list if it returns true.
30055 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30056 non-marked types from TYPE_NEXT_VARIANT list.
30057 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30059 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30061 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30062 to false, if true, don't alloc_entries during construction, but defer
30063 it to the first method that needs m_entries allocated.
30064 (hash_table::hash_table, hash_table::~hash_table,
30065 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30066 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30067 hash_table::clear_slot, hash_table::traverse_noresize,
30068 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30069 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30071 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30072 NO_INSERT instead of find_with_hash.
30073 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30074 hash_set::m_table): Add Lazy to template params of hash_table.
30075 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30076 * attribs.c (test_attribute_exclusions): Likewise.
30077 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30078 hash_set. Add tests for hash_set with Lazy = true.
30080 2019-03-21 Richard Biener <rguenther@suse.de>
30082 PR tree-optimization/89779
30083 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30084 checks with respect to released SSA names now having error_mark_node
30086 * fold-const.c (operand_equal_p): Likewise.
30088 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30091 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30093 (s390_optimize_register_info): Use global_not_special_regno_p to
30094 check for global regs.
30096 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30099 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30100 update this_alternative nor this_alternative_set.
30102 2019-03-19 Jim Wilson <jimw@sifive.com>
30105 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30106 align, size, offset. Use them to handle a BLKmode reference. Update
30108 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30110 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30112 PR rtl-optimization/89768
30113 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30114 instead of GEN_INT.
30115 (unroll_loop_runtime_iterations): Likewise.
30117 2019-03-19 Martin Sebor <msebor@redhat.com>
30119 PR tree-optimization/89644
30120 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30121 rather than endptr as an indicator of nul-termination.
30123 PR tree-optimization/89644
30124 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30125 arrays in determining sequence sizes in strncpy and stpncpy.
30127 2019-03-19 Martin Liska <mliska@suse.cz>
30129 PR middle-end/89737
30130 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30131 unlikely_edges if there's an edge that belongs to both these sets.
30133 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30136 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30137 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30138 go via a stack temporary.
30140 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30143 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30144 instead of gen_rtx_SUBREG.
30145 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30147 2019-03-19 Richard Biener <rguenther@suse.de>
30150 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30152 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30156 * tree.c (free_lang_data_in_decl): Do not free context of C++
30159 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30162 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30163 subs for the first alternative except when operands[3] is 1.
30166 * gimplify.c (gimplify_asm_expr): For output argument with
30167 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30170 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30172 PR rtl-optimization/89753
30173 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30174 explicit unrolling factor even more robust.
30176 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30179 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30180 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30181 signed zeros, do another copysign after the compensation.
30183 2019-03-18 Martin Sebor <msebor@redhat.com>
30185 PR tree-optimization/89720
30186 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30187 more conservatively, the same as anti-range.
30189 2019-03-18 Richard Biener <rguenther@suse.de>
30191 PR middle-end/88945
30192 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30193 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30194 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30195 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30197 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30199 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30200 Extend queue to 1024 entries.
30201 Add "consumed" field.
30202 (gomp_print_output): Remove print_index parameter.
30203 Add final parameter.
30204 Change limit to unsigned.
30205 Use consumed field to implement circular buffer.
30206 Detect interrupted print in final pass.
30207 Flush output at the end.
30208 (run): Update gomp_print_output usage.
30209 (main): Initialize kernargs->output_data.consumed.
30211 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30213 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30214 calculation of the minimum number of scalar iterations for
30215 fully-predicated loops.
30217 2019-03-18 Martin Jambor <mjambor@suse.cz>
30219 PR tree-optimization/89546
30220 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30221 any propagation to its children took place.
30223 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30226 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30227 parameter, and make use of it.
30228 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30230 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30232 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30233 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30234 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30235 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30236 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30237 match what the ops is doing.
30238 (push_multi_fp_blink): Likewise.
30239 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30240 compiling for size and elf target.
30241 (arc_save_callee_enter): Adjust note to match what enter/leave
30244 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30246 * config/arc/arc.md (tst_movb): Fix constraint.
30248 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30250 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30252 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30254 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30255 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30256 reg_alloc_order references.
30257 (size_alloc_order): Define.
30258 (arc_adjust_reg_alloc_order): New function.
30259 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30261 (ADJUST_REG_ALLOC_ORDER): Define.
30262 (HONOR_REG_ALLOC_ORDER): Likewise.
30264 2019-03-18 Richard Biener <rguenther@suse.de>
30267 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30268 loads and stores a bit more.
30270 2019-03-18 Richard Biener <rguenther@suse.de>
30273 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30274 load pessimization to stores as well.
30276 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30278 PR middle-end/86979
30279 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30280 successor, use NULL as its av set.
30282 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30284 PR rtl-optimization/89721
30285 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30287 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30290 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30291 When handling vec_extract, use modular arithmetic to allow
30292 constant selectors greater than vector length.
30293 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30294 V1TImode vectors to have constant selector values greater than 0.
30295 Use modular arithmetic to compute vector index.
30296 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30297 index for in-memory vectors. Correct code generation for
30298 in-register vectors.
30299 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30302 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30306 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30309 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30312 * tree.c (inchash::add_expr): Strip any location wrappers.
30313 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30314 after hash verification.
30317 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30318 SIGN_EXTEND and ZERO_EXTEND.
30320 2019-03-14 Jason Merrill <jason@redhat.com>
30321 Jakub Jelinek <jakub@redhat.com>
30323 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30324 than if is_empty (*slot).
30325 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30326 existing elt and for elt removal.
30327 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30328 of already removed elt.
30330 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30333 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30334 REG_EH_REGION note.
30336 2019-03-14 Martin Liska <mliska@suse.cz>
30339 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30341 2019-03-14 Richard Biener <rguenther@suse.de>
30344 * config/i386/i386.c (make_resolver_func): Properly set
30345 DECL_CONTEXT on the RESULT_DECL.
30346 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30348 2019-03-14 Richard Biener <rguenther@suse.de>
30350 * gimple-pretty-print.c: Include cfgloop.h.
30351 (dump_gimple_phi): Adjust.
30352 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30353 (pp_cfg_jump): Adjust.
30354 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30355 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30356 (lower_phi_internal_fn): Remove.
30357 (verify_gimple_call): Remove IFN_PHI special-casing.
30358 (dump_function_to_file): Dump IL state.
30359 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30360 done to deal with PHI nodes being present in non-SSA state.
30362 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30365 * multiple_target.c (create_dispatcher_calls): Change
30366 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30367 In the node->iterate_referring loop, push *ref rather than ref, call
30368 ref->remove_reference () and always pass 0 to iterate_referring.
30370 PR rtl-optimization/89679
30371 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30372 would contain a paradoxical SUBREG.
30374 2019-03-14 Richard Biener <rguenther@suse.de>
30376 PR tree-optimization/89710
30377 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30380 2019-03-14 Martin Liska <mliska@suse.cz>
30382 * coverage.c (coverage_begin_function): Stream also
30384 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30385 documentation about function declaration location.
30386 * gcov-dump.c (tag_function): Print whole range
30387 of function declaration.
30388 * gcov.c (struct function_info): Add end_column field.
30389 (function_info::function_info): Initialize it.
30390 (output_json_intermediate_file): Output {start,end}_column
30392 (read_graph_file): Read end_column.
30394 2019-03-14 Richard Biener <rguenther@suse.de>
30396 PR middle-end/89698
30397 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30398 that the access types are similar.
30400 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30402 PR tree-optimization/89703
30403 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30404 aren't compatible also with builtin_decl_explicit. Check pure
30405 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30406 and BUILT_IN_STPNCPY{,_CHK}.
30408 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30411 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30412 addr32 prefix to VSIB address for X32.
30413 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30415 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30416 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30417 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30418 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30419 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30420 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30421 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30422 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30423 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30424 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30425 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30426 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30427 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30428 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30429 (*avx512f_scatterdi<mode>): Likewise.
30431 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30434 * lra-constraints.c (inherit_in_ebb): Update
30435 potential_reload_hard_regs along with live_hard_regs.
30437 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30440 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30442 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30444 2019-03-13 Martin Sebor <msebor@redhat.com>
30446 PR tree-optimization/89662
30447 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30450 2019-03-13 Richard Biener <rguenther@suse.de>
30452 PR middle-end/89677
30453 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30454 throw FP expressions at tree-affine.
30456 2019-03-14 Richard Biener <rguenther@suse.de>
30458 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30459 dump negative integer constants using _Literal (type) -num.
30461 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30463 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30464 nonlocal_value member.
30466 PR middle-end/88588
30467 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30468 (ipa_simd_modify_function_body): Handle PHIs.
30470 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30472 * config/s390/s390.c (s390_option_override_internal): Use more
30473 aggressive inlining parameters.
30475 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30477 * config/s390/3906.md: New file.
30478 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30479 (LONGRUNNING_THRESHOLD): Remove.
30480 (MAX_SCHED_MIX_SCORE): Decrease.
30481 (MAX_SCHED_MIX_DISTANCE): Decrease.
30482 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30483 (struct s390_sched_state): New struct to hold scheduling state.
30484 (S390_SCHED_STATE_NORMAL): Remove.
30485 (S390_SCHED_STATE_CRACKED): Remove.
30486 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30487 (s390_get_sched_attrmask): Use new attribute.
30488 (s390_get_unit_mask): Use new units.
30489 (s390_is_fpd): New function.
30490 (s390_is_fxd): New function.
30491 (s390_is_longrunning): New function.
30492 (s390_sched_score): Use new functions.
30493 (s390_sched_reorder): Likewise.
30494 (s390_sched_variable_issue): Rework and use new functions.
30495 (s390_sched_init): Use new functions.
30496 * config/s390/s390.h (s390_tune_attr): Add z14.
30497 * config/s390/s390.md: Add z14.
30499 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30501 * config/s390/2964.md: Update pipeline description.
30502 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30503 (LONGRUNNING_THRESHOLD): Remove.
30504 (LATENCY_FACTOR): Remove.
30505 (s390_get_unit_mask): Add unit.
30506 (s390_sched_score): Use fxd/fpd.
30507 (s390_sched_variable_issue): Use fxd/fpd.
30509 2019-03-12 Martin Liska <mliska@suse.cz>
30511 * config/i386/i386.c: Reword an error message.
30513 2019-03-12 Martin Jambor <mjambor@suse.cz>
30515 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30516 terminate with newline.
30518 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30521 * config/s390/s390.md (tabort): Use %wd instead of
30522 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30523 letters and periods.
30524 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30525 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30528 PR middle-end/89663
30529 * builtins.c (expand_builtin_int_roundingfn,
30530 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30531 gcc_unreachable if validate_arglist fails.
30533 2019-03-12 Richard Biener <rguenther@suse.de>
30535 PR tree-optimization/89664
30536 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30537 free the occurance tree after the early out.
30539 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30541 PR middle-end/89655
30543 * vr-values.c (vr_values::update_value_range): If
30544 old_vr->varying_p (), don't update it, make new_vr also VARYING
30547 2019-03-11 Martin Liska <mliska@suse.cz>
30549 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30550 Fix double string quoting.
30552 2019-03-11 Martin Liska <mliska@suse.cz>
30554 * collect-utils.c (collect_wait): Wrap apostrophes
30555 in gcc internal format with %'.
30556 * collect2.c (main): Likewise.
30557 (scan_prog_file): Likewise.
30558 (scan_libraries): Likewise.
30559 * config/i386/i386.c (ix86_expand_call): Likewise.
30560 (ix86_handle_interrupt_attribute): Likewise.
30561 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30562 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30563 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30564 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30565 * symtab.c (symtab_node::verify_base): Likewise.
30566 * tree-cfg.c (verify_gimple_label): Likewise.
30567 * tree.c (verify_type_variant): Likewise.
30569 2019-03-11 Martin Liska <mliska@suse.cz>
30571 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30572 in a string format message and fix GNU coding style.
30573 (expand_builtin_set_thread_pointer): Likewise.
30574 * common/config/aarch64/aarch64-common.c
30575 (aarch64_rewrite_selected_cpu): Likewise.
30576 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30577 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30578 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30579 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30580 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30581 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30582 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30583 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30584 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30585 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30587 * common/config/riscv/riscv-common.c
30588 (riscv_subset_list::parsing_subset_version): Likewise.
30589 (riscv_subset_list::parse_std_ext): Likewise.
30590 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30591 (riscv_subset_list::parse): Likewise.
30592 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30593 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30594 (aarch64_override_options_internal): Likewise.
30595 (aarch64_validate_mcpu): Likewise.
30596 (aarch64_validate_march): Likewise.
30597 (aarch64_validate_mtune): Likewise.
30598 (aarch64_override_options): Likewise.
30599 * config/alpha/alpha.c (alpha_option_override): Likewise.
30600 * config/arc/arc.c (arc_init): Likewise.
30601 (parse_mrgf_banked_regs_option): Likewise.
30602 (arc_override_options): Likewise.
30603 (arc_expand_builtin_aligned): Likewise.
30604 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30605 (arm_expand_builtin): Likewise.
30606 * config/arm/arm.c (arm_option_check_internal): Likewise.
30607 (arm_configure_build_target): Likewise.
30608 (arm_option_override): Likewise.
30609 (arm_options_perform_arch_sanity_checks): Likewise.
30610 (arm_handle_cmse_nonsecure_entry): Likewise.
30611 (arm_handle_cmse_nonsecure_call): Likewise.
30612 (arm_tls_referenced_p): Likewise.
30613 (thumb1_expand_prologue): Likewise.
30614 * config/avr/avr.c (avr_option_override): Likewise.
30615 * config/bfin/bfin.c (bfin_option_override): Likewise.
30616 * config/c6x/c6x.c (c6x_option_override): Likewise.
30617 * config/cr16/cr16.c (cr16_override_options): Likewise.
30618 * config/cris/cris.c (cris_option_override): Likewise.
30619 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30620 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30621 * config/darwin.c (darwin_override_options): Likewise.
30622 * config/frv/frv.c (frv_expand_builtin): Likewise.
30623 * config/h8300/h8300.c (h8300_option_override): Likewise.
30624 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30625 (ix86_option_override_internal): Likewise.
30626 (warn_once_call_ms2sysv_xlogues): Likewise.
30627 (ix86_expand_prologue): Likewise.
30628 (split_stack_prologue_scratch_regno): Likewise.
30629 (ix86_warn_parameter_passing_abi): Likewise.
30630 * config/ia64/ia64.c (fix_range): Likewise.
30631 * config/m68k/m68k.c (m68k_option_override): Likewise.
30632 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30633 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30634 (mips_set_compression_mode): Likewise.
30635 * config/mmix/mmix.c (mmix_option_override): Likewise.
30636 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30637 * config/msp430/msp430.c (msp430_option_override): Likewise.
30638 * config/nds32/nds32.c (nds32_option_override): Likewise.
30639 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30640 (nios2_option_override): Likewise.
30641 (nios2_expand_custom_builtin): Likewise.
30642 * config/nvptx/mkoffload.c (main): Likewise.
30643 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30644 * config/pa/pa.c (fix_range): Likewise.
30645 (pa_option_override): Likewise.
30646 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30647 (riscv_option_override): Likewise.
30648 * config/rl78/rl78.c (rl78_option_override): Likewise.
30649 * config/rs6000/aix61.h: Likewise.
30650 * config/rs6000/aix71.h: Likewise.
30651 * config/rs6000/aix72.h: Likewise.
30652 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30653 * config/rs6000/freebsd64.h: Likewise.
30654 * config/rs6000/linux64.h: Likewise.
30655 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30656 (rs6000_expand_zeroop_builtin): Likewise.
30657 (rs6000_expand_mtfsb_builtin): Likewise.
30658 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30659 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30660 (rs6000_invalid_builtin): Likewise.
30661 (rs6000_expand_split_stack_prologue): Likewise.
30662 * config/rs6000/rtems.h: Likewise.
30663 * config/rx/rx.c (valid_psw_flag): Likewise.
30664 (rx_expand_builtin): Likewise.
30665 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30666 * config/s390/s390.c (s390_expand_builtin): Likewise.
30667 (s390_function_profiler): Likewise.
30668 (s390_option_override_internal): Likewise.
30669 (s390_option_override): Likewise.
30670 * config/sh/sh.c (sh_option_override): Likewise.
30671 (sh_builtin_saveregs): Likewise.
30672 (sh_fix_range): Likewise.
30673 * config/sh/vxworks.h: Likewise.
30674 * config/sparc/sparc.c (sparc_option_override): Likewise.
30675 * config/spu/spu.c (spu_option_override): Likewise.
30676 (fix_range): Likewise.
30677 * config/visium/visium.c (visium_option_override): Likewise.
30678 (visium_handle_interrupt_attr): Likewise.
30679 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30680 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30681 (dbg_cnt_process_opt): Likewise.
30682 * dwarf2out.c (output_dwarf_version): Likewise.
30683 * except.c (expand_eh_return): Likewise.
30684 * gcc.c (defined): Likewise.
30685 (driver_handle_option): Likewise.
30686 (process_command): Likewise.
30687 (compare_files): Likewise.
30688 (driver::prepare_infiles): Likewise.
30689 (driver::do_spec_on_infiles): Likewise.
30690 (driver::maybe_run_linker): Likewise.
30691 * omp-offload.c (oacc_parse_default_dims): Likewise.
30692 * opts-global.c (handle_common_deferred_options): Likewise.
30693 * opts.c (parse_sanitizer_options): Likewise.
30694 (common_handle_option): Likewise.
30695 (enable_warning_as_error): Likewise.
30696 * passes.c (enable_disable_pass): Likewise.
30697 * plugin.c (parse_plugin_arg_opt): Likewise.
30698 (default_plugin_dir_name): Likewise.
30699 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30700 (default_pch_valid_p): Likewise.
30701 * toplev.c (init_asm_output): Likewise.
30702 (process_options): Likewise.
30703 (toplev::run_self_tests): Likewise.
30704 * tree-cfg.c (verify_gimple_call): Likewise.
30705 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30706 (tree_inlinable_function_p): Likewise.
30707 * var-tracking.c (vt_find_locations): Likewise.
30709 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30711 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30712 only on the else branch.
30714 2019-03-11 Martin Liska <mliska@suse.cz>
30716 * gcov.c (output_intermediate_json_line): Print function
30718 (output_json_intermediate_file): Add new argument.
30719 * doc/gcov.texi: Document the change.
30721 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30723 PR rtl-optimization/89588
30724 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30725 explicit unrolling factor more robust.
30727 2019-03-11 Richard Biener <rguenther@suse.de>
30729 PR tree-optimization/89649
30730 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30731 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30732 on the prolog and epilog loops.
30733 (vect_loop_versioning): Return copy of loop.
30734 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30735 on the non-vectorized version of the loop.
30737 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30740 * config/i386/sse.md (*vec_extractv2di_0_sse):
30741 Add (=r,x) alternative and corresponding splitter.
30743 2019-03-10 Martin Jambor <mjambor@suse.cz>
30745 PR tree-optimization/85762
30746 PR tree-optimization/87008
30747 PR tree-optimization/85459
30748 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30749 it points to if there is a type changing MEM_REF. Adjust all callers.
30750 (build_accesses_from_assign): Disable total scalarization if
30751 contains_vce_or_bfcref_p returns true through the new parameter, for
30754 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30757 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30758 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30761 * common.opt (fdiagnostics-show-labels,
30762 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30763 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30764 gas-locview-support, ginline-points, ginternal-reset-location-views):
30765 Terminate description text with a dot.
30766 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30767 * config/mcore/mcore.opt (m210, m340): Likewise.
30768 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30769 mnops=): Start description text with a capital letter.
30770 * config/arc/arc.opt (msize-level=): Likewise.
30771 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30772 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30773 mnewlib): Likewise.
30774 * config/ft32/ft32.opt (msim): Likewise.
30775 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30776 (mnodiv, mnopm): Terminate description text with a dot.
30777 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30779 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30781 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30784 PR rtl-optimization/89634
30785 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30786 are modified in BB_END (e->src) instruction.
30788 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30791 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30792 messages more amenable to translation, and improve wording.
30794 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30796 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30797 ud- and du-chains between phases.
30799 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30802 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30803 instead of POLY_INT_CST.
30805 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30807 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30810 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30815 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30816 (_mm_storeu_si64): Ditto.
30818 2019-03-08 Martin Liska <mliska@suse.cz>
30821 * config/i386/i386.c (ix86_option_override_internal): Disable
30822 jump tables when retpolines are used.
30824 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30827 * ipa-split.c (execute_split_functions): Do not split
30828 'noinline' or 'section' function.
30830 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30833 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30834 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30835 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30838 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30839 from diagnostics. Formatting fixes.
30842 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30843 warn_odr diagnostics.
30846 * lra-constraints.c (process_alt_operands): Avoid one space before
30847 " at the end of line and another after " on another line in a string
30849 * attribs.c (handle_dll_attribute): Likewise.
30850 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30852 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30853 warning_at or inform messages in G_() if there is no ?:.
30855 PR tree-optimization/89550
30856 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30857 returned true. Formatting fixes.
30858 (expand_builtin_strnlen): Formatting fixes.
30859 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30860 if warning_at returned true.
30861 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30863 2019-03-08 Richard Biener <rguenther@suse.de>
30865 PR middle-end/89578
30866 * cfgloop.h (struct loop): Add owned_clique field.
30867 * cfgloopmanip.c (copy_loop_info): Copy it.
30868 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30870 * tree-inline.c (copy_loops): Remap owned_clique.
30871 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30872 * lto-streamer-out.c (output_cfg): Likewise.
30874 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30877 * config/darwin.c: Include intl.h.
30878 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30879 composing the message out of two separate parts.
30881 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30884 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30885 doesn't start with a capital letter and doesn't end with a dot.
30886 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30887 with a capital letter.
30888 (ix86_mangle_function_version_assembler_name): Likewise.
30889 (ix86_generate_version_dispatcher_body): Likewise.
30890 (fold_builtin_cpu): Likewise.
30891 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30892 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30893 translators, wrap full type name in %qs.
30895 PR translation/79999
30896 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30897 depend clause with source (or sink) modifier.
30898 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30901 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30902 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30903 (avx512f_load<mode>_mask): New define_expand.
30904 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30905 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30906 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30907 __builtin_ia32_movess_mask): New builtins.
30908 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30909 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30910 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30911 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30913 2019-03-07 Martin Jambor <mjambor@suse.cz>
30916 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30917 for extern inline functions.
30919 2019-03-07 Martin Jambor <mjambor@suse.cz>
30922 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30923 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30924 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30925 have multiple callees. At the end check if declarations match as
30926 opposed to cgraph_nodes.
30928 2019-03-07 Martin Liska <mliska@suse.cz>
30930 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30931 which is equivalent to searching for this in clones chain.
30932 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30933 names with a neighbour and special case first node in a chain.
30935 2019-01-25 Jason Merrill <jason@redhat.com>
30937 PR c++/80916 - spurious "static but not defined" warning.
30938 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30939 for an internal symbol with DECL_EXTERNAL.
30941 2019-04-07 Richard Biener <rguenther@suse.de>
30943 PR middle-end/89618
30944 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
30945 * tree-inline.c (copy_loops): Simplify.
30947 2019-03-07 Martin Liska <mliska@suse.cz>
30949 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
30951 2019-03-07 Richard Biener <rguenther@suse.de>
30953 PR tree-optimization/89595
30954 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
30955 stmt iterator as reference, take boolean output parameter to
30956 indicate whether the stmt was removed and thus the iterator
30958 (dom_opt_dom_walker::before_dom_children): Re-iterate over
30959 stmts created by folding.
30961 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30964 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
30967 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
30969 PR rtl-optimization/88845
30970 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
30972 * lra.c (remove_scratches_1): New function.
30973 (remove_scratches): Use it.
30974 (lra_emit_move): Likewise.
30976 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
30978 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
30979 unaligned_access variable.
30980 * config/arc/arc.c (arc_override_options): Set unaligned access
30981 default on for HS CPUs.
30982 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
30984 2019-03-06 Martin Liska <mliska@suse.cz>
30986 PR gcov-profile/89577
30987 * doc/gcov.texi: Prefer to use --coverage.
30988 * doc/sourcebuild.texi: Likewise.
30990 2019-03-02 Jason Merrill <jason@redhat.com>
30992 PR c++/86485 - -Wmaybe-unused with empty class ?:
30993 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
30995 2019-03-05 Jakub Jelinek <jakub@redhat.com>
30998 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31001 PR middle-end/89590
31002 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31003 exactly one argument.
31005 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31006 Richard Sandiford <richard.sandiford@arm.com>
31008 PR tree-optimization/89570
31009 * match.pd (vec_cond into cond_op simplification): Don't use
31010 get_conditional_internal_fn, use as_internal_fn (cond_op).
31012 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31015 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31016 to decide when to split off a non-zero offset from a symbol.
31017 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31018 in function symbols.
31020 2019-03-05 Richard Biener <rguenther@suse.de>
31022 PR tree-optimization/89594
31023 * tree-if-conv.c (pass_if_conversion::execute): Handle
31024 case where .LOOP_VECTORIZED_FUNCTION was removed.
31026 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31029 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31030 instead alloca it only when needed with the needed size.
31032 PR tree-optimization/89570
31033 * match.pd (vec_cond into cond_op simplification): Guard with
31034 vectorized_internal_fn_supported_p test and #if GIMPLE.
31036 PR tree-optimization/89566
31037 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31038 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31039 Punt if get_user_idx_format succeeds, but idx_format argument is
31040 not provided or doesn't have pointer type, or if idx_args is above
31041 number of provided arguments.
31043 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31045 PR tree-optimization/89437
31046 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31048 2019-03-04 Richard Biener <rguenther@suse.de>
31050 PR middle-end/89572
31051 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31054 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31056 PR tree-optimization/89487
31057 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31058 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31059 (distribute_loop): Don't do runtime alias check if there is non-
31060 addressable data reference.
31061 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31062 is a register variable.
31064 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31067 * config/arm/arm.md (cmpsi2_addneg): Use
31068 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31069 If operands[2] is 0 or INT_MIN, force use of subs.
31070 (*compare_scc splitter): Use gen_int_mode.
31071 (*negscc): Likewise.
31072 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31074 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31075 Monk Chiang <sh.chiang04@gmail.com>
31077 * common/config/riscv/riscv-common.c: Include sstream.
31078 (riscv_subset_list::to_string): New.
31079 (riscv_arch_str): Likewise.
31080 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31081 * config.in: Regen.
31082 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31083 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31084 (riscv_emit_attribute): New.
31085 (riscv_file_start): Emit attribute if needed.
31086 (riscv_option_override): Init riscv_emit_attribute_p.
31087 * config/riscv/riscv.opt (mriscv-attribute): New option.
31088 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31089 * configure: Regen.
31090 * doc/install.texi: Document --with-riscv-attribute.
31091 * doc/invoke.texi: Document -mriscv-attribute.
31093 * common/config/riscv/riscv-common.c:
31094 Include config/riscv/riscv-protos.h.
31095 (INCLUDE_STRING): Defined.
31096 (RISCV_DONT_CARE_VERSION): Defined.
31097 (riscv_subset_t): Declare.
31098 (riscv_subset_t::riscv_subset_t): New.
31099 (riscv_subset_list): Declare.
31100 (riscv_subset_list::riscv_subset_list): New.
31101 (riscv_subset_list::~riscv_subset_list): Likewise.
31102 (riscv_subset_list::parsing_subset_version): Likewise.
31103 (riscv_subset_list::parse_std_ext): Likewise.
31104 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31105 (riscv_subset_list::add): Likewise.
31106 (riscv_subset_list::lookup): Likewise.
31107 (riscv_subset_list::xlen): Likewise.
31108 (riscv_subset_list::parse): Likewise.
31109 (riscv_supported_std_ext): Likewise.
31110 (current_subset_list): Likewise.
31111 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31114 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31116 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31117 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31118 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31120 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31122 PR rtl-optimization/85899
31123 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31124 fallthru edges leading to the exit block.
31126 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31129 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31130 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31132 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31134 PR tree-optimization/89535
31135 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31136 for each operand. Calculate the fallback choice for mask operands
31137 and pass it to vect_get_vec_def_for_operand.
31139 2019-03-01 Richard Biener <rguenther@suse.de>
31141 PR middle-end/89541
31142 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31143 get virtual operands.
31144 (get_expr_operands): Handle CONST_DECL like other decls.
31146 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31148 PR middle-end/89503
31149 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31150 on DECL_P and EXPR_P.
31152 2019-03-01 Richard Biener <rguenther@suse.de>
31154 PR middle-end/89497
31155 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31156 argument, defaulted to zero.
31157 * passes.c (execute_function_todo): Pass down SSA update flags
31158 to cleanup_tree_cfg.
31159 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31160 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31162 (cleanup_tree_cfg): Get and pass down SSA update flags.
31164 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31167 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31168 early_lto_debug argument.
31170 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31172 PR tree-optimization/89536
31173 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31174 only whether bit #0 of the value is 0 instead of the entire value.
31176 2019-02-28 Marek Polacek <polacek@redhat.com>
31178 PR c++/87068 - missing diagnostic with fallthrough statement.
31179 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31180 at the end of a seq, save its location to walk_stmt_info.
31181 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31184 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31187 * tree.c (find_atomic_core_type): Move ahead in file.
31188 (check_base_type): Correctly compare alignments of atomic types.
31190 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31193 * config/i386/i386.c (get_builtin_code_for_version): Identify
31194 Westmere from PCLMUL, instead of AES.
31196 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31199 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31200 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31203 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31206 * config/aarch64/aarch64-option-extensions.def: Document it.
31207 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31210 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31213 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31214 builtins if they don't have a single scalar floating point argument.
31217 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31219 PR rtl-optimization/89490
31220 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31221 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31222 block section is not mergeable.
31224 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31227 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31228 old define_insn to ...
31229 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31230 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31231 Rename old define_insn to ...
31232 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31233 (thumb2_casesi_internal_pic): New define_expand. Rename old
31235 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31236 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31237 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31239 2019-02-27 Richard Biener <rguenther@suse.de>
31242 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31244 2019-02-27 Richard Biener <rguenther@suse.de>
31246 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31249 2019-02-27 Richard Biener <rguenther@suse.de>
31252 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31253 parameter, prefix section name with .gnu.debuglto_ if true.
31254 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31255 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31257 2019-02-27 Richard Biener <rguenther@suse.de>
31260 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31261 rather than on use_debug_types, doing what output_die does.
31262 (value_format): Likewise.
31264 2019-02-27 Martin Jambor <mjambor@suse.cz>
31265 Martin Sebor <msebor@redhat.com>
31267 * doc/invoke.texi (Warning Options): Reword description of
31268 -Wno-absolute-value.
31270 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31272 PR tree-optimization/89280
31273 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31274 builtin_setjmp_setup_bb): New functions.
31275 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31276 When visiting __builtin_setjmp_setup block, queue in special
31277 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31278 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31279 from visited after the loop if they don't have any visited successor
31282 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31284 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31286 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31288 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31291 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31292 with types other than sizetype/ssizetype.
31294 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31296 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31297 (enum sparc_processor_type): ...this.
31298 (enum sparc_code_model_type): New enumeration type.
31299 (enum sparc_memory_model_type): Tweak comments.
31300 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31302 (mcmodel): Use sparc_code_model enumeration and variable.
31303 (sparc_code_model): New enumeration.
31304 (mdebug): Add Undocumented marker.
31305 * config/sparc/sparc.h (enum cmodel): Delete.
31306 (sparc_cmodel): Likewise.
31307 (TARGET_CM_MEDLOW): Adjust to above renaming.
31308 (TARGET_CM_MEDMID): Likewise.
31309 (TARGET_CM_MEDANY): Likewise.
31310 (TARGET_CM_EMBMEDANY): Likewise.
31311 * config/sparc/sparc.c (sparc_cmodel): Delete.
31312 (sparc_option_override): Remove string/value mapping support for the
31313 code model. Move code and memory model support to after the handling
31314 of target flags. Do private machine setup last.
31315 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31316 (sparc_legitimize_reload_address): Likewise.
31317 (sparc_output_mi_thunk): Likewise.
31318 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31320 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31322 PR tree-optimization/89500
31323 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31324 (handle_builtin_strlen): Remove noncst_bound variable. Always
31325 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31326 cst if the first cst bytes starting at x are known to be non-zero,
31327 even if the string is not zero terminated. Don't try to modify
31328 *si for strnlen. Update strlen_to_stridx only for strlen or if
31329 we can prove strnlen returns the same value as strlen would.
31331 2019-02-26 Martin Liska <mliska@suse.cz>
31333 * alloc-pool.h (struct pool_usage): Remove extra
31335 * bitmap.h (struct bitmap_usage): Likewise.
31336 * ggc-common.c (struct ggc_usage): Likewise.
31337 * mem-stats.h (struct mem_usage): Likewise.
31338 (mem_alloc_description::dump): Print dash lines
31339 here and repeat header at the end of a table report.
31340 It's then more readable.
31341 * tree-phinodes.c (phinodes_print_statistics): Make
31342 horizontal alignment.
31343 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31344 * vec.c (struct vec_usage): Remove extra print_dash_line.
31345 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31347 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31349 * doc/extend.texi (__builtin_object_size):
31350 Use @pxref instead of @xref inside parenthesis.
31351 (__builtin_has_attribute): Add missing comma after @xref.
31352 (__builtin_object_size): Ditto.
31353 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31355 2019-02-26 Jeff Law <law@redhat.com>
31357 PR rtl-optimization/87761
31358 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31359 detect obviously dead insns and delete them.
31361 2019-02-26 Richard Biener <rguenther@suse.de>
31363 PR tree-optimization/89505
31364 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31365 to handle restrict pointed-to vars with multiple subvars
31368 2019-02-26 Richard Biener <rguenther@suse.de>
31370 PR tree-optimization/89489
31371 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31373 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31375 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31376 and move around comment.
31377 <BIT_AND_EXPR>: Likewise.
31378 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31380 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31383 * config/i386/i386.c (remove_partial_avx_dependency): Call
31384 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31385 after changing possibly many instructions to use that pseudo. Fix up
31386 insertion of v4sf_const0 setter at the start of bb.
31388 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31391 * doc/extend.texi (Variadic Pointer Args): New section.
31393 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31394 Martin Sebor <msebor@gmail.com>
31396 * common.opt (Wattribute-alias): Likewise.
31397 * doc/invoke.texi (Option Summary): List general form of
31398 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31399 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31400 Add cross-references.
31401 (-Wattribute-alias): Rewrite and correct default. Mention
31402 considered attributes (same as for -Wmissing-attributes).
31404 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31406 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31407 (_mm_cvtpd_ps): Likewise.
31408 (_mm_cvttpd_epi32): Likewise.
31411 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31412 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31415 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31417 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31420 * common/config/aarch64/aarch64-common.c
31421 (struct aarch64_option_extension): Add is_synthetic.
31422 (all_extensions): Use it.
31423 (TARGET_OPTION_INIT_STRUCT): Define hook.
31424 (struct gcc_targetm_common): Moved to end.
31425 (all_extensions_by_on): New.
31426 (opt_ext_cmp, typedef opt_ext): New.
31427 (aarch64_option_init_struct): New.
31428 (aarch64_contains_opt): New.
31429 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31430 * config/aarch64/aarch64-option-extensions.def
31431 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31432 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31433 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31434 Set is_synthetic to false.
31435 (crypto): Set is_synthetic to true.
31436 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31439 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31441 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31442 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31443 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31444 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31445 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31446 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31447 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31448 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31450 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31451 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31452 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31453 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31454 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31455 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31456 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31457 vfmlsl_laneq_high_f16): ... To this.
31458 * config/arm/neon.md: Update comments.
31460 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31462 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31463 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31464 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31465 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31466 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31467 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31468 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31469 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31471 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31472 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31473 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31474 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31475 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31476 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31477 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31478 vfmlslq_laneq_high_f16): ... To this.
31480 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31482 PR rtl-optimization/86096
31483 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31484 comparing mw_order values.
31486 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31489 * config/arm/arm.md (*subsi3_carryin_const): Use
31490 arm_neg_immediate_operand predicate instead of
31491 arm_not_immediate_operand, "L" constraint instead of "K" and
31492 print it using %n2 instead of %B2.
31493 (*subsi3_carryin_const0): New define_insn.
31494 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31495 instead of arm_not_operand and "I" constraint instead of "K" and
31496 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31497 another match_operand and in the condition check that it is negation
31499 (*subsi3_carryin_compare_const0): New define_ins.
31500 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31501 *subsi3_carryin_const.
31502 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31503 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31506 * config/arm.vfp.md (*negdf2_vfp): Use
31507 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31508 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31510 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31512 PR rtl-optimization/89445
31513 * simplify-rtx.c (simplify_ternary_operation): Don't use
31514 simplify_merge_mask on operands that may trap.
31515 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31516 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31517 second operand is CONST_VECTOR, check if any element could be zero.
31518 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31519 their operands can trap.
31521 2019-02-23 Martin Sebor <msebor@redhat.com>
31523 * gimple-ssa-sprintf.c (target_strtol): Rename...
31524 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31525 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31526 check for range error.
31528 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31531 * opts-common.c (prune_options): Also prune joined switches
31532 with Negative and RejectNegative.
31533 * config/i386/i386.opt (march=): Add Negative(march=).
31534 (mtune=): Add Negative(mtune=).
31535 * doc/options.texi: Document Negative used together with Joined
31536 and RejectNegative.
31538 2019-02-22 Martin Sebor <msebor@redhat.com>
31540 * doc/extend.texi (Other Builtins): Add
31541 __builtin_is_constant_evaluated.
31543 2019-02-22 Richard Biener <rguenther@suse.de>
31545 PR tree-optimization/87609
31546 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31548 2019-02-22 Jeff Law <law@redhat.com>
31550 PR rtl-optimization/87761
31551 * config/mips/mips.md: Add new combiner pattern to recognize
31552 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31554 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31557 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31558 destination register in peepholes generating patterns for ADDS/SUBS.
31559 (add<mode>3_compare0,
31560 *addsi3_compare0_uxtw, add<mode>3_compareC,
31561 add<mode>3_compareV_imm, add<mode>3_compareV,
31562 *adds_<optab><ALLX:mode>_<GPI:mode>,
31563 *subs_<optab><ALLX:mode>_<GPI:mode>,
31564 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31565 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31566 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31567 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31568 sub<mode>3_compare1): Allow stack pointer for source register.
31569 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31571 2019-02-22 Martin Sebor <msebor@redhat.com>
31573 PR tree-optimization/88993
31574 PR tree-optimization/88853
31575 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31577 (sprintf_dom_walker::call_info::is_string_func): New helper.
31578 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31579 for formatted string functions.
31580 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31582 2019-02-22 Martin Sebor <msebor@redhat.com>
31585 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31586 unreachable subexpressions.
31588 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31589 Hongtao Liu <hongtao.liu@intel.com>
31590 Sunil K Pandey <sunil.k.pandey@intel.com>
31593 * config/i386/i386-passes.def: Add
31594 pass_remove_partial_avx_dependency.
31595 * config/i386/i386-protos.h
31596 (make_pass_remove_partial_avx_dependency): New.
31597 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31599 (pass_data_remove_partial_avx_dependency): New.
31600 (pass_remove_partial_avx_dependency): Likewise.
31601 (make_pass_remove_partial_avx_dependency): Likewise.
31602 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31603 (*extendsfdf2): Add avx_partial_xmm_update.
31604 (truncdfsf2): Likewise.
31605 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31606 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31608 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31610 PR middle-end/85598
31611 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31614 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31617 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31618 (PTA_SKYLAKE): Add PTA_AES.
31619 (PTA_GOLDMONT): Likewise.
31621 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31623 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31624 instruction if enabled.
31625 (aarch64_override_options): Remove reference to return address key.
31627 2019-02-22 Richard Biener <rguenther@suse.de>
31629 PR tree-optimization/89440
31630 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31631 not necessary assert.
31633 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31636 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31637 (oacc_replace_fn_attrib_attr): ... this new function.
31638 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31639 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31641 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31643 * config/arm/arm-cpus.in (ares): Rename to...
31644 (neoverse-n1): ... This. Add ares as alias.
31645 * config/arm/arm-tables.opt: Regenerate.
31646 * config/arm/arm-tune.md: Likewise.
31647 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31649 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31651 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31652 * config/aarch64/aarch64-tune.md: Regenerate.
31653 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31655 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31657 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31658 (neoversen1_tunings): ... This.
31659 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31660 (neoverse-n1): New CPU.
31661 * config/aarch64/aarch64-tune.md: Regenerate.
31662 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31664 2019-02-22 Richard Biener <rguenther@suse.de>
31666 PR middle-end/87609
31667 * cfghooks.h (dependence_hash): New typedef.
31668 (struct copy_bb_data): New type.
31669 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31670 (duplicate_block): Likewise.
31671 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31672 (copy_bbs): Create and pass down copy_bb_data.
31673 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31674 (rtl_duplicate_bb): Likewise.
31675 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31676 remap dependence info.
31678 2019-02-22 Richard Biener <rguenther@suse.de>
31680 PR tree-optimization/87609
31681 * tree-core.h (tree_base): Document special clique values.
31682 * tree-inline.c (remap_dependence_clique): Do not use the
31683 special clique value of one.
31684 (maybe_set_dependence_info): Use clique one.
31685 (clear_dependence_clique): New callback.
31686 (compute_dependence_clique): Clear clique one from all refs
31687 before assigning it (again).
31689 2019-02-21 Martin Sebor <msebor@redhat.com>
31691 * doc/extend.texi (__clear_cache): Correct signature.
31693 2019-02-21 Ian Lance Taylor <iant@golang.org>
31696 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31697 than output_constant_def.
31698 (add_constant_to_table): New static function.
31699 (output_constant_def): Call add_constant_to_table.
31700 (tree_output_constant_def): Likewise.
31702 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31705 * builtins.c (fold_builtin_arith_overflow): If first two args are
31706 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31709 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31712 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31713 error for -mindirect-branch/-mfunction-return with incompatible
31716 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31719 * constraints.md (q): Remove.
31720 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31723 2019-02-21 Martin Jambor <mjambor@suse.cz>
31726 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31727 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31728 (omp_adjust_for_condition): ...here. Added necessary parameters.
31729 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31730 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31731 proper values to new parameters of omp_adjust_for_condition.
31733 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31735 PR middle-end/89412
31736 * expr.c (expand_assignment): If result is a MEM, use change_address
31737 instead of simplify_gen_subreg.
31739 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31740 David Malcolm <dmalcolm@redhat.com>
31742 PR middle-end/89091
31743 * fold-const.c (decode_field_reference): Return NULL_TREE if
31744 lang_hooks.types.type_for_size returns NULL. Check it before
31745 overwriting *exp_. Use return NULL_TREE instead of return 0.
31747 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31749 PR middle-end/88074
31750 PR middle-end/89415
31751 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31754 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31757 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31758 TARGET_SSE in addition to TARGET_SSE_MATH.
31760 (ix86_excess_precision): Ditto.
31761 (ix86_float_exceptions_rounding_supported_p): Ditto.
31762 (use_rsqrt_p): Ditto.
31763 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31765 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31768 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31769 linenum_arith_t when determining if two adjacent line spans are
31770 close enough to merge.
31771 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31772 lines within each line_span.
31774 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31777 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31778 paradoxical SUBREGS.
31780 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31783 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31784 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31785 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31788 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31790 * config/gcn/gcn.c (print_operand): Fix typo.
31792 2019-02-19 Richard Biener <rguenther@suse.de>
31794 PR middle-end/88074
31795 * toplev.c (do_compile): Initialize mpfr's exponent range
31796 based on available float modes.
31798 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31800 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31801 as long as the epilogue isn't completed.
31803 2019-02-18 Martin Sebor <msebor@redhat.com>
31805 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31806 __has_cpp_attribute, and __has_include.
31808 2019-02-18 Martin Sebor <msebor@redhat.com>
31810 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31812 2019-02-18 Martin Sebor <msebor@redhat.com>
31814 PR middle-end/89294
31815 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31817 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31819 2019-02-18 Richard Biener <rguenther@suse.de>
31821 PR tree-optimization/89296
31822 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31823 of no-warning flag to cases that might emit the bogus warning.
31825 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31828 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31830 * config/arm/vfp.md (*movdi_vfp): Likewise.
31831 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31832 "q" constraint for operands[0].
31835 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31836 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31837 pattern in a temporary buffer.
31838 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31839 than 64-operands[2].
31842 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31843 s390_indirect_branch_settings): Define unconditionally.
31844 (s390_set_current_function): Likewise, but guard the whole body except
31845 the s390_indirect_branch_settings call with
31846 #if S390_USE_TARGET_ATTRIBUTE.
31847 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31849 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31850 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31851 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31852 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31853 HOST_WIDE_INT_1U instead of 1ULL.
31854 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31855 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31856 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31857 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31859 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31862 2019-02-18 Martin Jambor <mjambor@suse.cz>
31864 PR tree-optimization/89209
31865 * tree-sra.c (create_access_replacement): New optional parameter
31866 reg_tree. Use it as a type if non-NULL and access type is not of
31868 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31869 to create_access_replacement.
31870 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31871 Check lacc is non-NULL before attempting to re-create it on the RHS.
31873 2019-02-18 Martin Liska <mliska@suse.cz>
31876 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31878 (symbol_table::free_edge): Recycle m_summary_id.
31879 * cgraph.h (get_summary_id): New.
31880 (symbol_table::release_symbol): Set m_summary_id to -1
31882 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31883 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31884 function_summary to fast_function_summary.
31885 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31886 * ipa-pure-const.c (class funct_state_summary_t):
31887 Switch from function_summary to fast_function_summary.
31888 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31889 (class ipa_ref_opt_summary_t): Switch from function_summary
31890 to fast_function_summary.
31891 * symbol-summary.h (class function_summary_base): New class
31892 that is created from base of former function_summary.
31893 (function_summary_base::unregister_hooks): New.
31894 (class function_summary): Inherit from function_summary_base.
31895 (class call_summary_base): New class
31896 that is created from base of former call_summary.
31897 (class call_summary): Inherit from call_summary_base.
31898 (struct is_same): New.
31899 (class fast_function_summary): New summary class.
31900 (class fast_call_summary): New summary class.
31901 * vec.h (vec_safe_grow_cleared): New function.
31903 2019-02-18 Martin Liska <mliska@suse.cz>
31905 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31906 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31907 * doc/tm.texi: Document new target hook.
31908 * doc/tm.texi.in: Likewise.
31909 * target.def: Add new target macro.
31910 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31913 2019-02-17 Alan Modra <amodra@gmail.com>
31916 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31917 output reg on add insn.
31918 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31920 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31923 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31924 (PMULHRSW): Likewise.
31925 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31927 (ssse3_pmulhrswv4hi3): New expander.
31929 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31931 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31932 MMX. Add isa attribute.
31934 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31936 PR rtl-optimization/66152
31937 * builtins.h (c_readstr): Declare.
31938 * builtins.c (c_readstr): Remove forward declaration. Add
31939 null_terminated_p argument, if false, read all bytes from the
31940 string instead of stopping after '\0'.
31941 * expr.c (string_cst_read_str): New function.
31942 (store_expr): Use string_cst_read_str instead of
31943 builtin_strncpy_read_str. Try to store by pieces the whole
31944 exp_len first, and only if that fails, split it up into
31945 store by pieces followed by clear_storage. Formatting fix.
31947 * config/i386/i386.md (*movqi_internal): Remove static from
31948 buf variable. Use output_asm_insn (buf, operands); return "";
31949 instead of return buf;.
31950 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
31951 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
31952 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
31954 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31956 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
31957 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
31958 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
31959 (CC1_SPEC): Likewise.
31960 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
31962 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31964 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
31965 the base address on 64-bit strict-alignment platforms.
31967 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
31969 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
31971 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
31973 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
31975 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
31977 PR rtl-optimization/88308
31978 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
31979 on copied instruction.
31981 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
31983 * final.c (insn_current_reference_address): Replace test on JUMP_P
31984 with test on jump_to_label_p.
31985 * config/visium/visium-passes.def: New file.
31986 * config/visium/t-visium (PASSES_EXTRA): Define.
31987 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
31988 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
31989 (TRAMPOLINE_ALIGNMENT): Define.
31990 * config/visium/visium.c (visium_option_override): Do not register
31991 the machine-specific reorg pass here.
31992 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
31994 (output_branch): Adjust threshold for long branch instruction.
31995 * config/visium/visium.md (cpu): Move around.
31996 (length): Adjust for the GR6.
31998 2019-02-15 Richard Biener <rguenther@suse.de>
31999 Jakub Jelinek <jakub@redhat.com>
32001 PR tree-optimization/89278
32002 * tree-loop-distribution.c: Include tree-eh.h.
32003 (generate_memset_builtin, generate_memcpy_builtin): Call
32004 rewrite_to_non_trapping_overflow on builtin->size before passing it
32005 to force_gimple_operand_gsi.
32007 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32010 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32012 * opth-gen.awk: Likewise.
32014 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32016 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32017 Enable MMX, SSE and SSE2 by default.
32018 * config/i386/i386.c (ix86_option_override_internal): Do not
32019 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32021 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32023 PR rtl-optimization/89354
32024 * combine.c (make_extraction): Punt if extraction_mode is narrower
32027 2019-02-14 Maya Rashish <coypu@sdf.org>
32029 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32030 * config/netbsd-d.c: New file.
32031 * config/t-netbsd: Add netbsd-d.o
32033 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32035 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32036 affects_type_identity to true for aarch64_vector_pcs.
32037 (aarch64_comp_type_attributes): New function.
32038 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32040 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32043 * config/arm/iterators.md (ANY64): Add V4HF.
32045 2019-02-14 Martin Liska <mliska@suse.cz>
32047 PR rtl-optimization/89242
32048 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32049 process a transformation.
32051 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32053 PR tree-optimization/89314
32054 * fold-const.c (fold_binary_loc): Cast strlen argument to
32055 const char * before dereferencing it. Formatting fixes.
32057 PR middle-end/89284
32058 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32060 2019-02-13 Ian Lance Taylor <iant@golang.org>
32062 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32063 and set current index for other optimizations.
32065 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32067 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32068 nonimmediate_operand as operand 2 predicate.
32069 (vec_set<VF2_512_256:mode>_0): Ditto.
32070 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32071 (*vec_concatv2si): Remove alternative 2.
32072 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32073 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32074 (vec_concatv2di): Split alternatives 4,5,6 to ...
32075 (*vec_concatv2di_0) ... new pattern.
32077 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32080 * config/arm/arm.c (ldm_stm_operation_p) Set
32081 addr_reg_in_reglist correctly for first register.
32082 (load_multiple_sequence): Remove dead base check.
32083 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32085 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32088 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32089 Expose as @aarch64_pred_mov.
32090 * config/aarch64/aarch64.c (aarch64_classify_address):
32091 Use expand_insn which legitimizes operands.
32093 2019-02-13 Martin Liska <mliska@suse.cz>
32095 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32096 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32097 and pointer_offset fields.
32098 (initialize_argument_information): Remove usage of dead
32100 * cgraph.h (struct cgraph_thunk_info): Remove
32101 add_pointer_bounds_args.
32102 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32104 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32106 * config/i386/i386.c (ix86_function_arg_advance): Remove
32108 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32109 (def_builtin): Remove usage of dead fields.
32110 (ix86_add_new_builtins): Likewise.
32111 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32112 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32113 (sem_function::init): Likewise.
32114 (sem_variable::merge): Likewise.
32115 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32116 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32117 * lto-cgraph.c (lto_output_node): Likewise.
32118 (lto_output_varpool_node): Likewise.
32119 (input_node): Likewise.
32120 (input_varpool_node): Likewise.
32121 * lto-streamer-out.c (lto_output): Likewise.
32122 * tree-inline.c (expand_call_inline): Remove usage of
32124 * tree-inline.h (struct copy_body_data): Likewise.
32125 * varpool.c (varpool_node::dump): Likewise.
32127 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32129 PR middle-end/89303
32130 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32131 into pt->vars_contains_escaped_heap instead of setting
32132 pt->vars_contains_escaped_heap to it.
32134 PR middle-end/89281
32135 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32136 INTVAL (size), compare it to GET_MODE_MASK instead of
32137 1 << GET_MODE_BITSIZE.
32140 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32141 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32144 2019-02-13 Martin Liska <mliska@suse.cz>
32147 * cfgrtl.c (remove_barriers_from_footer): New function.
32148 (try_redirect_by_replacing_jump): Use it.
32149 (cfg_layout_redirect_edge_and_branch): Likewise.
32151 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32153 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32154 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32155 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32156 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32157 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32158 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32160 * config/rs6000/rs6000.c (builtin_function_type)
32161 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32162 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32163 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32164 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32165 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32167 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32169 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32170 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32172 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32175 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32176 268678 and revision 268657.
32177 (*movti_internal): Likewise.
32179 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32182 * config/s390/s390.c (s390_decompose_address): Update comment.
32183 (s390_check_qrst_address): Reject invalid address forms after
32186 2019-02-12 Martin Liska <mliska@suse.cz>
32189 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32190 we need default values of funct_state for a function that
32193 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32195 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32196 the object to pick the size of stores on strict-alignment platforms.
32198 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32199 (*movdi_insn_sp32): Likewise.
32200 (*movdi_insn_sp64): Likewise.
32202 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32205 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32206 types that needs constructiong.
32207 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32209 2019-02-12 Richard Biener <rguenther@suse.de>
32211 PR tree-optimization/89253
32212 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32213 duplicate the loop.
32215 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32218 * input.c (selftest::test_line_offset_overflow): New selftest.
32219 (selftest::input_c_tests): Call it.
32221 2019-02-11 Martin Sebor <msebor@redhat.com>
32223 PR tree-optimization/88771
32224 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32225 when -Wstringop-overflow is set.
32226 (builtin_memref::builtin_memref): Adjust excessive upper bound
32227 only when lower bound is not excessive.
32228 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32229 -Wstringop-ovefflow.
32230 (maybe_diag_offset_bounds): Rename...
32231 (maybe_diag_access_bounds): ...to this.
32232 (check_bounds_or_overlap): Adjust for name change above.
32234 2019-02-11 Martin Sebor <msebor@redhat.com>
32237 * builtins.c (max_object_size): Move from here...
32238 * builtins.h (max_object_size): ...and here...
32239 * tree.c (max_object_size): ...to here...
32240 * tree.h (max_object_size): ...and here.
32242 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32244 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32245 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32246 for correct semantics.
32248 2019-02-11 Alan Modra <amodra@gmail.com>
32250 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32251 -mlongcall and -mpltseq.
32252 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32253 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32254 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32255 * config/rs6000/sysv4.opt (mpltseq): New option.
32256 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32257 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32258 support is lacking. Don't allow -mpltseq with -mbss-plt.
32259 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32260 -mpltseq given for ELFv1.
32261 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32262 Only use UNSPEC_PLTSEQ for inline PLT calls.
32263 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32264 use UNSPEC_PLTSEQ for inline PLT calls.
32265 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32266 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32267 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32268 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32269 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32270 (pltseq_mtctr_<mode>): Likewise.
32272 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32274 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32276 * configure: Regenerate.
32278 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32281 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32284 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32286 * function.c (assign_parm_setup_block): Use the stored
32287 size, not the passed size, when allocating stack-space,
32288 also for a parameter with alignment larger than
32289 MAX_SUPPORTED_STACK_ALIGNMENT.
32291 2019-02-11 Martin Liska <mliska@suse.cz>
32294 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32295 * ipa-inline.c (inline_small_functions): Likewise.
32296 * ipa-pure-const.c (propagate_pure_const): Likewise.
32297 (propagate_nothrow): Likewise.
32298 * ipa-reference.c (propagate): Likewise.
32299 * ipa-utils.c (struct searchc_env): Remove unused field.
32300 (searchc): Always search across AVAIL_INTERPOSABLE.
32301 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32302 the only called IPA pure const can properly not propagate
32303 across interposable boundary.
32304 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32306 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32308 * config/nds32/nds32.md (call_internal, call_value_internal,
32309 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32311 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32313 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32316 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32318 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32321 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32323 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32325 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32327 PR tree-optimization/89268
32328 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32329 if preds is non-NULL.
32331 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32334 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32337 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32339 * config/nds32/nds32.md (trap): New pattern.
32341 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32343 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32346 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32348 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32351 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32353 * ipa-visibility.c (localize_node): Also do not localize
32354 LDPR_PREVAILING_DEF_IRONLY_EXP.
32356 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32359 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32360 instead of type_with_linkage.
32362 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32365 * params.def (uninlined-function-insns, uninlined-function-time,
32366 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32367 bound so we don't get overflows.
32369 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32371 * config/rs6000/rs6000-string.c (expand_compare_loop,
32372 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32375 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32377 PR middle-end/89246
32378 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32379 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32380 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32382 2019-02-09 Alan Modra <amodra@gmail.com>
32385 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32386 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32389 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32391 PR middle-end/88560
32392 * lra-constraints.c (process_alt_operands): Don't increase reject
32393 for memory when offset memory is required.
32395 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32397 * config/s390/vector.md: Implement vector copysign.
32399 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32401 * expr.c (expand_constructor): Correct indentations.
32403 2019-02-08 Richard Biener <rguenther@suse.de>
32405 PR tree-optimization/89247
32406 * tree-if-conv.c: Include tree-cfgcleanup.h.
32407 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32408 (tree_if_conversion): Pass through predicate vector.
32409 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32410 inline, see if any if-converted loops we refrece in
32411 LOOP_VECTORIZED calls vanished and fixup.
32412 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32414 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32416 * config/s390/constraints.md (jdd): New constraint.
32418 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32421 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32422 upper 16 vector registers without TARGET_AVX512VL.
32423 (*movti_internal): Likewise.
32425 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32427 PR rtl-optimization/89234
32428 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32429 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32430 (copy_reg_eh_region_note_backward): Likewise.
32432 2019-02-08 Richard Biener <rguenther@suse.de>
32434 PR middle-end/89223
32435 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32436 doesn't fit in HWI.
32437 (analyze_subscript_affine_affine): Handle failure from
32438 initialize_matrix_A.
32440 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32442 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32445 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32447 PR tree-optimization/86637
32448 PR tree-optimization/89235
32449 * tree-vect-loop.c (optimize_mask_stores): Add an
32450 auto_purge_vect_location sentinel to ensure that vect_location is
32452 * tree-vectorizer.c
32453 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32454 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32455 to ensure that vect_location is purged on exit.
32456 (pass_slp_vectorize::execute): Likewise, replacing the manual
32458 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32460 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32462 * config/aarch64/iterators.md (max_opp): New code_attr.
32463 (USMAX): New code iterator.
32464 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32465 (aarch64_smax): Likewise.
32466 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32467 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32470 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32473 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32474 for TARGET_AVX512VL.
32475 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32477 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32479 * config/s390/s390-builtin-types.def: Add new types.
32480 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32481 (s390_vec_xlw4): Make the memory operand into a const pointer.
32482 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32484 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32485 a new vector type with the alignment of the scalar memory operand.
32487 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32488 Jakub Jelinek <jakub@redhat.com>
32491 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32492 arm_count_ldrdstrd_insns): New declarations.
32493 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32495 (valid_operands_ldrd_strd): New function.
32496 (arm_count_ldrdstrd_insns): New function.
32497 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32498 sets instead of single DImode set and define new insns to match this.
32500 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32502 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32503 Make it a C initializer.
32505 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32508 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32510 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32512 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32513 Use neon_dot<q> for type.
32514 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32516 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32518 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32519 Use neon_dot<q> for type.
32520 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32521 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32523 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32525 PR rtl-optimization/89225
32526 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32529 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32531 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32532 after restoring registers saved to allocate the frame on Windows.
32534 2019-02-06 Richard Biener <rguenther@suse.de>
32536 PR tree-optimization/89182
32537 * graphite.h (cached_scalar_evolution_in_region): Declare.
32538 * graphite.c (struct seir_cache_key): New.
32539 (struct sese_scev_hash): Likewise.
32540 (seir_cache): New global.
32541 (cached_scalar_evolution_in_region): New function.
32542 (graphite_transform_loops): Allocate and release seir_cache.
32543 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32544 cached_scalar_evolution_in_region.
32545 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32547 (scop_detection::graphite_can_represent_expr: Use
32548 cached_scalar_evolution_in_region.
32549 (scop_detection::stmt_simple_for_scop_p): Likewise.
32550 (find_params_in_bb): Likewise.
32551 (gather_bbs::before_dom_children): Likewise.
32552 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32553 (add_loop_constraints): Likewise.
32555 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32557 PR middle-end/89210
32558 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32559 operand to new_unary_operation only if both element types are integral
32560 and it isn't a widening conversion. Return NULL_TREE if
32561 new_unary_operation failed.
32563 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32566 * config/s390/s390.md: Remove load and test FP splitter.
32568 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32571 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32572 expand_compare_loop, expand_block_compare_gpr,
32573 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32574 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32575 #include "profile-count.h" and "predict.h" for types and functions
32576 needed to work with REG_BR_PROB notes.
32578 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32581 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32582 for the long branch case.
32584 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32587 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32588 can throw, non-call exceptions are enabled and we can't delete
32589 dead exceptions or alter cfg. Set must_clean if
32590 delete_insn_and_edges returns true, don't set it blindly for calls.
32591 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32593 PR rtl-optimization/89195
32594 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32595 of the original MEM.
32597 2019-02-05 Martin Liska <mliska@suse.cz>
32599 PR gcov-profile/89000
32600 * gcov.c (function_summary): Remove argument.
32601 (file_summary): New function.
32602 (print_usage): Replace tabs with spaces.
32603 (generate_results): Use new function file_summary.
32605 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32608 * optabs.c (prepare_cmp_insn): Pass x and y to
32609 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32611 2019-02-05 Richard Biener <rguenther@suse.de>
32613 PR middle-end/89150
32614 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32615 (struct bitmap_element): Drop chain_prev so we properly recurse on
32616 the prev member, supporting tree views.
32617 (struct bitmap_head): GTY skip the obstack member.
32619 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32622 * doc/extend.texi (Vector Extensions): Add an example of using vector
32623 types together with x86 intrinsics.
32625 2019-02-04 Alan Modra <amodra@gmail.com>
32627 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32628 str[] size to 160, and comment.
32630 2019-02-04 Alan Modra <amodra@gmail.com>
32632 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32633 (rs6000_pltseq_template): Guard output of TLS markers with
32634 TARGET_TLS_MARKERS.
32635 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32636 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32637 to use inline PLT sequences.
32638 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32639 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32640 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32642 2019-02-04 Martin Liska <mliska@suse.cz>
32645 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32646 out when ipa_fn_summaries does not contain entry for callee.
32648 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32650 * config/sparc/sparc.h: Remove superfluous blank lines.
32651 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32652 (got_register_rtx): ...this.
32653 (sparc_got): Adjust to above renaming.
32654 (sparc_tls_got): Likewise.
32655 (sparc_delegitimize_address): Likewise.
32656 (sparc_output_mi_thunk): Likewise.
32657 (sparc_init_pic_reg): Likewise.
32658 (save_local_or_in_reg_p): Fix test on the GOT register.
32659 (USE_HIDDEN_LINKONCE): Move around.
32660 (get_pc_thunk_name): Likewise.
32661 (gen_load_pcrel_sym): Likewise.
32662 (load_got_register): Likewise.
32664 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32666 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32667 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32669 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32671 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32672 into consideration.
32674 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32676 * config.gcc (with_nds32_lib, glibc):
32677 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32678 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32679 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32681 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32684 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32685 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32686 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32687 (*rcpsf2_sse): Ditto.
32688 (*rsqrtsf2_sse): Ditto.
32689 (sse4_1_round<mode<2): Ditto.
32691 2019-02-03 Richard Biener <rguenther@suse.de>
32694 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32697 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32699 PR middle-end/87887
32700 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32701 Punt with warning on aggregate return or argument types. Ignore
32702 type/mode checking for uniform arguments.
32704 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32706 * combine.c (try_combine): Do not print "Can't combine" messages unless
32707 printing failed combination attempts.
32709 2019-02-01 Martin Jambor <mjambor@suse.cz>
32712 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32713 segment and global segment variables before making them static.
32715 2019-02-01 Martin Jambor <mjambor@suse.cz>
32717 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32718 missed optimization dump with dump_enabled_p.
32720 2019-02-01 Richard Biener <rguenther@suse.de>
32722 PR middle-end/88597
32723 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32724 the instantiate cache.
32725 (instantiate_scev_binary): Elide second operand procesing
32726 if equal to the first.
32727 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32728 (chrec_contains_undetermined): Likewise.
32729 (tree_contains_chrecs): Likewise.
32731 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32733 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32735 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32737 PR tree-optimization/89143
32738 * wide-int-range.h (wide_int_range_absu): Declare.
32739 * wide-int-range.cc (wide_int_range_absu): New function.
32740 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32742 PR tree-optimization/88107
32743 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32744 instead of assertion that eh_region_outermost is non-NULL, if it
32745 is NULL, set *ALL to true and return NULL.
32746 (move_sese_region_to_fn): Adjust caller, if all is set, call
32747 duplicate_eh_regions with NULL region.
32749 2019-02-01 Richard Biener <rguenth@suse.de>
32751 PR rtl-optimization/88593
32752 * mode-switching.c (optimize_mode_switching): Free dominators before
32753 calling cleanup_cfg.
32755 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32757 PR tree-optimization/88932
32758 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32760 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32762 PR middle-end/89137
32763 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32764 bogus clang warning.
32766 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32769 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32770 alternative to avoid partial SSE register stall for TARGET_AVX.
32771 (truncdfsf2): Ditto.
32772 (sse4_1_round<mode>2): Ditto.
32774 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32776 PR tree-optimization/89008
32777 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32778 process anything of the form X * 0.
32780 2019-01-31 Richard Biener <rguenther@suse.de>
32782 PR tree-optimization/89135
32783 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32784 with abnormal preds.
32786 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32789 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32790 always_inline callees into no_sanitize_address callers.
32792 2019-01-31 Richard Biener <rguenther@suse.de>
32794 PR rtl-optimization/89115
32795 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32797 2019-01-30 Martin Sebor <msebor@redhat.com>
32800 * doc/extend.texi (cast to a union): Correct and expand.
32802 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32804 PR rtl-optimization/87246
32805 * lra-constraints.c (simplify_operand_subreg): Reload memory
32806 in subreg if the address became invalid.
32808 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32811 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32812 Disable for little-endian.
32814 2019-01-30 Richard Biener <rguenther@suse.de>
32816 PR rtl-optimization/89115
32817 * opts.c (default_options_optimization): Reduce
32818 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32819 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32822 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32824 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32825 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32826 type of vector element when vec_extract is implemented by direct
32829 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32831 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32833 2019-01-30 Richard Biener <rguenther@suse.de>
32835 PR tree-optimization/89111
32836 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32837 canonicalization to appropriately sized access types.
32839 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32842 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32843 for arguments to functions that are TU-local and shouldn't be
32844 referenced by assembly.
32846 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32848 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32851 2019-01-29 Martin Sebor <msebor@redhat.com>
32854 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32856 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32860 * omp-simd-clone.c (simd_clone_clauses_extract)
32861 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32862 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32864 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32866 * config.gcc: Force .init_array for ARC.
32868 2019-01-29 Richard Biener <rguenther@suse.de>
32871 * dwarf2out.c (collect_skeleton_dies): New helper.
32872 (copy_decls_for_unworthy_types): Call it.
32873 (build_abbrev_table): Assert we do not try to replace
32874 DW_AT_signature refs with local refs.
32876 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32878 PR middle-end/89002
32879 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32880 for lastprivate/linear IV, push gimplify context around gimplify_assign
32881 and, if it needed any temporaries, pop it into a gimple bind around the
32884 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32886 * common.opt (-Wattribute-alias): Remove "no-" from name.
32887 Make -Wattribute-alias command line option and
32888 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32890 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32893 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32894 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32896 (bmi2): Add missing @opindex.
32897 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32898 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32899 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32900 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32901 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32902 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32903 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32904 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32905 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32906 xsavec, xsaveopt and xsaves options.
32908 2019-01-28 Richard Biener <rguenther@suse.de>
32911 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32914 2019-01-28 Richard Biener <rguenther@suse.de>
32916 PR tree-optimization/88739
32917 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32918 BIT_FIELD_REFs only are applied to mode-precision operands
32919 when they are integral.
32920 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32921 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32922 BIT_FIELD_REFs of non-mode-precision integral operands.
32924 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32927 * config/i386/sse.md
32928 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32929 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32930 first constants in pairs are multiples of 2. Formatting fixes.
32931 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32932 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32933 first constants in each quadruple are multiples of 4. Formatting fixes.
32935 2019-01-26 Martin Jambor <mjambor@suse.cz>
32938 * tree-inline.c: Include tree-cfgcleanup.h.
32939 (delete_unreachable_blocks_update_callgraph): Move...
32940 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32941 ...here, make externally visible, make second argument bool, adjust
32943 * tree-cfgcleanup.c: Include cgraph.h.
32944 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
32946 * ipa-prop.c: Include tree-cfgcleanup.h.
32947 (ipcp_transform_function): Call
32948 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
32950 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
32952 PR rtl-optimization/88846
32953 * ira.c (process_set_for_memref_referenced_p): New.
32954 (memref_referenced_p): Add new param. Use
32955 process_set_for_memref_referenced_p. Add new switch cases.
32956 (memref_used_between_p): Pass new arg to memref_referenced_p.
32958 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
32961 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
32962 argument ABI_BREAK. Set to true if the calculated alignment has
32963 changed in gcc-9. Check bit-fields for their base type alignment.
32964 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
32965 (aarch64_function_arg_boundary): Likewise.
32966 (aarch64_gimplify_va_arg_expr): Likewise.
32968 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32970 PR middle-end/89037
32971 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
32972 instead of accessing TREE_INT_CST_ELT directly.
32974 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
32976 * doc/sourcebuild.texi (Environment attributes): Add fenv and
32977 fenv_exceptions description.
32979 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
32981 PR rtl-optimization/87763
32982 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
32983 Allow SUBREG when matching CC_NZmode compare.
32985 2019-01-25 Richard Biener <rguenther@suse.de>
32987 PR tree-optimization/89049
32988 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
32989 Look at the pattern stmt to determine if the stmt is vectorized.
32991 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
32993 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
32994 (pred_mov<mode>): Handle all-register forms using both a new
32995 alternative and a split.
32997 2019-01-25 Richard Biener <rguenther@suse.de>
32999 PR tree-optimization/86865
33000 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33001 Reject non-do-while loops.
33003 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33005 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33006 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33007 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33008 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33009 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33010 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33011 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33012 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33013 vlogical_operand, gpc_reg_operand, int_reg_operand,
33014 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33015 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33016 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33017 (save_world_operation, restore_world_operation, lmw_operation,
33018 stmw_operation): Use MEM_P and REG_P.
33019 (tie_operand): Use MEM_P.
33020 (vrsave_operation, crsave_operation): Use REG_P.
33021 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33022 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33023 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33024 (call_operand): Use HARD_REGISTER_P.
33025 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33027 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33028 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33029 quad_aligned_load_p, replace_swapped_aligned_store,
33030 recombine_lvx_pattern, replace_swapped_aligned_load,
33031 recombine_stvx_pattern): Use MEM_P.
33032 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33033 Use MEM_P and SYMBOL_REF_P.
33034 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33035 (insn_is_swappable_p): Use REG_P and MEM_P.
33036 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33037 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33039 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33040 Use CONST_DOUBLE_P.
33041 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33043 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33044 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33045 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33046 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33048 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33049 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33050 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33051 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33052 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33053 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33054 rs6000_split_logical_di): Use CONST_INT_P.
33055 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33056 REG_P and SYMBOL_REF_P.
33057 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33058 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33059 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33060 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33061 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33062 (small_data_operand, print_operand_address): Use CONST_INT_P and
33064 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33065 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33066 Use HARD_REGISTER_NUM_P.
33067 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33068 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33069 SUBREG_P and SYMBOL_REF_P.
33070 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33071 and HARD_REGISTER_NUM_P.
33072 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33074 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33075 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33077 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33078 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33079 find_addr_reg): Use REG_P.
33080 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33081 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33082 (offsettable_ok_by_alignment, constant_pool_expr_p,
33083 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33084 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33085 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33086 rs6000_assemble_integer, create_TOC_reference,
33087 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33088 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33089 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33090 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33091 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33092 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33093 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33094 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33095 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33096 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33097 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33098 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33099 and cbranch<mode>4): Use CONST_INT_P.
33100 (multiple define_splits): Use REG_P and SUBREG_P.
33101 (define_expands call, call_value): Use MEM_P.
33102 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33103 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33104 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33105 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33106 and HARD_REGISTER_NUM_P.
33107 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33109 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33111 PR rtl-optimization/88948
33112 * rtl.h (prepare_copy_insn): New prototype.
33113 * gcse.c (prepare_copy_insn): New function, split out from
33114 process_insert_insn.
33115 (process_insert_insn): Use prepare_copy_insn.
33116 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33117 instead of gen_move_insn.
33119 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33122 * config/i386/i386.c (ix86_pic_register_p): Return true for
33123 UNSPEC_SET_GOT too.
33125 PR tree-optimization/88964
33126 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33127 punt if HONOR_SNANS (chrec).
33129 PR middle-end/89015
33130 * tree-nested.c (convert_nonlocal_reference_stmt,
33131 convert_local_reference_stmt, convert_tramp_reference_stmt,
33132 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33133 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33134 or GIMPLE_OMP_TASK.
33136 PR tree-optimization/89027
33137 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33138 for "omp simd array" variables.
33140 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33143 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33144 force the alignment of m_val.
33146 2019-01-24 Richard Biener <rguenther@suse.de>
33149 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33150 When in "legacy" debug mode make sure to reset self-origins.
33152 2019-01-24 Martin Liska <mliska@suse.cz>
33154 PR gcov-profile/88994
33155 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33156 result will be always smaller or equal to the original.
33157 * gcov.c (mangle_name): Fix else branch where we should
33158 also copy to PTR and shift the pointer.
33160 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33162 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33163 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33165 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33167 * common/config/i386/i386-common.c
33168 (OPTION_MASK_ISA_ENQCMD_SET,
33169 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33170 (ix86_handle_option): Handle -menqcmd.
33171 * config.gcc (enqcmdintrin.h): New header file.
33172 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33173 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33175 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33177 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33178 __builtin_ia32_enqcmds): New builtins.
33179 * config/i386/i386-c.c (__ENQCMD__): New macro.
33180 * config/i386/i386-option.c (ix86_target_string): Add
33182 (ix86_valid_target_attribute_inner_p): Likewise.
33183 * config/i386/i386-expand.c
33184 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33185 IX86_BUILTIN_ENQCMDS.
33186 * config/i386/i386.h (TARGET_ENQCMD): New.
33187 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33188 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33189 (movdir64b_<mode>): Parameterize to enable share expansion code
33190 with ENQCMD in function ix86_expand_builtin.
33191 * config/i386/i386.opt: Add -menqcmd.
33192 * config/i386/immintrin.h: Include enqcmdintrin.h.
33193 * config/i386/enqcmdintrin.h: New intrinsic file.
33194 * doc/invoke.texi: Add -menqcmd.
33196 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33197 Steve Ellcey <sellcey@marvell.com>
33200 * recog.c (address_operand): Return false on wrong mode for address.
33201 (constrain_operands): Check for mode with 'p' constraint.
33203 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33206 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33207 Disparage MMX alternative.
33208 (sse2_cvtpd2pi): Ditto.
33209 (sse2_cvttpd2pi): Ditto.
33211 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33214 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33215 use-after-free of the result of
33216 aarch64_get_extension_string_for_isa_flags.
33218 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33221 * doc/extend.texi: Document break and continue behavior in
33222 statement expressions.
33224 2019-01-23 Richard Biener <rguenther@suse.de>
33226 PR tree-optimization/89008
33227 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33228 not leave another stray operand.
33230 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33232 * BASE-VER: Bump to 9.0.1.
33234 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33236 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33237 thunk that returns by reference, use the type of the return object
33238 of the thunk instead of that of the alias to build the dereference.
33240 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33242 * config/arc/atomic.md: Add operand to DMB instruction.
33244 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33246 PR tree-optimization/88964
33247 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33248 build_zero_cst instead of build_int_cst. Return false for loop
33249 invariants which honor signed zeros.
33251 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33253 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33255 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33258 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33259 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33260 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33262 PR middle-end/88968
33263 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33264 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33267 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33268 Disable for little endian.
33270 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33273 * config/arm/arm.c (arm_needs_double_word_align): Check
33274 DECL_BIT_FIELD_TYPE.
33276 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33277 H.J. Lu <hongjiu.lu@intel.com>
33280 * config/i386/i386-builtin.def: Add mask2 to all builtin
33281 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33283 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33284 (BDESC_FIRST): Likewise.
33285 (define_builtin): Add an argument for mask2. Updated to handle
33286 both ix86_isa_flags and ix86_isa_flags2.
33287 (define_builtin_const): Likewise.
33288 (define_builtin_pure): Likewise.
33289 (define_builtin2): Deleted.
33290 (define_builtin_const2): Likewise.
33291 (builtin_description): Add a member, mask2.
33292 (bdesc_*): Add mask2 to builtin initializations.
33293 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33294 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33296 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33298 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33301 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33304 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33307 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33308 alignment is dominated by a bitfield with 64-bit aligned base type.
33309 (arm_function_arg): Emit a warning if the alignment has changed since
33310 earlier GCC releases.
33311 (arm_function_arg_boundary): Likewise.
33312 (arm_setup_incoming_varargs): Likewise.
33314 2019-01-22 Richard Biener <rguenther@suse.de>
33316 PR tree-optimization/88862
33317 * graphite-scop-detection.c
33318 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33320 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33322 * doc/extend.tex (AMD GCN Function Attributes): New section.
33323 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33324 * doc/invoke.texi (AMD GCN Options): New section.
33325 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33327 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33329 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33330 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33332 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33334 PR tree-optimization/88044
33335 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33336 is false in the first iteration, but !every_iteration, return false
33337 instead of true with niter->niter zero.
33339 PR rtl-optimization/88904
33340 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33341 any nonequal registers before processing BB_END (b).
33344 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33346 (expand_binop_directly, expand_doubleword_clz,
33347 expand_doubleword_popcount, expand_ctz, expand_ffs,
33348 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33350 PR rtl-optimization/49429
33352 PR rtl-optimization/86334
33354 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33355 addressable from here...
33356 (emit_block_op_via_libcall): ... to here.
33358 2019-01-22 Richard Biener <rguenther@suse.de>
33360 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33361 auto_vec for cost vector to fix memleak.
33362 (vectorize_fold_left_reduction): Properly gather SLP defs.
33363 (vectorizable_comparison): Do not swap operands to properly
33366 2019-01-22 Alan Modra <amodra@gmail.com>
33369 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33370 stays a reg. Allow a const_int.
33371 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33372 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33373 (IS_NOMARK_TLSGETADDR): Define.
33374 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33375 (rs6000_output_tlsargs): New function.
33376 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33377 __tls_get_addr call takes an arg.
33378 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33379 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33381 (call_value_nonlocal_sysv): ..or here, delete split.
33382 (tls_gdld_nomark): Delete.
33383 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33384 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33385 (call_value_nonlocal_sysv): Likewise.
33386 (call_value_nonlocal_sysv_secure): Likewise.
33387 (call_value_nonlocal_aix): Likewise.
33388 (call_value_indirect_aix): Likewise.
33389 (call_value_indirect_elfv2): Likewise.
33390 (call_value_local32, call_value_local64): Disable for no-mark tls.
33391 (call_value_local_aix): Likewise.
33393 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33396 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33397 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33399 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33401 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33402 string contents as hash_map keys.
33404 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33407 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33408 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33409 instead of TYPE_ALIGN.
33410 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33411 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33412 pointer from TYPE_STUB_DECL.
33414 2019-01-21 Richard Biener <rguenther@suse.de>
33416 PR tree-optimization/88934
33417 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33418 at the possibly non-constant operand.
33419 (vect_get_constant_vectors): Adjust.
33421 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33424 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33425 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33426 instead of _X86INTRIN_H_INCLUDED.
33427 * onfig/i386/clwbintrin.h: Likewise.
33428 * config/i386/pkuintrin.h: Likewise.
33429 * config/i386/prfchwintrin.h: Likewise.
33430 * config/i386/rdseedintrin.h: Likewise.
33431 * config/i386/wbnoinvdintrin.h: Likewise.
33432 * config/i386/xsavecintrin.h: Likewise.
33433 * config/i386/xsavesintrin.h: Likewise.
33434 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33435 * config/i386/xsaveintrin.h: Likewise.
33436 * config/i386/xsaveoptintrin.h: Likewise.
33437 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33438 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33439 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33440 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33441 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33442 * config/i386/immintrin.h: Here.
33444 2019-01-20 Martin Jambor <mjambor@suse.cz>
33447 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33448 with aa_walk_budget.
33449 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33450 aa_walk_budget_p parameter.
33451 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33452 walk. Updated all callers.
33453 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33454 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33456 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33457 parameter info. Extract info from fbi. Pass fbi to recursive calls
33458 and to unmodified_parm.
33459 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33460 info, updated call to will_be_nonconstant_expr_predicate.
33461 (param_change_prob): New parameter fbi, limit AA walking.
33462 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33463 calls to various above functions.
33464 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33465 parameter. Use it to limit AA walking.
33466 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33467 fbi, limit AA walk.
33468 (detect_type_change): New parameter fbi, pass it on to
33469 detect_type_change_from_memory_writes.
33470 (detect_type_change_ssa): Likewise.
33471 (aa_overwalked): Removed.
33472 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33473 accordingly, adjust to the neew AA limiting scheme.
33474 (parm_ref_data_preserved_p): Likewise.
33475 (ipa_compute_jump_functions_for_edge): Adjust call to
33477 (ipa_analyze_call_uses): Likewise.
33478 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33479 (ipa_analyze_node): Initialize aa_walk_budget.
33480 (ipcp_transform_function): Likewise.
33481 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33482 to get_dynamic_type.
33484 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33486 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33487 outside of #if CHECKING_P code.
33489 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33491 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33492 New function, split out from...
33493 (loop_versioning::analyze_stride): ...here.
33494 (loop_versioning::find_per_loop_multiplication): Use gassign.
33495 (loop_versioning::analyze_term_using_scevs): Return a success code.
33496 (loop_versioning::analyze_arbitrary_term): New function.
33497 (loop_versioning::analyze_address_fragment): Use
33498 analyze_arbitrary_term if all else fails.
33500 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33503 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33506 2019-01-18 Richard Biener <rguenther@suse.de>
33508 PR tree-optimization/88903
33509 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33510 scalar stmts a SLP shift amount is composed of when detecting
33513 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33516 * config/arm/arm-cpus.in (mp): New feature.
33517 (sec): New feature.
33518 (fgroup ARMv7ve): Add mp and sec features.
33519 (arch armv7-a): Add options to allow mp and sec extensions.
33520 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33521 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33522 extenstions to the base architecture.
33523 (cpu cortex-a8): Add sec extension to the base architecture.
33524 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33525 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33526 variants down to the base v7-a varaint.
33527 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33528 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33529 of permitted extensions for -march=armv7-a and for
33530 -mcpu=generic-armv7-a.
33532 2019-01-18 Martin Liska <mliska@suse.cz>
33534 * params.def: Fix comment.
33535 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33537 (gimple_gen_ic_func_profiler): Likewise.
33539 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33541 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33542 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33543 and put in error checks for stack protector guard options.
33544 (aarch64_stack_protect_guard): New.
33545 (TARGET_STACK_PROTECT_GUARD): Define.
33546 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33547 (reg_stack_protect_address<mode>): New.
33548 (stack_protect_set): Adjust for SSP_GLOBAL.
33549 (stack_protect_test): Likewise.
33550 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33551 (-mstack-protector-guard): Likewise.
33552 (-mstack-protector-guard-offset): Likewise.
33554 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33556 PR tree-optimization/86214
33557 * tree-inline.h (struct copy_body_data): Add
33558 add_clobbers_to_eh_landing_pads member.
33559 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33560 (copy_edges_for_bb): Call it if EH edge destination is <
33561 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33562 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33563 if flag_stack_reuse != SR_NONE and clear it afterwards.
33565 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33568 * doc/install.texi (with-multilib-list): Document for aarch64.
33570 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33573 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33574 (("..."))) with ("...").
33576 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33578 * doc/extend.texi (Built-in Functions for Memory Model Aware
33579 Atomic Operations): Document atomic fetch and nand.
33581 2019-01-18 Martin Liska <mliska@suse.cz>
33582 Richard Biener <rguenther@suse.de>
33584 PR middle-end/88587
33585 * cgraph.h (create_version_clone_with_body): Add new argument
33587 * cgraphclones.c (cgraph_node::create_version_clone): Add
33588 DECL_ATTRIBUTES to a newly created decl. And call
33589 valid_attribute_p so that proper cl_target_optimization_node
33590 is set for the newly created declaration.
33591 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33593 (expand_target_clones): Do not call valid_attribute_p, it must
33595 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33598 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33601 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33602 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33603 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33605 2019-01-17 Martin Sebor <msebor@redhat.com>
33607 PR middle-end/88273
33608 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33609 Handle anti-ranges the same as no range at all.
33611 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33613 * config/aarch64/aarch64.c (cgraph.h): New include.
33614 (intl.h): New include.
33615 (supported_simd_type): New function.
33616 (currently_supported_simd_type): Ditto.
33617 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33618 (aarch64_simd_clone_adjust): Ditto.
33619 (aarch64_simd_clone_usable): Ditto.
33620 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33621 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33622 (TARGET_SIMD_CLONE_USABLE): Ditto.
33623 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33624 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33627 2019-01-17 Martin Sebor <msebor@redhat.com>
33629 PR tree-optimization/88800
33630 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33631 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33632 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33633 redundant argument. Add new argument and issue diagnostics under
33634 its control. Detect out-of-bounds access even with warnings
33636 (check_bounds_or_overlap): Change return type. Add argument.
33637 (wrestrict_dom_walker::check_call): Adjust.
33638 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33639 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33640 check_bounds_or_overlap's return value.
33641 (handle_builtin_stxncpy): Same.
33642 (handle_builtin_strcat): Same.
33644 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33645 Kwok Cheung Yeung <kcy@codesourcery.com>
33646 Julian Brown <julian@codesourcery.com>
33647 Tom de Vries <tom@codesourcery.com>
33649 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33651 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33653 * doc/sourcebuild.texi: Document dg-require-effective-target
33654 llvm_binutils and offload_gcn.
33656 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33657 Kwok Cheung Yeung <kcy@codesourcery.com>
33658 Julian Brown <julian@codesourcery.com>
33659 Tom de Vries <tom@codesourcery.com>
33661 * doc/sourcebuild.texi: Document dg-required-effective-target
33664 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33665 Kwok Cheung Yeung <kcy@codesourcery.com>
33666 Julian Brown <julian@codesourcery.com>
33667 Tom de Vries <tom@codesourcery.com>
33668 Jan Hubicka <hubicka@ucw.cz>
33669 Martin Jambor <mjambor@suse.cz>
33671 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33672 * configure.ac: Check for dlopen.
33673 * configure: Regenerate.
33675 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33676 Kwok Cheung Yeung <kcy@codesourcery.com>
33677 Julian Brown <julian@codesourcery.com>
33678 Tom de Vries <tom@codesourcery.com>
33679 Jan Hubicka <hubicka@ucw.cz>
33680 Martin Jambor <mjambor@suse.cz>
33682 * common/config/gcn/gcn-common.c: New file.
33683 * config/gcn/driver-gcn.c: New file.
33684 * config/gcn/gcn-builtins.def: New file.
33685 * config/gcn/gcn-hsa.h: New file.
33686 * config/gcn/gcn-modes.def: New file.
33687 * config/gcn/gcn-opts.h: New file.
33688 * config/gcn/gcn-passes.def: New file.
33689 * config/gcn/gcn-protos.h: New file.
33690 * config/gcn/gcn-run.c: New file.
33691 * config/gcn/gcn-tree.c: New file.
33692 * config/gcn/gcn.c: New file.
33693 * config/gcn/gcn.h: New file.
33694 * config/gcn/gcn.opt: New file.
33695 * config/gcn/t-gcn-hsa: New file.
33697 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33698 Kwok Cheung Yeung <kcy@codesourcery.com>
33699 Julian Brown <julian@codesourcery.com>
33700 Tom de Vries <tom@codesourcery.com>
33701 Jan Hubicka <hubicka@ucw.cz>
33702 Martin Jambor <mjambor@suse.cz>
33704 * config/gcn/constraints.md: New file.
33705 * config/gcn/gcn-valu.md: New file.
33706 * config/gcn/gcn.md: New file.
33707 * config/gcn/predicates.md: New file.
33709 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33711 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33712 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33713 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33714 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33716 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33719 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33720 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33721 it and document registers.
33723 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33725 * config/aarch64/aarch64.c (ares_tunings): Define.
33726 * config/aarch64/aarch64-cores.def (ares): Use the above.
33728 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33732 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33734 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33735 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33736 (_mm512_maskz_fixupimm_round_pd): Ditto.
33737 (_mm512_fixupimm_round_ps): Ditto.
33738 (_mm512_maskz_fixupimm_round_ps): Ditto.
33739 (_mm_fixupimm_round_sd): Ditto.
33740 (_mm_maskz_fixupimm_round_sd): Ditto.
33741 (_mm_fixupimm_round_ss): Ditto.
33742 (_mm_maskz_fixupimm_round_ss): Ditto.
33743 (_mm512_fixupimm_pd): Ditto.
33744 (_mm512_maskz_fixupimm_pd): Ditto.
33745 (_mm512_fixupimm_ps): Ditto.
33746 (_mm512_maskz_fixupimm_ps): Ditto.
33747 (_mm_fixupimm_sd): Ditto.
33748 (_mm_maskz_fixupimm_sd): Ditto.
33749 (_mm_fixupimm_ss): Ditto.
33750 (_mm_maskz_fixupimm_ss): Ditto.
33751 (_mm512_mask_fixupimm_round_pd): Update builtin.
33752 (_mm512_mask_fixupimm_round_ps): Ditto.
33753 (_mm_mask_fixupimm_round_sd): Ditto.
33754 (_mm_mask_fixupimm_round_ss): Ditto.
33755 (_mm512_mask_fixupimm_pd): Ditto.
33756 (_mm512_mask_fixupimm_ps): Ditto.
33757 (_mm_mask_fixupimm_sd): Ditto.
33758 (_mm_mask_fixupimm_ss): Ditto.
33759 * config/i386/avx512vlintrin.h:
33760 (_mm256_fixupimm_pd): Update parameters and builtin.
33761 (_mm256_maskz_fixupimm_pd): Ditto.
33762 (_mm256_fixupimm_ps): Ditto.
33763 (_mm256_maskz_fixupimm_ps): Ditto.
33764 (_mm_fixupimm_pd): Ditto.
33765 (_mm_maskz_fixupimm_pd): Ditto.
33766 (_mm_fixupimm_ps): Ditto.
33767 (_mm_maskz_fixupimm_ps): Ditto.
33768 (_mm256_mask_fixupimm_pd): Update builtin.
33769 (_mm256_mask_fixupimm_ps): Ditto.
33770 (_mm_mask_fixupimm_pd): Ditto.
33771 (_mm_mask_fixupimm_ps): Ditto.
33772 * config/i386/i386-builtin-types.def: Add new types and remove
33774 * config/i386/i386-builtin.def: Update builtin definitions.
33775 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33776 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33777 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33778 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33779 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33780 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33781 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33782 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33783 * config/i386/subst.md:
33784 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33785 (round_saeonly_sd_mask_op4): Ditto.
33786 (round_saeonly_expand_operand5): Ditto.
33787 (round_saeonly_expand): Update.
33789 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33793 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33795 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33796 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33797 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33798 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33799 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33800 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33801 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33803 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33807 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33810 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33811 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33812 instead of UNSPEC_FIXUPIMM.
33814 2019-01-17 Richard Biener <rguenther@suse.de>
33817 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33818 and friends for the LTO part of debug info.
33820 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33822 PR tree-optimization/86214
33823 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33826 PR rtl-optimization/88870
33827 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33828 throw if we can't alter the cfg or delete dead exceptions.
33829 (mark_insn): Don't call find_call_stack_args for such calls.
33831 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33833 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33834 prototypes for vec_st.
33835 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33836 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33837 mainly on signed/unsigned long long and double.
33839 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33842 * combine.c (delete_noop_moves): Convert to "bool" return,
33843 returning true if any edges are eliminated.
33844 (combine_instructions): Also return true if delete_noop_moves
33847 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33849 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33850 correct max nunits for endian swap.
33851 (aarch64_expand_fcmla_builtin): Correct subreg code.
33852 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33853 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33856 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33858 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33859 Handle split indirect COMPLEX_TYPE arguments.
33861 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33864 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33865 bit is set by add and compare.
33866 (CC_ADC): New CC_MODE.
33867 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33868 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33869 comparison. Add detection for CC_ADCmode.
33870 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33872 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33873 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33874 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33875 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33876 to eliminate the need for zero-extending the operands.
33877 (add<mode>3_compareC_imm): Delete. Merge into ...
33878 (add<mode>3_compareC): ... this. Restructure the comparison to
33879 eliminate the need for zero-extending the operands.
33880 (add<mode>3_carryin): Use LTU for the overflow detection.
33881 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33882 Reexpress comparison for overflow.
33883 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33884 (add<mode>3_carryinC): Likewise.
33885 (add<mode>3_carryinV): Use LTU for carry between partials.
33886 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33887 handling of CC_Cmode and add CC_ADCmode.
33888 (aarch64_borrow_operation): Likewise.
33890 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33892 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33893 Remove patternmode.
33894 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33895 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33896 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33897 Remove endianness conversion.
33899 2019-01-16 Martin Liska <mliska@suse.cz>
33901 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33903 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33905 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33906 (path_prefix_reset): Move up in the source file.
33907 (find_fortran_preinclude_file): Make complex search for the
33908 fortran header files.
33910 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33912 * godump.c (go_output_typedef): When outputting a typedef, refer
33913 to the underlying type by its name and not its structure.
33915 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33918 * tree.c (build_function_type): Assert that arg_types is not
33921 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33923 PR inline-asm/52813
33924 * doc/extend.texi: Document that listing the stack pointer in the
33925 clobber list of an asm is a deprecated feature.
33926 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33927 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33928 warning instead of an error for clobbers of the stack pointer.
33929 Add a note explaining why.
33931 2019-01-15 Richard Biener <rguenther@suse.de>
33934 * dwarf2out.c (gen_member_die): Do not generate inheritance
33937 2019-01-15 Richard Biener <rguenther@suse.de>
33939 PR tree-optimization/88855
33940 * tree-if-conv.c (combine_blocks): Collect
33941 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
33943 2019-01-15 Tom de Vries <tdevries@suse.de>
33946 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
33947 lhs == NULL_TREE for gang-level reduction.
33949 2019-01-15 Richard Biener <rguenther@suse.de>
33950 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33953 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
33954 return true if SSA_NAME is already marked in visited bitmap.
33955 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
33957 2019-01-15 Jakub Jelinek <jakub@redhat.com>
33959 PR tree-optimization/88775
33960 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
33961 equal == 0 equality pointer comparisons some more if compared in
33962 integral types and either one points to an automatic var and the
33963 other to a global, or we can prove at least one points to the middle
33964 or both point to start or both point to end.
33966 2019-01-14 Andi Kleen <ak@linux.intel.com>
33968 * Makefile.in: Lower autofdo sampling rate by 10x.
33969 * Makefile.tpl: Dito.
33971 2019-01-14 Tom Honermann <tom@honermann.net>
33973 * defaults.h: Define CHAR8_TYPE.
33975 2019-01-14 Martin Sebor <msebor@redhat.com>
33978 * doc/extend.texi (Darwin Format Checks): Clarify.
33980 2019-01-14 Richard Biener <rguenther@suse.de>
33982 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
33983 whether we are in (simplify ...) or (match ...) context.
33985 2019-01-14 Jakub Jelinek <jakub@redhat.com>
33987 PR rtl-optimization/88796
33988 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
33989 * cfgexpand.c (stack_protect_prologue): Initialize
33990 crtl->stack_protect_guard_decl.
33991 * function.c (stack_protect_epilogue): Use it instead of calling
33992 targetm.stack_protect_guard again.
33993 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
33994 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
33995 crtl->stack_protect_guard_decl.
33996 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
33997 on the returned MEM_EXPR.
33999 2019-01-12 Tom de Vries <tdevries@suse.de>
34001 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34002 vector length using -fopenacc-dim.
34004 2019-01-12 Tom de Vries <tdevries@suse.de>
34006 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34007 lengths into account.
34009 2019-01-12 Svante Signell <svante.signell@gmail.com>
34011 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34012 (TARGET_CAN_SPLIT_STACK): Define.
34013 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34015 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34017 * params.def (inline-unit-growth): Set to 40.
34019 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34021 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34023 2019-01-12 Tom de Vries <tdevries@suse.de>
34025 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34026 region calling vector-partitionable routine, set default_vector_length
34029 2019-01-12 Tom de Vries <tdevries@suse.de>
34031 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34032 variable default_vector_length.
34034 2019-01-12 Tom de Vries <tdevries@suse.de>
34036 PR middle-end/88703
34037 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34038 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34041 2019-01-12 Tom de Vries <tdevries@suse.de>
34043 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34044 (nvptx_goacc_validate_dims): Add used parameter.
34045 * doc/tm.texi: Regenerate.
34046 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34047 argument to call to targetm.goacc.validate_dims.
34048 (default_goacc_validate_dims): Add used
34050 * target.def (validate_dims): Add used parameter in DEFHOOK.
34051 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34053 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34055 PR middle-end/85956
34057 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34059 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34060 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34061 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34062 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34064 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34066 PR rtl-optimization/87305
34068 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34069 for little endian pseudos used as paradoxical subreg.
34071 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34073 PR tree-optimization/88693
34074 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34075 for STRING_CSTs that don't contain any NUL characters in the first
34076 TREE_STRING_LENGTH bytes.
34078 2019-01-11 Alan Modra <amodra@gmail.com>
34082 * genattrtab.c (min_fn): Don't translate values.
34083 (min_attr_value): Return INT_MAX when the value can't be calculated.
34084 Return minimum among any values that can be calculated.
34085 (max_attr_value): Adjust.
34087 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34089 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34091 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34093 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34094 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34095 (aarch64_return_call_with_max_clobbers): New function.
34096 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34097 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34099 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34100 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34101 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34102 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34103 * cselib.c (cselib_process_insn): Add argument to
34104 targetm.hard_regno_call_part_clobbered call.
34105 * ira-conflicts.c (ira_build_conflicts): Ditto.
34106 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34107 * lra-constraints.c (inherit_reload_reg): Ditto.
34108 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34109 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34110 argument. Call targetm.return_call_with_max_clobbers.
34111 Add argument to targetm.hard_regno_call_part_clobbered call.
34112 (calls_have_same_clobbers_p): New function.
34113 (process_bb_lives): Add call_insn and last_call_insn variables.
34114 Pass call_insn to check_pseudos_live_through_calls.
34115 Modify if stmt to check targetm.return_call_with_max_clobbers.
34116 Update setting of flush variable.
34117 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34119 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34120 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34121 targetm.hard_regno_call_part_clobbered call.
34122 * reginfo.c (choose_hard_reg_mode): Ditto.
34123 * regrename.c (check_new_reg_p): Ditto.
34124 * reload.c (find_equiv_reg): Ditto.
34125 * reload1.c (emit_reload_insns): Ditto.
34126 * sched-deps.c (deps_analyze_insn): Ditto.
34127 * sel-sched.c (init_regs_for_mode): Ditto.
34128 (mark_unavailable_hard_regs): Ditto.
34129 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34130 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34131 (return_call_with_max_clobbers): New target function.
34132 * doc/tm.texi: Regenerate.
34133 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34134 * hooks.c (hook_bool_uint_mode_false): Change to
34135 hook_bool_insn_uint_mode_false.
34136 * hooks.h (hook_bool_uint_mode_false): Ditto.
34138 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34140 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34141 (aarch64_remove_extra_call_preserved_regs): New function.
34142 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34143 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34144 * doc/tm.texi: Regenerate.
34145 * final.c (get_call_reg_set_usage): Call new hook.
34146 * target.def (remove_extra_call_preserved_regs): New hook.
34147 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34148 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34150 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34153 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34154 inside of pass_combine_1 dump rather than pass_profile_1.
34156 2019-01-11 Tom de Vries <tdevries@suse.de>
34158 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34159 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34160 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34161 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34164 2019-01-11 Tom de Vries <tdevries@suse.de>
34166 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34168 2019-01-11 Jan Beulich <jbeulich@suse.com>
34170 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34171 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34172 sse2_cvtsi2sd): Add {l}.
34173 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34176 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34179 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34181 (*float<floatunssuffix>v2div2sf2): New define_insn.
34182 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34183 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34184 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34185 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34186 match_operands with "const0_operand" "C".
34188 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34190 * config/aarch64/aarch64-builtins.c
34191 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34192 (aarch64_init_simd_builtins): ...Here
34194 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34196 PR rtl-optimization/87305
34198 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34199 allocation for big endian pseudos used as paradoxical subregs and
34200 spill them if it is wrong.
34201 * lra-constraints.c (lra_constraints): Add a comment.
34203 2019-01-10 Richard Biener <rguenther@suse.de>
34205 PR tree-optimization/88792
34206 * tree-ssa-pre.c (get_representative_for): Do not return a
34209 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34211 PR middle-end/84877
34213 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34214 (assign_parm_setup_block): Do the argument slot realignment here
34217 2019-01-10 Stefan Agner <stefan@agner.ch>
34220 * config/arm/arm.c (arm_option_override_internal): Force
34221 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34223 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34226 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34229 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34231 * config/arm/arm-builtins.c
34232 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34233 (MAC_LANE_PAIR_QUALIFIERS): New.
34234 (arm_expand_builtin_args): Use it.
34235 (arm_expand_builtin_1): Likewise.
34236 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34237 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34238 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34239 * config/arm/arm_neon.h:
34240 (vcadd_rot90_f16): New.
34241 (vcaddq_rot90_f16): New.
34242 (vcadd_rot270_f16): New.
34243 (vcaddq_rot270_f16): New.
34246 (vcmla_lane_f16): New.
34247 (vcmla_laneq_f16): New.
34248 (vcmlaq_lane_f16): New.
34249 (vcmlaq_laneq_f16): New.
34250 (vcmla_rot90_f16): New.
34251 (vcmlaq_rot90_f16): New.
34252 (vcmla_rot90_lane_f16): New.
34253 (vcmla_rot90_laneq_f16): New.
34254 (vcmlaq_rot90_lane_f16): New.
34255 (vcmlaq_rot90_laneq_f16): New.
34256 (vcmla_rot180_f16): New.
34257 (vcmlaq_rot180_f16): New.
34258 (vcmla_rot180_lane_f16): New.
34259 (vcmla_rot180_laneq_f16): New.
34260 (vcmlaq_rot180_lane_f16): New.
34261 (vcmlaq_rot180_laneq_f16): New.
34262 (vcmla_rot270_f16): New.
34263 (vcmlaq_rot270_f16): New.
34264 (vcmla_rot270_lane_f16): New.
34265 (vcmla_rot270_laneq_f16): New.
34266 (vcmlaq_rot270_lane_f16): New.
34267 (vcmlaq_rot270_laneq_f16): New.
34268 (vcadd_rot90_f32): New.
34269 (vcaddq_rot90_f32): New.
34270 (vcadd_rot270_f32): New.
34271 (vcaddq_rot270_f32): New.
34274 (vcmla_lane_f32): New.
34275 (vcmla_laneq_f32): New.
34276 (vcmlaq_lane_f32): New.
34277 (vcmlaq_laneq_f32): New.
34278 (vcmla_rot90_f32): New.
34279 (vcmlaq_rot90_f32): New.
34280 (vcmla_rot90_lane_f32): New.
34281 (vcmla_rot90_laneq_f32): New.
34282 (vcmlaq_rot90_lane_f32): New.
34283 (vcmlaq_rot90_laneq_f32): New.
34284 (vcmla_rot180_f32): New.
34285 (vcmlaq_rot180_f32): New.
34286 (vcmla_rot180_lane_f32): New.
34287 (vcmla_rot180_laneq_f32): New.
34288 (vcmlaq_rot180_lane_f32): New.
34289 (vcmlaq_rot180_laneq_f32): New.
34290 (vcmla_rot270_f32): New.
34291 (vcmlaq_rot270_f32): New.
34292 (vcmla_rot270_lane_f32): New.
34293 (vcmla_rot270_laneq_f32): New.
34294 (vcmlaq_rot270_lane_f32): New.
34295 (vcmlaq_rot270_laneq_f32): New.
34296 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34297 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34298 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34299 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34300 vcmlaq_lane270): New.
34301 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34302 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34303 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34304 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34305 (arm_option_reconfigure_globals): Use them.
34306 * config/arm/iterators.md (VDF, VQ_HSF): New.
34307 (VCADD, VCMLA): New.
34308 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34309 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34311 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34312 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34314 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34316 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34317 Add qualifier_lane_pair_index.
34318 (emit-rtl.h): Include.
34319 (TYPES_QUADOP_LANE_PAIR): New.
34320 (aarch64_simd_expand_args): Use it.
34321 (aarch64_simd_expand_builtin): Likewise.
34322 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34324 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34325 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34326 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34327 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34328 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34329 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34330 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34331 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34332 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34333 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34334 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34335 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34336 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34337 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34338 Add __ARM_FEATURE_COMPLEX.
34339 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34340 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34341 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34342 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34343 fcmlaq_lane270): New.
34344 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34345 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34346 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34347 * config/aarch64/arm_neon.h:
34348 (vcadd_rot90_f16): New.
34349 (vcaddq_rot90_f16): New.
34350 (vcadd_rot270_f16): New.
34351 (vcaddq_rot270_f16): New.
34354 (vcmla_lane_f16): New.
34355 (vcmla_laneq_f16): New.
34356 (vcmlaq_lane_f16): New.
34357 (vcmlaq_rot90_lane_f16): New.
34358 (vcmla_rot90_laneq_f16): New.
34359 (vcmla_rot90_lane_f16): New.
34360 (vcmlaq_rot90_f16): New.
34361 (vcmla_rot90_f16): New.
34362 (vcmlaq_laneq_f16): New.
34363 (vcmla_rot180_laneq_f16): New.
34364 (vcmla_rot180_lane_f16): New.
34365 (vcmlaq_rot180_f16): New.
34366 (vcmla_rot180_f16): New.
34367 (vcmlaq_rot90_laneq_f16): New.
34368 (vcmlaq_rot270_laneq_f16): New.
34369 (vcmlaq_rot270_lane_f16): New.
34370 (vcmla_rot270_laneq_f16): New.
34371 (vcmlaq_rot270_f16): New.
34372 (vcmla_rot270_f16): New.
34373 (vcmlaq_rot180_laneq_f16): New.
34374 (vcmlaq_rot180_lane_f16): New.
34375 (vcmla_rot270_lane_f16): New.
34376 (vcadd_rot90_f32): New.
34377 (vcaddq_rot90_f32): New.
34378 (vcaddq_rot90_f64): New.
34379 (vcadd_rot270_f32): New.
34380 (vcaddq_rot270_f32): New.
34381 (vcaddq_rot270_f64): New.
34385 (vcmla_lane_f32): New.
34386 (vcmla_laneq_f32): New.
34387 (vcmlaq_lane_f32): New.
34388 (vcmlaq_laneq_f32): New.
34389 (vcmla_rot90_f32): New.
34390 (vcmlaq_rot90_f32): New.
34391 (vcmlaq_rot90_f64): New.
34392 (vcmla_rot90_lane_f32): New.
34393 (vcmla_rot90_laneq_f32): New.
34394 (vcmlaq_rot90_lane_f32): New.
34395 (vcmlaq_rot90_laneq_f32): New.
34396 (vcmla_rot180_f32): New.
34397 (vcmlaq_rot180_f32): New.
34398 (vcmlaq_rot180_f64): New.
34399 (vcmla_rot180_lane_f32): New.
34400 (vcmla_rot180_laneq_f32): New.
34401 (vcmlaq_rot180_lane_f32): New.
34402 (vcmlaq_rot180_laneq_f32): New.
34403 (vcmla_rot270_f32): New.
34404 (vcmlaq_rot270_f32): New.
34405 (vcmlaq_rot270_f64): New.
34406 (vcmla_rot270_lane_f32): New.
34407 (vcmla_rot270_laneq_f32): New.
34408 (vcmlaq_rot270_lane_f32): New.
34409 (vcmlaq_rot270_laneq_f32): New.
34410 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34411 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34412 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34413 (FCADD, FCMLA): New.
34415 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34417 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34421 * config/pa/pa.c: Change "can not" to "cannot".
34422 * gimple-ssa-evrp-analyze.c: Likewise.
34423 * ipa-icf.c: Likewise.
34424 * ipa-polymorphic-call.c: Likewise.
34425 * ipa-pure-const.c: Likewise.
34426 * lra-constraints.c: Likewise.
34427 * lra-remat.c: Likewise.
34428 * reload1.c: Likewise.
34429 * reorg.c: Likewise.
34430 * tree-ssa-uninit.c: Likewise.
34432 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34436 * Makefile.in: Mechanically replace "can not" with "cannot".
34437 * alias.c: Likewise.
34438 * builtins.c: Likewise.
34439 * calls.c: Likewise.
34440 * cgraph.c: Likewise.
34441 * cgraph.h: Likewise.
34442 * cgraphclones.c: Likewise.
34443 * cgraphunit.c: Likewise.
34444 * combine-stack-adj.c: Likewise.
34445 * combine.c: Likewise.
34446 * common/config/i386/i386-common.c: Likewise.
34447 * config/aarch64/aarch64.c: Likewise.
34448 * config/alpha/sync.md: Likewise.
34449 * config/arc/arc.c: Likewise.
34450 * config/arc/predicates.md: Likewise.
34451 * config/arm/arm-c.c: Likewise.
34452 * config/arm/arm.c: Likewise.
34453 * config/arm/arm.h: Likewise.
34454 * config/arm/arm.md: Likewise.
34455 * config/arm/cortex-r4f.md: Likewise.
34456 * config/csky/csky.c: Likewise.
34457 * config/csky/csky.h: Likewise.
34458 * config/darwin-f.c: Likewise.
34459 * config/epiphany/epiphany.md: Likewise.
34460 * config/i386/i386.c: Likewise.
34461 * config/i386/sol2.h: Likewise.
34462 * config/m68k/m68k.c: Likewise.
34463 * config/mcore/mcore.h: Likewise.
34464 * config/microblaze/microblaze.md: Likewise.
34465 * config/mips/20kc.md: Likewise.
34466 * config/mips/sb1.md: Likewise.
34467 * config/nds32/nds32.c: Likewise.
34468 * config/nds32/predicates.md: Likewise.
34469 * config/pa/pa.c: Likewise.
34470 * config/rs6000/e300c2c3.md: Likewise.
34471 * config/rs6000/rs6000.c: Likewise.
34472 * config/s390/s390.h: Likewise.
34473 * config/sh/sh.c: Likewise.
34474 * config/sh/sh.md: Likewise.
34475 * config/spu/vmx2spu.h: Likewise.
34476 * cprop.c: Likewise.
34477 * dbxout.c: Likewise.
34478 * df-scan.c: Likewise.
34479 * doc/cfg.texi: Likewise.
34480 * doc/extend.texi: Likewise.
34481 * doc/fragments.texi: Likewise.
34482 * doc/gty.texi: Likewise.
34483 * doc/invoke.texi: Likewise.
34484 * doc/lto.texi: Likewise.
34485 * doc/md.texi: Likewise.
34486 * doc/objc.texi: Likewise.
34487 * doc/rtl.texi: Likewise.
34488 * doc/tm.texi: Likewise.
34490 * emit-rtl.c: Likewise.
34491 * emit-rtl.h: Likewise.
34492 * except.c: Likewise.
34493 * expmed.c: Likewise.
34494 * expr.c: Likewise.
34495 * fold-const.c: Likewise.
34496 * genautomata.c: Likewise.
34497 * gimple-fold.c: Likewise.
34498 * hard-reg-set.h: Likewise.
34499 * ifcvt.c: Likewise.
34500 * ipa-comdats.c: Likewise.
34501 * ipa-cp.c: Likewise.
34502 * ipa-devirt.c: Likewise.
34503 * ipa-fnsummary.c: Likewise.
34504 * ipa-icf.c: Likewise.
34505 * ipa-inline-transform.c: Likewise.
34506 * ipa-inline.c: Likewise.
34507 * ipa-polymorphic-call.c: Likewise.
34508 * ipa-profile.c: Likewise.
34509 * ipa-prop.c: Likewise.
34510 * ipa-pure-const.c: Likewise.
34511 * ipa-reference.c: Likewise.
34512 * ipa-split.c: Likewise.
34513 * ipa-visibility.c: Likewise.
34515 * ira-build.c: Likewise.
34516 * ira-color.c: Likewise.
34517 * ira-conflicts.c: Likewise.
34518 * ira-costs.c: Likewise.
34519 * ira-int.h: Likewise.
34520 * ira-lives.c: Likewise.
34523 * loop-invariant.c: Likewise.
34524 * loop-unroll.c: Likewise.
34525 * lower-subreg.c: Likewise.
34526 * lra-assigns.c: Likewise.
34527 * lra-constraints.c: Likewise.
34528 * lra-eliminations.c: Likewise.
34529 * lra-lives.c: Likewise.
34530 * lra-remat.c: Likewise.
34531 * lra-spills.c: Likewise.
34533 * lto-cgraph.c: Likewise.
34534 * lto-streamer-out.c: Likewise.
34535 * postreload-gcse.c: Likewise.
34536 * predict.c: Likewise.
34537 * profile-count.h: Likewise.
34538 * profile.c: Likewise.
34539 * recog.c: Likewise.
34541 * reload.c: Likewise.
34542 * reload1.c: Likewise.
34543 * reorg.c: Likewise.
34544 * resource.c: Likewise.
34545 * rtl.def: Likewise.
34547 * rtlanal.c: Likewise.
34548 * sched-deps.c: Likewise.
34549 * sched-ebb.c: Likewise.
34550 * sched-rgn.c: Likewise.
34551 * sel-sched-ir.c: Likewise.
34552 * sel-sched.c: Likewise.
34553 * shrink-wrap.c: Likewise.
34554 * simplify-rtx.c: Likewise.
34555 * symtab.c: Likewise.
34556 * target.def: Likewise.
34557 * toplev.c: Likewise.
34558 * tree-call-cdce.c: Likewise.
34559 * tree-cfg.c: Likewise.
34560 * tree-complex.c: Likewise.
34561 * tree-core.h: Likewise.
34562 * tree-eh.c: Likewise.
34563 * tree-inline.c: Likewise.
34564 * tree-loop-distribution.c: Likewise.
34565 * tree-nrv.c: Likewise.
34566 * tree-profile.c: Likewise.
34567 * tree-sra.c: Likewise.
34568 * tree-ssa-alias.c: Likewise.
34569 * tree-ssa-dce.c: Likewise.
34570 * tree-ssa-dom.c: Likewise.
34571 * tree-ssa-forwprop.c: Likewise.
34572 * tree-ssa-loop-im.c: Likewise.
34573 * tree-ssa-loop-ivcanon.c: Likewise.
34574 * tree-ssa-loop-ivopts.c: Likewise.
34575 * tree-ssa-loop-niter.c: Likewise.
34576 * tree-ssa-phionlycprop.c: Likewise.
34577 * tree-ssa-phiopt.c: Likewise.
34578 * tree-ssa-propagate.c: Likewise.
34579 * tree-ssa-threadedge.c: Likewise.
34580 * tree-ssa-threadupdate.c: Likewise.
34581 * tree-ssa-uninit.c: Likewise.
34582 * tree-ssanames.c: Likewise.
34583 * tree-streamer-out.c: Likewise.
34584 * tree.c: Likewise.
34585 * tree.h: Likewise.
34586 * vr-values.c: Likewise.
34588 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34590 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34591 (ix86_split_xorsign): Ditto.
34592 * config/i386/i386.c (ix86_expand_xorsign): New function.
34593 (ix86_split_xorsign): Ditto.
34594 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34595 (xorsign<mode>3): New expander.
34596 (xorsign<mode>3_1): New insn_and_split pattern.
34597 * config/i386/sse.md (xorsign<mode>3): New expander.
34599 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34601 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34602 (*tablejump_sp64): Likewise.
34603 (*tablejump<P:mode>): ...this.
34604 (*call_address_sp32): Merge into...
34605 (*call_address_sp64): Likewise.
34606 (*call_address<P:mode>): ...this.
34607 (*call_symbolic_sp32): Merge into...
34608 (*call_symbolic_sp64): Likewise.
34609 (*call_symbolic<P:mode>): ...this.
34610 (call_value): Remove constraint and add predicate.
34611 (*call_value_address_sp32): Merge into...
34612 (*call_value_address_sp64): Likewise.
34613 (*call_value_address<P:mode>): ...this.
34614 (*call_value_symbolic_sp32): Merge into...
34615 (*call_value_symbolic_sp64): Likewise.
34616 (*call_value_symbolic<P:mode>): ...this.
34617 (*sibcall_symbolic_sp32): Merge into...
34618 (*sibcall_symbolic_sp64): Likewise.
34619 (*sibcall_symbolic<P:mode>): ...this.
34620 (sibcall_value): Remove constraint and add predicate.
34621 (*sibcall_value_symbolic_sp32): Merge into...
34622 (*sibcall_value_symbolic_sp64): Likewise.
34623 (*sibcall_value_symbolic<P:mode>): ...this.
34624 (window_save): Minor tweak.
34625 (*branch_sp32): Merge into...
34626 (*branch_sp64): Likewise.
34627 (*branch<P:mode>): ...this.
34629 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34630 James Clarke <jrtc27@jrtc27.com>
34633 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34634 consistently in TLS address generation and adjust code to the renaming
34635 of patterns. Mark calls to __tls_get_addr as const.
34636 * config/sparc/sparc.md (tgd_hi22): Turn into...
34637 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34638 (tgd_lo10): Turn into...
34639 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34640 (tgd_add32): Merge into...
34641 (tgd_add64): Likewise.
34642 (tgd_add<P:mode>): ...this and use Pmode throughout.
34643 (tldm_hi22): Turn into...
34644 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34645 (tldm_lo10): Turn into...
34646 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34647 (tldm_add32): Merge into...
34648 (tldm_add64): Likewise.
34649 (tldm_add<P:mode>): ...this and use Pmode throughout.
34650 (tldm_call32): Merge into...
34651 (tldm_call64): Likewise.
34652 (tldm_call<P:mode>): ...this and use Pmode throughout.
34653 (tldo_hix22): Turn into...
34654 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34655 (tldo_lox10): Turn into...
34656 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34657 (tldo_add32): Merge into...
34658 (tldo_add64): Likewise.
34659 (tldo_add<P:mode>): ...this and use Pmode throughout.
34660 (tie_hi22): Turn into...
34661 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34662 (tie_lo10): Turn into...
34663 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34664 (tie_ld64): Use DImode throughout.
34665 (tie_add32): Merge into...
34666 (tie_add64): Likewise.
34667 (tie_add<P:mode>): ...this and use Pmode throughout.
34668 (tle_hix22_sp32): Merge into...
34669 (tle_hix22_sp64): Likewise.
34670 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34671 (tle_lox22_sp32): Merge into...
34672 (tle_lox22_sp64): Likewise.
34673 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34674 (*tldo_ldub_sp32): Merge into...
34675 (*tldo_ldub_sp64): Likewise.
34676 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34677 (*tldo_ldub1_sp32): Merge into...
34678 (*tldo_ldub1_sp64): Likewise.
34679 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34680 (*tldo_ldub2_sp32): Merge into...
34681 (*tldo_ldub2_sp64): Likewise.
34682 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34683 (*tldo_ldsb1_sp32): Merge into...
34684 (*tldo_ldsb1_sp64): Likewise.
34685 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34686 (*tldo_ldsb2_sp32): Merge into...
34687 (*tldo_ldsb2_sp64): Likewise.
34688 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34689 (*tldo_ldub3_sp64): Use DImode throughout.
34690 (*tldo_ldsb3_sp64): Likewise.
34691 (*tldo_lduh_sp32): Merge into...
34692 (*tldo_lduh_sp64): Likewise.
34693 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34694 (*tldo_lduh1_sp32): Merge into...
34695 (*tldo_lduh1_sp64): Likewise.
34696 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34697 (*tldo_ldsh1_sp32): Merge into...
34698 (*tldo_ldsh1_sp64): Likewise.
34699 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34700 (*tldo_lduh2_sp64): Use DImode throughout.
34701 (*tldo_ldsh2_sp64): Likewise.
34702 (*tldo_lduw_sp32): Merge into...
34703 (*tldo_lduw_sp64): Likewise.
34704 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34705 (*tldo_lduw1_sp64): Use DImode throughout.
34706 (*tldo_ldsw1_sp64): Likewise.
34707 (*tldo_ldx_sp64): Likewise.
34708 (*tldo_stb_sp32): Merge into...
34709 (*tldo_stb_sp64): Likewise.
34710 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34711 (*tldo_sth_sp32): Merge into...
34712 (*tldo_sth_sp64): Likewise.
34713 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34714 (*tldo_stw_sp32): Merge into...
34715 (*tldo_stw_sp64): Likewise.
34716 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34717 (*tldo_stx_sp64): Use DImode throughout.
34719 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34721 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34722 check configure option to set BTI and Return Address Signing.
34723 * configure.ac: Add --enable-standard-branch-protection and
34724 --disable-standard-branch-protection.
34725 * configure: Regenerated.
34726 * doc/install.texi: Document the same.
34728 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34729 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34731 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34732 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34733 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34735 * config/aarch64/aarch64-bti-insert.c: New file.
34736 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34738 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34740 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34741 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34742 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34743 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34745 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34747 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34748 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34749 Disable bti for -mbranch-protection=none.
34750 (aarch64_handle_standard_branch_protection): Enable bti for
34751 -mbranch-protection=standard.
34752 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34753 -mbranch-protection.
34754 (aarch64_bti_enabled): Check if bti is enabled.
34755 * config/aarch64/aarch64.opt: Declare target variable.
34756 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34758 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34760 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34761 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34762 (aarch64_expand_epilogue): Likewise.
34763 (aarch64_output_mi_thunk): Likewise.
34764 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34765 TAILCALL_ADDR_REGS to x16 and x17.
34766 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34768 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34770 * config/aarch64/aarch64-option-extensions.def: Define
34771 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34772 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34773 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34774 (AARCH64_FL_PREDRES): New.
34775 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34776 AARCH64_FL_PREDRES by default.
34777 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34779 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34781 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34783 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34784 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34785 * doc/invoke.texi: Document ARMv8.5-A.
34787 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34789 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34790 (xorsign<mode>3): Likewise.
34792 2019-01-09 Jelinek <jakub@redhat.com>
34794 PR middle-end/88758
34795 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34796 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34798 PR rtl-optimization/88331
34799 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34800 not currently_expanding_to_rtl.
34802 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34804 * doc/invoke.texi (-Os): Remove trailing spaces.
34805 (-finline-functions): Remove reference to -O2.
34807 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34809 PR rtl-optimization/79593
34810 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34812 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34813 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34815 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34818 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34822 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34823 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34825 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34828 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34829 ix86_avx_u128_mode_entry.
34831 2019-01-08 Martin Liska <mliska@suse.cz>
34833 PR tree-optimization/88753
34834 * tree-switch-conversion.c (switch_conversion::build_one_array):
34835 Come up with local variable constructor. Convert first to
34836 type of constructor values.
34838 2019-01-08 Richard Biener <rguenther@suse.de>
34840 PR tree-optimization/86554
34841 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34842 rpo_avail): Move earlier.
34843 (visit_nary_op): When value-numbering to expressions
34844 with different overflow behavior make sure there's an
34845 available expression on the path.
34847 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34849 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34850 aarch64_parse_branch_protection,
34851 struct aarch64_branch_protect_type,
34852 aarch64_handle_no_branch_protection,
34853 aarch64_handle_standard_branch_protection,
34854 aarch64_validate_mbranch_protection,
34855 aarch64_handle_pac_ret_protection,
34856 aarch64_handle_attr_branch_protection,
34857 accepted_branch_protection_string,
34858 aarch64_pac_ret_subtypes,
34859 aarch64_branch_protect_types,
34860 aarch64_handle_pac_ret_leaf): Define.
34861 (aarch64_override_options_after_change_1, aarch64_override_options):
34862 Add check for accepted_branch_protection_string.
34863 (aarch64_option_save): Save accepted_branch_protection_string.
34864 (aarch64_option_restore): Save accepted_branch_protection_string.
34865 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34866 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34867 msign-return-address.
34868 * doc/invoke.texi: Add mbranch-protection.
34870 2019-01-08 Alan Modra <amodra@gmail.com>
34873 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34874 Delete "unknownp" parameter. Adjust callers. Handle
34875 CONST_INT, PLUS, MINUS, and MULT.
34876 (attr_value_aligned): Renamed from or_attr_value.
34877 (min_attr_value): Return INT_MIN for unhandled rtl case..
34878 (min_fn): ..and translate to INT_MAX here.
34879 (write_length_unit_log): Modify to cope without "unknown".
34880 (write_attr_value): Handle IF_THEN_ELSE.
34882 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34884 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34885 optimization for masked stores.
34887 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34889 PR middle-end/88567
34890 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34891 output vector directly to duplicate_and_interleave instead of
34892 going through a temporary. Postpone insertion of ctor_seq to
34893 the end of the loop.
34895 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34898 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34899 unsigned_p. Handle signed and unsigned overflow correction as
34901 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34903 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34905 (add<mode>3_compareV_imm): Make this callable for expanding.
34906 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34907 aarch64_plus_operand for operand 2.
34908 (subv<GPI:mode>_insn): New insn pattern.
34909 (subv<GPI:mode>_imm): Likewise.
34910 (negv<GPI:mode>3): New expand pattern.
34911 (negv<GPI:mode>_insn): New insn pattern.
34912 (negv<GPI:mode>_cmp_only): Likewise.
34913 (cmpv<GPI:mode>_insn): Likewise.
34914 (subvti4): Use register_operand for operand 1. Update call to
34915 aarch64_expand_subvti.
34916 (usubvti4): Likewise.
34917 (negvti3): New expand pattern.
34918 (negdi_carryout): New insn pattern.
34919 (negvdi_carryinV): New insn pattern.
34920 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34921 version the named version.
34922 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34924 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34926 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34928 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34929 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34930 (sub<mode>3_carryinCV): Delete.
34931 (sub<GPI:mode>3_carryinV): New expand pattern.
34932 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34934 2019-01-07 Richard Biener <rguenther@suse.de>
34936 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34937 of tree_operand_hash.
34939 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34941 PR tree-optimization/88598
34942 * tree.h (single_nonzero_element): Declare.
34943 * tree.c (single_nonzero_element): New function.
34944 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
34945 if I is the only nonzero element of CST.
34947 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34949 PR tree-optimization/88598
34950 * tree.h (initializer_each_zero_or_onep): Declare.
34951 * tree.c (initializer_each_zero_or_onep): New function.
34952 (signed_or_unsigned_type_for): Handle float types too.
34953 (unsigned_type_for, signed_type_for): Update comments accordingly.
34954 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
34955 x & { 0 or -1, 0 or -1, ... }.
34957 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
34959 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
34960 with x86_64-pc-linux-gnu.
34962 2019-01-07 Tom de Vries <tdevries@suse.de>
34965 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
34967 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
34970 2019-01-07 Jakub Jelinek <jakub@redhat.com>
34972 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
34973 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
34974 TARGET_AVX512F as condition.
34977 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
34978 const_not_ok_for_debug_p target hook.
34979 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
34980 on UNSPEC and subexpressions thereof if all subexpressions of the
34981 UNSPEC are CONSTANT_P.
34983 PR tree-optimization/88676
34984 * tree-ssa-phiopt.c (two_value_replacement): New function.
34985 (tree_ssa_phiopt_worker): Call it.
34988 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
34989 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
34992 * tree-vect-generic.c: Include insn-config.h and recog.h.
34993 (expand_vector_piecewise): Add defaulted ret_type argument,
34994 if non-NULL, use that in preference to type for the result type.
34995 (expand_vector_parallel): Formatting fix.
34996 (do_vec_conversion, do_vec_narrowing_conversion,
34997 expand_vector_conversion): New functions.
34998 (expand_vector_operations_1): Call expand_vector_conversion
34999 for VEC_CONVERT ifn calls.
35000 * internal-fn.def (VEC_CONVERT): New internal function.
35001 * internal-fn.c (expand_VEC_CONVERT): New function.
35002 * fold-const-call.c (fold_const_vec_convert): New function.
35003 (fold_const_call): Use it for CFN_VEC_CONVERT.
35004 * doc/extend.texi (__builtin_convertvector): Document.
35006 2019-01-07 Tom de Vries <tdevries@suse.de>
35008 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35009 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35010 vector_red_partition, vector_red_sym): New global variables.
35011 (nvptx_option_override): Initialize vector_red_sym.
35012 (nvptx_declare_function_name): Restore red_partition register.
35013 (nvptx_file_end): Emit code to declare the vector reduction variables.
35014 (nvptx_output_red_partition): New function.
35015 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35016 large vector reductions.
35017 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35018 (nvptx_init_builtins): Add VECTOR_ADDR.
35019 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35020 Handle nvptx_expand_shared_addr.
35021 (nvptx_get_shared_red_addr): Add vector argument and handle large
35023 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35025 (nvptx_goacc_reduction_init): Likewise.
35026 (nvptx_goacc_reduction_fini): Likewise.
35027 (nvptx_goacc_reduction_teardown): Likewise.
35028 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35029 init,fini,teardown}.
35030 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35031 (nvptx_set_current_function): Init vector_red_partition.
35032 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35033 (nvptx_red_partition): New insn.
35034 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35036 2019-01-07 Tom de Vries <tdevries@suse.de>
35039 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35042 2019-01-07 Tom de Vries <tdevries@suse.de>
35044 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35045 (nvptx_option_override): Init oacc_bcast_partition.
35046 (nvptx_init_oacc_workers): New function.
35047 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35048 (nvptx_needs_shared_bcast): New function.
35049 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35050 to propagate state.
35051 (nvptx_shared_propagate): Initialize vector bcast partition and
35052 synchronization state.
35053 (nvptx_single): Generalize to enable vectors to use shared-memory
35054 to propagate state.
35055 (nvptx_process_pars): Likewise.
35056 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35057 * config/nvptx/nvptx.h (struct machine_function): Add
35058 bcast_partition and sync_bar members.
35060 2019-01-07 Tom de Vries <tdevries@suse.de>
35062 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35063 (nvptx_apply_dim_limits): New function.
35064 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35067 2019-01-07 Tom de Vries <tdevries@suse.de>
35069 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35070 as late as possible.
35072 2019-01-07 Tom de Vries <tdevries@suse.de>
35074 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35075 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35076 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35077 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35078 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35080 2019-01-07 Tom de Vries <tdevries@suse.de>
35082 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35084 2019-01-07 Tom de Vries <tdevries@suse.de>
35086 * omp-offload.c (oacc_get_min_dim): New function.
35087 * omp-offload.h (oacc_get_min_dim): Declare.
35089 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35092 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35093 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35095 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35099 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35101 * ipa-inline.c (edge_badness): Use inlined_time instead of
35102 inline_summaries->get.
35104 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35106 * opts.c (enable_fdo_optimizations): Enable
35107 version-loops-for-strides, loop-interchange, unrol-and-jam
35108 and tree-loop-distribution.
35109 * invoke.texi: Document newly enabled options.
35111 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35113 * doc/invoke.texi (max-inline-insns-small): New parameters.
35114 * ipa-inline.c (want_early_inline_function_p): simplify.
35115 (want_inline_small_function_p): Fix pasto from previous patch;
35116 use max-inline-insns-small bound.
35117 * params.def (max-inline-insns-small): New param.
35118 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35119 variables correctly.
35121 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35123 * doc/invoke.texi: Document max-inline-insns-size,
35124 uninlined-function-insns, uninlined-function-time,
35125 uninlined-thunk-insns and uninlined-thunk-time.
35126 * params.def: Add max-inline-insns-size,
35127 uninlined-function-insns, uninlined-function-time,
35128 uninlined-thunk-insns and uninlined-thunk-time.
35129 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35131 * ipa-inline.c (can_inline_edge_by_limits_p,
35132 want_inline_small_function_p): Use new parameters.
35134 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35136 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35138 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35140 PR middle-end/82564
35142 * expr.c (expand_assignment): For calls returning VLA structures
35143 if to_rtx is not a MEM, force it into a stack temporary.
35146 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35147 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35148 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35149 subexpressions of both operands.
35150 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35151 subrtxes are CONSTANT_P.
35152 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35153 2018-11-09 changes.
35155 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35157 * params.def (hot-bb-count-ws-permille): Set to 990.
35159 2019-01-04 Martin Sebor <msebor@redhat.com>
35162 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35165 2019-01-04 Martin Sebor <msebor@redhat.com>
35168 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35170 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35172 * gdbinit.in: Turn off pagination for the skip commands, restore
35173 it to previous state afterwards.
35175 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35178 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35179 of GET_MODE (opN) as modes of the libcall arguments.
35181 2019-01-04 Jan Beulich <jbeulich@suse.com>
35183 * config/i386/sse.md
35184 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35185 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35186 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35187 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35188 avx512f_vmcmp<mode>3<round_saeonly_name>,
35189 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35190 avx512f_maskcmp<mode>3,
35191 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35192 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35193 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35194 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35195 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35196 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35197 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35198 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35199 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35200 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35201 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35202 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35203 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35204 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35205 avx512cd_maskb_vec_dup<mode>,
35206 avx512cd_maskw_vec_dup<mode>,
35207 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35208 avx512dq_vmfpclass<mode>,
35209 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35212 2019-01-03 Martin Sebor <msebor@redhat.com>
35214 PR tree-optimization/88659
35215 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35217 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35219 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35220 unaligned vsx and avoid lxvd2x/stxvd2x.
35221 (gen_lvx_v4si_move): New function.
35223 2019-01-03 Tom de Vries <tdevries@suse.de>
35225 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35226 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35228 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35230 2019-01-03 Tom de Vries <tdevries@suse.de>
35232 * config/nvptx/nvptx.c (struct offload_attrs): New.
35233 (populate_offload_attrs): New function. Factor mask extraction out of
35234 nvptx_reorg. Add extraction of dimensions.
35235 (nvptx_reorg): Use populate_offload_attrs.
35237 2019-01-03 Tom de Vries <tdevries@suse.de>
35239 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35240 cases for oacc_min_dims_p and routine_p. Add asserts for
35241 oacc_default_dims_p and offload_region_p.
35243 2019-01-03 Tom de Vries <tdevries@suse.de>
35245 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35246 factored out of ...
35247 (nvptx_goacc_validate_dims): ... here.
35249 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35251 PR tree-optimization/85574
35252 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35254 (struct ssa_equip_hash_traits): Declare.
35255 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35257 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35260 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35261 change it to qualified_type.
35263 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35265 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35266 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35268 2019-01-02 Martin Sebor <msebor@redhat.com>
35269 Jeff Law <law@redhat.com>
35271 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35272 (get_range_strlen_tree): Update appropriately.
35274 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35276 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35277 rather than set_range_info.
35278 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35279 maybe_set_strlen_range. Handle potentially boundary crossing
35280 cases more conservatively.
35281 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35282 Call set_strlen_range.
35283 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35285 PR middle-end/88663
35286 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35287 need the flexp argument.
35288 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35289 from calls to get_range_strlen. Update comments. Just update
35290 VAL for an unterminated const char array and let the reset of the
35291 code handle it normally. No longer try to set *flexp. Adjust
35293 (get_range_strlen): Update for the new get_range_strlen API.
35294 (get_maxval_strlen): Similarly.
35295 (gimple_fold_builtin_strlen): Handle update meaning of return value
35296 from get_range_strlen.
35297 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35298 get_range_strlen API.
35300 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35303 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35304 false at WPA time when body was removed.
35306 2019-01-02 Martin Liska <mliska@suse.cz>
35308 PR tree-optimization/88650
35309 * predict.c (set_even_probabilities): Calculate probability
35310 remainer only when really used.
35312 2019-01-02 Richard Biener <rguenther@suse.de>
35314 PR middle-end/88651
35315 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35316 widest_ints when mangling max_stmt_execution results.
35318 2019-01-02 Richard Biener <rguenther@suse.de>
35320 PR tree-optimization/88621
35321 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35322 bitfields when canoncalizing.
35324 2019-01-02 Richard Biener <rguenther@suse.de>
35327 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35328 cost of cheap SSE instruction.
35330 2019-01-02 Richard Biener <rguenther@suse.de>
35333 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35334 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35336 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35337 set after UIDs before splitting them.
35339 2019-01-01 Martin Sebor <msebor@redhat.com>
35340 Jeff Law <law@redhat.com>
35342 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35343 length is optimistic. If it is, then arrange to compute the
35344 conservative length as well.
35346 * gimple-fold.h (get_range_strlen): Update prototype.
35347 * builtins.c (check_access): Update call to get_range_strlen to use
35348 c_strlen_data pointer. Change various variable accesses to instead
35349 pull data from the c_strlen_data structure.
35350 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35351 * calls.c (maybe_warn_nonstring_arg): Likewise.
35352 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35353 minimum length if maximum lengh is unknown.
35354 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35355 that used c_strlen, it's no longer needed. Restructure slightly.
35356 (format_string): Set unlikely range appropriately.
35357 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35359 (get_range_strlen): Accept c_strlen_data pointer for external
35360 call sites as well. Pass through to call to internal get_range_strlen.
35361 Adjust minlen, maxlen and maxbound as needed.
35362 (get_maxval_strlen): Update comments.
35363 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35364 to use c_strlen_data pointer. Change variable accesses to instead
35365 use c_strlen_data data members.
35367 * gimple-fold.c (get_range_strlen): Update prototype.
35368 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35369 local variables. Use pdata to return information to caller.
35370 Update calls to get_range_strlen. Update pdata->maxbound.
35371 (get_range_strlen -- static version): Similarly.
35372 (get_range_strlen -- extern version): Update for internal
35373 get_range_strlen API change. Convert to external data format.
35374 (get_maxval_strlen): Similarly.
35376 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35378 * coverage.c (get_coverage_counts): Use current_function_decl.
35379 * profile.c (read_thunk_profile): New function.
35380 (branch_prob): Add THUNK parameter.
35381 * tree-profile.c (tree_profiling): Handle thunks.
35382 * value-prof.c (init_node_map): Handle thunks.
35383 * value-prof.h (branch_prob): Upate prototype.
35384 (read_thunk_profile): Declare.
35386 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35388 Update copyright years.
35390 * gcc.c (process_command): Update copyright notice dates.
35391 * gcov-dump.c (print_version): Ditto.
35392 * gcov.c (print_version): Ditto.
35393 * gcov-tool.c (print_version): Ditto.
35394 * gengtype.c (create_file): Ditto.
35395 * doc/cpp.texi: Bump @copying's copyright year.
35396 * doc/cppinternals.texi: Ditto.
35397 * doc/gcc.texi: Ditto.
35398 * doc/gccint.texi: Ditto.
35399 * doc/gcov.texi: Ditto.
35400 * doc/install.texi: Ditto.
35401 * doc/invoke.texi: Ditto.
35403 Copyright (C) 2019 Free Software Foundation, Inc.
35405 Copying and distribution of this file, with or without modification,
35406 are permitted in any medium without royalty provided the copyright
35407 notice and this notice are preserved.