1 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
2 Kwok Cheung Yeung <kcy@codesourcery.com>
4 * omp-low.c (lower_omp_target): For optional arguments, deref once
5 more to obtain the type.
7 2019-12-06 Richard Biener <rguenther@suse.de>
9 * match.pd (nop_convert): Remove empty match. Use nop_convert?
12 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
14 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
15 for empty vectors. Avoid using ordered_remove and instead
16 shuffle the vector as we go.
18 2019-12-06 Richard Biener <rguenther@suse.de>
20 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
22 (expr::opt_grp): Add and initialize.
23 (lower_opt_convert): Rename to ...
24 (lower_opt): ... and work on opt_grp, simply switching operations
25 from being optional to being present or not.
26 (has_opt_convert): Rename to ...
27 (has_opt): ... and adjust.
28 (parser::parse_operation): Return the optional opt_grp,
29 remove special-casing of conditional operations and more generally
31 (parser::parse_expr): Stick on the parsed opt_grp and perform
33 (parser::parse_for): Remove now unnecessary code.
35 * doc/match-and-simplify.texi: Mention ? now works on all
36 unary operations and also match predicates.
38 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
40 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
41 functions, not inline clones.
43 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
45 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
47 2019-12-06 Richard Biener <rguenther@suse.de>
49 * genmatch.c (c_expr::gen_transform): Emit newlines from line
50 number changes rather than after every semicolon.
52 2019-12-06 Richard Biener <rguenther@suse.de>
54 PR tree-optimization/92819
55 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
56 into the last lane. For two-element vectors try inserting
57 into the last lane when inserting into the first fails.
59 2019-12-06 Jakub Jelinek <jakub@redhat.com>
61 * common.opt (fprofile-partial-training): Terminate description with
64 2019-12-05 Martin Sebor <msebor@redhat.com>
67 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
68 left uninitialized by get_addr_base_and_unit_offset on failure.
70 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
72 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
73 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
74 (detect_type_change): Likewise.
75 (detect_type_change_ssa): Likewise.
76 (ipa_analyze_virtual_call_uses): Update.
78 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
80 * config/nios2/linux.h (LINK_EH_SPEC): Define.
82 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
84 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
86 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
88 * cgraphclones.c (localize_profile): New function.
89 (cgraph_node::create_clone): Use it for partial profiles.
90 * common.opt (fprofile-partial-training): New flag.
91 * doc/invoke.texi (-fprofile-partial-training): Document.
92 * ipa-cp.c (update_profiling_info): For partial profiles do not
93 set function profile to zero.
94 * profile.c (compute_branch_probabilities): With partial profile
95 watch if edge count is zero and turn all probabilities to guessed.
96 (compute_branch_probabilities): For partial profiles do not apply
97 profile when entry count is zero.
98 * tree-profile.c (tree_profiling): Only do value_profile_transformations
101 2019-12-05 Sudakshina Das <sudi.das@arm.com>
103 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
104 check from if condition.
106 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
108 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
109 and Fortran's optional arguments, unconditionally add the is-present
110 condition before the libgomp call.
112 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
115 * tree-core.h (OEP_BITWISE): New flag.
116 * fold-const.c (operand_compare::operand_equal_p): Handle it.
117 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
119 2019-12-05 Richard Biener <rguenther@suse.de>
122 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
123 heuristics on what don't care element to choose.
124 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
126 2019-12-05 Martin Liska <mliska@suse.cz>
128 PR gcov-profile/92817
129 * coverage.c (build_gcov_exit_decl): Remove superfluous
132 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
134 * config/msp430/msp430.md (cbranch<mode>4): Use
135 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
136 dest operand of CMP instruction.
137 (cbranchpsi4_real): Likewise.
138 (cbranchqi4_real): Likewise.
139 (cbranchhi4_real): Likewise.
140 (cbranchpsi4_reversed): Likewise.
141 (cbranchqi4_reversed): Likewise.
142 (cbranchhi4_reversed): Likewise.
144 2019-12-05 Richard Biener <rguenther@suse.de>
146 PR tree-optimization/92803
147 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
148 invariant vector construction.
150 2019-12-05 Martin Liska <mliska@suse.cz>
152 PR gcov-profile/91971
153 * coverage.c (coverage_init): Mangle full path
154 only when -fprofile-dir is used.
156 2019-12-05 Jakub Jelinek <jakub@redhat.com>
159 * config/i386/i386.md (movstrict<mode>): Move test for
160 TARGET_PARTIAL_REG_STALL and not optimizing for size from
161 expander's condition to the body - FAIL; in that case.
163 2019-12-03 Martin Sebor <msebor@redhat.com>
166 * builtins.c (gimple_call_alloc_size): New function.
167 (compute_objsize): Add argument. Call gimple_call_alloc_size.
168 Handle variable offsets and indices.
169 * builtins.h (gimple_call_alloc_size): Declare.
170 (compute_objsize): Add argument.
171 * gcc/gimple-ssa-warn-restrict.c: Remove assertions.
172 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
174 2019-12-04 Julian Brown <julian@codesourcery.com>
176 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
178 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
181 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
183 (altivec_overloaded_builtins): Move to rs6000-call.c.
184 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
186 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
187 (altivec_overloaded_builtins): Moved from rs6000-c.c.
188 (rs6000_common_init_builtins): Do no define builtins that overload
189 builtins that have been disabled.
191 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
193 * config/arm/arm.c (arm_option_override_internal):
194 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
196 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
198 * config/aarch64/aarch64.c
199 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
200 (thunderx_tunings): Likewise.
201 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
202 (thunderx2t99_tunings): Likewise.
203 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
204 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
206 2019-12-04 Richard Biener <rguenther@suse.de>
208 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
209 empty CTOR and memset partial-def registering. Take advantage
210 of fancy offset analysis in memset handling.
212 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
214 * fold-const.c (native_encode_vector_part): Handle
215 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
216 (native_decode_vector_tree): Delete, moving the bulk of the code to...
217 (native_interpret_vector_part): ...this new function. Use a pointer
218 and length instead of a vec<> and start index.
219 (native_interpret_vector): Use native_interpret_vector_part.
220 (fold_view_convert_vector_encoding): Likewise.
222 2019-12-04 Richard Biener <rguenther@suse.de>
224 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
225 non-constant defs in the most trivial way.
226 (vn_reference_lookup_3): Also push down SSA partial defs.
228 2019-12-04 Martin Liska <mliska@suse.cz>
230 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
231 Initialize count of newly created BB.
233 2019-12-04 Jakub Jelinek <jakub@redhat.com>
235 PR tree-optimization/92734
236 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
237 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
239 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
242 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
243 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
245 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
247 * ipa-fnsummary.c: Include tree-into-ssa.h.
248 (compute_fn_summary): Call update_ssa.
250 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
252 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
253 is set only for symbol in comdat group.
254 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
256 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
258 * cgraph.c: Include tree-into-ssa.h
259 (cgraph_node::get_body): Call update_ssa.
260 * cgraphunit.c (cgraph_node::expand): Likewise.
261 * lto-streamer-in.c (input_function): Do not call update_ssa.
263 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
265 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
266 an array element size if array_element_size is already an invariant.
267 Similarly don't gimplify and install a field offset if
268 component_ref_field_offset is already an invariant.
270 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
272 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
273 with POLY_INT_CST size is made to a fixed-size object, force the
274 object to live in memory.
276 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
278 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
281 2019-12-03 Richard Biener <rguenther@suse.de>
283 PR tree-optimization/92758
284 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
285 operation on uniform vectors.
287 2019-12-03 Richard Biener <rguenther@suse.de>
289 PR tree-optimization/92645
290 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
291 from or to a properly aligned register variable.
293 2019-12-03 Matthias Klose <doko@ubuntu.com>
295 * Makefile.in (SOURCES): Add doc/lto-dump.1.
296 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
297 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
299 2019-12-03 Richard Biener <rguenther@suse.de>
301 PR tree-optimization/92751
302 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
303 when a clobber ends up in the partial-def vector.
304 (vn_reference_lookup_3): Let clobbers be handled by the
305 assignment from CTOR handling.
307 2019-12-03 Jakub Jelinek <jakub@redhat.com>
309 PR tree-optimization/92734
310 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
311 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
314 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
315 Jakub Jelinek <jakub@redhat.com>
318 * config/i386/i386.md (peephole2 for *swap<mode>): Use
319 general_reg_operand predicates instead of register_operand.
321 2019-12-03 Richard Biener <rguenther@suse.de>
323 PR tree-optimization/92645
324 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
325 a full def of a vector via a BIT_INSERT_EXPR.
327 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
329 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
331 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
334 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
337 * fold-const.c (fold_convertible_p): Check vector types more
340 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
342 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
343 (aarch64_expand_mov_immediate): Use it when attempting to measure
344 the length of an SVE vector.
345 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
348 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
350 * config/aarch64/aarch64-sve-builtins.h
351 (gimple_folder::force_vector): Declare.
352 * config/aarch64/aarch64-sve-builtins.cc
353 (gimple_folder::force_vector): New function.
354 * config/aarch64/aarch64-sve-builtins-base.cc
355 (svcmp_impl::fold): Likewise.
356 (svdup_impl::fold): Handle svdup_z too.
358 2019-12-02 Martin Liska <mliska@suse.cz>
360 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
362 (debug_tree_odr_name): New.
363 * ipa-utils.h (get_odr_name_for_type): New.
365 2019-12-02 Richard Biener <rguenther@suse.de>
367 PR tree-optimization/92742
368 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
369 touch the def-type but verify it is consistent with the
372 2019-12-02 Jakub Jelinek <jakub@redhat.com>
374 PR tree-optimization/92712
375 * match.pd ((A * B) +- A -> (B +- 1) * A,
376 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
377 even when we don't know anything about range of A, but do know
378 something about range of B and the simplification won't introduce
381 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
384 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
385 (ipa-cp-min-recursive-probability): Likewise.
386 * params.opt (ipa-cp-max-recursive-depth): New.
387 (ipa-cp-min-recursive-probability): Likewise.
388 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
390 (self_recursively_generated_p): New function.
391 (get_val_across_arith_op): Likewise.
392 (propagate_vals_across_arith_jfunc): Add constant propagation for
393 self-recursive function.
394 (incorporate_penalties): Do not penalize pure self-recursive function.
395 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
396 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
397 (get_info_about_necessary_edges): Relax hotness check for edge to
398 self-recursive function.
399 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
401 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
405 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
406 objects of flexible types to be small if they have internal linkage
407 or are declared extern.
408 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
409 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
410 instead of the size of the object initializer.
411 * tree.c (flexible_array_type_p): Move from C front end, and
412 generalize to handle fields in non-C structures.
413 * tree.h (flexible_array_type_p): Declare.
415 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
417 * profile-count.h (profile_count::operator<): Use IPA value for
419 (profile_count::operator>): Likewise.
420 (profile_count::operator<=): Likewise.
421 (profile_count::operator>=): Likewise.
422 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
424 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
426 * ipa-inline.c (compute_max_insns): Return int64_t.
427 (inline_small_functions): Simplify.
429 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
431 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
434 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
436 * cgraph.h (symtab_node): Add symver flag.
437 * cgraphunit.c (process_symver_attribute): New.
438 (process_common_attributes): Use process_symver_attribute.
439 * lto-cgraph.c (lto_output_node): Stream symver.
440 (lto_output_varpool_node): Stream symver.
441 (input_overwrite_node): Stream symver.
442 (input_varpool_node): Stream symver.
443 * output.h (do_assemble_symver): Decalre.
444 * symtab.c (symtab_node::dump_base): Dump symver.
445 (symtab_node::verify_base): Verify symver.
446 (symtab_node::resolve_alias): Handle symver.
447 * varasm.c (do_assemble_symver): New function.
448 * varpool.c (varpool_node::assemble_aliases): Use it.
449 * doc/extend.texi: (symver attribute): Document.
450 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
452 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
454 * target.h (type_context_kind): New enum.
455 (verify_type_context): Declare.
456 * target.def (verify_type_context): New target hook.
457 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
458 * doc/tm.texi: Regenerate.
459 * tree.c (verify_type_context): New function.
460 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
462 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
464 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
465 (TARGET_VERIFY_TYPE_CONTEXT): Define.
467 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
469 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
470 * cgraph.h (cgraph_node): Add unit_id and
471 merged_extern_inline.
472 (symbol_table): Add max_unit.
473 (symbol_table::symbol_table): Initialize it.
474 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
475 merged_comdat, merged_extern_inline.
476 (cgraph_node::create_clone): Likewise.
477 (cgraph_node::create_version_clone): Likewise.
478 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
480 * ipa-fnsummary.h (cross_module_call_p): New inline function.
481 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
482 * ipa-inline.c (inline_small_functions): Likewise.
483 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
484 copy merged_comdat and merged_extern_inline.
485 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
486 merged_extern_inline and unit_id.
487 (input_overwrite_node): Stream in these.
488 (input_cgraph_1): Set unit_base.
489 * lto-streamer.h (lto_file_decl_data): Add unit_base.
490 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
492 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
494 * gcc.c (process_command): Only warn about an ineffective `-x'
495 option if any input files have actually been supplied.
497 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
499 * doc/install.texi (Options specification): Remove the list of
500 target library subdirectories supporting
501 `--enable-version-specific-runtime-libs'. Document defaults for
504 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
506 PR rtl-optimization/92283
507 * lra.c (lra): Update reg notes after inheritance sub-pass and
508 before constraint sub-pass.
510 2019-11-29 Richard Biener <rguenther@suse.de>
512 PR tree-optimization/91003
513 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
514 operand number, avoid handling the non-condition operands of
515 COND_EXPRs as comparisons.
516 (vect_get_constant_vectors): Pass down the operand number.
517 (vect_get_slp_defs): Likewise.
519 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
521 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
522 generic_expr_could_trap_p to check if the condition of COND_EXPR or
523 VEC_COND_EXPR can trap.
525 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
527 PR tree-optimization/92677
528 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
529 to zero when dissolving a group of strided accesses.
531 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
533 PR tree-optimization/92596
534 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
536 (vectorizable_operation): Likewise, instead of relying on
537 vect_get_mask_type_for_stmt to do this.
538 (vect_get_vector_types_for_stmt): Always return a vector type
539 immediately, rather than deferring the choice for boolean results.
540 Use a vector mask type instead of a normal vector if
541 vect_use_mask_type_p.
542 (vect_get_mask_type_for_stmt): Delete.
543 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
544 mask_producers argument and special boolean_type_node handling.
545 (vect_determine_vf_for_stmt): Remove mask_producers argument and
546 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
547 (vect_determine_vectorization_factor): Update call accordingly.
548 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
549 boolean_type_node handling.
550 (vect_slp_analyze_node_operations_1): Likewise.
552 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
554 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
555 (vect_use_mask_type_p): New function.
556 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
557 mask precision to the pattern statement.
558 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
559 and use it to initialize the new stmt's mask precision.
560 (search_type_for_mask_1): Delete.
561 (search_type_for_mask): Replace with...
562 (integer_type_for_mask): ...this new function. Use the information
563 cached in the stmt_vec_info.
564 (vect_recog_bool_pattern): Update accordingly.
565 (build_mask_conversion): Pass the scalar type associated with the
566 mask type to append_pattern_def_seq.
567 (vect_recog_mask_conversion_pattern): Likewise. Call
568 integer_type_for_mask instead of search_type_for_mask.
569 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
570 of search_type_for_mask.
571 (possible_vector_mask_operation_p): New function.
572 (vect_determine_mask_precision): Likewise.
573 (vect_determine_stmt_precisions): Call it.
575 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
577 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
578 the slp_tree parameter with a group size parameter.
579 (vect_get_mask_type_for_stmt): Likewise.
580 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
581 (vect_get_mask_type_for_stmt): Likewise.
582 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
585 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
587 * tree-vect-stmts.c (vectorizable_operation): Punt early
588 on codes that are handled elsewhere.
590 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
592 * doc/sourcebuild.texi (vect_bool_cmp): Document.
593 * tree-vect-patterns.c (search_type_for_mask_1): If neither
594 operand to a boolean comparison is a natural vector mask,
595 handle both operands like normal integers instead.
597 2019-11-29 Richard Biener <rguenther@suse.de>
599 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
600 out early for too large objects.
602 2019-11-29 Martin Jambor <mjambor@suse.cz>
605 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
606 the summary only if the summary exists.
607 (find_more_scalar_values_for_callers_subset): Check node_dead in
608 the summary only if the summary exists.
609 (ipcp_store_bits_results): Ignore nodes without lattices.
610 (ipcp_store_vr_results): Likewise.
611 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
612 header files required by them.
613 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
615 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
617 PR tree-optimization/92710
618 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
619 vector mask arguments.
621 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
623 * profile-count.c (profile_count::to_cgraph_frequency,
624 profile_count::to_sreal_scale): Check for compaibility of counts.
625 * profile-count.h (compatible_p): Make public; add checking for
626 global0 versus global types.
627 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
629 2019-11-29 Richard Biener <rguenther@suse.de>
631 PR tree-optimization/92715
632 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
633 out for uniform vectors and source vectors with less elements
634 than the destination.
636 2019-11-29 Martin Liska <mliska@suse.cz>
639 * ipa-devirt.c (types_same_for_odr): Check for existence
642 2019-11-29 Richard Biener <rguenther@suse.de>
644 PR tree-optimization/92704
645 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
646 in loops performing only loads.
648 2019-11-29 Julian Brown <julian@codesourcery.com>
650 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
651 BT_DFLOAT128_PTR) Remove.
652 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
653 TI_DFLOAT128_PTR_TYPE): Remove.
654 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
655 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
656 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
657 dfloat128_ptr_type_node): Remove macros.
659 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
661 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
663 (*movdi_internal64): Ditto.
665 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
668 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
669 indexed_or_indirect_operand to be memory_operand.
670 (bswap<mode>2_store for HSI): Ditto.
671 (bswapdi2_load): Ditto.
672 (bswapdi2_store): Ditto.
674 2019-11-28 Martin Liska <mliska@suse.cz>
677 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
678 headers for translation.
680 2019-11-28 Martin Liska <mliska@suse.cz>
683 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
686 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
688 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
691 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
693 * profile-count.c (profile_count::combine_with_ipa_count): Return
694 uninitialized count if called on ininitialized count.
696 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
698 * ipa-inline-transform.c (inline_transform): Scale profile before
701 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
703 * profile-count.h (profile_count::max): Work on profiles of different
705 (profile_count::apply_scale): Be sure that ret is not local or global0
706 type if num is global.
708 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
710 * profile-count.h (profile_count::max): Work on profiles of different
712 (profile_count::apply_scale): Be sure that ret is not local or global0
713 type if num is global.
715 2019-11-28 Martin Jambor <mjambor@suse.cz>
718 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
720 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
721 Removed trailig whitespace.
723 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
725 * profile-count.h (profile_count::combine_with_ipa_count_within):
727 * profile-count.c (profile_count::combine_with_ipa_count_within):
729 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
732 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
734 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
735 of counters are done same way.
737 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
739 * ipa-cp.c (update_profiling_info): Fix scaling.
741 2019-11-28 Richard Biener <rguenther@suse.de>
743 PR tree-optimization/92645
744 * tree-inline.c (remap_gimple_stmt): When the return value
745 is not wanted, elide GIMPLE_RETURN.
747 2019-11-28 Richard Biener <rguenther@suse.de>
749 PR tree-optimization/92645
750 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
751 conversions inside a mode class. Remove restriction on
752 preserving the element size.
753 (simplify_vector_constructor): Deal with the above and for
754 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
755 and VEC_PACK_TRUNC_EXPR.
757 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
759 Must use push insn to pass varargs arguments of DFmode because
760 otherwise the middle-end generates wrong code.
763 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
765 2019-11-28 Jakub Jelinek <jakub@redhat.com>
767 PR tree-optimization/92691
768 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
770 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
771 calls, return !handle_printf_call rather than always returning true.
772 (check_and_optimize_stmt): Describe return value meaning in function
773 comment. Formatting fix.
775 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
777 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
778 combination of globa0 and global counters..
780 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
783 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
784 by VECTOR_UNIT_NONE_P instead.
786 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
788 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
789 Refine VF to VF_AVX512VL.
791 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
793 * config/rs6000/rs6000.md (movsi_internal): Reformat.
794 (movdi_internal64): Reformat.
796 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
799 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
800 builtin if we don't have an actual type.
801 (builtin_function_type): If the builtin function uses a DFP type
802 and decimal float has been disabled, then return NULL_TREE.
804 2019-11-27 Jakub Jelinek <jakub@redhat.com>
806 PR rtl-optimization/92510
807 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
808 of comparison into a comparison with different mode if both imode and
809 omode are scalar integral modes.
811 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
813 PR rtl-optimization/90007
814 * recog.c (constrain_operands): Permit hard registers too for
815 memory when LRA is used.
817 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
819 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
820 between Coldfire and regular m68k.
821 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
823 2019-11-27 Richard Biener <rguenther@suse.de>
825 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
826 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
827 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
828 * optabs-tree.c (supportable_convert_operation): Do not call
829 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
830 * optabs-tree.h (supportable_convert_operation): Adjust.
831 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
832 * doc/tm.texi: Regenerate.
833 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
834 * tree-vect-generic.c (expand_vector_conversion): Likewise.
835 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
836 unused decl parameter and adjust.
837 (vect_create_vectorized_promotion_stmts): Likewise.
838 (vectorizable_conversion): Adjust.
840 2019-11-27 Richard Biener <rguenther@suse.de>
842 PR tree-optimization/92690
843 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
844 converting elements not originally converted.
846 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
849 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
850 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
851 mpfr_rnd_t instead of mp_rnd_t.
852 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
853 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
854 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
855 Use mpfr_exp_t instead of mp_exp_t.
856 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
857 MPFR_RNDx instead of GMP_RNDx.
858 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
859 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
860 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
861 of mp_rnd_t and remove MPFR_RNDx poisoning.
862 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
864 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
866 PR tree-optimization/91790
867 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
868 DR for vect_setup_realignment when first_stmt_info is different
869 from first_stmt_info_for_drptr.
871 2019-11-27 Richard Biener <rguenther@suse.de>
873 PR tree-optimization/92645
874 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
875 CTORs with just a subset of the original vectors.
877 2019-11-27 Richard Biener <rguenther@suse.de>
880 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
881 edges and instead record blocks in bitmap.
882 (gimple_expand_calls_inline): Adjust.
883 (fold_marked_statements): Delay EH cleanup until all folding is
885 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
888 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
890 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
892 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
895 2019-11-27 Jakub Jelinek <jakub@redhat.com>
898 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
900 2019-11-26 Martin Sebor <msebor@redhat.com>
902 PR tree-optimization/92683
903 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
904 inadvertently removed in a previous change. Rename local variable
907 2019-11-26 Richard Biener <rguenther@suse.de>
910 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
913 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
915 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
917 2019-11-26 Jakub Jelinek <jakub@redhat.com>
919 PR tree-optimization/92644
920 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
921 next to INTEGER_CST checks.
923 2019-11-26 Richard Biener <rguenther@suse.de>
925 PR tree-optimization/92645
926 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
927 do not build the operation from scalars if the operand is.
929 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
931 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
932 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
935 2019-11-25 Martin Liska <mliska@suse.cz>
937 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
938 up used dump message.
940 2019-11-25 Martin Liska <mliska@suse.cz>
943 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
944 too strict checking assert.
946 2019-11-25 Joseph Myers <joseph@codesourcery.com>
949 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
950 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
951 error_mark_node if corresponding global tree node is NULL.
952 * tree.c (build_common_tree_nodes): Do not initialize
953 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
954 decimal floating-point not supported.
956 2019-11-25 Joseph Myers <joseph@codesourcery.com>
958 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
961 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
963 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
964 Replace code for non-CONST_INT constants with gcc_unreachable.
965 * config/m68k/m68k.md (cbranchdi): Don't generate individual
967 (CMPMODE): New mode_iterator.
968 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
970 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
972 (cmp<mode>_68881): Remove 'F' constraint from first comparison
974 (bit test insns patterns): Use nonimmediate_operand, not
975 register_operand, for source operands that allow memory in
977 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
978 Use register_operand, not nonimmediate_operand, for the
980 (DBCC): New mode_iterator.
981 (dbcc peepholes): Use it to reduce duplication.
982 (trap): Use const_true_rtx, not const1_rtx.
983 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
984 from m68k_subword_comparison_operand and changed to handle
988 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
990 (m68k_init_cc): New declaration.
991 (m68k_output_compare_di, m68k_output_compare_si)
992 (m68k_output_compare_hi, m68k_output_compare_qi)
993 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
994 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
995 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
996 m68k_output_branch_float, m68k_output_branch_float_rev):
998 (valid_dbcc_comparison_p_2, flags_in_68881)
999 (output_btst): Remove declaration.
1000 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1001 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1002 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1003 (flags_compare_op0, flags_compare_op1, flags_operand1,
1004 flags_operand2, flags_valid): New static variables.
1005 (m68k_find_flags_value, m68k_init_cc): New functions.
1006 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1007 remember_compare_flags): New static functions.
1008 (output_dbcc_and_branch): New argument CODE. Use it, and add
1009 PLUS and MINUS to the possible codes. All callers changed.
1010 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1011 and INSN arguments, add CODE arg. Return the comparison code
1012 to use. All callers changed. Use CODE instead of
1013 next_insn_tests_no_inequality, and replace cc_status management
1014 with changing the return code.
1015 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1016 RTX_COMPARE or RTX_COMM_COMPARE.
1017 (output_move_simode, output_move_qimode): Call
1018 handle_flags_for_move.
1019 (notice_update_cc): Delete function.
1020 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1021 m68k_output_compare_hi, m68k_output_compare_qi,
1022 m68k_output_compare_fp, m68k_output_branch_integer,
1023 m68k_output_branch_integer_rev, m68k_output_scc,
1024 m68k_output_branch_float, m68k_output_branch_float_rev,
1025 m68k_output_scc_float): New functions.
1026 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1027 once at the start, and set flags_valid and flags_operand1 if the
1029 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1030 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1032 (CC_STATUS_INIT): Define.
1033 * config/m68k/m68k.md (flags_valid): New define_attr.
1034 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1035 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1036 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1037 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1038 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1039 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1040 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1041 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1042 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1043 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1044 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1045 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1046 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1047 ctrapqi4, conditional_trap): Delete patterns.
1048 (cbranchdi4_insn): New pattern.
1049 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1050 test high part only. When testing EQ or NE, generate beq0_di
1051 and bne0_di patterns directly.
1052 (cstoredi4): When testing LT or GE, test high part only.
1053 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1055 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1056 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1057 cmp2_cf_predicate): New define_mode_attrs.
1058 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1059 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1060 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1062 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1063 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1064 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1066 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1067 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1069 (BTST): New define_mode_iterator.
1070 (btst_predicate, btst_constraint, btst_range): New
1072 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1074 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1075 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1076 patterns): Set attr "flags_valid".
1077 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1078 management. Set attr "flags_valid".
1079 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1080 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1081 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1082 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1083 manual CC_STATUS management.
1084 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1085 unnamed strict_lowpart subhi and subqi patterns): Set attr
1087 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1088 Remove code to operate on address regs and assert the case
1090 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1091 manual CC_STATUS_INIT.
1092 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1093 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1094 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1095 one_cmplqi2, unnamed strict_lowpart patterns
1096 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1097 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1098 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1099 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1101 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1102 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1103 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1104 unnamed strict_low_part patterns for HI and
1105 QI versions): Set attr "flags_valid".
1106 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1107 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1108 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1109 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1110 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1111 (various unnamed peepholes): Adjust compare/branch sequences
1112 for new cbranch patterns.
1113 (dbcc peepholes): Likewise, and output the comparison here
1115 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1116 (fp_src_operand): Allow constant zero.
1117 (address_reg_operand): New predicate.
1119 * rtl.h (inequality_comparisons_p): Remove declaration.
1120 * recog.h (next_insn_tests_no_inequality): Likewise.
1121 * rtlanal.c (inequality_comparisons_p): Delete function.
1122 * recog.c (next_insn_tests_no_inequality): Likewise.
1124 2019-11-25 Richard Biener <rguenther@suse.de>
1126 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1127 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1128 properly re-building the visited hash-map for each lane.
1130 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1132 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1133 gcn_md_reorg): Remove unused variables.
1134 (gcn_emutls_var_init): Add missing (but unreachable) return
1136 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1137 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1138 an uninitialized variable.
1140 2019-11-25 Martin Jambor <mjambor@suse.cz>
1143 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1144 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1145 (cgraph_materialize_clone): Move removel from clone tree to the
1146 the new method and use it instead.
1147 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1148 bodies of clones, also remove it from the clone tree.
1150 2019-11-25 Martin Jambor <mjambor@suse.cz>
1153 * ipa-sra.c (process_isra_node_results): Put the new node to the
1154 same comdat group as the original node.
1156 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1158 Build double32 / long-double32 multilibs if needed.
1162 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1163 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1164 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1165 tm_defines and pass to genmultilib.awk.
1166 * config/avr/genmultilib.awk: Use these variables to add double32
1167 and / or long-double32 multilib(s) as needed.
1168 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1170 2019-11-25 Richard Biener <rguenther@suse.de>
1172 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1173 loop body, defaulted to NULL.
1174 (single_likely_exit): Add exit vector argument
1175 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1176 (number_of_iterations_exit): Likewise.
1177 (number_of_iterations_exit_assumptions): Likewise.
1178 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1180 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1181 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1182 Compute exit vector around call to single_likely_exit.
1183 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1184 loop body to loop_only_exit_p.
1185 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1187 (number_of_iterations_exit_assumptions): Get loop body from caller
1189 (number_of_iterations_exit): Pass through new loop body arg.
1190 (infer_loop_bounds_from_undefined): Get loop body from caller.
1191 (estimate_numbers_of_iterations): Compute loop body once.
1193 2019-11-25 Richard Biener <rguenther@suse.de>
1195 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1196 auto_bb_flag instead of an sbitmap for visited handling.
1198 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1200 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1202 (vector_fp_comparison_complex): Likewise.
1203 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1205 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1207 (vector_lt<mode> for VEC_F): Refactor with
1208 vector_fp_comparison_simple.
1209 (vector_le<mode> for VEC_F): Likewise.
1210 (vector_unge<mode> for VEC_F): Likewise.
1211 (vector_unle<mode> for VEC_F): Likewise.
1212 (vector_ne<mode> for VEC_F): Likewise.
1213 (vector_ungt<mode> for VEC_F): Likewise.
1214 (vector_unlt<mode> for VEC_F): Likewise.
1215 (vector_ltgt<mode> for VEC_F): Refactor with
1216 vector_fp_comparison_complex.
1217 (vector_ordered<mode> for VEC_F): Likewise.
1218 (vector_uneq<mode> for VEC_F): Likewise.
1219 (vector_unordered<mode> for VEC_F): Likewise.
1221 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1223 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1224 COMPARE, representing an overflow detection.
1226 * combine.c (combine_instructions): Record costs for jumps.
1228 * combine.c (can_combine_p): Allow autoinc in jumps.
1230 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1232 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1233 * doc/invoke.texi (max-inline-insns-single-O2,
1234 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1235 early-inlining-insns-O2): Remove documentation.
1236 * ipa-fnsummary.c (analyze_function_body,
1237 compute_fn_summary): Use opt_for_fn when accessing parameters.
1238 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1239 inline_insns_auto, can_inline_edge_by_limits_p,
1240 want_early_inline_function_p, big_speedup_p,
1241 want_inline_small_function_p, want_inline_self_recursive_call_p,
1242 recursive_inlining, compute_max_insns, inline_small_functions):
1244 * opts.c (default_options): Add -O3 defaults for
1245 OPT__param_early_inlining_insns_,
1246 OPT__param_inline_heuristics_hint_percent_,
1247 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1248 * params.opt (-param=early-inlining-insns-O2=,
1249 -param=inline-heuristics-hint-percent-O2=,
1250 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1251 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1252 -param=inline-min-speedup=, -param=inline-unit-growth=,
1253 -param=large-function-growth=, -param=large-stack-frame=,
1254 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1255 -param=max-inline-insns-recursive=,
1256 -param=max-inline-insns-recursive-auto=,
1257 -param=max-inline-insns-single=,
1258 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1259 -param=max-inline-recursive-depth=,
1260 -param=max-inline-recursive-depth-auto=,
1261 -param=min-inline-recursive-probability=,
1262 -param=partial-inlining-entry-probability=,
1263 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1264 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1267 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1269 * ipa-fnsummary.c: Fix comment typos.
1270 * ipa-ref.h: Likewise.
1271 * ipa-predicate.h: Likewise.
1272 * ipa-split.c: Likewise.
1273 * ipa-inline-analysis.c: Likewise.
1274 * ipa-predicate.c: Likewise.
1275 * ipa-devirt.c: Likewise.
1276 * ipa-icf.h: Likewise.
1277 * profile-count.c: Likewise.
1278 * ipa-icf.c: Likewise.
1279 (sem_function::equals_wpa): Fix typos in dump messages.
1280 * ipa-icf-gimple.h: Fix comment typos.
1281 * ipa-inline-transform.c: Likewise.
1282 * ipa-polymorphic-call.c: Likewise.
1283 * ipa-fnsummary.h: Likewise.
1284 * ipa-inline.c: Likewise.
1285 (dump_inline_stats): Fix typo in debug dump message.
1286 * profile-count.h: Fix comment typos.
1289 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1290 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1291 register_operand, force x into register before storing it into dest.
1295 * doc/extend.texi (attribute access): Fix a typo.
1297 PR rtl-optimization/92610
1298 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1299 cse_cfg_altered is set, even when tem is 0.
1300 (rest_of_handle_cse_after_global_opts): Likewise.
1302 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1305 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1306 tree_hash): Move to ...
1307 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1308 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1310 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1312 PR tree-optimization/92618
1313 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1314 containing the auto_vec and a tree.
1315 (undistribute_bitref_for_vector): Handle the case when element type
1316 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1319 2019-11-22 Martin Sebor <msebor@redhat.com>
1322 * attribs.h (struct attr_access): New.
1323 * attribs.c (decl_attributes): Add an informational note.
1324 * builtins.c (check_access): Make extern. Consistently set no-warning
1325 after issuing a warning. Handle calls through function pointers. Set
1327 * builtins.h (check_access): Declare.
1328 * calls.c (rdwr_access_hash): New type.
1330 (init_attr_rdwr_indices): New function.
1331 (maybe_warn_rdwr_sizes): Same.
1332 (initialize_argument_information): Call init_attr_rdwr_indices.
1333 Call maybe_warn_rdwr_sizes.
1334 (get_size_range): Avoid null argument.
1335 * doc/extend.texi (attribute access): Document new attribute.
1337 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1339 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1340 (ACC_LDS_SIZE): Define.
1341 (OTHER_LDS_SIZE): Define.
1342 (LDS_SIZE): Redefine using above.
1343 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1345 2019-11-22 Martin Sebor <msebor@redhat.com>
1348 * builtins.c (check_nul_terminated_array): New function.
1349 (fold_builtin_0): Remove declaration.
1350 (fold_builtin_1): Same.
1351 (fold_builtin_2): Same.
1352 (fold_builtin_3): Same.
1353 (fold_builtin_strpbrk): Add argument.
1354 (fold_builtin_strspn): Same.
1355 (fold_builtin_strcspn): Same.
1356 (expand_builtin_strcat): Call it. Remove unused argument.
1357 (expand_builtin_stpncpy): Same.
1358 (expand_builtin_strncat): Same.
1359 (expand_builtin_strncpy): Same. Adjust indentation.
1360 (expand_builtin_strcmp): Same.
1361 (expand_builtin_strncmp): Same.
1362 (expand_builtin_fork_or_exec): Same.
1363 (expand_builtin): Handle more built-ins.
1364 (fold_builtin_2): Add argument.
1365 (fold_builtin_n): Make static. Add argument.
1366 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1367 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1368 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1369 (fold_call_stmt): Pass new argument to fold_builtin_n.
1370 * builtins.h: Correct a comment.
1371 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1372 check_nul_terminated_array.
1373 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1374 check_nul_terminated_array.
1375 (handle_builtin_strchr): Same.
1376 (handle_builtin_string_cmp): Same.
1378 2019-11-22 Martin Sebor <msebor@redhat.com>
1380 PR tree-optimization/92501
1381 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1382 handle unterminated arrays. Rename local variables for clarity.
1384 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1386 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1387 granulated_sgprs according to architecture.
1389 2019-11-22 Jan Hubicka <jh@suse.cz>
1391 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1392 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1393 (memory_block_pool::reduce_free_list): ... this one.
1394 (memory_block_pool::trim): New static function.
1395 * memory-block.h (memory_block_pool::freelist_size): New constant
1396 (memory_block_pool::clear_free_list): Rename to ...
1397 (memory_block_pool::reduce_free_list): ... this one.
1398 (memory_block_pool::trim): Declare.
1400 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1402 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1404 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1406 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1408 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1410 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1411 (bic_cmp0_noout): New pattern.
1412 (bic_cmp0): Likewise.
1413 (neg_scc_insn): Remove pattern.
1414 (not_scc_insn): Likewise.
1416 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1418 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1420 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1422 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1423 pedwarn instead of warning_at for fallthrough not preceding a case
1426 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1428 PR tree-optimization/92608
1429 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1432 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1434 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1436 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1437 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1438 special for FP comparisons that need a cror instruction eventually.
1439 (rs6000_emit_fp_cror): New function.
1440 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1441 instruction, for normal FP modes, with HONOR_NANS.
1442 (rs6000_emit_cbranch): Reformat.
1443 * config/rs6000/rs6000.md (fp_rev): New iterator.
1444 (fp_two): New iterator.
1445 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1446 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1447 *cbranch_2insn: New define_insn_and_split.
1449 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1451 PR tree-optimization/92526
1452 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1453 versioning for alignment if the accesses do not have a consistent
1454 mask, rather than asserting that the masks are consistent.
1456 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1458 PR tree-optimization/92595
1459 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1461 (vectorizable_store, vectorizable_load): Likewise.
1463 2019-11-21 Jan Hubicka <jh@suse.cz>
1465 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1466 (resolve_noninline_speculation, inline_small_functions): Avoid
1469 2019-11-21 Richard Biener <rguenther@suse.de>
1471 * lra.c (lra_insn_recog_data_pool): New.
1472 (free_insn_recog_data): Adjust.
1473 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1474 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1476 2019-11-21 Richard Biener <rguenther@suse.de>
1478 PR tree-optimization/92596
1479 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1481 2019-11-21 Jan Hubicka <jh@suse.cz>
1483 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1484 ready for some vectors to not be allocated.
1485 (evaluate_properties_for_edge): Document better; make
1486 known_vals and known_aggs caller allocated; avoid determining
1487 values of parameters which are not used.
1488 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1490 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1491 (do_estimate_edge_size): Likewise.
1492 (do_estimate_edge_hints): Likewise.
1493 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1494 values are not known.
1495 (ipa_release_agg_values): Add option to not release vector itself.
1496 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1498 2019-11-21 Richard Biener <rguenther@suse.de>
1500 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1501 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1502 (loop_iterator::loop_iterator): Adjust.
1503 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1504 (compute_dominance_frontiers): ... this. Hoist invariant
1505 get_immediate_dominator call.
1506 (compute_idf): Use a work-set instead of a work-list for more
1507 optimal iteration order and duplicate avoidance.
1508 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1509 the vector all the time, instead pre-allocate the vector only
1511 (delete_update_ssa): Simplify.
1512 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1514 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1516 PR tree-optimization/91355
1517 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1518 for early_bb scaled count with best_bb count comparison.
1520 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1522 * ipa-inline.c (edge_badness): Likewise.
1523 * lto-streamer.h (class lto_location_cache): Likewise.
1524 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1525 gratutious -> gratuitous.
1527 2019-11-21 Richard Biener <rguenther@suse.de>
1530 2019-09-17 Richard Biener <rguenther@suse.de>
1532 PR tree-optimization/91790
1533 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1534 use the correct DR for setting up realignment.
1536 2019-11-21 Richard Biener <rguenther@suse.de>
1538 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1539 (equiv_class_obstack): New.
1540 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1541 (perform_var_substitution): Initialize equiv_class_obstack.
1542 (free_var_substitution_info): Free equiv_class_obstack.
1544 2019-11-20 Jan Hubicka <jh@suse.cz>
1546 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1547 edge growth when callee function is very large.
1548 * ipa-inline.h (estimate_min_edge_growth): New.
1550 2019-11-20 Jan Hubicka <jh@suse.cz>
1552 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1553 negative time in calls summary; correct roundoff errors
1554 leading to negative times.
1555 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1557 (ipa_update_overall_fn_summary): Add RESET parameter.
1558 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1559 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1561 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1563 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1564 def types for two-operation SLP.
1566 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1569 * doc/sourcebuild.texi (vect_char_add): Document.
1571 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1573 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1574 * function.c (record_final_call): Record even calls that might
1575 have been in the cgraph.
1576 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1579 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1581 * configure.ac: Use https for gcc.gnu.org
1582 * configure: Regenerated.
1583 * doc/install.texi: Use https for gcc.gnu.org.
1584 * doc/sourcebuild.texi: Likewise.
1586 2019-11-20 Julian Brown <julian@codesourcery.com>
1588 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1590 2019-11-20 Jan Hubicka <jh@suse.cz>
1592 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1593 parameter and update call_size_time_table.
1594 (ipa_fn_summary::max_size_time_table_size): New constant.
1595 (estimate_calls_size_and_time_1): Break out from ...
1596 (estimate_calls_size_and_time): ... here; implement summary production.
1597 (summarize_calls_size_and_time): New function.
1598 (ipa_call_context::estimate_size_and_time): Bypass
1599 estimate_calls_size_and_time for leaf functions.
1600 (ipa_update_overall_fn_summary): Likewise.
1601 * ipa-fnsummary.h (call_size_time_table): New.
1602 (ipa_fn_summary::account_size_time): Update prototype.
1604 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1606 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1608 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1611 * common.opt (fcommon): Change init to 1.
1612 * doc/invoke.texi (-fcommon): Update documentation.
1614 2019-11-20 Jan Hubicka <jh@suse.cz>
1616 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1619 2019-11-20 Jan Hubicka <jh@suse.cz>
1621 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1622 Add allocator parameter.
1623 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1624 (fibonacci_heap<K,V>::m_allocator): New.
1625 (fibonacci_heap<K,V>::m_own_allocator): New.
1626 (fibonacci_heap<K,V>::insert): Use allocator.
1627 (fibonacci_heap<K,V>::extract_min): Likewise.
1628 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1630 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1632 * fibonacci_heap.c: Include alloc-pool
1633 (test_empty_heap): Initialize allocator.
1634 (test_union): Likewise.
1635 * bb-reorder.c: Include alloc-pool.h.
1636 * tracer.c: Inlclude alloc-pool.h.
1638 2019-11-20 Jan Hubicka <jh@suse.cz>
1640 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1641 Preallocate for 32 entries.
1642 (DFS::worklist): Likewise.
1643 (DFS::DFS): Do not initialize sccstack and worklist.
1644 (DFS::~DFS): Do not release sccstack.
1646 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1649 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1650 Handle UNORDERED if !HONOR_NANS.
1652 2019-11-20 Jan Hubicka <jh@suse.cz>
1654 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1655 (edge_badness): ... here.
1656 (inline_small_functions): Use monotonicity of badness calculation
1657 to avoid redundant updates.
1659 2019-11-20 Richard Biener <rguenther@suse.de>
1661 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1662 constructors we are actually analyzing.
1663 (vect_slp_check_for_constructors): Do not vectorize uniform
1664 constuctors, do not dump here.
1666 2019-11-20 Richard Biener <rguenther@suse.de>
1668 PR tree-optimization/92537
1669 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1670 vectorization validity check...
1671 (vect_slp_analyze_operations): ... here.
1673 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1675 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1676 (make_pass_arc_predicate_delay_insns): Likewise.
1677 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1678 method, remove clone.
1679 (class pass_arc_predicate_delay_insns): Likewise.
1680 (arc_init): Remove registering of ARC specific passes.
1681 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1682 * config/arc/arc-passes.def: New file.
1684 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1687 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1688 and has a mode that doesn't have corresponding integral type.
1691 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1692 clear opts->x_ix86_isa_flags{,2} here...
1693 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1694 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1697 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1699 (insert_clobbers_for_var): Fix a typo in function comment.
1701 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1702 Jakub Jelinek <jakub@redhat.com>
1705 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1706 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1709 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1711 Make 0-series device specs work with older versions of avr-gcc.
1714 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1715 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1716 <*link_pm_base_address>: Don't write spec.
1717 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1719 2019-11-20 Richard Biener <rguenther@suse.de>
1722 * builtins.c (compute_objsize): Deal with VLAs.
1724 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1726 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1728 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1730 (power9_sched_reorder2): Call new function.
1731 (rs6000_sched_reorder2): Likewise.
1733 2019-11-18 Jan Hubicka <jh@suse.cz>
1735 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1736 (estimate_calls_size_and_time): Update.
1738 2019-11-18 Jan Hubicka <jh@suse.cz>
1740 * ipa-inline.c (inlining_speedup): New function.
1741 (edge_badness): Use it.
1743 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1744 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1746 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1747 Mark as not having "likely" version.
1748 * config/mips/mips.md (insn_count): The simd_div instruction with
1749 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1750 (can_delay): Exclude simd_branch.
1751 (defile_delay *): Add simd_branch instructions.
1752 They have one regular delay slot.
1754 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1757 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1759 * cse.c (cse_insn): Delete no-op register moves too.
1760 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1761 Take a second comparison to control the value for NE.
1762 (mask_to_comparison): Handle unsigned comparisons.
1763 (simplify_logical_relational_operation): Likewise. Update call
1764 to comparison_to_mask. Handle AND if !HONOR_NANs.
1765 (simplify_binary_operation_1): Call the above for AND too.
1767 2019-11-19 Martin Liska <mliska@suse.cz>
1769 * toplev.c (general_init): Move the call...
1770 (toplev::main): ... here as we need init_options_struct
1773 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1776 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1779 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1781 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1782 (armv7-a): Likewise.
1783 (armv7ve): Likewise.
1785 2019-11-19 Richard Biener <rguenther@suse.de>
1787 PR tree-optimization/92581
1788 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1789 condition reduction chains gather all conditions involved
1790 for computing the index reduction vector.
1792 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1794 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1795 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1796 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1797 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1798 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1799 (aarch64_init_memtag_builtins): New.
1800 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1801 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1802 (aarch64_expand_builtin_memtag): New.
1803 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1804 (AARCH64_BUILTIN_SUBCODE): New macro.
1805 (aarch64_resolve_overloaded_memtag): New.
1806 (aarch64_resolve_overloaded_builtin_general): New. Call
1807 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1808 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1809 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1810 (aarch64_resolve_overloaded_builtin): Call
1811 aarch64_resolve_overloaded_builtin_general.
1812 * config/aarch64/aarch64-protos.h
1813 (aarch64_resolve_overloaded_builtin_general): New declaration.
1814 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1815 (TARGET_MEMTAG): Likewise.
1816 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1817 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1818 (irg, gmi, subp, addg, ldg, stg): New instructions.
1819 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1820 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1821 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1822 (__arm_mte_get_tag): Likewise.
1823 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1824 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1825 * config/arm/types.md (memtag): New.
1826 * doc/invoke.texi (-memtag): Update description.
1828 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1830 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1831 to define __GCC_ASM_FLAG_OUTPUTS__.
1832 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1833 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1834 depending on TARGET_THUMB1.
1835 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1837 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1840 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1843 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1844 operand is negative and one non-negative, compare the non-negative
1845 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1846 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1847 and s2 == 0, unless one of them is known to be negative. Remove
1848 tem2 variable, use tem where tem2 has been used before.
1850 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1852 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1854 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1856 PR tree-optimization/92557
1857 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1858 vmode rather than asserting it always is.
1860 2019-11-19 Richard Biener <rguenther@suse.de>
1862 PR tree-optimization/92554
1863 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1864 for the actual condition stmt and deal with sign-changes.
1866 2019-11-19 Richard Biener <rguenther@suse.de>
1868 PR tree-optimization/92555
1869 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1872 2019-11-19 Martin Liska <mliska@suse.cz>
1875 * config/riscv/riscv.c (riscv_address_insns): Initialize
1876 addr in order to remove boostrap -Wmaybe-uninitialized
1879 2019-11-18 Martin Sebor <msebor@redhat.com>
1881 PR tree-optimization/92493
1882 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1885 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1887 * cfgloop.c (get_loop_body_in_custom_order): New.
1888 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1889 * tree-loop-distribution.c (class loop_distribution): New.
1890 (bb_top_order_cmp): Remove.
1891 (bb_top_order_cmp_r): New.
1892 (create_rdg_vertices): Move into class loop_distribution.
1893 (stmts_from_loop): Same as above.
1894 (update_for_merge): Same as above.
1895 (partition_merge_into): Same as above.
1896 (get_data_dependence): Same as above.
1897 (data_dep_in_cycle_p): Same as above.
1898 (update_type_for_merge): Same as above.
1899 (build_rdg_partition_for-vertex): Same as above.
1900 (classify_builtin_ldst): Same as above.
1901 (classify_partition): Same as above.
1902 (share_memory_accesses): Same as above.
1903 (rdg_build_partitions): Same as above.
1904 (pg_add_dependence_edges): Same as above.
1905 (build_partition_graph): Same as above.
1906 (merge_dep_scc_partitions): Same as above.
1907 (break_alias_scc_partitions): Same as above.
1908 (finalize_partitions): Same as above.
1909 (distribute_loop): Same as above.
1910 (bb_top_order_init): New method
1911 (bb_top_order_destroy): New method.
1912 (get_bb_top_order_index_size): New method.
1913 (get_bb_top_order_index_index): New method.
1914 (get_bb_top_order_index_index): New method.
1915 (loop_distribution::execute): New method.
1916 (pass_loop_distribution::execute): Instantiate loop_distribution.
1918 2019-11-18 Jan Hubicka <jh@suse.cz>
1921 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1923 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1925 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1927 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1928 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
1929 * doc/md.texi: Document them.
1930 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
1932 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
1933 * internal-fn.c (check_ptrs_direct): New macro.
1934 (expand_check_ptrs_optab_fn): Likewise.
1935 (direct_check_ptrs_optab_supported_p): Likewise.
1936 (internal_check_ptrs_fn_supported_p): New fuction.
1937 * tree-data-ref.c: Include internal-fn.h.
1938 (create_ifn_alias_checks): New function.
1939 (create_intersect_range_checks): Use it.
1940 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
1941 (optab, cmp_op): Handle it.
1942 (raw_war, unspec): New int attributes.
1943 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
1945 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
1947 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
1949 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
1952 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1954 * tree.c (build_vector_from_ctor): Directly return a zero vector for
1957 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1959 * cse.c (cse_insn): Delete no-op register moves too.
1960 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1961 Take a second comparison to control the value for NE.
1962 (mask_to_comparison): Handle unsigned comparisons.
1963 (simplify_logical_relational_operation): Likewise. Update call
1964 to comparison_to_mask. Handle AND if !HONOR_NANs.
1965 (simplify_binary_operation_1): Call the above for AND too.
1967 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1969 * fold-const.c (native_encode_vector): Turn into a wrapper function,
1970 splitting the main code out into...
1971 (native_encode_vector_part): ...this new function.
1972 (native_decode_vector_tree): New function.
1973 (fold_view_convert_vector_encoding): Likewise.
1974 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
1977 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1979 * tree-data-ref.c (create_intersect_range_checks_index): If the
1980 alias pair describes simple WAW and WAR dependencies, just check
1981 whether the first B access overlaps later A accesses.
1982 (create_waw_or_war_checks): New function that performs the same
1983 optimization on addresses.
1984 (create_intersect_range_checks): Call it.
1986 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1988 * lra-constraints.c (valid_address_p): Take the operand and a
1989 constraint as argument. If the operand is a MEM and the constraint
1990 is a memory constraint, check whether the eliminated form of the
1991 MEM already satisfies the constraint.
1992 (process_address_1): Update calls accordingly.
1994 2019-11-18 Tom Tromey <tromey@adacore.com>
1996 * doc/tm.texi: Rebuild.
1997 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
1998 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2000 2019-11-18 Richard Biener <rguenther@suse.de>
2002 PR tree-optimization/92516
2003 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2004 argument, hoist bst_map creation/destruction to ...
2005 (vect_analyze_slp): ... here, forming a true graph with
2006 SLP instances being the entries.
2007 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2008 (vect_detect_hybrid_slp): Use one visited set for all
2010 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2011 to hash-sets of slp_tree.
2012 (vect_slp_analyze_operations): Likewise.
2013 (vect_bb_slp_scalar_cost): Remove wrapper.
2014 (vect_bb_vectorization_profitable_p): Use one visited set for
2016 (vect_schedule_slp_instance): Elide bst_map use.
2017 (vect_schedule_slp): Likewise.
2019 2019-11-18 Richard Biener <rguenther@suse.de>
2021 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2022 was vectorized with just external refs fail.
2024 2019-11-18 Martin Liska <mliska@suse.cz>
2027 * ipa-icf.c (sem_function::init): Unset m_checker
2028 at the end of the function.
2030 2019-11-18 Richard Biener <rguenther@suse.de>
2032 PR tree-optimization/92558
2033 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2034 reducting the width of a reduction vector def update new_phis.
2036 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2038 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2039 and s390*-*-linux-musl* targets.
2040 * configure: Regenerate.
2042 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2044 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2045 (MUSL_DYNAMIC_LINKER64): Define.
2047 2019-11-18 Martin Liska <mliska@suse.cz>
2049 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2050 message for an unknown counter.
2051 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2052 (dbg_cnt_process_opt): Remove unreachable code.
2054 2019-11-18 Martin Liska <mliska@suse.cz>
2057 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2058 Compare LHS types of NOP_EXPR.
2060 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2062 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2063 "initial_pass_name" argument -- by running "*clean_state" pass.
2064 Also free the "initial_pass_name" when done.
2066 2019-11-18 Richard Biener <rguenther@suse.de>
2068 PR rtl-optimization/92462
2069 * alias.c (find_base_term): Restrict the look through ANDs.
2070 (find_base_value): Likewise.
2072 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2074 Add support for AVR devices from the 0-series.
2077 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2078 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2079 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2080 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2081 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2082 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2083 for spec definitions.
2084 * doc/avr-mmcu.texi: Regenerate.
2086 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2089 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2090 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2091 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2092 (ix86_reassociation_width): Ditto.
2093 * config/i386/i386-options.c (ix86_option_override_internal):
2094 Replace TARGET_AVX128_OPTIAML with
2095 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2096 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2097 (TARGET_AVX128_OPTIMAL): Deleted.
2098 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2101 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2103 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2104 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2106 (cceq_rev_compare): Rename to...
2107 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2109 (define_split for <bd>tf_<mode>): Add SImode first argument to
2110 gen_cceq_ior_compare.
2112 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2114 * common/config/powerpcspe: Delete.
2116 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2118 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2119 output in UNSPEC_WRFFR.
2121 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2123 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2124 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2126 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2128 * tree-data-ref.c (create_intersect_range_checks_index)
2129 (create_intersect_range_checks): Print dump messages.
2131 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2133 * tree-data-ref.c (dump_alias_pair): New function.
2134 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2136 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2138 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2139 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2140 merging data references with different steps.
2141 (create_intersect_range_checks_index): Take a
2142 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2143 Bail out if DR_ALIAS_MIXED_STEPS is set.
2144 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2145 instead of two dr_with_seg_lens. Update call to
2146 create_intersect_range_checks_index.
2147 (create_runtime_alias_checks): Update call accordingly.
2149 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2151 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2152 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2153 (dr_with_seg_len_pair_t::sequencing): New enum.
2154 (dr_with_seg_len_pair_t::flags): New member variable.
2155 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2156 parameter and initialize the flags member variable.
2157 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2159 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2160 Ensure the two data references in an alias pair are in statement
2161 order, if there is a defined order.
2162 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2163 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2164 swapped the references in a dr_with_seg_len_pair_t. OR together
2165 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2166 try to restore the original dr_with_seg_len order, updating the
2167 flags if that fails.
2169 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2171 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2172 swapping the dr_as based on init values until we've decided
2173 whether to merge them.
2175 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2177 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2178 two accesses in each dr_with_seg_len_pair_t before trying to
2179 combine separate dr_with_seg_len_pair_ts.
2180 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2182 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2184 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2186 * config/aarch64/aarch64-sve.md
2187 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2188 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2189 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2190 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2191 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2192 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2193 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2195 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2196 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2197 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2198 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2200 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2202 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2203 (SVE_4HSI): New mode iterators.
2204 (ANY_EXTEND2): New code iterator.
2205 * config/aarch64/aarch64-sve.md
2206 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2208 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2209 ...this, handling extension to partial modes as well as full modes.
2210 Describe the extension as a predicated rather than unpredicated
2212 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2213 Likewise extend to...
2214 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2215 ...this, making the same adjustments.
2216 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2217 Likewise extend to...
2218 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2219 ...this, making the same adjustments.
2220 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2221 Likewise extend to...
2222 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2223 ...this, making the same adjustments.
2224 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2226 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2227 extension predicate.
2228 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2229 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2230 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2231 Describe the extension as a predicated rather than unpredicated
2233 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2234 Likewise. Canonicalize to a constant extension predicate.
2235 * config/aarch64/aarch64-sve-builtins-base.cc
2236 (svld1_gather_extend_impl::expand): Add an extra predicate for
2238 (svldff1_gather_extend_impl::expand): Likewise.
2240 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2242 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2244 * config/aarch64/aarch64-sve.md
2245 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2246 (gather_load<SVE_24:mode><v_int_container>): ...this.
2247 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2248 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2249 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2250 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2251 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2253 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2254 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2255 Allow the nominal extension predicate to be different from the
2257 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2258 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2260 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2262 * config/aarch64/aarch64-sve.md
2263 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2264 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2266 (aarch64_sve_adjust_stmt_cost): Call it.
2268 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2270 * config/aarch64/aarch64-sve.md
2271 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2272 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2273 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2275 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2276 ...this new pattern, handling extension to partial modes as well
2277 as full modes. Describe the extension as a predicated rather than
2278 unpredicated extension.
2279 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2280 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2281 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2283 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2284 ...this new pattern, handling extension to partial modes as well
2285 as full modes. Describe the extension as a predicated rather than
2286 unpredicated extension.
2287 * config/aarch64/aarch64-sve-builtins.cc
2288 (function_expander::use_contiguous_load_insn): Add an extra
2289 predicate for extending loads.
2290 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2291 (aarch64_sve_adjust_stmt_cost): Likewise.
2292 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2293 the cost of SVE vector stmts.
2295 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2297 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2298 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2299 * config/aarch64/aarch64-sve.md
2300 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2301 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2302 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2303 comment. Avoid new narrower_mask ambiguity.
2304 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2305 (*cond_uxt<mode>_2): Update comment.
2306 (*cond_uxt<mode>_any): Likewise.
2308 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2310 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2312 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2314 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2315 new vector float modes.
2316 (aarch64_sve_container_bits): New function.
2317 (aarch64_sve_pred_mode): Likewise.
2318 (aarch64_get_mask_mode): Use it.
2319 (aarch64_sve_element_int_mode): Handle structure modes and partial
2321 (aarch64_sve_container_int_mode): New function.
2322 (aarch64_vectorize_related_mode): Return SVE modes when given
2323 SVE modes. Handle partial modes, taking the preferred number
2324 of units from the size of the given mode.
2325 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2327 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2328 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2329 (aarch64_split_sve_subreg_move): Use the mode form of
2330 aarch64_sve_pred_mode.
2331 (aarch64_secondary_reload): Handle partial modes in the same way
2332 as full big-endian vectors.
2333 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2334 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2335 merging with the Advanced SIMD modes. If two modes have the
2336 same size, try the Advanced SIMD mode first.
2337 (aarch64_simd_valid_immediate): Use the container rather than
2338 the element mode for INDEX constants.
2339 (aarch64_simd_vector_alignment): Make the alignment of partial
2340 SVE vector modes the same as their minimum size.
2341 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2342 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2343 (mov<SVE_ALL:mode>): ...this.
2344 (movmisalign<SVE_FULL:mode>): Extend to...
2345 (movmisalign<SVE_ALL:mode>): ...this.
2346 (*aarch64_sve_mov<mode>_le): Rename to...
2347 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2348 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2349 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2350 partial modes regardless of endianness.
2351 (aarch64_sve_reload_be): Rename to...
2352 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2353 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2354 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2355 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2356 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2357 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2358 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2359 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2360 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2361 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2362 (maskload<SVE_FULL:mode><vpred>): Extend to...
2363 (maskload<SVE_ALL:mode><vpred>): ...this.
2364 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2365 (maskstore<SVE_ALL:mode><vpred>): ...this.
2366 (vec_duplicate<SVE_FULL:mode>): Extend to...
2367 (vec_duplicate<SVE_ALL:mode>): ...this.
2368 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2369 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2370 (sve_ld1r<SVE_FULL:mode>): Extend to...
2371 (sve_ld1r<SVE_ALL:mode>): ...this.
2372 (vec_series<SVE_FULL_I:mode>): Extend to...
2373 (vec_series<SVE_I:mode>): ...this.
2374 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2375 (*vec_series<SVE_I:mode>_plus): ...this.
2376 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2377 new VPRED ambiguity.
2378 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2379 (add<SVE_FULL_I:mode>3): Extend to...
2380 (add<SVE_I:mode>3): ...this.
2381 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2382 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2383 (VPRED, vpred): Likewise.
2384 (Vctype): New iterator.
2385 (vw): Remove SVE modes.
2387 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2389 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2390 (SVE_PARTIAL_I): ...this.
2391 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2393 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2395 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2396 (SVE_FULL): ...this.
2397 (SVE_I): Rename to...
2398 (SVE_FULL_I): ...this.
2399 (SVE_F): Rename to...
2400 (SVE_FULL_F): ...this.
2401 (SVE_BHSI): Rename to...
2402 (SVE_FULL_BHSI): ...this.
2403 (SVE_HSD): Rename to...
2404 (SVE_FULL_HSD): ...this.
2405 (SVE_HSDI): Rename to...
2406 (SVE_FULL_HSDI): ...this.
2407 (SVE_HSF): Rename to...
2408 (SVE_FULL_HSF): ...this.
2409 (SVE_SD): Rename to...
2410 (SVE_FULL_SD): ...this.
2411 (SVE_SDI): Rename to...
2412 (SVE_FULL_SDI): ...this.
2413 (SVE_SDF): Rename to...
2414 (SVE_FULL_SDF): ...this.
2415 (SVE_S): Rename to...
2416 (SVE_FULL_S): ...this.
2417 (SVE_D): Rename to...
2418 (SVE_FULL_D): ...this.
2419 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2420 * config/aarch64/aarch64-sve2.md: Likewise.
2422 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2424 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2426 * doc/invoke.texi: Document it.
2427 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2428 By default, return VECT_COMPARE_COSTS for SVE.
2430 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2432 * target.h (VECT_COMPARE_COSTS): New constant.
2433 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2434 * doc/tm.texi: Regenerate.
2435 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2436 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2437 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2439 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2440 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2441 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2442 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2443 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2444 (_loop_vec_info::vec_inside_cost): New member variables.
2445 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2446 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2447 (vect_analyze_loop): When autovectorize_vector_modes returns
2448 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2449 vector mode and picking the one with the lowest cost.
2450 (vect_estimate_min_profitable_iters): Record the computed costs
2451 in the loop_vec_info.
2453 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2455 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2456 element type rather than an element mode.
2457 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2458 Use get_vectype_for_scalar_type to query the natural types
2459 for a given element type rather than basing everything on
2460 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2461 query to MAX_FIXED_MODE_SIZE.
2462 (duplicate_and_interleave): Update call accordingly.
2463 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2465 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2467 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2468 optional maximum nunits.
2469 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2471 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2472 (vect_get_mask_type_for_stmt): Likewise.
2473 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2474 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2475 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2476 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2477 to get an assumed vector type for data references.
2478 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2479 (vect_update_all_shared_vectypes): Likewise.
2480 (vect_build_slp_tree_1): Pass the group size to
2481 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2482 for BB vectorization.
2483 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2484 before building the vectof from scalars.
2485 (vect_analyze_slp_instance): Pass the group size to
2486 get_vectype_for_scalar_type.
2487 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2488 types for BB vectorization here; just handle the case in which
2489 we deferred the choice for booleans.
2490 (vect_get_constant_vectors): Pass the slp_tree to
2491 get_vectype_for_scalar_type.
2492 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2493 (vectorizable_call): Likewise.
2494 (vectorizable_simd_clone_call): Likewise.
2495 (vectorizable_conversion): Likewise.
2496 (vectorizable_shift): Likewise.
2497 (vectorizable_operation): Likewise.
2498 (vectorizable_comparison): Likewise.
2499 (vect_is_simple_cond): Take the slp_tree as argument and
2500 pass it to get_vectype_for_scalar_type.
2501 (vectorizable_condition): Update call accordingly.
2502 (get_vectype_for_scalar_type): Take a group_size argument.
2503 For BB vectorization, limit the the vector to that number
2504 of elements. Also define an overload that takes an slp_tree.
2505 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2506 pass it to get_vectype_for_scalar_type.
2507 (vect_get_vector_types_for_stmt): Add a group_size argument
2508 and pass it to get_vectype_for_scalar_type. Don't use the
2509 cached vector type for BB vectorization if a group size is given.
2510 Handle data references in that case.
2511 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2512 pass it to get_mask_type_for_scalar_type.
2514 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2516 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2518 (estimate_edge_time): Use it.
2519 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2520 ret_nonspec_time parameter.
2522 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2524 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2526 2019-11-15 Nick Clifton <nickc@redhat.com>
2527 Szabolcs Nagy <szabolcs.nagy@arm.com>
2530 * config/microblaze/microblaze.c (print_operand): Print value as long.
2532 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2534 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2537 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2539 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2540 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2542 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2544 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2545 (gcn_conditional_register_usage): Use constants in place of hard-coded
2547 (gcn_hsa_declare_function_name): Set lower bound for number of
2548 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2549 MAX_NORMAL_VGPR_COUNT.
2551 2019-11-15 Martin Jambor <mjambor@suse.cz>
2553 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2556 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2558 * config/gcn/gcn.c (default_requested_args): New.
2559 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2560 set with default_requested_args.
2561 (gcn_conditional_register_usage): Limit register usage of non-kernel
2562 functions. Reassign fixed registers if a non-standard set of args is
2564 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2566 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2569 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2570 aggregate jump function when inlined-to caller has no edge summary.
2572 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2574 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2576 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2578 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2580 (print_operand_address): Use v1 for zero vector offset.
2582 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2584 PR tree-optimization/92515
2585 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2586 types when converting a vector/scalar shift into a vector/vector one,
2587 using tree_nop_conversion_p instead of useless_type_conversion_p.
2588 Move the conversion code to the transform block.
2590 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2592 * read-rtl-function.c
2593 (function_reader::add_fixup_source_location): Take additional
2594 parameter of a column.
2595 (function_reader::maybe_read_location): Optionally parse column
2596 information and pass to add_fixup_source_location.
2598 2019-11-15 Richard Biener <rguenther@suse.de>
2600 PR tree-optimization/92512
2601 * tree-vect-loop.c (check_reduction_path): Fix operand index
2602 computability check. Add check for second use in COND_EXPRs.
2604 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2607 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2608 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2610 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2612 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2613 register class for VCC_LO and VCC_HI.
2614 (gcn_spill_class): Use SGPR_REGS to spill registers in
2615 VCC_CONDITIONAL_REG.
2617 2019-11-15 Richard Biener <rguenther@suse.de>
2619 PR tree-optimization/92324
2620 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2621 singedness of SLP reduction epilouge operations. Also reduce
2622 the vector width for SLP reductions before doing elementwise
2623 operations if possible.
2625 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2627 * passes.c (skip_pass): Set epilogue_completed if skipping the
2628 pro_and_epilogue pass.
2630 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2632 * passes.c (should_skip_pass_p): Always run "dfinish".
2634 2019-11-15 Richard Biener <rguenther@suse.de>
2636 * ipa-inline.c (inline_small_functions): Move assignment
2637 to next before call destroying edge.
2639 2019-11-15 Richard Biener <rguenther@suse.de>
2641 PR tree-optimization/92039
2642 PR tree-optimization/91975
2643 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2644 previous change, treat invariants consistently as non-constant.
2645 (tree_estimate_loop_size): Ternary ops with just the first op
2646 constant are not optimized away.
2648 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2650 * gimplify.c (gimplify_call_expr): Don't call
2651 omp_resolve_declare_variant after gimplification.
2652 * omp-general.c (omp_context_selector_matches): For isa that might
2653 match in some other function, defer if in declare simd function.
2654 (omp_context_compute_score): Don't look for " score" in construct
2655 trait set. Set *score to -1 if it can't ever match.
2656 (omp_resolve_declare_variant): If any variants need to be deferred,
2657 don't punt immediately, but compute scores of all variants and if
2658 ther eis a score winner that doesn't need to be deferred, return that.
2660 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2662 * ipa-comdats.c: Fix comments typo.
2663 * ipa-profile.c: Fix comments typo.
2664 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2665 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2666 (gimple_gen_ic_func_profiler): Likewise.
2667 (pass_ipa_tree_profile::gate): Fix comments typo.
2669 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2671 * ipa-inline.c (inline_small_functions): Update iterator of next.
2673 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2675 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2676 register is suitable for the mode.
2678 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2680 * range-op.h (range_operator::fold_range): Return a bool.
2681 * range-op.cc (range_operator::wi_fold): Assert supported type.
2682 (range_operator::fold_range): Assert supported type and return true.
2683 (operator_equal::fold_range): Return true.
2684 (operator_not_equal::fold_range): Same.
2685 (operator_lt::fold_range): Same.
2686 (operator_le::fold_range): Same.
2687 (operator_gt::fold_range): Same.
2688 (operator_ge::fold_range): Same.
2689 (operator_plus::op1_range): Adjust call to fold_range.
2690 (operator_plus::op2_range): Same.
2691 (operator_minus::op1_range): Same.
2692 (operator_minus::op2_range): Same.
2693 (operator_exact_divide::op1_range): Same.
2694 (operator_lshift::fold_range): Return true and adjust fold_range call.
2695 (operator_rshift::fold_range): Same.
2696 (operator_cast::fold_range): Return true.
2697 (operator_logical_and::fold_range): Same.
2698 (operator_logical_or::fold_range): Same.
2699 (operator_logical_not::fold_range): Same.
2700 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2701 (operator_bitwise_not::op1_range): Same.
2702 (operator_cst::fold_range): Return true.
2703 (operator_identity::fold_range): Return true.
2704 (operator_negate::fold_range): Return true and adjust fold_range call.
2705 (operator_addr_expr::fold_range): Return true.
2706 (operator_addr_expr::op1_range): Adjust call to fold_range.
2708 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2709 (range_fold_unary_symbolics_p): Same.
2711 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2713 PR tree-optimization/92506
2714 * range-op.cc (range_operator::fold_range): Start with range undefined.
2715 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2716 overflow is varying.
2718 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2720 * range-op.cc (*operator*::*range): Remove calls to
2721 range_intersect, range_invert, and range_union in favor of calling
2722 the in-place API methods.
2723 (range_tests): Same.
2724 * range.cc (range_intersect): Remove.
2725 (range_union): Remove.
2726 (range_invert): Remove.
2727 * range.h (range_intersect): Remove.
2728 (range_union): Remove.
2729 (range_intersect): Remove.
2731 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2733 PR rtl-optimization/92430
2734 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2735 (pass_jump_after_combine::execute): Perform jump threading
2738 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2739 Doug Rupp <rupp@adacore.com>
2740 Olivier Hainque <hainque@adacore.com>
2742 * config.gcc: Collapse the arm-vxworks entries into
2743 a single arm-wrs-vxworks7* one, bpabi based. Update
2744 the default cpu from arm8 to armv7-a
2745 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2746 we always use ARM_UNWIND_INFO.
2747 (DWARF2_UNWIND_INFO): Remove redefinition.
2748 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2749 (VXWORKS_PERSONALITY): Define, to "llvm".
2750 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2752 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2754 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2755 _VX_CPU instead of CPU and handle arm_arch8.
2757 2019-11-14 Doug Rupp <rupp@adacore.com>
2758 Olivier Hainque <hainque@adacore.com>
2759 Jerome Lambourg <lambourg@adacore.com>
2761 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2762 * config/aarch64/aarch64-vxworks.h: New file.
2763 * config/aarch64/t-aarch64-vxworks: New file.
2765 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2766 Olivier Hainque <hainque@adacore.com>
2768 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2769 definition, pointless with a VxWorks specific version
2771 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2772 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2773 New local macros, controlling the addition of vxworks specific
2774 crtstuff objects depending on the EH mechanism and kind of
2775 module being linked.
2776 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2778 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2779 Jerome Lambourg <lambourg@adacore.com>
2780 Olivier Hainque <hainque@adacore.com>
2782 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2783 common macro definitions, conveying VXWORKS7 or 64bit general
2784 variations. Add a block to set gcc_cv_initfini_array
2785 unconditionally to "yes" for VxWorks7.
2786 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2787 by default. Update some comments.
2788 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2789 default, to be added the end of VXWORKS_LIBS_RTP.
2790 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2791 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2793 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2794 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2795 to account for the now available TLS abilities.
2796 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2797 (VXWORKS_HAVE_TLS): Likewise.
2799 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2801 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2802 (vect_slp_convert_to_external): Likewise.
2803 (vect_slp_analyze_node_operations): If analysis fails, try building
2804 the node from scalars instead.
2806 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2808 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2809 between vector types.
2810 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2811 non-widening and non-narrowing path to handle standard
2812 conversion codes, if the target supports them.
2813 * expr.c (convert_move): Try using the extend and truncate optabs
2815 * optabs-tree.c (supportable_convert_operation): Likewise.
2816 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2817 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2818 (trunc<mode><Vnarrowq>2): New patterns.
2820 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2822 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2823 require vectype and nunits_vectype to have the same size;
2824 instead assert that nunits_vectype has at least as many
2825 elements as vectype. Don't compute a separate nunits_vectype
2826 if the scalar type is obviously the same as vectype's.
2827 Tweak dump messages.
2829 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2831 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2833 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2834 (TARGET_VECTORIZE_RELATED_MODE): Define.
2836 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2838 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2839 (vec_info::used_vector_mode): New member variable.
2840 (vect_chooses_same_modes_p): Declare.
2841 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2842 chosen vector mode in vec_info::used_vector_mode.
2843 (vect_chooses_same_modes_p): New function.
2844 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2845 the same vector statements multiple times.
2846 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2848 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2850 * machmode.h (opt_machine_mode::operator==): New function.
2851 (opt_machine_mode::operator!=): Likewise.
2852 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2853 (get_related_vectype_for_scalar_type): Delete.
2854 (get_vectype_for_scalar_type_and_size): Declare.
2855 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2856 whether analysis passed or failed, and with what vector modes.
2857 Use related_vector_mode to check whether trying a particular
2858 vector mode would be redundant with the autodetected mode,
2859 and print a dump message if we decide to skip it.
2860 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2861 (vect_create_epilog_for_reduction): Use
2862 get_related_vectype_for_scalar_type instead of
2863 get_vectype_for_scalar_type_and_size.
2864 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2866 (get_related_vectype_for_scalar_type): ...this new function.
2867 Take a starting/"prevailing" vector mode rather than a vector size.
2868 Take an optional nunits argument, with the same meaning as for
2869 related_vector_mode. Use related_vector_mode when not
2870 auto-detecting a mode, falling back to mode_for_vector if no
2872 (get_vectype_for_scalar_type): Update accordingly.
2873 (get_same_sized_vectype): Likewise.
2874 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2876 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2878 * tree-vect-stmts.c (vectorizable_call): Require the types
2879 to have the same size.
2881 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2883 * tree-vect-stmts.c (vectorizable_call): If an operand is
2884 constant or external, use get_vectype_for_scalar_type
2885 rather than get_same_sized_vectype to get its vector type.
2886 (vectorizable_conversion, vectorizable_shift): Likewise.
2887 (vectorizable_operation): Likewise.
2889 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2891 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2892 (vec_info::vector_mode): ...this new field.
2893 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2894 (vect_analyze_loop, vect_transform_loop): Likewise.
2895 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2896 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2897 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2898 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2899 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2901 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2903 * target.h (vector_sizes, auto_vector_sizes): Delete.
2904 (vector_modes, auto_vector_modes): New typedefs.
2905 * target.def (autovectorize_vector_sizes): Replace with...
2906 (autovectorize_vector_modes): ...this new hook.
2907 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2909 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2910 * doc/tm.texi: Regenerate.
2911 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2912 (default_autovectorize_vector_modes): New function.
2913 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2914 (default_autovectorize_vector_modes): New function.
2915 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2916 of autovectorize_vector_sizes. Use the number of units in the mode
2917 to calculate the maximum VF.
2918 * omp-low.c (omp_clause_aligned_alignment): Use
2919 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2920 Use a loop based on related_mode to iterate through all supported
2921 vector modes for a given scalar mode.
2922 * optabs-query.c (can_vec_mask_load_store_p): Use
2923 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2924 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2925 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2926 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2928 (aarch64_autovectorize_vector_modes): ...this new function.
2929 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2930 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2931 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
2932 (arc_autovectorize_vector_modes): ...this new function.
2933 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2934 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2935 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
2936 (arm_autovectorize_vector_modes): ...this new function.
2937 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2938 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2939 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
2940 (ix86_autovectorize_vector_modes): ...this new function.
2941 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2942 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2943 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
2944 (mips_autovectorize_vector_modes): ...this new function.
2945 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
2946 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
2948 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2950 * tree-vect-stmts.c (vectorizable_shift): Check the number
2951 of vector elements as well as the type mode when deciding
2952 whether an op1_vectype is compatible. Reuse the result of
2953 this check when generating vector statements.
2955 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2957 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
2958 targetm.vectorize.preferred_simd_mode returns an integer mode,
2959 use mode_for_vector to decide what the vector type's mode
2960 should actually be. Use build_vector_type_for_mode instead
2961 of build_vector_type.
2963 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2965 * target.def (get_mask_mode): Take a vector mode itself as argument,
2966 instead of properties about the vector mode.
2967 * doc/tm.texi: Regenerate.
2968 * targhooks.h (default_get_mask_mode): Update to reflect new
2969 get_mode_mask interface.
2970 * targhooks.c (default_get_mask_mode): Likewise. Use
2971 related_int_vector_mode.
2972 * optabs-query.c (can_vec_mask_load_store_p): Update call
2974 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
2975 first that the original mode really is a vector.
2976 * tree.c (build_truth_vector_type_for): Likewise.
2977 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
2978 get_mode_mask interface.
2979 (aarch64_expand_sve_vcond): Update call accordingly.
2980 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
2981 get_mode_mask interface.
2982 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
2984 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2986 * tree.h (build_truth_vector_type): Delete.
2987 (build_same_sized_truth_vector_type): Likewise.
2988 * tree.c (build_truth_vector_type): Rename to...
2989 (build_truth_vector_type_for): ...this. Make static and take
2990 a vector type as argument.
2991 (truth_type_for): Update accordingly.
2992 (build_same_sized_truth_vector_type): Delete.
2993 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
2994 instead of build_same_sized_truth_vector_type.
2995 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
2996 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
2997 * tree-vect-patterns.c (build_mask_conversion): Likeise.
2998 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
2999 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3000 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3001 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3002 (vectorizable_store, vectorizable_condition): Likewise.
3003 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3004 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3005 build_truth_vector_type.
3006 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3007 Use truth_type_for instead of build_same_sized_truth_vector_type.
3008 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3010 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3012 * tree.h (build_truth_vector_type_for_mode): Declare.
3013 * tree.c (build_truth_vector_type_for_mode): New function,
3015 (build_truth_vector_type): ...here.
3016 (build_opaque_vector_type): Fix head comment.
3017 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3019 (vect_halve_mask_nunits): Replace vec_info parameter with the
3020 mode of the new vector.
3021 (vect_double_mask_nunits): Likewise.
3022 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3023 (vect_double_mask_nunits): Likewise.
3024 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3025 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3026 to vect_halve_mask_nunits, getting the required mode from the unpack
3028 (vect_set_loop_condition_masked): Update call accordingly.
3029 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3030 parameter and update call to vect_double_mask_nunits.
3031 (vectorizable_conversion): Update call accordingly.
3032 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3033 (vectorizable_call): Update call accordingly.
3034 (supportable_widening_operation): Update call to
3035 vect_halve_mask_nunits.
3036 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3037 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3039 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3041 * machmode.h (mode_for_int_vector): Delete.
3042 (related_int_vector_mode): Declare.
3043 * stor-layout.c (mode_for_int_vector): Delete.
3044 (related_int_vector_mode): New function.
3045 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3046 instead of mode_for_int_vector.
3047 (expand_vec_perm_const): Likewise.
3048 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3049 (aarch64_evpc_sve_tbl): Likewise.
3050 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3051 (s390_expand_vcond): Likewise.
3053 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3055 * target.def (related_mode): New hook.
3056 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3057 * doc/tm.texi: Regenerate.
3058 * targhooks.h (default_vectorize_related_mode): Declare.
3059 * targhooks.c (default_vectorize_related_mode): New function.
3060 * machmode.h (related_vector_mode): Declare.
3061 * stor-layout.c (related_vector_mode): New function.
3062 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3063 * optabs-query.c (qimode_for_vec_perm): Likewise.
3064 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3065 (vectorizable_store, vectorizable_load): Likewise
3067 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3069 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3070 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3071 * config/arm/arm-c.c (arm_cpu_builtins): Define
3072 __GCC_ASM_FLAG_OUTPUTS__.
3073 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3074 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3075 Define __GCC_ASM_FLAG_OUTPUTS__.
3076 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3077 * doc/extend.texi (FlagOutputOperands): Add documentation
3078 for ARM and AArch64.
3080 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3081 * config/arm/predicates.md (nz_comparison_operator): Rename
3082 from noov_comparison_operator.
3083 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3084 (arm_gen_dicompare_reg): Likewise.
3085 (maybe_get_arm_condition_code): Likewise.
3086 (thumb1_final_prescan_insn): Likewise.
3087 (arm_emit_coreregs_64bit_shift): Likewise.
3088 * config/arm/arm.md (addsi3_compare0): Likewise.
3089 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3090 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3091 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3092 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3093 (*mulsi3addsi_compare0_scratch): Likewise.
3094 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3095 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3096 (*zeroextractsi_compare0_scratch): Likewise.
3097 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3098 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3099 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3100 (andsi_not_shiftsi_si_scc): Likewise.
3101 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3102 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3103 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3104 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3105 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3106 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3107 (return_addr_mask, *check_arch2): Likewise.
3108 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3109 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3110 (compare_scc splitters): Likewise.
3111 (movcond_addsi): Likewise.
3112 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3113 (*thumb2_addsi3_compare0_scratch): Likewise.
3114 (*thumb2_mulsi_short_compare0): Likewise.
3115 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3116 (compare peephole2s): Likewise.
3117 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3118 nz_comparison_operator names.
3119 (cbranchsi4_insn): Likewise.
3121 * config/arm/constraints.md (c): Use cc_register predicate.
3123 * config/aarch64/constraints.md (c): New constraint.
3125 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3127 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3128 ipa_merge_fn_summary_after_inlining): Micro optimize.
3130 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3132 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3134 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3136 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3137 (ipa_value_range_from_jfunc): New function.
3138 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3139 known_value_ranges parameter; use it to evalulate conditions.
3140 (evaluate_properties_for_edge): Compute known value ranges.
3141 (ipa_fn_summary_t::duplicate): Update use of
3142 evaluate_conditions_for_known_args.
3143 (estimate_ipcp_clone_size_and_time): Likewise.
3144 (ipa_merge_fn_summary_after_inlining): Likewise.
3145 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3147 2019-11-14 Martin Liska <mliska@suse.cz>
3149 * ipa-inline.c (want_inline_small_function_p): Use
3150 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3151 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3153 2019-11-14 Martin Liska <mliska@suse.cz>
3155 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3156 of a callee to get value of the param.
3157 * ipa-inline.c (inline_insns_auto): Use proper
3159 * opts.c (maybe_default_option): Do not overwrite param
3160 value if optimization level does not match. Note that
3161 params usually have default value set via Init() keyword.
3162 * params.opt: Remove -param=max-inline-insns-auto-O2.
3163 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3164 * doc/invoke.texi: Remove documentation of
3165 max-inline-insns-auto-O2.
3167 2019-11-14 Martin Liska <mliska@suse.cz>
3169 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3170 Do not initialize m_other_count.
3171 (switch_conversion::collect): Do not count m_default_count and
3172 m_other_count as we use frequencies for edges.
3173 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3175 2019-11-14 Martin Liska <mliska@suse.cz>
3178 * doc/invoke.texi: Document -fallocation-dce.
3180 2019-11-14 Martin Liska <mliska@suse.cz>
3183 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3184 PTA_ICELAKE_CLIENT which is later interited by
3185 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3187 2019-11-14 Martin Liska <mliska@suse.cz>
3189 * ipa-icf.c (sem_item_optimizer::execute): Save
3191 (sem_item_optimizer::parse_nonsingleton_classes):
3192 Return number of loaded symbols.
3193 (sem_item_optimizer::merge_classes): Print
3194 statistics about totally needed symbols.
3195 * ipa-icf.h (parse_nonsingleton_classes): Change return
3197 (merge_classes): Add one argument.
3199 2019-11-14 Martin Liska <mliska@suse.cz>
3201 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3202 func_checker::hash_operand by handling of FIELD_DECLs.
3204 2019-11-14 Martin Liska <mliska@suse.cz>
3206 * ipa-icf-gimple.h (func_checker::func_checker): Add
3207 default constructor.
3208 * ipa-icf.c (sem_function::init): Make operand_equal_p
3209 and hash_operand public.
3210 (sem_item::add_expr): Remove.
3211 (sem_item::add_type): Remove.
3212 (sem_function::hash_stmt): Use m_checker for hashing
3213 of GIMPLE statements.
3214 (sem_function::parse): Init with checker.
3215 (sem_variable::parse): Pass NULL as checker.
3216 (sem_item_optimizer::parse_funcs_and_vars):
3217 Pass checker to ::parse function.
3218 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3219 (sem_variable::parse): New function.
3220 (sem_variable::get_hash): Only return computed hash value.
3221 (sem_variable::init): Initialize hash of a variable.
3222 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3223 to couple of functions as a new argument.
3225 2019-11-14 Martin Liska <mliska@suse.cz>
3227 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3229 (func_checker::compare_gimple_assign): Likewise.
3231 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3233 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3234 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3235 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3237 * omp-general.c (omp_context_name_list_prop): New function.
3238 (omp_context_selector_matches): Use it. Return 0 if it returns
3240 (omp_context_selector_props_compare): Allow equivalency of an
3241 identifier and a string literal containing no embedded zeros.
3243 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3245 * range-op.cc (RANGE3): Remove.
3246 (range_tests): Remove all selftest that check for multi-ranges.
3247 Put tests in namespace selftest.
3248 * selftest.h: Move range_tests into namespace selftest.
3249 * value-range.h (class value_range): Unfriend range_tests.
3251 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3253 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3254 normalize_symbolics and normalize_addresses working in place.
3255 (range_fold_unary_symbolics_p): Same.
3256 (range_fold_unary_symbolics_p): Same.
3257 * value-range.cc (num_pairs): Same.
3258 (lower_bound): Same.
3259 (upper_bound): Same.
3261 (normalize_addresses): Same.
3262 (normalize_symbolics): Same.
3263 * value-range.h (normalize_symbolics): Same.
3264 (normalize_addresses): Same.
3266 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3269 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3270 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3271 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3272 (ipa_agg_jump_function): Remove member function equal_to.
3273 (ipa_agg_jump_function_p): Remove typedef.
3274 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3275 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3276 information for aggregate jump function.
3277 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3278 record last definition statement.
3279 (load_from_unmodified_param_or_agg): New function.
3280 (ipa_known_agg_contents_list): Add new field type and value, remove
3282 (build_agg_jump_func_from_list): Rename parameter const_count to
3283 value_count, build aggregate jump function from ipa_load_agg_data.
3284 (analyze_agg_content_value): New function.
3285 (extract_mem_content): Analyze memory store assignment to prepare
3286 information for aggregate jump function generation.
3287 (determine_known_aggregate_parts): Add new parameter fbi, remove
3288 parameter aa_walk_budeget_p.
3289 (update_jump_functions_after_inlining): Update aggregate jump function.
3290 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3291 (try_make_edge_direct_simple_call): Add new parameter new_root.
3292 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3294 (update_indirect_edges_after_inlining): Pass new argument to
3295 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3296 (ipa_write_jump_function): Write aggregate jump function to file.
3297 (ipa_read_jump_function): Read aggregate jump function from file.
3298 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3299 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3300 (ipa_agg_value_from_node): Likewise.
3301 (ipa_agg_value_set_from_jfunc): Likewise.
3302 (propagate_vals_across_arith_jfunc): Likewise.
3303 (propagate_aggregate_lattice): Likewise.
3304 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3305 (propagate_vals_across_pass_through): Call
3306 propagate_vals_across_arith_jfunc.
3307 (get_clone_agg_value): Move forward.
3308 (propagate_aggs_across_jump_function): Handle value propagation for
3309 aggregate jump function.
3310 (agg_jmp_p_vec_for_t_vec): Remove.
3311 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3312 with vec<ipa_agg_value>.
3313 (copy_plats_to_inter, intersect_with_plats): Likewise.
3314 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3315 (intersect_aggregate_with_edge): Likewise.
3316 (find_aggregate_values_for_callers_subset): Likewise.
3317 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3318 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3319 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3320 (gather_context_independent_values): Likewise.
3321 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3322 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3323 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3324 (evaluate_properties_for_edge): Likewise.
3325 (estimate_edge_devirt_benefit): Likewise.
3326 (estimate_edge_size_and_time): Likewise.
3327 (estimate_calls_size_and_time): Likewise.
3328 (ipa_call_context::ipa_call_context): Likewise.
3329 (estimate_ipcp_clone_size_and_time): Likewise.
3330 * ipa-fnsummary.h (ipa_call_context): Replace
3331 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3332 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3333 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3334 (do_estimate_edge_size): Likewise.
3335 (do_estimate_edge_hints): Likewise.
3337 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3339 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3342 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3344 * ipa-profile.c (check_argument_count): Check properly that e_info
3345 is non-NULL; do not check descriptors.
3347 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3349 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3350 check for ipa profiles.
3352 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3355 * ipa-prop.c (update_indirect_edges_after_inlining):
3356 Mark parameter as used.
3357 * ipa-inline.c (recursive_inlining): Reset node cache
3359 (inline_small_functions): Remove checking ifdef.
3360 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3363 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3366 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3368 (ipa_profile): Fix reversed test.
3370 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3372 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3373 (propagate_constants_topo): Fix typo.
3375 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3377 * Makefile.in (OBJS): Add value-range.o.
3378 (GTFILES): Add value-range.h.
3379 * gengtype.c (open_base_files): Add value-range.h to list of
3381 * tree-vrp.c: Move the following value_range related functions:
3382 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3383 constant_p, set_undefined, set_varying, may_contain_p,
3384 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3385 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3386 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3387 value_inside_range, ranges_from_anti_range, union_ranges,
3388 intersect_ranges, intersect_helper, union_helper, union_,
3389 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3390 upper_bound, contains_p, invert, intersect...
3391 * value-range.cc: ...to here.
3392 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3393 associated inline methods from here...
3394 * value-range.h: ...to here.
3396 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3398 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3399 instead of asserting its value.
3401 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3403 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3404 constructors and set methods so value_range_kind is the last
3405 argument and defaults to VR_RANGE.
3406 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3407 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3408 * ipa-prop.c (ipa_get_value_range): Same.
3409 (ipa_compute_jump_functions_for_edge): Same.
3410 * range-op.cc (value_range_from_overflowed_bounds): Same.
3411 (operator_cast::op1_range): Same.
3412 (range_tests): Same.
3413 * range.cc (range_nonzero): Same.
3414 * tree-ssanames.c (get_range_info): Same.
3415 * tree-vrp.c (value_range_equiv::set): Same.
3416 (value_range::value_range): Same.
3417 (value_range_equiv::value_range_equiv): Same.
3418 (value_range_equiv::update): Same.
3419 (value_range_equiv::deep_copy): Same.
3420 (value_range_equiv::move): Same.
3421 (value_range_equiv::set_undefined): Same.
3422 (value_range::set): Same.
3423 (value_range::set_nonzero): Same.
3424 (ranges_from_anti_range): Same.
3425 (extract_range_from_plus_minus_expr): Same.
3426 (value_range::intersect_helper): Same.
3427 (value_range_equiv::intersect): Same.
3428 (value_range::union_helper): Same.
3429 (value_range_equiv::union_): Same.
3430 (value_range::normalize_symbolics): Same.
3431 (value_range::invert): Same.
3432 (determine_value_range_1): Same.
3433 * tree-vrp.h (class value_range): Same.
3434 (class value_range_equiv): Same.
3435 * vr-values.c (set_value_range_to_nonnegative): Same.
3436 (set_value_range_to_truthvalue): Same.
3437 (vr_values::update_value_range): Same.
3438 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3439 (vr_values::extract_range_from_binary_expr): Same.
3440 (vr_values::extract_range_from_comparison): Same.
3441 (vr_values::extract_range_basic): Same.
3442 (vr_values::adjust_range_with_scev): Same.
3443 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3444 (vr_values::extract_range_from_phi_node): Same.
3446 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3448 * tree-dump.c (dequeue_and_dump): Print first tree operand
3449 for VIEW_CONVERT_EXPR.
3451 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3453 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3454 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3455 * real.c (get_max_float): Add norm_max argument.
3456 * real.h (get_max_float): Update prototype.
3457 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3460 2019-11-13 Martin Liska <mliska@suse.cz>
3462 * dbgcnt.c (test_sorted_dbg_counters): New.
3463 (dbgcnt_c_tests): Likewise.
3464 * selftest-run-tests.c (selftest::run_tests): Likewise.
3465 * selftest.h (dbgcnt_c_tests): Likewise.
3467 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3468 Martin Jambor <mjambor@suse.cz>
3471 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3472 (identify_dead_nodes): Likewise.
3474 2019-11-13 Martin Liska <mliska@suse.cz>
3476 * ipa-icf.c (sem_function::equals_private): Do not overuse
3477 push/pop_cfun functions.
3479 2019-11-13 Martin Liska <mliska@suse.cz>
3481 * common.opt: Document change of -fdbg-cnt option.
3482 * dbgcnt.c (DEBUG_COUNTER): Remove.
3483 (dbg_cnt_is_enabled): Remove.
3484 (dbg_cnt): Work with new intervals.
3485 (dbg_cnt_set_limit_by_index): Set to new
3487 (dbg_cnt_set_limit_by_name): Likewise.
3488 (dbg_cnt_process_single_pair): Process new format.
3489 (dbg_cnt_process_opt): Likewise.
3490 (dbg_cnt_list_all_counters): Likewise.
3491 * doc/invoke.texi: Document change of -fdbg-cnt option.
3494 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3496 * ipa-inline.c (ipa_inline): Check that function is defined before
3499 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3500 Julian Brown <julian@codesourcery.com>
3502 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3503 flag_worker_partitioning is not set.
3504 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3505 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3507 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3509 * config/gcn/gcn-run.c (heap_region): New global variable.
3510 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3511 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3512 (get_kernarg_region): Move contents to ....
3513 (get_memory_region): .... here.
3514 (get_heap_region): New function.
3515 (init_device): Initialize the heap_region.
3516 (device_malloc): Add region parameter.
3517 (struct kernargs): Move heap ....
3518 (heap): ... to global scope.
3519 (main): Allocate heap separate to kernargs.
3521 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3523 * ipa-prop.c (ipa_print_node_jump_functions,
3524 ipa_print_node_params): Print info about missing summaries.
3526 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3528 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3529 the cost of generating loop masks.
3531 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3533 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3535 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3536 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3537 (vect_transform_loop): Likewise.
3538 (vect_analyze_loop_costing): Don't take the cost of versioning
3539 into account for the static profitability threshold if it turns
3540 out that no versioning is needed.
3542 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3544 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3545 and target_option_default_node to get -fprofile-generate ctors working
3548 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3550 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3551 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3552 (vectorizable_assignment): Don't add a cost for nop conversions.
3553 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3555 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3557 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3559 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3560 number of ncopies as an additional argument.
3561 (vectorizable_conversion): Update call accordingly. Use "modifier"
3562 to check whether a conversion is between vectors with the same
3565 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3567 * config/aarch64/aarch64-sve-builtins-functions.h
3568 (unary_count::expand): Use aarch64_sve_int_mode instead of
3569 mode_for_int_vector.
3571 2019-11-13 Martin Liska <mliska@suse.cz>
3573 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3575 2019-11-13 Martin Liska <mliska@suse.cz>
3577 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3578 Remove call to finalize_options_struct.
3580 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3583 * config/avr/t-avr (avr-mcus): Do not depend on
3584 $(srcdir)/config/avr/t-multilib.
3586 2019-11-13 Richard Biener <rguenther@suse.de>
3588 PR tree-optimization/92473
3589 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3590 direct optab reduction in the correct type.
3592 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3594 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3595 hexadecimal literal.
3597 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3599 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3600 UNORDERED if !HONOR_NANS (DFmode).
3601 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3602 if !HONOR_NANS (<MODE>mode).
3604 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3606 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3607 (ipcp_verify_propagated_values): Likewise.
3608 (propagate_constants_across_call): Likewise.
3609 (propagate_constants_topo): Likewise.
3610 (ipcp_propagate_stage): Likewise.
3612 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3615 * ipa-profile.c (check_argument_count): Break out from ...;
3616 watch for missing summaries.
3617 (ipa_profile): Here.
3619 2019-11-12 Martin Sebor <msebor@redhat.com>
3621 PR tree-optimization/92412
3622 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3625 2019-11-12 Martin Sebor <msebor@redhat.com>
3628 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3629 (directive::argno): New member.
3630 (format_result::aliases, format_result::alias_count): New data members.
3631 (format_result::append_alias): New member function.
3632 (fmtresult::dst_offset): New data member.
3633 (pass_sprintf_length::call_info::dst_origin): New data member.
3634 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3635 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3636 (get_origin_and_offset): Same.
3637 (format_string): Call it.
3638 (format_directive): Call append_alias and set directive argument
3640 (maybe_warn_overlap): New function.
3641 (pass_sprintf_length::compute_format_length): Call it.
3642 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3643 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3645 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3647 PR rtl-optimization/92430
3648 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3649 dominance info at the beginning.
3651 2019-11-12 Richard Biener <rguenther@suse.de>
3653 PR tree-optimization/92460
3654 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3655 expression before gimplifying.
3657 2019-11-12 Richard Biener <rguenther@suse.de>
3659 PR tree-optimization/92461
3660 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3661 stmt after propagation.
3663 2019-11-12 Martin Liska <mliska@suse.cz>
3665 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3666 Use SET_OPTION_IF_UNSET.
3667 (ix86_option_override_internal): Likewise.
3668 * opts.c (default_options_optimization): Likewise.
3669 (finish_options): Likewise.
3670 (enable_fdo_optimizations): Likewise.
3671 (common_handle_option): Likewise.
3673 2019-11-12 Martin Liska <mliska@suse.cz>
3675 * common/common-target.def: Remove option_validate_param and
3676 option_default_params.
3677 * common/common-targhooks.c (default_option_validate_param):
3679 * common/common-targhooks.h (default_option_validate_param):
3681 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3682 Remove usage of this.
3683 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3684 (aarch64_option_validate_param): Likewise.
3685 (aarch64_option_default_params): Likewise
3686 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3687 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3688 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3689 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3690 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3691 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3692 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3693 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3694 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3695 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3696 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3698 * doc/tm.texi: Remove option_default_params and option_validate_param.
3699 * doc/tm.texi.in: Likewise.
3701 2019-11-12 Martin Liska <mliska@suse.cz>
3703 * common/common-target.def:
3704 Do not mention set_default_param_value
3705 and set_param_value.
3706 * doc/tm.texi: Likewise.
3708 2019-11-12 Martin Liska <mliska@suse.cz>
3710 * common.opt: Remove param_values.
3711 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3712 Remove finalize_options_struct.
3713 * gcc.c (driver::decode_argv): Do not call global_init_params
3715 (driver::finalize): Do not call params_c_finalize
3716 and finalize_options_struct.
3717 * opt-suggestions.c (option_proposer::get_completions): Remove
3718 special casing of params.
3719 (option_proposer::find_param_completions): Remove.
3720 (test_completion_partial_match): Update expected output.
3721 * opt-suggestions.h: Remove find_param_completions.
3722 * opts-common.c (add_misspelling_candidates): Add
3723 --param with a space.
3724 * opts.c (handle_param): Remove.
3725 (init_options_struct):. Remove init_options_struct and
3727 (finalize_options_struct): Remove.
3728 (common_handle_option): Use SET_OPTION_IF_UNSET.
3729 * opts.h (finalize_options_struct): Remove.
3730 * toplev.c (general_init): Do not call global_init_params.
3731 (toplev::finalize): Do not call params_c_finalize and
3732 finalize_options_struct.
3734 2019-11-12 Martin Liska <mliska@suse.cz>
3736 * Makefile.in: Remove PARAMS_H and params.list
3738 * params-enum.h: Remove.
3739 * params-list.h: Remove.
3740 * params-options.h: Remove.
3742 * params.def: Remove.
3744 * asan.c: Do not include params.h.
3745 * auto-profile.c: Likewise.
3746 * bb-reorder.c: Likewise.
3747 * builtins.c: Likewise.
3748 * cfgcleanup.c: Likewise.
3749 * cfgexpand.c: Likewise.
3750 * cfgloopanal.c: Likewise.
3751 * cgraph.c: Likewise.
3752 * combine.c: Likewise.
3753 * common/config/aarch64/aarch64-common.c: Likewise.
3754 * common/config/gcn/gcn-common.c: Likewise.
3755 * common/config/ia64/ia64-common.c: Likewise.
3756 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3757 * common/config/rs6000/rs6000-common.c: Likewise.
3758 * common/config/sh/sh-common.c: Likewise.
3759 * config/aarch64/aarch64.c: Likewise.
3760 * config/alpha/alpha.c: Likewise.
3761 * config/arm/arm.c: Likewise.
3762 * config/avr/avr.c: Likewise.
3763 * config/csky/csky.c: Likewise.
3764 * config/i386/i386-builtins.c: Likewise.
3765 * config/i386/i386-expand.c: Likewise.
3766 * config/i386/i386-features.c: Likewise.
3767 * config/i386/i386-options.c: Likewise.
3768 * config/i386/i386.c: Likewise.
3769 * config/ia64/ia64.c: Likewise.
3770 * config/rs6000/rs6000-logue.c: Likewise.
3771 * config/rs6000/rs6000.c: Likewise.
3772 * config/s390/s390.c: Likewise.
3773 * config/sparc/sparc.c: Likewise.
3774 * config/visium/visium.c: Likewise.
3775 * coverage.c: Likewise.
3776 * cprop.c: Likewise.
3778 * cselib.c: Likewise.
3780 * emit-rtl.c: Likewise.
3781 * explow.c: Likewise.
3782 * final.c: Likewise.
3783 * fold-const.c: Likewise.
3786 * ggc-common.c: Likewise.
3787 * ggc-page.c: Likewise.
3788 * gimple-loop-interchange.cc: Likewise.
3789 * gimple-loop-jam.c: Likewise.
3790 * gimple-loop-versioning.cc: Likewise.
3791 * gimple-ssa-split-paths.c: Likewise.
3792 * gimple-ssa-sprintf.c: Likewise.
3793 * gimple-ssa-store-merging.c: Likewise.
3794 * gimple-ssa-strength-reduction.c: Likewise.
3795 * gimple-ssa-warn-alloca.c: Likewise.
3796 * gimple-ssa-warn-restrict.c: Likewise.
3797 * graphite-isl-ast-to-gimple.c: Likewise.
3798 * graphite-optimize-isl.c: Likewise.
3799 * graphite-scop-detection.c: Likewise.
3800 * graphite-sese-to-poly.c: Likewise.
3801 * graphite.c: Likewise.
3802 * haifa-sched.c: Likewise.
3803 * hsa-gen.c: Likewise.
3804 * ifcvt.c: Likewise.
3805 * ipa-cp.c: Likewise.
3806 * ipa-fnsummary.c: Likewise.
3807 * ipa-inline-analysis.c: Likewise.
3808 * ipa-inline.c: Likewise.
3809 * ipa-polymorphic-call.c: Likewise.
3810 * ipa-profile.c: Likewise.
3811 * ipa-prop.c: Likewise.
3812 * ipa-split.c: Likewise.
3813 * ipa-sra.c: Likewise.
3814 * ira-build.c: Likewise.
3815 * ira-conflicts.c: Likewise.
3816 * loop-doloop.c: Likewise.
3817 * loop-invariant.c: Likewise.
3818 * loop-unroll.c: Likewise.
3819 * lra-assigns.c: Likewise.
3820 * lra-constraints.c: Likewise.
3821 * modulo-sched.c: Likewise.
3822 * opt-suggestions.c: Likewise.
3824 * postreload-gcse.c: Likewise.
3825 * predict.c: Likewise.
3826 * reload.c: Likewise.
3827 * reorg.c: Likewise.
3828 * resource.c: Likewise.
3829 * sanopt.c: Likewise.
3830 * sched-deps.c: Likewise.
3831 * sched-ebb.c: Likewise.
3832 * sched-rgn.c: Likewise.
3833 * sel-sched-ir.c: Likewise.
3834 * sel-sched.c: Likewise.
3835 * shrink-wrap.c: Likewise.
3837 * targhooks.c: Likewise.
3838 * toplev.c: Likewise.
3839 * tracer.c: Likewise.
3840 * trans-mem.c: Likewise.
3841 * tree-chrec.c: Likewise.
3842 * tree-data-ref.c: Likewise.
3843 * tree-if-conv.c: Likewise.
3844 * tree-inline.c: Likewise.
3845 * tree-loop-distribution.c: Likewise.
3846 * tree-parloops.c: Likewise.
3847 * tree-predcom.c: Likewise.
3848 * tree-profile.c: Likewise.
3849 * tree-scalar-evolution.c: Likewise.
3850 * tree-sra.c: Likewise.
3851 * tree-ssa-ccp.c: Likewise.
3852 * tree-ssa-dom.c: Likewise.
3853 * tree-ssa-dse.c: Likewise.
3854 * tree-ssa-ifcombine.c: Likewise.
3855 * tree-ssa-loop-ch.c: Likewise.
3856 * tree-ssa-loop-im.c: Likewise.
3857 * tree-ssa-loop-ivcanon.c: Likewise.
3858 * tree-ssa-loop-ivopts.c: Likewise.
3859 * tree-ssa-loop-manip.c: Likewise.
3860 * tree-ssa-loop-niter.c: Likewise.
3861 * tree-ssa-loop-prefetch.c: Likewise.
3862 * tree-ssa-loop-unswitch.c: Likewise.
3863 * tree-ssa-math-opts.c: Likewise.
3864 * tree-ssa-phiopt.c: Likewise.
3865 * tree-ssa-pre.c: Likewise.
3866 * tree-ssa-reassoc.c: Likewise.
3867 * tree-ssa-sccvn.c: Likewise.
3868 * tree-ssa-scopedtables.c: Likewise.
3869 * tree-ssa-sink.c: Likewise.
3870 * tree-ssa-strlen.c: Likewise.
3871 * tree-ssa-structalias.c: Likewise.
3872 * tree-ssa-tail-merge.c: Likewise.
3873 * tree-ssa-threadbackward.c: Likewise.
3874 * tree-ssa-threadedge.c: Likewise.
3875 * tree-ssa-uninit.c: Likewise.
3876 * tree-switch-conversion.c: Likewise.
3877 * tree-vect-data-refs.c: Likewise.
3878 * tree-vect-loop.c: Likewise.
3879 * tree-vect-slp.c: Likewise.
3880 * tree-vrp.c: Likewise.
3882 * value-prof.c: Likewise.
3883 * var-tracking.c: Likewise.
3885 2019-11-12 Martin Liska <mliska@suse.cz>
3887 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3888 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3890 (asan_sanitize_allocas_p): Likewise.
3891 (asan_emit_stack_protection): Likewise.
3892 (asan_protect_global): Likewise.
3893 (instrument_derefs): Likewise.
3894 (instrument_builtin_call): Likewise.
3895 (asan_expand_mark_ifn): Likewise.
3896 * auto-profile.c (auto_profile): Likewise.
3897 * bb-reorder.c (copy_bb_p): Likewise.
3898 (duplicate_computed_gotos): Likewise.
3899 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3900 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3901 (try_crossjump_bb): Likewise.
3902 * cfgexpand.c (defer_stack_allocation): Likewise.
3903 (stack_protect_classify_type): Likewise.
3904 (pass_expand::execute): Likewise.
3905 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3906 (estimate_reg_pressure_cost): Likewise.
3907 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3908 * combine.c (combine_instructions): Likewise.
3909 (record_value_for_reg): Likewise.
3910 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3911 (aarch64_option_default_params): Likewise.
3912 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3913 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3914 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3915 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3916 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3917 (aarch64_allocate_and_probe_stack_space): Likewise.
3918 (aarch64_expand_epilogue): Likewise.
3919 (aarch64_override_options_internal): Likewise.
3920 * config/alpha/alpha.c (alpha_option_override): Likewise.
3921 * config/arm/arm.c (arm_option_override): Likewise.
3922 (arm_valid_target_attribute_p): Likewise.
3923 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3924 * config/i386/i386.c (get_probe_interval): Likewise.
3925 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3926 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3927 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3928 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
3929 (get_stack_clash_protection_guard_size): Likewise.
3930 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
3931 * config/s390/s390.c (allocate_stack_space): Likewise.
3932 (s390_emit_prologue): Likewise.
3933 (s390_option_override_internal): Likewise.
3934 * config/sparc/sparc.c (sparc_option_override): Likewise.
3935 * config/visium/visium.c (visium_option_override): Likewise.
3936 * coverage.c (get_coverage_counts): Likewise.
3937 (coverage_compute_profile_id): Likewise.
3938 (coverage_begin_function): Likewise.
3939 (coverage_end_function): Likewise.
3940 * cse.c (cse_find_path): Likewise.
3941 (cse_extended_basic_block): Likewise.
3942 (cse_main): Likewise.
3943 * cselib.c (cselib_invalidate_mem): Likewise.
3944 * dse.c (dse_step1): Likewise.
3945 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
3946 (get_max_insn_count): Likewise.
3947 (make_debug_insn_raw): Likewise.
3948 (init_emit): Likewise.
3949 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
3950 * final.c (compute_alignments): Likewise.
3951 * fold-const.c (fold_range_test): Likewise.
3952 (fold_truth_andor): Likewise.
3953 (tree_single_nonnegative_warnv_p): Likewise.
3954 (integer_valued_real_single_p): Likewise.
3955 * gcse.c (want_to_gcse_p): Likewise.
3956 (prune_insertions_deletions): Likewise.
3957 (hoist_code): Likewise.
3958 (gcse_or_cprop_is_too_expensive): Likewise.
3959 * ggc-common.c: Likewise.
3960 * ggc-page.c (ggc_collect): Likewise.
3961 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
3962 (MAX_DATAREFS): Likewise.
3963 (OUTER_STRIDE_RATIO): Likewise.
3964 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
3965 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
3966 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
3967 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
3968 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
3969 (imm_store_chain_info::output_merged_store): Likewise.
3970 (pass_store_merging::process_store): Likewise.
3971 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
3972 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
3973 (scop_to_isl_ast): Likewise.
3974 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
3975 (optimize_isl): Likewise.
3976 * graphite-scop-detection.c (build_scops): Likewise.
3977 * haifa-sched.c (set_modulo_params): Likewise.
3978 (rank_for_schedule): Likewise.
3979 (model_add_to_worklist): Likewise.
3980 (model_promote_insn): Likewise.
3981 (model_choose_insn): Likewise.
3982 (queue_to_ready): Likewise.
3983 (autopref_multipass_dfa_lookahead_guard): Likewise.
3984 (schedule_block): Likewise.
3985 (sched_init): Likewise.
3986 * hsa-gen.c (init_prologue): Likewise.
3987 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
3988 (cond_move_process_if_block): Likewise.
3989 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
3990 (merge_agg_lats_step): Likewise.
3991 (devirtualization_time_bonus): Likewise.
3992 (hint_time_bonus): Likewise.
3993 (incorporate_penalties): Likewise.
3994 (good_cloning_opportunity_p): Likewise.
3995 (ipcp_propagate_stage): Likewise.
3996 * ipa-fnsummary.c (decompose_param_expr): Likewise.
3997 (set_switch_stmt_execution_predicate): Likewise.
3998 (analyze_function_body): Likewise.
3999 (compute_fn_summary): Likewise.
4000 * ipa-inline-analysis.c (estimate_growth): Likewise.
4001 * ipa-inline.c (caller_growth_limits): Likewise.
4002 (inline_insns_single): Likewise.
4003 (inline_insns_auto): Likewise.
4004 (can_inline_edge_by_limits_p): Likewise.
4005 (want_early_inline_function_p): Likewise.
4006 (big_speedup_p): Likewise.
4007 (want_inline_small_function_p): Likewise.
4008 (want_inline_self_recursive_call_p): Likewise.
4009 (edge_badness): Likewise.
4010 (recursive_inlining): Likewise.
4011 (compute_max_insns): Likewise.
4012 (early_inliner): Likewise.
4013 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4014 * ipa-profile.c (ipa_profile): Likewise.
4015 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4016 (ipa_analyze_node): Likewise.
4017 (ipcp_transform_function): Likewise.
4018 * ipa-split.c (consider_split): Likewise.
4019 * ipa-sra.c (allocate_access): Likewise.
4020 (process_scan_results): Likewise.
4021 (ipa_sra_summarize_function): Likewise.
4022 (pull_accesses_from_callee): Likewise.
4023 * ira-build.c (loop_compare_func): Likewise.
4024 (mark_loops_for_removal): Likewise.
4025 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4026 * loop-doloop.c (doloop_optimize): Likewise.
4027 * loop-invariant.c (gain_for_invariant): Likewise.
4028 (move_loop_invariants): Likewise.
4029 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4030 (decide_unroll_runtime_iterations): Likewise.
4031 (decide_unroll_stupid): Likewise.
4032 (expand_var_during_unrolling): Likewise.
4033 * lra-assigns.c (spill_for): Likewise.
4034 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4035 * modulo-sched.c (sms_schedule): Likewise.
4036 (DFA_HISTORY): Likewise.
4037 * opts.c (default_options_optimization): Likewise.
4038 (finish_options): Likewise.
4039 (common_handle_option): Likewise.
4040 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4042 * predict.c (get_hot_bb_threshold): Likewise.
4043 (maybe_hot_count_p): Likewise.
4044 (probably_never_executed): Likewise.
4045 (predictable_edge_p): Likewise.
4046 (predict_loops): Likewise.
4047 (expr_expected_value_1): Likewise.
4048 (tree_predict_by_opcode): Likewise.
4049 (handle_missing_profiles): Likewise.
4050 * reload.c (find_equiv_reg): Likewise.
4051 * reorg.c (redundant_insn): Likewise.
4052 * resource.c (mark_target_live_regs): Likewise.
4053 (incr_ticks_for_insn): Likewise.
4054 * sanopt.c (pass_sanopt::execute): Likewise.
4055 * sched-deps.c (sched_analyze_1): Likewise.
4056 (sched_analyze_2): Likewise.
4057 (sched_analyze_insn): Likewise.
4058 (deps_analyze_insn): Likewise.
4059 * sched-ebb.c (schedule_ebbs): Likewise.
4060 * sched-rgn.c (find_single_block_region): Likewise.
4061 (too_large): Likewise.
4062 (haifa_find_rgns): Likewise.
4063 (extend_rgns): Likewise.
4064 (new_ready): Likewise.
4065 (schedule_region): Likewise.
4066 (sched_rgn_init): Likewise.
4067 * sel-sched-ir.c (make_region_from_loop): Likewise.
4068 * sel-sched-ir.h (MAX_WS): Likewise.
4069 * sel-sched.c (process_pipelined_exprs): Likewise.
4070 (sel_setup_region_sched_flags): Likewise.
4071 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4072 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4073 * toplev.c (print_version): Likewise.
4074 (process_options): Likewise.
4075 * tracer.c (tail_duplicate): Likewise.
4076 * trans-mem.c (tm_log_add): Likewise.
4077 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4078 * tree-data-ref.c (split_constant_offset): Likewise.
4079 (compute_all_dependences): Likewise.
4080 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4081 * tree-inline.c (remap_gimple_stmt): Likewise.
4082 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4083 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4084 (create_parallel_loop): Likewise.
4085 * tree-predcom.c (determine_unroll_factor): Likewise.
4086 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4087 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4088 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4089 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4090 (dse_optimize_redundant_stores): Likewise.
4091 (dse_classify_store): Likewise.
4092 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4093 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4094 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4095 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4096 (try_peel_loop): Likewise.
4097 (tree_unroll_loops_completely): Likewise.
4098 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4099 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4100 (MAX_CONSIDERED_GROUPS): Likewise.
4101 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4102 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4103 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4104 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4105 (L1_CACHE_SIZE_BYTES): Likewise.
4106 (L2_CACHE_SIZE_BYTES): Likewise.
4107 (should_issue_prefetch_p): Likewise.
4108 (schedule_prefetches): Likewise.
4109 (determine_unroll_factor): Likewise.
4110 (volume_of_references): Likewise.
4111 (add_subscript_strides): Likewise.
4112 (self_reuse_distance): Likewise.
4113 (mem_ref_count_reasonable_p): Likewise.
4114 (insn_to_prefetch_ratio_too_small_p): Likewise.
4115 (loop_prefetch_arrays): Likewise.
4116 (tree_ssa_prefetch_arrays): Likewise.
4117 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4118 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4119 (convert_mult_to_fma): Likewise.
4120 (math_opts_dom_walker::after_dom_children): Likewise.
4121 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4122 (hoist_adjacent_loads): Likewise.
4123 (gate_hoist_loads): Likewise.
4124 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4125 (compute_partial_antic_aux): Likewise.
4126 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4127 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4128 (vn_reference_lookup): Likewise.
4129 (do_rpo_vn): Likewise.
4130 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4131 * tree-ssa-sink.c (select_best_block): Likewise.
4132 * tree-ssa-strlen.c (new_stridx): Likewise.
4133 (new_addr_stridx): Likewise.
4134 (get_range_strlen_dynamic): Likewise.
4135 (class ssa_name_limit_t): Likewise.
4136 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4137 (create_variable_info_for_1): Likewise.
4138 (init_alias_vars): Likewise.
4139 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4140 (tail_merge_optimize): Likewise.
4141 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4142 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4143 (thread_jumps::find_jump_threads_backwards): Likewise.
4144 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4145 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4146 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4147 (jump_table_cluster::can_be_handled): Likewise.
4148 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4149 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4150 (param_switch_conversion_branch_ratio): Likewise.
4151 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4152 (vect_enhance_data_refs_alignment): Likewise.
4153 (vect_prune_runtime_alias_test_list): Likewise.
4154 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4155 (vect_get_datarefs_in_loop): Likewise.
4156 (vect_analyze_loop): Likewise.
4157 * tree-vect-slp.c (vect_slp_bb): Likewise.
4158 * tree-vectorizer.h: Likewise.
4159 * tree-vrp.c (find_switch_asserts): Likewise.
4160 (vrp_prop::check_mem_ref): Likewise.
4161 * tree.c (wide_int_to_tree_1): Likewise.
4162 (cache_integer_cst): Likewise.
4163 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4164 (reverse_op): Likewise.
4165 (vt_find_locations): Likewise.
4167 2019-11-12 Martin Liska <mliska@suse.cz>
4169 * Makefile.in: Include params.opt.
4170 * flag-types.h (enum parloops_schedule_type): Add
4171 parloops_schedule_type used in params.opt.
4172 * params.opt: New file.
4174 2019-11-12 Martin Liska <mliska@suse.cz>
4176 * common.opt: Remove --param and --param= options.
4177 * opt-functions.awk: Mark CL_PARAMS for options
4178 that have Param keyword.
4179 * opts-common.c (decode_cmdline_options_to_array):
4180 Replace --param key=value with --param=key=value.
4181 * opts.c (print_filtered_help): Remove special
4183 (print_specific_help): Update title for params.
4184 (common_handle_option): Do not handle OPT__param.
4185 opts.h (SET_OPTION_IF_UNSET): New macro.
4186 * doc/options.texi: Document Param keyword.
4188 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4189 Frederik Harwath <frederik@codesourcery.com>
4190 Thomas Schwinge <thomas@codesourcery.com>
4193 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4194 enumeration constant.
4195 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4196 (is_gimple_omp_offloaded): Likewise.
4197 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4198 constant. Adjust the value of ORT_NONE accordingly.
4199 (is_gimple_stmt): Handle OACC_SERIAL.
4200 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4201 (gomp_needs_data_present): Likewise.
4202 (gimplify_adjust_omp_clauses): Likewise.
4203 (gimplify_omp_workshare): Handle OACC_SERIAL.
4204 (gimplify_expr): Likewise.
4205 * omp-expand.c (expand_omp_target):
4206 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4207 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4208 * omp-low.c (is_oacc_parallel): Rename function to...
4209 (is_oacc_parallel_or_serial): ... this.
4210 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4211 (scan_sharing_clauses): Adjust accordingly.
4212 (scan_omp_for): Likewise.
4213 (lower_oacc_head_mark): Likewise.
4214 (convert_from_firstprivate_int): Likewise.
4215 (lower_omp_target): Likewise.
4216 (check_omp_nesting_restrictions): Handle
4217 GF_OMP_TARGET_KIND_OACC_SERIAL.
4218 (lower_oacc_reductions): Likewise.
4219 (lower_omp_target): Likewise.
4220 * tree.def (OACC_SERIAL): New tree code.
4221 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4223 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4225 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4228 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4229 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4231 PR tree-optimization/92452
4232 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4233 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4236 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4238 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4241 2019-11-12 Alan Modra <amodra@gmail.com>
4243 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4244 element of unspec vec.
4245 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4247 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4248 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4249 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4250 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4252 2019-11-12 Alan Modra <amodra@gmail.com>
4254 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4255 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4256 (IS_NOMARK_TLSGETADDR): Likewise.
4257 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4258 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4259 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4260 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4261 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4262 (rs6000_indirect_call_template_1): Likewise.
4263 (rs6000_pltseq_template): Likewise.
4264 (rs6000_opt_vars): Remove "tls-markers" entry.
4265 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4267 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4268 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4269 (pltseq_plt_pcrel<mode>): Likewise.
4270 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4271 (call_value_local64): Likewise.
4272 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4273 output and length attribute sub-expression.
4274 (call_value_nonlocal_sysv<mode>),
4275 (call_value_nonlocal_sysv_secure<mode>),
4276 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4277 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4278 (call_value_indirect_pcrel<mode>): Likewise.
4279 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4280 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4281 * configure: Regenerate.
4282 * config.in: Regenerate.
4284 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4286 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4287 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4288 address being a prefixed load/store.
4289 (stack_protect_testdi): Deal with either address being a prefixed
4292 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4295 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4296 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4299 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4301 PR tree-optimization/92420
4302 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4304 (get_group_load_store_type): Use it for reversed SLP accesses.
4306 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4308 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4310 (ipcp_transformation_t::duplicate): Break out from ...
4311 (ipa_node_params_t::duplicate): ... here; add copying of agg
4313 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4314 (ipcp_transformation_t): Add duplicate.
4316 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4319 * doc/install.texi: Document that the minimum MPFR version is
4322 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4324 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4325 use new register constraint letters.
4327 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4329 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4330 as well, if interesting recover the symbol and re-legitimize the
4333 2019-11-11 Martin Liska <mliska@suse.cz>
4335 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4338 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4340 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4341 account when checking if there are enough iterations to vectorize
4344 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4345 Kwok Cheung Yeung <kcy@codesourcery.com>
4347 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4348 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4349 (LANG_HOOKS_DECLS): Rename also here.
4350 * langhooks.h (lang_hooks_for_decls): Rename
4351 omp_is_optional_argument to omp_check_optional_argument; take
4352 additional bool argument.
4353 * omp-general.h (omp_check_optional_argument): Likewise.
4354 * omp-general.h (omp_check_optional_argument): Likewise.
4355 * omp-low.c (lower_omp_target): Update calls; handle absent
4356 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4358 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4361 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4362 -fPIC and -shared the last to create offload image.
4364 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4366 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4369 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4370 (config.status): Use/depend on it.
4371 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4372 * configure: Regenerate.
4374 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4376 PR tree-optimization/88760
4377 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4378 * gcc/common/config/rs6000/rs6000-common.c
4379 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4380 Turn on -funroll-loops and -munroll-only-small-loops.
4381 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4382 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4383 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4384 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4385 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4386 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4388 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4390 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4391 Make scalar_load, vector_load, unaligned_load and
4392 vector_gather_load cost more to conform hardware latency and
4395 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4397 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4398 (MACHO_SYMBOL_LINKER_VIS_P): New.
4400 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4402 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4403 registers in eliminable_regset.
4405 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4407 * ipa-inline.c (compute_uninlined_call_time,
4408 compute_inlined_call_time): Take edge frequency as
4409 parameter rather than computing it by itself.
4410 (big_speedup_p, edge_badness): Manually CSE sreal
4411 frequency calculations.
4413 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4415 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4416 case where profiles are same.
4418 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4420 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4422 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4424 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4425 args summaries of inlined edge unless it holds info about
4426 described reference.
4428 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4430 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4431 (*movcc_internal1): Rename to...
4432 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4434 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4436 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4437 (cgraph_node::create_virtual_clone): Copy it.
4438 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4440 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4441 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4443 (propagate_constants_across_call): If callee is not analyzed, give up.
4444 (propagate_constants_topo): Lower to bottom latties of all callees of
4445 functions with ipa-cp disabled.
4446 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4447 (cgraph_edge_brings_value_p): Check for availability first.
4448 (create_specialized_node): Set ipcp_clone.
4449 (ipcp_store_bits_results): Check that info is present.
4450 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4452 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4453 conservative when callee summary is missing.
4454 (remap_edge_summaries): Lookup call summary only when needed.
4455 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4456 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4458 (ipa_analyze_node): Use get_create.
4459 (propagate_controlled_uses): Do not propagate when function is not
4461 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4462 (ipa_read_node_info): Use get_create.
4463 * ipa-prop.h (IPA_NODE_REF): Use get.
4464 (IPA_NODE_REF_GET_CREATE): New.
4466 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4468 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4471 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4473 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4474 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4475 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4476 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4478 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4480 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4481 capping the growth cumulated.
4482 (offline_size): Break out from ...
4483 (estimate_growth): ... here.
4484 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4486 (growth_likely_positive): Turn to ...
4487 (growth_positive_p): Re-implement.
4488 * ipa-inline.h (growth_likely_positive): Remove.
4489 (growth_positive_p): Declare.
4490 * ipa-inline.c (want_inline_small_function_p): Use
4492 (want_inline_function_to_all_callers_p): Likewise.
4494 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4496 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4497 calculation of min_size.
4498 (ipa_update_overall_fn_summary): Likewise.
4500 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4502 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4503 estimate_edge_devirt_benefit when not computing hints;
4504 do not compute time when not asked for.
4505 (estimate_calls_size_and_time): Pass NULL hints and time when
4506 these are not computed; do not evaluate hint predicates when these are
4508 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4511 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4513 PR tree-optimization/92401
4514 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4515 if res_op->code is an expression with code length 1.
4516 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4517 if res_op->code is an expression with code length 2.
4518 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4519 if res_op->code is an expression with code length 3.
4521 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4523 * config/darwin.c (machopic_mcount_stub_name): Validate the
4524 symbol stub name when it is created.
4525 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4528 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4530 * symtab.c: Fix comment typos.
4531 * cgraphunit.c: Likewise.
4532 * cgraph.h: Likewise.
4533 * cgraphclones.c: Likewise.
4534 * cgraph.c: Likewise.
4535 * varpool.c: Likewise.
4536 * tree-ssa-strlen.c: Likewise.
4537 * ipa-sra.c: Likewise.
4538 (scan_expr_access, check_all_callers_for_issues): Fix typo
4541 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4543 * config/darwin-protos.h: Add include quard.
4545 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4547 * range-op.h (range_operator::fold_range): Return result in a
4548 reference parameter instead of by value.
4549 (range_operator::wi_fold): Same.
4550 * range-op.cc (range_operator::wi_fold): Return result in a reference
4551 parameter instead of by value.
4552 (range_operator::fold_range): Same.
4553 (value_range_from_overflowed_bounds): Same.
4554 (value_range_with_overflow): Same
4555 (create_possibly_reversed_range): Same.
4556 (operator_equal::fold_range): Same.
4557 (operator_not_equal::fold_range): Same.
4558 (operator_lt::fold_range): Same.
4559 (operator_le::fold_range): Same.
4560 (operator_gt::fold_range): Same.
4561 (operator_ge::fold_range): Same.
4562 (operator_plus::wi_fold): Same.
4563 (operator_plus::op1_range): Change call to fold_range.
4564 (operator_plus::op2_range): Change call to fold_range.
4565 (operator_minus::wi_fold): Return result via reference parameter.
4566 (operator_minus::op1_range): Change call to fold_range.
4567 (operator_minus::op2_range): Change call to fold_range.
4568 (operator_min::wi_fold): Return result via reference parameter.
4569 (operator_max::wi_fold): Same.
4570 (cross_product_operator::wi_cross_product): Same.
4571 (operator_mult::wi_fold): Same.
4572 (operator_div::wi_fold): Same.
4573 (operator_div op_floor_div): Fix whitespace.
4574 (operator_exact_divide::op1_range): Change call to fold_range.
4575 (operator_lshift::fold_range): Return result via reference parameter.
4576 (operator_lshift::wi_fold): Same.
4577 (operator_rshift::fold_range): Same.
4578 (operator_rshift::wi_fold): Same.
4579 (operator_cast::fold_range): Same.
4580 (operator_cast::op1_range): Change calls to fold_range.
4581 (operator_logical_and::fold_range): Return result via reference.
4582 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4583 (operator_bitwise_and::wi_fold): Return result via reference.
4584 (operator_logical_or::fold_range): Same.
4585 (operator_bitwise_or::wi_fold): Same.
4586 (operator_bitwise_xor::wi_fold): Same.
4587 (operator_trunc_mod::wi_fold): Same.
4588 (operator_logical_not::fold_range): Same.
4589 (operator_bitwise_not::fold_range): Same.
4590 (operator_bitwise_not::op1_range): Change call to fold_range.
4591 (operator_cst::fold_range): Return result via reference.
4592 (operator_identity::fold_range): Same.
4593 (operator_abs::wi_fold): Same.
4594 (operator_absu::wi_fold): Same.
4595 (operator_negate::fold_range): Same.
4596 (operator_negate::op1_range): Change call to fold_range.
4597 (operator_addr_expr::fold_range): Return result via reference.
4598 (operator_addr_expr::op1_range): Change call to fold_range.
4599 (operator_pointer_plus::wi_fold): Return result via reference.
4600 (operator_pointer_min_max::wi_fold): Same.
4601 (operator_pointer_and::wi_fold): Same.
4602 (operator_pointer_or::wi_fold): Same.
4603 (range_op_handler): Change call to fold_range.
4605 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4607 (range_fold_unary_symbolics_p): Same.
4608 (range_fold_binary_expr): Same.
4609 (range_fold_unary_expr): Same.
4611 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4613 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4614 vector type as an argument rather than reading it from the
4616 (vect_create_epilog_for_reduction): Update accordingly.
4617 (vectorizable_reduction): Likewise.
4618 (vect_transform_cycle_phi): Likewise.
4620 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4622 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4623 the comparison codes that make sense for the mode used, and only the
4624 codes that can be done with a single branch instruction.
4626 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4628 PR tree-optimization/92351
4629 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4630 peeling the main loop for alignment, make sure to set the misalignment
4631 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4633 2019-11-08 Richard Biener <rguenther@suse.de>
4635 * dbgcnt.def (ivopts_loop): Add.
4636 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4637 ivopts_loop before optimizing a loop.
4639 2019-11-08 Richard Biener <rguenther@suse.de>
4642 * tree-inline.c (declare_return_variable): Properly handle
4643 type mismatches for the return slot.
4645 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4648 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4649 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4651 (got_helper_needed): New static variable.
4652 (output_load_pcrel_sym): New function.
4653 (get_pc_thunk_name): Remove after inlining...
4654 (load_got_register): ...here. Rework the initialization of the GOT
4655 register and of the GOT helper.
4656 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4657 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4658 helper must be emitted. Use output_asm_insn instead of fprintf.
4659 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4660 if optimization is enabled.
4661 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4662 by calling output_load_pcrel_sym.
4664 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4666 * tree-sra.c (create_access): Delay disqualifying the base
4667 for poly_int values until we know we have a base.
4669 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4671 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4672 for loops with SIMDUID set. Enable epilogue vectorization for loops
4673 with SIMDLEN set after finding a main loop with a VF that matches it.
4675 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4678 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4679 value only, return non-NULL if there is a single non-clobber
4680 constituent store even if there are constituent clobbers and return
4681 one of clobber constituent stores if all constituent stores are
4683 (split_group): Handle clobbers.
4684 (imm_store_chain_info::output_merged_store): When computing
4685 bzero_first, look after all clobbers at the start. Don't count
4686 clobber stmts in orig_num_stmts, except if the first orig store is
4687 a clobber covering the whole area and split_stores cover the whole
4688 area, consider equal number of stmts ok. Punt if split_stores
4689 contains only ->orig stores and their number plus number of original
4690 clobbers is equal to original number of stmts. For ->orig, look past
4691 clobbers in the constituent stores.
4692 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4694 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4696 (store_valid_for_store_merging_p): Allow clobber stmts.
4697 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4700 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4701 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4703 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4704 force creation of a unique data.stack_parm slot.
4706 2019-11-08 Richard Biener <rguenther@suse.de>
4708 * genmatch.c (expr::gen_transform): Use the resimplify
4709 member function instead of hard-coding the gimple_resimplifyN variant.
4710 (dt_simplify::gen_1): Likewise.
4712 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4714 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4717 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4719 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4720 instead of INTEGER_CST.
4722 2019-11-08 Richard Biener <rguenther@suse.de>
4724 PR tree-optimization/92324
4725 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4726 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4727 sign-conversions as necessary.
4728 (vectorizable_reduction): Reject conversions in the chain
4729 that are not sign-conversions, base analysis on a non-converting
4730 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4731 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4733 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4734 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4736 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4739 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4740 Fix a missing '-' when displaying these options in the
4743 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4745 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4747 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4749 * config/aarch64/aarch64-builtins.c
4750 (aarch64_builtin_vectorized_function): Remove bswap handling.
4752 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4754 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4755 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4756 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4757 Treat the vector types as indivisible.
4759 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4761 * optabs.def (gather_load_optab, mask_gather_load_optab)
4762 (scatter_store_optab, mask_scatter_store_optab): Turn into
4763 conversion optabs, with the offset mode given explicitly.
4764 * doc/md.texi: Update accordingly.
4765 * config/aarch64/aarch64-sve-builtins-base.cc
4766 (svld1_gather_impl::expand): Likewise.
4767 (svst1_scatter_impl::expand): Likewise.
4768 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4769 (expand_scatter_store_optab_fn): Likewise.
4770 (direct_gather_load_optab_supported_p): Likewise.
4771 (direct_scatter_store_optab_supported_p): Likewise.
4772 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4774 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4775 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4776 argument with the offset vector type. Require the two vector
4777 types to have the same number of elements but allow their element
4778 sizes to be different. Treat the optabs as conversion optabs.
4779 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4780 prototype accordingly.
4781 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4782 (supports_vec_convert_optab_p): ...this new function.
4783 (supports_vec_gather_load_p): Update accordingly.
4784 (supports_vec_scatter_store_p): Likewise.
4785 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4786 Replace the offset sign and bits parameters with a scalar type tree.
4787 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4788 Pass back the offset vector type instead of the scalar element type.
4789 Allow the offset to be wider than the memory elements. Search for
4790 an offset type that the target supports, stopping once we've
4791 reached the maximum of the element size and pointer size.
4792 Update call to internal_gather_scatter_fn_supported_p.
4793 (vect_check_gather_scatter): Update calls accordingly.
4794 When testing a new scale before knowing the final offset type,
4795 check whether the scale is supported for any signed or unsigned
4796 offset type. Check whether the target supports the source and
4797 target types of a conversion before deciding whether to look
4798 through the conversion. Record the chosen offset_vectype.
4799 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4800 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4801 directly from the gs_info's offset_vectype instead. Pass a zero
4802 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4803 * tree-vect-stmts.c (check_load_store_masking): Update call to
4804 internal_gather_scatter_fn_supported_p, passing the offset vector
4805 type recorded in the gs_info.
4806 (vect_truncate_gather_scatter_offset): Update call to
4807 vect_check_gather_scatter, leaving it to search for a valid
4809 (vect_use_strided_gather_scatters_p): Convert the offset to the
4810 element type of the gs_info's offset_vectype.
4811 (vect_get_gather_scatter_ops): Get the offset vector type directly
4813 (vect_get_strided_load_store_ops): Likewise.
4814 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4815 and IFN_MASK_GATHER_LOAD.
4816 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4817 (gather_load<mode><v_int_equiv>): ...this.
4818 (mask_gather_load<mode>): Rename to...
4819 (mask_gather_load<mode><v_int_equiv>): ...this.
4820 (scatter_store<mode>): Rename to...
4821 (scatter_store<mode><v_int_equiv>): ...this.
4822 (mask_scatter_store<mode>): Rename to...
4823 (mask_scatter_store<mode><v_int_equiv>): ...this.
4825 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4828 * config/rs6000/predicates.md
4829 (signed_or_equality_comparison_operator): New predicate.
4830 (unsigned_or_equality_comparison_operator): Likewise.
4831 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4832 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4833 * config/rs6000/vector.md
4834 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4835 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4836 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4837 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4838 vector modes and same-size integer vector modes.
4839 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4840 (vector_lt<mode> for VEC_F): New expand.
4841 (vector_le<mode> for VEC_F): Likewise.
4842 (vector_ne<mode> for VEC_F): Likewise.
4843 (vector_unge<mode> for VEC_F): Likewise.
4844 (vector_ungt<mode> for VEC_F): Likewise.
4845 (vector_unle<mode> for VEC_F): Likewise.
4846 (vector_unlt<mode> for VEC_F): Likewise.
4847 (vector_uneq<mode>): Expose name.
4848 (vector_ltgt<mode>): Likewise.
4849 (vector_unordered<mode>): Likewise.
4850 (vector_ordered<mode>): Likewise.
4852 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4855 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4856 Enhance ix86_expand_vector_init_concat.
4858 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4860 * doc/invoke.texi (-Wold-style-definition): Document () not being
4861 considered an old-style definition for C2x.
4863 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4865 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4867 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4868 insn patterns using ldcw instruction.
4869 (memory_barrier): Remove insn pattern using sync instruction.
4870 * config/pa/pa.opt (coherent-ldcw): New option.
4871 (ordered): New option.
4873 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4875 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4878 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4880 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4881 typo - mistmatch -> mismatch.
4882 * ipa-profile.c (ipa_profile): Likewise.
4883 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4884 - mistmatch -> mismatch.
4886 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4888 * simplify-rtx.c (comparison_to_mask): New function.
4889 (mask_to_comparison): New function.
4890 (simplify_logical_relational_operation): New function.
4891 (simplify_binary_operation_1): Call
4892 simplify_logical_relational_operation.
4894 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4897 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4898 modes for integer constants.
4900 2019-11-07 Jan Hubicka <jh@suse.cz>
4903 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4906 2019-11-07 Jan Hubicka <jh@suse.cz>
4908 * optc-save-gen.awk: Generate cl_target_option_free
4909 and cl_optimization_option_free.
4910 * opth-en.awk: Declare cl_target_option_free
4911 and cl_optimization_option_free.
4912 * tree.c (free_node): Use it.
4914 2019-11-06 Jan Hubicka <jh@suse.cz>
4916 * lto-streamer-in.c: Include alloc-pool.h.
4917 (freeing_string_slot_hasher): Remove.
4918 (string_slot_allocator): New object allocator.
4919 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4920 (file_name_obstack): New obstack.
4921 (canon_file_name): Allocate in obstack and allocator.
4922 (lto_reader_init): Initialize obstack and allocator.
4923 (lto_free_file_name_hash): New function.
4924 * lto-streamer.h (lto_free_file_name_hash): New.
4926 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4928 PR tree-optimization/89134
4929 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
4930 * params.def: Add min-loop-cond-split-prob.
4931 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
4932 outside checks on loop into the function.
4933 (split_info): New class.
4934 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
4935 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
4936 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
4937 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
4938 (stmt_semi_invariant_p, branch_removable_p): Likewise.
4939 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
4940 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
4941 (split_loop_on_cond): Likewise.
4942 (tree_ssa_split_loops): Add loop split on conditional statement.
4944 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
4946 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
4949 2019-11-07 Richard Biener <rguenther@suse.de>
4951 PR tree-optimization/92405
4952 * tree-vect-loop.c (vectorizable_reduction): Appropriately
4953 restrict lane-reducing ops to single stmt chains.
4955 2019-11-07 Martin Jambor <mjambor@suse.cz>
4958 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
4959 * cgraph.h (gimple_check_call_matching_types): Remove
4960 * cgraph.c (gimple_check_call_args): Likewise.
4961 (gimple_check_call_matching_types): Likewise.
4962 (symbol_table::create_edge): Do not call
4963 gimple_check_call_matching_types.
4964 (cgraph_edge::make_direct): Likewise.
4965 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4966 * value-prof.h (check_ic_target): Remove.
4967 * value-prof.c (check_ic_target): Remove.
4968 (gimple_ic_transform): Do nat call check_ic_target.
4969 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
4970 (afdo_indirect_call): Likewise.
4971 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
4972 gimple_check_call_matching_types.
4973 * ipa-inline.c (early_inliner): Likewise.
4975 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4977 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
4978 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
4979 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
4980 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4981 * config/arm/iterators.md (USSAT16): New int_iterator.
4982 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
4984 * config/arm/predicates.md (ssat16_imm): New predicate.
4985 (usat16_imm): Likewise.
4986 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
4988 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4990 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
4992 (arm_<simd32_op>): New define_expands.
4993 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
4994 __smuad, __smuadx): Define.
4995 * config/arm/arm_acle_builtins.def: Define builtins for the above.
4996 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
4997 (SIMD32_BINOP_Q): Likewise.
4998 (simd32_op): Handle the above.
4999 * config/arm/unspecs.md: Define unspecs for the above.
5001 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5003 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5004 * config/arm/arm.md (APSRGE_REGNUM): Define.
5005 (arm_<simd32_op>): New define_insn.
5006 (arm_sel): Likewise.
5007 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5008 (CALL_USED_REGISTERS): Likewise.
5009 (REG_ALLOC_ORDER): Likewise.
5010 (FIRST_PSEUDO_REGISTER): Update value.
5011 (ARM_GE_BITS_READ): Define.
5012 * config/arm/arm.c (arm_conditional_register_usage): Clear
5013 APSRGE_REGNUM from operand_reg_set.
5014 (arm_ge_bits_access): Define.
5015 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5017 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5018 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5019 FAIL if ARM_GE_BITS_READ.
5020 (*arm_add<mode>3): New define_insn.
5021 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5022 (*arm_sub<mode>3): New define_insn.
5023 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5024 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5026 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5027 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5028 (simd32_op): Handle the above.
5029 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5030 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5031 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5032 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5034 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5036 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5037 (arm_smlabb): New define_expand.
5038 (*maddhisi4tb): Rename to...
5039 (maddhisi4tb): ... This.
5040 (*maddhisi4tt): Rename to...
5041 (maddhisi4tt): ... This.
5042 (arm_smlatb_setq): New define_insn.
5043 (arm_smlatb): New define_expand.
5044 (arm_smlatt_setq): New define_insn.
5045 (arm_smlatt): New define_expand.
5046 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5047 (arm_<smlaw_op>): New define_expand.
5048 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5049 __smlawb, __smlawt): Define.
5050 * config/arm_acle_builtins.def: Define builtins for the above.
5051 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5052 (slaw_op): New int_attribute.
5053 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5055 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5057 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5058 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5059 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5060 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5061 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5062 (ss_op): New code_attr.
5064 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5066 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5067 * config/arm/arm.md (APSRQ_REGNUM): Define.
5068 (add_setq): New define_subst.
5069 (add_clobber_q_name): New define_subst_attr.
5070 (add_clobber_q_pred): Likewise.
5071 (maddhisi4): Change to define_expand. Split into mult and add if
5073 (arm_maddhisi4): New define_insn.
5074 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5075 (*maddhisi4tt): Likewise.
5076 (arm_ssat): New define_expand.
5077 (arm_usat): Likewise.
5078 (arm_get_apsr): New define_insn.
5079 (arm_set_apsr): Likewise.
5080 (arm_saturation_occurred): New define_expand.
5081 (arm_set_saturation): Likewise.
5082 (*satsi_<SAT:code>): Rename to...
5083 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5084 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5085 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5086 (CALL_USED_REGISTERS): Mark apsrq.
5087 (FIRST_PSEUDO_REGISTER): Update value.
5088 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5089 (machine_function): Add q_bit_access.
5090 (ARM_Q_BIT_READ): Define.
5091 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5092 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5094 (arm_q_bit_access): Define.
5095 * config/arm/arm-builtins.c: Include stringpool.h.
5096 (arm_sat_binop_imm_qualifiers,
5097 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5098 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5099 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5100 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5101 SET_SAT_QUALIFIERS): Likewise.
5102 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5103 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5104 Handle 0 argument expander.
5105 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5106 (arm_check_builtin_call): Define.
5107 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5108 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5109 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5110 (arm_q_bit_access): Likewise.
5111 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5112 __saturation_occurred, __set_saturation_occurred): Define.
5113 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5114 saturation_occurred, set_saturation_occurred.
5115 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5116 (UNSPEC_APSR_READ): Likewise.
5117 (VUNSPEC_APSR_WRITE): Likewise.
5118 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5119 (*arm_ssadd<mode>3): New define_insn.
5120 (sssub<mode>3): Convert to define_expand.
5121 (*arm_sssub<mode>3): New define_insn.
5122 (ssmulsa3): Convert to define_expand.
5123 (*arm_ssmulsa3): New define_insn.
5124 (usmulusa3): Convert to define_expand.
5125 (*arm_usmulusa3): New define_insn.
5126 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5127 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5128 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5130 2019-11-07 Martin Liska <mliska@suse.cz>
5133 * cgraph.c (delete_function_version): Clear global
5134 variable version_info_node if equal to deleted
5137 2019-11-07 Martin Liska <mliska@suse.cz>
5139 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5140 of CONSTRUCTOR_NO_CLEARING.
5141 (operand_compare::hash_operand): Likewise.
5143 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5145 Support 64-bit double and 64-bit long double configurations.
5148 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5149 --with-long-double=.
5150 * config/avr/t-multilib: Remove.
5151 * config/avr/t-avr: Output of genmultilib.awk is now fully
5152 dynamically generated and no more part of the repo.
5153 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5154 Pass them down to...
5155 * config/avr/genmultilib.awk: ...here and handle them.
5156 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5157 (-mlong-double=, avr_long_double). New option and var.
5158 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5159 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5160 Set default as requested by --with-double=
5161 (TARGET_HANDLE_OPTION): Define to this...
5162 (avr_handle_option): ...new hook worker.
5163 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5164 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5165 (avr_double_lib): New proto for spec function.
5166 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5167 (DRIVER_SELF_SPECS): Call %:double-lib.
5168 * config/avr/avr.c (avr_option_override): Assert
5169 sizeof(long double) >= sizeof(double) for the target.
5170 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5171 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5172 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5173 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5174 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5175 New built-in define depending on --with-double=, --with-long-double=.
5176 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5177 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5178 * doc/install.texi (Cross-Compiler-Specific Options)
5179 <--with-double=, --with-long-double=>: Doc.
5181 2019-11-07 Richard Biener <rguenther@suse.de>
5183 * dbgcnt.def (gimple_unroll): New.
5184 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5185 gimple_unroll debug counter before applying transform.
5186 (try_peel_loop): Likewise.
5188 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5190 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5191 frame pointer in multiple registers.
5192 (ira_setup_eliminable_regset): Setup eliminable_regset,
5193 ira_no_alloc_regs and regs_ever_live for frame pointer in
5196 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5198 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5201 2019-11-06 Jan Hubicka <jh@suse.cz>
5203 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5205 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5206 Do not silently ignore summary corruptions.
5208 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5210 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5211 the epilogue if there are peeled iterations for it to handle.
5213 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5215 * config/arc/arc.c (arc_split_ior): Add asserts.
5216 (arc_split_mov_const): Likewise.
5217 (arc_check_ior_const): Do not match known short immediate values.
5218 * config/arc/arc.md (movsi): Don't split predicated instructions
5221 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5223 * config/arc/arc.opt (mea): Update help string.
5224 * doc/invoke.texi(ARC): Update mea option info.
5226 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5228 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5229 (zero_extendqisi2_ac): Likewise.
5230 (zero_extendhisi2_i): Likewise.
5231 (extendqihi2_i): Likewise.
5232 (extendqisi2_ac): Likewise.
5233 (extendhisi2_i): Likewise.
5235 2019-11-06 Richard Biener <rguenther@suse.de>
5237 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5238 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5239 Simplify single_defuse_cycle condition.
5241 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5243 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5244 epilogue loop, make sure that the VF is small enough or that
5245 the epilogue loop can be fully-masked.
5247 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5249 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5250 loop when we've finished, rather than returning directly from
5251 the loop. Use a local variable to track whether we're still
5252 searching for the preferred simdlen. Make vect_epilogues
5253 record whether the next iteration should try to treat the
5254 loop as an epilogue.
5256 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5258 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5259 __arc_hard_float__, __ARC_HARD_FLOAT__,
5260 __arc_soft_float__, __ARC_SOFT_FLOAT__
5262 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5264 PR tree-optimization/92317
5265 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5266 update phi's with constant phi arguments.
5268 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5269 Alexandre Oliva <oliva@adacore.com>
5271 * common.opt (-fcallgraph-info[=]): New option.
5272 * doc/invoke.texi (Developer options): Document it.
5273 * opts.c (common_handle_option): Handle it.
5274 * builtins.c (expand_builtin_alloca): Record allocation if
5275 -fcallgraph-info=da.
5276 * calls.c (expand_call): If -fcallgraph-info, record the call.
5277 (emit_library_call_value_1): Likewise.
5278 * flag-types.h (enum callgraph_info_type): New type.
5279 * explow.c: Include stringpool.h.
5280 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5281 * function.c (allocate_stack_usage_info): New.
5282 (allocate_struct_function): Call it for -fcallgraph-info.
5283 (prepare_function_start): Call it otherwise.
5284 (record_final_call, record_dynamic_alloc): New.
5285 * function.h (struct callinfo_callee): New.
5286 (CALLEE_FROM_CGRAPH_P): New.
5287 (struct callinfo_dalloc): New.
5288 (struct stack_usage): Add callees and dallocs.
5289 (record_final_call, record_dynamic_alloc): Declare.
5290 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5291 object if -fcallgraph-info=da.
5292 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5293 * print-tree.h (print_decl_identifier): Declare.
5294 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5295 * print-tree.c: Include print-tree.h.
5296 (print_decl_identifier): New function.
5297 * toplev.c: Include print-tree.h.
5298 (callgraph_info_file): New global variable.
5299 (callgraph_info_external_printed): Likewise.
5300 (output_stack_usage): Rename to...
5301 (output_stack_usage_1): ... this. Make it static, add cf
5302 parameter. If -fcallgraph-info=su, print stack usage to cf.
5303 If -fstack-usage, use print_decl_identifier for
5305 (INDIRECT_CALL_NAME): New.
5306 (dump_final_node_vcg_start): New.
5307 (dump_final_callee_vcg, dump_final_node_vcg): New.
5308 (output_stack_usage): New.
5309 (lang_dependent_init): Open and start file if
5310 -fcallgraph-info. Allocated callgraph_info_external_printed.
5311 (finalize): If callgraph_info_file is not null, finish it,
5312 close it, and release callgraph_info_external_printed.
5314 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5315 Frederik Harwath <frederik@codesourcery.com>
5316 Thomas Schwinge <thomas@codesourcery.com>
5318 * omp-low.c (struct omp_context): New fields
5319 local_reduction_clauses, outer_reduction_clauses.
5320 (new_omp_context): Initialize these.
5321 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5322 (scan_omp_for): Check reduction clauses for incorrect nesting.
5324 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5327 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5328 operands with non-memory constraints.
5330 2019-11-05 Martin Sebor <msebor@redhat.com>
5332 PR tree-optimization/92373
5333 * tree.c (component_ref_size): Only consider initializers of objects
5334 of matching struct types.
5335 Return null for instances of interior zero-length arrays.
5337 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5339 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5341 2019-11-05 Jason Merrill <jason@redhat.com>
5343 PR tree-optimization/91825
5344 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5346 2019-11-05 Jim Wilson <jimw@sifive.com>
5349 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5350 optimize_insn_for_speed_p is true.
5352 2019-11-05 Martin Sebor <msebor@redhat.com>
5356 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5358 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5359 name and location for a temporary variable.
5361 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5363 * tree-vrp.c (value_range::value_range): Fix whitespace.
5364 (defined_ranges_p): Same.
5365 (range_fold_binary_symbolics_p): Same.
5366 (value_range::intersect_helper): Same.
5367 (value_range::union_helper): Same.
5368 * tree-vrp.h (range_fold_binary_expr): Same.
5370 2019-11-04 Martin Sebor <msebor@redhat.com>
5374 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5375 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5376 of message printed in a warning for empty arrays.
5377 (vrp_prop::check_mem_ref): Also handle function parameters and
5380 2019-11-05 Richard Biener <rguenther@suse.de>
5382 PR tree-optimization/92371
5383 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5384 on the original stmt of live stmts in the chain.
5385 (vectorizable_live_operation): Look at the original stmt when
5386 checking STMT_VINFO_REDUC_DEF.
5388 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5390 * gimple-fold.c, gimple-loop-versioning.cc,
5391 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5392 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5393 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5394 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5395 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5396 value_range_equiv, and value_range_base to value_range.
5398 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5400 * expr.c (build_personality_function): Fix generated type to
5401 match actual personality functions.
5403 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5405 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5406 enough bytes for the NULL character.
5408 2019-11-05 Richard Biener <rguenther@suse.de>
5410 PR tree-optimization/92280
5411 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5412 had a single use do not create a new CTOR.
5413 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5414 BIT_FIELD_REF of a CTOR via GENERIC.
5416 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5418 * config/s390/s390.c (s390_vector_alignment): Check if the value
5419 fits into uhwi before using it.
5421 2019-11-05 Martin Liska <mliska@suse.cz>
5423 * symbol-summary.h: Use ggc_delete.
5425 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5427 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5428 Change vec_perm field to 10.
5430 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5432 * doc/install.texi: Further fix syntax for html generation.
5434 2019-11-05 Martin Liska <mliska@suse.cz>
5436 * symbol-summary.h: Rename allocator to m_allocator and
5439 2019-11-05 Richard Biener <rguenther@suse.de>
5441 PR tree-optimization/92324
5442 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5443 all signed or unsigned operations.
5445 2019-11-05 Jan Hubicka <jh@suse.cz>
5447 * hsa-brig.c: Include alloc-pool.h
5448 * hsa-dump.c: Likewise.
5449 * hsa-gen.c: Likewise.
5450 * hse-regalloc.c: Likewise.
5451 * ipa-hsa.c: Likewise.
5452 * ipa-predicate.c: Likewise.
5453 * ipa-reference.c: Likewise.
5454 * ipa-sra.c: Likewise.
5455 * omp-expand.c: Likewise.
5456 * omp-general.c: Likewise.
5457 * omp-low.c: Likewise.
5458 * sumbol-summary.h (function_summary_base): Add allocator.
5459 (function_summary<T *>::function_summary): Update construction.
5460 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5461 (call_summary_base): Add allcator.
5462 (call_summary<T *>::call_summary): Update construction.
5463 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5465 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5467 PR tree-optimization/91945
5468 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5469 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5472 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5474 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5475 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5476 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5477 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5478 (vrp_set_zero_nonzero_bits): Move to...
5479 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5480 (vr_values::simplify_bit_ops_using_ranges): Rename
5481 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5483 2019-11-05 Martin Liska <mliska@suse.cz>
5486 * fold-const.c (operand_compare::hash_operand): Remove
5487 FIELD_DECL handling.
5489 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5491 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5492 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5495 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5497 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5498 properly handle symbolics.
5499 (range_compatible_p): Remove.
5501 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5503 * common.opt (-fabi-version): Document =14.
5504 * doc/invoke.texi (C++ Dialect Options): Likewise.
5506 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5508 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5510 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5512 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5513 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5514 gcn_omp_device_kind_arch_isa.
5515 * config/gcn/t-omp-device: New file.
5516 * configure.ac: Support gcn for omp_device_property.
5517 * configure: Regenerate.
5519 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5521 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5522 (vrp_val_max): Same.
5523 (vrp_val_is_min): Same.
5524 (vrp_val_is_max): Same.
5525 (value_range_base::nonzero_p): Remove last argument to
5527 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5528 (vrp_val_max): Same.
5529 (vrp_val_is_min): Same.
5530 (vrp_val_is_max): Same.
5531 (value_range_base::set_varying): Remove last argument to vrp_val*.
5532 (value_range_base::dump): Same.
5533 (value_range_base::set): Same.
5534 (value_range_base::normalize_symbolics): Same.
5535 (value_range_base::num_pairs): Same.
5536 (value_range_base::lower_bound): Same.
5537 (value_range_base::upper_bound): Same.
5538 (ranges_from_anti_range): Remove handle_pointers argument.
5539 (value_range_base::singleton_p): Remove last argument to
5540 ranges_from_anti_range.
5542 2019-11-04 Jan Hubicka <jh@suse.cz>
5544 * ipa-reference.c (init_function_info): Initialize
5545 info->global.statics_read.
5547 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5549 * tree-vrp.c (value_range_base::invert): Use constructors to build
5552 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5554 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5555 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5557 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5559 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5562 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5564 * tree-vrp.c (dump_assert_info): New.
5565 (dump_asserts_info): New.
5567 2019-11-04 Jan Hubicka <jh@suse.cz>
5569 * ipa-inline-transform.c: Include ipa-utils.h
5570 (inline_call): Set thunk_expansion flag.
5571 * ipa-utils.h (thunk_expansion): Declare.
5572 * ipa-devirt.c (thunk_expansion): New global var.
5573 (devirt_node_removal_hook): Do not invalidate cache while
5574 doing thunk expansion.
5576 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5578 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5580 2019-11-04 Martin Sebor <msebor@redhat.com>
5582 PR tree-optimization/92349
5583 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5584 memebers have constant sizes.
5586 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5588 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5590 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5591 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5594 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5596 * expr.c (store_constructor): Modify to handle single element vectors.
5597 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5599 (vect_slp_check_for_constructors): New function.
5600 (vect_slp_analyze_bb_1): Call new function to check for vector
5602 (vectorize_slp_instance_root_stmt): New function.
5603 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5605 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5607 2019-11-04 Richard Biener <rguenther@suse.de>
5609 PR tree-optimization/92345
5610 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5611 we produced a reduction chain.
5612 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5613 LOOP_VINFO_REDUCTIONS.
5615 2019-11-04 Jan Hubicka <jh@suse.cz>
5617 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5618 duplicate summaries.
5619 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5621 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5622 access call summaries.
5623 (dump_ipa_call_summary): Be ready for missing edge summaries.
5624 (analyze_function_body): Use get instead of get_create to access
5626 (estimate_calls_size_and_time): Do not access summaries of
5627 inlined edges; sanity check they are missing.
5628 (ipa_call_context::estimate_size_and_time): Use get instead
5629 of get_create to access node summary.
5630 (inline_update_callee_summaries): Do not update depth of
5632 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5634 (ipa_merge_fn_summary_after_inlining): Use get instead
5636 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5637 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5639 (initialize_growth_caches): Update.
5640 (do_estimate_edge_time): Remove redundant copy of context.
5641 (ipa_remove_from_growth_caches): New function.
5642 * ipa-inline.c (flatten_function): Update overall summary
5643 only when optimizing.
5644 (inline_to_all_callers): Update overall summary of function
5646 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5647 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5650 2019-11-04 Richard Biener <rguenther@suse.de>
5652 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5653 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5655 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5657 * ggc-common.c: Include system.h before malloc.h.
5659 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5661 * configure.ac: Pass --enable-obsolete=* and
5662 --enable-option-checking=* down to build configure, and fail
5663 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5664 * configure: Rebuild.
5665 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5666 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5668 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5670 * config.in: Regenerate.
5671 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5672 -mtiny-printf is used without GCC being configured with
5673 --enable-newlib-nano-formatted-io.
5674 * config/msp430/msp430.h (LINK_SPEC): Pass
5675 "--wrap puts --wrap printf" when -mtiny-printf is used.
5676 * config/msp430/msp430.opt: Document -mtiny-printf.
5677 * configure: Regenerate.
5678 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5679 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5680 --enable-newlib-nano-formatted-io is passed.
5681 * doc/invoke.texi: Document -mtiny-printf.
5683 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5685 * configure: Regenerate.
5687 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5689 * config/msp430/driver-msp430.c
5690 (msp430_get_linker_devices_include_path): New spec function.
5691 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5692 (extract_devices_dir_from_exec_prefix): New function.
5693 (extract_devices_dir_from_collect_gcc): New function.
5694 (msp430_check_env_var_for_devices): New function.
5695 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5696 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5697 devices.csv was not found using other methods.
5698 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5700 (msp430_dirname): Likewise.
5701 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5702 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5703 msp430_get_linker_devices_include_path.
5704 (TARGET_EXTRA_PRE_INCLUDES): Define.
5705 * doc/invoke.texi: Document new ways of searching for support files.
5707 2019-11-04 Richard Biener <rguenther@suse.de>
5709 PR tree-optimization/92301
5710 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5711 as required by epilogue generation
5713 2019-11-04 Martin Liska <mliska@suse.cz>
5716 * fold-const.c (operand_compare::hash_operand): Fix field
5717 hashing of CONSTRUCTOR.
5719 2019-11-04 Martin Liska <mliska@suse.cz>
5721 * ggc.h (ggc_delete): New function.
5722 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5723 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5724 (ipa_free_all_node_params): Likewise.
5725 * ipa-sra.c (ipa_sra_analysis): Likewise.
5727 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5729 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5730 set_switch_stmt_execution_predicate, compute_bb_predicates,
5731 will_be_nonconstant_expr_predicate,
5732 phi_result_unknown_predicate,
5733 analyze_function_body): Pass arround params summary.
5734 (ipa_call_context::duplicate_from): New comment;
5735 only duplicate useful values.
5736 (ipa_call_context::equal_to): Only compare useful values.
5737 (remap_edge_summaries): Pass params_summary.
5738 (remap_hint_predicate): Likewise.
5739 (ipa_merge_fn_summary_after_inlining): Likewise.
5740 (inline_read_section): Initialize params summary used flags.
5741 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5742 around param_summary.
5743 (add_condition): Initialized used params summary flags.
5744 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5745 (inline_param_summary::useless_p): New predicate.
5746 (remap_after_inlining, add_condition): Update prototype
5747 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5749 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5751 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5752 (ipa_analyze_virtual_call_uses): Likewise.
5753 (update_indirect_edges_after_inlining): Update param summaries.
5754 (ipa_print_node_params): Print used flags.
5755 (ipa_read_indirect_edge_info): Update param summareis.
5756 * ipa-prop.h (ipa_param_descriptor): Add
5757 used_by_ipa_predicates, used_by_indirect_call
5758 and used_by_polymorphic_call.
5759 (ipa_set_param_used_by_ipa_predicates,
5760 ipa_set_param_used_by_indirect_call,
5761 ipa_set_param_used_by_polymorphic_call,
5762 ipa_is_param_used_by_ipa_predicates,
5763 ipa_is_param_used_by_indirect_call,
5764 ipa_is_param_used_by_polymorphic_call): New inline functions.
5766 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5768 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5770 (ipa_call_context::release): Add ALL parameter.
5771 (ipa_call_context::equal_to): New member function.
5772 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5773 duplicate_form, release, equal_to and exists_p member functoins.
5774 * ipa-inline-analysis.c (node_context_cache_entry): New
5776 (node_context_summary): Likewise.
5777 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5778 node_context_clear): New static vars.
5779 (initialize_growth_caches): New function.
5780 (free_growth_caches): Also delete node_context_cache; output stats.
5781 (do_estimate_edge_time): Cache contexts.
5782 (reset_node_cache): New function.
5783 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5784 (inline_small_functions): Initialize growth caches.
5785 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5787 * ipa-predicate.h (inline_param_summary::equal_to): New.
5788 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5789 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5790 (ipa_agg_jump_function): Implement equal_to member function.
5792 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5794 * ipa-fnsummary.c (inline_read_section): Set vector size
5797 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5799 * ipa-fnsummary.c (ipa_call_context): New constructor.
5800 (estimate_node_size_and_time): Turn to ...
5801 (ipa_call_context::estimate_size_and_time): ... this one.
5802 (ipa_call_context::release): New.
5803 * ipa-fnsummary.h (ipa_call_context): New class.
5804 (estimate_node_size_and_time): Remove.
5805 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5806 do_estimate_edge_hints): Update.
5808 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5810 * config.in: Regenerate.
5811 * configure: Regenerate.
5812 * configure.ac: Check for mallinfo.
5813 * ggc-common.c: Include malloc.h if available;
5815 (report_heap_memory_use): New functoin.
5816 * ggc-page.c (ggc_grow): Do not print "start".
5817 * ggc.h (report_heap_memory_use): Declare.
5818 * pases.c (execute_one_pass): Report memory after IPA passes.
5819 (ipa_read_summaries_1): Likewise.
5820 (ipa_read_optimization_summaries_1): Likewise.
5822 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5824 * gimplify.h (omp_construct_selector_matches): Change return
5825 type to int, add a new SCORES argument.
5826 * gimplify.c (omp_construct_selector_matches): Likewise. If
5827 SCORES is non-NULL, compute scores of each construct.
5828 * omp-general.h (omp_get_context_selector): Declare.
5829 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5830 Adjust omp_construct_selector_matches callers.
5831 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5832 (omp_context_compute_score): New function.
5833 (omp_resolve_declare_variant): Compute scores and decide based on
5837 * configure.ac: Don't look for omp-device-properties files from
5838 installed offloading compilers. Instead add tmake_file snippets
5839 for configured offloading targets and use files they generate.
5840 * Makefile.in (install): Don't depend on
5841 install-omp-device-properties.
5842 (install-omp-device-properties): Remove goal.
5843 * config/i386/t-omp-device: New file.
5844 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5845 * config/nvptx/t-omp-device: New file.
5846 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5847 * configure: Regenerated.
5849 * omp-general.h (omp_context_selector_set_compare): Declare.
5850 * omp-general.c (omp_construct_simd_compare,
5851 omp_context_selector_props_compare, omp_context_selector_set_compare,
5852 omp_context_selector_compare): New functions.
5853 (omp_resolve_declare_variant): Prune variants that are strict subset
5856 2019-11-01 Martin Sebor <msebor@redhat.com>
5862 * doc/invoke.texi (-Wzero-length-bounds): Document.
5863 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5864 instead of a hand-rolled loop to avoid PR 92323.
5865 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5867 (vrp_prop::check_mem_ref): Handle declared struct objects.
5868 * tree.c (last_field): New function.
5869 (array_at_struct_end_p): Handle MEM_REF.
5870 (get_initializer_for): New helper.
5871 (component_ref_size): Add argument. Rename locals. Call
5872 get_initializer_for instead of fold_ctor_reference. Correct handling
5873 of flexible array members.
5874 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5876 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5878 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5879 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5880 UNSPEC_VSX_CVSPUXDS): Remove.
5881 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5882 (vsx_xvcvspdp_be): ... this. New. And...
5883 (vsx_xvcvspdp_le): ... this. New.
5884 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5885 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5886 (vsx_xvcv<su>xwdp_le): ... this. New.
5887 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5888 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5889 (vsx_xvcvsp<su>xds_le): ... this. New.
5891 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5893 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5894 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5895 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5896 UNSPEC_VSX_XVCVSPSXWS): Remove.
5897 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5898 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5900 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5902 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5903 (UNSPEC_VSX_XVCDPSP): Remove.
5904 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5905 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5907 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5909 * hooks.c (hook_tree_tree_bool_null): New.
5910 * hooks.h (hook_tree_tree_bool_null): Declare.
5911 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5912 (LANG_HOOKS_DECLS): Add it.
5913 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5914 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5915 (lower_omp_target): Handle Fortran array with descriptor in
5916 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5918 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5920 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5921 Assert that the type we store in abi_vector_types is its own
5923 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5925 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5927 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5928 from a CONST_INT address when TARGET_THUMB2.
5930 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5932 * config/arm/arm.md (add_not_cin): New insn.
5933 (add_not_shift_cin): Likewise.
5935 2019-10-31 Martin Liska <mliska@suse.cz>
5937 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
5938 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
5939 and compare_memory_operand.
5941 2019-10-31 Jakub Jelinek <jakub@redhat.com>
5943 * configure.ac: Compute and substitute omp_device_properties and
5944 omp_device_property_deps.
5945 * Makefile.in (generated_files): Add omp-device-properties.h.
5946 (omp-general.o): Depend on omp-device-properties.h.
5947 (omp_device_properties): New make variable.
5948 (omp-device-properties.h, s-omp-device-properties-h,
5949 install-omp-device-properties): New goals.
5950 (install): Depend on install-omp-device-properties for accelerators.
5951 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
5952 * target.h (enum omp_device_kind_arch_isa): New enum.
5953 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
5955 * omp-general.c: Include omp-device-properties.h.
5956 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
5957 colon instead of comma.
5958 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
5960 (omp_context_selector_matches): Implement device set arch/isa
5961 selectors, improve device set kind selector handling.
5962 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
5963 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
5964 TARGET_SIMD_CLONE_USABLE): Formatting fix.
5965 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5966 ix86_omp_device_kind_arch_isa.
5967 * config/i386/i386-options.c (struct ix86_target_opts): Move type
5968 definition from ix86_target_string to file scope.
5969 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
5971 (ix86_omp_device_kind_arch_isa): New function.
5972 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
5973 isa_opts definitions to file scope.
5974 * config/i386/t-intelmic (omp-device-properties): New goal.
5975 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
5976 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
5977 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5978 nvptx_omp_device_kind_arch_isa.
5979 * configure: Regenerate.
5980 * doc/tm.texi: Regenerate.
5983 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
5984 DECL_BUILT_IN in comment. Remove redundant ()s around return
5986 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
5987 before calling fndecl_built_in_p.
5988 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
5989 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
5990 fndecl_built_in_p on it.
5992 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
5994 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
5996 2019-10-31 Martin Liska <mliska@suse.cz>
5998 * config/arm/arm.c (arm_get_pcs_model): Remove usage
5999 of cgraph_local_info and use local_info_node instead.
6000 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6001 (bfin_function_ok_for_sibcall): Likewise.
6002 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6003 (must_reload_pic_reg_p): Likewise.
6005 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6008 * tree.h (type_initializer_zero_p): Remove.
6009 * tree.c (type_initializer_zero_p): Remove.
6011 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6013 * doc/invoke.texi (-Wshadow, -Wshadow=global
6014 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6016 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6018 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6019 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6020 and 'target exit data'.
6022 2019-10-30 Martin Jambor <mjambor@suse.cz>
6025 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6026 availability comparison.
6028 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6030 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6031 calls to __mspabi_mpy* functions.
6032 * config/msp430/msp430.md (mulhisi3): New define_expand.
6033 (umulhisi3): New define_expand.
6034 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6035 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6037 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6039 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6040 (msp430_check_plus_not_high_mem): New.
6041 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6042 might be in low memory.
6043 Indicate that a 16-bit absolute address is in lower memory.
6045 2019-10-30 Martin Jambor <mjambor@suse.cz>
6047 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6048 ultimate_alias_target.
6050 2019-10-30 Richard Biener <rguenther@suse.de>
6052 PR tree-optimization/92275
6053 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6054 Copy all loop-closed PHIs.
6056 2019-10-30 Martin Liska <mliska@suse.cz>
6058 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6059 const_tree as function argument.
6060 (func_checker::compare_decl): Likewise.
6061 (func_checker::operand_equal_p): Likewise.
6062 (func_checker::compare_variable_decl): Likewise.
6063 (func_checker::parse_labels): Likewise.
6064 * ipa-icf-gimple.h: Likewise.
6066 2019-10-30 Martin Liska <mliska@suse.cz>
6068 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6069 Do not compare alias sets. It's handled by operand_equal_p.
6071 2019-10-30 Martin Liska <mliska@suse.cz>
6073 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6074 initialize m_compare_polymorphic.
6075 (func_checker::compare_decl): Do not compare polymorphic types.
6076 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6077 * ipa-icf.c (sem_function::equals_private): Do not call
6078 compare_polymorphic_p.
6080 2019-10-30 Martin Liska <mliska@suse.cz>
6082 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6084 (func_checker::compare_memory_operand): Remove.
6085 (func_checker::compare_cst_or_decl): Remove.
6086 (func_checker::operand_equal_valueize): Do not handle
6088 (func_checker::compare_gimple_call): Call compare_operand.
6089 (func_checker::compare_gimple_assign): Likewise.
6090 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6091 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6092 * ipa-icf.h (icf_handled_component_p): Remove.
6094 2019-10-30 Martin Liska <mliska@suse.cz>
6096 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6097 (func_checker::compare_cst_or_decl): Remove handling
6099 (func_checker::compare_operand): Transform to ...
6100 (func_checker::operand_equal_p): ... this.
6101 * ipa-icf-gimple.h (class func_checker): Add
6102 operand_equal_p and hash_operand.
6103 * ipa-icf.c (sem_function::equals_private): Fix
6104 pushing and popping of cfun.
6106 2019-10-30 Martin Liska <mliska@suse.cz>
6108 * fold-const.c (operand_equal_p): Move to ...
6109 (operand_compare::operand_equal_p): ... here.
6110 (operand_compare::verify_hash_value): New.
6111 (add_expr): Move to ...
6112 (operand_compare::hash_operand): ... here.
6113 * fold-const.h (operand_equal_p): Move to the class.
6114 (class operand_compare): New.
6115 * tree.c (add_expr): Remove.
6117 2019-10-30 Martin Liska <mliska@suse.cz>
6119 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6120 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6122 2019-10-30 Martin Liska <mliska@suse.cz>
6126 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6127 from a first_clone in order to get proper LTO section
6129 (cgraph_node::get_untransformed_body):
6130 Use lto_get_section_data where symtab_node::order
6132 * cgraphclones.c (cgraph_node::find_replacement):
6133 Update also symbol order.
6134 * ipa-fnsummary.c (ipa_fn_summary_read):
6135 Use new function lto_get_summary_section_data.
6136 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6137 * ipa-icf.c (sem_item_optimizer::read_summary):
6139 * ipa-prop.c (ipa_prop_read_jump_functions):
6141 (ipcp_read_transformation_summaries): Likewise.
6142 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6143 * lto-cgraph.c (input_node): Add also order_base.
6144 (input_varpool_node): Likewise.
6145 (input_cgraph_1): Assign the order_base.
6146 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6147 * lto-opts.c (lto_write_options): Pass new argument.
6148 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6149 (lto_get_summary_section_data): New.
6150 (lto_get_raw_section_data): Add order argument.
6151 (lto_create_simple_input_block): Likewise.
6152 * lto-section-out.c (lto_destroy_simple_output_block):
6154 * lto-streamer-in.c (lto_input_toplevel_asms):
6155 Use lto_get_summary_section_data.
6156 (lto_input_mode_table): Likewise.
6157 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6158 (lto_output_toplevel_asms): Pass new argument.
6159 (copy_function_or_variable): Likewise.
6160 (produce_lto_section):Likewise.
6161 (produce_symtab): Likewise.
6162 (lto_write_mode_table): Likewise.
6163 (produce_asm_for_decls): Likewise.
6164 * lto-streamer.c (lto_get_section_name): Concat symbol name
6166 * lto-streamer.h (lto_get_section_data): Add order argument.
6167 (lto_get_summary_section_data): New.
6168 (lto_get_raw_section_data): Add order argument.
6169 (lto_get_section_name): Likewise.
6170 * varpool.c (varpool_node::get_constructor): Pass order argument.
6172 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6174 PR tree-optimization/92262
6175 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6176 ubase or cbase here.
6177 (remove_unused_ivs): Unshare comp before using it.
6179 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6181 * ipa-prop.c (update_jump_functions_after_inlining):
6182 Watch for missing summaries.
6184 2019-10-30 Richard Biener <rguenther@suse.de>
6186 PR tree-optimization/65930
6187 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6188 chains also allow a leading and trailing conversion.
6189 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6190 intermediate reduction chains.
6191 (vect_analyze_slp_instance): Likewise. Build a SLP
6192 node for a trailing conversion manually.
6194 2019-10-30 Martin Liska <mliska@suse.cz>
6196 * cgraph.c (cgraph_node::local_info): Transform to ...
6197 (cgraph_node::local_info_node): ... this.
6198 (cgraph_node::dump): Remove cgraph_local_info and
6199 put its fields directly into cgraph_node.
6200 (cgraph_node::get_availability): Likewise.
6201 (cgraph_node::make_local): Likewise.
6202 (cgraph_node::verify_node): Likewise.
6203 * cgraph.h (struct GTY): Likewise.
6204 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6205 (duplicate_thunk_for_node): Likewise.
6206 (cgraph_node::create_clone): Likewise.
6207 (cgraph_node::create_virtual_clone): Likewise.
6208 (cgraph_node::create_version_clone): Likewise.
6209 * cgraphunit.c (cgraph_node::reset): Likewise.
6210 (cgraph_node::finalize_function): Likewise.
6211 (cgraph_node::add_new_function): Likewise.
6212 (analyze_functions): Likewise.
6213 * combine.c (setup_incoming_promotions): Likewise.
6214 * config/i386/i386.c (ix86_function_regparm): Likewise.
6215 (ix86_function_sseregparm): Likewise.
6216 (init_cumulative_args): Likewise.
6217 * ipa-cp.c (determine_versionability): Likewise.
6218 (count_callers): Likewise.
6219 (set_single_call_flag): Likewise.
6220 (initialize_node_lattices): Likewise.
6221 (estimate_local_effects): Likewise.
6222 (create_specialized_node): Likewise.
6223 (identify_dead_nodes): Likewise.
6224 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6225 (ipa_fn_summary_generate): Likewise.
6226 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6227 (process_hsa_functions): Likewise.
6228 * ipa-icf.c (set_local): Likewise.
6229 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6230 * ipa-inline.c (speculation_useful_p): Likewise.
6231 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6232 (ipa_profile): Likewise.
6233 * ipa-split.c (split_function): Likewise.
6234 (execute_split_functions): Likewise.
6235 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6236 (ipa_sra_ipa_function_checks): Likewise.
6237 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6238 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6239 * lto-cgraph.c (lto_output_node): Likewise.
6240 (input_overwrite_node): Likewise.
6241 * multiple_target.c (expand_target_clones): Likewise.
6242 * omp-simd-clone.c (simd_clone_create): Likewise.
6243 * trans-mem.c (expand_call_tm): Likewise.
6244 (ipa_tm_mayenterirr_function): Likewise.
6245 (ipa_tm_diagnose_tm_safe): Likewise.
6246 (ipa_tm_diagnose_transaction): Likewise.
6247 (ipa_tm_create_version): Likewise.
6248 (ipa_tm_transform_calls_redirect): Likewise.
6249 (ipa_tm_execute): Likewise.
6250 * tree-inline.c (expand_call_inline): Likewise.
6252 2019-10-29 Martin Liska <mliska@suse.cz>
6254 * symbol-summary.h (function_summary): Pass memory location
6255 to underlaying hash_map (or vec).
6256 (V>::fast_function_summary): Likewise.
6258 2019-10-29 Martin Liska <mliska@suse.cz>
6260 * ggc.h (ggc_alloc_no_dtor): New function.
6261 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6262 destructor and ggc_free.
6263 (ipa_free_size_summary): Call delete instead
6265 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6266 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6267 (ipa_free_all_edge_args): Call destructor and ggc_free.
6268 (ipa_free_all_node_params): Likewise.
6269 (ipcp_free_transformation_sum): Likewise.
6270 * ipa-prop.h (ipa_check_create_node_params):
6271 Call new ggc_alloc_no_dtor.
6272 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6273 (ipa_sra_analysis): Call destructor and ggc_free.
6274 Replace release with delete operator.
6275 * symbol-summary.h (release): Remove ..
6276 (V>::~fast_function_summary): and move logic here.
6277 Likewise for other classes.
6279 2019-10-29 Richard Biener <rguenther@suse.de>
6281 PR tree-optimization/92260
6282 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6285 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6287 PR tree-optimization/88915
6288 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6289 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6290 and make the valueize function pointer also take a void pointer.
6291 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6292 around vn_valueize, to call it without a context.
6293 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6294 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6295 (~_loop_vec_info): Release epilogue_vinfos.
6296 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6297 number of iterations of epilogue.
6298 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6299 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6300 versioning threshold needed for main loop.
6301 (vect_analyze_loop): Likewise.
6302 (find_in_mapping): New helper function.
6303 (update_epilogue_loop_vinfo): New function.
6304 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6305 on main loop and call update_epilogue_loop_vinfo to update it.
6306 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6307 stmts on loop preheader edge.
6308 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6309 we decided to vectorize epilogues. Update epilogues NITERS and
6310 construct ADVANCE to update epilogues data references where needed.
6311 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6312 (vect_do_peeling, vect_update_inits_of_drs,
6313 determine_peel_for_niter, vect_analyze_loop): Add or update
6315 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6316 created loop_vec_info's for epilogues when available. Otherwise analyse
6317 epilogue separately.
6319 2019-10-29 Richard Biener <rguenther@suse.de>
6321 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6324 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6326 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6327 index for the COND_EXPR from stmt_info rather than reduc_info.
6329 2019-10-29 Richard Biener <rguenther@suse.de>
6331 PR tree-optimization/65930
6332 * tree-vect-loop.c (check_reduction_path): Relax single-use
6333 check allowing out-of-loop uses.
6334 (vect_is_simple_reduction): SLP reduction chains cannot have
6335 intermediate stmts used outside of the loop.
6336 (vect_create_epilog_for_reduction): The adjustment might need
6338 (vectorizable_reduction): Annotate live stmts of the reduction
6339 chain with STMT_VINFO_REDUC_DEF.
6340 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6342 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6344 * calls.c (pass_by_reference): Leave the target to decide whether
6345 POLY_INT_CST-sized arguments should be passed by value or reference,
6346 rather than forcing them to be passed by reference.
6347 (must_pass_in_stack_var_size): Likewise.
6348 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6349 V31_REGNUM to P15_REGNUM.
6350 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6351 Take an extra "silent_p" parameter, defaulting to false.
6352 (aarch64_sve::svbool_type_p): Declare.
6353 (aarch64_sve::nvectors_if_data_type): Likewise.
6354 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6355 (aarch64_frame::reg_offset): Turn into poly_int64s.
6356 (aarch64_frame::save_regs_size): Likewise.
6357 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6358 (aarch64_frame::sve_callee_adjust): Likewise.
6359 (aarch64_frame::spare_reg_reg): Likewise.
6360 (ARM_PCS_SVE): New arm_pcs value.
6361 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6362 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6363 (CUMULATIVE_ARGS::silent_p): Likewise.
6364 (BITS_PER_SVE_PRED): New macro.
6365 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6366 function. Reject aarch64_vector_pcs attributes on SVE functions.
6367 (aarch64_attribute_table): Use the above handler.
6368 (aarch64_sve_abi): New function.
6369 (aarch64_sve_argument_p): Likewise.
6370 (aarch64_returns_value_in_sve_regs_p): Likewise.
6371 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6372 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6373 descriptor for them.
6374 (aarch64_simd_decl_p): Delete.
6375 (aarch64_emit_cfi_for_reg_p): New function.
6376 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6377 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6378 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6379 as partly clobbered for the SVE PCS.
6380 (aarch64_function_ok_for_sibcall): Check whether the two functions
6381 use the same ABI, rather than checking specifically for whether
6382 they're aarch64_vector_pcs functions.
6383 (aarch64_pass_by_reference): Raise an error for attempts to pass
6384 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6385 if there are not enough free registers left, or if the argument is
6387 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6388 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6390 (aarch64_layout_arg): Take a function_arg_info rather than
6391 individual properties. Handle SVE predicates, vectors and tuples.
6392 Raise an error if they are passed to unprototyped functions.
6393 (aarch64_function_arg): If the silent_p flag is set, suppress the
6394 usual error about using float registers without TARGET_FLOAT.
6395 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6396 it in the cumulative_args structure. Initialize aapcs_nprn and
6397 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6398 error about using float registers without TARGET_FLOAT.
6399 If the silent_p flag is not set, also raise an error about
6400 using SVE functions when SVE is disabled.
6401 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6402 and call it for SVE functions too. Update aapcs_nprn similarly
6403 to the other register counts.
6404 (aarch64_layout_frame): If a big-endian function needs to save
6405 and restore Z8-Z15, search for a spare predicate that it can use.
6406 Store SVE predicates at the bottom of the register save area,
6407 followed by SVE vectors, then followed by the normal slots.
6408 Keep pointing the hard frame pointer at the base of the normal slots,
6409 above the SVE vectors. Update the various frame creation and
6410 tear-down strategies for the new layout, initializing the new
6411 sve_callee_adjust field. Add an additional layout for frames
6412 whose saved registers are all SVE registers.
6413 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6414 (aarch64_return_address_signing_enabled): Likewise.
6415 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6416 aarch64_reg_save_mode.
6417 (aarch64_adjust_sve_callee_save_base): New function.
6418 (aarch64_add_cfa_expression): Move earlier in file. Take the
6419 saved register as an rtx rather than a register number and use
6420 its mode for the MEM slot.
6421 (aarch64_save_callee_saves): Remove the mode argument and instead
6422 use aarch64_reg_save_mode to get the mode of each save slot.
6423 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6424 offsets. Allow GP offsets to be saved at a VL-based offset from
6425 the stack, handling this case using the frame pointer if available
6426 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6427 big-endian SVE functions; use normal moves for other SVE saves.
6428 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6429 returns true. Add explicit CFA notes when not storing via the
6430 stack pointer. Do not try to pair SVE saves.
6431 (aarch64_restore_callee_saves): Cope with poly_int64 register
6432 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6433 use normal moves for other SVE restores. Only add CFA restore notes
6434 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6436 (aarch64_get_separate_components): Always keep the first SVE save
6437 in the prologue if we need to use it as a stack probe. Don't allow
6438 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6439 Likewise the spare predicate register that they need. Update the
6440 offset calculation to account for the SVE save area. Use the
6441 appropriate range check for SVE LDR and STR instructions.
6442 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6443 (aarch64_process_components): Likewise. Update the offset
6444 calculation to account for the SVE save area. Only mark the
6445 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6446 Do not try to pair SVE saves.
6447 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6448 reg_offsets. When handling the final allocation, expect the
6449 first SVE register save to be part of the initial allocation
6450 and for it to act as a probe at SP. Account for the SVE callee
6451 save area in the dump information.
6452 (aarch64_expand_prologue): Update the frame diagram. Fold the
6453 SVE callee allocation into the initial allocation if stack clash
6454 protection is enabled. Use new variables to track the offset
6455 of the frame chain (and hard frame pointer) from the current
6456 stack pointer, and likewise the offset of the bottom of the
6457 register save area. Update calls to aarch64_save_callee_saves
6458 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6459 saving the FP&SIMD registers. Save the predicate registers.
6460 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6461 into account when setting the stack pointer from the frame pointer,
6462 and when deciding whether we can inherit the initial adjustment
6463 amount from the prologue. Restore the predicate registers after
6464 the vector registers, then apply sve_callee_adjust, then restore
6465 the general registers.
6466 (aarch64_secondary_reload): Don't use secondary SVE reloads
6468 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6469 (aarch64_short_vector_p): Return false for SVE types.
6470 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6471 at the start of the function. Return false for SVE types.
6472 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6474 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6475 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6476 to big-endian targets for bytewise moves.
6477 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6479 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6480 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6481 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6483 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6484 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6485 aarch64-sve-builtins-base.o to extra_objs. Add
6486 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6487 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6488 (aarch64-sve-builtins-shapes.o): Likewise.
6489 (aarch64-sve-builtins-base.o): New rules.
6490 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6491 (aarch64_resolve_overloaded_builtin): Likewise.
6492 (aarch64_check_builtin_call): Likewise.
6493 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6494 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6496 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6497 (aarch64_svprfop): New enum.
6498 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6499 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6500 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6501 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6502 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6503 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6504 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6505 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6506 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6507 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6508 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6509 (aarch64_sve::mangle_builtin_type): Likewise.
6510 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6511 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6512 (aarch64_sve::expand_builtin): Likewise.
6513 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6514 (aarch64_sve_int_mode): Likewise.
6515 (aarch64_ptrue_all_mode): New function.
6516 (aarch64_convert_sve_data_to_pred): Make public.
6517 (svprfop_token): New function.
6518 (aarch64_output_sve_prefetch): Likewise.
6519 (aarch64_fold_sve_cnt_pat): Likewise.
6520 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6521 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6522 instead of gen_while_ult.
6523 (aarch64_replace_reg_mode): Make public.
6524 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6525 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6526 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6527 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6528 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6529 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6530 (aarch64_sve_ptrue_svpattern_p): Likewise.
6531 (aarch64_sve_pred_valid_immediate): Check
6532 aarch64_sve_ptrue_svpattern_p.
6533 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6534 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6536 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6537 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6538 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6539 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6540 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6541 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6543 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6544 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6545 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6546 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6547 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6548 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6549 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6550 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6551 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6552 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6553 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6554 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6555 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6556 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6557 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6558 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6559 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6560 (Vesize): Handle partial vector modes.
6561 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6563 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6565 (s, paired_extend, inc_dec): New code attributes.
6566 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6567 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6568 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6569 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6570 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6571 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6573 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6574 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6575 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6576 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6577 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6578 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6579 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6580 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6581 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6582 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6583 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6584 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6585 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6586 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6587 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6588 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6590 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6591 (binqops_op, binqops_op_rev, last_op): New int attributes.
6592 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6593 (fn, ab): New int attributes.
6594 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6595 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6596 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6597 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6599 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6600 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6601 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6602 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6603 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6605 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6606 (brk_reg_con, brk_reg_opno): New int attributes.
6607 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6608 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6609 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6611 (max_elem_bits): New int attribute.
6612 (min_elem_bits): Handle UNSPEC_RBIT.
6613 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6614 TRUNCATE as well as SUBREG.
6615 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6616 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6617 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6618 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6619 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6620 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6621 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6622 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6623 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6624 (aarch64_gather_scale_operand_h): New predicates.
6625 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6626 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6627 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6628 (*aarch64_sve_reinterpret<mode>): Allow any source register
6629 instead of requiring an exact match.
6630 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6631 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6632 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6633 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6634 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6635 (aarch64_update_ffrt): New patterns.
6636 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6637 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6638 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6639 (@aarch64_ld<fn>f1<mode>): New patterns.
6640 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6641 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6642 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6643 (@aarch64_ldnt1<mode>): New patterns.
6644 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6645 the scalar part of the address.
6646 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6647 scalar part of the addresse and add an alternative for handling
6649 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6650 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6651 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6652 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6653 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6654 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6655 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6656 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6657 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6658 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6659 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6660 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6661 (@aarch64_sve_prefetch<mode>): New patterns.
6662 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6663 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6664 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6665 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6666 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6667 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6668 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6669 (@aarch64_stnt1<mode>): New patterns.
6670 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6671 the scalar part of the address.
6672 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6673 the scalar part of the addresse and add an alternative for handling
6675 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6676 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6677 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6678 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6679 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6680 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6682 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6683 (extract_last_<mode>): Generalize to...
6684 (@extract_<LAST:last_op>_<mode>): ...this.
6685 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6686 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6687 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6688 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6689 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6690 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6691 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6692 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6693 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6694 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6695 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6696 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6697 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6698 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6699 (*aarch64_adr_uxtw_unspec): Likewise.
6700 (*aarch64_adr_uxtw): Rename to...
6701 (*aarch64_adr_uxtw_and): ...this.
6702 (@aarch64_adr<mode>_shift): New expander.
6703 (*aarch64_adr_shift_sxtw): New pattern.
6704 (aarch64_<su>abd<mode>_3): Rename to...
6705 (@aarch64_pred_<su>abd<mode>): ...this.
6706 (<su>abd<mode>_3): Update accordingly.
6707 (@aarch64_cond_<su>abd<mode>): New expander.
6708 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6709 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6710 (*<su>mul<mode>3_highpart): Rename to...
6711 (@aarch64_pred_<optab><mode>): ...this.
6712 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6713 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6714 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6715 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6716 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6717 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6718 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6719 (*v<ASHIFT:optab><mode>3): Rename to...
6720 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6721 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6722 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6723 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6724 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6725 (@cond_asrd<mode>): New expander.
6726 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6727 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6728 (*sdiv_pow2<mode>3): Delete.
6729 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6730 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6731 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6732 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6733 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6734 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6735 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6736 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6737 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6738 (*add<SVE_F:mode>3): Rename to...
6739 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6741 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6742 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6743 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6744 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6745 (*sub<SVE_F:mode>3): Rename to...
6746 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6748 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6749 (*fabd<SVE_F:mode>3): Rename to...
6750 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6751 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6752 (*mul<SVE_F:mode>3): Rename to...
6753 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6755 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6756 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6758 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6759 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6760 (*<nlogical><PRED_ALL:mode>3): Rename to...
6761 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6762 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6763 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6764 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6765 (aarch64_pred_<logical_nn><mode>_z): ...this.
6766 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6767 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6768 (*fma<SVE_I:mode>4): Rename to...
6769 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6770 (*fnma<SVE_I:mode>4): Rename to...
6771 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6772 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6773 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6774 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6775 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6776 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6777 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6778 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6779 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6780 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6781 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6782 (@aarch64_sve_tmad<mode>): Likewise.
6783 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6784 (*aarch64_sel_dup<mode>): Rename to...
6785 (@aarch64_sel_dup<mode>): ...this.
6786 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6787 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6788 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6789 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6790 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6791 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6792 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6793 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6794 (*fcm<cmp_op><mode>): Rename to...
6795 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6796 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6797 (*fcmuo<mode>): Rename to...
6798 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6799 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6800 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6801 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6802 (fold_extract_last_<mode>): Generalize to...
6803 (@fold_extract_<last_op>_<mode>): ...this.
6804 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6805 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6806 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6807 DImode result explicit.
6808 (reduc_plus_scal_<mode>): Update accordingly.
6809 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6810 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6811 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6812 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6813 (*aarch64_sve_tbl<mode>): Rename to...
6814 (@aarch64_sve_tbl<mode>): ...this.
6815 (@aarch64_sve_compact<mode>): New pattern.
6816 (*aarch64_sve_dup_lane<mode>): Rename to...
6817 (@aarch64_sve_dup_lane<mode>): ...this.
6818 (@aarch64_sve_dupq_lane<mode>): New pattern.
6819 (@aarch64_sve_splice<mode>): Likewise.
6820 (aarch64_sve_<perm_insn><mode>): Rename to...
6821 (@aarch64_sve_<perm_insn><mode>): ...this.
6822 (*aarch64_sve_ext<mode>): Rename to...
6823 (@aarch64_sve_ext<mode>): ...this.
6824 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6825 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6827 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6828 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6830 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6832 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6833 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6834 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6835 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6837 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6838 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6840 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6841 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6842 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6844 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6845 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6846 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6847 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6848 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6850 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6851 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6852 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6853 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6854 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6855 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6856 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6857 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6858 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6859 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6860 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6861 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6862 (aarch64_sve_cnt_pat): Likewise.
6863 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6864 (*aarch64_sve_incsi_pat): Likewise.
6865 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6866 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6867 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6868 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6869 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6870 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6871 (*aarch64_sve_decsi_pat): Likewise.
6872 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6873 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6874 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6875 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6876 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6877 (@aarch64_pred_cntp<mode>): Likewise.
6878 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6880 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6881 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6882 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6884 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6886 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6887 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6888 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6889 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6890 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6891 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6892 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6894 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6895 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6896 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6898 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6900 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6902 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6903 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6905 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6906 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6908 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6909 * config/aarch64/arm_sve.h: New file.
6910 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6911 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6912 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6913 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6914 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6915 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6916 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6917 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6918 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6920 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6922 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6924 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6927 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6929 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
6930 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
6932 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
6933 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
6934 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
6935 (aarch64_hard_regno_nregs): Handle the new register classes.
6936 (aarch64_hard_regno_mode_ok): Likewise.
6937 (aarch64_regno_regclass): Likewise.
6938 (aarch64_class_max_nregs): Likewise.
6939 (aarch64_register_move_cost): Likewise.
6940 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
6941 as general register_operands.
6943 2019-10-29 Martin Liska <mliska@suse.cz>
6945 * ggc-common.c: One can't subtract unsigned types
6946 in compare function.
6948 2019-10-29 Martin Liska <mliska@suse.cz>
6950 * cgraphunit.c (symbol_table::compile): Pass
6951 title as dump_memory_report argument.
6952 * toplev.c (dump_memory_report): New argument.
6953 (finalize): Pass new argument.
6954 * toplev.h (dump_memory_report): Add argument.
6956 2019-10-29 Martin Liska <mliska@suse.cz>
6958 * ggc-common.c: Move Leak to the first column.
6960 2019-10-29 Martin Liska <mliska@suse.cz>
6962 * cgraphunit.c (symbol_table::compile): Remove argument
6963 for dump_memory_report.
6964 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
6965 (compare_final): Remove in order to make report
6967 * ggc.h (dump_ggc_loc_statistics): Remove argument.
6968 * mem-stats.h (mem_alloc_description::get_list):
6970 (mem_alloc_description::dump): Likewise here.
6971 * toplev.c (dump_memory_report): Remove final
6973 (finalize): Likewise.
6974 * toplev.h (dump_memory_report): Remove argument.
6976 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6978 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
6979 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
6980 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
6981 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
6984 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6986 * coretypes.h (string_int_pair): New typedef.
6987 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
6988 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
6989 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
6991 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6993 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
6994 (simulate_builtin_function_decl): Declare.
6995 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
6996 (LANG_HOOKS_INITIALIZER): Include it.
6997 * langhooks.c (add_builtin_function_common): Rename to...
6998 (build_builtin_function): ...this. Add a location parameter and use
6999 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7001 (add_builtin_function): Update accordingly, passing the returned
7002 decl to the lang hook.
7003 (add_builtin_function_ext_scope): Likewise
7004 (simulate_builtin_function_decl): New function.
7006 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7008 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7009 example, use actual names of supported offload targets.
7012 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7014 2019-10-28 Martin Sebor <msebor@redhat.com>
7016 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7017 (handle_store): Pass argument to get_addr_stridx.
7019 2019-10-28 Martin Sebor <msebor@redhat.com>
7021 PR tree-optimization/92226
7022 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7023 the offset is in the open range outlined by SI's length.
7025 2019-10-28 Martin Sebor <msebor@redhat.com>
7028 * doc/cpp.texi (__has_builtin): Document.
7029 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7031 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7034 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7035 doubleword and low doubleword result of multiplication on
7038 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7039 pure qualifier to the built-in.
7040 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7042 (struct mips_builtin_description): Add is_pure flag.
7043 (mips_init_builtins): Mark built-in as pure if the flag in the
7044 corresponding mips_builtin_description struct is set.
7046 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7047 alternative which covers the floating-point input value. Also
7048 forbid the split of insert.d pattern for floating-point values.
7050 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7052 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7053 * config/riscv/riscv-sr.c: New file.
7054 * config/riscv/riscv.c (riscv_reorg): New function.
7055 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7056 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7057 (riscv_remove_unneeded_save_restore_calls): Declare.
7058 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7060 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7062 PR tree-optimization/92163
7063 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7064 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7065 before calling bitmap_set_bit.
7066 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7067 delete_dead_or_redundant_assignment.
7068 (dse_dom_walker::dse_optimize_stmt): Likewise.
7069 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7071 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7074 * tree-vect-stmts.c (vectorizable_condition): Support
7075 EXTRACT_LAST_REDUCTION with fully-masked loops.
7077 2019-10-28 Richard Biener <rguenther@suse.de>
7079 PR tree-optimization/92252
7080 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7081 STMT_VINFO_REDUC_IDX when swapping operands.
7083 2019-10-28 Richard Biener <rguenther@suse.de>
7085 PR tree-optimization/92241
7086 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7087 we failed to update the reduction index do not use the pattern
7088 stmts for the reduction chain.
7089 (vectorizable_reduction): When the reduction chain is corrupt,
7091 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7092 fail to update the reduction chain.
7094 2019-10-28 Richard Biener <rguenther@suse.de>
7096 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7097 STMT_VINFO_REDUC_IDX from the actual stmt.
7098 (vect_transform_reduction): Likewise.
7099 (vectorizable_reduction): Compute the reduction chain length,
7100 do not recompute the reduction operand index. Remove no longer
7101 necessary restriction for condition reduction chains.
7103 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7106 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7107 condition for V2DImode.
7109 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7111 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7112 Remove %k operand modifier.
7113 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7115 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7117 PR rtl-optimization/92007
7118 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7119 call it after reload if hot/cold partitioning has been done.
7120 (class pass_postreload_jump): Rename to
7121 pass_jump_after_combine.
7122 (make_pass_postreload_jump): Rename to
7123 make_pass_jump_after_combine.
7124 * passes.def(pass_postreload_jump): Move before reload, rename
7125 to pass_jump_after_combine.
7126 * tree-pass.h (make_pass_postreload_jump): Rename to
7127 make_pass_jump_after_combine.
7129 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7132 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7133 for missing EDGE_REF
7134 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7136 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7138 PR tree-optimization/88760
7139 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7140 Enable -funroll-loops for -O2 and above.
7141 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7142 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7143 do not turn on web and rngreg implicitly, if the unroller is not
7146 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7148 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7151 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7153 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7154 * cgraph.h (cgraph_node::rtl_info): Likewise.
7156 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7158 * ipa-cp.c (propagate_constants_across_call): If args are not available
7159 just drop everything to varying.
7160 (find_aggregate_values_for_callers_subset): Watch for missing
7162 (find_more_scalar_values_for_callers_subs): Likewise.
7163 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7164 update_jump_functions_after_inlining, propagate_controlled_uses):
7165 Watch for missing summaries.
7166 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7168 (ipa_write_node_info): Watch for missing summaries.
7169 (ipa_read_edge_info): Create new ref.
7170 (ipa_edge_args_sum_t): Add remove.
7171 (IPA_EDGE_REF_GET_CREATE): New macro.
7172 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7174 (remap_edge_change_prob): Likewise.
7176 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7178 * ipa-inline-transform.c (inline_call): update function summaries
7179 after expanidng thunk.
7181 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7183 * ipa-icf.c (sem_function::merge): Update function summaries.
7184 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7186 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7188 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7189 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7190 operand already has scalar mode.
7191 (iptr): Remove SF/DF.
7193 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7196 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7197 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7200 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7202 * config/i386/sse.md
7203 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7204 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7205 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7206 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7207 <sse>_vmmaskcmp<mode>3):
7208 Change predicates from vector_operand to nonimmediate_operand,
7209 constraints xBm to xm, since scalar operations don't need
7210 memory address alignment.
7211 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7212 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7213 round_saeonly_nimm_predicate with
7214 round_saeonly_nimm_scalar_predicate.
7215 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7216 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7217 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7218 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7219 avx512f_vmfmadd_<mode>_mask3<round_name>,
7220 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7221 *avx512f_vmfmsub_<mode>_mask<round_name>,
7222 avx512f_vmfmsub_<mode>_mask3<round_name>,
7223 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7224 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7225 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7226 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7227 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7228 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7229 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7230 cvtusi2<ssescalarmodesuffix>32<round_name>,
7231 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7232 round_nimm_predicate with round_nimm_scalr_predicate.
7233 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7234 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7235 avx512er_vmrcp28<mode><round_saeonly_name>,
7236 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7237 ): Replace round_saeonly_nimm_predicate with
7238 round_saeonly_nimm_scalar_predicate.
7239 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7240 vector_operand with nonimmediate_operand.
7241 * config/i386/subst.md (round_scalar_nimm_predicate,
7242 round_saeonly_scalar_nimm_predicate): Replace
7243 vector_operand with nonimmediate_operand.
7245 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7248 * config/i386/i386.md (*rcpsf2_sse): Add
7249 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7250 (*rsqrtsf2_sse): Ditto.
7251 (*sqrt<mode>2_sse): Ditto.
7252 (sse4_1_round<mode>2): separate constraint vm, add
7253 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7254 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7256 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7258 (*sse_vmrsqrtv4sf2): Ditto.
7259 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7260 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7261 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7262 <iptr> pointer size modifier since vround support memory operand.
7264 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7267 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7270 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7271 Tobias Burnus <tobias@codesourcery.com>
7273 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7274 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7277 2019-10-25 Richard Biener <rguenther@suse.de>
7279 PR tree-optimization/92222
7280 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7281 (_slp_oprnd_info::second_pattern): Likewise.
7282 (_slp_oprnd_info::any_pattern): New.
7283 (vect_create_oprnd_info): Adjust.
7284 (vect_get_and_check_slp_defs): Compute whether any stmt is
7286 (vect_build_slp_tree_2): Avoid building up a node from scalars
7287 if any of the operand defs, not just the first, is in a pattern.
7289 2019-10-25 Richard Biener <rguenther@suse.de>
7291 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7292 swapping if we actually have to modify the IL on a shared stmt.
7293 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7294 because we no longer modify the IL.
7296 2019-10-25 Martin Liska <mliska@suse.cz>
7298 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7300 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7302 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7303 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7304 handled by vect_transform_reduction. Allow fully-masked loops
7305 to be used with reduction chains.
7306 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7307 operations in fully-masked loops.
7308 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7309 operations in fully-masked loops.
7311 2019-10-25 Richard Biener <rguenther@suse.de>
7313 * tree-vect-loop.c (vectorizable_reduction): Verify
7314 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7316 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7317 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7320 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7322 * gimplify.h (omp_construct_selector_matches): Declare.
7323 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7324 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7325 called function if needed for flag_openmp.
7326 (gimplify_scan_omp_clauses): Set ctx->code.
7327 (omp_construct_selector_matches): New function.
7328 * omp-general.h (omp_constructor_traits_to_codes,
7329 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7330 * omp-general.c (omp_constructor_traits_to_codes,
7331 omp_context_selector_matches, omp_resolve_declare_variant): New
7334 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7336 * config/rx/rx.c (rx_print_operand): Likewise.
7337 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7338 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7339 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7341 * genemit.c (emit_c_code): Likewise.
7342 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7344 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7346 * symbols-summary.h (fast_function_summary<T *, V>::release,
7347 fast_call_summary<T *, V>::release): Free m_vector.
7349 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7351 * cgraphunit.c (symbol_table::process_new_functions): Call
7352 ipa_free_size_summary.
7353 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7354 (devirtualization_time_bonus): Update.
7355 (ipcp_propagate_stage): Update.
7356 * ipa-fnsummary.c (ipa_size_summaries): New.
7357 (ipa_fn_summary_alloc): Alloc size summary.
7358 (dump_ipa_call_summary): Update.
7359 (ipa_dump_fn_summary): Update.
7360 (analyze_function_body): Update.
7361 (compute_fn_summary): Likewise.
7362 (ipa_get_stack_frame_offset): New function.
7363 (inline_update_callee_summaries): Do not update frame offsets.
7364 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7365 remove call and function summary.
7366 (ipa_update_overall_fn_summary): Update.
7367 (inline_read_section): Update.
7368 (ipa_fn_summary_write): Update.
7369 (ipa_free_fn_summary): Do not remove summaries.
7370 (ipa_free_size_summary): New.
7371 (release summary pass): Also run at WPA.
7372 * ipa-fnsummary.h (ipa_size_summary): Declare.
7373 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7374 estimated_self_stack_size.
7375 (ipa_size_summary_t): New type.
7376 (ipa_size_summaries): Declare.
7377 (ipa_free_size_summary): Declare.
7378 (ipa_get_stack_frame_offset): Declare.
7379 * ipa-icf.c (sem_function::merge): Update.
7380 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7381 (estimate_growth): Update.
7382 (growth_likely_positive): Update.
7383 (clone_inlined_nodes): Update.
7384 (inline_call): Update.
7385 * ipa-inline.c (caller_growth_limits): Update.
7386 (edge_badness): Update.
7387 (recursive_inlining): Update.
7388 (inline_small_functions): Update.
7389 (inline_to_all_callers_1): Update.
7390 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7392 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7394 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7395 (uavg<mode>3_ceil): ... This.
7396 (altivec_vavgs<VI_char>): Rename to...
7397 (avg<mode>3_ceil): ... This.
7398 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7399 VAVGUW, VAVGSW): Adjust.
7401 2019-10-24 Nathan Sidwell <nathan@acm.org>
7403 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7405 2019-10-24 Martin Liska <mliska@suse.cz>
7407 * symbol-summary.h (gt_pch_nx): Mark all functions
7408 with gcc_unreachable as we do not expect to be called.
7410 2019-10-24 Richard Biener <rguenther@suse.de>
7412 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7413 chains try harder with operand swapping and instead of
7414 putting a shifted chain into the reduction operands put
7415 a repetition of the final reduction op there as if we'd
7416 reassociate the expression.
7418 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7420 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7421 statics_not_read and statics_not_written to statics_read and
7422 statics_written respectively.
7423 (no_module_statics): New static var.
7424 (ipa_reference_get_not_read_global): Rename to ...
7425 (ipa_reference_get_read_global): ... this.
7426 (ipa_reference_get_not_written_global): Rename to ...
7427 (ipa_reference_get_written_global): ... this.
7428 (dump_static_vars_set_to_file): Dump no_module_statics.
7429 (copy_static_var_set): Add for propagation parameter.
7430 (ipa_init): Initialize no_module_statics.
7431 (ipa_ref_opt_summary_t::duplicate): Update.
7432 (ipa_ref_opt_summary_t::remove): Update.
7433 (propagate): Update.
7434 (write_node_summary_p): Look correctly for bitmap differences.
7435 (ipa_reference_write_optimization_summary): Update.
7436 (ipa_reference_read_optimization_summary): Update.
7438 (ipa_reference_get_not_read_global): Rename to ...
7439 (ipa_reference_get_read_global): ... this.
7440 (ipa_reference_get_not_written_global): Rename to ...
7441 (ipa_reference_get_written_global): ... this.
7442 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7443 (call_may_clobber_ref_p_1): Update.
7445 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7447 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7449 (msp430_hard_regno_nregs_with_padding): Remove.
7451 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7453 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7454 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7455 shift amount is between 1 and 4.
7456 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7459 2019-10-24 Richard Biener <rguenther@suse.de>
7461 PR tree-optimization/92205
7462 * tree-vect-loop.c (vectorizable_reduction): Restrict
7463 search for alternate vectype_in to lane-reducing patterns
7466 2019-10-24 Richard Biener <rguenther@suse.de>
7468 PR tree-optimization/92203
7469 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7470 Skip eliminating conversion stmts inserted by insertion.
7472 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7474 * config/s390/s390.c (s390_get_thread_pointer): Use
7475 gen_get_thread_pointer.
7476 (s390_expand_split_stack_prologue): Likewise.
7477 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7478 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7479 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7480 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7483 2019-10-24 Richard Biener <rguenther@suse.de>
7485 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7486 SLP discovery fails try to handle the reduction as part
7487 of SLP reduction discovery.
7489 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7491 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7493 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7494 attribute if it exists, rather than the insn size. If we use the
7495 insn size, adjust the size to remove the extra size that prefixed
7497 (rs6000_adjust_insn_length): New function.
7498 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7499 update the instruction sized if prefixed instructions are used.
7500 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7501 (non_prefixed_length attribute): Delete.
7502 (num_insns attribute): New insn attribute to return the number of
7504 (max_prefixed_insns attribute): New insn attribute to return the
7505 maximum number of prefixed instructions in an insn.
7506 (length attribute): Do not adjust for prefix instructions here,
7507 punt to ADJUST_INSN_LENGTH.
7508 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7509 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7510 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7511 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7512 max_prefixed_insns and num_insns.
7514 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7515 (movtd_64bit_nodm): Reformat.
7516 (mov<mode>_32bit): Reformat.
7517 (mov<mode>_softfloat): Reformat.
7518 (FMOVE128_GPR splitter): Reformat.
7519 (DIFD splitter): Reformat.
7520 (TI2 splitter): Reformat.
7521 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7522 bits of the offset for the memory address are non-zero, use PLWA
7523 if prefixed instructions are available.
7525 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7527 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7529 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7531 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7534 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7536 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7537 (cmp_symbol_files): New.
7538 (lto_output): Copy sections in file order.
7539 * lto-streamer.h (lto_file_decl_data): Add field order.
7541 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7543 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7544 * ipa-reference.c (reference_vars_map_t): new type.
7545 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7546 (ipa_reference_var_uid): Implement.
7547 (varpool_node_hooks): New static var.
7548 (varpool_removal_hook): New function.
7549 (is_improper): Do not check bitmap for id==-1
7550 (get_static_name): Update.
7551 (ipa_init): Initialize new datastructures.
7552 (analyze_function): Do not recompute ids.
7553 (propagate): Free reference_vars_to_consider.
7554 (stream_out_bitmap): Update.
7555 (ipa_reference_read_optimization_summary): Update.
7557 2019-10-23 qing zhao <qing.zhao@oracle.com>
7559 PR gcov-profile/91971
7560 * coverage.c (coverage_init): Mangle the full path of filename when
7561 filename is a absolute path.
7563 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7565 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7566 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7567 (msp430_has_hwmult): New.
7568 (msp430_output_labelref):
7569 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7570 * config/msp430/msp430.md (mulhisi3): Likewise.
7571 (umulhisi3): Likewise.
7572 (mulsidi3): Likewise.
7573 (umulsidi3): Likewise.
7575 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7578 * params.def (inline-heuristics-hint-percent): Set to 600.
7580 2019-10-23 Richard Biener <rguenther@suse.de>
7582 PR tree-optimization/65930
7583 * tree-vect-loop.c (check_reduction_path): Allow conversions
7584 that only change the sign.
7585 (vectorizable_reduction): Relax latch def stmts we handle further.
7587 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7590 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7591 (remove_unused_ivs): Use it instead of get_computation_at. When
7592 choosing best candidate, only consider candidates where
7593 get_debug_computation_at actually returns non-NULL.
7595 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7597 PR tree-optimization/92131
7598 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7599 range would be symbolic, drop to varying for any explicit overflow
7600 in the constant part or if neither range is a singleton.
7602 2019-10-23 Martin Liska <mliska@suse.cz>
7605 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7608 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7610 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7611 int_mode_for_mode rather than mode_for_int_vector for scalars.
7613 2019-10-23 Richard Biener <rguenther@suse.de>
7615 PR tree-optimization/92179
7616 * tree-vect-stmts.c (vectorizable_shift): For shift args
7617 that are all the same remove type restriction in the SLP case.
7618 Adjust SLP code to handle converting of the shift arg to
7619 only apply in case the modes are different.
7621 2019-10-23 Martin Liska <mliska@suse.cz>
7624 * ipa-inline.c (recursive_inlining): Do not print
7625 when curr->count is not initialized.
7627 2019-10-23 Richard Biener <rguenther@suse.de>
7629 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7630 op from scalars in case there's a constant operand in its
7633 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7635 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7636 against out of range max skip or log values.
7638 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7640 * cgraph.c (dump_graphviz): Change name to dump_name
7642 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7644 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7645 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7646 subtraction from a carry operation.
7648 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7650 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7652 2019-10-22 Richard Biener <rguenther@suse.de>
7654 PR tree-optimization/92173
7655 * tree-vect-loop.c (vectorizable_reduction): If
7656 vect_transform_reduction cannot handle code-generation try without
7657 the single-def-use-cycle optimization. Pass optab_vector to
7658 optab_for_tree_code to get vector shifts as that's what we'd
7661 2019-10-22 Michael Matz <matz@suse.de>
7664 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7665 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7666 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7668 2019-10-22 Richard Biener <rguenther@suse.de>
7670 PR tree-optimization/92173
7671 * tree-vect-loop.c (vectorizable_reduction): If
7672 vect_transform_reduction cannot handle code-generation try without
7673 the single-def-use-cycle optimization. Pass optab_vector to
7674 optab_for_tree_code to get vector shifts as that's what we'd
7677 2019-10-22 Martin Liska <mliska@suse.cz>
7679 * diagnostic-format-json.cc (json_from_expanded_location):
7680 Use json::integer_number.
7681 * gcov.c (output_intermediate_json_line): Use new
7682 json::integer_number.
7683 (output_json_intermediate_file): Likewise.
7684 * json.cc (number::print): Move to ...
7685 (float_number::print): ... this.
7686 (integer_number::print): New.
7687 (test_writing_numbers): Move to ...
7688 (test_writing_float_numbers): ... this.
7689 (test_writing_integer_numbers): New.
7690 (json_cc_tests): Register test_writing_integer_numbers.
7691 * json.h (class value): Add forward declaration
7692 for float_number and integer_number.
7693 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7694 (class number): Move to ...
7695 (class float_number): ... this.
7696 (class integer_number): New.
7697 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7698 Use json::integer_number.
7699 (optrecord_json_writer::location_to_json): Likewise.
7700 (optrecord_json_writer::profile_count_to_json): Likewise.
7701 (optrecord_json_writer::pass_to_json): Likewise.
7703 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7705 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7706 autodetected_vector_size rather than vector_size is zero.
7707 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7708 Set autodetected_vector_size immediately after calling
7709 vect_analyze_loop_2. Check for a fatal error before advancing
7712 2019-10-21 Jason Merrill <jason@redhat.com>
7714 * lock-and-run.sh: Check for process existence rather than timeout.
7716 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7718 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7719 widening multiplication.
7721 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7723 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7724 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7726 (subsi3_carryin_shift): Separate into register and constant controlled
7727 alternatives. Use shift_amount_operand for operand 4. Set shift
7728 attribute and simplify type attribute.
7729 (subsi3_carryin_shift_alt): Likewise.
7730 (rsbsi3_carryin_shift): Likewise.
7731 (rsbsi3_carryin_shift_alt): Likewise.
7732 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7733 and register controlled shifts into distinct alternatives.
7734 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7735 (andsi_not_shiftsi_si_scc): Likewise.
7736 (arm_cmpsi_negshiftsi_si): Likewise.
7737 (not_shiftsi): Remove redundant M constraint from alternative 1.
7738 (not_shiftsi_compare0): Likewise.
7739 (arm_cmpsi_insn): Remove redundant alternative 2.
7740 (cmpsi_shift_swp): Likewise.
7741 (sub_shiftsi): Likewise.
7742 (sub_shiftsi_compare0_scratch): Likewise.
7743 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7744 (thumb2_cmpsi_neg_shiftsi): Likewise.
7746 2019-10-21 Richard Biener <rguenther@suse.de>
7748 PR tree-optimization/92162
7749 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7750 STMT_VINFO_REDUC_IDX in reduc_info.
7751 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7753 2019-10-21 Richard Biener <rguenther@suse.de>
7755 * tree-vectorizer.h (_slp_tree::ops): New member.
7756 (SLP_TREE_SCALAR_OPS): New.
7757 (vect_get_slp_defs): Adjust prototype.
7758 * tree-vect-slp.c (vect_free_slp_tree): Release
7759 SLP_TREE_SCALAR_OPS.
7760 (vect_create_new_slp_node): Initialize it. New overload for
7761 initializing by an operands array.
7762 (_slp_oprnd_info::ops): New member.
7763 (vect_create_oprnd_info): Initialize it.
7764 (vect_free_oprnd_info): Release it.
7765 (vect_get_and_check_slp_defs): Populate the operands array.
7766 Do not swap operands in the IL when not necessary.
7767 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7768 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7769 swap operands in the operands array. Do not swap operands in
7771 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7772 (vect_gather_slp_loads): Fix.
7773 (vect_detect_hybrid_slp_stmts): Likewise.
7774 (vect_slp_analyze_node_operations_1): Search for a internal
7775 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7776 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7777 the def-type push/pop dance.
7778 (vect_get_constant_vectors): Compute number_of_vectors here.
7779 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7780 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7781 (vect_get_slp_defs): Simplify greatly.
7782 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7783 (vect_transform_reduction): Likewise.
7784 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7785 (vectorizable_call): Likewise.
7786 (vectorizable_operation): Likewise.
7787 (vectorizable_load): Likewise.
7788 (vectorizable_condition): Likewise.
7789 (vectorizable_comparison): Likewise.
7791 2019-10-21 Richard Biener <rguenther@suse.de>
7793 PR tree-optimization/92161
7794 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7797 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7799 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7800 (aarch64_rndr): New define_insn.
7801 (aarch64_rndrrs): Likewise.
7802 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7803 (TARGET_RNG): Likewise.
7804 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7806 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7807 Add fourth argument in prototype.
7808 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7809 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7810 (aarch64_init_rng_builtins): Define.
7811 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7812 (aarch64_expand_rng_builtin): Define.
7813 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7815 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7816 __ARM_FEATURE_RNG when TARGET_RNG.
7817 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7819 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7821 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7822 alignment is more restrictive.
7824 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7826 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7827 (vect_update_max_nunits): Update comment.
7828 (current_vector_size): Delete.
7829 * tree-vect-stmts.c (current_vector_size): Likewise.
7830 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7831 of current_vector_size.
7832 (get_mask_type_for_scalar_type): Likewise.
7833 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7834 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7835 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7836 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7837 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7838 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7840 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7842 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7843 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7844 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7847 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7849 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7850 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7851 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7853 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7855 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7857 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7859 (vect_set_loop_condition_masked): Update call accordingly.
7861 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7863 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7864 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7865 (simple_integer_narrowing): Update call accordingly.
7866 (vectorizable_conversion): Likewise.
7868 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7870 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7871 (vectorizable_call): Update call accordingly.
7873 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7875 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7876 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7877 (duplicate_and_interleave): Update call accordingly.
7878 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7880 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7882 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7883 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7884 (vect_get_constant_vectors): Update call accordingly.
7885 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7887 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7889 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7890 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7891 (vect_prologue_cost_for_slp_op): Update call accordingly.
7892 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7893 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7894 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7895 (get_mask_type_for_scalar_type): Likewise.
7896 (vect_get_vector_types_for_stmt): Likewise.
7897 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7898 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7899 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7900 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7901 (vect_split_statement, vect_convert_input): Likewise.
7902 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7903 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7904 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7905 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7906 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7907 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7908 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7909 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7910 (vect_recog_mask_conversion_pattern): Likewise.
7911 (vect_add_conversion_to_pattern): Likewise.
7912 (vect_recog_gather_scatter_pattern): Likewise.
7913 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7914 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7916 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7918 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7919 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7920 (vect_check_load_store_mask): Update call accordingly.
7921 (vect_get_mask_type_for_stmt): Likewise.
7922 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7923 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7924 (vect_convert_mask_for_vectype): Likewise.
7926 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7928 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
7930 (vect_recog_dot_prod_pattern): Update call accordingly.
7931 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
7932 (vect_recog_widen_sum_pattern): Likewise.
7934 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7936 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
7937 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
7938 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
7941 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7943 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
7944 get_vectype_for_scalar_type_and_size instead of
7945 get_vectype_for_scalar_type.
7947 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
7949 * common.opt (-fcommon): Fix description.
7951 2019-10-20 Jakub Jelinek <jakub@redhat.com>
7953 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
7954 * config/i386/i386.c (ix86_pre_reload_split): New function.
7955 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
7956 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
7957 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
7958 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
7959 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
7960 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
7961 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
7962 *<shift_insn><dwi>3_doubleword_mask,
7963 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
7964 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
7965 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
7966 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
7967 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
7968 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
7969 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
7970 *avx2_<code>v8qiv8si2<mask_name>_2,
7971 *sse4_1_<code>v4qiv4si2<mask_name>_2,
7972 *sse4_1_<code>v4hiv4si2<mask_name>_2,
7973 *avx512f_<code>v8qiv8di2<mask_name>_2,
7974 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
7975 *sse4_1_<code>v2hiv2di2<mask_name>_2,
7976 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
7977 sse4_2_pcmpistr): Likewise.
7979 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
7981 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
7982 now defaults to https.
7984 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
7986 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
7987 skip non-zero array accesses.
7989 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
7991 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
7992 and return a boolean success value. Move the allocation and
7993 initialization of the bb_vec_info to...
7994 (vect_slp_bb_region): ...here. Update call accordingly.
7995 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
7996 than in vect_slp_analyze_bb_1.
7998 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8000 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8001 when processing the given datarefs for the first time and
8002 check_datarefs subsequently.
8003 (vect_slp_bb_region): New function, split out of...
8004 (vect_slp_bb): ...here. Don't recompute the region bounds and
8005 dataref sets when retrying with a different vector size.
8007 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8008 Uroš Bizjak <ubizjak@gmail.com>
8011 * config/i386/predicates.md (int_nonimmediate_operand): New special
8013 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8014 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8015 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8016 define_insn_and_split patterns.
8018 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8020 * config/rs6000/rs6000.md: Delete out--of-date comment about
8021 special-casing integer loads.
8023 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8025 * escaped_string.h (escaped_string): New header.
8026 * tree.c (escaped_string): Remove escaped_string class.
8028 2019-10-18 Martin Sebor <msebor@redhat.com>
8030 PR tree-optimization/92157
8031 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8032 compute_string_length to return a negative result.
8034 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8036 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8037 (negvsi3, negvdi3): Delete.
8038 (negdi2_compare): Delete.
8040 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8042 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8044 (subdi3_compare1): Delete pattern.
8045 (subvsi3_borrow): New insn pattern.
8046 (subvsi3_borrow_imm): Likewise.
8048 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8050 * config/arm/arm.md (subv<mode>4): Delete.
8051 (subvdi4): New expander pattern.
8052 (subvsi4): Likewise. Handle some immediate values.
8053 (subvsi3_intmin): New insn pattern.
8054 (subvsi3): Likewise.
8055 (subvsi3_imm1): Likewise.
8056 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8059 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8061 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8062 incoming operands. Early split the calculation into SImode
8064 (usubvsi3_borrow): New insn pattern.
8065 (usubvsi3_borrow_imm): Likewise.
8067 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8069 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8070 (usubvsi4): New pattern. Allow some immediate values for inputs.
8071 (usubvdi4): New pattern.
8073 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8075 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8076 or second operand of the PLUS inside a DImode equality test to be
8077 sign-extend when selecting CC_Vmode.
8078 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8080 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8082 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8083 (addsi3_cin_vout_0): Likewise.
8084 (adddi3_compareV): Delete.
8086 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8088 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8089 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8090 to transform this back into the summation version when that leads
8093 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8095 * config/arm/arm.md (addv<mode>4): Delete.
8096 (addvsi4): New pattern. Handle immediate values that the architecture
8098 (addvdi4): New pattern.
8099 (addsi3_compareV): Rename to ...
8100 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8101 and use COMPARE rather than NE.
8102 (addsi3_compareV_imm): New pattern.
8103 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8104 a signed-overflow check.
8106 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8108 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8109 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8111 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8112 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8114 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8116 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8117 (addsi3_cin_cout_imm_insn): Likewise.
8118 (adddi3_compareC): Delete insn.
8119 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8121 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8123 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8124 * (uaddv<mode>4): Delete expansion pattern.
8125 (uaddvsi4): New pattern.
8126 (uaddvdi4): Likewise.
8127 (addsi3_compareC): Delete pattern, change callers to use
8129 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8130 reduce the number of alternatives and re-work type attribute handling.
8131 (addsi3_compare_op2): Clean up constraints to reduce the number of
8132 alternatives and re-work type attribute handling.
8133 (compare_addsi2_op0): Likewise.
8134 (compare_addsi2_op1): Likewise.
8136 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8138 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8139 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8140 for DImode operands.
8141 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8142 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8144 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8145 (arm_cmpdi_unsigned): Delete.
8147 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8149 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8150 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8151 unchanged only if that will be cheaper.
8152 (arm_select_cc_mode): Recognize a swapped comparison that will
8153 be regenerated using RSBS or RSCS. Relax restriction on selecting
8155 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8157 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8159 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8161 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8162 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8164 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8166 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8167 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8169 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8170 of EQ, NE, LT, GE, LTU and GEU.
8171 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8172 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8173 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8174 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8175 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8177 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8179 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8181 (cstoredi4): Similarly, but for operand 3.
8182 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8183 canonicalization of unsigned compares with a constant on Arm.
8184 Prefer using const+1 and adjusting the comparison over swapping the
8185 operands whenever the original constant was not valid.
8186 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8188 (arm_validize_comparison): Do not force invalid DImode operands to
8191 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8193 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8194 return CC_Zmode if comparing against a constant where one word is
8196 (arm_gen_compare_reg): Split DImode handling to ...
8197 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8198 against simple constants.
8199 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8201 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8203 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8204 (rsbsi3_carryin_shift_alt): Likewise.
8206 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8208 * config/arm/arm.md (negscc_borrow): New pattern.
8209 (mov_negscc): Don't split if the insn would match negscc_borrow.
8210 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8211 (thumb2_mov_negscc_strict_it): Likewise.
8213 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8215 * config/arm/arm.c (arm_insn_cost): New function.
8216 (TARGET_INSN_COST): Override default definition.
8218 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8220 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8223 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8225 * config/arm/arm.c (strip_carry_operation): New function.
8226 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8229 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8231 * config/arm/predicates.md (arm_carry_operation): New special
8233 * config/arm/iterators.md (LTUGEU): Delete iterator.
8234 (cnb): Delete code attribute.
8235 (optab): Delete ltu and geu elements.
8236 * config/arm/arm.md (addsi3_carryin): Renamed from
8237 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8238 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8239 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8240 (addsi3_carryin_clobercc): Similarly.
8241 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8244 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8246 * config/arm/arm.md (arm_subdi3): Delete insn.
8247 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8249 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8251 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8252 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8253 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8255 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8256 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8258 (subdi3): Rewrite to early-expand the sub-operations.
8259 (rsb_im_compare): New pattern.
8261 (negdi2_insn): Delete.
8262 (arm_negsi2): Correct type attribute to alu_imm.
8263 (negsi2_0compare): New insn pattern.
8264 (negsi2_carryin): New insn pattern.
8266 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8268 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8271 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8273 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8274 to match canonical form.
8276 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8278 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8279 (extend<mode>di2): Likewise.
8281 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8283 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8284 * config/arm/arm.c (arm_decompose_di_binop): New function.
8285 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8286 If not generating Thumb-1 code, decompose the operation into 32-bit
8288 * add0si_carryin_<optab>: New pattern.
8290 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8292 * arm.md (adddi3): Only accept register operands.
8293 (arm_adddi3): Convert to simple insn with no split. Do not accept
8295 (adddi_sesidi_di): Delete patern.
8296 (adddi_zesidi_di): Likewise.
8297 (uaddv<mode>4): Use LTU as condition for branch.
8298 (adddi3_compareV): Convert to simple insn with no split.
8299 (addsi3_compareV_upper): Delete pattern.
8300 (adddi3_compareC): Convert to simple insn with no split. Correct
8301 flags setting expression.
8302 (addsi3_compareC_upper): Delete pattern.
8303 (addsi3_compareC): Correct flags setting expression.
8304 (subdi3_compare1): Convert to simple insn with no split.
8305 (subsi3_carryin_compare): Delete pattern.
8306 (arm_subdi3): Convert to simple insn with no split.
8307 (subdi_zesidi): Delete pattern.
8308 (subdi_di_sesidi): Delete pattern.
8309 (subdi_zesidi_di): Delete pattern.
8310 (subdi_sesidi_di): Delete pattern.
8311 (subdi_zesidi_zesidi): Delete pattern.
8312 (negvdi3): Use s_register_operand.
8313 (negdi2_compare): Convert to simple insn with no split.
8314 (negdi2_insn): Likewise.
8315 (negsi2_carryin_compare): Delete pattern.
8316 (negdi_zero_extendsidi): Delete pattern.
8317 (arm_cmpdi_insn): Convert to simple insn with no split.
8318 (negdi2): Don't call gen_negdi2_neon.
8319 * config/arm/neon.md (adddi3_neon): Delete pattern.
8320 (subdi3_neon): Delete pattern.
8321 (negdi2_neon): Delete pattern.
8322 (splits for negdi2_neon): Delete splits.
8324 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8327 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8330 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8332 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8333 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8334 new multilib variants and new mappings.
8336 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8339 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8341 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8342 Richard Sandiford <richard.sandiford@arm.com>
8345 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8346 and define hashmap traits for it.
8347 (loop_vec_info::scalar_cond_masked_set): New member.
8348 (vect_record_loop_mask): Adjust prototype.
8349 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8351 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8352 vect_record_loop_mask.
8353 (vectorizable_live_operation): Likewise.
8354 (vect_record_loop_mask): New param scalar_mask. Add entry
8355 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8356 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8357 Pass it as last arg to vect_record_loop_mask.
8358 (vectorizable_call): Pass scalar_mask as last arg to
8359 vect_record_loop_mask.
8360 (vectorizable_store): Likewise.
8361 (vectorizable_load): Likewise.
8362 (vectorizable_condition): Check if another part of vectorized code
8363 applies loop_mask to condition or to it's inverse, and if yes,
8364 apply loop_mask to result of vector comparison.
8366 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8368 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8370 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8372 PR tree-optimization/92056
8373 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8374 before calling compute_builtin_object_size.
8376 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8379 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8380 (movdi_low_st): Delete.
8381 * config/rs6000/rs6000.c
8382 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8383 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8384 * config/rs6000/rs6000.md (movsi_low): Delete.
8386 2019-10-17 Jason Merrill <jason@redhat.com>
8388 * gimplify.h (get_initialized_tmp_var): Add default argument to
8390 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8391 NULL post_p argument.
8392 * targhooks (std_gimplify_va_arg_expr): Likewise.
8394 2019-10-17 Richard Biener <rguenther@suse.de>
8396 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8397 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8398 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8399 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8400 * tree-vect-loop.c (vect_is_simple_reduction): Set
8401 STMT_VINFO_REDUC_CODE.
8402 (vectorizable_reduction): Remove dead and redundant code, use
8403 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8405 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8407 Fix breakage introduced by r276985.
8409 * config/avr/avr.c (avr_option_override): Remove set of
8410 PARAM_ALLOW_STORE_DATA_RACES.
8411 * common/config/avr/avr-common.c (avr_option_optimization_table)
8412 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8414 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8416 * config/i386/i386.h (processor_costs): Add clear_ratio.
8417 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8418 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8419 of 6 and move_ratio in all cost models.
8421 2019-10-17 Richard Biener <rguenther@suse.de>
8423 * tree-vect-loop.c (check_reduction_path): Compute reduction
8425 (vect_is_simple_reduction): Remove special-case of single-stmt
8426 reduction path detection.
8428 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8430 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8432 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8434 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8435 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8436 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8437 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8438 New combine patterns.
8439 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8441 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8443 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8445 * tree-vrp.c (value_range_base::dump): Display +INF for both
8446 pointers and integers when appropriate.
8448 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8450 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8451 when to use versioning threshold.
8453 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8455 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8456 outlined code from ...
8457 (vect_analyze_loop_2): ... here.
8459 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8461 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8462 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8463 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8465 2019-10-17 Richard Biener <rguenther@suse.de>
8467 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8468 (vect_is_simple_reduction): Move all validity checks ...
8469 (vectorizable_reduction): ... here. Compute whether we
8470 need a fold-left reduction here.
8471 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8472 both overloads, check needs_fold_left_reduction_p directly.
8473 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8475 2019-10-17 Richard Biener <rguenther@suse.de>
8477 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8478 TARGET_MEM_REF creation.
8480 2019-10-17 Richard Biener <rguenther@suse.de>
8482 PR tree-optimization/92129
8483 * tree-vect-loop.c (vectorizable_reduction): Also fail
8484 on GIMPLE_SINGLE_RHS.
8486 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8488 PR tree-optimization/92056
8489 * tree-object-size.c (cond_expr_object_size): Return early if then_
8490 processing resulted in unknown size.
8492 PR tree-optimization/92115
8493 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8494 temporary if it could trap.
8496 2019-10-17 Richard Biener <rguenther@suse.de>
8499 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8500 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8502 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8504 * tree-ssa-strlen.c (maybe_invalidate): Use
8505 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8507 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8508 Jim Wilson <jimw@sifive.com>
8510 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8511 regs to SIBCALL_REGS.
8512 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8513 passing regs to SIBCALL_REGS.
8515 2019-10-16 Martin Sebor <msebor@redhat.com>
8517 PR tree-optimization/83821
8518 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8519 the length of a string when available.
8520 (handle_builtin_memset) Add argument.
8521 (handle_store, strlen_check_and_optimize_call): Same.
8522 (check_and_optimize_stmt): Same. Pass it to callees.
8524 2019-10-16 Martin Sebor <msebor@redhat.com>
8526 PR tree-optimization/91996
8527 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8529 (compare_nonzero_chars): Add an overload.
8530 (count_nonzero_bytes): Add an argument. Call overload above.
8531 Handle non-constant lengths in some range.
8532 (handle_store): Add an argument.
8533 (check_and_optimize_stmt): Pass an argument to handle_store.
8535 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8537 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8539 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8541 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8542 operands which correspond to the same input-output register to
8543 have the same pseudo assigned to them.
8545 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8547 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8549 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8551 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8552 Apply reasonable limit to symbol offsets.
8554 2019-10-16 Richard Biener <rguenther@suse.de>
8556 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8557 (vect_is_simple_reduction): Delay checking to
8558 vectorizable_reduction and relax the checking.
8559 (vectorizable_reduction): Check we have a simple use. Check
8560 for bogus condition reductions.
8561 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8562 are looking at the last stmt in a pattern sequence when
8563 filling in backedge PHI values.
8565 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8566 Jiufu Guo <guojiufu@linux.ibm.com>
8569 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8570 the callee explicitly disables some isa_flags the caller is using.
8572 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8574 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8576 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8578 * genmodes.c (mode_data::order): New field.
8579 (blank_mode): Update accordingly.
8580 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8581 (make_vector_modes): Likewise.
8582 (VECTOR_MODES): Update use accordingly.
8583 (cmp_modes): Sort by the new order field ahead of sorting by size.
8584 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8585 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8586 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8587 (aarch64_classify_vector_mode): Handle the new partial modes.
8588 (aarch64_vl_bytes): New function.
8589 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8590 when counting the number of registers in an SVE mode.
8591 (aarch64_class_max_nregs): Likewise.
8592 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8594 (aarch64_classify_address): Treat partial vectors analogously
8596 (aarch64_print_address_internal): Consolidate the printing of
8597 MUL VL addresses, using aarch64_vl_bytes as the number of
8598 bytes represented by "VL".
8599 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8601 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8603 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8604 rather than known_lt when choosing frame layouts.
8606 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8608 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8609 that all the adjustments add up to the full frame size.
8610 Use crtl->outgoing_args_size directly as the final adjustment
8613 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8615 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8616 "frame" reference instead of always referring directly to
8617 "cfun->machine->frame".
8619 2019-10-16 Richard Biener <rguenther@suse.de>
8621 PR tree-optimization/92119
8622 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8623 against missing bswap lhs.
8625 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8628 * poly-int.h (constant_lower_bound_with_limit): New function.
8629 (constant_upper_bound_with_limit): Likewise.
8630 * doc/poly-int.texi: Document them.
8631 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8632 into the worst-case INTEGER_CST bounds.
8634 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8637 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8638 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8639 * ipa-predicat.h (struct expr_eval_op): New struct.
8640 (expr_eval_ops): New typedef.
8641 (struct condition): Add type and param_ops fields, remove size field.
8642 (add_condition): Replace size parameter with type parameter, add
8643 param_ops parameter.
8644 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8645 (predicate::add_clause): Add comparisons on type and param_ops.
8646 (dump_condition): Add debug dump for param_ops.
8647 (remap_after_inlining): Adjust call arguments to add_condition.
8648 (add_condition): Replace size parameter with type parameter, add
8649 param_ops parameter. Unshare constant value used in conditions.
8650 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8651 parameter expressions using param_ops.
8652 (decompose_param_expr): New function.
8653 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8654 to replace call to unmodified_parm_or_parm_agg_item.
8655 (set_switch_stmt_execution_predicate): Likewise.
8656 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8658 (inline_read_section): Read param_ops from summary stream.
8659 (ipa_fn_summary_write): Write param_ops to summary stream.
8661 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8663 PR rtl-optimization/92107
8664 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8667 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8669 * config/darwin.c: Update description of fix and continue.
8671 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8673 * config/darwin.c (darwin_binds_local_p): Update to call
8674 default_binds_local_p_3 () directly. amend comments.
8676 2019-10-15 Richard Biener <rguenther@suse.de>
8678 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8679 (tree_is_indexable): Use it.
8680 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8681 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8682 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8684 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8686 * config/msp430/msp430.md (zero_extendqipsi2): New.
8687 (zero_extendqisi2): Optimize case where src register and base dst
8688 register are the same.
8689 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8690 (zero_extendpsisi2): Optimize r->m case.
8691 Add unnamed insn patterns to catch insns combine searches for when
8692 optimizing pointer manipulation.
8694 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8696 * config/msp430/msp430.md: Group zero_extend* insns together.
8698 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8700 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8702 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8704 (msp430_subreg): Likewise.
8705 (msp430_split_addsi): Likewise.
8706 (msp430_print_operand_addr): Likewise.
8707 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8708 (USE_STORE_POST_INCREMENT): Define.
8709 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8710 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8711 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8712 (msp430_general_dst_operand): New.
8713 (msp430_general_dst_nonv_operand): New.
8714 (msp430_nonsubreg_operand): Remove.
8715 (msp430_nonsubreg_dst_operand): New.
8716 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8717 of defunct msp430_nonsubreg_operand.
8718 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8720 2019-10-15 Richard Biener <rguenther@suse.de>
8722 PR tree-optimization/91929
8723 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8724 (get_or_alloc_expr_for_name): Initialize it.
8725 (get_or_alloc_expr_for_constant): Likewise.
8726 (phi_translate_1): Copy it.
8727 (create_expression_by_pieces): Use the original location
8728 of the expression for the inserted stmt.
8729 (compute_avail): Record the location of the stmt for the
8730 expressions created.
8732 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8734 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8735 before using tree_to_uhwi.
8737 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8739 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8741 2019-10-15 Richard Biener <rguenther@suse.de>
8743 PR tree-optimization/92094
8744 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8745 do not adjust the reduction definition def type.
8746 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8747 defines the latch argument of the PHI.
8749 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8752 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8753 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8754 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8755 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8756 _mm_maskz_roundscale_round_sd): New intrinsics.
8757 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8758 __builtin_ia32_rndscales?_mask_round builtins instead of
8759 __builtin_ia32_rndscales?_round.
8760 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8761 __builtin_ia32_rndscalesd_round): Remove.
8762 (__builtin_ia32_rndscaless_mask_round,
8763 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8764 * config/i386/sse.md
8765 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8766 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8767 ... this, adjust and add subst atrributes to make it maskable.
8769 2019-10-15 Richard Biener <rguenther@suse.de>
8772 * common.opt (fallow-store-data-races): New.
8773 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8774 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8775 * doc/invoke.texi (fallow-store-data-races): Document.
8776 (--param allow-store-data-races): Remove docs.
8777 * opts.c (default_options_table): Enable -fallow-store-data-races
8779 (default_options_optimization): Do not enable --param
8780 allow-store-data-races at -Ofast.
8781 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8782 instead of PARAM_ALLOW_STORE_DATA_RACES.
8783 * tree-ssa-loop-im.c (execute_sm): Likewise.
8785 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8787 PR tree-optimization/92085
8788 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8789 instead of calling it unconditionally after
8790 delete_dead_or_redundant_assignment and fix indentation.
8792 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8794 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8796 (*fmsub<SDF:mode>4): Likewise.
8797 *fnmsub<SDF:mode>4): Likewise.
8798 (*fnmadd<SDF:mode>4): Likewise.
8800 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8802 * doc/tree-ssa.texi: Update renamed macro name.
8804 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8806 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8809 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8811 * config/darwin.c: Use unsigned ints for the picbase label
8812 counters, initialise the vars explicitly.
8813 (update_pic_label_number_if_needed): Move a variable declaration
8814 to where it's needed.
8815 (machopic_output_function_base_name): Use a more strict checking
8816 assert, and and unsigned int for the picbase label counter.
8817 (machopic_get_function_picbase): Likewise.
8819 2019-10-14 Richard Biener <rguenther@suse.de>
8822 * dse.c (scan_insn): Use param max_active_local_stores.
8823 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8824 based on optimization level.
8825 * loop-invariant.c (move_loop_invariants): Adjust
8826 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8827 * opts.c (default_options_optimization): Do not adjust
8828 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8829 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8831 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8833 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8835 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8837 * config/arm/arm.c (arm_option_override): Don't override sched
8840 2019-10-14 Richard Biener <rguenther@suse.de>
8842 PR tree-optimization/92069
8843 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8844 cycles do not set vect_nested_cycle on the latch definition.
8846 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8848 * function-abi.h (expr_callee_abi): Declare.
8849 * function-abi.cc (expr_callee_abi): New function.
8851 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8853 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8855 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8856 non-zero being represented as [1,MAX].
8858 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8860 * tree-sra.c (dump_access): Add missing braces.
8862 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8864 * config/darwin.c (machopic_indirection_name): Rework the
8865 function to emit linker-visible symbols only for indirections
8866 in the data section. Clean up the code and update comments.
8868 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8870 * config/darwin.c (machopic_indirect_data_reference): Remove
8873 2019-10-13 Nathan Sidwell <nathan@acm.org>
8875 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8877 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8879 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8882 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8884 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8885 so non-virutal are before virutals.
8886 (output_function): Avoid body modifications.
8888 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8890 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8891 %r22. Load function address before global pointer.
8892 (pa_attr_length_indirect_call): Adjust length of inline versions of
8894 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8895 before normal cases. Update inline $$dyncall sequences to preserve
8896 function descriptor address in register %r22.
8897 (TRAMPOLINE_CODE_SIZE): Adjust.
8898 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8899 register %r22 contains trampoline address.
8900 (pa_trampoline_init): Adjust offsets.
8901 (pa_trampoline_adjust_address): Likewise.
8902 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8904 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8907 * config/darwin.c (machopic_indirection): New field to flag
8908 non-lazy-symbol-pointers in the data section.
8909 (machopic_indirection_name): Compute if an indirection should
8910 appear in the data section.
8911 (machopic_output_data_section_indirection): New callback split
8912 from machopic_output_indirection.
8913 (machopic_output_stub_indirection): Likewise.
8914 (machopic_output_indirection): Retain the code for non-lazy
8915 symbol pointers in their regular section.
8916 (machopic_finish): Use the new callbacks to order the indirection
8919 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8921 * config/darwin-protos.h (machopic_finish): Delete.
8922 * config/darwin.c (machopic_finish): Make static.
8924 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8926 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8927 sections when building kernel extension code.
8929 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
8931 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
8934 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8936 * config/pa/pa.c (pa_option_override): Remove trailing comma
8939 2019-10-12 Jakub Jelinek <jakub@redhat.com>
8942 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
8943 <case VEC_COND_EXPR>: Return false with *handled = false.
8944 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
8945 recursing on the first operand.
8946 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
8947 instead of tree_could_trap_p.
8948 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
8950 2019-10-11 Jim Wilson <jimw@sifive.com>
8952 PR rtl-optimization/91860
8953 * combine.c (subst): If new_rtx is a constant, also check for
8954 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
8956 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
8958 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
8959 INTVAL when calling store_bit_field.
8961 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
8963 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
8966 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
8968 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
8969 vectorizable_live_operation.
8970 (vectorizable_live_operation): Adjust parameters.
8971 * tree-vect-stmts.c (vect_init_vector,
8972 vect_gen_widened_results_half): Fix typo in function comment.
8973 (can_vectorize_live_stmts): Adjust function comment.
8974 Adjust parameters. Adjust call to vectorizable_live_operation.
8975 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
8976 (vect_transform_stmt): Adjust function comment. Adjust call to
8977 can_vectorize_live_stmts.
8978 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
8980 2019-10-11 Richard Biener <rguenther@suse.de>
8982 PR tree-optimization/90883
8983 PR tree-optimization/91091
8984 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
8985 alias-sets both for recording VN table entries and continuing
8986 walking after translating through copies. Handle same-sized
8987 reads from SSA names by returning the plain SSA name.
8988 (eliminate_dom_walker::eliminate_stmt): Properly handle
8989 non-size precision stores in redundant store elimination.
8991 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
8993 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
8994 (ggc_collect): Dump later to not interfere with release_page dump.
8995 (ggc_trim): New function.
8996 * ggc-none.c (ggc_trim): New.
8997 * ggc.h (ggc_trim): Declare.
8999 2019-10-11 Richard Biener <rguenther@suse.de>
9001 PR tree-optimization/92066
9002 PR tree-optimization/92046
9003 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9004 Fix bogus cost model check.
9006 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9008 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9009 (LANG_HOOKS_DECLS): Add it.
9010 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9011 update comment for omp_is_optional_argument.
9012 * omp-general.c (omp_is_allocatable_or_ptr): New.
9013 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9014 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9015 Fortran's optional arguments and allocatable/pointer scalars
9016 with use_device_addr.
9018 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9021 * config/s390/2827.md: Add new opcodes.
9022 * config/s390/2964.md: Likewise.
9023 * config/s390/3906.md: Likewise.
9024 * config/s390/8561.md: Likewise.
9025 * config/s390/s390-builtins.def (s390_vfchesb): Use
9026 the new vec_cmpgev4sf_quiet_nocc.
9027 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9028 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9029 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9030 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9031 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9032 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9033 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9034 * config/s390/s390-modes.def (CCSFPS): New mode.
9035 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9036 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9037 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9038 (s390_expand_vec_compare): Use non-signaling patterns where
9040 (s390_reverse_condition): Support CCSFPS.
9041 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9042 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9043 (asm_fcmp_op): Likewise.
9044 (*smaxv2df3_vx): Use pattern for quiet comparison.
9045 (*sminv2df3_vx): Likewise.
9046 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9047 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9048 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9049 (vec_cmplt<mode>_quiet_nocc): New expander.
9050 (vec_cmpge<mode>_quiet_nocc): New pattern.
9051 (vec_cmple<mode>_quiet_nocc): New expander.
9052 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9053 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9054 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9055 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9056 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9057 (vec_cmpungt<mode>): New expander.
9058 (vec_cmpunge<mode>): Likewise.
9059 (vec_cmpuneq<mode>): Use quiet patterns.
9060 (vec_cmpltgt<mode>): Allow only on z14+.
9061 (vec_cmpordered<mode>): Use quiet patterns.
9062 (vec_cmpunordered<mode>): Likewise.
9063 (VEC_CMP_EXPAND): Add ungt and unge.
9065 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9067 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9069 * lto-streamer-out.c: Include tree-dfa.h.
9070 (output_cfg): Do not use cfun.
9071 (lto_prepare_function_for_streaming): New.
9072 (output_function): Do not push cfun; do not initialize loop optimizer.
9073 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9074 * passes.c (ipa_write_summaries): Use it.
9075 (ipa_write_optimization_summaries): Do not modify bodies.
9076 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9077 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9078 * tree-ssa-dse.c (pass_dse::execute): Update use of
9079 renumber_gimple_stmt_uids.
9080 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9082 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9084 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9085 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9087 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9089 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9091 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9092 Also define DFP macros for these conditions.
9093 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9094 DEC128_SUBNORMAL_MIN): Do not define.
9095 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9096 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9098 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9099 Sandra Loosemore <sandra@codesourcery.com>
9102 * doc/lto.texi (IPA): Reference to the IPA passes.
9103 * doc/passes.texi (Pass manager): Add node IPA passes and
9104 description for each IPA pass.
9106 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9108 * ipa-reference.c: Do not include splay-tree.h
9109 (reference_vars_to_consider): Turn to hash map.
9110 (get_static_name, ipa_init, analyze_function, propagate,
9111 stream_out_bitmap, ipa_reference_write_optimization_summary,
9112 ipa_reference_write_optimization_summary): Update.
9114 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9116 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9118 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9120 * config/darwin.c: Lookup Objective C metadata and force indirection
9123 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9125 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9127 (mem_operand_gpr): Add check for prefixed addresses.
9128 (mem_operand_ds_form): Add check for prefixed addresses.
9129 (rs6000_legitimate_offset_address_p): If we support prefixed
9130 addresses, check for a 34-bit offset instead of 16-bit.
9131 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9132 Do not allow load/store with update if the address is prefixed.
9133 (rs6000_mode_dependent_address): If we support prefixed
9134 addresses, check for a 34-bit offset instead of 16-bit.
9136 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9139 * config/s390/vector.md (vcond_comparison_operator): New
9141 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9143 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9146 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9148 * configure.ac (--with-documentation-root-url): New option.
9149 * configure: Regenerate.
9150 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9151 option URL, add it as a new string field of the diagnostic option.
9152 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9153 (print_option_information): If get_option_url is non-NULL, call
9154 it, and if the result is non-NULL, potentially emit an escape
9155 sequence to markup the option text with the resulting URL.
9156 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9157 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9158 example of JSON output.
9159 * opts-diagnostic.h (get_option_url): New decl.
9160 * opts.c (get_option_url): New function.
9161 * toplev.c (general_init): Initialize the get_option_url callback.
9163 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9166 * common.opt (fdiagnostics-urls=): New option.
9167 (diagnostic-url.h): Add SourceInclude.
9168 (diagnostic_url_rule): New enum.
9169 * diagnostic-color.c: Include "diagnostic-url.h".
9170 (diagnostic_urls_enabled_p): New function.
9171 * diagnostic-url.h: New file.
9172 * diagnostic.c: Include "diagnostic-url.h".
9173 (diagnostic_urls_init): New function.
9174 * diagnostic.h (diagnostic_urls_init): New decl.
9175 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9176 -fdiagnostics-urls to the list.
9177 (-fdiagnostics-urls): New option.
9178 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9179 (driver::global_initializations): Call diagnostic_urls_init.
9180 * opts-global.c (init_options_once): Likewise.
9181 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9182 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9184 (pp_begin_url): New function.
9185 (pp_end_url): New function.
9186 (selftest::test_urls): New selftest.
9187 (selftest::pretty_print_c_tests): Call it.
9188 * pretty-print.h (pretty_printer::show_urls): New field.
9189 (pp_begin_url): New decl.
9190 (pp_end_url): New decl.
9192 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9195 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9197 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9200 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9201 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9202 also for TARGET_FPU_SH4_300.
9203 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9205 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9206 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9207 (*negsf2_i): Split into ...
9208 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9209 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9210 (**abssf2_i): Split into ...
9211 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9212 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9213 (*negdf2_i): Split into ...
9214 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9215 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9216 (**abssf2_i): Split into ...
9217 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9219 2019-10-10 Richard Biener <rguenther@suse.de>
9222 * opts.c (finish_options): Do not influence global --params
9223 from options that are adjustable per function.
9224 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9225 Apply --param adjustment based on active cost-model.
9226 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9227 further store-sinking when vectorization or if-conversion
9230 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9233 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9234 rather than ggc_alloc_cleared to alloc symbol table.
9235 * toplev.c (general_init): Likewise.
9236 * cgraph.h (symbol_table): Explicitly construct every field.
9238 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9240 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9242 * config.gcc: Add z15 as option for --with-arch and --with-tune
9244 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9245 error reporting for unsupported builtins.
9246 * config/s390/s390-opts.h (enum processor_type): Rename
9247 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9248 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9249 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9251 * config/s390/s390-builtins.def: Likewise.
9252 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9253 (s390_expand_builtin): Add missing check for unsupported builtins.
9254 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9255 (s390_rtx_costs): Likewise.
9256 (s390_get_sched_attrmask): Rename arch13 to z15.
9257 (s390_get_unit_mask): Likewise.
9258 (s390_is_fpd): Likewise.
9259 (s390_is_fxd): Likewise.
9260 * config/s390/s390.h (enum processor_flags): Likewise.
9261 * config/s390/s390.md: Likewise.
9262 * config/s390/vector.md: Likewise.
9263 * config/s390/vx-builtins.md: Likewise.
9264 * config/s390/s390.opt: Add z15 to processor_type value.
9266 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9269 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9271 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9272 ("split_stack_data", "split_stack_call")
9273 ("split_stack_call_<mode>", "split_stack_cond_call")
9274 ("split_stack_cond_call_<mode>"): Remove.
9275 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9277 * config/s390/s390.c (s390_output_split_stack_data): New function.
9278 (s390_expand_split_stack_prologue): Use the merged expander.
9280 2019-10-09 Martin Sebor <msebor@redhat.com>
9282 PR tree-optimization/90879
9283 * builtins.c (check_access): Avoid using maxbound when null.
9284 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9285 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9286 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9288 (get_range_strlen): Overwrite initial maxbound when non-null.
9289 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9291 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9292 (used_only_for_zero_equality): New function.
9293 (handle_builtin_memcmp): Call it.
9294 (determine_min_objsize): Return an integer instead of tree.
9295 (get_len_or_size, strxcmp_eqz_result): New functions.
9296 (maybe_warn_pointless_strcmp): New function.
9297 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9298 between a longer string and a smaller array.
9299 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9301 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9303 * config/darwin.c (darwin_override_options): Make the check for
9304 Objective-C ABI version more specific for 64bit code.
9306 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9308 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9309 indicate that the new symbol is an indirection.
9310 (machopic_indirect_call_target): Likewise.
9311 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9312 (MACHO_SYMBOL_INDIRECTION_P): New.
9313 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9315 2019-10-08 Jason Merrill <jason@redhat.com>
9317 * doc/invoke.texi: Document -fconcepts-ts.
9319 2019-10-09 Richard Biener <rguenther@suse.de>
9321 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9322 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9324 2019-10-08 Richard Biener <rguenther@suse.de>
9326 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9327 (_stmt_vec_info::force_single_cycle): Likewise.
9328 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9329 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9330 * tree-vect-loop.c (vectorizable_reduction): Set
9331 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9332 (vect_transform_reduction): Use them to remove redundant code.
9333 (vect_transform_cycle_phi): Likewise.
9335 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9337 PR tree-optimization/90836
9338 * match.pd (popcount): New pattern.
9340 2019-10-08 Martin Sebor <msebor@redhat.com>
9344 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9345 again once nbytes has been set. Set the access size when not yet set.
9347 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9349 * config/darwin.c (machopic_select_section): Remove dead code for
9350 old Objective-C section selection method, replace with unreachable.
9352 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9354 * config/darwin.c (machopic_indirect_data_reference): Check for
9355 required indirections before making direct access to defined
9357 (machopic_output_indirection): Place the indirected pointes for
9358 required indirections into the non-lazy symbol pointers section.
9359 (darwin_encode_section_info):
9360 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9361 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9363 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9366 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9367 instead of ALL_SSE_REG to check if function call preserves some
9368 256-bit SSE registers.
9370 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9372 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9373 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9374 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9376 2019-10-08 Richard Biener <rguenther@suse.de>
9378 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9379 (_stmt_vec_info::is_reduc_info): Add.
9380 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9381 (vectorizable_condition): Remove.
9382 (vectorizable_shift): Likewise.
9383 (vectorizable_reduction): Adjust.
9384 (info_for_reduction): New.
9385 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9386 (vect_analyze_scalar_cycles_1): ... here.
9387 (vect_analyze_loop_operations): Adjust.
9388 (needs_fold_left_reduction_p): Simplify for single caller.
9389 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9390 for nested cycles not part of double reductions.
9391 (vect_model_reduction_cost): Pass in the reduction type.
9392 (info_for_reduction): New function.
9393 (vect_create_epilog_for_reduction): Use it, access reduction
9394 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9395 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9396 (vectorize_fold_left_reduction): Remove pointless assert.
9397 (vectorizable_reduction): Analyze the full reduction when
9398 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9399 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9400 stmt code-generation to vectorizable_* in most cases. Verify
9401 code-generation only for cases handled by
9402 vect_transform_reductuon.
9403 (vect_transform_reduction): Use info_for_reduction to get at
9404 reduction meta. Simplify.
9405 (vect_transform_cycle_phi): Likewise.
9406 (vectorizable_live_operation): Likewise.
9407 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9408 at the PHI node for STMT_VINFO_REDUC_TYPE.
9409 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9410 longer necessary code.
9411 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9412 (vectorizable_condition): Likewise. Get at reduction related
9413 info via info_for_reduction.
9414 (vect_analyze_stmt): Adjust.
9415 (vect_transform_stmt): Likewise.
9416 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9417 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9419 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9421 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9422 -fno-fp-int-builtin-inexact default for C2X.
9424 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9425 Richard Biener <rguenther@suse.de>
9427 PR tree-optimization/91532
9428 * tree-if-conv.c: Include tree-ssa-dse.h.
9429 (ifcvt_local_dce): Change param from bb to loop,
9430 and call dse_classify_store.
9431 (tree_if_conversion): Pass loop instead of loop->header as arg
9433 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9434 (delete_dead_or_redundant_assignment): Remove static qualifier from
9435 declaration, and add prototype in tree-ssa-dse.h.
9436 (dse_store_status): Move to tree-ssa-dse.h.
9437 (dse_classify_store): Remove static qualifier and add new tree param
9438 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9439 * tree-ssa-dse.h: New header.
9441 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9443 * config/darwin.c (machopic_output_indirection): Don't put
9444 hidden symbol indirections into the .data section, use the
9445 non-lazy symbol pointers section as normal.
9446 (darwin_encode_section_info): Record if a symbol is hidden.
9447 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9448 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9450 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9452 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9453 predicates instead of accessing bits directly.
9454 (machopic_indirect_call_target): Likewise.
9455 (machopic_output_indirection): Likewise.
9456 (darwin_encode_section_info): Improve description. Use renamed
9457 symbol flags. Use predicate macros for variables and functions.
9459 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9460 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9461 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9462 (MACHO_SYMBOL_VARIABLE_P): New.
9463 (MACHO_SYMBOL_DEFINED_P):New.
9464 (MACHO_SYMBOL_STATIC_P): New.
9465 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9466 (SYMBOL_FLAG_SUBT_DEP): New.
9467 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9469 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9471 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9472 (msp430_expand_epilogue): Likewise.
9473 * config/msp430/predicates.md: Likewise.
9474 * config/msp430/msp430.md: Likewise.
9475 Replace blocks of 8 spaces with tabs.
9477 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9479 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9480 * config/msp430/msp430.c (msp430_split_addsi): New.
9481 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9482 a block of C code for splitting addsi.
9484 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9486 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9487 ix86_expand_rounddf_32): Reorder functions.
9488 * config/i386/i386-protos.h: Update.
9490 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9492 * config.in: Regenerate.
9493 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9494 Add new "Yx" constraint.
9495 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9497 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9499 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9500 code/data region to be selected in the small memory model.
9501 (msp430_section_attr): Don't warn if the "section" and "lower"
9502 attributes are used together.
9503 (msp430_handle_generic_attribute): Likewise.
9504 (msp430_var_in_low_mem): New function.
9505 (TARGET_ENCODE_SECTION_INFO): Define.
9506 (msp430_encode_section_info): New function.
9507 (gen_prefix): Return early in the small memory model.
9508 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9509 ".lower" prefix if -m{code,data}-region=lower have been passed.
9510 (msp430_output_aligned_decl_common): Emit common symbols when
9511 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9513 (TARGET_ASM_FILE_END): Define.
9514 (msp430_file_end): New function.
9515 (msp430_do_not_relax_short_jumps): Allow relaxation when
9516 function will be in the lower region.
9517 (msp430_op_not_in_high_mem): New function.
9518 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9519 the 'X' operand selector.
9520 Clarify comment for 'x' operand selector.
9521 * config/msp430/msp430.h (LINK_SPEC): Propagate
9522 -m{code,data}-region to the linker via spec function
9523 msp430_propagate_region_opt.
9524 (msp430_propagate_region_opt): New prototype.
9525 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9526 (SYMBOL_FLAG_LOW_MEM): Define.
9527 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9529 (zero_extendqihi2): Fix operand number used by "%X" selector.
9530 (zero_extendqisi2): Likewise.
9531 (zero_extendhisi2): Likewise.
9532 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9537 (addhi3_cy): Likewise.
9538 (addchi4_cy): Likewise.
9542 (bic<mode>3): Likewise.
9543 (and<mode>3): Likewise.
9544 (ior<mode>3): Likewise.
9545 (xor<mode>3): Likewise.
9546 (slli_1): Add missing "%X" operand selector.
9554 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9556 (cbranchhi4_real): Likewise.
9557 (cbranchqi4_reversed): Likewise.
9558 (cbranchhi4_reversed): Likewise.
9559 (*bitbranch<mode>4): Likewise.
9560 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9561 * config/msp430/msp430.opt (mcode-region=): Set default to
9562 MSP430_REGION_LOWER. Improve docstring.
9563 (mdata-region=): Likewise.
9564 (muse-lower-region-prefix): New option.
9565 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9566 mdata-region=none multilib.
9567 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9568 mdata-region=none multilib.
9569 MULTILIB_EXCEPTIONS: Remove.
9570 MULTILIB_REQUIRED: Define.
9571 * configure: Regenerate.
9572 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9573 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9574 * doc/extend.texi: Clarify comment for {upper,lower,either}
9575 function attributes.
9576 Add separate description for "lower" variable attribute.
9578 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9581 * optabs-tree.c (vcond_icode_p): New function.
9582 (vcond_eq_icode_p): Likewise.
9583 (expand_vec_cond_expr_p): Use vcond_icode_p and
9585 * optabs.c (can_vcond_compare_p): New function.
9586 * optabs.h (can_vcond_compare_p): Likewise.
9588 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9591 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9592 caller passes a non-trapping condition.
9593 (is_gimple_condexpr): Allow trapping conditions.
9594 (is_gimple_condexpr_1): New helper function.
9595 (is_gimple_condexpr_for_cond): New function, acts like old
9597 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9598 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9599 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9600 * gimplify.c (gimplify_cond_expr): Use
9601 is_gimple_condexpr_for_cond.
9602 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9603 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9605 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9606 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9607 is_gimple_condexpr_for_cond, remove pointless tmp check
9608 (forward_propagate_into_cond): Remove pointless tmp check.
9610 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9612 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9613 match that of other gsi_next_* functions. Adjust the comment.
9614 (gsi_start_nonvirtual_phis): New function.
9615 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9616 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9618 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9620 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9621 setjmp situation here. Fix a verb's ending: "the exact variables or
9622 elements for which there are warnings depends" -> "... depend".
9624 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9626 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9628 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9630 * ipa-prop.c (ipa_vr::nonzero_p): New.
9631 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9633 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9634 * tree-vrp.c (range_has_numeric_bounds_p): New.
9635 (range_int_cst_p): Use range_has_numeric_bounds_p.
9636 (get_range_op_handler): New.
9637 (supported_types_p): New.
9638 (defined_ranges_p): New.
9639 (drop_undefines_to_varying): New.
9640 (range_fold_binary_symbolics_p): New.
9641 (range_fold_unary_symbolics_p): New.
9642 (range_fold_unary_expr): Extract out into above functions.
9643 (range_fold_binary_expr): Same.
9644 (value_range_base::normalize_addresses): New.
9645 (value_range_base::normalize_symbolics): Normalize addresses.
9646 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9648 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9650 * tree-vrp.c (value_range_base::singleton_p): Use
9651 value_range_base::num_pairs instead of vrp_val_is* to check
9652 if a range has one sub-range.
9654 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9656 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9657 DEF is not a true earlyclobber but is tied to a specific input
9658 operand, and so is effectively earlyclobber wrt inputs that have
9660 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9662 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9664 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9665 (pod_mode): Mark operators likewise.
9666 (scalar_int_mode): Mark non-default constructors and
9667 operators with CONSTEXPR.
9668 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9669 (fixed_size_mode): Likewise.
9671 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9674 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9675 and wrap the unspec_volatile in a parallel.
9676 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9677 the unspec_volatile.
9678 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9679 unspec_volatile to be wrapped in a parallel.
9680 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9681 (ix86_add_reg_usage_to_vzerouppers): New functions.
9682 (rest_of_handle_insert_vzeroupper): Use them to add register
9683 usage information to the vzeroupper instructions.
9685 2019-10-07 Richard Biener <rguenther@suse.de>
9687 PR tree-optimization/91975
9688 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9691 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9693 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9694 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9696 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9698 * config/darwin.c (darwin_override_options): Adjust objective-c
9699 ABI version error messages to avoid punctuation and contracted
9702 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9704 * ipa-inline.c: Fix type; compute size rather than self_size
9705 for size of caller function.
9707 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9710 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9711 choose const_data section for constants with relocations.
9712 (machopic_select_section): Pass relocation flag to
9713 darwin_rodata_section ().
9715 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9717 PR tree-optimization/91734
9718 * generic-match-head.c: Include fold-const-call.h.
9719 * match.pd (sqrt(x) cmp c): Check the boundary value and
9720 in case inexact computation of c*c affects comparison of the boundary,
9721 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9722 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9723 for -frounding-math. For c2, try the next smaller or larger floating
9724 point constant depending on comparison code and if it has the same
9725 sqrt as c2, use it instead of c2.
9727 2019-10-04 Martin Sebor <msebor@redhat.com>
9730 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9731 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9732 uninitialized objects.
9734 2019-10-04 Martin Sebor <msebor@redhat.com>
9736 * builtins.c (compute_objsize): Add an argument.
9737 * tree-object-size.c (addr_object_size): Same.
9738 (compute_builtin_object_size): Same.
9739 * tree-object-size.h (compute_builtin_object): Same.
9741 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9743 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9745 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9747 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9749 2019-10-04 Martin Jambor <mjambor@suse.cz>
9751 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9752 fntype when switching to calling memcpy instead of memset.
9754 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9756 * hash-table.h (hash_table::empty_slow): Don't assign
9757 size_t values to int variables.
9759 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9761 * expr.c (convert_mode_scalar): Remove shadowing local var.
9762 (emit_block_move): Rename local vars.
9763 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9764 (emit_push_insn): Rename local vars.
9765 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9766 shadowing local vars.
9767 (store_constructor): Remove shadowing local vars. Rename local var.
9768 (store_field, expand_cond_expr_using_cmove,
9769 expand_expr_real_2): Remove shadowing local vars.
9770 (expand_expr_real_1,
9771 do_store_flag): Remove shadowing local vars. Rename local vars.
9773 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9775 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9777 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9779 * genmatch.c (commutate): Rename local var.
9780 (lower_cond): Reuse local var.
9781 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9782 dt_operand::gen, dt_operand::gen_gimple_expr,
9783 dt_simplify::gen): Add a param. Rename generated vars.
9784 (decision_tree::insert_operand,
9785 (capture_info::walk_match, capture_info::walk_result,
9786 capture_info::walk_c_expr): Rename local vars.
9787 (expr::gen_transform): Rename generated vars.
9788 Use snprintf. Rename local vars.
9789 (capture::gen_transform, dt_operand::get_name,
9790 dt_operand::gen_opname): Rename generated vars.
9791 (write_predicate): Adjust call to gen_kids.
9792 (parser::get_internal_capture_id): Rename generated vars.
9793 (parser::parse_expr): Rename local vars.
9794 (parser::parse_if): Remove local var.
9795 (parser::parse_pattern, add_operator): Rename local vars.
9797 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9799 * builtins.def (DEF_C2X_BUILTIN): New macro.
9800 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9801 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9802 (strndup): Use DEF_C2X_BUILTIN.
9803 * coretypes.h (enum function_class): Add function_c2x_misc.
9805 2019-10-04 Maya Rashish <coypu@sdf.org>
9807 * ira-color.c (update_costs_from_allocno): Call
9808 ira_init_register_move_cost_if_necessary.
9810 2019-10-04 Jeff Law <law@redhat.com>
9812 * config/h8300/h8300.md (cpymemsi): Disable.
9813 (movmd, movmd_internal_<mode>, movstr, movsd):
9814 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9815 (movmd splitter, movsd splitter): Likewise.
9817 * range-op.cc (range_tests): Avoid two tests when ints and
9818 shorts are the same size.
9820 2019-10-04 Richard Biener <rguenther@suse.de>
9823 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9826 2019-10-04 Richard Biener <rguenther@suse.de>
9828 PR tree-optimization/91982
9829 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9830 against EXTRACT_LAST_REDUCTION.
9831 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9833 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9835 * range-op.o (value_range_from_overflowed_bounds): Rename from
9836 adjust_overflow_bound.
9837 (value_range_with_overflow): Rename from
9838 create_range_with_overflow.
9839 (create_possibly_reversed_range): Adjusted for above renames.
9840 (operator_*::wi_fold): Same.
9841 (cross_product_operator::wi_cross_productor): Same.
9843 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9845 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9846 -Wshadow=compatible-local): Fix description.
9847 Add an example where -Wshadow=compatible-local does not
9850 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9852 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9854 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9855 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9857 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9859 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9860 can_move_by_pieces issue.
9862 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9865 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9866 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9867 is available and the user has not set one on the command line.
9869 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9872 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9873 instead of REGNO equality check on addr.reg.
9875 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9877 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9878 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9879 * doc/invoke.texi (inline-heuristics-hint-percent,
9880 inline-heuristics-hint-percent-O2): Document.
9881 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9883 (can_inline_edge_by_limits_p): Use it.
9885 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9887 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9888 to print CONST_DOUBLEs.
9890 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9892 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9893 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9894 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9896 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9898 * Makefile.in (OBJS): Add range.o and range-op.o.
9899 Remove wide-int-range.o.
9900 * function-tests.c (test_ranges): New.
9901 (function_tests_c_tests): Call test_ranges.
9902 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9903 range_fold_unary_expr instead of extract_range_from_unary_expr.
9904 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9905 * range-op.cc: New file.
9906 * range-op.h: New file.
9907 * range.cc: New file.
9908 * range.h: New file.
9909 * selftest.h (range_tests): New prototype.
9910 * ssa.h: Include range.h.
9911 * tree-vrp.c (value_range_base::value_range_base): New
9913 (value_range_base::singleton_p): Do not call
9914 ranges_from_anti_range until sure we will need to.
9915 (value_range_base::type): Rename gcc_assert to
9916 gcc_checking_assert.
9917 (vrp_val_is_max): New argument.
9918 (vrp_val_is_min): Same.
9919 (wide_int_range_set_zero_nonzero_bits): Move from
9921 (extract_range_into_wide_ints): Remove.
9922 (extract_range_from_multiplicative_op): Remove.
9923 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9924 from extract_range_from_binary_expr.
9925 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9926 from extract_range_from_binary_expr.
9927 (extract_range_from_binary_expr): Remove.
9928 (normalize_for_range_ops): New.
9929 (range_fold_binary_expr): New.
9930 (range_fold_unary_expr): New.
9931 (value_range_base::num_pairs): New.
9932 (value_range_base::lower_bound): New.
9933 (value_range_base::upper_bound): New.
9934 (value_range_base::upper_bound): New.
9935 (value_range_base::contains_p): New.
9936 (value_range_base::invert): New.
9937 (value_range_base::union_): New.
9938 (value_range_base::intersect): New.
9939 (range_compatible_p): New.
9940 (value_range_base::operator==): New.
9941 (determine_value_range_1): Call range_fold_*expr instead of
9942 extract_range_from_*expr.
9943 * tree-vrp.h (class value_range_base): Add new constructors.
9944 Add methods for union_, intersect, operator==, contains_p,
9945 num_pairs, lower_bound, upper_bound, invert.
9946 (vrp_val_is_min): Add handle_pointers argument.
9947 (vrp_val_is_max): Same.
9948 (extract_range_from_unary_expr): Remove.
9949 (extract_range_from_binary_expr): Remove.
9950 (range_fold_unary_expr): New.
9951 (range_fold_binary_expr): New.
9952 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
9953 range_fold_binary_expr instead of extract_range_from_binary_expr.
9954 (vr_values::extract_range_basic): Same.
9955 (vr_values::extract_range_from_unary_expr): Call
9956 range_fold_unary_expr instead of extract_range_from_unary_expr.
9957 * wide-int-range.cc: Remove.
9958 * wide-int-range.h: Remove.
9960 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
9962 * config/rs6000/rs6000.c (mem_operand_gpr): Use
9963 SIGNED_16BIT_OFFSET_EXTRA_P macro.
9964 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
9965 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
9968 2019-10-02 Joseph Myers <joseph@codesourcery.com>
9970 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
9971 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
9972 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
9973 * glimits.h: Likewise.
9975 2019-10-03 Jakub Jelinek <jakub@redhat.com>
9977 PR rtl-optimization/91976
9978 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
9979 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
9980 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
9982 2019-10-02 Martin Sebor <msebor@redhat.com>
9984 PR tree-optimization/80936
9985 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
9987 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
9989 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
9990 instead of reg_class_contents[ALL_REGS].
9992 2019-09-30 Jason Merrill <jason@redhat.com>
9994 Add some hash_map_safe_* functions like vec_safe_*.
9995 * hash-map.h (default_hash_map_size): New variable.
9996 (create_ggc): Use it as default argument.
9997 (hash_map_maybe_create, hash_map_safe_get)
9998 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10000 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10002 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10003 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10004 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10005 (can_inline_edge_by_limits_p): Use it.
10006 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10007 (want_inline_small_function_p): Use O2 bounds.
10008 (edge_badness): LIkewise.
10009 * opts.c (default_options): Add OPT_finline_functions.
10010 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10011 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10013 * doc/invoke.texi (-finline-functions): Update documentation.
10014 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10015 inline-min-speedup-O2): Document.
10016 (early-inlining-insns-O2): Simplify docs.
10018 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10020 PR rtl-optimization/87047
10021 * ifcvt.c (average_cost): New static function. Use it...
10022 (noce_process_if_block): ... here.
10024 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10026 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10027 * config/rs6000/rs6000-string.c (expand_block_move): Add
10028 might_overlap parm.
10029 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10030 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10032 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10034 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10035 (expand_builtin_memcpy): Use might_overlap parm.
10036 (expand_builtin_mempcpy_args): Use might_overlap parm.
10037 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10038 (expand_builtin_memory_copy_args): Add might_overlap parm.
10039 * expr.c (emit_block_move_via_cpymem): Rename to
10040 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10041 or movmem optab as appropriate.
10042 (emit_block_move_hints): Add might_overlap parm, do the right
10043 thing for might_overlap==true.
10044 * expr.h (emit_block_move_hints): Update prototype.
10046 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10048 * tree-eh.h (unsplit_eh_edges): Declare.
10049 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10050 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10051 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10052 (struct store_immediate_info): Add lp_nr field.
10053 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10054 initialize lp_nr with it.
10055 (struct merged_store_group): Add lp_nr and only_constants fields.
10056 (merged_store_group::merged_store_group): Initialize them.
10057 (merged_store_group::can_be_merged_into): Deal with them.
10058 (pass_store_merging): Rename terminate_and_release_chain into
10059 terminate_and_process_chain.
10060 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10061 renaming and remove useless assertions.
10062 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10063 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10064 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10065 instead of always recomputing it and compare lp_nr.
10066 (imm_store_chain_info::output_merged_store): If the group is in an
10067 active EH region, register new stores if they can throw. Moreover,
10068 if the insertion has created new basic blocks, adjust the PHI nodes
10069 of the post landing pad.
10070 (imm_store_chain_info::output_merged_stores): If the original stores
10071 are in an active EH region, deregister them.
10072 (lhs_valid_for_store_merging_p): Prettify.
10073 (adjust_bit_pos): New function extracted from...
10074 (mem_valid_for_store_merging): ...here. Use it for the base address
10075 and also for the offset if it is the addition of a constant.
10076 (lp_nr_for_store): New function.
10077 (pass_store_merging::process_store): Change return type to bool.
10078 Call lp_nr_for_store to initialize the store info. Propagate the
10079 return status of various called functions to the return value.
10080 (store_valid_for_store_merging_p): New predicate.
10081 (enum basic_block_status): New enumeration.
10082 (get_status_for_store_merging): New function.
10083 (pass_store_merging::execute): If the function can throw and catch
10084 non-call exceptions, unsplit the EH edges on entry and clean up the
10085 CFG on exit if something changed. Call get_status_for_store_merging
10086 for every basic block and keep the chains open across basic blocks
10087 when possible. Terminate and process open chains at the end, if any.
10089 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10091 * reginfo.c (globalize_reg): Fix shadowed variable in
10092 function_abis walk.
10094 2019-10-02 Martin Jambor <mjambor@suse.cz>
10096 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10097 do not compute some stuff when set.
10098 (cgraph_node::create_edge): Likewise.
10099 (cgraph_node::create_indirect_edge): Renamed last parameter to
10100 coning_p and flipped its meaning, don't even calculate
10101 inline_failed when set.
10102 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10103 (symbol_table::::create_edge): Likewise.
10104 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10106 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10107 call graph edge creating functions.
10109 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10112 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10115 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10117 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10119 2019-10-02 Richard Biener <rguenther@suse.de>
10121 * tree-vectorizer.h (vect_transform_reduction): Declare.
10122 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10123 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10124 stmt transform to ...
10125 (vect_transform_reduction): ... this.
10127 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10129 * omp-low.c (lower_omp_target): Dereference optional argument
10130 to work with the right pointer.
10132 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10134 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10136 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10137 * langhooks.h (omp_is_optional_argument): New hook.
10138 * omp-general.c (omp_is_optional_argument): New.
10139 * omp-general.h (omp_is_optional_argument): New declaration.
10140 * omp-low.c (lower_omp_target): Create temporary for received value
10141 and take the address for new_var if the original variable was a
10142 DECL_BY_REFERENCE. Use size of referenced object when a
10143 pass-by-reference optional argument used as argument to firstprivate.
10145 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10147 PR tree-optimization/91940
10148 * tree-vect-patterns.c: Include tree-vector-builder.h and
10149 vec-perm-indices.h.
10150 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10151 unpromoting the argument back to uint16_t, or by converting into a
10152 rotate, or into shifts plus ior.
10154 2019-10-02 Richard Biener <rguenther@suse.de>
10156 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10158 (vect_transform_cycle_phi): Declare.
10159 * tree-vect-stmts.c (vect_transform_stmt): Call
10160 vect_transform_cycle_phi.
10161 * tree-vect-loop.c (vectorizable_reduction): Split out
10162 PHI transformation stage to ...
10163 (vect_transform_cycle_phi): ... here.
10165 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10167 PR middle-end/91957
10168 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10169 eliminable registers.
10170 (make_hard_regno_live): Likewise, and don't make them live.
10172 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10174 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10175 Call pp_emit_prefix.
10176 (layout::print_source_line): Likewise.
10177 (layout::start_annotation_line): Likewise.
10178 (diagnostic_show_locus): Remove call to temporarily clear the
10180 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10181 interaction of pp_set_prefix with rulers and fix-it hints.
10182 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10183 prefix when calling diagnostic_show_locus, rather than destroying
10185 (print_parseable_fixits): Temporarily clear prefix.
10186 * pretty-print.c (pp_format): Save and restore line_length, rather
10187 than assuming it is zero.
10188 (pp_output_formatted_text): Remove assertion that line_length is
10191 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10193 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10195 (nonoverlapping_refs_since_match_p): ... this; handle also
10197 (alias_stats): Update stats.
10198 (dump_alias_stats): Likewise.
10199 (cheap_array_ref_low_bound): New function.
10200 (aliasing_matching_component_refs_p): Add partial_overlap
10202 pass it to nonoverlapping_refs_since_match_p.
10203 (aliasing_component_refs_walk): Update call of
10204 aliasing_matching_component_refs_p
10205 (nonoverlapping_array_refs_p): New function.
10206 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10207 indirect_refs_may_alias_p): Update calls of
10208 nonoverlapping_refs_since_match_p.
10210 2019-10-01 Maya Rashish <coypu@sdf.org>
10213 * ira-color.c (allocno_copy_cost_saving): Call
10214 ira_init_register_move_cost_if_necessary.
10216 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10218 * Makefile.in (gnat_install_lib): New variable.
10219 * configure.ac: Substitute it.
10220 * configure: Regenerate.
10222 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10225 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10226 is matched with non-C++ type
10228 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10230 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10233 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10235 * doc/invoke.texi (early-inlining-insns-O2): Document.
10236 (early-inlining-insns): Update.
10237 * params.def (early-inlining-insns-O2): New bound.
10238 (early-inlining-insns): Update docs.
10239 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10241 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10244 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10245 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10246 a memory access insn.
10248 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10250 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10253 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10256 * config/s390/s390.c (s390_expand_vec_compare): Use
10257 gen_vec_cmpordered and gen_vec_cmpunordered.
10258 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10259 vec_unordered): Delete.
10260 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10261 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10262 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10263 (vec_cmp<code>): Generic dispatcher.
10265 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10268 * config/s390/vector.md (V_HW): Add V1TI in order to make
10269 vcond$a$b generate vcondv1tiv1tf.
10271 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10273 PR rtl-optimization/91948
10274 * ira-build.c (ira_create_allocno): Initialize
10275 ALLOCNO_CROSSED_CALLS_ABIS.
10276 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10277 than regno to ira_need_caller_save_p.
10279 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10281 * config/i386/i386-options.c
10282 (ix86_recompute_optlev_based_flags): New, moved out of...
10283 (ix86_option_override_internal): ... this. Call it.
10284 (ix86_override_options_after_change): Call it here too.
10287 * dwarf2out.c (override_type_for_decl_p): New.
10288 (gen_variable_die): Use it.
10290 2019-10-01 Richard Biener <rguenther@suse.de>
10292 * tree-vect-loop.c (vectorizable_reduction): Move variables
10293 to where they are used.
10295 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10297 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10298 (build_def_use): Use PC instead of CC0 in a comment.
10300 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10302 * rtl.def (CLOBBER_HIGH): Delete.
10303 * doc/rtl.texi (clobber_high): Remove documentation.
10304 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10305 (reg_is_clobbered_by_clobber_high): Delete.
10306 (gen_hard_reg_clobber_high): Likewise.
10307 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10308 * cfgexpand.c (expand_gimple_stmt): Likewise.
10309 * combine-stack-adj.c (single_set_for_csa): Likewise.
10310 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10311 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10312 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10313 * cse.c (invalidate_reg): Remove clobber_high parameter.
10314 (invalidate): Update call accordingly.
10315 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10316 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10317 (count_reg_usage, insn_live_p): Likewise.
10318 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10319 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10320 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10321 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10322 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10323 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10324 (mark_nonreg_stores_2): Likewise.
10325 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10326 (df_get_call_refs): Likewise.
10327 * dwarf2out.c (mem_loc_descriptor): Likewise.
10328 * emit-rtl.c (verify_rtx_sharing): Likewise.
10329 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10330 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10331 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10332 * genemit.c (gen_exp, gen_insn): Likewise.
10333 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10334 * haifa-sched.c (haifa_classify_rtx): Likewise.
10335 * ira-build.c (create_insn_allocnos): Likewise.
10336 * ira-costs.c (scan_one_insn): Likewise.
10337 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10338 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10339 * jump.c (mark_jump_label_1): Likewise.
10340 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10341 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10343 (mark_not_eliminable): Likewise.
10344 * lra-lives.c (process_bb_lives): Likewise.
10345 * lra.c (new_insn_reg): Remove clobber_high parameter.
10346 (collect_non_operand_hard_regs): Likewise. Update call to new
10347 insn_reg. Remove CLOBBER_HIGH handling.
10348 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10349 to collect_non_operand_hard_regs.
10350 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10351 Update call to new_insn_reg.
10352 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10353 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10354 (move2add_note_store): Likewise.
10355 * print-rtl.c (print_pattern): Likewise.
10356 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10357 (if_test_bypass_p): Likewise.
10358 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10359 * reginfo.c (reg_scan_mark_refs): Likewise.
10360 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10361 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10362 (forget_old_reloads_1): Likewise.
10363 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10364 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10365 (dbr_schedule): Likewise.
10366 * resource.c (update_live_status, mark_referenced_resources)
10367 (mark_set_resources): Likewise.
10368 * rtl.c (copy_rtx): Likewise.
10369 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10370 (note_pattern_stores): Likewise.
10371 (reg_is_clobbered_by_clobber_high): Delete.
10372 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10373 CLOBBER_HIGH handling.
10375 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10378 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10379 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10380 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10381 Handle ARM_PCS_TLSDESC.
10382 (aarch64_tlsdesc_abi_id): New function.
10383 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10384 rtx instead of a list of clobbers and clobber_highs.
10385 (tlsdesc_small_<mode>): Update accordingly.
10387 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10389 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10390 extra callee_abi argument.
10391 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10392 Insert a CALLEE_ABI unspec into the call pattern as the second
10393 element in the PARALLEL.
10394 (aarch64_simd_call_p): Delete.
10395 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10396 the new CALLEE_ABI element of the PARALLEL.
10397 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10398 from the function type, if given.
10399 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10400 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10401 when passed the function_arg_info end marker.
10402 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10403 final argument of gen_sibcall.
10404 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10405 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10406 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10408 (call_value): Likewise operand 3.
10409 (sibcall): Likewise operand 2. Place the unspec before rather than
10411 (sibcall_value): Likewise operand 3.
10412 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10413 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10414 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10415 constraint strings.
10416 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10418 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10420 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10421 choose_hard_reg_mode.
10422 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10424 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10426 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10427 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10428 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10430 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10432 * diagnostic-show-locus.c (line_label::line_label): Initialize
10434 (line_label::comparator): Reverse the sort order by m_state_idx,
10435 so that when the list is walked backwards the labels appear in
10436 order of insertion into the rich_location.
10437 (line_label::m_has_vbar): New field.
10438 (layout::print_any_labels): When dealing with multiple labels at
10439 the same line and column, only print vertical bars for the one
10440 with the highest label_line.
10441 (selftest::test_one_liner_labels): Update test for multiple labels
10442 to expect the labels to be in the order of insertion into the
10443 rich_location. Add a test for many such labels, where the column
10444 numbers are out-of-order relative to the insertion order.
10446 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10448 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10449 (ix86_frame::expensive_count): Likewise.
10450 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10451 of use_fast_prologue_epilogue robust against incidental changes
10454 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10457 * config/s390/vector.md (vec_unordered<mode>): Call
10458 gen_vec_ordered<mode>.
10460 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10462 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10463 New pattern for ASRD.
10464 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10465 * internal-fn.def (IFN_DIV_POW2): New internal function.
10466 * optabs.def (sdiv_pow2_optab): New optab.
10467 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10468 Modify pattern to support new operation.
10469 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10470 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10471 Document new target selector.
10473 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10475 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10476 to test whether we're compiling a vector PCS function and to test
10477 whether the function needs to save a particular register.
10478 Remove the vector PCS handling of df_set_regs_ever_live.
10479 (aarch64_components_for_bb): Use crtl->abi to test whether
10480 the function needs to save a particular register.
10481 (aarch64_process_components): Use crtl->abi to test whether
10482 we're compiling a vector PCS function.
10483 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10484 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10486 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10488 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10490 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10491 whether the block calls a function that clobbers more registers
10492 than the current function is allowed to.
10493 (aarch64_use_simple_return_insn_p): Delete.
10494 * config/aarch64/aarch64.md (simple_return): Remove condition.
10496 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10498 * function-abi.h (function_abi_aggregator): New class.
10499 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10501 * ira.c (update_equiv_regs_prescan): New function. Call
10502 set_paradoxical_subreg here rather than...
10503 (update_equiv_regs): ...here.
10504 (ira): Call update_equiv_regs_prescan.
10506 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10508 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10510 (call_used_or_fixed_regs): Likewise.
10511 (call_used_or_fixed_reg_p): Likewise.
10512 * reginfo.c (regs_invalidated_by_call): New macro.
10514 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10516 * shrink-wrap.c: Include function-abi.h.
10517 (requires_stack_frame_p): Use crtl->abi to test whether the
10518 current function can use a register without saving it first.
10520 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10522 * sel-sched-ir.h (_def::crosses_call): Replace with...
10523 (_def::crossed_call_abis): ..this new field.
10524 (def_list_add): Take a mask of ABIs instead of a crosses_call
10526 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10527 of _def accordingly.
10528 * sel-sched.c: Include function-abi.h.
10529 (hard_regs_data::regs_for_call_clobbered): Delete.
10530 (reg_rename::crosses_call): Replace with...
10531 (reg_rename::crossed_call_abis): ...this new field.
10532 (fur_static_params::crosses_call): Replace with...
10533 (fur_static_params::crossed_call_abis): ...this new field.
10534 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10535 (init_hard_regs_data): Use crtl->abi to test which registers the
10536 current function would need to save before it uses them.
10537 (mark_unavailable_hard_regs): Update handling of call-clobbered
10538 registers, using call_clobbers_in_region to find out which registers
10539 might be call-clobbered (but without taking -fipa-ra into account
10540 for now). Remove separate handling of partially call-clobbered
10542 (verify_target_availability): Use crossed_call_abis instead of
10544 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10545 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10547 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10549 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10550 function to test whether a register is fully or partly clobbered.
10552 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10554 * rtlanal.c: Include function-abi.h.
10555 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10556 function and clobbers_reg_p to test whether the register
10558 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10559 to get the ABI of the called function and full_reg_clobbers to
10560 get the set of fully call-clobbered registers. Warn about the
10561 pitfalls of using this mode.
10563 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10565 * reload.c: Include function-abi.h.
10566 (find_equiv_reg): Use clobbers_reg_p to test whether either
10567 of the equivalent registers is clobbered by a call.
10568 * reload1.c: Include function-abi.h.
10569 (reg_reloaded_call_part_clobbered): Delete.
10570 (reload): Use crtl->abi to test which registers would need
10571 saving in the prologue before use.
10572 (find_reg): Likewise.
10573 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10574 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10575 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10577 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10579 * regrename.h (du_head::call_clobber_mask): New field.
10580 (du_head::need_caller_save_reg): Replace with...
10581 (du_head::call_abis): ...this new field.
10582 * regrename.c: Include function-abi.h.
10583 (call_clobbered_in_chain_p): New function.
10584 (check_new_reg_p): Use crtl->abi when deciding whether a register
10585 is free for use after RA. Use call_clobbered_in_chain_p to test
10586 whether a candidate register would be clobbered by a call.
10587 (find_rename_reg): Don't add call-clobber conflicts here.
10588 (rename_chains): Check call_abis instead of need_caller_save_reg.
10589 (merge_chains): Update for changes to du_head.
10590 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10591 target. Record the ABI identifier in call_abis and the set of
10592 fully or partially clobbered registers in call_clobber_mask.
10593 Add fully-clobbered registers to hard_conflicts here rather
10594 than in find_rename_reg.
10595 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10596 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10597 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10599 * config/c6x/c6x.c: Likewise.
10601 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10603 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10604 mode of the register when deciding whether it is no longer
10605 available after a call.
10607 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10609 * recog.c: Include function-abi.h.
10610 (peep2_find_free_register): Use crtl->abi when deciding whether
10611 a register is free for use after RA.
10613 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10615 * postreload-gcse.c: Include regs.h and function-abi.h.
10616 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10617 call insn target. Conservatively assume that partially-clobbered
10618 registers are altered.
10620 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10622 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10623 when deciding whether a register is free for use after RA.
10624 (reload_combine): Remove unnecessary use of fixed_reg_set.
10625 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10626 call insn target. Use reg_mode when testing whether a register
10627 is no longer available.
10629 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10631 * target.def (return_call_with_max_clobbers): Delete.
10632 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10633 * doc/tm.texi: Regenerate.
10634 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10635 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10636 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10637 (lra_reg::call_insn): Delete.
10638 * lra.c: Include function-abi.h.
10639 (initialize_lra_reg_info_element): Don't initialize the fields above.
10640 (lra): Use crtl->abi to test whether the current function needs to
10641 save a register in the prologue. Remove special pre-inheritance
10642 lra_create_live_ranges pass for flag_ipa_ra.
10643 * lra-assigns.c: Include function-abi.h
10644 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10645 function needs to save a register in the prologue.
10646 (lra_assign): Assert that registers aren't allocated to a
10647 conflicting register, rather than checking only for overlaps
10648 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10649 and for registers that are not live across a call.
10650 * lra-constraints.c (last_call_for_abi): New variable.
10651 (full_and_partial_call_clobbers): Likewise.
10652 (setup_next_usage_insn): Remove the register from
10653 full_and_partial_call_clobbers.
10654 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10655 whether the register needs a caller save.
10656 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10657 of call_used_or_fixed_regs.
10658 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10659 full_and_partial_call_clobbers.
10660 * lra-lives.c (check_pseudos_live_through_calls): Replace
10661 last_call_used_reg_set and call_insn arguments with an abi argument.
10662 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10663 as the set of conflicting registers.
10664 (calls_have_same_clobbers_p): Delete.
10665 (process_bb_lives): Track the ABI of the last call instead of an
10666 insn/HARD_REG_SET pair. Update calls to
10667 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10668 the set of registers that could be clobbered by an EH edge.
10669 Include partially-clobbered as well as fully-clobbered registers.
10670 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10671 * lra-remat.c: Include function-abi.h.
10672 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10673 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10674 registers and bitmap_view to combine them into dead_regs.
10675 (call_used_input_regno_present_p): Take a function_abi argument
10676 and use it to test whether a register is call-clobbered.
10677 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10678 call insn target. Update tje call to call_used_input_regno_present_p.
10679 (do_remat): Likewise.
10680 (lra_remat): Remove the initialization of call_used_regs_arr_len
10681 and call_used_regs_arr.
10683 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10685 * loop-iv.c: Include regs.h and function-abi.h.
10686 (simplify_using_initial_values): Use insn_callee_abi to get the
10687 ABI of the call insn target. Conservatively assume that
10688 partially-clobbered registers are altered.
10690 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10692 * function-abi.h (call_clobbers_in_region): Declare.
10693 (call_clobbered_in_region_p): New function.
10694 * function-abi.cc (call_clobbers_in_region): Likewise.
10695 * ira-int.h: Include function-abi.h.
10696 (ira_allocno::crossed_calls_abis): New field.
10697 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10698 (ira_need_caller_save_regs): New function.
10699 (ira_need_caller_save_p): Likewise.
10700 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10701 of call_used_or_fixed_regs.
10702 (do_reload): Use crtl->abi to test whether the current function
10703 needs to save a register in the prologue. Count registers that
10704 need to be saved rather than registers that don't.
10705 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10706 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10707 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10708 (propagate_some_info_from_allocno): Likewise.
10709 (copy_info_to_removed_store_destinations): Likewise.
10710 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10711 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10712 (ira_build): Use ira_need_caller_save_regs instead of
10713 call_used_or_fixed_regs.
10714 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10715 whether the current function would need to save a register
10717 (calculate_spill_cost): Likewise.
10718 (allocno_reload_assign): Use ira_need_caller_save_regs and
10719 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10720 * ira-conflicts.c (ira_build_conflicts): Use
10721 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10722 as the set of call-clobbered registers. Remove the
10723 call_used_or_fixed_regs mask from the calculation of
10724 temp_hard_reg_set and mask its use instead. Remove special
10725 handling of partially-clobbered registers.
10726 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10727 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10728 calculate the set of conflicting registers for calls that
10729 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10730 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10731 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10732 Use eh_edge_abi to calculate the set of registers that could
10733 be clobbered by an EH edge. Include partially-clobbered as
10734 well as fully-clobbered registers.
10736 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10738 * haifa-sched.c: Include function-abi.h.
10739 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10740 the function would need to save a register before using it.
10742 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10744 * gcse.c: Include function-abi.h.
10745 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10746 the call insn target. Invalidate partially call-clobbered
10747 registers as well as fully call-clobbered ones.
10749 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10751 * function.c (aggregate_value_p): Work out which ABI the
10752 function is using before testing which registers are at least
10753 partly preserved by a call.
10755 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10757 * early-remat.c: Include regs.h and function-abi.h.
10758 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10760 (early_remat::restrict_remat_for_unavail_regs): New function.
10761 (early_remat::restrict_remat_for_call): Likewise.
10762 (early_remat::process_block): Before calling emit_remat_insns
10763 for a previous call in the block, invalidate any candidates
10764 that would clobber call-preserved registers.
10765 (early_remat::emit_remat_insns_for_block): Likewise for the
10766 final call in a block. Do the same thing for live-in registers
10767 when calling emit_remat_insns at the head of a block.
10769 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10771 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10772 whether the current function needs to save at least part of a
10773 register before using it.
10774 (df_get_exit_block_use_set): Likewise for epilogue restores.
10776 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10778 * df-problems.c: Include regs.h and function-abi.h.
10779 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10780 sparse_invalidated_by_eh and dense_invalidated_by_call to
10781 dense_invalidated_by_eh.
10782 (df_print_bb_index): Update accordingly.
10783 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10784 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10785 that are clobbered by an EH edge. Clobber partially-clobbered
10786 registers as well as fully-clobbered ones.
10787 (df_md_confluence_n): Likewise.
10788 (df_rd_local_compute): Likewise. Update for changes to
10789 df_rd_problem_data.
10790 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10791 of registers that are clobbered by an EH edge. Includde partially-
10792 clobbered registers as well as fully-clobbered ones.
10794 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10796 * cselib.c (cselib_process_insn): If we know what mode a
10797 register was set in, check whether it is clobbered in that
10798 mode by a call. Only fall back to reg_raw_mode if that fails.
10800 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10802 * cse.c: Include regs.h and function-abi.h.
10803 (invalidate_for_call): Take the call insn as an argument.
10804 Use insn_callee_abi to get the ABI of the call and invalidate
10805 partially clobbered registers as well as fully clobbered ones.
10806 (cse_insn): Update call accordingly.
10808 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10810 * combine.c: Include function-abi.h.
10811 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10812 of the target of call insns. Invalidate partially-clobbered
10813 registers as well as fully-clobbered ones.
10815 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10817 * cfgloopanal.c: Include regs.h and function-abi.h.
10818 (init_set_costs): Use default_function_abi to test whether
10819 a general register is call-clobbered.
10821 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10823 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10824 instead of the call-clobbered sets.
10826 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10828 * caller-save.c (setup_save_areas): Remove redundant |s of
10830 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10831 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10834 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10836 * rtl.h (predefined_function_abi): Declare.
10837 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10838 instead of a boolean call_save flag.
10839 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10841 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10842 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10843 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10844 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10845 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10846 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10847 * reginfo.c (init_reg_modes_target): Likewise.
10848 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10849 instead of a boolean call_save flag.
10850 * targhooks.c: Include function-abi.h.
10851 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10852 using eh_edge_abi to choose the mode.
10854 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10856 * target.def (hard_regno_call_part_clobbered): Take an ABI
10857 identifier instead of an rtx_insn.
10858 * doc/tm.texi: Regenerate.
10859 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10860 (hook_bool_uint_uint_mode_false): New function.
10861 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10862 (hook_bool_uint_uint_mode_false): New function.
10863 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10864 Take an ABI identifier instead of an rtx_insn.
10865 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10866 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10867 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10868 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10869 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10871 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10872 * cselib.c: Include function-abi.h.
10873 (cselib_process_insn): Update call to
10874 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10875 to get the appropriate ABI identifier.
10876 * function-abi.cc (predefined_function_abi::initialize): Update call
10877 to targetm.hard_regno_call_part_clobbered.
10878 * ira-conflicts.c (ira_build_conflicts): Likewise.
10879 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10880 * lra-constraints.c: Include function-abi.h.
10881 (need_for_call_save_p): Update call to
10882 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10883 to get the appropriate ABI identifier.
10884 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10885 * regcprop.c (copyprop_hardreg_forward_1): Update call
10886 to targetm.hard_regno_call_part_clobbered.
10887 * reginfo.c (choose_hard_reg_mode): Likewise.
10888 * regrename.c (check_new_reg_p): Likewise.
10889 * reload.c (find_equiv_reg): Likewise.
10890 * reload1.c (emit_reload_insns): Likewise.
10891 * sched-deps.c: Include function-abi.h.
10892 (deps_analyze_insn): Update call to
10893 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10894 to get the appropriate ABI identifier.
10895 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10896 call to targetm.hard_regno_call_part_clobbered.
10897 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10899 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10901 * config/i386/i386.c: Include function-abi.h.
10902 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10903 if they preserve some 256-bit or 512-bit SSE registers.
10905 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10907 * target.def (insn_callee_abi): New hook.
10908 (remove_extra_call_preserved_regs): Delete.
10909 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10910 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10911 * doc/tm.texi: Regenerate.
10912 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10913 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10914 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10916 (aarch64_remove_extra_call_preserved_regs): Delete.
10917 (aarch64_insn_callee_abi): New function.
10918 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10919 (TARGET_INSN_CALLEE_ABI): New macro.
10920 * rtl.h (get_call_fndecl): Declare.
10921 (cgraph_rtl_info): Fix formatting. Tweak comment for
10922 function_used_regs. Remove function_used_regs_valid.
10923 * rtlanal.c (get_call_fndecl): Moved from final.c
10924 * function-abi.h (insn_callee_abi): Declare.
10925 (target_function_abi_info): Mention insn_callee_abi.
10926 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10927 way to get_call_reg_set_usage did.
10928 (insn_callee_abi): New function.
10929 * regs.h (get_call_reg_set_usage): Delete.
10930 * final.c: Include function-abi.h.
10931 (collect_fn_hard_reg_usage): Add fixed and stack registers to
10932 function_used_regs before the main loop rather than afterwards.
10933 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
10934 if function_used_regs ends up not being useful.
10935 (get_call_fndecl): Move to rtlanal.c
10936 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
10937 * caller-save.c: Include function-abi.h.
10938 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
10939 instead of get_call_reg_set_usage.
10940 * cfgcleanup.c: Include function-abi.h.
10941 (old_insns_match_p): Use insn_callee_abi instead of
10942 get_call_reg_set_usage.
10943 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
10945 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
10946 function_used_regs.
10947 * df-scan.c: Include function-abi.h.
10948 (df_get_call_refs): Use insn_callee_abi instead of
10949 get_call_reg_set_usage.
10950 * ira-lives.c: Include function-abi.h.
10951 (process_bb_node_lives): Use insn_callee_abi instead of
10952 get_call_reg_set_usage.
10953 * lra-lives.c: Include function-abi.h.
10954 (process_bb_lives): Use insn_callee_abi instead of
10955 get_call_reg_set_usage.
10956 * postreload.c: Include function-abi.h.
10957 (reload_combine): Use insn_callee_abi instead of
10958 get_call_reg_set_usage.
10959 * regcprop.c: Include function-abi.h.
10960 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
10961 get_call_reg_set_usage.
10962 * resource.c: Include function-abi.h.
10963 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
10964 instead of get_call_reg_set_usage.
10965 * var-tracking.c: Include function-abi.h.
10966 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
10967 get_call_reg_set_usage.
10969 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10971 * target.def (fntype_abi): New target hook.
10972 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
10973 * doc/tm.texi: Regenerate.
10974 * target.h (predefined_function_abi): Declare.
10975 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
10977 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
10978 * config/aarch64/aarch64.c: Include function-abi.h.
10979 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
10980 (TARGET_FNTYPE_ABI): Define.
10982 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10984 * Makefile.in (OBJS): Add function-abi.o.
10985 (GTFILES): Add function-abi.h.
10986 * function-abi.cc: New file.
10987 * function-abi.h: Likewise.
10988 * emit-rtl.h (rtl_data::abi): New field.
10989 * function.c: Include function-abi.h.
10990 (prepare_function_start): Initialize crtl->abi.
10991 * read-rtl-function.c: Include regs.h and function-abi.h.
10992 (read_rtl_function_body): Initialize crtl->abi.
10993 (read_rtl_function_body_from_file_range): Likewise.
10994 * reginfo.c: Include function-abi.h.
10995 (init_reg_sets_1): Initialize default_function_abi.
10996 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
10997 when making a register global.
10998 * target-globals.h (this_target_function_abi_info): Declare.
10999 (target_globals::function_abi_info): New field.
11000 (restore_target_globals): Copy it.
11001 * target-globals.c: Include function-abi.h.
11002 (default_target_globals): Initialize the function_abi_info field.
11003 (target_globals): Allocate it.
11004 (save_target_globals): Free it.
11006 2019-09-30 Nick Clifton <nickc@redhat.com>
11009 * config/frv/frv.c (frv_register_move_cost): Add break statements
11010 to avoid falling through to the wrong cases. Tidy code.
11012 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11014 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11015 For multi-registers modes, test how big each register part is.
11017 2019-09-30 Nick Clifton <nickc@redhat.com>
11020 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11021 (TARGET_ASM_SELECT_SECTION): Remove definition.
11022 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11024 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11026 * emit-rtl.c (init_raw_REG): New function.
11027 (gen_raw_REG): Use init_raw_REG.
11028 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11030 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11031 * rtl.h (rtx_init): New function.
11032 (rtx_alloca): New function.
11033 (init_raw_REG): New function.
11034 (alloca_raw_REG): New macro.
11036 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11038 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11039 (pcrel_local_address): Replace pcrel_address predicate, use the
11040 new function address_to_insn_form.
11041 (pcrel_external_address): Replace with new implementation using
11042 address_to_insn_form..
11043 (prefixed_mem_operand): Delete predicate which is now unused.
11044 (pcrel_external_mem_operand): Delete predicate which is now
11046 * config/rs6000/rs6000-protos.h (enum insn_form): New
11048 (enum non_prefixed_form): New enumeration.
11049 (address_to_insn_form): New declaration.
11050 (prefixed_load_p): New declaration.
11051 (prefixed_store_p): New declaration.
11052 (prefixed_paddi_p): New declaration.
11053 (rs6000_asm_output_opcode): New declaration.
11054 (rs6000_final_prescan_insn): Move declaration and update calling
11056 (address_is_prefixed): New helper inline function.
11057 * config/rs6000/rs6000.c(print_operand_address): Check for either
11058 PC-relative local symbols or PC-relative external symbols.
11059 (rs6000_emit_move): Support loading PC-relative addresses.
11060 (mode_supports_prefixed_address_p): Delete, no longer used.
11061 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11062 (address_to_insn_form): New function to decode an address format.
11063 (reg_to_non_prefixed): New function to identify what the
11064 non-prefixed memory instruction format is for a register.
11065 (prefixed_load_p): New function to identify prefixed loads.
11066 (prefixed_store_p): New function to identify prefixed stores.
11067 (prefixed_paddi_p): New function to identify prefixed load
11069 (next_insn_prefixed_p): New static state variable.
11070 (rs6000_final_prescan_insn): New function to determine if an insn
11071 uses a prefixed instruction.
11072 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11073 prefixed instruction.
11074 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11075 (ASM_OUTPUT_OPCODE): New target hook.
11076 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11077 prefixed instructions.
11078 (prefixed_length): New insn attribute for the size of prefixed
11080 (non_prefixed_length): New insn attribute for the size of
11081 non-prefixed instructions.
11082 (pcrel_local_addr): New insn to load up a local PC-relative
11084 (pcrel_extern_addr): New insn to load up an external PC-relative
11086 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11087 GPR and loading a 128-bit floating point type to a GPR.
11089 2019-09-30 Richard Biener <rguenther@suse.de>
11091 * gimple.c (gimple_get_lhs): For PHIs return the result.
11092 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11093 SLP instance as argument.
11094 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11095 double-reduction PHIs with vectorizable_lc_phi.
11096 (vect_analyze_loop_operations): Adjust.
11097 (vect_create_epilog_for_reduction): Remove all code not dealing
11098 with reduction LC PHI or epilogue generation.
11099 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11100 for live stmts of reductions.
11101 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11102 do not handle defs that are not vect_internal_def.
11103 (can_vectorize_live_stmts): Adjust.
11104 (vect_analyze_stmt): When the vectorized stmt defined a value
11105 used on backedges adjust the backedge uses of vectorized PHIs.
11107 2019-09-30 Martin Jambor <mjambor@suse.cz>
11110 * tree-inline.c (force_value_to_type): New function.
11111 (setup_one_parameter): Use force_value_to_type to convert type.
11112 * tree-inline.c (force_value_to_type): Declare.
11113 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11114 with register type mismatches.
11116 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11118 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11120 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11121 * config/rs6000/t-freebsd64: Make use of the above define and build
11122 the 32-bit libraries with secure-plt.
11124 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11127 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11128 gen_int_mode instead of GEN_INT.
11130 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11132 * config/darwin.c (gen_macho_low): Amend to include the mode
11134 (machopic_indirect_data_reference): Amend gen_macho_low call
11135 to include mode argument
11136 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11137 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11138 the macho_high expander and two define_insn entries.
11140 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11143 * optc-save-gen.awk: Fix up printing string option differences.
11145 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11147 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11148 vec_perm cost to 1 for non-Power7 VSX architectures.
11150 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11152 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11153 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11154 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11156 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11158 * config/darwin.c (gen_macho_high): Amend to include the mode
11160 (machopic_indirect_data_reference): Amend gen_macho_high call
11161 to include mode argument.
11162 (machopic_legitimize_pic_address): Likewise.
11163 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11164 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11165 the macho_high expander and two define_insn entries.
11167 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11170 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11172 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11175 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11176 std::string::compare instead of std::string::find.
11178 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11180 * configure: Regenerate.
11182 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11184 PR middle-end/91920
11185 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11186 variables as shared.
11188 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11190 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11191 replaces the expander and two define_insn entries.
11192 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11194 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11196 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11198 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11199 (fibonacci_heap::nodes): Likewise.
11200 (fibonacci_heap::min_key): Likewise.
11201 (fibonacci_heap::min): Likewise.
11203 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11205 * cgraph.c (cgraph_node::get_fun): Make const.
11206 * cgraph.h (cgraph_node::get_fun): Likewise.
11208 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11211 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11214 2019-09-27 Richard Biener <rguenther@suse.de>
11216 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11217 (STMT_VINFO_REDUC_FN): Likewise.
11218 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11219 STMT_VINFO_REDUC_FN.
11220 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11221 for condition reductions.
11222 (vect_create_epilog_for_reduction): Compute all required state
11223 from the stmt to be vectorized.
11224 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11225 invocation and remove then dead code. For single def-use chains
11226 record only a single vector stmt.
11228 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11230 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11231 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11232 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11233 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11234 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11235 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11236 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11237 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11238 (aarch64_general_builtin_rsqrt): Declare.
11239 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11241 (aarch64_mangle_builtin_type): Rename to...
11242 (aarch64_general_mangle_builtin_type): ...this.
11243 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11244 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11245 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11246 aarch64_general_add_builtin instead of add_builtin_function.
11247 (aarch64_init_builtins): Rename to...
11248 (aarch64_general_init_builtins): ...this. Use
11249 aarch64_general_add_builtin instead of add_builtin_function.
11250 (aarch64_builtin_decl): Rename to...
11251 (aarch64_general_builtin_decl): ...this and remove the unused
11253 (aarch64_expand_builtin): Rename to...
11254 (aarch64_general_expand_builtin): ...this and remove the unused
11256 (aarch64_builtin_rsqrt): Rename to...
11257 (aarch64_general_builtin_rsqrt): ...this.
11258 (aarch64_fold_builtin): Rename to...
11259 (aarch64_general_fold_builtin): ...this. Take the function subcode
11260 and return type as arguments. Remove the "ignored" argument.
11261 (aarch64_gimple_fold_builtin): Rename to...
11262 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11263 subcode and gcall as arguments, and return the new function call.
11264 * config/aarch64/aarch64.c (aarch64_init_builtins)
11265 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11266 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11267 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11268 instead of aarch64_builtin_rsqrt.
11269 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11270 instead of aarch64_mangle_builtin_type.
11272 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11274 * target.def (check_builtin_call): New target hook.
11275 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11276 * doc/tm.texi: Regenerate.
11278 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11280 PR tree-optimization/91909
11281 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11282 reduc_index parameter. When handling COND_REDUCTION, make sure
11283 that the reduction phi operand is in the correct arm of the
11285 (vectorizable_reduction): Pass reduc_index to the above.
11287 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11289 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11290 New combine pattern.
11292 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11294 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11295 loop instruction into new basic block before the loop when basic
11296 block that precedes the loop is empty.
11298 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11300 * function.c (gimplify_parameters): Use build_clobber function.
11301 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11302 * tree-inline.c (expand_call_inline): Likewise.
11303 * tree-sra.c (clobber_subtree): Likewise.
11304 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11305 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11306 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11307 lower_omp_target): Likewise.
11308 * omp-expand.c (expand_omp_for_generic): Likewise.
11309 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11311 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11313 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11314 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11315 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11316 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11317 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11318 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11319 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11320 LD_ELEMREV_V16QI): Use the PURE attribute.
11322 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11324 * config/rs6000/darwin.md: Replace the expanders for
11325 load_macho_picbase and reload_macho_picbase with use of '@'
11326 and <mode> in their respective define_insns.
11327 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11328 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11329 Pmode to gen_load_macho_picbase.
11330 * config/rs6000/rs6000.md: Likewise.
11332 2019-09-25 Richard Biener <rguenther@suse.de>
11334 PR tree-optimization/91896
11335 * tree-vect-loop.c (vectorizable_reduction): The single
11336 def-use cycle optimization cannot apply when there's more
11337 than one pattern stmt involved.
11339 2019-09-26 Richard Biener <rguenther@suse.de>
11341 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11342 loop-closed PHIs that are vect_internal_def.
11343 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11345 (vectorizable_lc_phi): New.
11346 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11347 (vect_transform_stmt): Likewise.
11348 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11349 (vectorizable_lc_phi): Declare.
11351 2019-09-26 Richard Biener <rguenther@suse.de>
11353 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11354 vectorizable_reduction for vect_double_reduction_def.
11355 (vect_transform_loop): Likewise.
11356 (vect_create_epilog_for_reduction): Move double-reduction
11357 PHI creation and preheader argument setting of PHIs ...
11358 (vectorizable_reduction): ... here. Also process
11359 vect_double_reduction_def PHIs, creating the vectorized
11360 PHI nodes, remembering the scalar adjustment computed for
11361 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11362 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11363 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11364 Initialize STMT_VINFO_REDUC_CODE.
11365 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11366 (_stmt_vec_info::reduc_code): Likewise.
11367 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11368 (STMT_VINFO_REDUC_CODE): Likewise.
11370 2019-09-26 Matt Turner <mattst88@gmail.com>
11373 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11374 (mtune=): Add Negative(mtune=).
11375 (mcpu=): Add Negative(mcpu=).
11376 * config/arm/arm.opt: Likewise.
11378 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11380 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11381 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11383 * config/arm/arm_acle.h: Define builtins for the above.
11384 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11385 (simd32_op): Handle the above.
11386 * config/arm/unspecs.md: Define unspecs for the above.
11388 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11390 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11391 (arm_<sup>xtb16): Likewise.
11392 (arm_usada8): Likewise.
11393 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11394 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11395 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11396 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11397 __sxtb16, __uxtab16, __uxtb16): Define.
11398 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11399 * config/arm/unspecs.md: Define unspecs for the above.
11400 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11401 (USXTB16): Likewise.
11402 (simd32_op): New int_attribute.
11403 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11404 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11406 2019-09-26 Martin Jambor <mjambor@suse.cz>
11408 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11411 2019-09-26 Martin Jambor <mjambor@suse.cz>
11413 * ipa-sra.c (process_scan_results): Fix continue condition.
11415 2019-09-26 Martin Liska <mliska@suse.cz>
11417 PR tree-optimization/91885
11418 * tree-vectorizer.c (try_vectorize_loop_1): Add
11419 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11421 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11423 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11424 aarch64_plus_immediate rather than aarch64_uimm12_shift
11425 to test for valid PLUS immediates.
11427 2019-09-25 Martin Jambor <mjambor@suse.cz>
11429 * tree-sra.c (no_accesses_p): Remove.
11430 (no_accesses_representant): Likewise.
11432 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11434 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11436 (vaba_s16): Likewise.
11437 (vaba_s32): Likewise.
11438 (vaba_u8): Likewise.
11439 (vaba_u16): Likewise.
11440 (vaba_u32): Likewise.
11441 (vabal_high_s8): Likewise.
11442 (vabal_high_s16): Likewise.
11443 (vabal_high_s32): Likewise.
11444 (vabal_high_u8): Likewise.
11445 (vabal_high_u16): Likewise.
11446 (vabal_high_u32): Likewise.
11447 (vabal_s8): Likewise.
11448 (vabal_s16): Likewise.
11449 (vabal_s32): Likewise.
11450 (vabal_u8): Likewise.
11451 (vabal_u16): Likewise.
11452 (vabal_u32): Likewise.
11453 (vabaq_s8): Likewise.
11454 (vabaq_s16): Likewise.
11455 (vabaq_s32): Likewise.
11456 (vabaq_u8): Likewise.
11457 (vabaq_u16): Likewise.
11458 (vabaq_u32): Likewise.
11459 (vabd_s8): Likewise.
11460 (vabd_s16): Likewise.
11461 (vabd_s32): Likewise.
11462 (vabd_u8): Likewise.
11463 (vabd_u16): Likewise.
11464 (vabd_u32): Likewise.
11465 (vabdl_high_s8): Likewise.
11466 (vabdl_high_s16): Likewise.
11467 (vabdl_high_s32): Likewise.
11468 (vabdl_high_u8): Likewise.
11469 (vabdl_high_u16): Likewise.
11470 (vabdl_high_u32): Likewise.
11471 (vabdl_s8): Likewise.
11472 (vabdl_s16): Likewise.
11473 (vabdl_s32): Likewise.
11474 (vabdl_u8): Likewise.
11475 (vabdl_u16): Likewise.
11476 (vabdl_u32): Likewise.
11477 (vabdq_s8): Likewise.
11478 (vabdq_s16): Likewise.
11479 (vabdq_s32): Likewise.
11480 (vabdq_u8): Likewise.
11481 (vabdq_u16): Likewise.
11482 (vabdq_u32): Likewise.
11483 (vaddlv_s8): Likewise.
11484 (vaddlv_s16): Likewise.
11485 (vaddlv_u8): Likewise.
11486 (vaddlv_u16): Likewise.
11487 (vaddlvq_s8): Likewise.
11488 (vaddlvq_s16): Likewise.
11489 (vaddlvq_s32): Likewise.
11490 (vaddlvq_u8): Likewise.
11491 (vaddlvq_u16): Likewise.
11492 (vaddlvq_u32): Likewise.
11493 (vcvtx_f32_f64): Likewise.
11494 (vcvtx_high_f32_f64): Likewise.
11495 (vcvtxd_f32_f64): Likewise.
11496 (vmla_n_f32): Likewise.
11497 (vmla_n_s16): Likewise.
11498 (vmla_n_s32): Likewise.
11499 (vmla_n_u16): Likewise.
11500 (vmla_n_u32): Likewise.
11501 (vmla_s8): Likewise.
11502 (vmla_s16): Likewise.
11503 (vmla_s32): Likewise.
11504 (vmla_u8): Likewise.
11505 (vmla_u16): Likewise.
11506 (vmla_u32): Likewise.
11507 (vmlal_high_n_s16): Likewise.
11508 (vmlal_high_n_s32): Likewise.
11509 (vmlal_high_n_u16): Likewise.
11510 (vmlal_high_n_u32): Likewise.
11511 (vmlal_high_s8): Likewise.
11512 (vmlal_high_s16): Likewise.
11513 (vmlal_high_s32): Likewise.
11514 (vmlal_high_u8): Likewise.
11515 (vmlal_high_u16): Likewise.
11516 (vmlal_high_u32): Likewise.
11517 (vmlal_n_s16): Likewise.
11518 (vmlal_n_s32): Likewise.
11519 (vmlal_n_u16): Likewise.
11520 (vmlal_n_u32): Likewise.
11521 (vmlal_s8): Likewise.
11522 (vmlal_s16): Likewise.
11523 (vmlal_s32): Likewise.
11524 (vmlal_u8): Likewise.
11525 (vmlal_u16): Likewise.
11526 (vmlal_u32): Likewise.
11527 (vmlaq_n_f32): Likewise.
11528 (vmlaq_n_s16): Likewise.
11529 (vmlaq_n_s32): Likewise.
11530 (vmlaq_n_u16): Likewise.
11531 (vmlaq_n_u32): Likewise.
11532 (vmlaq_s8): Likewise.
11533 (vmlaq_s16): Likewise.
11534 (vmlaq_s32): Likewise.
11535 (vmlaq_u8): Likewise.
11536 (vmlaq_u16): Likewise.
11537 (vmlaq_u32): Likewise.
11538 (vmls_n_f32): Likewise.
11539 (vmls_n_s16): Likewise.
11540 (vmls_n_s32): Likewise.
11541 (vmls_n_u16): Likewise.
11542 (vmls_n_u32): Likewise.
11543 (vmls_s8): Likewise.
11544 (vmls_s16): Likewise.
11545 (vmls_s32): Likewise.
11546 (vmls_u8): Likewise.
11547 (vmls_u16): Likewise.
11548 (vmls_u32): Likewise.
11549 (vmlsl_high_n_s16): Likewise.
11550 (vmlsl_high_n_s32): Likewise.
11551 (vmlsl_high_n_u16): Likewise.
11552 (vmlsl_high_n_u32): Likewise.
11553 (vmlsl_high_s8): Likewise.
11554 (vmlsl_high_s16): Likewise.
11555 (vmlsl_high_s32): Likewise.
11556 (vmlsl_high_u8): Likewise.
11557 (vmlsl_high_u16): Likewise.
11558 (vmlsl_high_u32): Likewise.
11559 (vmlsl_n_s16): Likewise.
11560 (vmlsl_n_s32): Likewise.
11561 (vmlsl_n_u16): Likewise.
11562 (vmlsl_n_u32): Likewise.
11563 (vmlsl_s8): Likewise.
11564 (vmlsl_s16): Likewise.
11565 (vmlsl_s32): Likewise.
11566 (vmlsl_u8): Likewise.
11567 (vmlsl_u16): Likewise.
11568 (vmlsl_u32): Likewise.
11569 (vmlsq_n_f32): Likewise.
11570 (vmlsq_n_s16): Likewise.
11571 (vmlsq_n_s32): Likewise.
11572 (vmlsq_n_u16): Likewise.
11573 (vmlsq_n_u32): Likewise.
11574 (vmlsq_s8): Likewise.
11575 (vmlsq_s16): Likewise.
11576 (vmlsq_s32): Likewise.
11577 (vmlsq_u8): Likewise.
11578 (vmlsq_u16): Likewise.
11579 (vmlsq_u32): Likewise.
11580 (vmovl_high_s8): Likewise.
11581 (vmovl_high_s16): Likewise.
11582 (vmovl_high_s32): Likewise.
11583 (vmovl_high_u8): Likewise.
11584 (vmovl_high_u16): Likewise.
11585 (vmovl_high_u32): Likewise.
11586 (vmovl_s8): Likewise.
11587 (vmovl_s16): Likewise.
11588 (vmovl_s32): Likewise.
11589 (vmovl_u8): Likewise.
11590 (vmovl_u16): Likewise.
11591 (vmovl_u32): Likewise.
11592 (vmovn_high_s16): Likewise.
11593 (vmovn_high_s32): Likewise.
11594 (vmovn_high_s64): Likewise.
11595 (vmovn_high_u16): Likewise.
11596 (vmovn_high_u32): Likewise.
11597 (vmovn_high_u64): Likewise.
11598 (vmovn_s16): Likewise.
11599 (vmovn_s32): Likewise.
11600 (vmovn_s64): Likewise.
11601 (vmovn_u16): Likewise.
11602 (vmovn_u32): Likewise.
11603 (vmovn_u64): Likewise.
11604 (vmull_high_n_s16): Likewise.
11605 (vmull_high_n_s32): Likewise.
11606 (vmull_high_n_u16): Likewise.
11607 (vmull_high_n_u32): Likewise.
11608 (vmull_high_p8): Likewise.
11609 (vmull_high_s8): Likewise.
11610 (vmull_high_s16): Likewise.
11611 (vmull_high_s32): Likewise.
11612 (vmull_high_u8): Likewise.
11613 (vmull_high_u16): Likewise.
11614 (vmull_high_u32): Likewise.
11615 (vmull_n_s16): Likewise.
11616 (vmull_n_s32): Likewise.
11617 (vmull_n_u16): Likewise.
11618 (vmull_n_u32): Likewise.
11619 (vmull_p8): Likewise.
11620 (vmull_s8): Likewise.
11621 (vmull_s16): Likewise.
11622 (vmull_s32): Likewise.
11623 (vmull_u8): Likewise.
11624 (vmull_u16): Likewise.
11625 (vmull_u32): Likewise.
11626 (vpadal_s8): Likewise.
11627 (vpadal_s16): Likewise.
11628 (vpadal_s32): Likewise.
11629 (vpadal_u8): Likewise.
11630 (vpadal_u16): Likewise.
11631 (vpadal_u32): Likewise.
11632 (vpadalq_s8): Likewise.
11633 (vpadalq_s16): Likewise.
11634 (vpadalq_s32): Likewise.
11635 (vpadalq_u8): Likewise.
11636 (vpadalq_u16): Likewise.
11637 (vpadalq_u32): Likewise.
11638 (vpaddl_s8): Likewise.
11639 (vpaddl_s16): Likewise.
11640 (vpaddl_s32): Likewise.
11641 (vpaddl_u8): Likewise.
11642 (vpaddl_u16): Likewise.
11643 (vpaddl_u32): Likewise.
11644 (vpaddlq_s8): Likewise.
11645 (vpaddlq_s16): Likewise.
11646 (vpaddlq_s32): Likewise.
11647 (vpaddlq_u8): Likewise.
11648 (vpaddlq_u16): Likewise.
11649 (vpaddlq_u32): Likewise.
11650 (vpaddq_s8): Likewise.
11651 (vpaddq_s16): Likewise.
11652 (vpaddq_s32): Likewise.
11653 (vpaddq_s64): Likewise.
11654 (vpaddq_u8): Likewise.
11655 (vpaddq_u16): Likewise.
11656 (vpaddq_u32): Likewise.
11657 (vpaddq_u64): Likewise.
11658 (vqdmulh_n_s16): Likewise.
11659 (vqdmulh_n_s32): Likewise.
11660 (vqdmulhq_n_s16): Likewise.
11661 (vqdmulhq_n_s32): Likewise.
11662 (vqmovn_high_s16): Likewise.
11663 (vqmovn_high_s32): Likewise.
11664 (vqmovn_high_s64): Likewise.
11665 (vqmovn_high_u16): Likewise.
11666 (vqmovn_high_u32): Likewise.
11667 (vqmovn_high_u64): Likewise.
11668 (vqmovun_high_s16): Likewise.
11669 (vqmovun_high_s32): Likewise.
11670 (vqmovun_high_s64): Likewise.
11671 (vqrdmulh_n_s16): Likewise.
11672 (vqrdmulh_n_s32): Likewise.
11673 (vqrdmulhq_n_s16): Likewise.
11674 (vqrdmulhq_n_s32): Likewise.
11675 (vrsqrte_u32): Likewise.
11676 (vrsqrteq_u32): Likewise.
11677 (vtst_p8): Likewise.
11678 (vtst_p16): Likewise.
11679 (vtst_p64): Likewise.
11680 (vtstq_p8): Likewise.
11681 (vtstq_p16): Likewise.
11682 (vtstq_p64): Likewise.
11683 (vaddlv_s32): Likewise.
11684 (vaddlv_u32): Likewise.
11685 (vqtbl1_p8): Likewise.
11686 (vqtbl1_s8): Likewise.
11687 (vqtbl1_u8): Likewise.
11688 (vqtbl1q_p8): Likewise.
11689 (vqtbl1q_s8): Likewise.
11690 (vqtbl1q_u8): Likewise.
11691 (vqtbx1_s8): Likewise.
11692 (vqtbx1_u8): Likewise.
11693 (vqtbx1_p8): Likewise.
11694 (vqtbx1q_s8): Likewise.
11695 (vqtbx1q_u8): Likewise.
11696 (vqtbx1q_p8): Likewise.
11697 (vtbl1_s8): Likewise.
11698 (vtbl1_u8): Likewise.
11699 (vtbl1_p8): Likewise.
11700 (vtbl2_s8): Likewise.
11701 (vtbl2_u8): Likewise.
11702 (vtbl2_p8): Likewise.
11703 (vtbl3_s8): Likewise.
11704 (vtbl3_u8): Likewise.
11705 (vtbl3_p8): Likewise.
11706 (vtbl4_s8): Likewise.
11707 (vtbl4_u8): Likewise.
11708 (vtbl4_p8): Likewise.
11709 (vtbx2_s8): Likewise.
11710 (vtbx2_u8): Likewise.
11711 (vtbx2_p8): Likewise.
11712 (vld1_f32): Likewise.
11713 (vld1_f64): Likewise.
11714 (vld1_p8): Likewise.
11715 (vld1_p16): Likewise.
11716 (vld1_p64): Likewise.
11717 (vld1_s8): Likewise.
11718 (vld1_s16): Likewise.
11719 (vld1_s32): Likewise.
11720 (vld1_s64): Likewise.
11721 (vld1_u8): Likewise.
11722 (vld1_u16): Likewise.
11723 (vld1_u32): Likewise.
11724 (vld1_u64): Likewise.
11725 (vld1q_f32): Likewise.
11726 (vld1q_f64): Likewise.
11727 (vld1q_p8): Likewise.
11728 (vld1q_p16): Likewise.
11729 (vld1q_p64): Likewise.
11730 (vld1q_s8): Likewise.
11731 (vld1q_s16): Likewise.
11732 (vld1q_s32): Likewise.
11733 (vld1q_s64): Likewise.
11734 (vld1q_u8): Likewise.
11735 (vld1q_u16): Likewise.
11736 (vld1q_u32): Likewise.
11737 (vld1q_u64): Likewise.
11738 (vpmax_s8): Likewise.
11739 (vpmax_s16): Likewise.
11740 (vpmax_s32): Likewise.
11741 (vpmax_u8): Likewise.
11742 (vpmax_u16): Likewise.
11743 (vpmax_u32): Likewise.
11744 (vpmaxq_s8): Likewise.
11745 (vpmaxq_s16): Likewise.
11746 (vpmaxq_s32): Likewise.
11747 (vpmaxq_u8): Likewise.
11748 (vpmaxq_u16): Likewise.
11749 (vpmaxq_u32): Likewise.
11750 (vpmax_f32): Likewise.
11751 (vpmaxq_f32): Likewise.
11752 (vpmaxq_f64): Likewise.
11753 (vpmaxqd_f64): Likewise.
11754 (vpmaxs_f32): Likewise.
11755 (vpmaxnm_f32): Likewise.
11756 (vpmaxnmq_f32): Likewise.
11757 (vpmaxnmq_f64): Likewise.
11758 (vpmaxnmqd_f64): Likewise.
11759 (vpmaxnms_f32): Likewise.
11760 (vpmin_s8): Likewise.
11761 (vpmin_s16): Likewise.
11762 (vpmin_s32): Likewise.
11763 (vpmin_u8): Likewise.
11764 (vpmin_u16): Likewise.
11765 (vpmin_u32): Likewise.
11766 (vpminq_s8): Likewise.
11767 (vpminq_s16): Likewise.
11768 (vpminq_s32): Likewise.
11769 (vpminq_u8): Likewise.
11770 (vpminq_u16): Likewise.
11771 (vpminq_u32): Likewise.
11772 (vpmin_f32): Likewise.
11773 (vpminq_f32): Likewise.
11774 (vpminq_f64): Likewise.
11775 (vpminqd_f64): Likewise.
11776 (vpmins_f32): Likewise.
11777 (vpminnm_f32): Likewise.
11778 (vpminnmq_f32): Likewise.
11779 (vpminnmq_f64): Likewise.
11780 (vpminnmqd_f64): Likewise.
11781 (vpminnms_f32): Likewise.
11782 (vmla_f32): Likewise.
11783 (vmlaq_f32): Likewise.
11784 (vmlaq_f64): Likewise.
11785 (vmls_f32): Likewise.
11786 (vmlsq_f32): Likewise.
11787 (vmlsq_f64): Likewise.
11788 (vqtbl2_s8): Likewise.
11789 (vqtbl2_u8): Likewise.
11790 (vqtbl2_p8): Likewise.
11791 (vqtbl2q_s8): Likewise.
11792 (vqtbl2q_u8): Likewise.
11793 (vqtbl2q_p8): Likewise.
11794 (vqtbl3_s8): Likewise.
11795 (vqtbl3_u8): Likewise.
11796 (vqtbl3_p8): Likewise.
11797 (vqtbl3q_s8): Likewise.
11798 (vqtbl3q_u8): Likewise.
11799 (vqtbl3q_p8): Likewise.
11800 (vqtbl4_s8): Likewise.
11801 (vqtbl4_u8): Likewise.
11802 (vqtbl4_p8): Likewise.
11803 (vqtbl4q_s8): Likewise.
11804 (vqtbl4q_u8): Likewise.
11805 (vqtbl4q_p8): Likewise.
11806 (vqtbx2_s8): Likewise.
11807 (vqtbx2_u8): Likewise.
11808 (vqtbx2_p8): Likewise.
11809 (vqtbx2q_s8): Likewise.
11810 (vqtbx2q_u8): Likewise.
11811 (vqtbx2q_p8): Likewise.
11812 (vqtbx3_s8): Likewise.
11813 (vqtbx3_u8): Likewise.
11814 (vqtbx3_p8): Likewise.
11815 (vqtbx3q_s8): Likewise.
11816 (vqtbx3q_u8): Likewise.
11817 (vqtbx3q_p8): Likewise.
11818 (vqtbx4_s8): Likewise.
11819 (vqtbx4_u8): Likewise.
11820 (vqtbx4_p8): Likewise.
11821 (vqtbx4q_s8): Likewise.
11822 (vqtbx4q_u8): Likewise.
11823 (vqtbx4q_p8): Likewise.
11824 (vrev16_p8): Likewise.
11825 (vrev16_s8): Likewise.
11826 (vrev16_u8): Likewise.
11827 (vrev16q_p8): Likewise.
11828 (vrev16q_s8): Likewise.
11829 (vrev16q_u8): Likewise.
11830 (vrev32_p8): Likewise.
11831 (vrev32_p16): Likewise.
11832 (vrev32_s8): Likewise.
11833 (vrev32_s16): Likewise.
11834 (vrev32_u8): Likewise.
11835 (vrev32_u16): Likewise.
11836 (vrev32q_p8): Likewise.
11837 (vrev32q_p16): Likewise.
11838 (vrev32q_s8): Likewise.
11839 (vrev32q_s16): Likewise.
11840 (vrev32q_u8): Likewise.
11841 (vrev32q_u16): Likewise.
11842 (vrev64_f32): Likewise.
11843 (vrev64_p8): Likewise.
11844 (vrev64_p16): Likewise.
11845 (vrev64_s8): Likewise.
11846 (vrev64_s16): Likewise.
11847 (vrev64_s32): Likewise.
11848 (vrev64_u8): Likewise.
11849 (vrev64_u16): Likewise.
11850 (vrev64_u32): Likewise.
11851 (vrev64q_f32): Likewise.
11852 (vrev64q_p8): Likewise.
11853 (vrev64q_p16): Likewise.
11854 (vrev64q_s8): Likewise.
11855 (vrev64q_s16): Likewise.
11856 (vrev64q_s32): Likewise.
11857 (vrev64q_u8): Likewise.
11858 (vrev64q_u16): Likewise.
11859 (vrev64q_u32): Likewise.
11860 (vsha1cq_u32): Likewise.
11861 (vsha1mq_u32): Likewise.
11862 (vsha1pq_u32): Likewise.
11863 (vsha1h_u32): Likewise.
11864 (vsha1su0q_u32): Likewise.
11865 (vsha1su1q_u32): Likewise.
11866 (vsha256hq_u32): Likewise.
11867 (vsha256h2q_u32): Likewise.
11868 (vsha256su0q_u32): Likewise.
11869 (vsha256su1q_u32): Likewise.
11870 (vmull_p64): Likewise.
11871 (vmull_high_p64): Likewise.
11872 (vsqrt_f32): Likewise.
11873 (vsqrtq_f32): Likewise.
11874 (vsqrt_f64): Likewise.
11875 (vsqrtq_f64): Likewise.
11876 (vst1_f32): Likewise.
11877 (vst1_f64): Likewise.
11878 (vst1_p8): Likewise.
11879 (vst1_p16): Likewise.
11880 (vst1_p64): Likewise.
11881 (vst1_s8): Likewise.
11882 (vst1_s16): Likewise.
11883 (vst1_s32): Likewise.
11884 (vst1_s64): Likewise.
11885 (vst1_u8): Likewise.
11886 (vst1_u16): Likewise.
11887 (vst1_u32): Likewise.
11888 (vst1_u64): Likewise.
11889 (vst1q_f32): Likewise.
11890 (vst1q_f64): Likewise.
11891 (vst1q_p8): Likewise.
11892 (vst1q_p16): Likewise.
11893 (vst1q_p64): Likewise.
11894 (vst1q_s8): Likewise.
11895 (vst1q_s16): Likewise.
11896 (vst1q_s32): Likewise.
11897 (vst1q_s64): Likewise.
11898 (vst1q_u8): Likewise.
11899 (vst1q_u16): Likewise.
11900 (vst1q_u32): Likewise.
11901 (vst1q_u64): Likewise.
11902 (vst1_s64_x2): Likewise.
11903 (vst1_u64_x2): Likewise.
11904 (vst1_f64_x2): Likewise.
11905 (vst1_s8_x2): Likewise.
11906 (vst1_p8_x2): Likewise.
11907 (vst1_s16_x2): Likewise.
11908 (vst1_p16_x2): Likewise.
11909 (vst1_s32_x2): Likewise.
11910 (vst1_u8_x2): Likewise.
11911 (vst1_u16_x2): Likewise.
11912 (vst1_u32_x2): Likewise.
11913 (vst1_f16_x2): Likewise.
11914 (vst1_f32_x2): Likewise.
11915 (vst1_p64_x2): Likewise.
11916 (vst1q_s8_x2): Likewise.
11917 (vst1q_p8_x2): Likewise.
11918 (vst1q_s16_x2): Likewise.
11919 (vst1q_p16_x2): Likewise.
11920 (vst1q_s32_x2): Likewise.
11921 (vst1q_s64_x2): Likewise.
11922 (vst1q_u8_x2): Likewise.
11923 (vst1q_u16_x2): Likewise.
11924 (vst1q_u32_x2): Likewise.
11925 (vst1q_u64_x2): Likewise.
11926 (vst1q_f16_x2): Likewise.
11927 (vst1q_f32_x2): Likewise.
11928 (vst1q_f64_x2): Likewise.
11929 (vst1q_p64_x2): Likewise.
11930 (vst1_s64_x3): Likewise.
11931 (vst1_u64_x3): Likewise.
11932 (vst1_f64_x3): Likewise.
11933 (vst1_s8_x3): Likewise.
11934 (vst1_p8_x3): Likewise.
11935 (vst1_s16_x3): Likewise.
11936 (vst1_p16_x3): Likewise.
11937 (vst1_s32_x3): Likewise.
11938 (vst1_u8_x3): Likewise.
11939 (vst1_u16_x3): Likewise.
11940 (vst1_u32_x3): Likewise.
11941 (vst1_f16_x3): Likewise.
11942 (vst1_f32_x3): Likewise.
11943 (vst1_p64_x3): Likewise.
11944 (vst1q_s8_x3): Likewise.
11945 (vst1q_p8_x3): Likewise.
11946 (vst1q_s16_x3): Likewise.
11947 (vst1q_p16_x3): Likewise.
11948 (vst1q_s32_x3): Likewise.
11949 (vst1q_s64_x3): Likewise.
11950 (vst1q_u8_x3): Likewise.
11951 (vst1q_u16_x3): Likewise.
11952 (vst1q_u32_x3): Likewise.
11953 (vst1q_u64_x3): Likewise.
11954 (vst1q_f16_x3): Likewise.
11955 (vst1q_f32_x3): Likewise.
11956 (vst1q_f64_x3): Likewise.
11957 (vst1q_p64_x3): Likewise.
11958 (vst2_s64): Likewise.
11959 (vst2_u64): Likewise.
11960 (vst2_f64): Likewise.
11961 (vst2_s8): Likewise.
11962 (vst2_p8): Likewise.
11963 (vst2_s16): Likewise.
11964 (vst2_p16): Likewise.
11965 (vst2_s32): Likewise.
11966 (vst2_u8): Likewise.
11967 (vst2_u16): Likewise.
11968 (vst2_u32): Likewise.
11969 (vst2_f16): Likewise.
11970 (vst2_f32): Likewise.
11971 (vst2_p64): Likewise.
11972 (vst2q_s8): Likewise.
11973 (vst2q_p8): Likewise.
11974 (vst2q_s16): Likewise.
11975 (vst2q_p16): Likewise.
11976 (vst2q_s32): Likewise.
11977 (vst2q_s64): Likewise.
11978 (vst2q_u8): Likewise.
11979 (vst2q_u16): Likewise.
11980 (vst2q_u32): Likewise.
11981 (vst2q_u64): Likewise.
11982 (vst2q_f16): Likewise.
11983 (vst2q_f32): Likewise.
11984 (vst2q_f64): Likewise.
11985 (vst2q_p64): Likewise.
11986 (vst3_s64): Likewise.
11987 (vst3_u64): Likewise.
11988 (vst3_f64): Likewise.
11989 (vst3_s8): Likewise.
11990 (vst3_p8): Likewise.
11991 (vst3_s16): Likewise.
11992 (vst3_p16): Likewise.
11993 (vst3_s32): Likewise.
11994 (vst3_u8): Likewise.
11995 (vst3_u16): Likewise.
11996 (vst3_u32): Likewise.
11997 (vst3_f16): Likewise.
11998 (vst3_f32): Likewise.
11999 (vst3_p64): Likewise.
12000 (vst3q_s8): Likewise.
12001 (vst3q_p8): Likewise.
12002 (vst3q_s16): Likewise.
12003 (vst3q_p16): Likewise.
12004 (vst3q_s32): Likewise.
12005 (vst3q_s64): Likewise.
12006 (vst3q_u8): Likewise.
12007 (vst3q_u16): Likewise.
12008 (vst3q_u32): Likewise.
12009 (vst3q_u64): Likewise.
12010 (vst3q_f16): Likewise.
12011 (vst3q_f32): Likewise.
12012 (vst3q_f64): Likewise.
12013 (vst3q_p64): Likewise.
12014 (vst4_s64): Likewise.
12015 (vst4_u64): Likewise.
12016 (vst4_f64): Likewise.
12017 (vst4_s8): Likewise.
12018 (vst4_p8): Likewise.
12019 (vst4_s16): Likewise.
12020 (vst4_p16): Likewise.
12021 (vst4_s32): Likewise.
12022 (vst4_u8): Likewise.
12023 (vst4_u16): Likewise.
12024 (vst4_u32): Likewise.
12025 (vst4_f16): Likewise.
12026 (vst4_f32): Likewise.
12027 (vst4_p64): Likewise.
12028 (vst4q_s8): Likewise.
12029 (vst4q_p8): Likewise.
12030 (vst4q_s16): Likewise.
12031 (vst4q_p16): Likewise.
12032 (vst4q_s32): Likewise.
12033 (vst4q_s64): Likewise.
12034 (vst4q_u8): Likewise.
12035 (vst4q_u16): Likewise.
12036 (vst4q_u32): Likewise.
12037 (vst4q_u64): Likewise.
12038 (vst4q_f16): Likewise.
12039 (vst4q_f32): Likewise.
12040 (vst4q_f64): Likewise.
12041 (vst4q_p64): Likewise.
12042 (vtbx4_s8): Likewise.
12043 (vtbx4_u8): Likewise.
12044 (vtbx4_p8): Likewise.
12045 (vtrn_f32): Likewise.
12046 (vtrn_p8): Likewise.
12047 (vtrn_p16): Likewise.
12048 (vtrn_s8): Likewise.
12049 (vtrn_s16): Likewise.
12050 (vtrn_s32): Likewise.
12051 (vtrn_u8): Likewise.
12052 (vtrn_u16): Likewise.
12053 (vtrn_u32): Likewise.
12054 (vtrnq_f32): Likewise.
12055 (vtrnq_p8): Likewise.
12056 (vtrnq_p16): Likewise.
12057 (vtrnq_s8): Likewise.
12058 (vtrnq_s16): Likewise.
12059 (vtrnq_s32): Likewise.
12060 (vtrnq_u8): Likewise.
12061 (vtrnq_u16): Likewise.
12062 (vtrnq_u32): Likewise.
12063 (vrsqrte_f16): Likewise.
12064 (vrsqrteq_f16): Likewise.
12065 (vsqrt_f16): Likewise.
12066 (vsqrtq_f16): Likewise.
12067 (vabd_f16): Likewise.
12068 (vabdq_f16): Likewise.
12069 (vpadd_f16): Likewise.
12070 (vpaddq_f16): Likewise.
12071 (vpmax_f16): Likewise.
12072 (vpmaxq_f16): Likewise.
12073 (vpmaxnm_f16): Likewise.
12074 (vpmaxnmq_f16): Likewise.
12075 (vpmin_f16): Likewise.
12076 (vpminq_f16): Likewise.
12077 (vpminnm_f16): Likewise.
12078 (vpminnmq_f16): Likewise.
12079 (vrsqrts_f16): Likewise.
12080 (vrsqrtsq_f16): Likewise.
12082 2019-09-25 Richard Biener <rguenther@suse.de>
12084 PR tree-optimization/91896
12085 * tree-vect-loop.c (vectorizable_reduction): The single
12086 def-use cycle optimization cannot apply when there's more
12087 than one pattern stmt involved.
12089 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12091 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12092 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12093 (reload_macho_picbase_<mode>): Likewise.
12095 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12097 * config/rs6000/rs6000.md: Move darwin.md include until
12098 after the definition of the mode iterators.
12100 2019-09-23 Martin Sebor <msebor@redhat.com>
12102 PR tree-optimization/91570
12103 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12104 non-constant minlen, maxlen and maxbound.
12106 2019-09-24 Richard Biener <rguenther@suse.de>
12108 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12110 (_stmt_vec_info::cond_reduc_code): ... this.
12111 (_stmt_vec_info::induc_cond_initial_val): Add.
12112 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12113 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12114 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12115 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12116 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12117 the reduction code.
12118 (vect_create_epilog_for_reduction): Drop special
12119 induction condition reduction params, pass in reduction code
12121 (vectorizable_reduction): Perform condition reduction kind
12122 selection only at analysis time. Adjust passing on state.
12124 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12126 * config/aarch64/aarch64.md (mov<mode>): Don't call
12127 aarch64_split_dimode_const_store on volatile MEM.
12129 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12131 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12132 Update hwcap string for fp16fml.
12134 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12136 PR middle-end/91866
12137 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12138 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12140 2019-09-24 Martin Liska <mliska@suse.cz>
12142 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12143 instead of if-elseif-elseif-...
12144 * gimple-expr.c (extract_ops_from_tree): Likewise.
12145 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12146 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12148 2019-09-24 Martin Jambor <mjambor@suse.cz>
12151 * ipa-param-manipulation.c (carry_over_param): Make a method of
12152 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12153 in case of a context mismatch.
12154 (ipa_param_body_adjustments::common_initialization): Adjust call to
12156 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12157 private method carry_over_param.
12159 2019-09-24 Martin Jambor <mjambor@suse.cz>
12162 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12164 2019-09-24 Richard Biener <rguenther@suse.de>
12166 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12169 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12171 * config/arm/t-arm (arm-builtins.o): Add dependency on
12172 arm_acle_builtins.def.
12174 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12177 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12178 canonical CONST_INTs. Use gen_rtvec.
12180 2019-09-23 Richard Biener <rguenther@suse.de>
12182 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12183 avoid adjusting by + 0 or * 1.
12184 (vect_create_epilog_for_reduction): Get reduction code only
12185 when necessary. Deal with adjustment_def only when necessary.
12187 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12189 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12192 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12195 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12198 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12200 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12201 code. Merge code blocks with common conditionals. Use declared
12202 macro instead of a magic number for PIC level.
12204 2019-09-21 Martin Sebor <msebor@redhat.com>
12206 PR middle-end/91830
12207 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12208 Simplify computation of the offset of the referenced subobject.
12210 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12212 * config/darwin.c (machopic_legitimize_pic_address): Check
12213 for lra not reload.
12215 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12217 * ira-conflicts.c (can_use_same_reg_p): New function.
12218 (process_reg_shuffles): Take an insn parameter. Ignore cases
12219 in which input operand op_num could seemingly never be allocated
12220 to the same register as the destination.
12221 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12223 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12225 * simplify-rtx.c (neg_const_int): Replace with...
12226 (neg_poly_int_rtx): ...this new function.
12227 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12228 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12229 (simplify_plus_minus): Likewise for constant terms here.
12231 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12233 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12234 HOST_WIDE_PRINT_UNSIGNED.
12236 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12238 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12241 2019-09-20 Maya Rashish <coypu@sdf.org>
12244 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12245 Define to speculation_safe_value_not_needed.
12247 2019-09-20 Richard Biener <rguenther@suse.de>
12248 Uros Bizjak <ubizjak@gmail.com>
12251 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12253 (general_scalar_chain::convert_op): Force not suitable memory
12254 operands to a register.
12256 2019-09-20 Richard Biener <rguenther@suse.de>
12258 PR tree-optimization/91821
12259 * tree-vect-loop.c (check_reduction_path): Check we can compute
12261 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12262 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12263 operands in canonical order.
12264 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12265 STMT_VINFO_REDUC_IDX.
12266 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12267 (STMT_VINFO_REDUC_IDX): Likewise.
12269 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12272 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12274 2019-09-20 Richard Biener <rguenther@suse.de>
12276 PR tree-optimization/91822
12277 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12279 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12280 for reduc_index in nested cycles, adjust vectorizable_condition
12282 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12284 (vect_analyze_stmt): Adjust.
12285 (vect_transform_stmt): Likewise.
12287 2019-09-20 Richard Biener <rguenther@suse.de>
12290 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12291 Ensure there's a sequence point between allocating the new register
12292 and passing a reference to a reg via regno_reg_rtx.
12294 2019-09-20 Martin Jambor <mjambor@suse.cz>
12296 * coretypes.h (cgraph_edge): Declare.
12297 * ipa-param-manipulation.c: Rewrite.
12298 * ipa-param-manipulation.h: Likewise.
12299 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12300 (OBJS): Added ipa-sra.o.
12301 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12302 and ref_p, added fields param_adjustments and performed_splits.
12303 (struct cgraph_clone_info): Remove ags_to_skip and
12304 combined_args_to_skip, new field param_adjustments.
12305 (cgraph_node::create_clone): Changed parameters to use
12306 ipa_param_adjustments.
12307 (cgraph_node::create_virtual_clone): Likewise.
12308 (cgraph_node::create_virtual_clone_with_body): Likewise.
12309 (tree_function_versioning): Likewise.
12310 (cgraph_build_function_type_skip_args): Removed.
12311 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12312 using ipa_param_adjustments.
12313 (clone_of_p): Likewise.
12314 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12315 (build_function_decl_skip_args): Likewise.
12316 (duplicate_thunk_for_node): Adjust parameters using
12317 ipa_param_body_adjustments, copy param_adjustments instead of
12319 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12320 (cgraph_node::create_virtual_clone): Likewise.
12321 (cgraph_node::create_version_clone_with_body): Likewise.
12322 (cgraph_materialize_clone): Likewise.
12323 (symbol_table::materialize_all_clones): Likewise.
12324 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12325 ipa_replace_map check.
12326 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12327 (initialize_node_lattices): Make aware that some parameters might have
12328 already been removed.
12329 (want_remove_some_param_p): New function.
12330 (create_specialized_node): Convert to using ipa_param_adjustments and
12331 deal with possibly pre-existing adjustments.
12332 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12333 (output_node_opt_summary): Do not stream removed fields. Stream
12334 parameter adjustments instead of argumetns to skip.
12335 (input_node_opt_summary): Likewise.
12336 (input_node_opt_summary): Likewise.
12337 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12338 * lto-streamer.h (lto_section_type): Likewise.
12339 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12341 (copy_decl_to_var): Declare.
12342 * tree-inline.c (update_clone_info): Do not remap old_tree.
12343 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12344 statements, walk all extra generated statements and remap their
12346 (redirect_all_calls): Add killed SSA names to a hash set.
12347 (remap_ssa_name): Do not remap killed SSA names.
12348 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12349 half of functionality moved to ipa_param_body_adjustments.
12350 (copy_decl_to_var): Make exported.
12351 (copy_body): Destroy killed_new_ssa_names hash set.
12352 (expand_call_inline): Remap performed splits.
12353 (update_clone_info): Likewise.
12354 (tree_function_versioning): Simplify tree_map processing. Updated to
12355 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12356 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12357 for the new interface.
12358 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12359 (simd_clone_compute_base_data_type): Likewise.
12360 (simd_clone_init_simd_arrays): Adjust for the new interface.
12361 (simd_clone_adjust_argument_types): Likewise.
12362 (struct modify_stmt_info): Likewise.
12363 (ipa_simd_modify_stmt_ops): Likewise.
12364 (ipa_simd_modify_function_body): Likewise.
12365 (simd_clone_adjust): Likewise.
12366 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12367 (type_internals_preclude_sra_p): Make public.
12368 * tree-sra.h: New file.
12369 * ipa-inline-transform.c (save_inline_function_body): Update to
12370 refelct new tree_function_versioning signature.
12371 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12372 ipa_param_adjustments to get current parameter indices.
12373 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12374 (ipcp_update_bits): Likewise.
12375 (ipcp_update_vr): Likewise.
12376 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12377 * ipa-sra.c: New file.
12378 * multiple_target.c (create_target_clone): Update to reflet new type
12379 of create_version_clone_with_body.
12380 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12381 tree_function_versioning.
12382 (modify_function): Update to reflect new type of
12383 tree_function_versioning.
12384 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12385 * passes.def: Remove old IPA-SRA and add new one.
12386 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12387 (make_pass_ipa_sra): Declare.
12388 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12390 * doc/invoke.texi (ipa-sra-max-replacements): New.
12392 2019-09-19 Martin Sebor <msebor@redhat.com>
12394 PR middle-end/91631
12395 * builtins.c (component_size): Correct trailing array computation,
12396 rename to component_ref_size and move...
12397 (compute_objsize): Adjust.
12398 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12399 (builtin_access::strict): Do not consider memmove.
12400 (builtin_access::write_off): New function.
12401 (builtin_memref::builtin_memref): Initialize refsize.
12402 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12404 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12406 (builtin_access::builtin_access): Initialize dstoff to destination
12407 refeence offset here instead of in maybe_diag_overlap. Adjust
12408 referencess even to unrelated objects. Adjust sizrange of bounded
12409 string functions to reflect bound. For strcat, adjust destination
12410 sizrange by that of source.
12411 (builtin_access::strcat_overlap): Adjust offsets and sizes
12412 to reflect the increase in destination sizrange above.
12413 (builtin_access::overlap): Do not set dstoff here but instead
12414 in builtin_access::builtin_access.
12415 (check_bounds_or_overlap): Use builtin_access::write_off.
12416 (maybe_diag_access_bounds): Add argument. Add informational notes.
12417 (dump_builtin_memref, dump_builtin_access): New functions.
12418 * tree.c (component_ref_size): ...to here.
12419 * tree.h (component_ref_size): Declare.
12420 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12421 nul in the size of the source string.
12423 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12426 * doc/cpp.texi: Document support for extended characters in
12428 * doc/cppopts.texi: Likewise.
12430 2019-09-19 Richard Biener <rguenther@suse.de>
12432 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12433 (check_reduction_path): New overload having the path as result.
12434 (vect_is_simple_reduction): From the detected reduction
12435 path build a SLP reduction chain if possible.
12437 2019-09-19 Richard Biener <rguenther@suse.de>
12440 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12441 Force operand to a register if it isn't nonimmediate_operand.
12443 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12445 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12446 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12447 (logical_op): Remove code attribute.
12448 (logical_OP): Likewise.
12450 2019-09-19 Martin Liska <mliska@suse.cz>
12452 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12453 Use proper casting.
12455 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12457 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12460 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12461 for NE comparison of TImode values.
12462 (aarch64_emit_load_exclusive): Add support for TImode.
12463 (aarch64_emit_store_exclusive): Likewise.
12464 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12465 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12466 Change iterator from ALLI to ALLI_TI.
12467 (@atomic_compare_and_swap<JUST_TI>): New.
12468 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12469 (aarch64_load_exclusive_pair): New.
12470 (aarch64_store_exclusive_pair): New.
12471 * config/aarch64/iterators.md (JUST_TI): New.
12473 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12474 strong_zero_p for aarch64_track_speculation; unify some code paths;
12475 use aarch64_gen_compare_reg instead of open-coding.
12477 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12478 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12479 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12480 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12481 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12482 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12483 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12484 (atomic_<atomic_op><ALLI>): Likewise.
12485 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12486 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12487 * doc/invoke.texi: Document -moutline-atomics.
12489 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12491 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12492 trivial predicate for condition branch.
12493 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12495 (compute_bb_predicates): Update predicate based on post-dominating
12497 (analyze_function_body): Calculate post-dominating information.
12499 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12501 * tree-vectorizer.h (vectorizable_condition): Take an int
12502 reduction index instead of a boolean flag.
12503 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12504 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12505 reductions if the reduction accumulator is the "then" rather
12506 than the "else" value.
12507 (vect_analyze_stmt): Update call accordingly.
12508 (vect_transform_stmt): Likewise.
12509 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12510 asserting that the index is > 0.
12512 2019-09-19 Martin Liska <mliska@suse.cz>
12514 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12515 (sort_congruence_classes_by_decl_uid): Likewise.
12516 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12518 (sem_item_optimizer::merge_classes): Likewise.
12520 2019-09-19 Richard Biener <rguenther@suse.de>
12522 PR tree-optimization/91812
12523 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12526 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12528 * defaults.h (TARGET_UNIT): New macro.
12529 (target_unit): New type.
12530 * rtl.h (native_encode_rtx, native_decode_rtx)
12531 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12532 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12533 * rtlanal.c (subreg_lsb_1): Delete.
12534 (subreg_size_lsb): New function.
12535 * simplify-rtx.c: Include rtx-vector-builder.h
12536 (simplify_immed_subreg): Delete.
12537 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12538 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12540 (simplify_subreg): Use them.
12541 (test_vector_subregs_modes, test_vector_subregs_repeating)
12542 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12543 (test_vector_subregs): New functions.
12544 (test_vector_ops): Call test_vector_subregs for integer vector
12545 modes with at least 2 elements.
12547 2019-09-19 Richard Biener <rguenther@suse.de>
12549 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12550 LOOP_VINFO_OPERANDS_SWAPPED.
12551 (parloops_is_simple_reduction): Likewise.
12552 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12553 initialize operands_swapped.
12554 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12555 (vect_is_slp_reduction): Do not swap operands.
12556 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12557 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12559 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12562 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12563 Add avx_partial_xmm_update.
12565 2019-09-18 Jim Wilson <jimw@sifive.com>
12568 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12569 (riscv_move_integer): Likewise.
12570 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12571 riscv_move_integer arg.
12572 (riscv_legitimize_move): Likewise.
12573 (riscv_force_temporary): New parameter in_splitter. Don't call
12575 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12577 (riscv_add_offset): Likewise.
12578 (riscv_split_symbol): New parameter in_splitter. Pass to
12579 riscv_force_temporary.
12580 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12582 (riscv_move_integer): New parameter in_splitter. New local
12583 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12585 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12586 riscv_split_symbol, and riscv_force_temporary args.
12587 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12588 riscv_move_integer arg.
12589 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12591 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12594 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12595 hard register store cost to 6.
12597 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12600 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12601 pseudo register store cost from 3 to 6 to make it the same as
12604 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12607 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12608 (one_cmpldi2): Likewise.
12609 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12610 of the constant parts is simple.
12611 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12612 (logical_op): Add new code attribute.
12613 (logical_OP): Likewise.
12614 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12615 (arm_iordi_operand): Add predicate.
12616 (arm_xordi_operand): Add predicate.
12618 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12620 * config/arm/arm.md (maddsidi4): Remove expander.
12621 (mulsidi3adddi): Remove pattern.
12622 (mulsidi3adddi_v6): Likewise.
12623 (mulsidi3_nov6): Likewise.
12624 (mulsidi3_v6): Likewise.
12625 (umulsidi3): Remove expander.
12626 (umulsidi3_nov6): Remove pattern.
12627 (umulsidi3_v6): Likewise.
12628 (umulsidi3adddi): Likewise.
12629 (umulsidi3adddi_v6): Likewise.
12630 (<Us>mulsidi3): Add combined expander.
12631 (<Us>maddsidi4): Likewise.
12632 (<US>mull): Add combined umull and smull pattern.
12633 (<US>mlal): Likewise.
12634 * config/arm/iterators.md (Us): Add new iterator.
12636 2019-09-18 Richard Biener <rguenther@suse.de>
12638 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12640 (vectorize_fold_left_reduction): Remove assert.
12641 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12642 operand in position 2. Remove assert.
12644 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12646 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12647 (smulsi3_highpart_nov6): Remove pattern.
12648 (smulsi3_highpart_v6): Likewise.
12649 (umulsi3_highpart): Likewise.
12650 (umulsi3_highpart_nov6): Likewise.
12651 (umulsi3_highpart_v6): Likewise.
12652 (<US>mull_high): Add new combined multiply pattern.
12654 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12656 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12657 (arm_mulsi3_v6): Likewise.
12658 (mulsi3addsi_v6): Likewise.
12659 (mulsi3subsi): Likewise.
12660 (mul): Add new multiply pattern.
12664 2019-09-18 Richard Biener <rguenther@suse.de>
12666 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12667 (parloops_valid_reduction_input_p): Copy from
12668 valid_reduction_input_p.
12669 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12670 (parloops_needs_fold_left_reduction_p): Copy from
12671 needs_fold_left_reduction_p.
12672 (parloops_is_simple_reduction): Copy from
12673 vect_is_simple_reduction.
12674 (parloops_force_simple_reduction): Copy from
12675 vect_force_simple_reduction.
12676 (gather_scalar_reductions): Adjust.
12677 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12678 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12680 2019-09-18 Richard Biener <rguenther@suse.de>
12682 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12683 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12685 (vect_create_epilog_for_reduction): Remove dead code.
12687 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12689 * varasm.c (assemble_real): Generate canonical const_ints.
12691 2019-09-18 Richard Biener <rguenther@suse.de>
12694 * lto-streamer-in.c (input_eh_regions): Move EH init to
12695 lto_materialize_function.
12696 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12699 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12701 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12704 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12706 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12707 of checking specifically for INTEGER_CST.
12709 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12711 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12712 sizes instead of uhwi sizes.
12714 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12716 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12717 (add_const_value_attribute): Handle CONST_POLY_INT.
12719 2019-09-18 Martin Liska <mliska@suse.cz>
12721 * dbgcnt.def (store_merging): New counter.
12722 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12723 Use it in store merging.
12725 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12727 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12729 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12730 * config/arm/arm.c (arm_sched_variable_issue): New function.
12731 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12733 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12735 * config/arm/types.md (no_reservation): New reservation.
12736 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12738 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12739 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12740 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12741 * config/arm/arm1020e.md (1020alu_op): Likewise.
12742 * config/arm/arm1026ejs.md (alu_op): Likewise.
12743 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12744 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12745 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12746 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12747 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12748 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12749 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12750 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12751 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12752 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12753 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12754 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12755 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12756 * config/arm/fa526.md (526_alu_op): Likewise.
12757 * config/arm/fa606te.md (606te_alu_op): Likewise.
12758 * config/arm/fa626te.md (626te_alu_op): Likewise.
12759 * config/arm/fa726te.md (726te_alu_op): Likewise.
12760 * config/arm/xgene1.md (xgene1_nop): Likewise.
12762 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12764 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12765 "no_insn" to "branch".
12767 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12769 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12771 2019-09-17 Richard Biener <rguenther@suse.de>
12774 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12775 was missing generate locations only once.
12777 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12780 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12782 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12783 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12784 for switch default case using range analysis information.
12786 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12789 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12790 mode attributed is supported by FDPIC.
12792 2019-09-17 Richard Biener <rguenther@suse.de>
12794 PR tree-optimization/91790
12795 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12796 use the correct DR for setting up realignment.
12798 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12801 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12802 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12803 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12804 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12806 2019-09-16 Jason Merrill <jason@redhat.com>
12808 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12810 2019-09-16 Martin Liska <mliska@suse.cz>
12812 * gimple-fold.c (or_comparisons_1): Remove rules moved
12814 * match.pd: ... here.
12816 2019-09-16 Martin Liska <mliska@suse.cz>
12818 * gimple-fold.c (or_comparisons_1): Remove rules
12820 * match.pd: ... here.
12822 2019-09-16 Martin Liska <mliska@suse.cz>
12824 * genmatch.c (dt_node::append_simplify): Do not print
12825 warning when we have duplicate patterns belonging
12826 to a same simplify rule.
12827 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12828 (maybe_fold_comparisons_from_match_pd): Handle
12829 tcc_comparison as a results.
12830 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12832 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12833 Qi Feng <ffengqi@linux.ibm.com>
12835 PR middle-end/88784
12836 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12837 (x > y && x == XXX_MIN): Optimize into 'false'.
12838 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12839 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12840 (x < y && x == XXX_MAX): Optimize into 'false'.
12841 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12842 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12843 (x <= y || x != XXX_MIN): Optimize into 'true'.
12844 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12845 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12846 (x >= y || x != XXX_MAX): Optimize into 'true'.
12847 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12849 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12850 Martin Liska <mliska@suse.cz>
12852 * gimple-fold.c (and_comparisons_1): Add type as first
12854 (and_var_with_comparison): Likewise.
12855 (and_var_with_comparison_1): Likewise.
12856 (or_comparisons_1): Likewise.
12857 (or_var_with_comparison): Likewise.
12858 (or_var_with_comparison_1): Likewise.
12859 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12860 (maybe_fold_or_comparisons): Likewise.
12861 (maybe_fold_comparisons_from_match_pd): New.
12862 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12863 (maybe_fold_or_comparisons): Likewise.
12864 * gimple.c (gimple_size): Make it public and add num_ops argument.
12865 (gimple_init): New function.
12866 (gimple_alloc): Call gimple_init.
12867 * gimple.h (gimple_size): New.
12868 (gimple_init): Likewise.
12869 * tree-if-conv.c (fold_or_predicates): Pass type.
12870 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12871 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12872 (optimize_vec_cond_expr): Likewise.
12873 (ovce_extract_ops): Return type of conditional expression.
12874 * tree-ssanames.c (init_ssa_name_imm_use): New.
12875 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12876 * tree-ssanames.h (init_ssa_name_imm_use): New.
12878 2019-09-16 Richard Biener <rguenther@suse.de>
12880 PR tree-optimization/91756
12881 PR tree-optimization/87132
12882 * tree-ssa-alias.h (enum translate_flags): New.
12883 (get_continuation_for_phi): Use it instead of simple bool flag.
12884 (walk_non_aliased_vuses): Likewise.
12885 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12886 (get_continuation_for_phi): When looking across backedges only
12887 disallow valueization.
12888 (walk_non_aliased_vuses): Adjust.
12889 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12892 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12894 PR middle-end/80791
12895 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12896 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12897 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12898 * target.def (have_count_reg_decr_p): New hook.
12899 (doloop_cost_for_generic): Likewise.
12900 (doloop_cost_for_address): Likewise.
12901 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12902 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12903 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12904 * doc/tm.texi: Regenerate.
12905 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12907 (record_group): Init doloop_p.
12908 (add_candidate_1): Add optional argument doloop, change the handlings
12910 (add_candidate): Likewise.
12911 (generic_predict_doloop_p): Update attribute.
12912 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12913 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12914 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12916 (get_computation_cost): Update for doloop IV cand extra cost.
12917 (determine_group_iv_cost_cond): Update for doloop IV cand.
12918 (determine_iv_cost): Likewise.
12919 (ivopts_estimate_reg_pressure): Likewise.
12920 (may_eliminate_iv): Update handlings for doloop IV cand.
12921 (add_iv_candidate_for_doloop): New function.
12922 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12923 (iv_ca_set_no_cp): Update for doloop IV cand.
12924 (iv_ca_set_cp): Likewise.
12925 (iv_ca_dump): Dump register cost.
12926 (find_doloop_use): New function.
12927 (analyze_and_mark_doloop_use): Likewise.
12928 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
12930 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
12932 PR middle-end/91708
12933 * cse.c (cse_insn): Do not replace anything with a
12936 2019-09-13 Ian Lance Taylor <iant@golang.org>
12938 * doc/invoke.texi (Optimize Options): Fix typo.
12940 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
12942 PR tree-optimization/89386
12943 * config/i386/sse.md (smulhrs<mode>3): New expander.
12944 (smulhrsv4hi3): Ditto.
12946 2019-09-12 Richard Biener <rguenther@suse.de>
12948 PR tree-optimization/91750
12949 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
12950 in the type of the evolution.
12952 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
12954 PR tree-optimization/89386
12955 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
12956 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
12957 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
12958 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
12959 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
12960 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
12961 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
12962 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
12963 (su, r): Handle the unspecs above.
12964 (bt): New int attribute.
12965 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
12966 * internal-fn.c (first_commutative_argument): Commutativity info for
12968 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
12969 (umulhrs_optab): New optabs.
12970 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
12971 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
12972 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
12974 (vect_vect_recog_func_ptrs): Add it.
12976 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
12978 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
12981 2019-09-11 Nathan Sidwell <nathan@acm.org>
12983 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
12984 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
12986 2019-09-11 Richard Biener <rguenther@suse.de>
12988 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
12989 * lto-wrapper.c (merge_and_complain): Pick up -g.
12990 (append_compiler_options): Likewise.
12991 (run_gcc): Re-instantiate handling -g0 at link-time.
12992 * doc/invoke.texi (flto): Document debug info generation.
12994 2019-09-11 Richard Biener <rguenther@suse.de>
12996 PR tree-optimization/90387
12997 * vr-values.c (vr_values::extract_range_basic): After inlining
12998 simplify non-constant __builtin_constant_p to false.
13000 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13002 PR rtl-optimization/89795
13003 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13004 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13006 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13008 PR tree-optimization/91723
13009 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13010 instead of pointer equality when checking if argument vectypes are
13013 PR middle-end/91725
13014 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13015 of get_nonzero_bits, only call it for integral types.
13017 2019-09-11 Richard Biener <rguenther@suse.de>
13020 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13022 * match.pd: Add flag_unsafe_math_optimizations check
13023 before deciding on the widest type in a binary math operation.
13025 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13027 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13028 and CALL_REALLY_USED_REGISTERS must be defined, and that
13029 CALL_REALLY_USED_REGISTERS is preferred.
13030 * doc/tm.texi: Regenerate.
13031 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13032 (call_really_used_regs): Likewise.
13033 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13034 CALL_REALLY_USED_REGISTERS are defined.
13035 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13036 initial value if defined.
13037 (initial_call_really_used_regs): Delete.
13038 (saved_call_really_used_regs): Likewise.
13039 (CALL_REALLY_USED_REGNO_P): Likewise.
13040 (init_reg_sets): Remove handling of call_really_used_regs.
13041 (save_register_info, restore_register_info, globalize_reg): Likewise.
13042 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13043 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13044 outside operand_reg_set.
13045 (fix_register): Don't change call_used_regs if
13046 CALL_REALLY_USED_REGISTERS is defined.
13047 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13048 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13049 instead of call_really_used_regs.
13050 (csky_conditional_register_usage): Remove the old handling of
13051 call_used_regs and change the handling of call_really_used_regs
13052 to use call_used_regs instead.
13053 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13054 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13055 making a register fixed.
13056 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13057 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13058 instead of call_really_used_regs.
13059 (m32r_conditional_register_usage): Don't set call_used_regs when
13060 making a register fixed.
13061 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13062 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13063 instead of call_really_used_regs.
13064 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13065 (mips_cfun_call_saved_reg_p): Likewise.
13066 (mips_swap_registers): Remove the old handling of call_used_regs
13067 and change the handling of call_really_used_regs to use call_used_regs
13069 (mips_conditional_register_usage): Likewise.
13070 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13071 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13072 instead of call_really_used_regs.
13073 (mn10300_get_live_callee_saved_regs): Likewise.
13074 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13075 (mn10300_conditional_register_usage): Don't set call_used_regs when
13076 making a register fixed.
13077 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13078 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13079 Remove the old handling of call_used_regs and change the handling
13080 of call_really_used_regs to use call_used_regs instead.
13081 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13082 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13083 instead of call_really_used_regs.
13084 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13085 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13086 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13087 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13088 (s390_conditional_register_usage): Remove the old handling of
13089 call_used_regs and change the handling of call_really_used_regs
13090 to use call_used_regs instead.
13091 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13092 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13093 (sh_fix_range, reg_unused_after): Likewise.
13094 (sh_conditional_register_usage): Remove the old handling of
13095 call_used_regs and change the handling of call_really_used_regs
13096 to use call_used_regs instead.
13097 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13098 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13099 call_used_regs when making a register fixed.
13100 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13101 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13102 call_used_regs when making a register fixed.
13103 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13104 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13105 set call_used_regs when making a register fixed.
13106 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13107 * config/visium/visium.c (visium_conditional_register_usage): Remove
13108 the old handling of call_used_regs and change the handling of
13109 call_really_used_regs to use call_used_regs instead.
13111 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13113 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13114 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13115 * reginfo.c (call_used_regs): New macro.
13117 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13119 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13121 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13122 (bpf_expand_epilogue): Likewise.
13123 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13124 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13125 (ft32_expand_epilogue): Likewise.
13126 * config/i386/i386.c (ix86_save_reg): Likewise.
13127 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13128 (moxie_expand_epilogue): Likewise.
13129 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13130 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13131 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13133 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13135 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13136 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13137 instead of testing call_used_regs directly.
13138 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13139 (aarch64_components_for_bb): Likewise.
13140 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13141 * config/arc/arc.c (arc_must_save_register): Likewise.
13142 (arc_epilogue_uses): Likewise.
13143 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13144 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13145 (arm_compute_save_reg0_reg12_mask): Likewise.
13146 (arm_compute_save_core_reg_mask): Likewise.
13147 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13148 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13149 (cmse_nonsecure_entry_clear_before_return): Likewise.
13150 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13151 (arm_expand_epilogue): Likewise.
13152 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13153 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13154 (_reg_unused_after): Likewise.
13155 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13156 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13157 (add_to_reg, hwloop_optimize): Likewise.
13158 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13159 (bpf_expand_epilogue): Likewise.
13160 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13161 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13162 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13163 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13164 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13165 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13166 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13167 * config/frv/frv.c (frv_stack_info): Likewise.
13168 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13169 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13170 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13171 (move_callee_saved_registers): Likewise.
13172 * config/h8300/h8300.c (byte_reg): Likewise.
13173 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13174 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13175 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13176 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13177 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13178 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13179 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13180 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13181 * config/m32c/m32c.c (need_to_save): Likewise.
13182 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13183 * config/mcore/mcore.c (calc_live_regs): Likewise.
13184 * config/microblaze/microblaze.c (microblaze_must_save_register):
13186 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13187 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13188 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13189 (mmix_expand_epilogue): Likewise.
13190 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13191 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13192 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13193 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13194 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13195 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13196 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13197 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13198 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13199 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13200 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13201 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13202 * config/rl78/rl78.c (need_to_save): Likewise.
13203 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13204 (rs6000_stack_info, generate_set_vrsave): Likewise.
13205 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13206 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13207 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13208 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13209 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13210 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13211 (save_local_or_in_reg_p): Likewise.
13212 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13213 (xstormy16_epilogue_uses): Likewise.
13214 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13215 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13216 * config/v850/v850.c (compute_register_save_size): Likewise.
13217 * config/vax/vax.c (vax_expand_prologue): Likewise.
13218 * config/visium/visium.c (visium_save_reg_p): Likewise.
13219 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13220 * cselib.c (cselib_process_insn): Likewise.
13221 * df-scan.c (df_get_entry_block_def_set): Likewise.
13222 * function.c (aggregate_value_p): Likewise.
13223 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13224 * ira-lives.c (process_bb_node_lives): Likewise.
13225 * ira.c (do_reload): Likewise.
13226 * lra-lives.c (process_bb_lives): Likewise.
13227 * lra-remat.c (lra_remat): Likewise.
13228 * lra.c (lra): Likewise.
13229 * postreload.c (reload_combine_recognize_pattern): Likewise.
13230 (reload_cse_move2add): Likewise.
13231 * recog.c (peep2_find_free_register): Likewise.
13232 * regrename.c (check_new_reg_p): Likewise.
13233 * reload.c (find_equiv_reg): Likewise.
13234 * reload1.c (reload, find_reg): Likewise.
13235 * sel-sched.c (init_hard_regs_data): Likewise.
13237 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13239 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13240 regs_invalidated_by_call & ~fixed_reg_set instead of
13241 call_used_or_fixed_regs & ~fixed_reg_set.
13242 * config/sh/sh.c (output_stack_adjust): Likewise.
13244 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13246 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13247 (call_used_reg_set): Delete.
13248 (call_used_or_fixed_regs): New macro.
13249 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13250 of call_used_reg_set.
13251 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13252 instead of call_used_regs.
13253 (save_call_clobbered_regs): Likewise.
13254 * cfgcleanup.c (old_insns_match_p): Likewise.
13255 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13256 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13258 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13259 * config/sh/sh.c (output_stack_adjust): Likewise.
13260 * final.c (collect_fn_hard_reg_usage): Likewise.
13261 * ira-build.c (ira_build): Likewise.
13262 * ira-color.c (calculate_saved_nregs): Likewise.
13263 (allocno_reload_assign, calculate_spill_cost): Likewise.
13264 * ira-conflicts.c (ira_build_conflicts): Likewise.
13265 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13266 * ira-lives.c (process_bb_node_lives): Likewise.
13267 * ira.c (setup_reg_renumber): Likewise.
13268 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13269 * lra-constraints.c (need_for_call_save_p): Likewise.
13270 (need_for_split_p, inherit_in_ebb): Likewise.
13271 * lra-lives.c (process_bb_lives): Likewise.
13272 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13273 * postreload.c (reload_combine): Likewise.
13274 * regrename.c (find_rename_reg): Likewise.
13275 * reload1.c (reload_as_needed): Likewise.
13276 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13277 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13278 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13280 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13282 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13283 (no_caller_save_reg_set): Delete.
13284 * caller-save.c (init_caller_save): Don't initialize it.
13285 * ira-conflicts.c (ira_build_conflicts): Calculate
13286 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13288 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13290 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13291 (target_hard_regs::x_savable_regs): New field.
13292 (call_fixed_reg_set): Delete.
13293 (savable_regs): New macro,
13294 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13295 (init_reg_sets_1): Likewise. Initialize savable_regs.
13296 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13297 for all registers. Set savable_regs instead of call_fixed_reg_set.
13298 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13299 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13300 * config/sh/sh.c (output_stack_adjust): Likewise.
13302 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13304 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13305 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13306 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13308 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13310 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13311 * rtlanal.c (get_call_rtx_from): Likewise.
13312 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13313 than the pattern to get_call_rtx_from.
13314 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13315 an rtx_insn * instead of an rtx.
13316 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13318 2019-09-10 Martin Liska <mliska@suse.cz>
13320 * common.opt: Use newly added WarnRemoved.
13321 * config/aarch64/aarch64.opt: Likewise.
13322 * config/arm/arm.opt: Likewise.
13323 * config/i386/i386.opt: Likewise.
13324 * config/ia64/ia64.opt: Likewise.
13325 * config/rs6000/rs6000.opt: Likewise.
13326 * doc/options.texi: Document WarnRemoved properly.
13327 * dwarf2out.c (gen_producer_string): Handle renamed
13328 OPT_SPECIAL_warn_removed.
13329 * lto-opts.c (lto_write_options): Likewise.
13330 * lto-wrapper.c (merge_and_complain): Likewise.
13331 * opts-common.c (decode_cmdline_option): Likewise.
13332 (prune_options): Likewise.
13333 (read_cmdline_option): Likewise.
13334 (control_warning_option): Likewise.
13335 * opts.c (print_filtered_help): Likewise.
13336 * optc-gen.awk: Parse for WarnRemoved and make usage
13337 of Deprecated an error.
13338 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13340 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13342 * doc/install.texi: Fix syntax for html generation.
13344 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13346 PR middle-end/91680
13347 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13348 the shift type to type.
13350 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13352 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13354 (stack_protect_combined_test_insn): Likewise.
13356 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13357 Mickaël Guêné <mickael.guene@st.com>
13359 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13360 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13361 (load_tp_soft_fdpic): New pattern.
13362 (load_tp_soft): Disable in FDPIC mode.
13364 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13365 Mickaël Guêné <mickael.guene@st.com>
13367 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13368 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13369 (arm_call_tls_get_addr): Add FDPIC support.
13370 (legitimize_tls_address): Likewise.
13371 (arm_emit_tls_decoration): Likewise.
13373 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13374 Mickaël Guêné <mickael.guene@st.com>
13376 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13378 (arm_trampoline_init): Likewise.
13379 (arm_trampoline_adjust_address): Likewise.
13380 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13382 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13383 Mickaël Guêné <mickael.guene@st.com>
13385 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13386 (legitimize_pic_address): Enforce binding rules on function
13387 pointers in FDPIC mode.
13388 (arm_assemble_integer): Likewise.
13390 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13391 Mickaël Guêné <mickael.guene@st.com>
13393 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13394 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13397 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13398 Mickaël Guêné <mickael.guene@st.com>
13400 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13403 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13404 Mickaël Guêné <mickael.guene@st.com>
13406 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13408 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13410 * config/arm/arm.c (arm_option_override): Define pic register to
13412 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13413 have no decl or go through PLT.
13414 (calculate_pic_address_constant): New function.
13415 (legitimize_pic_address): Call calculate_pic_address_constant.
13416 (arm_load_pic_register): Handle TARGET_FDPIC.
13417 (arm_is_segment_info_known): New function.
13418 (arm_pic_static_addr): Add support for FDPIC.
13419 (arm_load_function_descriptor): New function.
13420 (arm_emit_call_insn): Add support for FDPIC.
13421 (arm_assemble_integer): Add support for FDPIC.
13422 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13423 Define. (FDPIC_REGNUM): New define.
13424 * config/arm/arm.md (call): Add support for FDPIC.
13425 (call_value): Likewise.
13426 (restore_pic_register_after_call): New pattern.
13427 (untyped_call): Disable if FDPIC.
13428 (untyped_return): Likewise.
13429 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13431 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13432 Mickaël Guêné <mickael.guene@st.com>
13434 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13435 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13436 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13437 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13438 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13439 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13440 * config/arm/uclinuxfdpiceabi.h: New file.
13442 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13444 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13446 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13447 Mickaël Guêné <mickael.guene@st.com>
13449 * config/arm/arm.opt: Add -mfdpic option.
13450 * doc/invoke.texi: Add documentation for -mfdpic.
13452 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13454 * expmed.c (extract_bit_field): Update function comment
13456 * expr.c (expand_expr_real): Update function comment
13458 (expand_misaligned_mem_ref): New helper function.
13459 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13460 Remove duplicate assignment to "base" at case MEM_REF.
13461 Remove a shadowed variable "unsignedp" at case VCE.
13463 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13465 * regset.h (regs_invalidated_by_call_regset): Delete.
13466 (fixed_reg_set_regset): Likewise.
13467 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13468 (fixed_reg_set_regset, persistent_obstack): Likewise.
13469 (init_reg_sets_1, globalize_reg): Update accordingly.
13470 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13471 instead of a bitmap.
13472 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13473 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13474 instead of regs_invalidated_by_call_regset.
13475 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13476 * df-scan.c (df_scan_start_dump): Likewise.
13477 * dse.c (copy_fixed_regs): Likewise.
13478 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13480 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13482 * array-traits.h: New file.
13483 * coretypes.h (array_traits, bitmap_view): New types.
13484 * bitmap.h: Include "array-traits.h"
13485 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13486 (base_bitmap_view, bitmap_view): New classes.
13487 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13488 * hard-reg-set.h: Include array-traits.h.
13489 (array_traits<HARD_REG_SET>): New struct.
13490 * regset.h (IOR_REG_SET_HRS): New macro.
13491 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13492 rather than iterating over each hard register.
13493 * sched-deps.c (sched_analyze_insn): Likewise.
13494 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13496 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13498 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13499 instead of a HARD_REG_SET *.
13500 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13501 (ira_build): Update call accordingly.
13502 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13504 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13506 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13507 (HARD_REG_SET::operator!=): Likewise.
13508 (hard_reg_set_equal_p): Delete.
13509 * cfgcleanup.c (old_insns_match_p): Use == instead of
13510 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13511 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13512 (add_allocno_hard_regs_to_forest): Likewise.
13513 (setup_allocno_available_regs_num): Likewise.
13514 * ira.c (setup_pressure_classes): Likewise.
13515 (setup_allocno_and_important_classes): Likewise.
13516 (setup_reg_class_relations): Likewise.
13517 * lra-lives.c (process_bb_lives): Likewise.
13518 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13520 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13522 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13523 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13524 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13525 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13527 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13528 * ira.c (setup_reg_renumber): Likewise.
13529 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13530 * regrename.c (regrename_find_superclass): Likewise.
13531 * reload1.c (find_reg): Likewise.
13533 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13535 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13536 * caller-save.c (setup_save_areas): Use "&~" instead of
13537 AND_COMPL_HARD_REG_SET.
13538 (save_call_clobbered_regs): Likewise.
13539 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13541 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13542 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13543 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13544 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13545 (mips_conditional_register_usage): Likewise.
13546 * config/sh/sh.c (output_stack_adjust): Likewise.
13547 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13548 (setup_profitable_hard_regs): Likewise.
13549 (get_conflict_and_start_profitable_regs): Likewise.
13550 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13551 (ira_build_conflicts): Likewise.
13552 * ira-costs.c (restrict_cost_classes): Likewise.
13553 (setup_regno_cost_classes_by_aclass): Likewise.
13554 * ira-lives.c (process_bb_node_lives): Likewise.
13555 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13556 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13557 (setup_allocno_and_important_classes, setup_class_translate_array)
13558 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13560 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13561 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13562 (process_alt_operands, inherit_in_ebb): Likewise.
13563 * lra-eliminations.c (update_reg_eliminate): Likewise.
13564 * lra-lives.c (process_bb_lives): Likewise.
13565 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13566 * resource.c (find_dead_or_set_registers): Likewise.
13567 (mark_target_live_regs): Likewise.
13568 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13569 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13570 (implicit_clobber_conflict_p): Likewise.
13571 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13572 (try_shrink_wrapping): Likewise.
13574 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13576 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13577 (HARD_REG_SET::operator|=): Likewise.
13578 (IOR_HARD_REG_SET): Delete.
13579 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13581 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13582 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13583 * final.c (collect_fn_hard_reg_usage): Likewise.
13584 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13585 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13586 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13587 (propagate_some_info_from_allocno): Likewise.
13588 (copy_info_to_removed_store_destinations): Likewise.
13589 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13590 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13591 (fast_allocation): Likewise.
13592 * ira-conflicts.c (ira_build_conflicts): Likewise.
13593 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13594 (process_bb_node_lives): Likewise.
13595 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13596 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13597 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13598 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13599 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13600 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13601 (process_bb_lives): Likewise.
13602 * lra-spills.c (assign_spill_hard_regs): Likewise.
13603 * postreload.c (reload_combine): Likewise.
13604 * reginfo.c (init_reg_sets_1): Likewise.
13605 * regrename.c (merge_overlapping_regs, find_rename_reg)
13606 (merge_chains): Likewise.
13607 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13608 (find_reload_regs, finish_spills, choose_reload_regs_init)
13609 (emit_reload_insns): Likewise.
13610 * reorg.c (redundant_insn): Likewise.
13611 * resource.c (find_dead_or_set_registers, mark_set_resources)
13612 (mark_target_live_regs): Likewise.
13613 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13614 * sched-deps.c (sched_analyze_insn): Likewise.
13615 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13616 (find_best_reg_for_expr): Likewise.
13617 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13619 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13621 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13622 (HARD_REG_SET::operator&): Likewise.
13623 (AND_HARD_REG_SET): Delete.
13624 * caller-save.c (setup_save_areas): Use "&" instead of
13626 (save_call_clobbered_regs): Likewise.
13627 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13628 * config/m32c/m32c.c (reduce_class): Likewise.
13629 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13630 * final.c (get_call_reg_set_usage): Likewise.
13631 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13632 (setup_left_conflict_sizes_p): Likewise.
13633 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13634 (ira_build_conflicts): Likewise.
13635 * ira-costs.c (restrict_cost_classes): Likewise.
13636 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13637 (setup_reg_class_relations): Likewise.
13638 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13639 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13640 * resource.c (find_dead_or_set_registers): Likewise.
13641 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13643 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13645 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13646 (COMPL_HARD_REG_SET): Delete.
13647 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13648 of COMPL_HARD_REG_SET.
13649 (try_rename_operands): Likewise.
13650 * config/sh/sh.c (push_regs): Likewise.
13651 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13652 * lra-constraints.c (contains_reg_p): Likewise.
13653 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13655 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13657 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13658 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13659 of COPY_HARD_REG_SET.
13660 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13661 (epiphany_conditional_register_usage): Likewise.
13662 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13663 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13664 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13665 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13666 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13667 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13668 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13669 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13670 * config/sh/sh.c (output_stack_adjust): Likewise.
13671 * final.c (collect_fn_hard_reg_usage): Likewise.
13672 (get_call_reg_set_usage): Likewise.
13673 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13674 (ira_flattening): Likewise.
13675 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13676 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13677 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13678 (ira_reassign_pseudos): Likewise.
13679 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13680 (ira_build_conflicts): Likewise.
13681 * ira-costs.c (restrict_cost_classes): Likewise.
13682 (setup_regno_cost_classes_by_aclass): Likewise.
13683 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13684 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13685 (setup_stack_reg_pressure_class, setup_pressure_classes)
13686 (setup_allocno_and_important_classes, setup_class_translate_array)
13687 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13688 (ira_setup_eliminable_regset): Likewise.
13689 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13690 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13691 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13692 (process_alt_operands, inherit_in_ebb): Likewise.
13693 * lra-lives.c (process_bb_lives): Likewise.
13694 * lra-spills.c (assign_spill_hard_regs): Likewise.
13695 * lra.c (lra): Likewise.
13696 * mode-switching.c (new_seginfo): Likewise.
13697 * postreload.c (reload_combine): Likewise.
13698 * reg-stack.c (straighten_stack): Likewise.
13699 * reginfo.c (save_register_info, restore_register_info): Likewise.
13700 (init_reg_sets_1, record_subregs_of_mode): Likewise
13701 * regrename.c (create_new_chain, rename_chains): Likewise.
13702 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13703 (find_reload_regs): Likewise.
13704 * resource.c (find_dead_or_set_registers): Likewise.
13705 (mark_target_live_regs): Likewise.
13706 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13708 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13710 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13711 (note_pattern_stores): Declare.
13712 (note_stores): Take an rtx_insn *.
13713 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13714 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13715 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13716 (note_stores): Take an rtx_insn * as argument and process
13717 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13718 (note_pattern_stores): ...this.
13719 (find_first_parameter_load): Pass the insn rather than
13720 its pattern to note_stores.
13721 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13722 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13723 (insert_one_insn): Likewise.
13724 * combine.c (combine_instructions): Likewise.
13725 (likely_spilled_retval_p): Likewise.
13726 (try_combine): Use note_pattern_stores instead of note_stores.
13727 (record_dead_and_set_regs): Pass the insn rather than its pattern
13729 (reg_dead_at_p): Likewise.
13730 * config/bfin/bfin.c (workaround_speculation): Likewise.
13731 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13732 rather than an rtx.
13733 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13734 instead of note_stores.
13735 (frv_optimize_membar_local): Pass the insn rather than its pattern
13737 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13738 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13739 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13740 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13741 (mips_reorg_process_insns): Likewise.
13742 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13743 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13745 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13746 its pattern to note_stores.
13747 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13749 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13750 the insn to note_stores.
13751 (prescan_insns_for_dce): Update call accordingly.
13752 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13754 * df-problems.c (can_move_insns_across): Likewise.
13755 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13756 * function.c (assign_parm_setup_reg): Likewise.
13757 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13758 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13759 (single_set_gcse): Likewise.
13760 * ira.c (validate_equiv_mem): Likewise.
13761 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13763 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13764 pattern to note_stores.
13765 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13766 * loop-iv.c (simplify_using_initial_values): Likewise.
13767 * mode-switching.c (optimize_mode_switching): Likewise.
13768 * optabs.c (emit_libcall_block_1): Likewise.
13769 (expand_atomic_compare_and_swap): Likewise.
13770 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13771 (record_opr_changes): Likewise. Remove explicit handling of
13772 CALL_INSN_FUNCTION_USAGE.
13773 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13774 * regcprop.c (kill_clobbered_values): Likewise.
13775 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13777 * regrename.c (build_def_use): Likewise.
13778 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13779 for mark_not_eliminable.
13780 (reload_as_needed): Pass the insn rather than its pattern
13782 (emit_output_reload_insns): Likewise.
13783 * resource.c (mark_target_live_regs): Likewise.
13784 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13785 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13786 instead of note_stores.
13787 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13788 its pattern to note_stores.
13789 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13790 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13792 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13794 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13795 than a #define. Use a structure rather than an array as the
13796 fallback definition. Remove special cases for low array sizes.
13797 (const_hard_reg_set): New typedef.
13798 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13799 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13800 (hard_reg_set_empty_p): Likewise.
13801 (SET_HARD_REG_BIT): Use a function rather than a macro to
13802 handle the case in which HARD_REG_SET is a structure.
13803 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13804 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13805 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13806 (IOR_COMPL_HARD_REG_SET): Likewise.
13807 (hard_reg_set_iterator::pset): Constify the pointer target.
13808 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13809 of a "const HARD_REG_SET". Update the handling of non-integer
13811 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13812 * reload.h: Likewise.
13813 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13814 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13815 of a "const HARD_REG_SET".
13816 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13817 (range_in_hard_reg_set_p): Likewise.
13818 * ira-costs.c (restrict_cost_classes): Likewise.
13819 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13820 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13821 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13822 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13823 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13824 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13825 take an unsigned int and open-code the HARD_REG_SET operations.
13827 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13829 * Makefile.in (OBJS): Remove bt-load.o.
13830 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13831 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13832 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13833 document that the option no longer does anything.
13834 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13835 * target.def (branch_target_register_class): Delete.
13836 (branch_target_register_callee_saved): Likewise.
13837 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13838 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13839 * doc/tm.texi: Regenerate.
13840 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13841 (make_pass_branch_target_load_optimize2): Likewise.
13842 * passes.def (pass_branch_target_load_optimize1): Likewise.
13843 (pass_branch_target_load_optimize2): Likewise.
13844 * targhooks.h (default_branch_target_register_class): Likewise.
13845 * targhooks.c (default_branch_target_register_class): Likewise.
13846 * opt-suggestions.c (test_completion_valid_options): Remove
13847 -fbtr-bb-exclusive from the list of test options.
13848 * bt-load.c: Remove.
13850 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13852 * match.pd: Add flag_unsafe_math_optimizations check
13853 before deciding on the widest type in a binary math operation.
13855 2019-09-09 Martin Liska <mliska@suse.cz>
13857 * config/i386/i386.opt: Update comment of removed
13858 options that are preserved only for backward
13861 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13864 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13865 instead of __v16qs.
13868 * config/i386/avxintrin.h (__v32qs): New typedef.
13869 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13870 instead of __v32qi.
13872 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13874 * doc/invoke.texi (Option Summary): Cover eBPF.
13875 (eBPF Options): New section.
13876 * doc/extend.texi (BPF Built-in Functions): Likewise.
13877 (BPF Kernel Helpers): Likewise.
13879 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13881 * config.gcc: Support for bpf-*-* targets.
13882 * common/config/bpf/bpf-common.c: New file.
13883 * config/bpf/t-bpf: Likewise.
13884 * config/bpf/predicates.md: Likewise.
13885 * config/bpf/constraints.md: Likewise.
13886 * config/bpf/bpf.opt: Likewise.
13887 * config/bpf/bpf.md: Likewise.
13888 * config/bpf/bpf.h: Likewise.
13889 * config/bpf/bpf.c: Likewise.
13890 * config/bpf/bpf-protos.h: Likewise.
13891 * config/bpf/bpf-opts.h: Likewise.
13892 * config/bpf/bpf-helpers.h: Likewise.
13893 * config/bpf/bpf-helpers.def: Likewise.
13895 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13897 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13900 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13902 * opt-functions.awk (integer_range_info): Make sure values are in
13903 numeric context before operating with them.
13905 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13907 * genemit.c (gen_split): Print the filename and line number where the
13908 splitter (or peephole2) was defined, to the dump file.
13910 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13912 PR tree-optimization/91665
13913 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13914 incompatible with the type of PHI result.
13916 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13919 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13920 gen_unaligned_storedi for 4-byte aligned addresses.
13922 2019-09-06 Jim Wilson <jimw@sifive.com>
13924 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13927 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13929 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
13931 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
13933 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
13934 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
13936 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
13939 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
13940 cost of SSE->integer and integer->SSE moves from 2 to 6.
13941 (core_cost): Ditto.
13943 2019-09-06 Jakub Jelinek <jakub@redhat.com>
13945 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
13946 before testing TYPE_TRANSPARENT_AGGR.
13947 * calls.c (initialize_argument_information, load_register_parameters):
13950 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
13952 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
13954 (cmp_ior): Likewise.
13956 2019-09-06 Martin Liska <mliska@suse.cz>
13958 * doc/match-and-simplify.texi: Separate tuples with ;.
13960 2019-09-06 Martin Liska <mliska@suse.cz>
13963 * Makefile.in: Remove tlink.o.
13964 * collect2.c (do_link): New function isolated
13967 * collect2.h (do_tlink): Remove declaration of do_tlink.
13968 * doc/extend.texi: Remove documentation of -frepo.
13969 * doc/invoke.texi: Likewise.
13970 * doc/sourcebuild.texi: Remove cleanup-repo-files.
13973 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13974 Jim Wilson <jimw@sifive.com>
13977 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
13978 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
13979 paradoxical_subreg_p (operands[0]).
13980 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
13981 use as intermediate value.
13983 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
13985 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
13986 (sync_compare_and_swap<mode>_insn): Likewise.
13988 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
13990 PR middle-end/91615
13991 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
13992 without movmisalign optab.
13994 2019-09-05 Jakub Jelinek <jakub@redhat.com>
13996 PR middle-end/91001
13997 PR middle-end/91105
13998 PR middle-end/91106
13999 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14000 types, use type of their first field instead of type of
14001 args[i].tree_value.
14003 2019-09-05 Richard Biener <rguenther@suse.de>
14005 PR rtl-optimization/91656
14006 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14009 2019-09-05 Richard Biener <rguenther@suse.de>
14011 PR middle-end/90501
14012 * tree-inline.c (declare_return_variable): Mark the return
14013 slot as addressable after building an address of it.
14015 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14017 * doc/install.texi: Update and clarify requirements to build GNAT.
14019 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14021 PR middle-end/91577
14022 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14023 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14024 call to be in memory.
14025 (pass_expand::execute): Call discover_nonconstant_array_refs before
14026 setting currently_expanding_to_rtl.
14028 2019-09-04 Caroline Tice <cmtice@google.com>
14030 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14031 specified together.
14033 2019-09-04 Marek Polacek <polacek@redhat.com>
14035 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14037 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14040 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14041 for QI and HImode moves between SSE and general registers.
14043 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14046 * doc/invoke.texi: Document -Wenum-conversion.
14048 2019-09-04 Richard Biener <rguenther@suse.de>
14050 PR rtl-optimization/36262
14051 * postreload-gcse.c: Include intl.h and gcse.h.
14052 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14053 to avoid linear list walk.
14054 (record_last_mem_set_info): Gate off if not computing transparentness.
14055 (get_bb_avail_insn): If transparentness isn't computed give up
14057 (gcse_after_reload_main): Skip compute_transp and extended PRE
14058 if gcse_or_cprop_is_too_expensive says so.
14060 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14062 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14064 (msp430_select_section): Handle decls with the "noinit" attribute with
14065 default_elf_select_section.
14066 Handle SECCAT_RODATA_MERGE_* section types with
14067 default_elf_select_section.
14068 Add comments about handling of unsupported section types.
14069 (msp430_section_type_flags): Remove handling of the noinit section.
14071 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14073 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14074 conflicting msp430-specific attributes.
14075 (msp430_section_attr): Likewise.
14076 Add warnings about conflicts with generic "noinit" and "section"
14078 Fix grammar in -mlarge error message.
14079 (msp430_data_attr): Rename to msp430_persist_attr.
14080 Add warnings about conflicts with generic "noinit" and "section"
14082 Add warning for when variable is not initialized.
14083 Chain conditionals which prevent the attribute being added.
14084 (ATTR_EXCL): New helper.
14085 (attr_reent_exclusions): New exclusion table.
14086 (attr_naked_exclusions): Likewise.
14087 (attr_crit_exclusions): Likewise.
14088 (attr_lower_exclusions): Likewise.
14089 (attr_upper_exclusions): Likewise.
14090 (attr_either_exclusions): Likewise.
14091 (attr_persist_exclusions): Likewise.
14092 (msp430_attribute_table): Update with exclusion rules.
14093 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14096 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14098 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14099 (msp430_handle_generic_attribute): New function.
14100 * doc/tm.texi: Regenerate.
14101 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14102 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14103 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14104 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14106 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14108 PR tree-optimization/91504
14109 * match.pd: Add ((~a & b) ^a) --> (a | b).
14111 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14114 * config/i386/i386-expand.c (split_double_mode): If there is more than
14115 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14116 already split matching MEM operand instead of calling adjust_address
14119 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14121 * config.gcc: Obsolete spu target. Remove references to spu.
14122 * configure.ac: Remove references to spu.
14123 * configure: Regenerate.
14124 * config/spu/: Remove directory.
14125 * common/config/spu/: Remove directory.
14127 * doc/extend.texi: Remove references to spu.
14128 * doc/invoke.texi: Likewise.
14129 * doc/md.texi: Likewise.
14130 * doc/sourcebuild.texi: Likewise.
14132 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14134 PR middle-end/91603
14135 PR middle-end/91612
14136 PR middle-end/91613
14137 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14138 and SSA_NAME referring to CONSTANT_P correctly.
14140 2019-09-03 Richard Biener <rguenther@suse.de>
14142 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14143 (vn_nary_op_insert): Likewise.
14144 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14145 (vn_nary_op_lookup): Likewise.
14146 (vn_nary_op_insert): Likewise.
14148 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14150 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14151 (*op0, 1) instead of XEXP (*op1, 0).
14153 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14155 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14156 (aarch64_fjcvtzs): New define_insn.
14157 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14158 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14160 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14161 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14162 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14163 __ARM_FEATURE_JCVT where appropriate.
14164 * config/aarch64/arm_acle.h (__jcvt): Define.
14166 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14168 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14169 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14170 (aarch64_<frintnzs_op><mode>): New define_insn.
14171 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14172 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14173 __ARM_FEATURE_FRINT when appropriate.
14174 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14175 frint32x, frint64z, frint64x.
14176 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14177 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14178 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14179 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14180 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14181 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14182 * config/aarch64/iterators.md (VSFDF): Define.
14183 (FRINTNZX): Likewise.
14184 (frintnzs_op): Likewise.
14186 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14188 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14189 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14191 * config/aarch64/aarch64-tune.md: Regenerated.
14192 * doc/invoke.texi: Document the new processors.
14194 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14196 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14200 (sve2-sm4): Likewise.
14201 (sveaes): Likewise.
14202 (svesha3): Likewise.
14203 (svebitperm): Likewise.
14205 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14206 Richard Biener <rguenther@suse.de>
14208 PR tree-optimization/91597
14209 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14210 BIT_AND_EXPR optimization for pointers, even if both operand
14211 ranges don't include NULL, the result can be NULL.
14213 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14215 PR middle-end/91605
14216 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14217 (non_mem_decl_p): ...this.
14218 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14219 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14220 unconditionally as before.
14222 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14225 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14226 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14227 * tree.def (LTGT_EXPR): Likewise.
14228 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14230 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14233 * fold-const.c (range_check_type): For enumeral and boolean
14234 type, pass 1 to type_for_size langhook instead of
14235 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14236 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14237 (build_range_check): Don't call unsigned_type_for for pointer types.
14238 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14239 range_check_type result.
14241 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14243 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14244 (replace_ref): Do not replace a chain of only two candidates which are
14245 valid memory references.
14247 2019-09-02 Martin Liska <mliska@suse.cz>
14249 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14250 Bail out when we'll end up with the same number of clusters as
14252 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14253 (jump_table_cluster::can_be_handled): Remove the guard
14254 as it's already handled in ::is_enabled. Allocate output
14255 after early bail out.
14257 2019-09-02 Martin Liska <mliska@suse.cz>
14259 PR gcov-profile/91601
14260 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14261 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14262 also negative edges.
14263 (circuit): Handle also negative edges as they can happen
14264 in some situations.
14266 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14269 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14270 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14271 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14273 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14275 PR middle-end/91623
14276 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14277 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14278 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14282 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14283 GIMPLE_ASM TREE_LIST operands.
14285 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14287 * doc/generic.texi (Unary and Binary Expressions): Mark up
14288 an instance of TYPE_MIN.
14290 2019-08-31 Stafford Horne <shorne@gmail.com>
14292 * config/or1k/constraints.md (t): New constraint.
14293 * config/or1k/or1k.h (GOT_REGS): New register class.
14294 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14296 2019-08-30 Jim Wilson <jimw@sifive.com>
14298 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14299 and -fpic and -mplt then disable -msave-restore and warn.
14301 2019-08-30 Martin Sebor <msebor@redhat.com>
14303 PR middle-end/91599
14304 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14305 the statement doesn't have one.
14306 * gimple-pretty-print.c (percent_G_format): Same.
14308 PR middle-end/91584
14309 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14310 before using them to validate MEM_REF offset.
14312 2019-08-30 Marek Polacek <polacek@redhat.com>
14314 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14316 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14318 * config/arm/arm.md (unaligned_loaddi,
14319 unaligned_storedi): New unspec insn patterns.
14320 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14321 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14322 and unaligned_storedi for 4-byte aligned memory.
14323 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14324 4-byte aligned memory.
14326 2019-08-30 Martin Jambor <mjambor@suse.cz>
14328 tree-optimization/91579
14329 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14330 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14332 (arg_needs_copy_p): Removed.
14333 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14335 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14337 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14339 * config/i386/i386-features.c
14340 (general_scalar_chain::compute_convert_gain):
14341 Correct cost for double-word shifts.
14342 (general_scalar_to_vector_candidate_p): Reject count operands
14343 greater or equal to mode bitsize.
14345 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14347 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14348 for moves between SSE and non-general registers and between
14349 mask and non-general registers.
14350 (ix86_register_move_cost): Remove stalled comment.
14352 2019-08-29 Richard Biener <rguenther@suse.de>
14354 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14355 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14357 2019-08-29 Richard Biener <rguenther@suse.de>
14360 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14361 Do not emit scalar copies for debug-insns, instead replace
14362 their uses with the reg copy used in the chain or reset them
14363 if there is a reaching definition outside of the chain as well.
14365 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14368 * config/i386/i386-expand.c (expand_vec_perm_movs,
14369 expand_vec_perm_blend, expand_vec_perm_vpermil,
14370 expand_vec_perm_pshufb, expand_vec_perm_1,
14371 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14372 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14373 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14374 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14375 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14376 comments - replace ix86_expand_vec_perm_builtin_1 with
14377 ix86_expand_vec_perm_const_1.
14378 (expand_vec_perm2_vperm2f128_vblend): New function.
14379 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14380 expand_vec_perm2_vperm2f128_vblend as last resort.
14381 (canonicalize_perm): Formatting fix.
14383 PR tree-optimization/91351
14384 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14386 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14387 range_check_type returns NULL.
14388 * tree-switch-conversion.c (switch_conversion::build_one_array):
14389 Use range_check_type instead of unsigned_type_for, don't perform
14390 linear opt if it returns NULL.
14391 (bit_test_cluster::find_bit_tests): Formatting fix.
14392 (bit_test_cluster::emit): Use range_check_type instead of
14394 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14397 2019-08-29 Richard Biener <rguenther@suse.de>
14399 PR tree-optimization/91568
14400 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14401 (vect_update_max_nunits): Add overload for poly_uint64.
14402 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14403 (vect_build_slp_tree): Record max_nunits into the subtree
14404 and merge it upwards.
14405 (vect_print_slp_tree): Print max_nunits.
14407 2019-08-28 Marek Polacek <polacek@redhat.com>
14409 Implement P1152R4: Deprecating some uses of volatile.
14411 * doc/invoke.texi: Document -Wvolatile.
14413 2019-08-28 Marek Polacek <polacek@redhat.com>
14415 PR c++/91360 - Implement C++20 P1143R2: constinit.
14416 * doc/invoke.texi: Document -Wc++20-compat.
14418 2019-08-28 Martin Sebor <msebor@redhat.com>
14420 PR tree-optimization/91457
14421 * builtins.c (component_size): New function.
14422 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14423 * builtins.h (compute_objsize): Add argument.
14424 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14425 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14426 (vrp_prop::check_mem_ref): Same.
14427 (vrp_prop::search_for_addr_array): Set no-warning bit.
14428 (check_array_bounds): Same.
14430 2019-08-28 Martin Sebor <msebor@redhat.com>
14433 * opts-common.c (option_enabled): Correct checking for language
14436 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14438 * config/i386/i386.c (ix86_register_move_cost): Do not
14439 limit the cost of moves to/from XMM register to minimum 8.
14441 2019-08-28 Martin Jambor <mjambor@suse.cz>
14444 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14445 checking assert a normal assert to test it really is redundant.
14446 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14448 (update_jump_functions_after_inlining): Removed combining unary
14449 arithmetic operations with an ancestor jump function.
14450 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14453 2019-08-28 Richard Biener <rguenther@suse.de>
14455 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14456 add the MD problem.
14458 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14459 Richard Biener <rguenther@suse.de>
14461 * expr.c (expand_assignment): Handle misaligned DECLs.
14462 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14463 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14465 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14466 * varasm.c (build_constant_desc): Align constants of misaligned types.
14467 * config/arm/predicates.md (aligned_operand): New predicate.
14468 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14469 aligned_operand to check restrictions on memory addresses.
14470 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14471 * config/arm/vec-common.md (mov<VALL>): Likewise.
14473 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14476 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14477 V_128 iterator instead of VI_128.
14479 2019-08-28 Martin Liska <mliska@suse.cz>
14481 PR tree-optimization/90970
14482 * builtins.c (check_access): Remove assignment to maxread
14483 as it hasn't been used since when it was introduced in r255755.
14485 2019-08-27 Martin Sebor <msebor@redhat.com>
14487 PR tree-optimization/91567
14488 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14489 of unknown strings.
14490 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14491 to PTRDIFF_MAX - 2.
14493 2019-08-27 Jeff Law <law@redhat.com>
14495 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14496 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14498 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14501 * config/i386/i386-features.c (convert_scalars_to_vector):
14502 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14503 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14504 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14505 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14507 2019-08-27 Richard Biener <rguenther@suse.de>
14509 * config/i386/i386-features.h
14510 (general_scalar_chain::~general_scalar_chain): Add.
14511 (general_scalar_chain::insns_conv): New bitmap.
14512 (general_scalar_chain::n_sse_to_integer): New.
14513 (general_scalar_chain::n_integer_to_sse): Likewise.
14514 (general_scalar_chain::make_vector_copies): Adjust signature.
14515 * config/i386/i386-features.c
14516 (general_scalar_chain::general_scalar_chain): Outline,
14517 initialize new members.
14518 (general_scalar_chain::~general_scalar_chain): New.
14519 (general_scalar_chain::mark_dual_mode_def): Record insns
14520 we need to insert conversions at and count them.
14521 (general_scalar_chain::compute_convert_gain): Account
14522 for conversion instructions at chain boundary.
14523 (general_scalar_chain::make_vector_copies): Generate a single
14524 copy for a def by a specific insn.
14525 (general_scalar_chain::convert_registers): First populate
14526 defs_map, then make copies at out-of chain insns.
14528 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14530 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14532 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14534 2019-08-27 Martin Liska <mliska@suse.cz>
14536 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14538 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14539 Enclose in anonymous namespace.
14540 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14541 hard_register initialization in braces.
14542 * tree-vrp.h (value_range_base::supports_type_p): Return false
14543 for function with boolean return type.
14545 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14547 * config/i386/i386.c (emit_i387_cw_initialization)
14548 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14550 2019-08-26 Martin Sebor <msebor@redhat.com>
14553 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14554 (sprintf_dom_walker): Remove class.
14555 (get_int_range): Make argument const.
14556 (directive::fmtfunc, directive::set_precision): Same.
14557 (format_none): Same.
14558 (build_intmax_type_nodes): Same.
14559 (adjust_range_for_overflow): Same.
14560 (format_floating): Same.
14561 (format_character): Same.
14562 (format_string): Same.
14563 (format_plain): Same.
14564 (get_int_range): Cast away constness.
14565 (format_integer): Same.
14566 (get_string_length): Call get_range_strlen_dynamic. Handle
14567 null lendata.maxbound.
14568 (should_warn_p): Adjust argument scope qualifier.
14569 (maybe_warn): Same.
14570 (format_directive): Same.
14571 (parse_directive): Same.
14572 (is_call_safe): Same.
14573 (try_substitute_return_value): Same.
14574 (sprintf_dom_walker::handle_printf_call): Rename...
14575 (handle_printf_call): ...to this. Initialize target to host charmap
14576 here instead of in pass_sprintf_length::execute.
14577 (struct call_info): Make global.
14578 (sprintf_dom_walker::compute_format_length): Make global.
14579 (sprintf_dom_walker::handle_gimple_call): Same.
14580 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14581 * print-rtl.c (print_pattern): Reduce the number of spaces to
14582 avoid -Wformat-truncation.
14583 * tree-pass.h (make_pass_warn_printf): New function.
14584 * tree-ssa-strlen.c (strlen_optimize): New variable.
14585 (get_string_length): Add comments.
14586 (get_range_strlen_dynamic): New function.
14587 (check_and_optimize_call): New function.
14588 (handle_integral_assign): New function.
14589 (strlen_check_and_optimize_stmt): Factor code out into
14590 strlen_check_and_optimize_call and handle_integral_assign.
14591 (strlen_dom_walker::evrp): New member.
14592 (strlen_dom_walker::before_dom_children): Use evrp member.
14593 (strlen_dom_walker::after_dom_children): Use evrp member.
14594 (printf_strlen_execute): New function.
14595 (pass_strlen::gate): Update to handle printf calls.
14596 (dump_strlen_info): New function.
14597 (pass_data_warn_printf): New variable.
14598 (pass_warn_printf): New class.
14599 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14600 (handle_printf_call): Same.
14601 * tree-vrp.c (value_range_base::type): Adjust assertion.
14602 * vr-values.c (vr_values::update_value_range): Use type of the first
14603 argument rather than the second.
14605 2019-08-26 Richard Biener <rguenther@suse.de>
14607 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14609 (convert_scalars_to_vector): Do not call it.
14611 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14612 Uros Bizjak <ubizjak@gmail.com>
14614 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14615 CASE_MATHFN_FLOATN for roundeven.
14616 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14618 (ix86_mode_needed): Likewise.
14619 (ix86_mode_after): Likewise.
14620 (ix86_mode_entry): Likewise.
14621 (ix86_mode_exit): Likewise.
14622 (ix86_emit_mode_set): Likewise.
14623 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14624 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14625 (ix86_entity): Add I387_ROUNDEVEN.
14626 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14627 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14628 (define_int_iterator): Likewise.
14629 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14630 (define_constant): Define ROUND_ROUNDEVEN mode.
14631 (define_attr): Add roundeven mode for i387_cw.
14632 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14633 * internal-fn.def (ROUNDEVEN): New builtin function.
14634 * optabs.def (roundeven_optab): New optab.
14636 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14638 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14640 * builtins.def: Added function definitions for roundeven function
14642 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14643 function call. Adjust condition for floor, ceil, trunc and round.
14644 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14645 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14646 (integer_valued_real_call_p): Added case for roundeven function.
14647 * real.c (is_even): New function. Returns true if real number is even,
14648 otherwise returns false.
14649 (is_halfway_below): New function. Returns true if real number is
14650 halfway between two integers, else return false.
14651 (real_roundeven): New function. Round real number to nearest integer,
14652 rounding halfway cases towards even.
14653 * real.h (real_value): Added descriptive comments. Added function
14654 declaration for roundeven function.
14655 * doc/extend.texi (Other Builtins): List roundeven variants among
14656 functions which can be handled as builtins.
14658 2019-08-26 Richard Biener <rguenther@suse.de>
14662 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14664 (general_scalar_chain::replace_with_subreg): Remove.
14665 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14666 (general_scalar_chain::convert_reg): Adjust signature.
14667 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14668 iterate over all defs of a reg.
14669 (general_scalar_chain::replace_with_subreg): Remove.
14670 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14671 (general_scalar_chain::make_vector_copies): Populate defs_map,
14672 place copy only after defs that are used as vectors in the chain.
14673 (general_scalar_chain::convert_reg): Emit a copy for a specific
14674 def in a specific instruction.
14675 (general_scalar_chain::convert_op): All reg uses are converted here.
14676 (general_scalar_chain::convert_insn): Emit copies for scalar
14677 uses of defs here. Replace uses with the copies we created.
14678 Replace and convert the def. Adjust REG_DEAD notes, remove
14679 REG_EQUIV/EQUAL notes.
14680 (general_scalar_chain::convert_registers): Only handle copies
14681 into the chain here.
14683 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14685 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14687 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14689 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14690 Add nop_convert case.
14691 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14692 Fold all statements if requested.
14693 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14694 Allow to fold all statements.
14695 * tree-vrp.c (class vrp_folder):
14696 Let substitute_and_fold_engine fold all statements.
14698 2019-08-26 Richard Biener <rguenther@suse.de>
14700 PR tree-optimization/91526
14701 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14702 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14703 TODO_update_address_taken.
14705 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14707 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14710 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14712 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14713 machine mode for unspec_volatile operand.
14715 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14717 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14718 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14719 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14720 (prefer_neon_for_64bits): Remove.
14721 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14722 (tune_params): Remove PREF_NEON_64_FALSE uses.
14723 (arm_option_override): Remove prefer_neon selection code.
14724 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14725 * config/arm/arm-protos.h (tune_params): Remove
14726 prefer_neon_for_64bits.
14727 (prefer_neon_for_64bits): Remove.
14729 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14732 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14733 and issue any diagnostics needed before collecting the pre-PCH
14736 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14738 PR middle-end/91283
14739 * common.opt (fexcess-precision=): Add Optimization flag. Use
14740 flag_excess_precision variable instead of
14741 flag_excess_precision_cmdline.
14742 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14744 (flag_excess_precision): Don't define.
14745 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14746 flag_excess_precision_cmdline. Remove comment.
14747 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14748 and x_flag_excess_precision instead of
14749 frontend_set_flag_excess_precision_cmdline and
14750 x_flag_excess_precision_cmdline.
14751 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14752 x_flag_excess_precision_cmdline.
14753 * toplev.c (init_excess_precision): Remove.
14754 (lang_dependent_init_target): Don't call it.
14756 2019-08-23 Martin Liska <mliska@suse.cz>
14758 * lto-wrapper.c (run_gcc): When setting jobserver
14759 set also parallel to 1. This was done so before r273908.
14761 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14763 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14764 (cortex-a76ae): Likewise.
14765 (cortex-a77): Likewise
14766 * config/arm/arm-tables.opt: Regenerate.
14767 * config/arm/arm-tune.md: Likewise.
14768 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14769 cortex-a77 CPU options.
14771 2019-08-23 Martin Liska <mliska@suse.cz>
14773 * profile.c (instrument_values): Do not set
14774 0 as last argument.
14775 * tree-profile.c (gimple_gen_interval_profiler): Remove
14777 (gimple_gen_pow2_profiler): Likewise.
14778 (gimple_gen_topn_values_profiler): Likewise.
14779 (gimple_gen_ic_profiler): Likewise.
14780 (gimple_gen_time_profiler): Likewise.
14781 (gimple_gen_average_profiler): Likewise.
14782 (gimple_gen_ior_profiler): Likewise.
14783 * value-prof.c (dump_histogram_value): Use default
14784 in switch statement instead of HIST_TYPE_MAX.
14785 (stream_in_histogram_value): Likewise.
14786 (gimple_duplicate_stmt_histograms): Do not
14787 use NULL for implicitly set arguments.
14788 (gimple_divmod_values_to_profile): Do not use
14789 reserve+quick_push.
14790 (gimple_indirect_call_to_profile): Likewise.
14791 (gimple_find_values_to_profile): Use implicit
14792 function call arguments.
14793 * value-prof.h (gimple_alloc_histogram_value):
14794 Set default values.
14795 (gimple_gen_interval_profiler): Remove last argument.
14796 (gimple_gen_pow2_profiler): Likewise.
14797 (gimple_gen_topn_values_profiler): Likewise.
14798 (gimple_gen_ic_profiler): Likewise.
14799 (gimple_gen_time_profiler): Likewise.
14800 (gimple_gen_average_profiler): Likewise.
14801 (gimple_gen_ior_profiler): Likewise.
14803 2019-08-22 Martin Sebor <msebor@redhat.com>
14805 PR middle-end/91490
14806 * builtins.c (c_strlen): Rename argument and introduce new local.
14807 Set no-warning bit on original argument.
14808 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14809 Fold empty and zero constructors into empty strings.
14810 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14811 for missing initializers.
14812 * tree.c (build_string_literal): Handle optional argument.
14813 * tree.h (build_string_literal): Add defaulted argument.
14814 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14815 no-warning bit on original expression.
14817 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14820 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14821 and UNSPEC_DARN_RAW.
14822 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14824 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14825 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14826 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14828 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14830 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14831 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14832 * config/rs6000/rs6000.md (unspec): ... here.
14833 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14834 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14835 cmpeqb, *cmpeqb_internal): Delete, move to...
14836 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14837 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14838 cmpeqb, *cmpeqb_internal): ... here.
14840 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14842 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14843 intrinsics if __ARM_FP.
14844 Use __ARM_FEATURE_CRC32 ifdef guard.
14846 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14848 * config/arm/arm.md (neon_for_64bits): Remove.
14849 (avoid_neon_for_64bits): Remove.
14850 (arm_adddi3): Always split early.
14851 (arm_subdi3): Always split early.
14852 (negdi2): Remove Neon expansion.
14853 (split zero_extend): Split before reload.
14854 (split sign_extend): Split before reload.
14856 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14858 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14859 (qhs_extenddi_cstr): Likewise.
14860 * config/arm/arm.md (ashldi3): Always expand early.
14861 (ashlsi3): Likewise.
14862 (ashrsi3): Likewise.
14863 (zero_extend<mode>di2): Remove Neon variants.
14864 (extend<mode>di2): Likewise.
14865 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14866 (signed_shift_di3_neon): Likewise.
14867 (unsigned_shift_di3_neon): Likewise.
14868 (ashrdi3_neon_imm_noclobber): Likewise.
14869 (lshrdi3_neon_imm_noclobber): Likewise.
14870 (<shift>di3_neon): Likewise.
14871 (split extend): Remove DI extend split patterns.
14873 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14875 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14876 (split not): Add DImode not splitter.
14877 (anddi3): Remove pattern.
14878 (anddi3_insn): Likewise.
14879 (anddi_zesidi_di): Likewise.
14880 (anddi_sesdi_di): Likewise.
14881 (anddi_notdi_di): Likewise.
14882 (anddi_notzesidi_di): Likewise.
14883 (anddi_notsesidi_di): Likewise.
14884 (iordi3): Likewise.
14885 (iordi3_insn): Likewise.
14886 (iordi_zesidi_di): Likewise.
14887 (iordi_sesidi_di): Likewise.
14888 (xordi3): Likewise.
14889 (xordi3_insn): Likewise.
14890 (xordi_sesidi_di): Likewise.
14891 (xordi_zesidi_di): Likewise.
14892 (one_cmpldi2): Likewise.
14893 (one_cmpldi2_insn): Likewise.
14894 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14895 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14897 (iwmmxt_xordi3): Likewise.
14898 (iwmmxt_anddi3): Likewise.
14899 * config/arm/neon.md (orndi3_neon): Remove pattern.
14900 (anddi_notdi_di): Likewise.
14901 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14902 (arm_iordi_operand_neon): Likewise.
14903 (arm_xordi_operand_neon): Likewise.
14904 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14905 (iordi_notzesidi_di): Likewise.
14906 (iordi_notdi_zesidi): Likewise.
14907 (iordi_notsesidi_di): Likewise.
14909 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14911 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14913 (iorsi3_compare0_scratch): Likewise.
14915 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14917 * config/aarch64/aarch64-simd-builtins.def:
14920 * config/aarch64/aarch64-simd.md:
14921 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14922 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14923 (aarch64_ld1_x4_<mode>): Likewise.
14924 (aarch64_st1_x4_<mode>): Likewise.
14925 * config/aarch64/arm_neon.h:
14926 (vld1_s8_x4): New function.
14927 (vld1q_s8_x4): Likewise.
14928 (vld1_s16_x4): Likewise.
14929 (vld1q_s16_x4): Likewise.
14930 (vld1_s32_x4): Likewise.
14931 (vld1q_s32_x4): Likewise.
14932 (vld1_u8_x4): Likewise.
14933 (vld1q_u8_x4): Likewise.
14934 (vld1_u16_x4): Likewise.
14935 (vld1q_u16_x4): Likewise.
14936 (vld1_u32_x4): Likewise.
14937 (vld1q_u32_x4): Likewise.
14938 (vld1_f16_x4): Likewise.
14939 (vld1q_f16_x4): Likewise.
14940 (vld1_f32_x4): Likewise.
14941 (vld1q_f32_x4): Likewise.
14942 (vld1_p8_x4): Likewise.
14943 (vld1q_p8_x4): Likewise.
14944 (vld1_p16_x4): Likewise.
14945 (vld1q_p16_x4): Likewise.
14946 (vld1_s64_x4): Likewise.
14947 (vld1_u64_x4): Likewise.
14948 (vld1_p64_x4): Likewise.
14949 (vld1q_s64_x4): Likewise.
14950 (vld1q_u64_x4): Likewise.
14951 (vld1q_p64_x4): Likewise.
14952 (vld1_f64_x4): Likewise.
14953 (vld1q_f64_x4): Likewise.
14954 (vst1_s8_x4): Likewise.
14955 (vst1q_s8_x4): Likewise.
14956 (vst1_s16_x4): Likewise.
14957 (vst1q_s16_x4): Likewise.
14958 (vst1_s32_x4): Likewise.
14959 (vst1q_s32_x4): Likewise.
14960 (vst1_u8_x4): Likewise.
14961 (vst1q_u8_x4): Likewise.
14962 (vst1_u16_x4): Likewise.
14963 (vst1q_u16_x4): Likewise.
14964 (vst1_u32_x4): Likewise.
14965 (vst1q_u32_x4): Likewise.
14966 (vst1_f16_x4): Likewise.
14967 (vst1q_f16_x4): Likewise.
14968 (vst1_f32_x4): Likewise.
14969 (vst1q_f32_x4): Likewise.
14970 (vst1_p8_x4): Likewise.
14971 (vst1q_p8_x4): Likewise.
14972 (vst1_p16_x4): Likewise.
14973 (vst1q_p16_x4): Likewise.
14974 (vst1_s64_x4): Likewise.
14975 (vst1_u64_x4): Likewise.
14976 (vst1_p64_x4): Likewise.
14977 (vst1q_s64_x4): Likewise.
14978 (vst1q_u64_x4): Likewise.
14979 (vst1q_p64_x4): Likewise.
14980 (vst1_f64_x4): Likewise.
14981 (vst1q_f64_x4): Likewise.
14983 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14985 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
14987 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14988 Richard Sandiford <richard.sandiford@arm.com>
14991 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
14992 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
14994 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14997 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
14998 in reg if it fails aarch64_plus_operand predicate.
15000 2019-08-21 Richard Biener <rguenther@suse.de>
15002 PR tree-optimization/91482
15003 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15004 BUILT_IN_ASSUME_ALIGNED calls.
15006 2019-08-21 Richard Biener <rguenther@suse.de>
15010 * config/i386/i386-features.c
15011 (general_scalar_chain::make_vector_copies): Copy stack temporary
15012 rtx when using it multiple times.
15013 (general_scalar_chain::convert_reg): Likewise.
15015 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15017 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15019 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15021 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15022 catch more redundant zero initialization cases.
15023 (dse_dom_walker::dse_optimize_stmt): Likewise.
15025 2019-08-20 Richard Biener <rguenther@suse.de>
15028 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15029 by collect2 when targetm.have_ctors_dtors which avoids dragging
15030 in temporary filenames from LTO input objects.
15032 2019-08-20 Richard Biener <rguenther@suse.de>
15034 PR tree-optimization/37242
15035 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15036 to (T)a + (T)b if we know that a + b does not overflow.
15038 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15040 PR rtl-optimization/91347
15041 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15042 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15044 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15046 * calls.h (function_arg_info): Add a pass_by_reference field,
15047 defaulting to false.
15048 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15049 when applying pass-by-reference semantics.
15050 (initialize_argument_information): Likewise.
15051 (emit_library_call_value_1): Likewise.
15052 * function.c (assign_parm_data_one): Remove passed_pointer field.
15053 (assign_parm_find_data_types): Don't set it.
15054 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15055 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15056 arg.pass_by_reference instead of passed_pointer.
15058 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15060 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15061 into a single function_arg_info, updating its fields when we
15062 apply pass-by-reference and promotion semantics. Use the
15063 function_arg_info to track the mode rather than keeping it in
15064 a separate local variable.
15065 (initialize_argument_information): Likewise. Base the final
15066 arg_to_skip on this new function_arg_info rather than creating
15067 a new one from scratch.
15069 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15071 * function.c (assign_parm_data_one): Replace passed_type,
15072 promoted_mode and named_arg with a function_arg_info field.
15073 (assign_parm_find_data_types): Remove local variables and
15074 assign directly to "data". Make data->passed_mode shadow
15075 data->arg.mode until promotion, then assign the promoted
15076 mode to data->arg.mode.
15077 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15078 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15079 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15080 (assign_parm_setup_block, assign_parm_setup_reg)
15081 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15082 arg.mode instead of promoted_mode, arg.type instead of passed_type
15083 and arg.named instead of named_arg. Use data->arg for
15084 function_arg_info structures that had the field values passed_type,
15085 promoted_mode and named_arg. Base other function_arg_infos on
15086 data->arg, changing the necessary properties.
15088 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15090 * calls.h (apply_pass_by_reference_rules): Declare.
15091 * calls.c (apply_pass_by_reference_rules): New function.
15092 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15093 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15094 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15095 * function.c (assign_parm_find_data_types): Likewise.
15096 * var-tracking.c (prepare_call_arguments): Likewise.
15098 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15100 * target.def (must_pass_in_stack): Take a function_arg_info instead
15101 of a mode and a type.
15102 * doc/tm.texi: Regenerate.
15103 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15104 instead of a mode and a type.
15105 (must_pass_in_stack_var_size_or_pad): Likewise.
15106 * calls.c (must_pass_in_stack_var_size): Likewise.
15107 (must_pass_in_stack_var_size_or_pad): Likewise.
15108 (initialize_argument_information): Update call to
15109 targetm.calls.must_pass_in_stack.
15110 (must_pass_va_arg_on_stack): Likewise.
15111 * function.c (assign_parm_find_entry_rtl): Likewise.
15112 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15113 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15114 (alpha_function_arg_advance): Likewise.
15115 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15116 (cr16_function_arg_advance): Likewise.
15117 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15118 (cris_arg_partial_bytes): Likewise.
15119 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15120 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15121 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15122 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15123 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15124 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15125 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15126 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15127 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15128 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15129 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15130 instead of a mode and a type.
15131 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15132 (fr30_num_arg_regs): Likewise.
15133 (fr30_setup_incoming_varargs): Update calls accordingly.
15134 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15135 (fr30_function_arg_advance): Likewise.
15136 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15137 instead of a mode and a type.
15138 * config/gcn/gcn.c (num_arg_regs): Likewise.
15139 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15140 num_arg_regs and targetm.calls.must_pass_in_stack.
15141 (gcn_arg_partial_bytes): Likewise.
15142 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15143 function_arg_info instead of a mode and a type.
15144 (classify_argument): Update call accordingly.
15145 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15146 function_arg_info instead of a mode and a type.
15147 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15149 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15150 (rs6000_parm_needs_stack): Update call accordingly.
15151 (setup_incoming_varargs): Likewise.
15153 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15155 * target.def (callee_copies): Take a function_arg_info instead
15156 of a mode, type and named flag.
15157 * doc/tm.texi: Regenerate.
15158 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15159 instead of a mode, type and named flag.
15160 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15161 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15162 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15163 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15164 instead of a mode, type and named flag.
15165 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15166 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15167 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15168 * calls.h (reference_callee_copied): Take a function_arg_info
15169 instead of a mode, type and named flag.
15170 * calls.c (reference_callee_copied): Likewise.
15171 (initialize_argument_information): Update call accordingly.
15172 (emit_library_call_value_1): Likewise.
15173 * function.c (gimplify_parameters): Likewise.
15174 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15175 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15176 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15177 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15178 (TARGET_CALLEE_COPIES): Define to
15179 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15180 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15181 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15182 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15183 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15184 instead of a mode, type and named flag.
15185 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15186 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15187 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15188 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15189 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15190 (TARGET_CALLEE_COPIES): Define to
15191 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15192 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15193 instead of a mode, type and named flag.
15194 * config/sh/sh.c (sh_callee_copies): Likewise.
15195 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15196 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15197 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15199 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15201 * target.def (function_arg_advance): Take a function_arg_info instead
15202 of a mode, type and named flag.
15203 * doc/tm.texi: Regenerate.
15204 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15205 instead of a mode, type and named flag.
15206 * targhooks.c (default_function_arg_advance): Likewise.
15207 * calls.c (initialize_argument_information): Update call to
15208 targetm.calls.function_arg_advance.
15209 (emit_library_call_value_1): Likewise.
15210 * dse.c (get_call_args): Likewise.
15211 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15212 * function.c (assign_parms, gimplify_parameters): Likewise.
15213 * var-tracking.c (prepare_call_arguments): Likewise.
15214 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15215 function_arg_info instead of a mode, type and named flag.
15216 (aarch64_setup_incoming_varargs): Update call accordingly.
15217 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15218 function_arg_info instead of a mode, type and named flag.
15219 (alpha_setup_incoming_varargs): Update call accordingly.
15220 * config/arc/arc.c (arc_function_arg_advance): Take a
15221 function_arg_info instead of a mode, type and named flag.
15222 (arc_setup_incoming_varargs): Update call accordingly.
15223 * config/arm/arm.c (arm_function_arg_advance): Take a
15224 function_arg_info instead of a mode, type and named flag.
15225 (cmse_func_args_or_return_in_stack): Update call accordingly.
15226 (arm_function_ok_for_sibcall): Likewise.
15227 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15228 * config/avr/avr.c (avr_function_arg_advance): Take a
15229 function_arg_info instead of a mode, type and named flag.
15230 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15231 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15232 (c6x_call_saved_register_used): Update call accordingly.
15233 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15234 function_arg_info instead of a mode, type and named flag.
15235 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15236 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15237 (csky_setup_incoming_varargs): Update call accordingly.
15238 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15239 function_arg_info instead of a mode, type and named flag.
15240 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15241 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15242 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15243 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15244 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15245 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15246 (ix86_setup_incoming_varargs): Update call accordingly.
15247 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15248 function_arg_info instead of a mode, type and named flag.
15249 (ia64_setup_incoming_varargs): Update call accordingly.
15250 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15251 function_arg_info instead of a mode, type and named flag.
15252 (iq2000_expand_prologue): Update call accordingly.
15253 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15254 function_arg_info instead of a mode, type and named flag.
15255 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15256 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15257 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15258 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15259 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15261 (microblaze_expand_prologue): Update call accordingly.
15262 * config/mips/mips.c (mips_function_arg_advance): Take a
15263 function_arg_info instead of a mode, type and named flag.
15264 (mips_setup_incoming_varargs): Update call accordingly.
15265 (mips_output_args_xfer): Likewise.
15266 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15267 function_arg_info instead of a mode, type and named flag.
15268 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15269 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15270 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15271 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15272 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15273 (nios2_setup_incoming_varargs): Update call accordingly.
15274 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15275 function_arg_info instead of a mode, type and named flag.
15276 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15277 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15278 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15279 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15280 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15281 (riscv_setup_incoming_varargs): Update call accordingly.
15282 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15283 function_arg_info instead of a mode, type and named flag.
15284 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15286 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15287 (rs6000_parm_needs_stack): Update call accordingly.
15288 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15289 instead of a mode, type and named flag.
15290 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15291 (s390_call_saved_register_used): Update call accordingly.
15292 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15293 instead of a mode, type and named flag.
15294 (sh_output_mi_thunk): Update call accordingly.
15295 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15296 function_arg_info instead of a mode, type and named flag.
15297 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15298 (spu_setup_incoming_varargs): Update call accordingly.
15299 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15300 function_arg_info instead of a mode, type and named flag.
15301 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15302 (tilegx_setup_incoming_varargs): Update call accordingly.
15303 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15304 function_arg_info instead of a mode, type and named flag.
15305 (tilegx_setup_incoming_varargs): Update call accordingly.
15306 * config/v850/v850.c (v850_function_arg_advance): Take a
15307 function_arg_info instead of a mode, type and named flag.
15308 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15309 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15310 (visium_setup_incoming_varargs): Update call accordingly.
15311 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15312 function_arg_info instead of a mode, type and named flag.
15314 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15316 * target.def (function_arg, function_incoming_arg): Take a
15317 function_arg_info instead of a mode, tree and named flag.
15318 * doc/tm.texi: Regenerate.
15319 * targhooks.h (default_function_arg): Take a function_arg_info
15320 instead of a mode, tree and named flag.
15321 (default_function_incoming_arg): Likewise.
15322 * targhooks.c (default_function_arg): Likewise.
15323 (default_function_incoming_arg): Likewise.
15324 * calls.h (function_arg_info::end_marker_p): New function.
15325 (function_arg_info::end_marker): Likewise.
15326 * calls.c (prepare_call_address, initialize_argument_information)
15327 (expand_call, emit_library_call_value_1): Update calls to
15328 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15329 * dse.c: Include calls.h.
15330 (get_call_args): Update call to targetm.calls.function_arg.
15331 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15332 * var-tracking.c (prepare_call_arguments): Likewise.
15333 * function.c (assign_parm_find_entry_rtl): Update call to
15334 targetm.calls.function_incoming_arg.
15335 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15336 function_arg_info instead of a mode, tree and named flag.
15337 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15338 * config/arc/arc.c (arc_function_arg): Likewise.
15339 * config/arm/arm.c (arm_function_arg): Likewise.
15340 (cmse_func_args_or_return_in_stack): Update call accordingly.
15341 (arm_function_ok_for_sibcall): Likewise.
15342 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15343 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15344 instead of a mode, tree and named flag.
15345 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15346 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15347 (c6x_call_saved_register_used): Update call accordingly.
15348 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15349 instead of a mode, tree and named flag.
15350 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15351 (cris_function_arg_1): Likewise.
15352 * config/csky/csky.c (csky_function_arg): Likewise.
15353 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15354 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15355 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15356 (frv_function_arg_1): Likewise.
15357 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15358 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15359 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15360 * config/i386/i386.c (ix86_function_arg): Likewise.
15361 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15362 (ia64_function_arg_1): Likewise.
15363 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15364 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15366 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15367 instead of a mode, tree and named flag.
15368 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15369 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15370 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15371 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15372 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15373 (microblaze_expand_prologue): Update call accordingly.
15374 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15375 instead of a mode, tree and named flag.
15376 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15377 (mmix_function_arg_1): Likewise.
15378 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15379 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15380 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15381 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15382 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15383 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15384 (nvptx_function_incoming_arg): Likewise.
15385 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15386 * config/pa/pa.c (pa_function_arg): Likewise.
15387 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15388 * config/pru/pru.c (pru_function_arg): Likewise.
15389 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15390 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15391 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15392 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15393 (rs6000_parm_needs_stack): Update call accordingly.
15394 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15395 instead of a mode, tree and named flag.
15396 * config/s390/s390.c (s390_function_arg): Likewise.
15397 (s390_call_saved_register_used): Update call accordingly.
15398 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15399 instead of a mode, tree and named flag.
15400 (sh_output_mi_thunk): Update call accordingly.
15401 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15402 (sparc_function_incoming_arg): Take a function_arg_info instead of
15403 a mode, tree and named flag.
15404 * config/spu/spu.c (spu_function_arg): Likewise.
15405 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15406 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15407 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15408 * config/v850/v850.c (v850_function_arg): Likewise.
15409 * config/vax/vax.c (vax_function_arg): Likewise.
15410 * config/visium/visium.c (visium_function_arg): Likewise.
15411 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15412 (xtensa_function_incoming_arg): Likewise.
15414 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15416 * target.def (setup_incoming_varargs): Take a function_arg_info
15417 instead of a mode and tree.
15418 * doc/tm.texi: Regenerate.
15419 * targhooks.h (default_setup_incoming_varargs): Take a
15420 function_arg_info instead of a mode and tree.
15421 * targhooks.c (default_setup_incoming_varargs): Likewise.
15422 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15423 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15424 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15425 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15426 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15427 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15428 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15429 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15431 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15432 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15433 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15434 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15435 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15436 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15437 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15438 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15439 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15440 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15441 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15442 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15443 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15444 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15445 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15446 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15447 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15448 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15449 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15450 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15451 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15452 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15453 * function.c (assign_parms_setup_varargs): Update call to
15454 targetm.calls.setup_incoming_varargs.
15456 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15458 * target.def (pass_by_reference): Take a function_arg_info instead
15459 of a mode, type and named flag.
15460 * doc/tm.texi: Regenerate.
15461 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15463 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15464 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15465 function_arg_info instead of a mode, type and named flag.
15466 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15467 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15468 mode, type and named flag.
15469 * calls.c (pass_by_reference): Likewise.
15470 (pass_va_arg_by_reference): Update call accordingly.
15471 (initialize_argument_information): Likewise.
15472 (emit_library_call_value_1): Likewise.
15473 * function.c (assign_parm_find_data_types): Likewise.
15474 * var-tracking.c (prepare_call_arguments): Likewise.
15475 * stor-layout.c: Include calls.h.
15476 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15477 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15478 function_arg_info instead of a mode, type and named flag.
15479 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15480 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15481 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15482 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15483 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15484 (c6x_call_saved_register_used): Update call to pass_by_reference.
15485 * config/cris/cris.c (cris_pass_by_reference): Take a
15486 function_arg_info instead of a mode, type and named flag.
15487 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15488 function_arg_info instead of a mode, type and named flag.
15489 (epiphany_arg_partial_bytes): Update call accordingly.
15490 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15491 function_arg_info instead of a mode, type and named flag.
15492 (ft32_arg_partial_bytes): Update call accordingly.
15493 * config/i386/i386.c (ix86_pass_by_reference): Take a
15494 function_arg_info instead of a mode, type and named flag.
15495 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15496 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15497 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15498 (m32r_return_in_memory): Update call accordingly.
15499 * config/mips/mips.c (mips_pass_by_reference): Take a
15500 function_arg_info instead of a mode, type and named flag.
15501 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15502 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15503 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15504 (moxie_arg_partial_bytes): Update call accordingly.
15505 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15506 function_arg_info instead of a mode, type and named flag.
15507 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15508 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15509 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15510 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15511 (riscv_return_in_memory): Update call accordingly.
15512 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15513 function_arg_info instead of a mode, type and named flag.
15514 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15515 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15516 * config/s390/s390.c (s390_pass_by_reference): Take a
15517 function_arg_info instead of a mode, type and named flag.
15518 (s390_call_saved_register_used): Update call accordingly.
15519 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15520 instead of a mode, type and named flag.
15521 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15522 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15523 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15524 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15525 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15526 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15528 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15530 * target.def (arg_partial_bytes): Take a function_arg_info instead
15531 of a mode, type and named flag.
15532 * doc/tm.texi: Regenerate.
15533 * target.h (function_arg_info): Declare.
15534 * calls.h (function_arg_info): New class.
15535 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15536 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15537 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15538 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15539 * calls.c (initialize_argument_information): Update call to
15540 targetm.calls.partial_bytes.
15541 (emit_library_call_value_1): Likewise.
15542 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15543 * function.c (assign_parm_find_entry_rtl): Likewise.
15544 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15545 function_arg_info instead of a mode, type and named flag.
15546 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15547 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15548 (cmse_func_args_or_return_in_stack): Update accordingly.
15549 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15550 function_arg_info instead of a mode, type and named flag.
15551 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15552 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15553 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15554 * config/fr30/fr30.c: Include calls.h.
15555 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15556 type and named flag.
15557 * config/frv/frv.c: Include calls.h.
15558 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15559 type and named flag.
15560 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15561 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15562 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15563 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15564 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15565 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15566 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15568 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15569 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15570 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15571 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15572 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15573 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15574 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15575 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15576 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15577 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15578 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15579 (rs6000_parm_needs_stack): Update call accordingly.
15580 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15581 function_arg_info instead of a mode, type and named flag.
15582 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15583 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15585 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15587 * calls.h (must_pass_va_arg_in_stack): Declare.
15588 * calls.c (must_pass_va_arg_in_stack): New function.
15589 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15590 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15591 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15593 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15595 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15597 * calls.h (pass_va_arg_by_reference): Declare.
15598 * calls.c (pass_va_arg_by_reference): New function.
15599 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15600 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15601 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15602 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15603 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15604 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15605 (mips_gimplify_va_arg_expr): Likewise.
15606 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15607 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15608 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15609 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15610 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15611 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15612 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15613 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15614 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15615 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15616 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15618 2019-08-20 Richard Biener <rguenther@suse.de>
15621 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15622 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15623 (convert_scalars_to_vector): Add timode_p parameter and use it
15624 to guard TImode-only operation.
15625 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15626 (pass_stv::execute): Pass down timode_p.
15628 2019-08-20 Lili Cui <lili.cui@intel.com>
15630 * common/config/i386/i386-common.c
15631 (processor_names): Add tigerlake and cooperlake.
15632 (processor_alias_table): Add tigerlake and cooperlake.
15633 * config.gcc: Add -march=tigerlake and cooperlake.
15634 * config/i386/driver-i386.c
15635 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15636 Add "has_avx" to classify processor.
15637 * config/i386/i386-builtins.c (processor_model) :
15638 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15639 (arch_names_table): Add tigerlake and cooperlake.
15640 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15641 and PROCESSOR_COOPERLAKE.
15642 * config/i386/i386-c.c
15643 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15644 * config/i386/i386-options.c
15645 (m_TIGERLAKE): Define.
15646 (m_COOPERLAKE): Ditto.
15647 (m_CORE_AVX512): Ditto.
15648 (processor_cost_table): Add cascadelake.
15649 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15650 * config/i386/i386.h
15651 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15652 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15653 (PTA_MOVDIRI): Ditto.
15654 (PTA_MOVDIR64B): Ditto.
15655 (PTA_COOPERLAKE): Ditto.
15656 (PTA_TIGERLAKE): Ditto.
15657 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15658 * doc/extend.texi: Add tigerlake and cooperlake.
15659 * doc/invoke.texi: Add tigerlake and cooperlake.
15661 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15663 * doc/install.texi (Specific, alpha): Remove note to use
15664 binutils 2.11.2 or later.
15666 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15668 PR middle-end/89544
15669 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15672 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15674 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15675 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15676 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15677 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15678 * config/aarch64/constraints.md (Dt): New constraint
15679 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15681 2019-08-19 Richard Biener <rguenther@suse.de>
15683 PR tree-optimization/91403
15684 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15685 cases we can handle with tail-recursion...
15686 (follow_ssa_edge_expr): ... here. Do so.
15688 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15691 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15692 implemented for -fsanitize=kernel-address, and merge check logic
15693 with -fsanitize=address.
15695 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15697 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15698 for cpu and machine. Factor 64/32b builtins.
15700 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15702 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15703 gone, point to sourceforge.net.
15705 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15707 * doc/ux.texi (User Experience Guidelines): Update reference.
15709 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15711 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15714 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15716 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15717 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15719 2019-08-16 Martin Sebor <msebor@redhat.com>
15721 * tree.def (TYPE_SIZE): Clarify.
15722 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15724 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15726 PR tree-optimization/91109
15727 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15728 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15729 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15731 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15733 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15734 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15735 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15736 (uavg<mode>3_ceil): New expander.
15737 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15738 mode iterator when creating CONST1_RTX.
15739 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15740 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15741 mode iterator for const1_operand predicate.
15743 2019-08-16 Richard Biener <rguenther@suse.de>
15745 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15746 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15748 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15749 (analyze_evolution_in_loop): Likewise.
15750 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15751 (follow_ssa_edge_expr): ... here. Refactor code.
15753 2019-08-16 Richard Biener <rguenther@suse.de>
15756 * config/i386/i386-features.c
15757 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15759 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15762 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15763 only if subst_name matches curr_attr string.
15765 2019-08-16 Richard Biener <rguenther@suse.de>
15767 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15768 stmt at gsi_p, instead replace it with a NOP removed later.
15769 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15770 that became dead because of that.
15772 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15774 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15775 for which we can't represent a range.
15776 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15778 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15779 Set VR_UNDEFINED if type is not supported.
15780 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15781 * tree-vrp.c (value_range_base::check): Assert that a varying has
15783 (value_range_base::equal_p): Early bail for undefines.
15784 (value_range_base::set_varying): Accept a type.
15785 (value_range::set_varying): Same.
15786 (value_range_base::type): VARYING can have a type, while UNDEFINE
15788 (value_range_base::dump): Print type for VARYING nodes.
15789 (value_range_base::set): Add type to VARYING.
15790 (extract_range_from_multiplicative_op): Pass type to set_varying.
15791 (extract_range_from_binary_expr): Same.
15792 (value_range_base::intersect_helper): Same.
15793 (value_range_base::union_helper): Same.
15794 (value_range_base::normalize_symbolics): Same.
15795 (determine_value_range_1): Same.
15796 * tree-vrp.h (class value_range_base): Add type to set_varying.
15797 Add prototype for dump(void).
15798 Add prototype for supports_type_p.
15799 (class value_range): Add type to set_varying.
15800 Add prototype for dump(void).
15801 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15803 (vr_values::get_lattice_entry): Set varying even if propagation
15805 Pass type to set_varying.
15806 (vr_values::get_value_range): Remove vr_const_varying.
15807 Reallocate the lattice if needed.
15808 (vr_values::update_value_range): Pass type to set_varying.
15809 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15810 (vr_values::extract_range_from_binary_expr): Same.
15811 (vr_values::extract_range_from_unary_expr): Same.
15812 (vr_values::extract_range_from_cond_expr): Same.
15813 (vr_values::check_for_binary_op_overflow): Same.
15814 (vr_values::extract_range_basic): Same.
15815 (vr_values::extract_range_from_assignment): Same.
15816 (vr_values::vr_values): Increase size of num_vr_values.
15817 (vr_values::extract_range_from_phi_node): Pass type to
15820 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15823 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15824 for costs of hard register moves.
15825 (ix86_register_move_cost): Likewise.
15826 * config/i386/i386.h (processor_costs): Move costs of hard
15827 register moves to hard_register. Add int_load, int_store,
15828 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15829 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15830 for costs of RTL expressions.
15831 * config/i386/x86-tune-costs.h: Move costs of hard register
15832 moves to hard_register. Duplicate int_load, int_store,
15833 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15834 sse_load, sse_store for costs of RTL expressions.
15836 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15838 * target.def (setup_incoming_vararg_bounds): Remove.
15839 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15840 * doc/tm.texi: Regenerate.
15841 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15842 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15843 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15844 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15846 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15848 MSP430: Fix lines over 80 characters long in
15849 config/msp430/*.{c,h} files
15851 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15852 specifier in string.
15853 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15854 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15855 redundant old comment.
15856 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15857 Split line more than 80 characters long.
15858 * config/msp430/msp430.c (msp430_option_override): Likewise.
15859 (msp430_return_in_memory): Likewise.
15860 (msp430_gimplify_va_arg_expr): Likewise.
15861 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15862 (msp430_legitimate_constant): Likewise.
15863 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15864 (msp430_attr): Likewise.
15865 (msp430_data_attr): Likewise.
15866 (msp430_start_function): Likewise.
15867 (gen_prefix): Likewise.
15868 (msp430_init_sections): Likewise.
15869 (msp430_select_section): Likewise.
15870 (msp430_function_section): Likewise.
15871 (msp430_unique_section): Likewise.
15872 (msp430_output_aligned_decl_common): Likewise.
15873 (msp430_do_not_relax_short_jumps): Likewise.
15874 (msp430_init_builtins): Likewise.
15875 (msp430_expand_delay_cycles): Likewise.
15876 (msp430_expand_prologue): Likewise.
15877 (msp430_expand_epilogue): Likewise.
15878 (msp430_expand_helper): Likewise.
15879 (msp430_split_movsi): Likewise.
15880 (msp430_print_operand): Likewise.
15881 (msp430_return_addr_rtx): Likewise.
15882 (msp430x_extendhisi): Likewise.
15883 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15884 (ASM_SPEC): Likewise.
15885 Remove very obvious comments.
15886 (LIB_SPEC): Split line more than 80 characters long.
15887 (EH_RETURN_HANDLER_RTX): Likewise.
15888 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15890 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15892 MSP430: Fix whitespace errors and incorrect indentation in
15893 config/msp430/*.{c,h} files
15895 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15896 (msp430_select_hwmult_lib): Likewise.
15897 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15898 (msp430_extract_mcu_data): Likewise.
15899 (struct t_msp430_mcu_data): Likewise.
15900 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15901 before left square bracket.
15902 (msp430_option_override): Fix indentation.
15903 (msp430_hard_regno_nregs_with_padding): Likewise.
15904 (msp430_initial_elimination_offset): Likewise.
15905 (msp430_special_register_convention_p): Remove whitespace before left
15906 square bracket and after exclamation mark.
15907 (msp430_evaluate_arg): Likewise.
15908 (msp430_callee_copies): Fix indentation.
15909 (msp430_gimplify_va_arg_expr): Likewise.
15910 (msp430_function_arg_advance): Remove whitespace before left square
15912 (reg_ok_for_addr): Likewise.
15913 (msp430_preserve_reg_p): Likewise.
15914 (msp430_compute_frame_info): Likewise.
15915 (msp430_asm_output_addr_const_extra): Add space between function name
15916 and open parenthesis.
15917 (has_section_name): Fix indentation.
15918 (msp430_attr): Remove trailing whitespace.
15919 (msp430_section_attr): Likewise.
15920 (msp430_data_attr): Likewise.
15921 (struct msp430_attribute_table): Fix comment and whitespace.
15922 (msp430_start_function): Remove whitespace before left square bracket.
15923 Add space between function name and open parenthesis.
15924 (msp430_select_section): Remove trailing whitespace.
15925 (msp430_section_type_flags): Remove trailing whitespace.
15926 (msp430_unique_section): Remove space before closing parenthesis.
15927 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15928 (msp430_builtins): Remove whitespace before left square bracket.
15929 (msp430_init_builtins): Fix indentation.
15930 (msp430_expand_prologue): Remove whitespace before left square bracket.
15931 Remove space before closing parenthesis.
15932 (msp430_expand_epilogue): Remove whitespace before left square bracket.
15933 (msp430_split_movsi): Remove space before closing parenthesis.
15934 (helper_function_name_mappings): Fix indentation.
15935 (msp430_use_f5_series_hwmult): Fix whitespace.
15936 (use_32bit_hwmult): Likewise.
15937 (msp430_no_hwmult): Likewise.
15938 (msp430_output_labelref): Remove whitespace before left square bracket.
15939 (msp430_print_operand_raw): Likewise.
15940 (msp430_print_operand_addr): Likewise.
15941 (msp430_print_operand): Add two spaces after '.' in comment.
15942 Fix trailing whitespace.
15943 (msp430x_extendhisi): Fix indentation.
15944 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
15946 (PC_REGNUM): Likewise.
15947 (STACK_POINTER_REGNUM): Likewise.
15948 (CC_REGNUM): Likewise.
15950 2019-08-15 Richard Biener <rguenther@suse.de>
15953 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
15955 (general_scalar_chain::make_vector_copies): Use it.
15957 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
15959 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
15961 2019-08-15 Martin Liska <mliska@suse.cz>
15963 * tree-ssa-dce.c (propagate_necessity): We can't reach now
15964 operators with no arguments.
15965 (eliminate_unnecessary_stmts): Likewise here.
15967 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
15969 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
15970 <case COMPARE>: Revert 2019-08-14 change.
15971 (convertible_comparison_p): Revert 2019-08-14 change. Return false
15972 for (TARGET_64BIT || mode != DImode).
15974 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
15976 * tree-vrp.c (value_range_base::set): Merge in code from
15977 value_range_base::set_and_canonicalize.
15978 Enforce canonicalization at set time.
15979 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
15980 (value_range_base::set_undefined): Inline call to set().
15981 (value_range_base::set_varying): Same.
15982 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
15983 (vrp_val_max): New argument handle_pointers.
15984 (vrp_val_min): Same.
15985 (ranges_from_anti_range): Same.
15986 (extract_range_into_wide_ints): Use tree argument instead of sign
15988 (extract_range_from_multiplicative_op): Take in tree type instead
15989 of precision and sign. Adapt function for canonicalized ranges.
15990 (extract_range_from_binary_expr): Pass type to
15991 extract_range_from_multiplicative_op.
15992 Adapt for canonicalized ranges.
15993 (extract_range_from_unary_expr): Same.
15994 (value_range_base::intersect_helper): Adjust for canonicalized
15996 (value_range_base::union_helper): Same.
15997 (value_range_base::normalize_symbolics): New.
15998 * tree-vrp.h (class value_range_base): Remove
15999 set_and_canonicalize.
16000 New prototype for normalize_symbolics.
16001 (class value_range): Remove set_and_canonicalize.
16002 (vrp_val_min): Adjust prototype.
16003 (vrp_val_max): Same.
16005 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16006 instead of set_and_canonicalize.
16008 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16010 PR middle-end/91444
16011 * tree-vect-stmts.c (vectorizable_call): Check that the function
16012 is a BUILT_IN_MD function before passing it to
16013 targetm.vectorize.builtin_md_vectorized_function.
16015 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16017 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16018 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16019 (aarch64_select_early_remat_modes): Use it.
16021 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16023 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16024 16 for SVE predicates even if they are fixed-length.
16026 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16028 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16029 operand order match the MOV /Z alias.
16031 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16033 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16034 the vector pattern as an aarch64_svpattern argument. Update the
16035 overloaded caller accordingly.
16036 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16037 (aarch64_output_sve_vector_inc_dec): Likewise.
16039 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16041 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16042 multiplication case, try to compute VG * (lowest set bit) directly
16043 rather than always basing the multiplication on VG. Use
16044 expand_mult for the multiplication if we can.
16046 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16048 * config/aarch64/aarch64-protos.h
16049 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16050 (aarch64_sve_inc_dec_immediate_p): Rename to...
16051 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16052 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16053 (aarch64_output_sve_scalar_inc_dec): Declare.
16054 (aarch64_output_sve_inc_dec_immediate): Rename to...
16055 (aarch64_output_sve_vector_inc_dec): ...this.
16056 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16057 (aarch64_output_sve_scalar_inc_dec): New functions.
16058 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16059 arguments. Only handle true ADDVL and ADDPL instructions;
16060 don't emit an INC or DEC.
16061 (aarch64_sve_inc_dec_immediate_p): Rename to...
16062 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16063 (aarch64_output_sve_inc_dec_immediate): Rename to...
16064 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16065 aarch64_sve_vector_inc_dec_immediate_p.
16066 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16067 (aarch64_sve_plus_immediate): New predicates.
16068 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16069 rather than aarch64_sve_addvl_addpl_immediate.
16070 (aarch64_sve_inc_dec_immediate): Rename to...
16071 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16072 aarch64_sve_vector_inc_dec_immediate_p.
16073 (aarch64_sve_add_operand): Update accordingly.
16074 * config/aarch64/constraints.md (Uai): New constraint.
16075 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16076 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16077 operand into a register if it satisfies aarch64_sve_plus_immediate.
16078 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16079 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16080 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16081 aarch64_output_sve_vector_inc_dec instead of
16082 aarch64_output_sve_inc_dec_immediate.
16084 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16086 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16087 (UNSPEC_REVW): New constants.
16088 (elem_bits): New mode attribute.
16089 (SVE_INT_UNARY): New int iterator.
16090 (optab): Handle UNSPEC_REV[BHW].
16091 (sve_int_op): New int attribute.
16092 (min_elem_bits): Handle VNx16QI and the predicate modes.
16093 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16094 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16095 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16096 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16097 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16098 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16099 unspecs based on the total width of the reversed data.
16100 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16101 reinterpret followed by a subreg on big-endian targets.
16103 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16104 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16106 * config/aarch64/aarch64-sve.md
16107 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16108 alternatives in which one of the inputs is in the same register
16111 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16113 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16114 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16116 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16118 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16119 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16121 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16122 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16124 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16125 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16126 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16128 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16129 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16131 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16132 Add an alternative that uses reversed shifts.
16134 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16136 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16139 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16141 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16142 a commutativity marker.
16144 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16145 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16147 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16148 (aarch64_prepare_sve_cond_int_fma): Declare.
16149 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16150 (aarch64_prepare_sve_int_fma): New functions.
16151 (aarch64_prepare_sve_cond_int_fma): Likewise.
16152 * config/aarch64/aarch64-sve.md
16153 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16154 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16155 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16156 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16157 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16158 (*madd<mode>): Rename to...
16159 (*fma<mode>4): ...this.
16160 (*msub<mode>): Rename to...
16161 (*fnma<mode>4): ...this.
16163 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16164 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16166 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16167 Print 2.0 naturally.
16168 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16169 * config/aarch64/predicates.md
16170 (aarch64_sve_float_negated_arith_immediate): New predicate,
16171 renamed from aarch64_sve_float_arith_with_sub_immediate.
16172 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16173 positive and negative constants.
16174 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16175 or an aarch64_sve_float_arith_with_sub_immediate.
16176 * config/aarch64/constraints.md (vsN): Use
16177 aarch64_sve_float_negated_arith_immediate.
16178 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16180 (sve_pred_fp_rhs2_immediate): New int attribute.
16181 * config/aarch64/aarch64-sve.md
16182 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16183 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16184 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16185 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16186 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16187 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16189 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16190 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16192 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16193 (*aarch64_cond_abd<SVE_F:mode>_3)
16194 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16196 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16197 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16199 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16200 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16202 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16203 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16205 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16206 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16207 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16208 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16210 * optabs.h (create_convert_operand_from): Expand comment.
16211 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16212 when mapping scalar rtxes to vector operands.
16213 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16214 ashiftrt and lshiftrt.
16215 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16216 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16217 (*cond_<optab><mode>_any_const): New patterns.
16219 2019-08-15 Martin Liska <mliska@suse.cz>
16222 * cgraph.c (cgraph_node::remove): When setting
16223 n->origin = NULL for all nested functions, reset
16226 2019-08-15 Martin Liska <mliska@suse.cz>
16228 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16231 2019-08-15 Martin Liska <mliska@suse.cz>
16234 * passes.c (order): Remove.
16235 (uid_hash_t): Likewise).
16236 (remove_cgraph_node_from_order): Remove from set
16237 of pointers (cgraph_node *).
16238 (insert_cgraph_node_to_order): New.
16239 (duplicate_cgraph_node_to_order): New.
16240 (do_per_function_toporder): Register all 3 cgraph hooks.
16241 Skip removed_nodes now as we know about all of them.
16243 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16245 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16246 <case E_V8QImode>: Use vector_set path for
16247 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16248 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16249 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16251 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16253 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16255 2019-08-14 Martin Sebor <msebor@redhat.com>
16257 PR tree-optimization/91294
16258 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16259 source length as exact.
16261 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16263 * doc/extend.texi: Add "noinit" attribute documentation.
16264 * doc/sourcebuild.texi: Add noinit effective target documentation.
16265 * varasm.c (default_section_type_flags): Add support for "noinit"
16267 (default_elf_select_section): Add support for "noinit" attribute.
16268 * config/msp430/msp430.c (msp430_attribute_table): Remove
16271 2019-08-14 Richard Biener <rguenther@suse.de>
16272 Uroš Bizjak <ubizjak@gmail.com>
16275 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16277 (scalar_chain::smode): New member.
16278 (scalar_chain::vmode): Likewise.
16279 (dimode_scalar_chain): Rename to...
16280 (general_scalar_chain): ... this.
16281 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16282 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16283 base with TImode and V1TImode.
16284 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16285 (general_scalar_chain::vector_const_cost): Adjust for SImode
16287 (general_scalar_chain::compute_convert_gain): Likewise. Add
16288 {S,U}{MIN,MAX} support.
16289 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16290 (general_scalar_chain::make_vector_copies): Likewise. Handle
16291 non-DImode chains appropriately.
16292 (general_scalar_chain::convert_reg): Likewise.
16293 (general_scalar_chain::convert_op): Likewise.
16294 (general_scalar_chain::convert_insn): Likewise. Add
16295 fatal_insn_not_found if the result is not recognized.
16296 (convertible_comparison_p): Pass in the scalar mode and use that.
16297 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16298 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16299 (scalar_to_vector_candidate_p): Remove by inlining into single
16301 (general_remove_non_convertible_regs): Rename from
16302 dimode_remove_non_convertible_regs.
16303 (remove_non_convertible_regs): Remove by inlining into single caller.
16304 (convert_scalars_to_vector): Handle SImode and DImode chains
16305 in addition to TImode chains.
16306 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16307 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16308 (*<maxmin>di3_doubleword): Likewise.
16310 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16311 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16313 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16314 (*cond_bic<mode>_any): New patterns.
16316 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16318 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16319 take the equivalent mask, as well as a bit count.
16320 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16321 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16322 (aarch64_sve_pred_and_operand): New predicates.
16323 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16325 * config/aarch64/aarch64-sve.md
16326 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16327 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16329 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16331 * config/aarch64/aarch64-sve.md
16332 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16333 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16336 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16337 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16339 * config/aarch64/aarch64-sve.md
16340 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16341 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16343 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16344 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16346 * config/aarch64/aarch64-sve.md
16347 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16348 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16350 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16352 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16353 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16356 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16357 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16359 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16361 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16362 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16364 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16365 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16366 (aarch64_print_operand): Add support for %I.
16367 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16368 Bitcast floating-point constants to the corresponding integer constant.
16369 (aarch64_float_const_representable_p): Handle vectors as well
16371 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16372 for the new vcond_mask_<mode><vpred> expander.
16373 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16374 test aarch64_float_const_representable_p.
16375 (aarch64_sve_reg_or_dup_imm): New predicate.
16376 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16377 gen_vcond_mask_<mode><vpred> instead of
16378 gen_aarch64_sve_dup<mode>_const.
16379 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16380 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16381 for operands 1 and 2 respectively. Force operand 2 into a
16382 register if operand 1 is a register. Fold old define_insn...
16383 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16384 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16385 floating-point constants that can be moved as integers. Add
16386 alternatives for MOV /M and FMOV /M.
16387 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16388 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16389 1 and 2 respectively.
16390 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16392 (vss): New constraint.
16394 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16396 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16397 (aarch64_sve_float_maxmin_operand): New predicates.
16398 * config/aarch64/constraints.md (vsB): New constraint.
16400 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16401 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16402 UNSPEC_COND_FMINNM.
16403 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16404 Use aarch64_sve_float_maxmin_operand for operand 2.
16405 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16406 Add alternatives for the constant forms.
16408 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16410 * config/aarch64/constraints.md (vsb): New constraint.
16411 (vsm): Generalize description.
16412 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16414 (sve_imm_con): Handle smax, smin, umax and umin.
16415 (sve_imm_prefix): New code attribute.
16416 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16417 (aarch64_sve_vsb_operand): New predicates.
16418 (aarch64_sve_mul_immediate): Rename to...
16419 (aarch64_sve_vsm_immediate): ...this.
16420 (aarch64_sve_mul_operand): Rename to...
16421 (aarch64_sve_vsm_operand): ...this.
16422 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16423 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16424 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16425 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16426 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16427 add movprfx support for the immediate alternatives.
16428 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16430 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16433 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16435 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16436 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16437 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16439 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16441 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16442 (optab, sve_int_op): Handle them.
16443 * config/aarch64/aarch64-sve.md: Expand comment.
16445 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16447 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16448 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16449 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16451 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16453 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16454 (aarch64_expand_sve_const_pred_trn): New functions.
16455 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16456 use the above functions when the parameter is true.
16457 (aarch64_expand_sve_const_pred): Update call accordingly.
16458 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16460 (@aarch64_sve_<perm_insn><mode>): ...this.
16462 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16464 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16466 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16467 (aarch64_sve_emit_int_cmp): New functions.
16468 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16469 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16470 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16471 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16472 (UNSPEC_PRED_Z): New unspec.
16473 (set_clobber_cc_nzc): Delete.
16474 * config/aarch64/aarch64-sve.md: Add a block comment about
16476 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16477 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16478 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16479 UNSPEC_MERGE_PTRUE.
16480 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16481 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16482 check for compatible predicates.
16483 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16484 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16485 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16488 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16490 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16491 * config/aarch64/aarch64-sve.md: Add a section describing it.
16492 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16493 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16494 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16495 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16496 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16497 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16498 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16499 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16500 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16501 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16502 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16503 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16504 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16505 (aarch64_evpc_rev_local): Update accordingly.
16507 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16509 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16511 (SVE_BHSI, SVE_SDI): Tweak comment.
16512 (SVE_HSDI): Likewise. Fix definition.
16513 (SVE_SDF): New mode iterator.
16514 (elem_bits): New mode attribute.
16515 (SVE_COND_FCVT): New int iterator.
16516 * config/aarch64/aarch64-sve.md
16517 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16518 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16519 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16520 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16521 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16522 ...these new patterns.
16523 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16524 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16525 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16527 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16528 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16529 ...these new patterns.
16530 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16531 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16532 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16533 ...this new pattern.
16534 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16535 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16536 ...this new pattern.
16537 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16539 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16541 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16542 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16543 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16545 (optab, su): Handle them.
16546 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16547 * config/aarch64/aarch64-sve.md
16548 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16549 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16550 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16551 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16552 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16553 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16554 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16555 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16556 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16558 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16559 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16560 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16561 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16562 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16563 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16564 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16565 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16566 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16567 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16568 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16569 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16570 of UNSPEC_FLOAT_CONVERT.
16571 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16572 aarch64_sve_extend<mode><Vwide>2.
16574 2019-08-14 Richard Biener <rguenther@suse.de>
16577 * config/i386/i386-features.c
16578 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16579 individual instruction gain. Fix reg-reg copy GRP cost. Use
16580 ix86_cost->sse_op for vector instruction costs.
16582 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16584 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16585 (cmp_op): Handle it.
16586 (SVE_COND_FP_CMP): Rename to...
16587 (SVE_COND_FP_CMP_I0): ...this.
16588 (SVE_FP_CMP): Remove.
16589 * config/aarch64/aarch64-sve.md
16590 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16591 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16592 using unspecs to represent the comparison.
16593 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16594 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16596 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16597 (aarch64_unspec_cond_code): Move after integer code. Handle
16599 (aarch64_emit_sve_predicated_cond): Replace with...
16600 (aarch64_emit_sve_fp_cond): ...this new function.
16601 (aarch64_emit_sve_or_conds): Replace with...
16602 (aarch64_emit_sve_or_fp_conds): ...this new function.
16603 (aarch64_emit_sve_inverted_cond): Replace with...
16604 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16605 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16607 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16609 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16610 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16611 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16612 SVE_HSD instead of SVE_SD.
16614 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16615 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16617 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16619 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16621 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16622 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16623 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16624 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16625 (*div<SVE_F:mode>3): Generalize to...
16626 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16628 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16629 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16631 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16633 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16635 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16637 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16639 * config/aarch64/aarch64-sve.md: Add a block comment about the
16640 handling of predicated FP operations.
16641 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16642 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16643 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16644 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16645 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16647 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16648 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16650 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16651 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16652 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16653 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16654 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16655 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16656 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16657 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16658 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16659 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16660 strictness operands. Use aarch64_sve_pred_dominates_p to check
16661 whether the predicate on the conditional operation is suitable
16662 for merging. Split patterns into the canonical equal-predicate form.
16663 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16664 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16666 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16667 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16669 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16670 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16671 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16673 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16674 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16677 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16678 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16680 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16681 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16682 actually has, rather than relying on REG_EQUAL notes.
16683 Make the insn operand order match the SVE operand order.
16684 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16685 the SVE operand order.
16687 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16689 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16690 (aarch64_emit_set_immediate): Likewise.
16691 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16692 (aarch64_pfalse_reg): Likewise.
16693 (aarch64_convert_sve_data_to_pred): New function.
16694 (aarch64_sve_move_pred_via_while): Take an optional target register
16695 and the required register mode.
16696 (aarch64_expand_sve_const_pred_1): New function.
16697 (aarch64_expand_sve_const_pred): Likewise.
16698 (aarch64_expand_mov_immediate): Build an all-true predicate
16699 if the significant bits of the immediate are all true. Use
16700 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16701 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16702 before register allocation.
16703 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16704 a VNx16BI PTRUE when splitting the memory alternative.
16705 (vec_duplicate<mode>): Update accordingly.
16706 (*pred_cmp<cmp_op><mode>): Rename to...
16707 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16709 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16711 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16712 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16713 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16714 (UNSPEC_PTEST): New unspec.
16715 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16716 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16717 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16718 * config/aarch64/aarch64-sve.md: Add a new section describing the
16719 handling of UNSPEC_PTEST.
16720 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16721 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16722 (ptest_ptrue<mode>): Replace with...
16723 (aarch64_ptest<mode>): ...this new pattern.
16724 (cbranch<mode>4): Update after above changes.
16725 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16726 UNSPEC_PTEST_PTRUE.
16727 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16728 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16729 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16731 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16734 * builtins.c (builtin_with_linkage_p): New function.
16735 * builtins.h (builtin_with_linkage_p): New function.
16736 * symtab.c (write_symbol): Remove redundant assert.
16737 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16738 Remove FIXME and use builtin_with_linkage_p.
16740 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16742 PR middle-end/91421
16743 * tree-core.h (function_decl::function_code): Change type to
16745 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16746 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16747 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16748 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16749 is BUILT_IN_NORMAL.
16750 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16751 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16752 (fndecl_built_in_p): Change the type of the "name" argument to
16754 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16755 after check for DECL_BUILT_IN_CLASS.
16756 * cgraphclones.c (build_function_decl_skip_args): Use
16757 set_decl_built_in_function.
16758 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16759 * ipa-split.c (split_function): Likewise.
16760 * langhooks.c (add_builtin_function_common): Likewise.
16761 * omp-simd-clone.c (simd_clone_create): Likewise.
16762 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16763 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16764 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16765 DECL_FUNCTION_CODE.
16766 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16767 instead of DECL_FUNCTION_CODE.
16768 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16769 instead of DECL_FUNCTION_CODE.
16770 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16771 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16772 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16773 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16774 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16775 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16776 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16777 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16778 (alpha_gimple_fold_builtin): Likewise.
16779 * config/arc/arc.c (arc_expand_builtin): Likewise.
16780 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16781 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16782 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16783 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16784 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16785 * config/frv/frv.c (frv_expand_builtin): Likewise.
16786 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16787 (gcn_expand_builtin): Likewise.
16788 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16789 (fold_builtin_cpu): Likewise.
16790 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16791 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16792 (ix86_gimple_fold_builtin): Likewise.
16793 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16794 (ia64_expand_builtin): Likewise.
16795 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16796 * config/mips/mips.c (mips_expand_builtin): Likewise.
16797 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16798 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16799 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16800 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16801 * config/pa/pa.c (pa_expand_builtin): Likewise.
16802 * config/pru/pru.c (pru_expand_builtin): Likewise.
16803 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16804 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16806 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16807 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16808 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16809 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16810 (rs6000_builtin_reciprocal): Likewise.
16811 * config/rx/rx.c (rx_expand_builtin): Likewise.
16812 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16813 * config/s390/s390.c (s390_expand_builtin): Likewise.
16814 * config/sh/sh.c (sh_expand_builtin): Likewise.
16815 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16816 (sparc_fold_builtin): Likewise.
16817 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16818 * config/spu/spu.c (spu_expand_builtin): Likewise.
16819 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16820 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16821 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16822 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16823 (xtensa_expand_builtin): Likewise.
16825 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16827 PR middle-end/91421
16828 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16829 before the DECL_FUNCTION_CODE.
16830 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16831 to check for a BUILT_IN_ALLOCA call.
16832 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16833 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16834 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16835 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16836 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16837 for BUILT_IN_NORMAL functions.
16838 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16839 test for BUILT_IN_TM_ABORT.
16840 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16841 to check for a BUILT_IN_STACK_RESTORE call.
16842 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16843 * tree-ssa-threadedge.c
16844 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16845 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16846 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16847 test for a BUILT_IN_NORMAL call instead of a negative test for
16848 an internal function call.
16850 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16852 * tree.h (build_vector_a_then_b): Declare.
16853 * tree.c (build_vector_a_then_b): New function.
16854 * fold-const-call.c (fold_while_ult): Likewise.
16855 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16856 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16857 (aarch64_svpattern): New enum.
16858 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16859 constants through aarch64_expand_mov_immediate.
16860 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16861 than general_operand as the predicate for operand 1.
16862 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16863 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16865 (simd_immediate_info::simd_immediate_info): New overload that
16866 takes a scalar_int_mode and an svpattern.
16867 (simd_immediate_info::u): Add a "pattern" field.
16868 (svpattern_token): New function.
16869 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16870 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16871 (aarch64_sve_move_pred_via_while): New functions.
16872 (aarch64_expand_mov_immediate): Try using
16873 aarch64_sve_move_pred_via_while for predicates that contain N ones
16874 followed by M zeros but that do not correspond to a VLnnn pattern.
16875 (aarch64_sve_pred_valid_immediate): New function.
16876 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16877 with PTRUE and PFALSE.
16878 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16881 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16883 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16885 (darwin_override_options): Likewise.
16886 * config/darwin.h: Likewise.
16887 * config/darwin.opt: Likewise.
16888 * config/i386/i386.c (output_pic_addr_const): Likewise.
16889 * config/rs6000/darwin.h: Likewise.
16890 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16891 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16892 ... this TARGET_MACHO_SYMBOL_STUBS.
16893 (FUNCTION_PROFILER):Likewise.
16894 * config/i386/i386.h: Likewise.
16896 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16898 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16899 <case E_V2SImode>: Use vec_extr path for
16900 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16901 <case E_V8QImode>: Ditto.
16902 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16903 Use SWI48 mode iterator. Use %k to output operand 0.
16904 (*mmx_pextrw): New insn pattern.
16905 (*mmx_pextrb): Ditto.
16906 (*mmx_pextrb_zext): Ditto.
16908 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16910 * target.def (libc_has_function, libc_has_fast_function): Improve
16911 documentation strings.
16912 * doc/tm.texi: Regenerate.
16914 2019-08-13 Caroline Tice <cmtice@google.com>
16917 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16918 vtv_end.o or vtv_end_preinit.o files if !static.
16920 2019-08-13 Olivier Hainque <hainque@adacore.com>
16922 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16924 2019-08-13 Olivier Hainque <hainque@adacore.com>
16926 * rtlanal.c (tablejump_casesi_pattern): New function, to
16927 determine if a tablejump insn is a casesi dispatcher. Extracted
16928 from patch_jump_insn.
16929 * rtl.h (tablejump_casesi_pattern): Declare.
16930 * cfgrtl.c (patch_jump_insn): Use it.
16931 * dwarf2cfi.c (create_trace_edges): Use it.
16933 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16936 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
16937 operand is larger than a long int.
16939 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16941 * machmode.h (opt_mode::else_mode): New function.
16942 (opt_mode::else_blk): Use it.
16943 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
16944 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
16945 (aarch64_gen_stepped_int_parallel): Likewise.
16946 (aarch64_stepped_int_parallel_p): Likewise.
16947 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16949 * config/aarch64/aarch64.c
16950 (aarch64_expand_sve_widened_duplicate): Delete.
16951 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
16952 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
16953 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
16954 argument. Use early returns in the !CONST_INT_P handling.
16955 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
16956 than handling some inline.
16957 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
16959 (aarch64_simd_container_mode): ...here.
16960 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
16961 (aarch64_sve_ld1rq_operand_p): New functions.
16962 * config/aarch64/predicates.md (descending_int_parallel)
16963 (aarch64_sve_ld1rq_operand): New predicates.
16964 * config/aarch64/constraints.md (UtQ): New constraint.
16965 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
16966 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
16967 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
16968 (@aarch64_sve_reinterpret<mode>): New expander.
16969 (*aarch64_sve_reinterpret<mode>): New pattern.
16970 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
16971 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
16972 (*sve_ld1rq<Vesize>): Replace with...
16973 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
16975 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
16977 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
16980 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16982 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
16983 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
16984 (msp430_check_path_for_devices): New.
16985 (parse_devices_csv_1): New.
16986 (parse_devices_csv): New.
16987 (msp430_extract_mcu_data): Try to find devices.csv and search for the
16988 MCU data in devices.csv before using the hard-coded data.
16989 Warn if devices.csv isn't found and the MCU wasn't found in the
16990 hard-coded data either.
16991 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
16992 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
16993 Search for devices.csv on -I and -L paths.
16994 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
16995 msp430_set_driver_var.
16996 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
16997 -mdevices-csv-loc=.
16998 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
16999 searched for devices.csv.
17000 (mwarn-devices-csv): Document option.
17002 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17004 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17005 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17006 Use a single Dn alternative instead of separate Dz and Dm
17007 alternatives. Use aarch64_output_sve_move_immediate.
17008 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17010 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17011 for predicates too.
17012 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17013 (aarch64_output_ptrue): Delete.
17015 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17017 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17019 (simd_immediate_info::value, simd_immediate_info::step)
17020 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17022 (simd_immediate_info::u): ...this new union.
17023 (simd_immediate_info::simd_immediate_info): Update accordingly.
17024 (aarch64_output_simd_mov_immediate): Likewise.
17025 (aarch64_output_sve_mov_immediate): Likewise.
17027 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17029 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17031 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17032 (msp430_select_cpu): New spec function.
17033 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17035 * config/msp430/msp430-devices.c: New file.
17036 * config/msp430/msp430-devices.h: New file.
17037 * config/msp430/msp430.c: Remove msp430_mcu_data.
17038 (msp430_option_override): Use msp430_extract_mcu_data to extract
17040 (msp430_use_f5_series_hwmult): Likewise.
17041 (use_32bit_hwmult): Likewise.
17042 (msp430_no_hwmult): Likewise.
17043 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17045 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17047 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17048 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17049 Remove hard-coded MCU multilib data.
17051 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17053 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17054 based on the mode instead of testing properties of it.
17056 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17058 * doc/md.texi: Document the x and y constraints for AArch64.
17059 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17060 (FP_LO8_REGS): New reg_class.
17061 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17062 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17063 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17064 * config/aarch64/predicates.md (aarch64_simd_register): Use
17065 FP_REGNUM_P instead of checking the classes manually.
17066 * config/aarch64/constraints.md (y): New constraint.
17068 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17070 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17071 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17072 * config/aarch64/aarch64-simd.md
17073 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17074 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17075 from the asm template.
17076 * config/aarch64/aarch64-sve.md
17077 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17078 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17079 from the asm template.
17080 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17081 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17082 from the asm template.
17083 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17085 2019-08-13 Martin Liska <mliska@suse.cz>
17087 * value-prof.c (gimple_ic_transform): Add new line.
17088 Print details with MSG_NOTE.
17090 2019-08-13 Martin Liska <mliska@suse.cz>
17092 * doc/invoke.texi: Document automatic detection of jobserver.
17093 * lto-wrapper.c (run_gcc): Detect jobserver always.
17095 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17097 * config/i386/i386-expand.c (ix86_expand_vector_set)
17098 <case E_V2SImode>: Use vec_merge path for
17099 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17100 <case E_V8QImode>: Ditto.
17101 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17102 (*mmx_pinsrb): Ditto.
17104 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17108 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17109 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17110 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17111 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17112 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17114 2019-08-12 Richard Biener <rguenther@suse.de>
17117 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17120 2019-08-12 Richard Biener <rguenther@suse.de>
17123 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17124 lang_mask option, always use CL_DRIVER.
17125 (get_options_from_collect_gcc_options): Adjust.
17126 (find_and_merge_options): Likewise.
17127 (run_gcc): Likewise.
17129 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17131 * ipa-predicate.c (add_condition): Restore inverted test.
17133 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17135 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17136 (enum omp_clause_device_type_kind): New enum.
17137 (struct tree_omp_clause): Add subcode.device_type_kind.
17138 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17139 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17140 for device_type clause.
17141 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17142 * tree-pretty-print.c (dump_omp_clause): Likewise.
17145 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17148 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17150 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17151 handling spilled pseudos.
17153 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17156 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17157 to preserve the contents of the original insns.
17159 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17161 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17162 (addsi3_compare_op2): Likewise.
17164 2019-08-09 Martin Liska <mliska@suse.cz>
17166 * alias.c (alias_ptr_types_compatible_p): Strengten
17167 type comparison in LTO mode.
17169 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17171 PR middle-end/90313
17172 * tree-tailcall.c (find_tail_calls): Reject calls that might
17173 read from an escaped RESULT_DECL.
17175 2019-08-09 Martin Liska <mliska@suse.cz>
17177 * doc/invoke.texi: Document the option value.
17178 * lto-wrapper.c (run_gcc): Set auto_parallel
17179 only with -flto=auto.
17181 2019-08-09 Martin Liska <mliska@suse.cz>
17183 * opts.c (common_handle_option): Error for an invalid argument
17186 2019-08-09 Martin Liska <mliska@suse.cz>
17188 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17189 use dump_printf to report optimization.
17190 (sem_variable::merge): Likwise.
17191 (sem_item_optimizer::merge_classes): Use dump_printf to report
17194 2019-08-09 Martin Liska <mliska@suse.cz>
17196 * value-prof.c (gimple_divmod_fixed_value_transform):
17197 Use dump_printf_loc.
17198 (gimple_mod_pow2_value_transform): Likewise.
17199 (gimple_mod_subtract_transform): Likewise.
17200 (init_node_map): Likewise.
17201 (gimple_ic_transform): Likewise.
17202 (gimple_stringops_transform): Likewise.
17204 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17206 * doc/extend.texi: Add const qualifier to ld intrinsics.
17208 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17210 * config/rs6000/dfp.md (D64_D128): Rename to ...
17211 (DDTD): ... this, throughout.
17212 (dfp_suffix): Rename to ...
17213 (q): ... this, throughout.
17215 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17217 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17218 (dfp_suffix): Ditto.
17219 (adddd3, addtd3): Merge to ...
17220 (add<mode>3 for D64_D128): ... this.
17221 (subdd3, subtd3): Merge to ...
17222 (sub<mode>3 for D64_D128): ... this.
17223 (muldd3, multd3): Merge to ...
17224 (mul<mode>3 for D64_D128): ... this.
17225 (divdd3, divtd3): Merge to ...
17226 (div<mode>3 for D64_D128): ... this.
17227 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17228 (*cmp<mode>_internal1 for D64_D128): ... this.
17229 (ftruncdd2, ftrunctd2): Merge to ...
17230 (ftrunc<mode>2 for D64_D128): ... this.
17231 (fixdddi2, fixtddi2): Merge to ...
17232 (fix<mode>di2 for D64_D128): ... this.
17234 2019-08-08 Jim Wilson <jimw@sifive.com>
17237 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17238 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17239 Pass into recursive call.
17240 (riscv_flatten_aggregate_argument): New arg. Pass to
17241 riscv_flatten_aggregate_field.
17242 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17243 riscv_flatten_aggregate_argument twice, with false and true as last
17244 arg. Process result twice. Compare results and warn if different.
17245 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17247 2019-08-08 Martin Liska <mliska@suse.cz>
17250 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17251 * lto-wrapper.c (jobserver_active_p): Likewise.
17253 2019-08-08 Martin Liska <mliska@suse.cz>
17255 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17256 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17257 (create_version_clone_with_body): Likewise.
17259 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17261 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17262 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17263 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17264 GOVD_EXPLICIT flags.
17265 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17266 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17267 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17268 call install_var_field with mask 11 instead of 3.
17269 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17270 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17272 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17274 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17275 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17277 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17279 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17280 MOVPRFX alternatives. Make the GPR alternatives more expensive
17283 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17285 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17286 Disparage the GPR alternative relative to the FPR one.
17287 Fix handling of 8-bit and 16-bit FPR values.
17289 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17291 * config/aarch64/iterators.md (BITWISEV): Delete.
17292 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17293 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17294 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17295 UNSPEC_FMINNMV, UNSPEC_FMINV.
17296 (bit_reduc_op): Delete.
17297 (sve_int_op): New int attribute.
17298 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17299 UNSPEC_FMINNMV, UNSPEC_FMINV.
17300 * config/aarch64/aarch64-sve.md
17301 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17302 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17303 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17304 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17305 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17306 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17308 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17309 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17310 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17311 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17312 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17315 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17317 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17318 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17319 (fms<mode>4, *fms<mode>4): Replace with...
17320 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17321 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17322 Use unspecs instead of rtx codes.
17323 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17324 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17326 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17328 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17330 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17331 * config/aarch64/aarch64-sve.md
17332 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17333 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17334 use a single unspec for the rhs.
17335 (*<su><maxmin><mode>3): Delete.
17336 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17338 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17340 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17341 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17342 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17343 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17344 (optab, sve_fp_op): Handle them.
17345 (SVE_FP_UNARY): Delete.
17346 (optab): Remove sqrt entry.
17347 (sve_fp_op): Remove neg, abs and sqrt entries.
17348 (SVE_COND_FP_UNARY): New int iterator.
17349 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17350 (*<frint_pattern><mode>2): Delete.
17351 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17352 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17353 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17354 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17356 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17358 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17360 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17362 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17363 (UNSPEC_COND_FADD): ...this.
17364 (UNSPEC_COND_SUB): Rename to...
17365 (UNSPEC_COND_FSUB): ...this.
17366 (UNSPEC_COND_MUL): Rename to...
17367 (UNSPEC_COND_FMUL): ...this.
17368 (UNSPEC_COND_DIV): Rename to...
17369 (UNSPEC_COND_FDIV): ...this.
17370 (UNSPEC_COND_MAX): Rename to...
17371 (UNSPEC_COND_FMAXNM): ...this.
17372 (UNSPEC_COND_MIN): Rename to...
17373 (UNSPEC_COND_FMINNM): ...this.
17374 (UNSPEC_COND_LT): Rename to...
17375 (UNSPEC_COND_FCMLT): ...this.
17376 (UNSPEC_COND_LE): Rename to...
17377 (UNSPEC_COND_FCMLE): ...this.
17378 (UNSPEC_COND_EQ): Rename to...
17379 (UNSPEC_COND_FCMEQ): ...this.
17380 (UNSPEC_COND_NE): Rename to...
17381 (UNSPEC_COND_FCMNE): ...this.
17382 (UNSPEC_COND_GE): Rename to...
17383 (UNSPEC_COND_FCMGE): ...this.
17384 (UNSPEC_COND_GT): Rename to...
17385 (UNSPEC_COND_FCMGT): ...this.
17386 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17387 (sve_fp_op_rev): Update accordingly.
17388 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17390 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17392 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17394 * config/aarch64/check-sve-md.awk: New file.
17395 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17396 (insn-conditions.md): Depend on it.
17398 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17401 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17402 (*negsi2_cmpz_zext): Ditto.
17404 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17406 * config/aarch64/iterators.md (commutative): Remove.
17408 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17411 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17412 processing COLLECT_GCC_OPTIONS.
17413 (run_gcc): Likewise.
17415 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17417 PR tree-optimization/91109
17418 * lra-remat.c (update_scratch_ops): Remove assignment of the
17421 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17423 * data-streamer.h (streamer_write_poly_uint64): Declare.
17424 (streamer_read_poly_uint64): Likewise.
17425 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17426 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17427 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17428 (add_condition): Take a poly_int64 size.
17429 * ipa-predicate.c (add_condition): Likewise.
17430 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17431 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17432 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17433 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17434 condition::size as a poly_int64.
17435 (unmodified_parm_1): Take a poly_int64 size pointer.
17436 (unmodified_parm): Likewise.
17437 (unmodified_parm_or_parm_agg_item): Likewise.
17438 (set_cond_stmt_execution_predicate): Update accordingly.
17439 (set_switch_stmt_execution_predicate): Likewise.
17440 (will_be_nonconstant_expr_predicate): Likewise.
17441 (will_be_nonconstant_predicate): Likewise.
17442 (inline_read_section): Stream condition::size as a poly_int.
17443 (ipa_fn_summary_write): Likewise.
17445 2019-08-07 Martin Liska <mliska@suse.cz>
17447 * fold-const.c (twoval_comparison_p): Replace int
17448 with bool as a return type.
17449 (simple_operand_p): Likewise.
17450 (operand_equal_p): Replace int with bool as a return type.
17451 * fold-const.h (operand_equal_p): Likewise.
17453 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17455 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17456 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17457 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17458 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17459 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17460 * tree-pretty-print.c (dump_omp_clause): Likewise.
17461 * tree-nested.c (convert_nonlocal_omp_clauses,
17462 convert_local_omp_clauses): Likewise.
17463 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17465 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17466 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17467 clause with array or reference to array types, no matter what type
17468 except for reference it has.
17470 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17472 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17474 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17476 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17477 (arch_canonicalize): Support rv32g and rv64g and fix error
17480 2019-08-06 Martin Liska <mliska@suse.cz>
17482 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17483 and DECL_IS_OPERATOR_DELETE_P.
17485 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17487 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17488 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17489 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17490 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17491 (gimplify_omp_for): Don't do C++ random access iterator clause
17492 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17493 don't predetermine the artificial iterator in case of C++ random
17494 access iterators as lastprivate, but private. For OMP_LOOP, force
17495 bind expr around simd body and force for_pre_body before the
17496 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17497 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17498 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17499 diff var of C++ random access iterators. Handle
17500 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17501 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17502 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17503 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17504 * omp-low.c (lower_rec_input_clauses): For
17505 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17506 variables instead of default constructing them.
17507 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17508 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17509 is_taskloop_ctx check from the assert to the guarding condition.
17511 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17513 * config/riscv/multilib-generator: (canonical_order): New.
17514 (arch_canonicalize): Dito.
17515 Apply arch_canonicalize for alts.
17517 2019-08-05 Martin Sebor <msebor@redhat.com>
17519 * doc/extend.texi (Common Variable Attributes): Document alias
17522 2019-08-05 Marek Polacek <polacek@redhat.com>
17524 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17525 * doc/invoke.texi: Document -Wcomma-subscript.
17527 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17529 * tree-core.h (tree_function_decl): Make function_code an
17530 independent field. Group the remaining bitfields into bytes
17531 and move decl_type so that it contines to be at a byte boundary.
17532 Leave 12 bits for future expansion.
17534 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17536 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17537 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17538 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17541 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17543 * gimple.h (gimple_move_vops): Declare.
17544 * gimple.c (gimple_move_vops): New function
17545 * gimple-fold.c (replace_call_with_call_and_fold)
17546 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17547 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17548 (gimple_fold_call): Use it.
17549 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17550 * tree-call-cdce.c (use_internal_fn): Likewise.
17551 * tree-if-conv.c (predicate_load_or_store): Likewise.
17552 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17553 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17554 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17555 (update_call_from_tree): Likewise.
17556 * tree-vect-stmts.c (vectorizable_load): Likewise.
17557 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17559 2019-08-05 Martin Liska <mliska@suse.cz>
17562 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17563 with not arguments.
17564 (eliminate_unnecessary_stmts): Likewise.
17566 2019-08-05 Richard Biener <rguenther@suse.de>
17568 PR middle-end/91169
17569 * fold-const.c (get_array_ctor_element_at_index): Create
17570 offset_ints according to the sign of the index type and treat
17571 that as signed if it is obviously so.
17573 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17576 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17577 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17578 _mm256_storeu2_m128i): New function.
17580 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17582 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17583 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17585 2019-08-05 Alan Modra <amodra@gmail.com>
17588 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17589 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17591 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17593 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17594 bug that was fixed in Tcl 8.6.1.
17596 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17598 * config/rs6000/future.md: New file.
17599 * config/rs6000/rs6000.md: Include future.md.
17600 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17602 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17604 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17605 check to use targetm.slow_unaligned_access instead.
17607 * function.c (assign_param_data_one): Remove unused data members.
17609 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17611 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17612 build_distinct_type_copy.
17613 (simd_clone_adjust_argument_types): Ditto.
17614 (simd_clone_adjust): Call build_distinct_type_copy here.
17615 (expand_simd_clones): Ditto.
17617 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17620 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17622 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17624 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17625 from 'const void *'.
17626 (sort_locs_in_loop_postorder_cmp): Likewise.
17628 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17630 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17631 (hot-bb-count-ws-permille): Likewise.
17632 (hot-bb-frequency-fraction): Likewise.
17633 (unlikely-bb-count-fraction): Likewise.
17634 * params.def (hot-bb-count-fraction): Rework description.
17635 (hot-bb-count-ws-permille): Likewise.
17636 (hot-bb-frequency-fraction): Likewise.
17637 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17638 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17640 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17643 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17646 2019-08-02 Richard Biener <rguenther@suse.de>
17648 * vec.h (vec::sort): Add gcc_qsort_r support.
17649 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17650 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17651 to gcc_qsort_r style callback.
17652 (sort_locs_in_loop_postorder_cmp): Likewise.
17653 (analyze_memory_references): Use gcc_sort_r interfaces.
17654 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17656 2019-08-02 Martin Liska <mliska@suse.cz>
17659 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17660 to detect working job server.
17661 (driver::detect_jobserver): Test whether jobserver
17662 is active from GCC driver. That will prevent situation where
17663 GCC is invoked from a LD plugin and the linker already uses
17664 file descriptors suggested by make. That leads to a wrong
17666 * gcc.h (driver): Add detect_jobserver.
17667 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17668 not scanning for --jobserver-auth prefix.
17670 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17672 PR tree-optimization/91201
17673 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17674 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17677 2019-08-01 Martin Sebor <msebor@redhat.com>
17680 * tree.c (type_initializer_zero_p): Define.
17681 * tree.h (type_initializer_zero_p): New function.
17683 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17685 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17687 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17689 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17690 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17691 * predict.c (maybe_hot_count_p): Likewise.
17692 (maybe_hot_bb_p): Tweak comment.
17693 (maybe_hot_edge_p): Likewise.
17694 (probably_never_executed): Likewise. Minor tweak.
17695 (probably_never_executed_bb_p): Likewise.
17696 (unlikely_executed_edge_p): Likewise.
17697 (probably_never_executed_edge_p): Likewise.
17698 (optimize_function_for_size_p): Likewise.
17699 (optimize_function_for_speed_p): Likewise.
17700 (function_optimization_type): Likewise.
17701 (optimize_bb_for_size_p): Likewise.
17702 (optimize_bb_for_speed_p): Likewise.
17703 (bb_optimization_type): Likewise.
17704 (optimize_edge_for_size_p): Likewise.
17705 (optimize_edge_for_speed_p): Likewise.
17706 (optimize_insn_for_size_p): Likewise.
17707 (optimize_insn_for_speed_p): Likewise.
17708 (optimize_loop_for_size_p): Likewise.
17709 (optimize_loop_for_speed_p): Likewise.
17710 (optimize_loop_nest_for_speed_p): Likewise.
17711 (optimize_loop_nest_for_size_p): Likewise.
17712 (predictable_edge_p): Likewise.
17713 (handle_missing_profiles): Minor tweak.
17715 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17717 * config/rs6000/predicates.md (pcrel_external_address): Update
17720 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17723 * config/i386/mmx.md (usadv8qi): New expander.
17725 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17728 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17729 with reserved names that are in a system header.
17731 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17733 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17734 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17735 (*vec_extractv2si_0_zext): Ditto.
17736 (*vec_extractv2si_1): Add (rm,x) alternative.
17737 (*vec_extractv2si_1_zext): New insn pattern.
17738 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17741 2019-08-01 Richard Biener <rguenther@suse.de>
17743 * domwalk.c (bb_postorder): Remove static variable.
17744 (cmp_bb_postorder): Adjust.
17745 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17746 (dom_walker::walk): Adjust.
17748 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17750 * sort.cc (sort_r_ctx): New struct.
17751 (reorder23): Make templated on context type.
17752 (reorder45): Ditto.
17753 (cmp1): Ditto. Adjust signature.
17755 (mergesort): Ditto.
17756 [CHECKING_P] (cmp2to3): New static function. Use it...
17757 (gcc_qsort) [CHECKING_P]: ...here.
17758 (gcc_sort_r): New function.
17759 * system.h (sort_r_cmp_fn): New function typedef.
17760 (qsort_chk): Adjust signature.
17761 (gcc_sort_r): Declare.
17762 * vec.c (qsort_chk_error): Adjust.
17763 (qsort_chk): Adjust.
17765 2019-08-01 Richard Biener <rguenther@suse.de>
17767 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17768 (compute_antic): Localize it here.
17770 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17772 * common/config/riscv/riscv-common.c: Check -march string ends
17775 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17777 * ipa-devirt.c (type_warning_cmp): Make static.
17778 (decl_warning_cmp): Ditto.
17780 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17783 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17784 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17785 use of deleted rs6000_dejagnu_cpu_index variable.
17786 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17787 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17788 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17789 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17790 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17791 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17793 2019-07-31 Richard Biener <rguenther@suse.de>
17795 PR tree-optimization/91280
17796 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17797 Decompose MEM_REF manually for offset handling.
17799 2019-07-31 Richard Biener <rguenther@suse.de>
17801 PR tree-optimization/91293
17802 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17803 of reduction stmts.
17805 2019-07-31 Matt Thomas <matt@3am-software.com>
17806 Nick Hudson <nick@nthcliff.demon.co.uk>
17807 Matthew Green <mrg@eterna.com.au>
17808 Maya Rashish <coypu@sdf.org>
17810 * config.gcc (hppa*-*-netbsd*): New target.
17811 * config/pa/pa-netbsd.h: New file.
17812 * config/pa/pa32-netbsd.h: New file.
17814 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17816 PR tree-optimization/91201
17817 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17819 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17821 * config/gcn/gcn-valu.md
17822 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17823 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17824 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17825 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17826 struct ilist. Add nops for delayeduse insns.
17827 * config/gcn/gcn.md (delayeduse): New attribute.
17828 (*movbi): Remove s_waitcnt from stores.
17829 (*mov<mode>_insn): Likewise.
17830 (*movti_insn): Likewise. Add delayeduse attribute.
17831 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17832 (atomic_store<mode>): Remove or adjust s_waitcnt.
17834 2019-07-31 Richard Biener <rguenther@suse.de>
17836 * vr-values.h (vr_values::swap_vr_value): New.
17837 (vr_values::free_value_range): likewise.
17838 * vr-values.c (vr_values::swap_vr_value): Implement.
17839 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17840 Do not return a range or take a var.
17841 (evrp_range_analyzer::stack): Change back to recording a non-const
17843 * gimple-ssa-evrp-analyze.c
17844 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17846 (evrp_range_analyzer::pop_to_marker): Adjust.
17847 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17848 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17849 no longer needed value-range.
17851 2019-07-31 Martin Liska <mliska@suse.cz>
17853 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17854 have size and (or) alignment as 2nd and later arguments.
17855 Mark all of them as necessary.
17857 2019-07-31 Richard Biener <rguenther@suse.de>
17859 PR tree-optimization/91178
17860 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17861 Use tail-recursion.
17863 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17865 PR tree-optimization/91201
17866 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17867 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17869 (reduc_plus_scal_<mode>): Improve formatting by introducing
17872 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17874 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17875 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17876 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17877 (aarch64_init_tme_builtins): New.
17878 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17879 (aarch64_expand_builtin_tme): New.
17880 (aarch64_expand_builtin): Handle TME builtins.
17881 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17882 __ARM_FEATURE_TME when enabled.
17883 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17884 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17886 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17887 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17889 (tstart, ttest, tcommit, tcancel): New instructions.
17890 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17891 (__tcancel, __ttest): New.
17892 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17893 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17894 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17895 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17896 * config/arm/types.md: Add new tme type attr.
17897 * doc/invoke.texi: Document "tme".
17899 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17901 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17902 warn_unused_result attribute.
17903 (cmse_check_address_range): Add warn_unused_result attribute.
17905 2019-07-31 Richard Biener <rguenther@suse.de>
17907 PR tree-optimization/91257
17908 * tree-vrp.c (union_ranges): Unify equality and less tests
17909 by using compare_values. Re-order cheap tests first.
17911 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17913 PR middle-end/91301
17914 * gimplify.c (gimplify_omp_for): If for class iterator on
17915 distribute parallel for there is no data sharing clause
17916 on inner_for_stmt, look for private clause on combined
17917 parallel too and if found, move it to inner_for_stmt.
17919 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17921 * lra-int.h (lra_operand_data): Remove early_clobber field.
17922 (lra_insn_reg): Likewise.
17923 * lra.c (debug_operand_data): Update accordingly.
17924 (setup_operand_alternative): Likewise.
17925 (new_insn_reg): Likewise. Remove early_clobber parameter.
17926 (collect_non_operand_hard_regs): Update call accordingly.
17927 Don't assign to lra_insn_reg::early_clobber.
17928 (add_regs_to_insn_regno_info): Remove early_clobber parameter
17929 and update calls to new_insn_reg.
17930 (lra_update_insn_regno_info): Update calls accordingly.
17931 * lra-constraints.c (update_and_check_small_class_inputs): Take the
17932 alternative number as a parameter and test whether the operand
17933 is earlyclobbered in that particular alternative.
17934 (process_alt_operands): Update call accordingly. Use per-alternative
17935 checks for earyclobber here too.
17936 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
17937 against zero for IRA_UNKNOWN_ALT.
17939 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
17941 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
17943 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
17945 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
17946 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
17948 2019-07-30 Martin Liska <mliska@suse.cz>
17951 * cgraph.c (cgraph_edge::make_direct): Use
17952 edge->indirect_unknown_callee as edge->resolve_speculation can
17953 deallocate edge which is this pointer.
17955 2019-07-30 Richard Biener <rguenther@suse.de>
17957 PR tree-optimization/91257
17958 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
17960 2019-07-30 Martin Liska <mliska@suse.cz>
17962 * doc/invoke.texi: Document new behavior.
17963 * lto-wrapper.c (cpuset_popcount): New function
17964 is a copy of libgomp/config/linux/proc.c.
17965 (init_num_threads): Likewise.
17966 (run_gcc): Automatically detect core count for -flto.
17967 (jobserver_active_p): New function.
17969 2019-07-30 Richard Biener <rguenther@suse.de>
17971 PR tree-optimization/91257
17972 * bitmap.h (bitmap_ior_into_and_free): Declare.
17973 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
17974 whether to add the unliked element to the freelist.
17975 (bitmap_list_insert_element_after): Add defaulted param for
17976 an already allocated element.
17977 (bitmap_ior_into_and_free): New function.
17978 * tree-ssa-structalias.c (condense_visit): Reduce the
17979 ponts-to and edge bitmaps of the SCC members in a
17980 logarithmic fashion rather than all to one.
17982 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
17984 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
17985 parameter. When nonnull, make sure that the addition or subtraction
17986 has the same condition.
17987 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
17988 for CFN_COND_MUL too.
17990 2019-07-30 Richard Biener <rguenther@suse.de>
17992 PR tree-optimization/91291
17993 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
17996 2019-07-30 Jakub Jelinek <jakub@redhat.com>
17998 PR middle-end/91216
17999 * omp-low.c (global_nonaddressable_vars): New variable.
18000 (use_pointer_for_field): For global decls, if they are non-addressable,
18001 remember it in the global_nonaddressable_vars bitmap, if they are
18002 addressable and in the global_nonaddressable_vars bitmap, ignore their
18003 TREE_ADDRESSABLE bit.
18004 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18005 vars in global_nonaddressable_vars bitmap.
18006 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18009 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18010 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18011 comparison to unsigned HOST_WIDE_INT before shifting it left.
18013 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18015 * config/i386/i386.md (movstrict<mode>): Use register_operand
18016 predicate for operand 0. Add expander condition. Assert that
18017 operand 0 is a SUBREG RTX.
18018 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18019 Update operand constraints and insn condition.
18020 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18021 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18022 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18023 Update operand 0 constraints.
18024 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18026 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18028 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18029 when -m{code,data}-region are used without -mlarge.
18030 * config/msp430/msp430.c (msp430_option_override): Error when a
18031 non-default code or data region is used without -mlarge.
18032 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18033 attributes when they are used without -mlarge.
18035 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18038 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18040 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18042 PR middle-end/91242
18043 * wide-int.h (generic_wide_int::sext_elt): New function.
18044 * inchash.h (hash::add_wide_int): Use it instead of elt.
18046 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18048 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18050 * config/arm/arm.md (<crc_variant>): Rename to...
18051 (arm_<crc_variant>): ... This.
18052 (<cdp>): Rename to...
18053 (arm_<cdp>): ... This.
18054 (<ldc>): Rename to...
18055 (arm_<ldc>): ... This.
18056 (<stc>): Rename to...
18057 (arm_<stc>): ... This.
18058 (<mcr>): Rename to...
18059 (arm_<mcr>): ... This.
18060 (<mrc>): Rename to...
18061 (arm_<mrc>): ... This.
18062 (<mcrr>): Rename to...
18063 (arm_<mcrr>): ... This.
18064 (<mrrc>): Rename to...
18065 (arm_<mrrc>): ... This.
18067 2019-07-29 Richard Biener <rguenther@suse.de>
18069 PR tree-optimization/91257
18070 * tree-ssa-sccvn.h (struct vn_avail): New.
18071 (struct vn_ssa_aux): Add avail member.
18072 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18073 member, add m_avail_freelist one.
18074 (rpo_elim::~rpo_elim): Remove.
18075 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18077 (rpo_elim::eliminate_push_avail): Likewise.
18078 (do_unwind): Likewise.
18079 (do_rpo_vn): Likewise.
18081 2019-07-29 Richard Biener <rguenther@suse.de>
18083 PR tree-optimization/91257
18084 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18085 most cases, instead call compare_values which handles the
18086 symbolic ranges we handle specially.
18087 (compare_values_warnv): Do not call operand_less_p but open-code
18088 the effective fold calls. Avoid converting so much.
18090 2019-07-29 Martin Liska <mliska@suse.cz>
18092 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18093 remove LHS of operator new call. It's handled latter.
18095 2019-07-29 Richard Biener <rguenther@suse.de>
18097 PR tree-optimization/91267
18098 * vr-values.c (vr_values::update_value_range): Add early return
18099 for effectively VARYING lattice entry.
18101 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18104 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18105 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18106 necessary if keep_all_vdefs_p is true.
18107 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18108 that keep_all_vdefs_p is false.
18109 (mark_all_reaching_defs_necessary): Likewise.
18110 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18112 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18114 * common.opt (Og): Change the initial value of flag_dse to 0.
18115 * opts.c (default_options_table): Move OPT_ftree_dse from
18116 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18117 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18118 entry before the OPT_ftree_sra entry.
18119 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18120 of flags disabled by Og.
18122 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18124 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18127 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18129 * doc/sourcebuild.texi (check-function-bodies): Document.
18131 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18133 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18134 VEC_DUPLICATE of a fixed-length vector even if the result
18135 is variable-length. Likewise fold a duplicate of a
18136 variable-length vector if the variable-length vector is
18137 itself a duplicate of a fixed-length sequence.
18138 (test_vector_ops_duplicate): Test more cases.
18140 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18142 * vector-builder.h (vector_builder): Add a shape template parameter.
18143 (vector_builder::new_unary_operation): New function, generalizing
18144 the old tree_vector_builder function.
18145 (vector_builder::new_binary_operation): Likewise.
18146 (vector_builder::binary_encoded_nelts): Likewise.
18147 * int-vector-builder.h (int_vector_builder): Update template
18148 parameters to vector_builder.
18149 (int_vector_builder::shape_nelts): New function.
18150 * rtx-vector-builder.h (rtx_vector_builder): Update template
18151 parameters to vector_builder.
18152 (rtx_vector_builder::shape_nelts): New function.
18153 (rtx_vector_builder::nelts_of): Likewise.
18154 (rtx_vector_builder::npatterns_of): Likewise.
18155 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18156 * tree-vector-builder.h (tree_vector_builder): Update template
18157 parameters to vector_builder.
18158 (tree_vector_builder::shape_nelts): New function.
18159 (tree_vector_builder::nelts_of): Likewise.
18160 (tree_vector_builder::npatterns_of): Likewise.
18161 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18162 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18163 (tree_vector_builder::new_binary_operation): Delete.
18164 (tree_vector_builder::binary_encoded_nelts): Likewise.
18165 * simplify-rtx.c: Include rtx-vector-builder.h.
18166 (distributes_over_addition_p): New function.
18167 (simplify_const_unary_operation)
18168 (simplify_const_binary_operation): Generalize handling of vector
18169 constants to include variable-length vectors.
18170 (test_vector_ops_series): Add more tests.
18172 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18175 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18176 than INDENTIFIER_POINTER.
18178 2019-07-28 Martin Liska <mliska@suse.cz>
18181 * cgraph.c (symbol_table::create_edge): Always allocate
18183 (symbol_table::free_edge): Store summary_id to
18184 edge_released_summary_ids if != -1;
18185 * cgraph.h (NEXT_FREE_NODE): Remove.
18186 (SET_NEXT_FREE_NODE): Likewise.
18187 (NEXT_FREE_EDGE): Likewise.
18188 (symbol_table::release_symbol): Store summary_id to
18189 cgraph_released_summary_ids if != -1;
18190 (symbol_table::allocate_cgraph_symbol): Always allocate
18193 2019-07-28 Alan Modra <amodra@gmail.com>
18195 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18198 2019-07-28 Alan Modra <amodra@gmail.com>
18201 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18203 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18204 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18205 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18207 2019-07-28 Alan Modra <amodra@gmail.com>
18210 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18211 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18212 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18213 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18214 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18215 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18216 in asm_default spec.
18217 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18218 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18220 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18222 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18224 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18227 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18228 * config/aarch64/aarch64-option-extensions.def: Add new comments
18229 and restore easier to read options.
18231 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18233 * convert.c (convert_to_real_1): Move part of conversion code...
18234 * match.pd: ...To here.
18236 2019-07-26 Martin Jambor <mjambor@suse.cz>
18239 * ipa-inline-transform.c (check_speculations_1): New function.
18240 (push_all_edges_in_set_to_vec): Likewise.
18241 (check_speculations): Use check_speculations_1, new parameter
18243 (inline_call): Pass new_edges to check_speculations.
18244 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18246 (speculation_useful_p): Early return true if edge is inlined, remove
18247 later checks for inline_failed.
18249 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18251 PR rtl-optimization/91223
18252 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18253 matching with INOUT operand.
18255 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18257 * stmt.c (expand_case): Try to narrow the index type if it's larger
18258 than a word. Tidy up.
18260 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18262 * cif-code.def (NEVER_CALL): New code.
18263 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18264 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18266 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18268 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18269 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18271 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18273 * ipa-devirt.c (add_type_duplicate): Fix return value.
18275 2019-07-25 Richard Biener <rguenther@suse.de>
18277 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18278 type parameter and use it instead of guessing expression
18279 type from the first operand.
18280 (extract_range_from_binary_expr): Pass expr_type down.
18282 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18284 * config/arm/arm.md (SATrev): Change to code attribute.
18285 (*satsi_<SAT:code>): Adjust for the above.
18286 (*satsi_<SAT:code>_shift): Likewise.
18288 2019-07-25 Richard Biener <rguenther@suse.de>
18290 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18291 Make value_range * temporary const.
18292 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18294 (evrp_range_analyzer::record_ranges_from_): Likewise.
18295 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18296 deal with having recorded a const one.
18297 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18298 Return a const value_range *.
18299 (evrp_range_analyzer::pop_value_range): Likewise.
18300 (evrp_range_analyzer::stack): Record const value_range *s.
18301 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18303 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18304 (format_integer): Likewise.
18305 (sprintf_dom_walker::handle_gimple_call): Likewise.
18306 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18307 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18308 (vrp_prop::get_value_range): Adjust.
18309 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18310 modifying the lattice in-place.
18311 (vrp_prop::visit_stmt): Likewise.
18312 * vr-values.c (vr_values::get_lattice_entry): New private method.
18313 (vr_values::get_value_range): Wrap it and return a const
18315 (vr_values::set_def_to_varying): New.
18316 (vr_values::set_defs_to_varying): Use it.
18317 (vr_values::update_value_range): Likewise.
18318 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18319 (values::op_with_constant_singleton_va): Likewise.
18320 (vr_values::extract_range_for_var_from_co): Likewise.
18321 (vr_values::extract_range_from_ssa_name): Likewise.
18322 (vr_values::extract_range_from_cond_expr): Likewise.
18323 (vr_values::extract_range_basic): Likewise.
18324 (compare_ranges): Take const value_range *, adjust.
18325 (compare_range_with_value): Likewise.
18326 (vrp_valueize): Adjust.
18327 (vrp_valueize_1): Likewise.
18328 (vr_values::get_vr_for_comparison): Return a const value_range *.
18329 (vr_values::compare_name_with_value): Adjust.
18330 (vr_values::compare_names): Likewise.
18331 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18333 (vr_values::vrp_evaluate_conditional): Likewise.
18334 (find_case_label_ranges): Take a const value_range *.
18335 (vr_values::vrp_visit_switch_stmt): Adjust.
18336 (vr_values::extract_range_from_phi_node): Likewise.
18337 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18338 (vr_values::simplify_abs_using_ranges): Likewise.
18339 (test_for_singularity): Take a const value_range *.
18340 (range_fits_type_p): Likewise.
18341 (vr_values::simplify_cond_using_ranges_1): Adjust.
18342 (vr_values::simplify_cond_using_ranges_2): Likewise.
18343 (vr_values::simplify_switch_using_ranges): Likewise.
18344 (vr_values::simplify_float_conversion_usi): Likewise.
18345 (vr_values::two_valued_val_range_p): Likewise.
18346 * vr-values.h (vr_values::get_value_range): Return a const
18348 (vr_values::set_def_to_varying): New.
18349 (vr_values::get_lattice_entry): New private method.
18350 (vr_values::get_vr_for_comparison): Return a const value_range *.
18352 2019-07-25 Martin Liska <mliska@suse.cz>
18353 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18356 * common.opt: Add -fallocation-dce
18357 * gimple.c (gimple_call_operator_delete_p): New.
18358 * gimple.h (gimple_call_operator_delete_p): Likewise.
18359 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18360 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18361 DECL_IS_OPERATOR_DELETE_P.
18362 (mark_all_reaching_defs_necessary_1): Likewise.
18363 (propagate_necessity): Likewise.
18364 (eliminate_unnecessary_stmts): Handle
18365 gimple_call_operator_delete_p.
18366 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18367 Add packing of OPERATOR_DELETE.
18368 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18370 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18371 (DECL_SET_IS_OPERATOR_DELETE): New.
18372 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18374 2019-07-25 Martin Liska <mliska@suse.cz>
18376 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18377 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18378 * coverage.c (coverage_begin_function): Likewise.
18379 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18380 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18381 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18382 (sem_item::hash_referenced_symbol_properties): Likewise.
18383 * lto-streamer-out.c (hash_tree): Likewise.
18384 * predict.c (expr_expected_value_1): Likewise.
18385 * tree-inline.c (expand_call_inline): Likewise.
18386 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18387 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18388 * tree-core.h (enum function_decl_type): New enum.
18389 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18390 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18391 (set_function_decl_type): Likewise.
18392 (DECL_IS_OPERATOR_NEW_P): New.
18393 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18394 (DECL_LAMBDA_FUNCTION): Likewise.
18395 (DECL_LAMBDA_FUNCTION_P): Likewise.
18396 (DECL_IS_OPERATOR_NEW): Remove.
18397 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18399 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18401 * ipa-profile.c (get_most_common_single_value): Use
18402 get_nth_most_common_value.
18403 * profile.c (sort_hist_value): New function.
18404 (compute_value_histograms): Call sort_hist_value to sort the
18405 values after loading from disk.
18406 * value-prof.c (get_most_common_single_value): Rename to ...
18407 get_nth_most_common_value. Add input params n, return
18408 the n_th value and count.
18409 (gimple_divmod_fixed_value_transform): Use
18410 get_nth_most_common_value.
18411 (gimple_ic_transform): Likewise.
18412 (gimple_stringops_transform): Likewise.
18413 * value-prof.h (get_most_common_single_value): Add input params
18416 2019-07-25 Richard Biener <rguenther@suse.de>
18418 PR tree-optimization/91236
18419 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18420 size of CONSTRUCTOR write. Fix buffer size we pass to
18421 native_encode_expr.
18423 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18425 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18426 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18429 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18431 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18432 explicitly disabled with --disable-initfini-array.
18434 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18436 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18439 2019-07-24 Martin Sebor <msebor@redhat.com>
18441 PR tree-optimization/91183
18442 PR tree-optimization/86688
18443 * builtins.c (compute_objsize): Handle MEM_REF.
18444 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18445 (get_min_string_length): Remove.
18446 (count_nonzero_bytes): New function.
18447 (handle_char_store): Rename...
18448 (handle_store): to this. Handle multibyte stores via integer types.
18449 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18452 2019-07-24 Martin Sebor <msebor@redhat.com>
18455 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18456 (diagnostic_report_diagnostic): Same.
18457 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18458 (diagnostic_context::lang_mask): New data member.
18459 * ipa-pure-const.c (suggest_attribute): Use
18460 lang_hooks.option_lang_mask ().
18461 * opts-common.c (option_enabled): Handle new argument.
18462 (get_option_state): Pass an additional argument.
18463 * opts.c (print_filtered_help): Print supported languages for
18464 unsupported options. Adjust printing of current state.
18465 * opts.h (option_enabled): Add argument.
18466 * toplev.c (print_switch_values): Use lang_mask.
18467 (general_init): Set global_dc->lang_mask.
18469 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18472 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18474 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18476 * cgraphunit.c (symbol_table::compile): Start and stop
18477 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18478 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18480 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18482 * gimplify.c (flag_instrument_functions_exclude_p): Include
18483 namespace/class information in the printable name.
18484 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18485 to tokens entered into the vector.
18487 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18489 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18490 (get_static_chain): Call it instead of build_simple_mem_ref.
18491 (get_frame_field): Likewise.
18492 (get_nonlocal_debug_decl): Likewise.
18493 (convert_nonlocal_reference_op): Likewise.
18495 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18497 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18499 (arc_compute_frame_size): Millicode is disabled when compiling
18501 (arc_return_address_register): Likewise.
18502 (arc_compute_function_type): Likewise.
18503 (arc_compute_frame_size): Likewise.
18504 (secondary_reload_info): Likewise.
18505 (arc_get_unalign): Likewise.
18506 (arc_can_use_return_insn): Declare.
18507 * config/arc/arc.c (AUX_LP_START): Define
18508 (AUX_LP_END): Likewise.
18509 (arc_frame_info): Update gmask member to 64-bit datum.
18510 (GMASK_LEN): Update.
18511 (arc_compute_function_type): Make it static, move it forward.
18512 (arc_must_save_register): Update, consider the extra regs.
18513 (arc_compute_millicode_save_restore_regs): Update to use the 64
18515 (arc_compute_frame_size): Likewise.
18516 (arc_enter_leave_p): Likewise.
18517 (arc_save_callee_saves): Likewise.
18518 (arc_restore_callee_saves): Likewise.
18519 (arc_save_callee_enter): Likewise.
18520 (arc_restore_callee_leave): Likewise.
18521 (arc_save_callee_milli): Likewise.
18522 (arc_restore_callee_milli): Likewise.
18523 (arc_expand_prologue): Add new interrupt handling.
18524 (arc_return_address_register): Make it static, move it forward.
18525 (arc_expand_epilogue): Add new interrupt handling.
18526 (arc_get_unalign): Delete.
18527 (arc_epilogue_uses): Make sure we do not remove the extra
18528 saved/restored registers when interrupt.
18529 (arc_can_use_return_insn): New function.
18530 (push_reg): Likewise.
18531 (pop_reg): Likewise.
18532 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18534 (arc_restore_callee_saves): Likewise, but restoring.
18535 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18536 (R33_REG): Likewise.
18537 (R34_REG): Likewise.
18538 (R35_REG): Likewise.
18539 (R36_REG): Likewise.
18540 (R37_REG): Likewise.
18541 (R38_REG): Likewise.
18542 (R39_REG): Likewise.
18543 (R45_REG): Likewise.
18544 (R46_REG): Likewise.
18545 (R47_REG): Likewise.
18546 (R48_REG): Likewise.
18547 (R49_REG): Likewise.
18548 (R50_REG): Likewise.
18549 (R51_REG): Likewise.
18550 (R52_REG): Likewise.
18551 (R53_REG): Likewise.
18552 (R54_REG): Likewise.
18553 (R55_REG): Likewise.
18554 (R56_REG): Likewise.
18555 (R58_REG): Likewise.
18556 (type): Add rtie attribute.
18557 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18558 (movsi_insn): Accept moves to lp_count.
18559 (rtie): Update pattern.
18560 (simple_return): Simplify it, don't use this pattern as a return
18562 (arc600_rtie): New pattern.
18563 (p_return_i): Clean up.
18564 (return): Likewise.
18565 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18567 * config/arc/predicates.md (move_src_operand): Consider lp_count
18570 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18572 * config/s390/predicates.md (addv_const_operand): New predicate.
18573 * config/s390/s390-modes.def (CCO): New condition code mode.
18574 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18575 (s390_branch_condition_mask): Likewise.
18576 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18577 ("mulv<mode>4"): New expanders.
18578 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18579 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18580 pattern definitions.
18582 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18584 PR middle-end/91166
18585 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18586 (define_predicates): Add entry for uniform_vector_p.
18587 (vec_same_elem_p): New match pattern.
18589 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18592 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18593 * config/i386/darwin32-biarch.h .. to here.
18594 * config/i386/darwin64-biarch.h: Adjust comments.
18595 * config/rs6000/darwin32-biarch.h: Likewise.
18596 * config/rs6000/darwin64-biarch.h: Likewise.
18597 * config.gcc: Missed commit from r273746
18598 (*-*-darwin*): Don't include CPU t-darwin here.
18599 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18600 an error message if i686-darwin configuration is attempted for
18603 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18606 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18607 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18608 an error message if i686-darwin configuration is attempted for
18610 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18611 (powerpc-*-darwin*): Use biarch files where needed.
18612 (powerpc64-*-darwin*): Likewise.
18613 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18614 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18616 * config/i386/darwin32-biarch.h: New.
18617 * config/i386/darwin64.h: Rename.
18618 * config/i386/darwin64-biarch.h: To this.
18619 * config/i386/t-darwin: Rename.
18620 * config/i386/t-darwin32-biarch: To this.
18621 * config/i386/t-darwin64: Rename.
18622 * config/i386/t-darwin64-biarch: To this.
18623 * config/rs6000/darwin32-biarch.h: New.
18624 * config/rs6000/darwin64.h: Rename.
18625 * config/rs6000/darwin64-biarch.h: To this.
18626 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18628 * config/rs6000/t-darwin8: Rename.
18629 * config/rs6000/t-darwin32-biarch: To this.
18630 * config/rs6000/t-darwin64 Rename.
18631 * config/rs6000/t-darwin64-biarch: To this.
18633 2019-07-23 Martin Sebor <msebor@redhat.com>
18635 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18637 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18639 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18640 (rh): New alias for it.
18642 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18644 * gdbhooks.py: Pass replace=True to
18645 gdb.printing.register_pretty_printer.
18647 2019-07-23 Richard Biener <rguenther@suse.de>
18650 * lto-streamer-in.c (input_function): Drop inline-entry markers
18651 that ended up with an unknown location block.
18653 2019-07-23 Richard Biener <rguenther@suse.de>
18655 PR tree-optimization/83518
18656 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18657 init from a constant even when partial defs are already recorded.
18659 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18661 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18662 * config/i386/znver1.md: Enable patterns for znver2 and add store
18663 variants which use extra AGU unit.
18665 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18667 * config/i386/i386-options.c (ix86_option_override_internal): Default
18668 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18669 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18672 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18674 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18675 (znver2_costs): Update 256 bit SSE costs and multiplication.
18677 2019-07-23 Jan Beulich <jbeulich@suse.com>
18679 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18680 Require only AVX512F.
18681 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18682 alternative expanding to vpternlog.
18684 2019-07-23 Martin Liska <mliska@suse.cz>
18686 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18687 to -flto in dwarf producer string.
18689 2019-07-23 Richard Biener <rguenther@suse.de>
18691 * tree-cfg.c (label_for_bb): Remove global var.
18692 (main_block_label): Take label_for_bb as argument.
18693 (cleanup_dead_labels_eh): Likewise, adjust.
18694 (cleanup_dead_labels): Adjust.
18696 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18698 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18699 Configurations): Add documentation for __builtin_mtfsf.
18701 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18703 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18704 * config/riscv/riscv.c (riscv_constant_alignment): Use
18705 riscv_align_data_type.
18706 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18707 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18708 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18709 * config/riscv/riscv.opt (malign-data): New.
18710 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18712 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18714 * cgraph.c (dump_graphviz): New function.
18715 * cgraph.h (dump_graphviz): New function.
18716 * symtab.c (dump_graphviz): New function.
18718 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18720 * config/aarch64/aarch64-simd.md
18721 (*aarch64_simd_sra<mode>): New.
18722 * config/aarch64/iterators.md
18723 (SHIFTRT): New iterator.
18724 (sra_op): New attribute.
18726 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18728 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18729 callee-saved regs R4->R10 in an interrupt function that calls another
18732 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18734 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18735 (_mm_blendv_epi8): New.
18737 2019-07-22 Richard Biener <rguenther@suse.de>
18739 PR tree-optimization/91221
18740 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18741 restrict partial-def handling of empty constructors and
18742 memset to refs with known offset.
18744 2019-07-22 Jan Beulich <jbeulich@suse.com>
18746 * config/i386/sse.md (ternlogsuffix): New.
18747 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18749 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18751 2019-07-22 Martin Liska <mliska@suse.cz>
18753 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18755 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18757 2019-07-22 Martin Liska <mliska@suse.cz>
18759 * lto-section-in.c (lto_get_section_data):
18760 Use new function get_compression.
18761 * lto-streamer-out.c (produce_lto_section): Use
18762 set_compression to encode compression algorithm.
18763 * lto-streamer.h (struct lto_section): Do not
18764 use bitfields in the format.
18766 2019-07-22 Martin Liska <mliska@suse.cz>
18769 * opts-common.c (decode_cmdline_option): Decode
18770 argument of -Werror and check it for a wrong language.
18771 * opts-global.c (complain_wrong_lang): Remove such case.
18773 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18775 * config/arc/arc.c (prepare_move_operands): Always use an
18776 intermediate register when storing a TLS symbols.
18778 2019-07-22 Stafford Horne <shorne@gmail.com>
18780 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18783 2019-07-22 Stafford Horne <shorne@gmail.com>
18785 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18786 and munordered-float validations.
18787 * config/or1k/constraints.md (d): New register constraint.
18788 * config/or1k/predicates.md (fp_comparison_operator): New.
18789 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18791 (or1k_expand_compare): Normalize unordered comparisons.
18792 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18793 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18794 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18795 * config/or1k/or1k.md (type): Add fpu.
18796 (fpu): New instruction reservation.
18797 (F, f, fr, fi, FI, FOP, fop): New.
18798 (<fop><F:mode>3): New ALU instruction definition.
18799 (float<fi><F:mode>2): New conversion instruction definition.
18800 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18801 (fpcmpcc): New code iterator.
18802 (*sf_fp_insn): New instruction definition.
18803 (cstore<F:mode>4): New expand definition.
18804 (cbranch<F:mode>4): New expand definition.
18805 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18806 munordered-float): New options.
18807 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18810 2019-07-22 Stafford Horne <shorne@gmail.com>
18812 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18813 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18814 documenation to be more clear.
18815 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18817 * config/or1k/or1k.opt (mrori): New option.
18818 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18819 msfimm, mshftimm): Rewrite documentation to be more clear.
18820 * config/or1k/or1k.md (insn_support): Add ror and rori.
18821 (enabled): Add conditions for ror and rori.
18822 (rotrsi3): Replace condition for shftimm with ror and rori.
18824 2019-07-22 Stafford Horne <shorne@gmail.com>
18827 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18828 (extend<mode>si2): Update predicate.
18829 * config/or1k/predicates.md (volatile_mem_operand): New.
18830 (reg_or_mem_operand): New.
18832 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18834 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18835 * config/rs6000/rs6000-call.c: ... to here.
18837 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18839 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18842 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18844 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18846 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18848 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18850 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18852 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18853 (any_memory_operand): New predicate.
18854 (reg_or_mem_operand): Use it.
18856 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18859 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18861 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18863 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18864 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18866 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18868 * tree.def (OMP_LOOP): New tree code.
18869 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18870 (enum omp_clause_bind_kind): New enum.
18871 (struct tree_omp_clause): Add subcode.bind_kind.
18872 * tree.h (OMP_LOOP_CHECK): Rename to ...
18873 (OMP_LOOPING_CHECK): ... this.
18874 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18875 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18876 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18877 (OMP_CLAUSE_BIND_KIND): Define.
18878 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18879 bind clause entries.
18880 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18881 * tree-pretty-print.c (dump_omp_clause): Likewise.
18882 (dump_generic_node): Handle OMP_LOOP.
18883 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18884 (in_omp_construct): New variable.
18885 (is_gimple_stmt): Handle OMP_LOOP.
18886 (gimplify_scan_omp_clauses): For lastprivate don't set
18887 check_non_private if code == OMP_LOOP. For reduction clause
18888 on OMP_LOOP combined with parallel or teams propagate as shared
18889 on the combined construct. Handle OMP_CLAUSE_BIND.
18890 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18891 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18892 for constructs from a loop construct to gimplify_scan_omp_clauses.
18893 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18894 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18895 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18896 to match the implicit ORT_TARGET construct around whole body.
18897 Temporarily clear in_omp_construct when processing body.
18898 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18899 etc. temporarily set in_omp_construct when processing body.
18900 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18901 * omp-low.c (struct omp_context): Add loop_p.
18902 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18903 in that the original var might be private.
18904 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18905 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18906 addition of loop construct.
18907 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18909 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18910 lastprivate non-addressable iterator of a collapse(1) simd.
18912 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18914 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18917 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18919 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18920 refer to default conditions. Warn for the 'y' spec which is ignored
18921 by current linkers.
18923 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18925 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18926 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18927 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18928 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18929 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18930 init_cumulative_args, rs6000_promote_function_mode,
18931 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18932 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18933 rs6000_function_arg_boundary, rs6000_parm_offset,
18934 rs6000_parm_start, rs6000_arg_size,
18935 rs6000_darwin64_record_arg_advance_flush,
18936 rs6000_darwin64_record_arg_advance_recurse,
18937 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18938 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18939 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18940 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18941 rs6000_finish_function_arg, rs6000_function_arg,
18942 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18943 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18944 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18945 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18946 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18947 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18948 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18949 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18950 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18951 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18952 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18953 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18954 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18955 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
18956 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
18957 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
18958 get_element_number, altivec_expand_vec_set_builtin,
18959 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
18960 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
18961 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
18962 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
18963 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
18964 rs6000_expand_builtin, rs6000_vector_type,
18965 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
18966 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
18967 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
18969 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
18970 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18971 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18972 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
18973 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
18974 init_cumulative_args, rs6000_promote_function_mode,
18975 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
18976 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
18977 rs6000_function_arg_boundary, rs6000_parm_offset,
18978 rs6000_parm_start, rs6000_arg_size,
18979 rs6000_darwin64_record_arg_advance_flush,
18980 rs6000_darwin64_record_arg_advance_recurse,
18981 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
18982 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
18983 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
18984 rs6000_mixed_function_arg, rs6000_psave_function_arg,
18985 rs6000_finish_function_arg, rs6000_function_arg,
18986 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
18987 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
18988 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
18989 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
18990 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
18991 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
18992 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
18993 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
18994 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
18995 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
18996 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
18997 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
18998 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
18999 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19000 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19001 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19002 get_element_number, altivec_expand_vec_set_builtin,
19003 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19004 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19005 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19006 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19007 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19008 rs6000_expand_builtin, rs6000_vector_type,
19009 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19010 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19011 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19012 to here from rs6000.c.
19013 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19014 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19015 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19016 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19017 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19018 rs6000_return_in_memory, rs6000_return_in_msb,
19019 rs6000_pass_by_reference, setup_incoming_varargs,
19020 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19021 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19022 rs6000_function_arg_padding, rs6000_function_arg,
19023 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19024 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19025 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19026 rs6000_passes_long_double, rs6000_passes_vector,
19027 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19028 altivec_builtin_mask_for_load) Add declarations.
19029 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19030 * config/config.gcc: Add new source file rs6000-call.c to garbage
19031 collector and extra_objs.
19033 2019-07-19 Jeff Law <law@redhat.com>
19035 PR tree-optimization/86061
19036 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19037 strncpy. Drop some trivial dead code.
19038 (maybe_trim_memstar_call): Handle strncpy.
19040 2019-07-19 Richard Biener <rguenther@suse.de>
19042 PR tree-optimization/91211
19043 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19044 memset encoding size.
19046 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19049 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19051 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19054 * ipa-inline.c (recursive_inlining): Fix limits check.
19056 2019-07-19 Richard Biener <rguenther@suse.de>
19058 PR tree-optimization/91200
19059 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19060 no PHI nodes in middle-bb.
19062 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19064 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19066 * config/aarch64/aarch64-option-extensions.def: Likewise.
19068 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19070 PR middle-end/91190
19071 * function.c (insert_temp_slot_address): Store into the hash table
19072 a copy of address to avoid RTL sharing issues.
19074 2019-07-19 Richard Biener <rguenther@suse.de>
19076 PR tree-optimization/91207
19078 2019-07-17 Richard Biener <rguenther@suse.de>
19080 PR tree-optimization/91178
19081 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19082 loads with a gap larger than the vector size always use
19084 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19085 avoid loading vectors that are only contained in the gap
19086 and thus are not needed.
19088 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19090 * config/i386/i386.md (*addqi_2_slp): Remove.
19091 (*<code>qi_2_slp): Ditto.
19093 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19095 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19096 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19097 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19098 Rename function from rs6000_prefixed_address.
19099 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19101 (TARGET_TOC): Likewise.
19102 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19104 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19106 (TARGET_TOC): Likewise.
19107 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19109 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19111 (TARGET_TOC): Likewise.
19112 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19113 check to require -mcmodel=medium for pc-relative addressing.
19114 (create_TOC_reference): Add assertion for TARGET_TOC.
19115 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19117 (rs6000_emit_move): Likewise.
19118 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19119 to 'TOC_alias_set'.
19120 (get_TOC_alias_set): Likewise.
19121 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19123 (rs6000_can_eliminate): Likewise.
19124 (rs6000_prefixed_address_mode_p): Rename function from
19125 rs6000_prefixed_address.
19126 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19127 TARGET_HAS_TOC and not pc-relative.
19128 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19129 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19131 (TARGET_TOC): Likewise.
19132 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19135 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19138 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19139 for operand 0. Do not use (match_dup) to match operand 1 with
19140 operand 0. Add check in insn constraint that either input operand
19141 matches operand 0. Use SWI12 mode iterator to also handle
19143 (*and<mode>_1_slp): Ditto.
19144 (*<code>qi_1_slp): Ditto.
19145 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19146 Do not use (match_dup) to match operand 1 with operand 0. Add
19147 check in insn constraint that operand 1 matches operand 0.
19148 Use SWI12 mode iterator to also handle HImode operands.
19149 (*ashl<mode>3_1_slp): Ditto.
19150 (*<shift_insn><mode>3_1_slp): Ditto.
19151 (*<rotate_insn><mode>3_1_slp): Ditto.
19153 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19155 * config/arm/arm-builtins.c
19156 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19157 (arm_expand_unop_builtin): Likewise.
19158 * config/arm/crypto.md
19159 (crypto_sha1h): Convert from define_insn to define_expand.
19160 (crypto_<crypto_pattern>): Likewise.
19161 (crypto_sha1h_lb): New define_insn.
19162 (crypto_<crypto_pattern>_lb): Likewise.
19164 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19167 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19168 (vsha1cq_u32): Likewise.
19169 (vsha1pq_u32): Likewise.
19170 (vsha1mq_u32): Likewise.
19171 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19173 (crypto_sha1c): Correct vec select.
19174 (crypto_sha1m): Likewise.
19175 (crypto_sha1p): Likewise.
19177 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19179 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19180 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19181 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19182 (subdi_zesidi_zesidi): Likewise.
19183 (negdi2_compare, negdi2_insn): Likewise.
19184 (negdi_extensidi): Likewise.
19185 (negdi_zero_extendsidi): Likewise.
19186 (arm_cmpdi_insn): Likewise.
19187 (subsi3_carryin): Use arm_borrow_operation.
19188 (subsi3_carryin_const): Likewise.
19189 (subsi3_carryin_const0): Likewise.
19190 (subsi3_carryin_compare): Likewise.
19191 (subsi3_carryin_compare_const): Likewise.
19192 (subsi3_carryin_compare_const0): Likewise.
19193 (subsi3_carryin_shift): Likewise.
19194 (rsbsi3_carryin_shift): Likewise.
19195 (negsi2_carryin_compare): Likewise.
19197 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19199 PR tree-optimization/91137
19200 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19201 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19202 Init, use and fini the above new field.
19203 (determine_base_object_1): New function.
19204 (determine_base_object): Reimplement using walk_tree.
19206 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19208 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19209 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19210 CLEANUP_FORCE_FAST_DCE is set.
19211 * ifcvt.c (rest_of_handle_if_conversion): Pass
19212 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19213 if-conversion succeeded.
19215 2019-07-18 Richard Biener <rguenther@suse.de>
19217 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19218 branches to make code less indented.
19220 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19222 PR middle-end/81824
19223 * attribs.c (decls_mismatched_attributes): Simplify the logic
19224 that avoids duplicates and false positives.
19226 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19228 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19229 data into data section when generating PIC code.
19230 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19231 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19232 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19233 return 2 for SOM and 0 for other targets.
19235 2019-07-17 Jeff Law <law@redhat.com>
19237 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19238 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19239 avoid unexpected switch statement fallthru.
19241 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19243 * config/i386/i386.md (*add<dwi>3_doubleword):
19244 Remove redundant constraints.
19245 (*add<mode>_1): Ditto.
19248 (*addqi_1_slp): Ditto.
19249 (*add<mode>_2): Ditto.
19250 (*addv<mode>4): Ditto.
19251 (*sub<dwi>3_doubleword): Ditto.
19252 (*sub<mode>_1): Ditto.
19253 (*subqi_1_slp): Ditto.
19254 (*sub<mode>_2): Ditto.
19255 (*subv<mode>4): Ditto.
19256 (*sub<mode>_3): Ditto.
19257 (@add<mode>3_carry): Ditto.
19258 (@sub<mode>3_carry): Ditto.
19259 (*add<mode>3_cc_overflow_1): Ditto.
19260 (*add<mode>3_zext_cc_overflow_2): Ditto.
19262 (*and<mode>_1): Ditto.
19264 (*andqi_1_slp): Ditto.
19266 (*andqi_2_maybe_si): Ditto.
19267 (*and<mode>_2): Ditto.
19268 (*andqi_2_slp): Ditto.
19269 (*<code><mode>_1): Ditto.
19270 (*<code>qi_1): Ditto.
19271 (*<code>qi_1_slp): Ditto.
19272 (*<code><mode>_2): Ditto.
19273 (*<code>qi_2_slp): Ditto.
19275 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19277 * alias.c (record_component_aliases): Do not simplify pointed-to
19278 types of ODR types.
19280 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19282 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19283 partial reg stall on alternative 2.
19285 2019-07-17 Richard Biener <rguenther@suse.de>
19287 PR tree-optimization/91178
19288 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19289 lower SSA names to avoid quadratic behavior in the common case.
19290 * tree-data-ref.c (split_constant_offset): Add limit argument
19291 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19292 (split_constant_offset_1): Add limit argument and use it to
19293 limit SSA def walking. Optimize the common plus/minus case.
19295 2019-07-17 Richard Biener <rguenther@suse.de>
19297 PR tree-optimization/91178
19298 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19299 loads with a gap larger than the vector size always use
19301 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19302 avoid loading vectors that are only contained in the gap
19303 and thus are not needed.
19305 2019-07-17 Richard Biener <rguenther@suse.de>
19307 PR tree-optimization/91180
19308 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19309 computation for memset partial defs.
19311 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19313 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19314 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19315 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19316 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19317 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19318 * omp-grid.c (grid_process_grid_body,
19319 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19320 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19321 == GF_OMP_FOR_KIND_SIMD.
19322 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19323 check_omp_nesting_restrictions, scan_omp_1_stmt,
19324 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19325 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19326 omp_find_scan): Likewise.
19327 * omp-expand.c (expand_omp_for): Likewise.
19328 * omp-general.c (omp_extract_for_data): Likewise.
19330 PR tree-optimization/91157
19331 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19332 a vector boolean with scalar mode.
19333 (expand_vector_condition): Handle first operand being a vector boolean
19335 (expand_vector_operations_1): For comparisons, don't bail out early
19336 if the return type is vector boolean with scalar mode, but comparison
19337 operand type is not.
19339 2019-07-17 Richard Biener <rguenther@suse.de>
19341 PR tree-optimization/91181
19342 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19343 IFN_LOADs as calls.
19345 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19347 * config/i386/i386.md (*testdi_1): Match CCZmode for
19348 constants that might have the SImode sign bit set.
19349 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19350 Use correct constraints for pentium pairing.
19351 (*test<mode>_1): Ditto.
19353 2019-07-16 Jeff Law <law@redhat.com>
19355 PR rtl-optimization/91173
19356 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19357 SSA_NAME with a constant value, fold its value into the offset
19358 and clear the base before calling gen_addr_rtx.
19360 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19362 PR rtl-optimization/91164
19363 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19364 invalidate dominance info.
19366 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19368 * read-md.h (md_reader::record_potential_iterator_use): Add a
19369 file_location parameter.
19370 * read-rtl.c (attribute_use::loc): New field.
19371 (map_attr_string): Take a file_location parameter. Report cases
19372 in which attributes map to multiple distinct values.
19373 (apply_attribute_uses): Update call accordingly.
19374 (md_reader::handle_overloaded_name): Likewise.
19375 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19377 (record_attribute_use): Take a file_location parameter.
19378 Initialize attribute_use::loc.
19379 (md_reader::record_potential_iterator_use): Take a file_location
19380 parameter. Update call to record_attribute_use.
19381 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19382 (rtx_reader::read_rtx_code): Likewise.
19383 (rtx_reader::read_rtx_operand): Likewise. Record a location
19384 for implicitly-expanded empty strings.
19386 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19388 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19389 Use file_location instead of separate fields.
19390 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19391 separate filename and line number.
19392 * read-md.c (ptr_loc): As above.
19393 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19394 (md_reader::fprint_md_ptr_loc): Likewise.
19395 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19396 instead of a separate filename and line number.
19397 (md_reader::read_string): Update call accordingly.
19399 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19401 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19402 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19403 leaving the choice between SFDF and P implicit.
19404 (*mov<mode>_update2): Likewise.
19405 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19406 rather than leaving the choice betweem IBM128 and GPR implicit.
19407 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19408 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19410 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19411 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19412 * config/rs6000/vsx.md
19413 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19414 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19415 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19416 and VSX_EXTRACT_I implicit.
19418 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19420 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19421 Explicitly use <MOVEP1:MODE> for the mode attribute.
19423 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19426 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19428 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19431 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19432 .machine directive.
19434 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19436 * config/i386/i386.md (@test<mode>_ccno_1):
19437 Rename from test<mode>_ccno_1.
19438 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19439 (*testqi_1_maybe_si): Remove modrm attribute.
19440 (*test<mode>_1): Ditto.
19441 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19442 gen_test_ccno_1 and gen_extend_insn.
19444 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19446 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19449 2019-07-15 Richard Biener <rguenther@suse.de>
19451 PR middle-end/91162
19452 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19453 node make sure to replace all uses with something valid.
19455 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19457 PR tree-optimization/88497
19458 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19459 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19460 function undistribute_bitref_for_vector.
19461 (undistribute_bitref_for_vector): New function.
19462 (cleanup_vinfo_map): Likewise.
19463 (sort_by_mach_mode): Likewise.
19465 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19467 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19468 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19469 and testdi_ccno_1 using SWI48 mode attribute.
19470 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19471 x86_64_szext_general_operand.
19472 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19473 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19474 instead of genera_operand mode attribute.
19476 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19478 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19479 fopen and fclose to their respective types.
19480 (DotFn.invoke): Ditto.
19482 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19484 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19485 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19486 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19487 (array_index_predicate): Remove.
19488 (analyze_function_body): Account cost for variable ofsetted array
19490 (estimate_node_size_and_time): Do not compute array index hint.
19491 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19492 (inline_read_section): Do not read array index hint.
19493 (ipa_fn_summary_write): Do not write array index hint.
19494 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19495 * ipa-cp.c (hint_time_bonus): Remove.
19496 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19497 (ipa_fnsummary): Remove array_index.
19498 * ipa-inline.c (want_inline_small_function_p): Do not use
19500 (edge_badness): Likewise.
19501 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19503 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19506 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19507 superfluous "builtin function" phrasing.
19509 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19511 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19513 (aliasing_component_refs_walk): Break out from ...
19514 (aliasing_component_refs_p): ... here.
19516 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19519 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19520 "builtin function" phrasing.
19522 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19525 * recog.h (temporary_volatile_ok): New class.
19526 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19527 volatile_ok temporarily to true using temporary_volatile_ok.
19528 * expr.c (emit_block_move_via_cpymem): Likewise.
19529 * optabs.c (maybe_legitimize_operand): Likewise.
19531 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19533 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19534 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19535 uses inside of order(concurrent) constructs.
19536 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19537 OMP_CLAUSE_ORDER is seen.
19538 * omp-low.c (struct omp_context): Add order_concurrent member.
19539 (scan_sharing_clauses): Set ctx->order_concurrent if
19540 OMP_CLAUSE_ORDER is seen.
19541 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19542 of simd order(concurrent). Diagnose constructs not allowed inside of
19543 for order(concurrent).
19544 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19545 complaining about static double setjmp (double); or class static
19546 methods or non-global namespace setjmps.
19547 (omp_runtime_api_call): New function.
19548 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19549 order(concurrent) loops.
19551 2019-07-12 Martin Sebor <msebor@redhat.com>
19553 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19554 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19555 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19556 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19558 2019-07-12 Jan Hubicka <jh@suse.cz>
19560 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19561 (indirect_refs_may_alias_p): ... here.
19562 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19563 mem refs in the access paths.
19565 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19567 PR tree-optimization/89430
19568 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19569 store elimination for local variable without address escape.
19571 2019-07-12 Jeff Law <law@redhat.com>
19573 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19574 for the ".far" section.
19576 2019-07-12 Richard Biener <rguenther@suse.de>
19578 PR tree-optimization/91145
19579 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19582 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19584 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19585 rather than this_state as the lowering context for the ELSE
19586 seq in a GIMPLE_EH_ELSE.
19588 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19590 * vector-builder.h (vector_builder::elt): Allow already-supplied
19591 elements to be read back before building is complete.
19593 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19595 PR rtl-optimization/91136
19596 * df-core.c (ACCESSING REFS): Fix typos in comment.
19597 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19598 the beginning of the block to the initial set of live registers.
19600 2019-07-12 Richard Biener <rguenther@suse.de>
19602 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19603 * fold-const.c (get_array_ctor_element_at_index): Add
19604 ctor_idx output parameter informing the caller where in
19605 the constructor the element was (not) found. Add early exit
19606 for when the ctor is sorted.
19607 * gimple-fold.c (fold_array_ctor_reference): Support constant
19608 folding across multiple array elements.
19610 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19612 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19613 doesn't have location, set the current location to the function's end.
19615 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19617 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19618 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19619 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19620 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19621 * config/aarch64/aarch64-simd.md
19622 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19623 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19624 * config/aarch64/aarch64-sve.md
19625 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19626 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19628 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19630 * doc/md.texi: Document that @ patterns can have different
19631 numbers of operands.
19632 * genemit.c (handle_overloaded_gen): Handle this case.
19633 * genopinit.c (handle_overloaded_gen): Likewise.
19634 * gensupport.c (replace_operands_with_dups): Iterate over
19635 the new rtx's format rather than the old one's.
19637 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19639 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19640 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19641 order clause entries.
19642 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19643 * tree-pretty-print.c (dump_omp_clause): Likewise.
19644 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19646 * omp-low.c (scan_sharing_clauses): Likewise.
19647 * tree-nested.c (convert_nonlocal_omp_clauses,
19648 convert_local_omp_clauses): Likewise.
19650 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19652 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19653 fallthrough target of current basic block isn't the placed
19656 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19659 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19660 (_mm512_storeu_epi64): Likewise.
19661 (_mm512_loadu_epi32): Likewise.
19662 (_mm512_storeu_epi32): Likewise.
19663 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19664 (_mm_storeu_epi64): Likewise.
19665 (_mm256_storeu_epi32): Likewise.
19666 (_mm_storeu_epi32): Likewise.
19668 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19670 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19672 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19674 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19677 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19680 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19681 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19682 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19683 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19684 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19685 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19687 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19688 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19689 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19691 (sse2_cvttpd2dq<mask_name>): Change into ...
19692 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19693 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19694 (*sse2_cvtpd2dq<mask_name>): Change into ...
19695 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19696 Add "C" constraint to const0_operand.
19697 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19698 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19702 * config/i386/i386-builtin-types.def
19703 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19704 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19705 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19706 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19707 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19708 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19709 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19710 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19711 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19712 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19713 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19714 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19715 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19716 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19717 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19718 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19719 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19720 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19721 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19722 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19723 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19724 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19725 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19726 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19727 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19728 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19729 __builtin_ia32_vpdpbusd_v4si_maskz,
19730 __builtin_ia32_vpdpbusds_v16si_mask,
19731 __builtin_ia32_vpdpbusds_v16si_maskz,
19732 __builtin_ia32_vpdpbusds_v8si_mask,
19733 __builtin_ia32_vpdpbusds_v8si_maskz,
19734 __builtin_ia32_vpdpbusds_v4si_mask,
19735 __builtin_ia32_vpdpbusds_v4si_maskz,
19736 __builtin_ia32_vpdpwssd_v16si_mask,
19737 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19738 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19739 __builtin_ia32_vpdpwssd_v4si_maskz,
19740 __builtin_ia32_vpdpwssds_v16si_mask,
19741 __builtin_ia32_vpdpwssds_v16si_maskz,
19742 __builtin_ia32_vpdpwssds_v8si_mask,
19743 __builtin_ia32_vpdpwssds_v8si_maskz,
19744 __builtin_ia32_vpdpwssds_v4si_mask,
19745 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19746 suffixed types rather than *_INT.
19747 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19748 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19749 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19750 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19751 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19752 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19754 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19756 * tree-vrp.c (intersect_ranges): If we know the intersection is
19757 empty, there is no need to conservatively add anything else to
19760 2019-07-11 Richard Biener <rguenther@suse.de>
19762 PR middle-end/91131
19763 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19764 when the object is volatile and we have not cleared it even though
19765 there are no nonzero elements.
19767 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19769 * config/rs6000/predicates.md (cint34_operand): Update
19770 SIGNED_34BIT_OFFSET_P call.
19771 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19772 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19773 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19774 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19775 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19777 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19778 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19779 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19780 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19781 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19783 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19785 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19786 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19787 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19788 (DEF_MIN_OSX_VERSION): New.
19790 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19792 * fold-const.c (fold_relational_const): Fix folding of
19793 vector-to-scalar NE_EXPRs.
19794 (test_vector_folding): Add more tests.
19796 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19799 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19800 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19801 (vec_setv2di_internal): Reexpress as...
19802 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19803 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19804 rather than gen_neon_vset_lane<mode>.
19806 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19809 * lra-constraints.c (process_alt_operands): Don't match user
19810 defined regs only if they are early clobbers.
19812 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19814 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19816 2019-07-10 Richard Biener <rguenther@suse.de>
19818 PR tree-optimization/91126
19819 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19820 native encoding offset for BYTES_BIG_ENDIAN.
19821 (vn_reference_lookup_3): Likewise.
19823 2019-07-10 Richard Biener <rguenther@suse.de>
19825 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19826 LHS whenever possible.
19828 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19830 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19831 from ...; work also on duplicated types.
19832 (nonoverlapping_component_refs_since_match): ... here
19833 (ncr_type_uid): Break out from ...
19834 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19836 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19837 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19839 2019-07-09 Martin Sebor <msebor@redhat.com>
19841 PR tree-optimization/90989
19842 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19843 optimization to just single character stores.
19845 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19847 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19848 Swap operands only once.
19850 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19852 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19853 for both call instructions.
19855 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19857 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19858 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19860 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19862 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19863 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19864 function from rs6000-logue.c back to rs6000.c.
19865 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19867 2019-07-09 Martin Sebor <msebor@redhat.com>
19870 * auto-profile.c: Change class-key of PODs to struct and others
19872 * basic-block.h: Same.
19873 * bitmap.c (bitmap_alloc): Same.
19875 * builtins.c (expand_builtin_prefetch): Same.
19876 (expand_builtin_interclass_mathfn): Same.
19877 (expand_builtin_strlen): Same.
19878 (expand_builtin_mempcpy_args): Same.
19879 (expand_cmpstr): Same.
19880 (expand_builtin___clear_cache): Same.
19881 (expand_ifn_atomic_bit_test_and): Same.
19882 (expand_builtin_thread_pointer): Same.
19883 (expand_builtin_set_thread_pointer): Same.
19884 * caller-save.c (setup_save_areas): Same.
19885 (replace_reg_with_saved_mem): Same.
19886 (insert_restore): Same.
19887 (insert_save): Same.
19888 (add_used_regs): Same.
19889 * cfg.c (get_bb_copy): Same.
19890 (set_loop_copy): Same.
19893 * cfgexpand.c (alloc_stack_frame_space): Same.
19894 (add_stack_var): Same.
19895 (add_stack_var_conflict): Same.
19896 (add_scope_conflicts_1): Same.
19897 (update_alias_info_with_stack_vars): Same.
19898 (expand_used_vars): Same.
19899 * cfghooks.c (redirect_edge_and_branch_force): Same.
19900 (delete_basic_block): Same.
19901 (split_edge): Same.
19902 (make_forwarder_block): Same.
19903 (force_nonfallthru): Same.
19904 (duplicate_block): Same.
19905 (lv_flush_pending_stmts): Same.
19906 * cfghooks.h: Same.
19907 * cfgloop.c (flow_loops_cfg_dump): Same.
19908 (flow_loop_nested_p): Same.
19909 (superloop_at_depth): Same.
19910 (get_loop_latch_edges): Same.
19911 (flow_loop_dump): Same.
19912 (flow_loops_dump): Same.
19913 (flow_loops_free): Same.
19914 (flow_loop_nodes_find): Same.
19915 (establish_preds): Same.
19916 (flow_loop_tree_node_add): Same.
19917 (flow_loop_tree_node_remove): Same.
19918 (flow_loops_find): Same.
19919 (find_subloop_latch_edge_by_profile): Same.
19920 (find_subloop_latch_edge_by_ivs): Same.
19921 (mfb_redirect_edges_in_set): Same.
19922 (form_subloop): Same.
19923 (merge_latch_edges): Same.
19924 (disambiguate_multiple_latches): Same.
19925 (disambiguate_loops_with_multiple_latches): Same.
19926 (flow_bb_inside_loop_p): Same.
19927 (glb_enum_p): Same.
19928 (get_loop_body_with_size): Same.
19929 (get_loop_body): Same.
19930 (fill_sons_in_loop): Same.
19931 (get_loop_body_in_dom_order): Same.
19932 (get_loop_body_in_custom_order): Same.
19933 (release_recorded_exits): Same.
19934 (get_loop_exit_edges): Same.
19935 (num_loop_branches): Same.
19936 (remove_bb_from_loops): Same.
19937 (find_common_loop): Same.
19938 (delete_loop): Same.
19939 (cancel_loop): Same.
19940 (verify_loop_structure): Same.
19941 (loop_preheader_edge): Same.
19942 (loop_exit_edge_p): Same.
19943 (single_exit): Same.
19944 (loop_exits_to_bb_p): Same.
19945 (loop_exits_from_bb_p): Same.
19946 (get_loop_location): Same.
19947 (record_niter_bound): Same.
19948 (get_estimated_loop_iterations_int): Same.
19949 (max_stmt_executions_int): Same.
19950 (likely_max_stmt_executions_int): Same.
19951 (get_estimated_loop_iterations): Same.
19952 (get_max_loop_iterations): Same.
19953 (get_max_loop_iterations_int): Same.
19954 (get_likely_max_loop_iterations): Same.
19955 * cfgloop.h (simple_loop_desc): Same.
19957 (loop_depth): Same.
19958 (loop_outer): Same.
19959 (loop_iterator::next): Same.
19960 (loop_outermost): Same.
19961 * cfgloopanal.c (mark_irreducible_loops): Same.
19962 (num_loop_insns): Same.
19963 (average_num_loop_insns): Same.
19964 (expected_loop_iterations_unbounded): Same.
19965 (expected_loop_iterations): Same.
19966 (mark_loop_exit_edges): Same.
19967 (single_likely_exit): Same.
19968 * cfgloopmanip.c (fix_bb_placement): Same.
19969 (fix_bb_placements): Same.
19970 (remove_path): Same.
19971 (place_new_loop): Same.
19973 (scale_loop_frequencies): Same.
19974 (scale_loop_profile): Same.
19975 (create_empty_if_region_on_edge): Same.
19976 (create_empty_loop_on_edge): Same.
19979 (fix_loop_placements): Same.
19980 (copy_loop_info): Same.
19981 (duplicate_loop): Same.
19982 (duplicate_subloops): Same.
19983 (loop_redirect_edge): Same.
19984 (can_duplicate_loop_p): Same.
19985 (duplicate_loop_to_header_edge): Same.
19986 (mfb_keep_just): Same.
19987 (has_preds_from_loop): Same.
19988 (create_preheader): Same.
19989 (create_preheaders): Same.
19990 (lv_adjust_loop_entry_edge): Same.
19991 (loop_version): Same.
19992 * cfgloopmanip.h: Same.
19994 * cgraphbuild.c: Same.
19995 * combine.c (make_extraction): Same.
19996 * config/i386/i386-features.c: Same.
19997 * config/i386/i386-features.h: Same.
19998 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
19999 (ix86_emit_outlined_ms2sysv_restore): Same.
20000 (ix86_noce_conversion_profitable_p): Same.
20001 (ix86_init_cost): Same.
20002 (ix86_simd_clone_usable): Same.
20003 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20005 * coretypes.h: Same.
20006 * data-streamer-in.c (string_for_index): Change class-key of PODs
20007 to struct and others to class.
20008 (streamer_read_indexed_string): Same.
20009 (streamer_read_string): Same.
20010 (bp_unpack_indexed_string): Same.
20011 (bp_unpack_string): Same.
20012 (streamer_read_uhwi): Same.
20013 (streamer_read_hwi): Same.
20014 (streamer_read_gcov_count): Same.
20015 (streamer_read_wide_int): Same.
20016 * data-streamer.h (streamer_write_bitpack): Same.
20017 (bp_unpack_value): Same.
20018 (streamer_write_char_stream): Same.
20019 (streamer_write_hwi_in_range): Same.
20020 (streamer_write_record_start): Same.
20021 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20022 (add_cross_iteration_register_deps): Same.
20023 (build_intra_loop_deps): Same.
20024 * df-core.c (df_analyze): Same.
20025 (loop_post_order_compute): Same.
20026 (loop_inverted_post_order_compute): Same.
20027 * df-problems.c (df_rd_alloc): Same.
20028 (df_rd_simulate_one_insn): Same.
20029 (df_rd_local_compute): Same.
20030 (df_rd_init_solution): Same.
20031 (df_rd_confluence_n): Same.
20032 (df_rd_transfer_function): Same.
20033 (df_rd_free): Same.
20034 (df_rd_dump_defs_set): Same.
20035 (df_rd_top_dump): Same.
20036 (df_lr_alloc): Same.
20037 (df_lr_reset): Same.
20038 (df_lr_local_compute): Same.
20039 (df_lr_init): Same.
20040 (df_lr_confluence_n): Same.
20041 (df_lr_free): Same.
20042 (df_lr_top_dump): Same.
20043 (df_lr_verify_transfer_functions): Same.
20044 (df_live_alloc): Same.
20045 (df_live_reset): Same.
20046 (df_live_init): Same.
20047 (df_live_confluence_n): Same.
20048 (df_live_finalize): Same.
20049 (df_live_free): Same.
20050 (df_live_top_dump): Same.
20051 (df_live_verify_transfer_functions): Same.
20052 (df_mir_alloc): Same.
20053 (df_mir_reset): Same.
20054 (df_mir_init): Same.
20055 (df_mir_confluence_n): Same.
20056 (df_mir_free): Same.
20057 (df_mir_top_dump): Same.
20058 (df_word_lr_alloc): Same.
20059 (df_word_lr_reset): Same.
20060 (df_word_lr_init): Same.
20061 (df_word_lr_confluence_n): Same.
20062 (df_word_lr_free): Same.
20063 (df_word_lr_top_dump): Same.
20064 (df_md_alloc): Same.
20065 (df_md_simulate_one_insn): Same.
20066 (df_md_reset): Same.
20067 (df_md_init): Same.
20068 (df_md_free): Same.
20069 (df_md_top_dump): Same.
20070 * df-scan.c (df_insn_delete): Same.
20071 (df_insn_rescan): Same.
20072 (df_notes_rescan): Same.
20073 (df_sort_and_compress_mws): Same.
20074 (df_install_mws): Same.
20075 (df_refs_add_to_chains): Same.
20076 (df_ref_create_structure): Same.
20077 (df_ref_record): Same.
20078 (df_def_record_1): Same.
20079 (df_find_hard_reg_defs): Same.
20080 (df_uses_record): Same.
20081 (df_get_conditional_uses): Same.
20082 (df_get_call_refs): Same.
20083 (df_recompute_luids): Same.
20084 (df_get_entry_block_def_set): Same.
20085 (df_entry_block_defs_collect): Same.
20086 (df_get_exit_block_use_set): Same.
20087 (df_exit_block_uses_collect): Same.
20088 (df_mws_verify): Same.
20089 (df_bb_verify): Same.
20090 * df.h (df_scan_get_bb_info): Same.
20091 * doc/tm.texi: Same.
20092 * dse.c (record_store): Same.
20093 * dumpfile.h: Same.
20094 * emit-rtl.c (const_fixed_hasher::equal): Same.
20095 (set_mem_attributes_minus_bitpos): Same.
20096 (change_address): Same.
20097 (adjust_address_1): Same.
20098 (offset_address): Same.
20099 * emit-rtl.h: Same.
20100 * except.c (dw2_build_landing_pads): Same.
20101 (sjlj_emit_dispatch_table): Same.
20102 * explow.c (allocate_dynamic_stack_space): Same.
20103 (emit_stack_probe): Same.
20104 (probe_stack_range): Same.
20105 * expmed.c (store_bit_field_using_insv): Same.
20106 (store_bit_field_1): Same.
20107 (store_integral_bit_field): Same.
20108 (extract_bit_field_using_extv): Same.
20109 (extract_bit_field_1): Same.
20110 (emit_cstore): Same.
20111 * expr.c (emit_block_move_via_cpymem): Same.
20112 (expand_cmpstrn_or_cmpmem): Same.
20113 (set_storage_via_setmem): Same.
20114 (emit_single_push_insn_1): Same.
20115 (expand_assignment): Same.
20116 (store_constructor): Same.
20117 (expand_expr_real_2): Same.
20118 (expand_expr_real_1): Same.
20119 (try_casesi): Same.
20121 * function.c (try_fit_stack_local): Same.
20122 (assign_stack_local_1): Same.
20123 (assign_stack_local): Same.
20124 (cut_slot_from_list): Same.
20125 (insert_slot_to_list): Same.
20126 (max_slot_level): Same.
20127 (move_slot_to_level): Same.
20128 (temp_address_hasher::equal): Same.
20129 (remove_unused_temp_slot_addresses): Same.
20130 (assign_temp): Same.
20131 (combine_temp_slots): Same.
20132 (update_temp_slot_address): Same.
20133 (preserve_temp_slots): Same.
20134 * function.h: Same.
20136 * gcc-rich-location.h: Same.
20138 * genattrtab.c (check_attr_test): Same.
20139 (check_attr_value): Same.
20140 (convert_set_attr_alternative): Same.
20141 (convert_set_attr): Same.
20142 (check_defs): Same.
20143 (copy_boolean): Same.
20144 (get_attr_value): Same.
20145 (expand_delays): Same.
20146 (make_length_attrs): Same.
20148 (make_alternative_compare): Same.
20149 (simplify_test_exp): Same.
20150 (tests_attr_p): Same.
20151 (get_attr_order): Same.
20152 (clear_struct_flag): Same.
20154 (compares_alternatives_p): Same.
20157 (find_attrs_to_cache): Same.
20158 (write_test_expr): Same.
20159 (walk_attr_value): Same.
20160 (write_attr_get): Same.
20161 (eliminate_known_true): Same.
20162 (write_insn_cases): Same.
20163 (write_attr_case): Same.
20164 (write_attr_valueq): Same.
20165 (write_attr_value): Same.
20166 (write_dummy_eligible_delay): Same.
20167 (next_comma_elt): Same.
20169 (make_internal_attr): Same.
20170 (copy_rtx_unchanging): Same.
20171 (gen_insn_reserv): Same.
20172 (check_tune_attr): Same.
20173 (make_automaton_attrs): Same.
20174 (handle_arg): Same.
20175 * genextract.c (gen_insn): Same.
20176 (VEC_char_to_string): Same.
20177 * genmatch.c (print_operand): Same.
20179 (parser::parse_operation): Same.
20180 (parser::parse_capture): Same.
20181 (parser::parse_c_expr): Same.
20182 (parser::parse_simplify): Same.
20184 * genoutput.c (output_operand_data): Same.
20185 (output_get_insn_name): Same.
20186 (compare_operands): Same.
20187 (place_operands): Same.
20188 (process_template): Same.
20189 (validate_insn_alternatives): Same.
20190 (validate_insn_operands): Same.
20191 (gen_expand): Same.
20192 (note_constraint): Same.
20193 * genpreds.c (write_one_predicate_function): Same.
20194 (add_constraint): Same.
20195 (process_define_register_constraint): Same.
20196 (write_lookup_constraint_1): Same.
20197 (write_lookup_constraint_array): Same.
20198 (write_insn_constraint_len): Same.
20199 (write_reg_class_for_constraint_1): Same.
20200 (write_constraint_satisfied_p_array): Same.
20201 * genrecog.c (optimize_subroutine_group): Same.
20202 * gensupport.c (process_define_predicate): Same.
20203 (queue_pattern): Same.
20204 (remove_from_queue): Same.
20205 (process_rtx): Same.
20206 (is_predicable): Same.
20207 (change_subst_attribute): Same.
20208 (subst_pattern_match): Same.
20209 (alter_constraints): Same.
20210 (alter_attrs_for_insn): Same.
20211 (shift_output_template): Same.
20212 (alter_output_for_subst_insn): Same.
20213 (process_one_cond_exec): Same.
20215 (process_define_cond_exec): Same.
20216 (mnemonic_htab_callback): Same.
20217 (gen_mnemonic_attr): Same.
20218 (read_md_rtx): Same.
20219 * ggc-page.c: Same.
20220 * gimple-loop-interchange.cc (dump_reduction): Same.
20221 (dump_induction): Same.
20222 (loop_cand::~loop_cand): Same.
20223 (free_data_refs_with_aux): Same.
20224 (tree_loop_interchange::interchange_loops): Same.
20225 (tree_loop_interchange::map_inductions_to_loop): Same.
20226 (tree_loop_interchange::move_code_to_inner_loop): Same.
20227 (compute_access_stride): Same.
20228 (compute_access_strides): Same.
20229 (proper_loop_form_for_interchange): Same.
20230 (tree_loop_interchange_compute_ddrs): Same.
20231 (prune_datarefs_not_in_loop): Same.
20232 (prepare_data_references): Same.
20233 (pass_linterchange::execute): Same.
20234 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20235 (unroll_jam_possible_p): Same.
20236 (fuse_loops): Same.
20237 (adjust_unroll_factor): Same.
20238 (tree_loop_unroll_and_jam): Same.
20239 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20240 (loop_versioning::expensive_stmt_p): Same.
20241 (loop_versioning::version_for_unity): Same.
20242 (loop_versioning::dump_inner_likelihood): Same.
20243 (loop_versioning::find_per_loop_multiplication): Same.
20244 (loop_versioning::analyze_term_using_scevs): Same.
20245 (loop_versioning::record_address_fragment): Same.
20246 (loop_versioning::analyze_expr): Same.
20247 (loop_versioning::analyze_blocks): Same.
20248 (loop_versioning::prune_conditions): Same.
20249 (loop_versioning::merge_loop_info): Same.
20250 (loop_versioning::add_loop_to_queue): Same.
20251 (loop_versioning::decide_whether_loop_is_versionable): Same.
20252 (loop_versioning::make_versioning_decisions): Same.
20253 (loop_versioning::implement_versioning_decisions): Same.
20254 * gimple-ssa-evrp-analyze.c
20255 (evrp_range_analyzer::record_ranges_from_phis): Same.
20256 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20257 (count_multiple_uses): Same.
20258 (split_group): Same.
20259 (imm_store_chain_info::output_merged_store): Same.
20260 (pass_store_merging::process_store): Same.
20261 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20262 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20264 (alloca_call_type): Same.
20265 (pass_walloca::execute): Same.
20266 * gimple-streamer-in.c (input_phi): Same.
20267 (input_gimple_stmt): Same.
20268 * gimple-streamer.h: Same.
20269 * godump.c (go_force_record_alignment): Same.
20270 (go_format_type): Same.
20271 (go_output_type): Same.
20272 (go_output_fndecl): Same.
20273 (go_output_typedef): Same.
20274 (keyword_hash_init): Same.
20275 (find_dummy_types): Same.
20276 * graph.c (draw_cfg_nodes_no_loops): Same.
20277 (draw_cfg_nodes_for_loop): Same.
20278 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20279 * hsa-brig.c: Same.
20280 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20281 * hsa-dump.c (dump_hsa_cfun): Same.
20282 * hsa-gen.c (gen_function_def_parameters): Same.
20283 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20284 * input.c (dump_line_table_statistics): Same.
20285 (test_lexer): Same.
20287 * internal-fn.c (get_multi_vector_move): Same.
20288 (expand_load_lanes_optab_fn): Same.
20289 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20290 (expand_GOMP_SIMT_EXIT): Same.
20291 (expand_GOMP_SIMT_LAST_LANE): Same.
20292 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20293 (expand_GOMP_SIMT_VOTE_ANY): Same.
20294 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20295 (expand_GOMP_SIMT_XCHG_IDX): Same.
20296 (expand_addsub_overflow): Same.
20297 (expand_neg_overflow): Same.
20298 (expand_mul_overflow): Same.
20299 (expand_call_mem_ref): Same.
20300 (expand_mask_load_optab_fn): Same.
20301 (expand_scatter_store_optab_fn): Same.
20302 (expand_gather_load_optab_fn): Same.
20303 * ipa-cp.c (ipa_get_parm_lattices): Same.
20304 (print_all_lattices): Same.
20305 (ignore_edge_p): Same.
20306 (build_toporder_info): Same.
20307 (free_toporder_info): Same.
20308 (push_node_to_stack): Same.
20309 (ipcp_lattice<valtype>::set_contains_variable): Same.
20310 (set_agg_lats_to_bottom): Same.
20311 (ipcp_bits_lattice::meet_with): Same.
20312 (set_single_call_flag): Same.
20313 (initialize_node_lattices): Same.
20314 (ipa_get_jf_ancestor_result): Same.
20315 (ipcp_verify_propagated_values): Same.
20316 (propagate_scalar_across_jump_function): Same.
20317 (propagate_context_across_jump_function): Same.
20318 (propagate_bits_across_jump_function): Same.
20319 (ipa_vr_operation_and_type_effects): Same.
20320 (propagate_vr_across_jump_function): Same.
20321 (set_check_aggs_by_ref): Same.
20322 (set_chain_of_aglats_contains_variable): Same.
20323 (merge_aggregate_lattices): Same.
20324 (agg_pass_through_permissible_p): Same.
20325 (propagate_aggs_across_jump_function): Same.
20326 (call_passes_through_thunk_p): Same.
20327 (propagate_constants_across_call): Same.
20328 (devirtualization_time_bonus): Same.
20329 (good_cloning_opportunity_p): Same.
20330 (context_independent_aggregate_values): Same.
20331 (gather_context_independent_values): Same.
20332 (perform_estimation_of_a_value): Same.
20333 (estimate_local_effects): Same.
20334 (value_topo_info<valtype>::add_val): Same.
20335 (add_all_node_vals_to_toposort): Same.
20336 (value_topo_info<valtype>::propagate_effects): Same.
20337 (ipcp_propagate_stage): Same.
20338 (ipcp_discover_new_direct_edges): Same.
20339 (same_node_or_its_all_contexts_clone_p): Same.
20340 (cgraph_edge_brings_value_p): Same.
20341 (gather_edges_for_value): Same.
20342 (create_specialized_node): Same.
20343 (find_more_scalar_values_for_callers_subset): Same.
20344 (find_more_contexts_for_caller_subset): Same.
20345 (copy_plats_to_inter): Same.
20346 (intersect_aggregates_with_edge): Same.
20347 (find_aggregate_values_for_callers_subset): Same.
20348 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20349 (decide_about_value): Same.
20350 (decide_whether_version_node): Same.
20351 (spread_undeadness): Same.
20352 (identify_dead_nodes): Same.
20353 (ipcp_store_vr_results): Same.
20354 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20355 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20356 (redirect_to_unreachable): Same.
20357 (edge_set_predicate): Same.
20358 (evaluate_conditions_for_known_args): Same.
20359 (evaluate_properties_for_edge): Same.
20360 (ipa_fn_summary_t::duplicate): Same.
20361 (ipa_call_summary_t::duplicate): Same.
20362 (dump_ipa_call_summary): Same.
20363 (ipa_dump_fn_summary): Same.
20364 (eliminated_by_inlining_prob): Same.
20365 (set_cond_stmt_execution_predicate): Same.
20366 (set_switch_stmt_execution_predicate): Same.
20367 (compute_bb_predicates): Same.
20368 (will_be_nonconstant_expr_predicate): Same.
20369 (phi_result_unknown_predicate): Same.
20370 (analyze_function_body): Same.
20371 (compute_fn_summary): Same.
20372 (estimate_edge_devirt_benefit): Same.
20373 (estimate_edge_size_and_time): Same.
20374 (estimate_calls_size_and_time): Same.
20375 (estimate_node_size_and_time): Same.
20376 (remap_edge_change_prob): Same.
20377 (remap_edge_summaries): Same.
20378 (ipa_merge_fn_summary_after_inlining): Same.
20379 (ipa_fn_summary_generate): Same.
20380 (inline_read_section): Same.
20381 (ipa_fn_summary_read): Same.
20382 (ipa_fn_summary_write): Same.
20383 * ipa-fnsummary.h: Same.
20384 * ipa-hsa.c (ipa_hsa_read_section): Same.
20385 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20386 * ipa-icf.c (sem_function::param_used_p): Same.
20387 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20388 * ipa-inline.c (edge_badness): Same.
20389 (inline_small_functions): Same.
20390 * ipa-polymorphic-call.c
20391 (ipa_polymorphic_call_context::stream_out): Same.
20392 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20393 (predicate::remap_after_inlining): Same.
20394 (predicate::stream_out): Same.
20395 * ipa-predicate.h: Same.
20396 * ipa-profile.c (ipa_profile_read_summary): Same.
20397 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20398 (count_formal_params): Same.
20399 (ipa_dump_param): Same.
20400 (ipa_alloc_node_params): Same.
20401 (ipa_print_node_jump_functions_for_edge): Same.
20402 (ipa_print_node_jump_functions): Same.
20403 (ipa_load_from_parm_agg): Same.
20404 (get_ancestor_addr_info): Same.
20405 (ipa_compute_jump_functions_for_edge): Same.
20406 (ipa_analyze_virtual_call_uses): Same.
20407 (ipa_analyze_stmt_uses): Same.
20408 (ipa_analyze_params_uses_in_bb): Same.
20409 (update_jump_functions_after_inlining): Same.
20410 (try_decrement_rdesc_refcount): Same.
20411 (ipa_impossible_devirt_target): Same.
20412 (update_indirect_edges_after_inlining): Same.
20413 (combine_controlled_uses_counters): Same.
20414 (ipa_edge_args_sum_t::duplicate): Same.
20415 (ipa_write_jump_function): Same.
20416 (ipa_write_indirect_edge_info): Same.
20417 (ipa_write_node_info): Same.
20418 (ipa_read_edge_info): Same.
20419 (ipa_prop_read_section): Same.
20420 (read_replacements_section): Same.
20421 * ipa-prop.h (ipa_get_param_count): Same.
20422 (ipa_get_param): Same.
20423 (ipa_get_type): Same.
20424 (ipa_get_param_move_cost): Same.
20425 (ipa_set_param_used): Same.
20426 (ipa_get_controlled_uses): Same.
20427 (ipa_set_controlled_uses): Same.
20428 (ipa_get_cs_argument_count): Same.
20429 * ipa-pure-const.c (analyze_function): Same.
20430 (pure_const_read_summary): Same.
20432 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20433 * ipa-split.c (test_nonssa_use): Same.
20434 (dump_split_point): Same.
20435 (dominated_by_forbidden): Same.
20436 (split_part_set_ssa_name_p): Same.
20437 (find_split_points): Same.
20438 * ira-build.c (finish_loop_tree_nodes): Same.
20439 (low_pressure_loop_node_p): Same.
20440 * ira-color.c (ira_reuse_stack_slot): Same.
20442 * ira.c (setup_reg_equiv): Same.
20443 (print_insn_chain): Same.
20445 * loop-doloop.c (doloop_condition_get): Same.
20447 (record_reg_sets): Same.
20448 (doloop_optimize): Same.
20449 * loop-init.c (loop_optimizer_init): Same.
20450 (fix_loop_structure): Same.
20451 * loop-invariant.c (merge_identical_invariants): Same.
20452 (compute_always_reached): Same.
20453 (find_exits): Same.
20454 (may_assign_reg_p): Same.
20455 (find_invariants_bb): Same.
20456 (find_invariants_body): Same.
20457 (replace_uses): Same.
20458 (can_move_invariant_reg): Same.
20459 (free_inv_motion_data): Same.
20460 (move_single_loop_invariants): Same.
20461 (change_pressure): Same.
20462 (mark_ref_regs): Same.
20463 (calculate_loop_reg_pressure): Same.
20464 * loop-iv.c (biv_entry_hasher::equal): Same.
20465 (iv_extend_to_rtx_code): Same.
20466 (check_iv_ref_table_size): Same.
20467 (clear_iv_info): Same.
20468 (latch_dominating_def): Same.
20469 (iv_get_reaching_def): Same.
20470 (iv_constant): Same.
20476 (get_biv_step): Same.
20478 (analyzed_for_bivness_p): Same.
20479 (record_biv): Same.
20480 (iv_analyze_biv): Same.
20481 (iv_analyze_expr): Same.
20482 (iv_analyze_def): Same.
20483 (iv_analyze_op): Same.
20484 (iv_analyze): Same.
20485 (iv_analyze_result): Same.
20487 (eliminate_implied_conditions): Same.
20488 (simplify_using_initial_values): Same.
20489 (shorten_into_mode): Same.
20490 (canonicalize_iv_subregs): Same.
20491 (determine_max_iter): Same.
20492 (check_simple_exit): Same.
20493 (find_simple_exit): Same.
20494 (get_simple_loop_desc): Same.
20495 * loop-unroll.c (report_unroll): Same.
20496 (decide_unrolling): Same.
20497 (unroll_loops): Same.
20498 (loop_exit_at_end_p): Same.
20499 (decide_unroll_constant_iterations): Same.
20500 (unroll_loop_constant_iterations): Same.
20501 (compare_and_jump_seq): Same.
20502 (unroll_loop_runtime_iterations): Same.
20503 (decide_unroll_stupid): Same.
20504 (unroll_loop_stupid): Same.
20505 (referenced_in_one_insn_in_loop_p): Same.
20506 (reset_debug_uses_in_loop): Same.
20507 (analyze_iv_to_split_insn): Same.
20508 * lra-eliminations.c (lra_debug_elim_table): Same.
20509 (setup_can_eliminate): Same.
20511 (lra_get_elimination_hard_regno): Same.
20512 (lra_eliminate_regs_1): Same.
20513 (eliminate_regs_in_insn): Same.
20514 (update_reg_eliminate): Same.
20515 (init_elimination): Same.
20516 (lra_eliminate): Same.
20518 * lra-lives.c (initiate_live_solver): Same.
20519 * lra-remat.c (create_remat_bb_data): Same.
20520 * lra-spills.c (lra_spill): Same.
20521 * lra.c (lra_set_insn_recog_data): Same.
20522 (lra_set_used_insn_alternative_by_uid): Same.
20523 (init_reg_info): Same.
20524 (expand_reg_info): Same.
20525 * lto-cgraph.c (output_symtab): Same.
20526 (read_identifier): Same.
20527 (get_alias_symbol): Same.
20528 (input_node): Same.
20529 (input_varpool_node): Same.
20531 (input_edge): Same.
20532 (input_cgraph_1): Same.
20533 (input_refs): Same.
20534 (input_symtab): Same.
20535 (input_offload_tables): Same.
20536 (output_cgraph_opt_summary): Same.
20537 (input_edge_opt_summary): Same.
20538 (input_cgraph_opt_section): Same.
20539 * lto-section-in.c (lto_free_raw_section_data): Same.
20540 (lto_create_simple_input_block): Same.
20541 (lto_free_function_in_decl_state_for_node): Same.
20542 * lto-streamer-in.c (lto_tag_check_set): Same.
20543 (lto_location_cache::revert_location_cache): Same.
20544 (lto_location_cache::input_location): Same.
20545 (lto_input_location): Same.
20546 (stream_input_location_now): Same.
20547 (lto_input_tree_ref): Same.
20548 (lto_input_eh_catch_list): Same.
20549 (input_eh_region): Same.
20550 (lto_init_eh): Same.
20551 (make_new_block): Same.
20553 (fixup_call_stmt_edges): Same.
20554 (input_struct_function_base): Same.
20555 (input_function): Same.
20556 (lto_read_body_or_constructor): Same.
20557 (lto_read_tree_1): Same.
20558 (lto_read_tree): Same.
20559 (lto_input_scc): Same.
20560 (lto_input_tree_1): Same.
20561 (lto_input_toplevel_asms): Same.
20562 (lto_input_mode_table): Same.
20563 (lto_reader_init): Same.
20564 (lto_data_in_create): Same.
20565 * lto-streamer-out.c (output_cfg): Same.
20566 * lto-streamer.h: Same.
20567 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20568 (generate_prolog_epilog): Same.
20569 (mark_loop_unsched): Same.
20570 (dump_insn_location): Same.
20571 (loop_canon_p): Same.
20572 (sms_schedule): Same.
20573 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20574 (expand_omp_for_generic): Same.
20575 (expand_omp_for_static_nochunk): Same.
20576 (expand_omp_for_static_chunk): Same.
20577 (expand_omp_simd): Same.
20578 (expand_omp_taskloop_for_inner): Same.
20579 (expand_oacc_for): Same.
20580 (expand_omp_atomic_pipeline): Same.
20581 (mark_loops_in_oacc_kernels_region): Same.
20582 * omp-offload.c (oacc_xform_loop): Same.
20583 * omp-simd-clone.c (simd_clone_adjust): Same.
20584 * optabs-query.c (get_traditional_extraction_insn): Same.
20585 * optabs.c (expand_vector_broadcast): Same.
20586 (expand_binop_directly): Same.
20587 (expand_twoval_unop): Same.
20588 (expand_twoval_binop): Same.
20589 (expand_unop_direct): Same.
20590 (emit_indirect_jump): Same.
20591 (emit_conditional_move): Same.
20592 (emit_conditional_neg_or_complement): Same.
20593 (emit_conditional_add): Same.
20594 (vector_compare_rtx): Same.
20595 (expand_vec_perm_1): Same.
20596 (expand_vec_perm_const): Same.
20597 (expand_vec_cond_expr): Same.
20598 (expand_vec_series_expr): Same.
20599 (maybe_emit_atomic_exchange): Same.
20600 (maybe_emit_sync_lock_test_and_set): Same.
20601 (expand_atomic_compare_and_swap): Same.
20602 (expand_atomic_load): Same.
20603 (expand_atomic_store): Same.
20604 (maybe_emit_op): Same.
20605 (valid_multiword_target_p): Same.
20606 (create_integer_operand): Same.
20607 (maybe_legitimize_operand_same_code): Same.
20608 (maybe_legitimize_operand): Same.
20609 (create_convert_operand_from_type): Same.
20610 (can_reuse_operands_p): Same.
20611 (maybe_legitimize_operands): Same.
20612 (maybe_gen_insn): Same.
20613 (maybe_expand_insn): Same.
20614 (maybe_expand_jump_insn): Same.
20615 (expand_insn): Same.
20616 * optabs.h (create_expand_operand): Same.
20617 (create_fixed_operand): Same.
20618 (create_output_operand): Same.
20619 (create_input_operand): Same.
20620 (create_convert_operand_to): Same.
20621 (create_convert_operand_from): Same.
20623 * poly-int.h: Same.
20624 * predict.c (optimize_insn_for_speed_p): Same.
20625 (optimize_loop_for_size_p): Same.
20626 (optimize_loop_for_speed_p): Same.
20627 (optimize_loop_nest_for_speed_p): Same.
20628 (get_base_value): Same.
20629 (predicted_by_loop_heuristics_p): Same.
20630 (predict_extra_loop_exits): Same.
20631 (predict_loops): Same.
20632 (predict_paths_for_bb): Same.
20633 (predict_paths_leading_to): Same.
20634 (propagate_freq): Same.
20635 (pass_profile::execute): Same.
20637 * profile-count.c (profile_count::differs_from_p): Same.
20638 (profile_probability::differs_lot_from_p): Same.
20639 * profile-count.h: Same.
20640 * profile.c (branch_prob): Same.
20641 * regrename.c (free_chain_data): Same.
20642 (mark_conflict): Same.
20643 (create_new_chain): Same.
20644 (merge_overlapping_regs): Same.
20645 (init_rename_info): Same.
20646 (merge_chains): Same.
20647 (regrename_analyze): Same.
20648 (regrename_do_replace): Same.
20649 (scan_rtx_reg): Same.
20650 (record_out_operands): Same.
20651 (build_def_use): Same.
20652 * regrename.h: Same.
20654 * reload1.c (init_reload): Same.
20655 (maybe_fix_stack_asms): Same.
20656 (copy_reloads): Same.
20657 (count_pseudo): Same.
20658 (count_spilled_pseudo): Same.
20660 (find_reload_regs): Same.
20661 (select_reload_regs): Same.
20662 (spill_hard_reg): Same.
20663 (fixup_eh_region_note): Same.
20664 (set_reload_reg): Same.
20665 (allocate_reload_reg): Same.
20666 (compute_reload_subreg_offset): Same.
20667 (reload_adjust_reg_for_icode): Same.
20668 (emit_input_reload_insns): Same.
20669 (emit_output_reload_insns): Same.
20670 (do_input_reload): Same.
20671 (inherit_piecemeal_p): Same.
20673 * sanopt.c (maybe_get_dominating_check): Same.
20674 (maybe_optimize_ubsan_ptr_ifn): Same.
20675 (can_remove_asan_check): Same.
20676 (maybe_optimize_asan_check_ifn): Same.
20677 (sanopt_optimize_walker): Same.
20678 * sched-deps.c (add_dependence_list): Same.
20679 (chain_to_prev_insn): Same.
20680 (add_insn_mem_dependence): Same.
20681 (create_insn_reg_set): Same.
20682 (maybe_extend_reg_info_p): Same.
20683 (sched_analyze_reg): Same.
20684 (sched_analyze_1): Same.
20685 (get_implicit_reg_pending_clobbers): Same.
20686 (chain_to_prev_insn_p): Same.
20687 (deps_analyze_insn): Same.
20688 (deps_start_bb): Same.
20689 (sched_free_deps): Same.
20691 (init_deps_reg_last): Same.
20693 * sched-ebb.c: Same.
20694 * sched-int.h: Same.
20695 * sched-rgn.c (add_branch_dependences): Same.
20696 (concat_insn_mem_list): Same.
20698 (sched_rgn_compute_dependencies): Same.
20699 * sel-sched-ir.c (reset_target_context): Same.
20700 (copy_deps_context): Same.
20701 (init_id_from_df): Same.
20702 (has_dependence_p): Same.
20703 (change_loops_latches): Same.
20704 (bb_top_order_comparator): Same.
20705 (make_region_from_loop_preheader): Same.
20706 (sel_init_pipelining): Same.
20707 (get_loop_nest_for_rgn): Same.
20708 (make_regions_from_the_rest): Same.
20709 (sel_is_loop_preheader_p): Same.
20710 * sel-sched-ir.h (inner_loop_header_p): Same.
20711 (get_all_loop_exits): Same.
20712 * selftest.h: Same.
20713 * sese.c (sese_build_liveouts): Same.
20714 (sese_insert_phis_for_liveouts): Same.
20715 * sese.h (defined_in_sese_p): Same.
20716 * sreal.c (sreal::stream_out): Same.
20718 * streamer-hooks.h: Same.
20719 * target-globals.c (save_target_globals): Same.
20720 * target-globals.h: Same.
20721 * target.def: Same.
20723 * targhooks.c (default_has_ifunc_p): Same.
20724 (default_empty_mask_is_expensive): Same.
20725 (default_init_cost): Same.
20726 * targhooks.h: Same.
20728 * tree-affine.c (aff_combination_mult): Same.
20729 (aff_combination_expand): Same.
20730 (aff_combination_constant_multiple_p): Same.
20731 * tree-affine.h: Same.
20732 * tree-cfg.c (build_gimple_cfg): Same.
20733 (replace_loop_annotate_in_block): Same.
20734 (replace_uses_by): Same.
20736 (dump_cfg_stats): Same.
20737 (gimple_duplicate_sese_region): Same.
20738 (gimple_duplicate_sese_tail): Same.
20739 (move_block_to_fn): Same.
20740 (replace_block_vars_by_duplicates): Same.
20741 (move_sese_region_to_fn): Same.
20742 (print_loops_bb): Same.
20743 (print_loop): Same.
20744 (print_loops): Same.
20746 (debug_loops): Same.
20747 * tree-cfg.h: Same.
20748 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20749 (chrec_fold_multiply_poly_poly): Same.
20750 (chrec_evaluate): Same.
20751 (chrec_component_in_loop_num): Same.
20752 (reset_evolution_in_loop): Same.
20753 (is_multivariate_chrec): Same.
20754 (chrec_contains_symbols): Same.
20755 (nb_vars_in_chrec): Same.
20756 (chrec_convert_1): Same.
20757 (chrec_convert_aggressive): Same.
20758 * tree-chrec.h: Same.
20759 * tree-core.h: Same.
20760 * tree-data-ref.c (dump_data_dependence_relation): Same.
20761 (canonicalize_base_object_address): Same.
20762 (data_ref_compare_tree): Same.
20763 (prune_runtime_alias_test_list): Same.
20764 (get_segment_min_max): Same.
20765 (create_intersect_range_checks): Same.
20766 (conflict_fn_no_dependence): Same.
20767 (object_address_invariant_in_loop_p): Same.
20768 (analyze_ziv_subscript): Same.
20769 (analyze_siv_subscript_cst_affine): Same.
20770 (analyze_miv_subscript): Same.
20771 (analyze_overlapping_iterations): Same.
20772 (build_classic_dist_vector_1): Same.
20773 (add_other_self_distances): Same.
20774 (same_access_functions): Same.
20775 (build_classic_dir_vector): Same.
20776 (subscript_dependence_tester_1): Same.
20777 (subscript_dependence_tester): Same.
20778 (access_functions_are_affine_or_constant_p): Same.
20779 (get_references_in_stmt): Same.
20780 (loop_nest_has_data_refs): Same.
20781 (graphite_find_data_references_in_stmt): Same.
20782 (find_data_references_in_bb): Same.
20783 (get_base_for_alignment): Same.
20784 (find_loop_nest_1): Same.
20785 (find_loop_nest): Same.
20786 * tree-data-ref.h (dr_alignment): Same.
20787 (ddr_dependence_level): Same.
20788 * tree-if-conv.c (fold_build_cond_expr): Same.
20789 (add_to_predicate_list): Same.
20790 (add_to_dst_predicate_list): Same.
20791 (phi_convertible_by_degenerating_args): Same.
20792 (idx_within_array_bound): Same.
20793 (all_preds_critical_p): Same.
20794 (pred_blocks_visited_p): Same.
20795 (predicate_bbs): Same.
20796 (build_region): Same.
20797 (if_convertible_loop_p_1): Same.
20798 (is_cond_scalar_reduction): Same.
20799 (predicate_scalar_phi): Same.
20800 (remove_conditions_and_labels): Same.
20801 (combine_blocks): Same.
20802 (version_loop_for_if_conversion): Same.
20803 (versionable_outer_loop_p): Same.
20804 (ifcvt_local_dce): Same.
20805 (tree_if_conversion): Same.
20806 (pass_if_conversion::gate): Same.
20807 * tree-if-conv.h: Same.
20808 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20809 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20811 (stmt_has_scalar_dependences_outside_loop): Same.
20812 (copy_loop_before): Same.
20813 (create_bb_after_loop): Same.
20814 (const_with_all_bytes_same): Same.
20815 (generate_memset_builtin): Same.
20816 (generate_memcpy_builtin): Same.
20817 (destroy_loop): Same.
20818 (build_rdg_partition_for_vertex): Same.
20819 (compute_access_range): Same.
20820 (data_ref_segment_size): Same.
20821 (latch_dominated_by_data_ref): Same.
20822 (compute_alias_check_pairs): Same.
20823 (fuse_memset_builtins): Same.
20824 (finalize_partitions): Same.
20825 (find_seed_stmts_for_distribution): Same.
20826 (prepare_perfect_loop_nest): Same.
20827 * tree-parloops.c (lambda_transform_legal_p): Same.
20828 (loop_parallel_p): Same.
20829 (reduc_stmt_res): Same.
20830 (add_field_for_name): Same.
20831 (create_call_for_reduction_1): Same.
20832 (replace_uses_in_bb_by): Same.
20833 (transform_to_exit_first_loop_alt): Same.
20834 (try_transform_to_exit_first_loop_alt): Same.
20835 (transform_to_exit_first_loop): Same.
20837 (gen_parallel_loop): Same.
20838 (gather_scalar_reductions): Same.
20839 (get_omp_data_i_param): Same.
20840 (try_create_reduction_list): Same.
20841 (oacc_entry_exit_single_gang): Same.
20842 (parallelize_loops): Same.
20843 * tree-pass.h: Same.
20844 * tree-predcom.c (determine_offset): Same.
20845 (last_always_executed_block): Same.
20846 (split_data_refs_to_components): Same.
20847 (suitable_component_p): Same.
20848 (valid_initializer_p): Same.
20849 (find_looparound_phi): Same.
20850 (insert_looparound_copy): Same.
20851 (add_looparound_copies): Same.
20852 (determine_roots_comp): Same.
20853 (predcom_tmp_var): Same.
20854 (initialize_root_vars): Same.
20855 (initialize_root_vars_store_elim_1): Same.
20856 (initialize_root_vars_store_elim_2): Same.
20857 (finalize_eliminated_stores): Same.
20858 (initialize_root_vars_lm): Same.
20859 (remove_stmt): Same.
20860 (determine_unroll_factor): Same.
20861 (execute_pred_commoning_cbck): Same.
20862 (base_names_in_chain_on): Same.
20863 (combine_chains): Same.
20864 (pcom_stmt_dominates_stmt_p): Same.
20865 (try_combine_chains): Same.
20866 (prepare_initializers_chain_store_elim): Same.
20867 (prepare_initializers_chain): Same.
20868 (prepare_initializers): Same.
20869 (prepare_finalizers_chain): Same.
20870 (prepare_finalizers): Same.
20871 (insert_init_seqs): Same.
20872 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20873 (compute_overall_effect_of_inner_loop): Same.
20874 (add_to_evolution_1): Same.
20875 (add_to_evolution): Same.
20876 (follow_ssa_edge_binary): Same.
20877 (follow_ssa_edge_expr): Same.
20878 (backedge_phi_arg_p): Same.
20879 (follow_ssa_edge_in_condition_phi_branch): Same.
20880 (follow_ssa_edge_in_condition_phi): Same.
20881 (follow_ssa_edge_inner_loop_phi): Same.
20882 (follow_ssa_edge): Same.
20883 (analyze_evolution_in_loop): Same.
20884 (analyze_initial_condition): Same.
20885 (interpret_loop_phi): Same.
20886 (interpret_condition_phi): Same.
20887 (interpret_rhs_expr): Same.
20888 (interpret_expr): Same.
20889 (interpret_gimple_assign): Same.
20890 (analyze_scalar_evolution_1): Same.
20891 (analyze_scalar_evolution): Same.
20892 (analyze_scalar_evolution_for_address_of): Same.
20893 (get_instantiated_value_entry): Same.
20894 (loop_closed_phi_def): Same.
20895 (instantiate_scev_name): Same.
20896 (instantiate_scev_poly): Same.
20897 (instantiate_scev_binary): Same.
20898 (instantiate_scev_convert): Same.
20899 (instantiate_scev_not): Same.
20900 (instantiate_scev_r): Same.
20901 (instantiate_scev): Same.
20902 (resolve_mixers): Same.
20903 (initialize_scalar_evolutions_analyzer): Same.
20904 (scev_reset_htab): Same.
20905 (scev_reset): Same.
20906 (derive_simple_iv_with_niters): Same.
20907 (simple_iv_with_niters): Same.
20908 (expression_expensive_p): Same.
20909 (final_value_replacement_loop): Same.
20910 * tree-scalar-evolution.h (block_before_loop): Same.
20911 * tree-ssa-address.h: Same.
20912 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20913 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20914 (record_edge_info): Same.
20915 * tree-ssa-live.c (var_map_base_fini): Same.
20916 (remove_unused_locals): Same.
20917 * tree-ssa-live.h: Same.
20918 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20919 (pass_ch_vect::execute): Same.
20920 (pass_ch::process_loop_p): Same.
20921 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20922 (movement_possibility): Same.
20923 (outermost_invariant_loop): Same.
20925 (determine_max_movement): Same.
20926 (invariantness_dom_walker::before_dom_children): Same.
20927 (move_computations): Same.
20928 (may_move_till): Same.
20929 (force_move_till_op): Same.
20930 (force_move_till): Same.
20931 (memref_free): Same.
20932 (record_mem_ref_loc): Same.
20933 (set_ref_stored_in_loop): Same.
20934 (mark_ref_stored): Same.
20935 (sort_bbs_in_loop_postorder_cmp): Same.
20936 (sort_locs_in_loop_postorder_cmp): Same.
20937 (analyze_memory_references): Same.
20938 (mem_refs_may_alias_p): Same.
20939 (find_ref_loc_in_loop_cmp): Same.
20940 (rewrite_mem_ref_loc::operator): Same.
20941 (first_mem_ref_loc_1::operator): Same.
20942 (sm_set_flag_if_changed::operator): Same.
20943 (execute_sm_if_changed_flag_set): Same.
20944 (execute_sm): Same.
20945 (hoist_memory_references): Same.
20946 (ref_always_accessed::operator): Same.
20947 (refs_independent_p): Same.
20948 (record_dep_loop): Same.
20949 (ref_indep_loop_p_1): Same.
20950 (ref_indep_loop_p): Same.
20951 (can_sm_ref_p): Same.
20952 (find_refs_for_sm): Same.
20953 (loop_suitable_for_sm): Same.
20954 (store_motion_loop): Same.
20955 (store_motion): Same.
20956 (fill_always_executed_in): Same.
20957 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
20958 (estimated_unrolled_size): Same.
20959 (loop_edge_to_cancel): Same.
20960 (remove_exits_and_undefined_stmts): Same.
20961 (remove_redundant_iv_tests): Same.
20962 (unloop_loops): Same.
20963 (estimated_peeled_sequence_size): Same.
20964 (try_peel_loop): Same.
20965 (canonicalize_loop_induction_variables): Same.
20966 (canonicalize_induction_variables): Same.
20967 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
20969 (stmt_after_inc_pos): Same.
20970 (contains_abnormal_ssa_name_p): Same.
20971 (niter_for_exit): Same.
20974 (find_givs_in_bb): Same.
20975 (find_induction_variables): Same.
20976 (find_interesting_uses_cond): Same.
20977 (outermost_invariant_loop_for_expr): Same.
20978 (idx_find_step): Same.
20979 (add_candidate_1): Same.
20980 (add_iv_candidate_derived_from_uses): Same.
20981 (alloc_use_cost_map): Same.
20982 (prepare_decl_rtl): Same.
20983 (generic_predict_doloop_p): Same.
20984 (computation_cost): Same.
20985 (determine_common_wider_type): Same.
20986 (get_computation_aff_1): Same.
20987 (get_use_type): Same.
20988 (determine_group_iv_cost_address): Same.
20990 (difference_cannot_overflow_p): Same.
20991 (may_eliminate_iv): Same.
20992 (determine_set_costs): Same.
20993 (cheaper_cost_pair): Same.
20994 (compare_cost_pair): Same.
20995 (iv_ca_cand_for_group): Same.
20996 (iv_ca_recount_cost): Same.
20997 (iv_ca_set_remove_invs): Same.
20998 (iv_ca_set_no_cp): Same.
20999 (iv_ca_set_add_invs): Same.
21000 (iv_ca_set_cp): Same.
21001 (iv_ca_add_group): Same.
21002 (iv_ca_cost): Same.
21003 (iv_ca_compare_deps): Same.
21004 (iv_ca_delta_reverse): Same.
21005 (iv_ca_delta_commit): Same.
21006 (iv_ca_cand_used_p): Same.
21007 (iv_ca_delta_free): Same.
21009 (iv_ca_free): Same.
21010 (iv_ca_dump): Same.
21011 (iv_ca_extend): Same.
21012 (iv_ca_narrow): Same.
21013 (iv_ca_prune): Same.
21014 (cheaper_cost_with_cand): Same.
21015 (iv_ca_replace): Same.
21016 (try_add_cand_for): Same.
21017 (get_initial_solution): Same.
21018 (try_improve_iv_set): Same.
21019 (find_optimal_iv_set_1): Same.
21020 (create_new_iv): Same.
21021 (rewrite_use_compare): Same.
21022 (remove_unused_ivs): Same.
21023 (determine_scaling_factor): Same.
21024 * tree-ssa-loop-ivopts.h: Same.
21025 * tree-ssa-loop-manip.c (create_iv): Same.
21026 (compute_live_loop_exits): Same.
21027 (add_exit_phi): Same.
21028 (add_exit_phis): Same.
21029 (find_uses_to_rename_use): Same.
21030 (find_uses_to_rename_def): Same.
21031 (find_uses_to_rename_in_loop): Same.
21032 (rewrite_into_loop_closed_ssa): Same.
21033 (check_loop_closed_ssa_bb): Same.
21034 (split_loop_exit_edge): Same.
21035 (ip_end_pos): Same.
21036 (ip_normal_pos): Same.
21037 (copy_phi_node_args): Same.
21038 (gimple_duplicate_loop_to_header_edge): Same.
21039 (can_unroll_loop_p): Same.
21040 (determine_exit_conditions): Same.
21041 (scale_dominated_blocks_in_loop): Same.
21042 (niter_for_unrolled_loop): Same.
21043 (tree_transform_and_unroll_loop): Same.
21044 (rewrite_all_phi_nodes_with_iv): Same.
21045 * tree-ssa-loop-manip.h: Same.
21046 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21047 (number_of_iterations_ne): Same.
21048 (assert_no_overflow_lt): Same.
21049 (assert_loop_rolls_lt): Same.
21050 (number_of_iterations_lt): Same.
21051 (adjust_cond_for_loop_until_wrap): Same.
21052 (tree_simplify_using_condition): Same.
21053 (simplify_using_initial_conditions): Same.
21054 (simplify_using_outer_evolutions): Same.
21055 (loop_only_exit_p): Same.
21056 (ssa_defined_by_minus_one_stmt_p): Same.
21057 (number_of_iterations_popcount): Same.
21058 (number_of_iterations_exit): Same.
21059 (find_loop_niter): Same.
21060 (finite_loop_p): Same.
21061 (chain_of_csts_start): Same.
21062 (get_val_for): Same.
21063 (loop_niter_by_eval): Same.
21064 (derive_constant_upper_bound_ops): Same.
21065 (do_warn_aggressive_loop_optimizations): Same.
21066 (record_estimate): Same.
21067 (get_cst_init_from_scev): Same.
21068 (record_nonwrapping_iv): Same.
21069 (idx_infer_loop_bounds): Same.
21070 (infer_loop_bounds_from_ref): Same.
21071 (infer_loop_bounds_from_array): Same.
21072 (infer_loop_bounds_from_pointer_arith): Same.
21073 (infer_loop_bounds_from_signedness): Same.
21074 (bound_index): Same.
21075 (discover_iteration_bound_by_body_walk): Same.
21076 (maybe_lower_iteration_bound): Same.
21077 (estimate_numbers_of_iterations): Same.
21078 (estimated_loop_iterations): Same.
21079 (estimated_loop_iterations_int): Same.
21080 (max_loop_iterations): Same.
21081 (max_loop_iterations_int): Same.
21082 (likely_max_loop_iterations): Same.
21083 (likely_max_loop_iterations_int): Same.
21084 (estimated_stmt_executions_int): Same.
21085 (max_stmt_executions): Same.
21086 (likely_max_stmt_executions): Same.
21087 (estimated_stmt_executions): Same.
21088 (stmt_dominates_stmt_p): Same.
21089 (nowrap_type_p): Same.
21090 (loop_exits_before_overflow): Same.
21091 (scev_var_range_cant_overflow): Same.
21092 (scev_probably_wraps_p): Same.
21093 (free_numbers_of_iterations_estimates): Same.
21094 * tree-ssa-loop-niter.h: Same.
21095 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21096 (idx_analyze_ref): Same.
21097 (analyze_ref): Same.
21098 (gather_memory_references_ref): Same.
21099 (mark_nontemporal_store): Same.
21100 (emit_mfence_after_loop): Same.
21101 (may_use_storent_in_loop_p): Same.
21102 (mark_nontemporal_stores): Same.
21103 (should_unroll_loop_p): Same.
21104 (volume_of_dist_vector): Same.
21105 (add_subscript_strides): Same.
21106 (self_reuse_distance): Same.
21107 (insn_to_prefetch_ratio_too_small_p): Same.
21108 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21109 (patch_loop_exit): Same.
21110 (find_or_create_guard_phi): Same.
21111 (easy_exit_values): Same.
21112 (connect_loop_phis): Same.
21113 (connect_loops): Same.
21114 (compute_new_first_bound): Same.
21115 (split_loop): Same.
21116 (tree_ssa_split_loops): Same.
21117 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21118 (is_maybe_undefined): Same.
21119 (tree_may_unswitch_on): Same.
21120 (simplify_using_entry_checks): Same.
21121 (tree_unswitch_single_loop): Same.
21122 (tree_unswitch_loop): Same.
21123 (tree_unswitch_outer_loop): Same.
21124 (empty_bb_without_guard_p): Same.
21125 (used_outside_loop_p): Same.
21126 (get_vop_from_header): Same.
21127 (hoist_guard): Same.
21128 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21129 (get_lsm_tmp_name): Same.
21130 * tree-ssa-loop.h: Same.
21131 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21132 (build_and_add_sum): Same.
21133 (no_side_effect_bb): Same.
21135 (linearize_expr): Same.
21136 (should_break_up_subtract): Same.
21137 (linearize_expr_tree): Same.
21138 * tree-ssa-scopedtables.c: Same.
21139 * tree-ssa-scopedtables.h: Same.
21140 * tree-ssa-structalias.c (condense_visit): Same.
21141 (label_visit): Same.
21142 (dump_pred_graph): Same.
21143 (perform_var_substitution): Same.
21144 (move_complex_constraints): Same.
21145 (remove_preds_and_fake_succs): Same.
21146 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21147 (determine_bb_domination_status): Same.
21148 (duplicate_thread_path): Same.
21149 (thread_through_all_blocks): Same.
21150 * tree-ssa-threadupdate.h: Same.
21151 * tree-streamer-in.c (streamer_read_string_cst): Same.
21152 (input_identifier): Same.
21153 (unpack_ts_type_common_value_fields): Same.
21154 (unpack_ts_block_value_fields): Same.
21155 (unpack_ts_translation_unit_decl_value_fields): Same.
21156 (unpack_ts_omp_clause_value_fields): Same.
21157 (streamer_read_tree_bitfields): Same.
21158 (streamer_alloc_tree): Same.
21159 (lto_input_ts_common_tree_pointers): Same.
21160 (lto_input_ts_vector_tree_pointers): Same.
21161 (lto_input_ts_poly_tree_pointers): Same.
21162 (lto_input_ts_complex_tree_pointers): Same.
21163 (lto_input_ts_decl_minimal_tree_pointers): Same.
21164 (lto_input_ts_decl_common_tree_pointers): Same.
21165 (lto_input_ts_decl_non_common_tree_pointers): Same.
21166 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21167 (lto_input_ts_field_decl_tree_pointers): Same.
21168 (lto_input_ts_function_decl_tree_pointers): Same.
21169 (lto_input_ts_type_common_tree_pointers): Same.
21170 (lto_input_ts_type_non_common_tree_pointers): Same.
21171 (lto_input_ts_list_tree_pointers): Same.
21172 (lto_input_ts_vec_tree_pointers): Same.
21173 (lto_input_ts_exp_tree_pointers): Same.
21174 (lto_input_ts_block_tree_pointers): Same.
21175 (lto_input_ts_binfo_tree_pointers): Same.
21176 (lto_input_ts_constructor_tree_pointers): Same.
21177 (lto_input_ts_omp_clause_tree_pointers): Same.
21178 (streamer_read_tree_body): Same.
21179 * tree-streamer.h: Same.
21180 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21181 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21182 (vect_analyze_possibly_independent_ddr): Same.
21183 (vect_analyze_data_ref_dependence): Same.
21184 (vect_compute_data_ref_alignment): Same.
21185 (vect_enhance_data_refs_alignment): Same.
21186 (vect_analyze_data_ref_access): Same.
21187 (vect_check_gather_scatter): Same.
21188 (vect_find_stmt_data_reference): Same.
21189 (vect_create_addr_base_for_vector_ref): Same.
21190 (vect_setup_realignment): Same.
21191 (vect_supportable_dr_alignment): Same.
21192 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21193 (adjust_phi_and_debug_stmts): Same.
21194 (vect_set_loop_mask): Same.
21195 (add_preheader_seq): Same.
21196 (vect_maybe_permute_loop_masks): Same.
21197 (vect_set_loop_masks_directly): Same.
21198 (vect_set_loop_condition_masked): Same.
21199 (vect_set_loop_condition_unmasked): Same.
21200 (slpeel_duplicate_current_defs_from_edges): Same.
21201 (slpeel_add_loop_guard): Same.
21202 (slpeel_can_duplicate_loop_p): Same.
21203 (create_lcssa_for_virtual_phi): Same.
21205 (vect_update_ivs_after_vectorizer): Same.
21206 (vect_gen_vector_loop_niters_mult_vf): Same.
21207 (slpeel_update_phi_nodes_for_loops): Same.
21208 (slpeel_update_phi_nodes_for_guard1): Same.
21209 (find_guard_arg): Same.
21210 (slpeel_update_phi_nodes_for_guard2): Same.
21211 (slpeel_update_phi_nodes_for_lcssa): Same.
21212 (vect_do_peeling): Same.
21213 (vect_create_cond_for_alias_checks): Same.
21214 (vect_loop_versioning): Same.
21215 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21216 (vect_inner_phi_in_double_reduction_p): Same.
21217 (vect_analyze_scalar_cycles_1): Same.
21218 (vect_fixup_scalar_cycles_with_patterns): Same.
21219 (vect_get_loop_niters): Same.
21220 (bb_in_loop_p): Same.
21221 (vect_get_max_nscalars_per_iter): Same.
21222 (vect_verify_full_masking): Same.
21223 (vect_compute_single_scalar_iteration_cost): Same.
21224 (vect_analyze_loop_form_1): Same.
21225 (vect_analyze_loop_form): Same.
21226 (vect_active_double_reduction_p): Same.
21227 (vect_analyze_loop_operations): Same.
21228 (neutral_op_for_slp_reduction): Same.
21229 (vect_is_simple_reduction): Same.
21230 (vect_model_reduction_cost): Same.
21231 (get_initial_def_for_reduction): Same.
21232 (get_initial_defs_for_reduction): Same.
21233 (vect_create_epilog_for_reduction): Same.
21234 (vectorize_fold_left_reduction): Same.
21235 (vectorizable_reduction): Same.
21236 (vectorizable_induction): Same.
21237 (vectorizable_live_operation): Same.
21238 (loop_niters_no_overflow): Same.
21239 (vect_get_loop_mask): Same.
21240 (vect_transform_loop_stmt): Same.
21241 (vect_transform_loop): Same.
21242 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21243 (vect_determine_precisions): Same.
21244 (vect_pattern_recog_1): Same.
21245 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21246 * tree-vect-stmts.c (stmt_vectype): Same.
21247 (process_use): Same.
21248 (vect_init_vector_1): Same.
21249 (vect_truncate_gather_scatter_offset): Same.
21250 (get_group_load_store_type): Same.
21251 (vect_build_gather_load_calls): Same.
21252 (vect_get_strided_load_store_ops): Same.
21253 (vectorizable_simd_clone_call): Same.
21254 (vectorizable_store): Same.
21255 (permute_vec_elements): Same.
21256 (vectorizable_load): Same.
21257 (vect_transform_stmt): Same.
21258 (supportable_widening_operation): Same.
21259 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21260 (vec_info::free_stmt_vec_info): Same.
21261 (vect_free_loop_info_assumptions): Same.
21262 (vect_loop_vectorized_call): Same.
21263 (set_uid_loop_bbs): Same.
21264 (vectorize_loops): Same.
21265 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21266 * tree.c (add_tree_to_fld_list): Same.
21267 (fld_type_variant_equal_p): Same.
21268 (fld_decl_context): Same.
21269 (fld_incomplete_type_of): Same.
21270 (free_lang_data_in_binfo): Same.
21271 (need_assembler_name_p): Same.
21272 (find_decls_types_r): Same.
21273 (get_eh_types_for_runtime): Same.
21274 (find_decls_types_in_eh_region): Same.
21275 (find_decls_types_in_node): Same.
21276 (assign_assembler_name_if_needed): Same.
21277 * value-prof.c (stream_out_histogram_value): Same.
21278 * value-prof.h: Same.
21279 * var-tracking.c (use_narrower_mode): Same.
21280 (prepare_call_arguments): Same.
21281 (vt_expand_loc_callback): Same.
21282 (resolve_expansions_pending_recursion): Same.
21283 (vt_expand_loc): Same.
21284 * varasm.c (const_hash_1): Same.
21285 (compare_constant): Same.
21286 (tree_output_constant_def): Same.
21287 (simplify_subtraction): Same.
21288 (get_pool_constant): Same.
21289 (output_constant_pool_2): Same.
21290 (output_constant_pool_1): Same.
21291 (mark_constants_in_pattern): Same.
21292 (mark_constant_pool): Same.
21293 (get_section_anchor): Same.
21294 * vr-values.c (compare_range_with_value): Same.
21295 (vr_values::extract_range_from_phi_node): Same.
21296 * vr-values.h: Same.
21297 * web.c (unionfind_union): Same.
21298 * wide-int.h: Same.
21300 2019-07-09 Martin Sebor <msebor@redhat.com>
21303 * align.h: Change class-key from class to struct and vice versa
21304 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21305 * alloc-pool.h: Same.
21306 * asan.c (shadow_mem_size): Same.
21307 * auto-profile.c: Same.
21308 * basic-block.h: Same.
21310 * cfgexpand.c (set_rtl): Same.
21311 (expand_one_stack_var_at): Same.
21312 * cfghooks.h: Same.
21315 * config/i386/i386.h: Same.
21316 * df-problems.c (df_print_bb_index): Same.
21318 * df.h (df_single_use): Same.
21319 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21320 (layout::annotation_line_showed_range_p): Same.
21321 (get_printed_columns): Same.
21322 (correction::ensure_terminated): Same.
21323 (line_corrections::~line_corrections): Same.
21326 * dump-context.h: Same.
21327 * dumpfile.h: Same.
21328 * dwarf2out.c: Same.
21329 * edit-context.c: Same.
21330 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21332 * function.c (assign_stack_local): Same.
21333 * function.h: Same.
21335 * gcov.c (block_info::block_info): Same.
21336 * genattrtab.c: Same.
21337 * genextract.c: Same.
21338 * genmatch.c (comparison_code_p): Same.
21339 (id_base::id_base): Same.
21340 (decision_tree::print): Same.
21341 * genoutput.c: Same.
21342 * genpreds.c (write_one_predicate_function): Same.
21343 * genrecog.c (validate_pattern): Same.
21344 (find_operand_positions): Same.
21345 (optimize_subroutine_group): Same.
21346 (merge_pattern_transition::merge_pattern_transition): Same.
21347 (merge_pattern_info::merge_pattern_info): Same.
21348 (merge_state_result::merge_state_result): Same.
21349 (merge_into_state): Same.
21350 * gensupport.c: Same.
21351 * gensupport.h: Same.
21352 * ggc-common.c (init_ggc_heuristics): Same.
21353 * ggc-tests.c (test_union): Same.
21354 * gimple-loop-interchange.cc (dump_induction): Same.
21355 * gimple-loop-versioning.cc: Same.
21356 * gimple-match.h (gimple_match_cond::any_else): Same.
21357 * gimple-ssa-backprop.c: Same.
21358 * gimple-ssa-sprintf.c: Same.
21359 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21361 (store_immediate_info::store_immediate_info): Same.
21362 (merged_store_group::apply_stores): Same.
21363 (get_location_for_stmts): Same.
21364 * gimple-ssa-strength-reduction.c: Same.
21365 * gimple-ssa-warn-alloca.c: Same.
21366 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21367 * godump.c (go_type_decl): Same.
21368 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21369 * hash-map.h: Same.
21370 * hash-set-tests.c (test_set_of_strings): Same.
21371 * hsa-brig.c: Same.
21372 * hsa-common.h: Same.
21373 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21374 * input.c (assert_loceq): Same.
21377 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21378 * ipa-fnsummary.h: Same.
21379 * ipa-inline.h: Same.
21380 * ipa-prop.h: Same.
21381 * ipa-split.c (visit_bb): Same.
21382 * ira-int.h (minmax_set_iter_next): Same.
21383 * loop-invariant.c: Same.
21385 * lra-eliminations.c: Same.
21387 * lra-lives.c (mark_regno_dead): Same.
21388 * lra-remat.c: Same.
21389 * lra-spills.c: Same.
21390 * lto-streamer.h: Same.
21391 * mem-stats.h: Same.
21392 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21393 * omp-low.c (omp_clause_aligned_alignment): Same.
21394 * optabs-query.h (get_vcond_eq_icode): Same.
21396 * opts.c (wrap_help): Same.
21397 * poly-int.h: Same.
21398 * predict.c (predict_paths_leading_to_edge): Same.
21399 * pretty-print.h: Same.
21400 * profile-count.h: Same.
21402 * read-rtl-function.c: Same.
21405 * regrename.c: Same.
21406 * regrename.h: Same.
21408 * rtl-iter.h: Same.
21409 * rtl.h (costs_add_n_insns): Same.
21411 * sched-int.h: Same.
21412 * sel-sched-ir.h: Same.
21413 * selftest.h: Same.
21414 * sese.h (vec_find): Same.
21416 * target-globals.h: Same.
21417 * tree-affine.c (aff_combination_find_elt): Same.
21418 * tree-affine.h: Same.
21419 * tree-data-ref.h: Same.
21420 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21421 * tree-predcom.c: Same.
21422 * tree-scalar-evolution.c (find_var_scev_info): Same.
21423 * tree-ssa-alias.h: Same.
21424 * tree-ssa-ccp.c: Same.
21425 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21426 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21427 (rewrite_mem_refs): Same.
21428 (execute_sm_if_changed): Same.
21429 (hoist_memory_references): Same.
21430 * tree-ssa-loop-ivopts.c (operator<=): Same.
21431 * tree-ssa-loop.h: Same.
21432 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21433 * tree-ssa-structalias.c: Same.
21434 * tree-switch-conversion.h (cluster::cluster): Same.
21435 (simple_cluster::simple_cluster): Same.
21436 * tree-vect-patterns.c (type_conversion_p): Same.
21437 * tree-vectorizer.c (dump_stmt_cost): Same.
21438 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21439 * tree.c (protected_set_expr_location): Same.
21440 * tree.h (desired_pro_or_demotion_p): Same.
21441 (fndecl_built_in_p): Same.
21442 * unique-ptr-tests.cc: Same.
21443 * var-tracking.c (delete_variable_part): Same.
21444 * varasm.c (assemble_real): Same.
21445 (tree_output_constant_def): Same.
21447 * wide-int-bitmask.h: Same.
21448 * wide-int.h (decompose): Same.
21450 2019-07-09 Richard Biener <rguenther@suse.de>
21452 PR tree-optimization/91114
21453 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21454 find a vector type isn't fatal.
21456 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21458 * config/aarch64/aarch64-simd.md
21459 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21460 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21461 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21462 (*aarch64_crypto_aese_fused,
21463 *aarch64_crypto_aesd_fused): Update to new definition.
21464 * config/aarch64/aarch64.c
21465 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21467 2019-07-09 Richard Biener <rguenther@suse.de>
21469 * gimple-match.h (gimple_match_op::resimplify): New.
21470 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21471 gimple_resimplify4, gimple_resimplify5): Remove.
21472 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21473 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21475 (gimple_match_op::resimplify): New.
21476 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21477 according to availability. Use gimple_match_op::resimplify.
21479 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21481 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21483 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21485 * config/arm/crypto.md:
21486 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21487 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21488 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21489 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21491 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21492 * config/arm/aarch-common-protos.h
21493 (aarch_crypto_can_dual_issue): Remove.
21494 * config/arm/aarch-common.c
21495 (aarch_crypto_can_dual_issue): Likewise.
21496 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21497 * config/arm/cortex-a53.md: Likewise.
21498 * config/arm/cortex-a57.md: Likewise.
21499 * config/arm/iterators.md:
21500 (CRYPTO_BINARY): Redefine.
21501 (CRYPTO_UNARY): Removed.
21502 (CRYPTO_AES, CRYPTO_AESMC): New.
21504 2019-07-09 Richard Biener <rguenther@suse.de>
21506 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21507 (vn_reference_lookup_3): If the main ref has no access path recorded
21508 but orig_ref has use it to do access-path based disambiguation.
21509 (vn_reference_lookup_pieces): Adjust.
21510 (vn_reference_lookup): Pass down original ref if we valueized.
21512 2019-07-09 Martin Liska <mliska@suse.cz>
21514 * doc/extend.texi: Document influence on loop
21517 2019-07-09 Martin Liska <mliska@suse.cz>
21519 * lto-compress.c (lto_normalized_zstd_level): Do not use
21520 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21521 of libzstd. One can use 0 as a default compression level.
21523 2019-07-09 Martin Liska <mliska@suse.cz>
21525 * doc/invoke.texi: Add link from -fprofile-dir option.
21526 Use better wording for 'gcno filename'.
21528 2019-07-08 Martin Sebor <msebor@redhat.com>
21530 PR middle-end/71924
21531 PR middle-end/90549
21532 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21534 (args_loc_t): New type.
21535 (args_loc_t, locmap_t): same.
21536 (diag_returned_locals): New function.
21537 (is_addr_local): Same.
21538 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21539 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21540 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21542 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21544 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21545 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21546 and casts in offset when different, both through gimple stmts
21547 and through trees. Rewritten using loops to minimize code duplication
21550 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21552 * emit-rtl.c (set_insn_locations): New function moved from...
21553 * function.c (set_insn_locations): ...here.
21554 * ira-emit.c (emit_moves): Propagate location of the first instruction
21555 to the inserted move instructions.
21556 * reg-stack.c (compensate_edge): Set the location if the sequence is
21557 inserted on the edge.
21558 * rtl.h (set_insn_locations): Declare.
21560 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21562 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21563 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21566 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21568 PR rtl-optimization/88233
21569 * common.opt (fsplit-wide-types-early): New option.
21570 * common/config/rs6000/rs6000-common.c
21571 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21573 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21574 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21575 flag_split_wide_types_early.
21576 (pass_data_lower_subreg3): New.
21577 (pass_lower_subreg3): New.
21578 (make_pass_lower_subreg3): New.
21579 * passes.def (pass_lower_subreg2): Move after the loop passes.
21580 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21581 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21582 the pass pipeline; its previous place is taken by ...
21583 (make_pass_lower_subreg3): ... this.
21585 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21587 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21588 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21590 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21592 * config/s390/constraints.md: Add new jsc constraint.
21593 * config/s390/predicates.md: New predicates.
21594 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21595 * config/s390/s390.c (s390_valid_shift_count): New function.
21596 (print_shift_count_operand): Use s390_valid_shift_count.
21597 (print_operand): Likewise.
21598 * config/s390/s390.md: Use new predicate.
21599 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21600 * config/s390/vector.md: Use new predicate.
21602 2019-07-08 Andrew Waterman <andrew@sifive.com>
21603 Jim Wilson <jimw@sifive.com>
21605 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21606 bitsize instead of BITS_PER_WORD.
21608 2019-07-08 Martin Liska <mliska@suse.cz>
21610 * collect2.c (defined): Revert to before r254460.
21611 (scan_prog_file): Revert to before r254460.
21613 2019-07-08 Richard Biener <rguenther@suse.de>
21615 PR tree-optimization/83518
21616 * tree-ssa-sccvn.c: Include splay-tree.h.
21617 (struct pd_range, struct pd_data): New.
21618 (struct vn_walk_cb_data): Add data to track partial definitions.
21619 (vn_walk_cb_data::~vn_walk_cb_data): New.
21620 (vn_walk_cb_data::push_partial_def): New.
21621 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21622 (vn_reference_lookup_2): When partial defs are registered give up.
21623 (vn_reference_lookup_3): Track partial defs for memset and
21624 constructor zeroing and for defs from constants.
21626 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21628 * doc/install.texi (bootstrap-Og): Document.
21630 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21632 * config/riscv/pic.md (*local_pic_load_s<mode>)
21633 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21634 referenced by <mode>, giving...
21635 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21636 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21637 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21638 use <X:MODE> for the mode attribute.
21640 2019-07-07 Jeff Law <law@redhat.com>
21642 PR tree-optimization/91090
21643 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21644 in handling of ranges to simplify switch statements.
21646 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21648 * config/darwin.c (darwin_override_options): Make a final check on PIC
21651 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21653 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21654 on for kernel code.
21656 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21659 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21660 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21661 instead of matching them to "l" output operands.
21663 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21665 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21666 and check whether addr.reg is nonnull before using it.
21668 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21670 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21671 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21672 variable(s). For conditional lastprivate look through outer
21673 GIMPLE_OMP_SCAN context.
21674 (lower_omp_1): For conditional lastprivate look through outer
21675 GIMPLE_OMP_SCAN context.
21677 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21678 member to combined_into_simd_safelen1.
21679 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21680 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21681 clauses if ctx->combined_into_simd_safelen1 put statements after the
21682 predicate conditionalized block rather than into it.
21684 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21686 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21688 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21689 Make the choice of <mode> explicit, giving...
21690 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21692 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21694 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21695 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21697 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21698 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21699 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21700 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21701 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21702 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21703 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21704 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21705 (*avx512f_scatterdi<mode>): Likewise.
21706 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21708 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21710 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21711 specify the mode iterator referenced by <mode>, giving...
21712 (*push1_h8300hs_<QHI:mode>): ...this.
21714 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21716 * config/gcn/gcn-valu.md
21717 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21718 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21719 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21720 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21721 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21722 but using the _exec comparison patterns.
21723 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21724 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21725 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21726 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21727 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21728 but using the _exec comparison patterns.
21730 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21732 * config/arm/sync.md
21733 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21734 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21735 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21736 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21737 <SIDI:cas_cmp_str>.
21739 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21741 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21742 (maybe_lookup_ctx): Add forward declaration.
21743 (omp_find_scan): Likewise. Walk into body of simd if composited
21744 with worksharing loop.
21745 (scan_omp_simd_scan): New function.
21746 (scan_omp_1_stmt): Call it.
21747 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21748 ctx->for_simd_scan_phase.
21749 (lower_rec_input_clauses): Do much less work for inscan reductions
21750 in ctx->for_simd_scan_phase is_simd regions.
21751 (lower_omp_scan): Set is_simd also on simd constructs composited
21752 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21753 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21754 emit their body after in simd constructs composited with worksharing
21756 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21758 * omp-low.c (omp_find_scan): Make static.
21759 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21760 the second loop, var2 represents the first partial sum and so needs
21761 to go before rprivb[ivar].
21763 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21765 * config/rs6000/rs6000-logue.c: Remove unused code.
21767 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21769 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21771 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21774 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21775 check with a frame laid out check.
21777 2019-07-05 Richard Biener <rguenther@suse.de>
21779 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21780 when comparing against a store with possibly the same value.
21782 2019-07-05 Richard Biener <rguenther@suse.de>
21784 PR tree-optimization/91091
21785 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21786 (walk_non_aliased_vuses): Likewise.
21787 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21788 (get_continuation_for_phi): New tbaa_p parameter and pass
21790 (walk_non_aliased_vuses): Likewise.
21791 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21792 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21793 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21795 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21796 (adjust_offsets_for_equal_base_address): New function.
21797 (vn_reference_lookup_3): Use it to catch more base equivalences.
21798 Handle and pass down tbaa_p flag.
21799 (vn_reference_lookup_pieces): Adjust.
21800 (vn_reference_lookup): Remove alias-set altering, instead pass
21801 down false as tbaa_p.
21803 2019-07-05 Richard Biener <rguenther@suse.de>
21805 PR tree-optimization/91091
21806 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21807 accesses can happen with -fno-strict-aliasing.
21809 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21811 * tree-ssa-alias.c (alias_stats): Add
21812 nonoverlapping_component_refs_since_match_p_must_overlap.
21813 (dump_alias_stats): Print it.
21814 (nonoverlapping_component_refs_since_match_p): Add early exit.
21815 (nonoverlapping_component_refs_p): Do not account early exit.
21817 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21819 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21820 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21821 (emit_eh_dispatch): Delete.
21822 (lower_catch): Emit the eh_dispatch manually and set the location of
21823 the first catch statement onto it.
21824 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21825 (lower_eh_dispatch): Propagate location.
21826 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21827 (eliminate_build): Likewise.
21829 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21831 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21832 phi nodes if possible.
21833 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21834 location info on the newly created statement.
21835 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21836 newly created increment if needed.
21838 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21840 PR middle-end/78884
21841 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21842 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21843 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21844 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21845 ctx->add_safelen1 is set.
21847 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21848 GOMP_loop_start at the start of second worksharing loop in a scan.
21849 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21850 worksharing loop in a scan even if there are conditional lastprivates,
21851 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21853 2019-07-04 Jan Hubicka <jh@suse.cz>
21855 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21856 Fix check for match in the ref walk.
21858 2019-07-04 Martin Liska <mliska@suse.cz>
21860 * tree-ssa-loop-niter.c
21861 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21862 (estimate_numbers_of_iterations):
21863 Support __builtin_expect_with_probability for analysis
21864 of # of loop iterations.
21866 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21868 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21869 * except.c: Likewise.
21870 * expr.c (expand_expr_real_1): Reject it.
21871 * gimplify.c (gimplify_expr): Gimplify it, within
21873 * tree-dump.c (dequeue_and_dump): Dump it.
21874 * tree-pretty-print.c (dump_generic_node): Likewise.
21875 * tree.c (block_may_fallthru): Handle it.
21876 * tree.def (EH_ELSE_EXPR): Introduce it.
21877 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21878 with GIMPLE_EH_ELSE as try/finally/else.
21880 2019-07-04 Richard Biener <rguenther@suse.de>
21883 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21884 parameter whether to disable GC collection.
21885 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21887 (execute_all_ipa_transforms): Likewise and pass it down.
21888 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21889 collection from applying IPA transforms.
21890 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21891 from applying IPA transforms.
21893 2019-07-04 Richard Biener <rguenther@suse.de>
21895 PR tree-optimization/90911
21896 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21897 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21898 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21899 scalar_loop_scaling.
21900 (vect_transform_loop): Scale scalar loop profile if needed.
21901 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21902 the loop copy from if-conversion adjust edge probabilities
21903 and scale the vectorized loop body profile, queue the scalar
21904 profile for updating after peeling.
21906 2019-07-04 Jan Hubicka <jh@suse.cz>
21908 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21909 parameters; return early for must-alias.
21910 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21911 outer types match, try nonoverlapping_component_refs
21912 if must-alias is not obvious.
21913 (indirect_refs_may_alias_p): Likewise.
21914 (refs_may_alias_p_2): Likewise.
21916 2019-07-04 Richard Biener <rguenther@suse.de>
21918 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21920 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21922 (struct vn_walk_cb_data): New callback data struct.
21923 (vn_reference_lookup_2): Adjust.
21924 (vn_reference_lookup_3): Likewise.
21925 (vn_reference_lookup_pieces): Likewise.
21926 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21927 (visit_reference_op_load): Adjust.
21929 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21931 PR tree-optimization/91063
21932 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
21933 stmt from stmts sequence before calling vect_init_vector_1.
21936 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21939 * fwprop.c (reg_single_def_p): New function.
21940 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
21941 (forward_propagate_into): New parameter reg_prop_only
21942 with default value false.
21943 Propagate def's src into loop only if SET_SRC and SET_DEST
21944 of def_set have single definitions.
21945 Likewise if reg_prop_only is set to true.
21946 (fwprop): New param fwprop_addr_p.
21947 Integrate fwprop_addr into fwprop.
21948 (fwprop_addr): Remove.
21949 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
21951 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
21952 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
21953 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
21955 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21957 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
21958 in worksharing loop scans.
21960 PR tree-optimization/91074
21961 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
21964 PR rtl-optimization/90756
21965 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
21968 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
21970 * config/aarch64/aarch64.md: Remove redundant constraints from
21971 define_expand but keep some patterns untouched if they are
21972 specially selected by TARGET_SECONDARY_RELOAD hook.
21973 * config/aarch64/aarch64-sve.md: Likewise.
21974 * config/aarch64/atomics.md: Remove redundant constraints from
21976 * config/aarch64/aarch64-simd.md: Likewise.
21978 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21980 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
21981 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
21982 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
21984 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
21987 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
21989 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
21990 (STARTFILE_SPEC): Split crt3 into a separate spec.
21991 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
21992 (DARWIN_CRT2_SPEC): New.
21993 (DARWIN_CRT3_SPEC): New.
21994 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
21995 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
21996 (DARWIN_CRT3_SPEC): New.
21998 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22000 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22001 Change the RTL attribute "length" from "4" to "*" to allow the
22002 length attribute to be adjusted automatically for prefixed load,
22003 store, and add immediate instructions.
22004 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22006 (extendsi<mode>2, EXTSI iterator): Likewise.
22007 (movsi_internal1): Likewise.
22008 (movsi_from_sf): Likewise.
22009 (movdi_from_sf_zero_ext): Likewise.
22010 (mov<mode>_internal): Likewise.
22011 (movcc_internal1, QHI iterator): Likewise.
22012 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22013 (movsf_from_si): Likewise.
22014 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22015 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22016 (mov<mode>, FMOVE128 iterator): Likewise.
22017 (movdi_internal64): Likewise.
22018 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22020 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22021 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22022 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22023 (vsx_splat_v4sf): Likewise.
22025 2019-07-03 Mark Wielaard <mark@klomp.org>
22028 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22029 DW_AT_addr_base if there is actually a .debug_addr section with
22031 (output_addr_table): Add DWARF5 table header generation here after
22032 checking there are actually any addresses from...
22033 (dwarf2out_finish): ...here.
22035 2019-07-03 Richard Biener <rguenther@suse.de>
22037 PR middle-end/91069
22038 * match.pd (vec_perm -> bit_insert): Fix element read from
22041 2019-07-03 Martin Liska <mliska@suse.cz>
22043 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22044 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22046 * generic-match-head.c: Include dbgcnt.h.
22047 * gimple-match-head.c: Likewise.
22049 2019-07-03 Martin Liska <mliska@suse.cz>
22051 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22052 (GCOV_COUNTER_V_TOPN): New.
22053 (GCOV_COUNTER_V_INDIR): Use _topn.
22054 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22055 (GCOV_TOPN_VALUES): New.
22056 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22057 (GCOV_TOPN_VALUES_COUNTERS): New.
22058 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22060 (gimple_init_gcov_profiler): Rename variables from one_value
22062 (gimple_gen_one_value_profiler): Remove.
22063 (gimple_gen_topn_values_profiler): New function.
22064 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22065 names instead of SINGLE_VALUE.
22066 (stream_out_histogram_value): Likewise.
22067 (stream_in_histogram_value): Likewise.
22068 (get_most_common_single_value): Likewise.
22069 (gimple_divmod_fixed_value_transform): Likewise.
22070 (gimple_stringops_transform): Likewise.
22071 (gimple_divmod_values_to_profile): Likewise.
22072 (gimple_stringops_values_to_profile): Likewise.
22073 (gimple_find_values_to_profile): Likewise.
22074 * value-prof.h (enum hist_type): Rename to TOPN.
22075 (gimple_gen_one_value_profiler): Remove.
22076 (gimple_gen_topn_values_profiler): New.
22078 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22080 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22081 if it has the DW_AT_data_member_location attribute.
22083 2019-07-03 Richard Biener <rguenther@suse.de>
22085 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22088 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22090 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22091 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22092 (tlsdesc_small_sve_<mode>): Likewise.
22094 2019-07-03 Martin Liska <mliska@suse.cz>
22096 * Makefile.in: Define ZSTD_LIB.
22097 * common.opt: Adjust compression level
22098 to support also zstd levels.
22099 * config.in: Regenerate.
22100 * configure: Likewise.
22101 * configure.ac: Add --with-zstd and --with-zstd-include options
22103 * doc/install.texi: Mention zstd dependency.
22104 * gcc.c: Print supported LTO compression algorithms.
22105 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22106 (lto_compression_zstd): Likewise.
22107 (lto_uncompression_zstd): Likewise.
22108 (lto_end_compression): Dispatch in between zlib and zstd.
22109 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22110 (lto_uncompression_zlib): Make it static.
22111 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22112 * lto-section-in.c (lto_get_section_data): Pass info
22113 about used compression.
22114 * lto-streamer-out.c: By default use zstd when possible.
22115 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22116 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22118 2019-07-03 Martin Liska <mliska@suse.cz>
22120 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22121 * lto-section-out.c (lto_destroy_simple_output_block): Never
22122 compress LTO_section_lto section.
22123 * lto-streamer-out.c (produce_asm): Do not set major_version
22125 (lto_output_toplevel_asms): Likewise.
22126 (produce_lto_section): New function.
22127 (lto_output): Call produce_lto_section.
22128 (lto_write_mode_table): Do not set major_version and
22130 (produce_asm_for_decls): Likewise.
22131 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22133 (struct lto_header): Remove.
22134 (struct lto_section): New struct.
22135 (struct lto_simple_header): Do not inherit from lto_header.
22136 (struct lto_file_decl_data): Add lto_section_header field.
22138 2019-07-03 Martin Liska <mliska@suse.cz>
22140 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22142 * reg-stack.c (check_asm_stack_operands): Likewise.
22143 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22144 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22145 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22146 force_expand_binop.
22148 2019-07-03 Martin Liska <mliska@suse.cz>
22150 PR tree-optimization/90892
22151 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22152 in string constants.
22154 2019-07-03 Martin Liska <mliska@suse.cz>
22156 PR middle-end/90899
22157 * multiple_target.c (create_dispatcher_calls): Add to comdat
22158 group only if set for ifunc.
22160 2019-07-03 Martin Liska <mliska@suse.cz>
22163 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22164 Define local_object_name in outer scope in order to handle
22165 use-after-scope issue.
22167 2019-07-03 Martin Liska <mliska@suse.cz>
22169 * common.opt: Add fprofile-note.
22170 * coverage.c (coverage_init): Append the option
22172 * doc/invoke.texi: Document -fprofile-note.
22174 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22176 PR tree-optimization/91033
22177 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22178 vect_analyze_data_refs): Add bool * arguments.
22179 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22180 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22181 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22182 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22183 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22184 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22185 vect_analyze_data_refs caller.
22187 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22189 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22190 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22191 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22192 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22193 OMP_CLAUSE__SCANTEMP_ entry.
22194 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22195 * tree-pretty-print.c (dump_omp_clause): Likewise.
22196 * tree-nested.c (convert_nonlocal_omp_clauses,
22197 convert_local_omp_clauses): Likewise.
22198 * omp-general.h (struct omp_for_data): Add have_scantemp and
22199 have_nonctrl_scantemp members.
22200 * omp-general.c (omp_extract_for_data): Initialize them.
22201 * omp-low.c (struct omp_context): Add scan_exclusive member.
22202 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22203 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22204 ctx->scan_exclusive.
22205 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22206 of !ctx->scan_inclusive.
22207 (lower_rec_input_clauses): Simplify gimplification of dtors using
22208 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22209 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22210 loops. Don't add barrier for reduction_omp_orig_ref if
22211 ctx->scan_??xclusive.
22212 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22213 (lower_omp_scan): Use ctx->scan_exclusive instead
22214 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22215 reductions. Use new_vard != new_var instead of repeated
22216 omp_is_reference calls.
22217 (omp_find_scan, lower_omp_for_scan): New functions.
22218 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22220 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22221 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22222 and fd->have_scantemp.
22224 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22225 on worksharing loop propagate it as shared clause to containing
22228 * omp-expand.c (expand_omp_for_static_nochunk,
22229 expand_omp_for_static_chunk): For nowait worksharing loop with
22230 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22233 2019-07-02 qing zhao <qing.zhao@oracle.com>
22235 PR preprocessor/90581
22236 * doc/cppopts.texi: Add document for -fmax-include-depth.
22237 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22239 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22241 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22242 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22243 (mmx_packssdw): Ditto.
22244 (mmx_punpckhbw): Ditto.
22245 (mmx_punpcklbw): Ditto.
22246 (mmx_punpckhwd): Ditto.
22247 (mmx_punpcklwd): Ditto.
22248 (mmx_punpckhdq): Ditto.
22249 (mmx_punpckldq): Ditto.
22250 (*vec_dupv4hi): Ditto.
22251 (*vec_dupv2si): Ditto.
22252 (mmx_pmovmskb): Ditto.
22253 * config/i386/sse.md (sse_cvtpi2ps): Use
22254 TARGET_SSE2 && SSE_REG_P in split condition.
22255 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22256 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22257 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22258 (ssse3_pshufbv8qi3): Ditto.
22259 (ssse3_palignrdi): Ditto.
22261 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22263 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22264 with inlined save and restore.
22266 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22268 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22269 to be inserted on single successor edge of the entry block. Then call
22270 commit_edge_insertions instead of inserting the instructions manually.
22271 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22272 RTL expansion and rebuild jump labels chain.
22274 2019-07-02 Richard Biener <rguenther@suse.de>
22276 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22278 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22280 * tree.c (build_common_tree_nodes): Initialize them.
22281 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22282 Make declarations comments.
22283 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22284 chrec_known): Remove definitions.
22285 (initialize_scalar_evolutions_analyzer): Remove.
22286 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22287 * tree-streamer.c (preload_common_nodes): Do not preload
22288 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22290 2019-07-02 Jan Hubicka <jh@suse.cz>
22292 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22295 2019-07-02 Jan Hubicka <jh@suse.cz>
22297 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22299 (nonoverlapping_component_refs_since_match_p): ... this one;
22300 handle also non-decl bases; return -1 if search gave up.
22301 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22302 nonoverlapping_component_refs_of_decl_p_no_alias to
22303 nonoverlapping_component_refs_since_match_p_may_alias,
22304 nonoverlapping_component_refs_since_match_p_no_alias.
22305 (dump_alias_stats): Update dumping.
22306 (aliasing_matching_component_refs_p): Break out from ...;
22307 dispatch to nonoverlapping_component_refs_for_decl_p
22308 and nonoverlapping_component_refs_since_match_p.
22309 (aliasing_component_refs_p): ... here; call
22310 nonoverlapping_component_refs_p in scenarios where we can not
22311 precisely determine base match.
22312 (decl_refs_may_alias_p): Use
22313 nonoverlapping_component_refs_since_match_p.
22314 (indirect_ref_may_alias_decl_p): Do not call
22315 nonoverlapping_component_refs_p.
22316 (indirect_refs_may_alias_p): Likewise.
22318 2019-07-02 Jan Hubicka <jh@suse.cz>
22320 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22321 to clobber of return value.
22323 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22325 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22326 for is_neon_type instructions that have not already been categorized.
22328 2019-07-02 Richard Biener <rguenther@suse.de>
22330 PR tree-optimization/58483
22331 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22332 for MEM_REF base hashing.
22333 (equal_mem_array_ref_p): Likewise for base comparison.
22335 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22337 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22338 parameterized name.
22339 (signbit<mode>2): Use that name. Simplify.
22341 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22343 PR middle-end/66726
22344 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22345 Tune heuristic from PR71016 to allow MIN / MAX.
22347 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22349 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22350 parameterized name.
22351 (abs<mode>2): Use that name. Simplify.
22353 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22355 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22356 parameterized name.
22357 (neg<mode>2): Use that name. Simplify.
22359 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22361 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22363 (abs<mode>2): Use that name. Simplify.
22365 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22367 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22369 (neg<mode>2): Use that name. Simplify.
22371 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22373 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22374 ("enabled" attribute): Handle sse_noavx isa attribute.
22375 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22376 Use TARGET_SSE && SSE_REGNO_P in split condition.
22377 (*vec_dupv2sf): Ditto.
22379 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22381 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22383 (floatsi<mode>2): Use that name. Simplify.
22385 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22387 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22388 parameterized name.
22389 (extenddf<mode>2_vsx): Make this a parameterized name.
22390 (extenddf<mode>2): Use those names. Simplify.
22392 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22394 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22396 (eh_return): Use that name. Simplify.
22398 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22400 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22401 (doloop_end): Use that name. Simplify.
22403 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22405 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22406 parameterized name.
22407 (indirect_jump): Use that name. Simplify.
22409 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22411 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22412 parameterized name.
22413 (abs<mode>2): Use that name. Simplify.
22415 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22417 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22418 parameterized name.
22419 (fix_trunc<mode>si2): Use that name. Simplify.
22421 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22423 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22424 (allocate_stack): Use that name. Simplify.
22426 2019-07-01 Martin Sebor <msebor@redhat.com>
22428 PR middle-end/90923
22429 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22430 (hash_map::get_or_insert): Same. Reformat comment.
22431 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22432 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22433 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22434 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22435 (hash_table::hash_table (const hash_table&)): Use copy ctor
22436 instead of assignment to copy elements.
22438 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22439 John David Anglin <danglin@gcc.gnu.org>
22442 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22443 using saved frame pointer.
22445 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22447 PR middle-end/64242
22448 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22449 Add frame clobber and schedule blockage.
22451 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22453 * doc/invoke.texi (Link Options): Further editorial changes to
22454 -flinker-output docs.
22456 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22458 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22459 Load both operands of a PLUS into registers separately.
22461 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22463 * config/s390/vector.md: Fix shift count operand printing.
22465 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22467 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22469 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22471 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22472 Use recog_data to test for an output operand.
22474 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22476 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22477 exclude any others that are disparaged or that are bound to need
22479 (ira_get_dup_out_num): Expand comment.
22481 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22483 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22484 constraint string for each operand/alternative combo. Only handle
22485 '%' at the start of constraint strings, and look for it outside
22488 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22490 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22491 alternative_mask instead of HARD_REG_SET to represent a
22492 bitmask of alternatives.
22493 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22494 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22496 2019-07-01 Martin Liska <mliska@suse.cz>
22498 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22499 use () for a constructor call.
22500 (test_applying_fixits_line_out_of_range): Likewise.
22501 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22503 (free_page): Likewise.
22505 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22507 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22508 parameter names to match usage (no functional change).
22509 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22511 2019-07-01 Richard Biener <rguenther@suse.de>
22513 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22515 (pass_fre::execute): Honor it.
22516 * passes.def: Adjust pass_fre invocations to allow iterating,
22517 add non-iterating pass_fre before late threading/dom.
22519 2019-07-01 Richard Biener <rguenther@suse.de>
22521 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22522 TARGET_MEM_REF handling to also handle address-taken ones.
22524 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22526 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22527 hardware attributes): Document avx512vp2intersect.
22529 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22531 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22532 (abs<mode>2): New expander.
22533 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22534 Use CODE_FOR_ssse3_absv8qi2.
22535 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22536 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22538 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22540 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22541 to sse, sse_noavx and avx. Update all uses.
22543 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22545 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22546 (*mmx_<plusminus_insn><mode>3): Ditto.
22547 (*mmx_mulv4hi3"): Ditto.
22548 (*mmx_smulv4hi3_highpart): Ditto.
22549 (*mmx_umulv4hi3_highpart): Ditto.
22550 (*mmx_pmaddwd): Ditto.
22551 (*sse2_umulv1siv1di3): Ditto.
22552 (*mmx_<code>v4hi3): Ditto.
22553 (*mmx_<code>v8qi3): Ditto.
22554 (mmx_ashr<mode>3): Ditto.
22555 ("mmx_<shift_insn><mode>3): Ditto.
22556 (*mmx_eq<mode>3): Ditto.
22557 (mmx_gt<mode>3): Ditto.
22558 (mmx_andnot<mode>3): Ditto.
22559 (*mmx_<code><mode>3): Ditto.
22560 (*mmx_pinsrw): Ditto.
22561 (*mmx_pextrw): Ditto.
22562 (mmx_pshufw_1): Ditto.
22563 (*mmx_uavgv8qi3): Ditto.
22564 (*mmx_uavgv4hi3): Ditto.
22565 ("mmx_psadbw): Ditto.
22566 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22567 (sse_cvttps2pi): Ditto.
22568 (ssse3_pmaddubsw): Ditto.
22569 (*ssse3_pmulhrswv4hi3): Ditto.
22570 (ssse3_psign<mode>3): Ditto.
22572 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22574 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22575 adjustment for bit-fields to all aggregate types.
22577 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22579 * config/rs6000/predicates.md (pcrel_address): Use
22580 SYMBOL_REF_LOCAL_P to determine if a label is local.
22581 (pcrel_external_address): New predicate.
22582 (non_prefixed_mem_operand): Delete, predicate not used.
22583 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22584 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22586 (SYMBOL_REF_PCREL_P): Likewise.
22589 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22591 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22592 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22593 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22595 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22597 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22598 override on extra_headers.
22600 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22602 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22603 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22605 (darwin_driver_init): Likewise.
22607 2019-06-28 Jan Beulich <jbeulich@suse.com>
22609 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22610 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22611 Eliminate redundant alternative.
22613 2019-06-28 Jan Beulich <jbeulich@suse.com>
22615 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22616 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22617 Use vector_operand.
22619 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22621 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22622 having a lower cost regardless of the speed option.
22624 2019-06-28 Jan Beulich <jbeulich@suse.com>
22626 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22627 vector_operand plus, on both alternatives, "Bm" constraint.
22629 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22631 * config/arm/arm.md: Remove redundant constraints from
22632 define_expand but leave reload_inm and reload_outm patterns
22633 untouched since they need special constraints to work.
22634 * config/arm/arm-fixed.md: Remove redundant constraints from
22636 * config/arm/iwmmxt.md: Likewise.
22637 * config/arm/neon.md: Likewise.
22638 * config/arm/sync.md: Likewise.
22639 * config/arm/thumb1.md: Likewise.
22640 * config/arm/vec-common.md: Likewise.
22642 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22644 * doc/install.texi: Document --disable-tm-clone-registry.
22646 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22649 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22652 PR tree-optimization/91010
22653 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22654 return true. Otherwise, don't call operand_equal_p if offset1 or
22655 offset2 is NULL and just return false.
22657 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22659 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22660 user-specified float mode choice for kernel mode code.
22662 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22664 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22667 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22669 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22670 use longcall for 64b code.
22672 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22674 * builtins.c (get_memory_rtx): Fix comment.
22675 * optabs.def (movmem_optab): Change to cpymem_optab.
22676 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22677 (emit_block_move_hints): Change movmem to cpymem.
22678 * defaults.h: Change movmem to cpymem.
22679 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22680 (default_use_by_pieces_infrastructure_p): Ditto.
22681 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22682 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22684 * config/aarch64/aarch64.h: Change movmem to cpymem.
22685 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22686 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22687 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22689 * config/arc/arc-protos.h: Change movmem to cpymem.
22690 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22691 * config/arc/arc.h: Change movmem to cpymem in comment.
22692 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22693 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22694 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22695 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22696 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22697 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22698 * config/avr/avr-protos.h: Change movmem to cpymem.
22699 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22700 avr_out_movmem): Change movmem to cpymem.
22701 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22702 Change movmem to cpymem.
22703 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22704 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22705 Change movmem to cpymem.
22706 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22707 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22708 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22709 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22710 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22711 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22712 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22713 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22714 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22715 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22716 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22717 expand_small_cpymem_or_setmem,
22718 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22719 expand_set_or_cpymem_constant_prologue,
22720 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22721 * config/i386/i386-protos.h: Change movmem to cpymem.
22722 * config/i386/i386.h: Change movmem to cpymem in comment.
22723 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22724 (setmem<mode>): Change expansion function name.
22725 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22726 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22727 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22728 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22729 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22730 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22731 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22733 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22734 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22735 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22736 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22737 Change movmem to cpymem.
22738 * config/mips/mips.h: Change movmem to cpymem.
22739 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22740 * config/nds32/nds32-memory-manipulation.c
22741 (nds32_expand_movmemsi_loop_unknown_size,
22742 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22743 nds32_expand_movmemsi_unroll,
22744 nds32_expand_movmemsi): Change movmem to cpymem.
22745 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22746 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22747 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22748 (pa_adjust_insn_length): Change call to compute_movmem_length.
22749 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22750 movmemdi, movmemdi_prereload,
22751 movmemdi_postreload): Change movmem to cpymem.
22752 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22753 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22754 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22755 * config/riscv/riscv.h: Change movmem to cpymem.
22756 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22757 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22758 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22760 * config/s390/s390-protos.h: Change movmem to cpymem.
22761 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22762 s390_expand_insv): Change movmem to cpymem.
22763 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22764 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22765 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22766 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22767 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22768 for nonexistent function.
22769 * config/vax/vax.h: Change movmem to cpymem in comment.
22770 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22771 * config/visium/visium.h: Change movmem to cpymem in comment.
22772 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22773 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22774 * doc/md.texi: Change movmem to cpymem and update description to match.
22775 * doc/rtl.texi: Change movmem to cpymem.
22776 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22777 * doc/tm.texi: Regenerate.
22779 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22781 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22782 -fvariable-expansion-in-unroller by default.
22783 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22786 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22789 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22790 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22792 * config.gcc(rs6000-*-*): Define target_gtfiles.
22794 2019-06-27 Jan Hubicka <jh@suse.cz>
22796 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22797 (add_type_duplicate): When odr hash is not allocated, to nothing.
22798 (odr_based_tbaa_p): New function.
22799 (set_type_canonical_for_odr_type): New function.
22800 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22801 set_type_canonical_for_odr_type): New.
22802 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22803 ODR based TBAA are not equivalent to non-ODR types.
22805 2019-06-27 Martin Liska <mliska@suse.cz>
22807 PR tree-optimization/90974
22808 PR rtl-optimization/90975
22809 PR rtl-optimization/90976
22811 PR tree-optimization/91017
22812 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22814 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22815 initial commit of IRA.
22816 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22818 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22819 Remove unused mode1.
22820 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22823 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22826 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22827 instead of register_operand for operands[1], add m to its constraints
22828 if operands[2] uses "C" constraint. Ensure in condition that if
22829 operands[2] is not 0, then operands[1] is not a MEM. For last two
22830 alternatives, use unaligned loads instead of aligned if operands[1] is
22831 misaligned_operand.
22833 2019-06-27 Martin Liska <mliska@suse.cz>
22835 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22837 * bt-load.c (move_btr_def): Likewise.
22838 * builtins.c (expand_builtin_apply_args_1): Likewise.
22839 (expand_builtin_apply): Likewise.
22840 * cfgexpand.c (expand_asm_stmt): Likewise.
22841 (construct_init_block): Likewise.
22842 * cfghooks.c (verify_flow_info): Likewise.
22843 * cfgloopmanip.c (remove_path): Likewise.
22844 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22845 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22846 * combine.c (simplify_if_then_else): Likewise.
22847 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22848 (choose_basereg): Likewise.
22849 (ix86_expand_prologue): Likewise.
22850 (ix86_preferred_output_reload_class): Likewise.
22851 * cselib.c (cselib_record_sets): Likewise.
22852 * df-scan.c (df_scan_alloc): Likewise.
22853 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22854 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22855 * emit-rtl.c (try_split): Likewise.
22856 * graphite-scop-detection.c (assign_parameter_index_in_region):
22858 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22859 * ira-color.c (setup_profitable_hard_regs): Likewise.
22860 * ira.c (rtx_moveable_p): Likewise.
22861 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22862 * read-rtl.c (read_subst_mapping): Likewise.
22863 * regrename.c (scan_rtx): Likewise.
22864 * reorg.c (fill_slots_from_thread): Likewise.
22865 * tree-inline.c (tree_function_versioning): Likewise.
22866 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22867 * tree-ssa-sink.c (statement_sink_location): Likewise.
22868 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22869 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22870 (vect_create_epilog_for_reduction): Likewise.
22871 * tree.c (build_nonstandard_integer_type): Likewise.
22873 2019-06-27 Richard Biener <rguenther@suse.de>
22875 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22877 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22879 PR tree-optimization/89772
22880 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22881 out-of-bound accesses checking.
22883 2019-06-27 Martin Liska <mliska@suse.cz>
22885 PR tree-optimization/91014
22886 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22887 when LHS is NULL_TREE.
22889 2019-06-27 Martin Liska <mliska@suse.cz>
22891 * symbol-summary.h (traverse): Pass
22892 argument a to the call of callback.
22893 (gt_ggc_mx): Mark arguments as unused.
22894 (gt_pch_nx): Likewise.
22896 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22899 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22902 2019-06-26 Jeff Law <law@redhat.com>
22904 PR tree-optimization/90883
22905 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22906 (delete_dead_or_redundant_assignment): Likewise.
22908 PR tree-optimization/90883
22909 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22910 * tree-ssa-dse.c: Update various comments to distinguish between
22911 dead and redundant stores.
22912 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22913 (dse_optimize_redundant_stores): New function.
22914 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22915 Distinguish between dead and redundant calls in dump output. All
22917 (delete_dead_or_redundant_assignment): Similarly for assignments.
22918 (dse_optimize_stmt): Handle _CHK variants. For statements which
22919 store 0 into multiple memory locations, try to prove a subsequent
22920 store is redundant.
22922 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22925 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22926 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22928 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22930 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
22931 (branch_islands): New extern.
22932 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
22933 * config/rs6000/rs6000.c: .. here.
22935 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
22937 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
22938 (powerpc*-*-*) ... to here.
22940 2019-06-26 Jeff Law <law@redhat.com>
22942 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
22943 memcpy, memmove and memset builtins.
22944 (maybe_trim_memstar_call): Likewise.
22946 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22948 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
22950 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22952 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22954 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22956 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
22958 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
22960 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
22963 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
22965 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
22967 2019-06-26 Richard Biener <rguenther@suse.de>
22970 * tree-inline.c (remap_ssa_name): Copy SSA range info.
22972 2019-06-26 Richard Biener <rguenther@suse.de>
22974 * lto-streamer.h (lto_bitmap_alloc): Remove.
22975 (lto_bitmap_free): Likewise.
22976 * lto-streamer.c (lto_bitmap_alloc): Remove.
22977 (lto_bitmap_free): Likewise.
22978 (lto_obstack): Likewise.
22979 (lto_obstack_initialized): Likewise.
22980 * lto-streamer-out.c (lto_output): Use own obstack for local
22981 bitmap, free it consistently.
22983 2019-06-26 Jakub Jelinek <jakub@redhat.com>
22986 * config/i386/sse.md
22987 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
22988 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
22989 insns if operands[2] is misaligned_operand.
22991 2019-06-26 Li Jia He <helijia@linux.ibm.com>
22993 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
22995 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
22998 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23000 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23002 2019-06-26 Martin Liska <mliska@suse.cz>
23004 PR tree-optimization/90973
23005 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23006 epilogue_cost_vec instead of prologue_cost_vec for
23009 2019-06-26 Martin Liska <mliska@suse.cz>
23011 * bb-reorder.c (connect_better_edge_p): Add missing else
23012 statement in the middle of if-else statements.
23014 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23015 H.J. Lu <hongjiu.lu@intel.com>
23016 Olga Makhotina <olga.makhotina@intel.com>
23018 * common/config/i386/i386-common.c
23019 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23020 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23021 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23022 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23023 (ix86_handle_option): Handle -mavx512vp2intersect.
23024 * config/i386/avx512vp2intersectintrin.h: New.
23025 * config/i386/avx512vp2intersectvlintrin.h: New.
23026 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23027 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23028 AVX512VP2INTERSECT.
23029 * config/i386/i386-builtin-types.def: Add new types.
23030 * config/i386/i386-builtin.def: Add new builtins.
23031 * config/i386/i386-builtins.c: (enum processor_features): Add
23032 F_AVX512VP2INTERSECT.
23033 (static const _isa_names_table isa_names_table): Ditto.
23034 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23035 __AVX512VP2INTERSECT__.
23036 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23037 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23038 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23039 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23040 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23041 * config/i386/i386-options.c (ix86_target_string): Add
23042 -mavx512vp2intersect.
23043 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23044 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23045 P2HImode and P2QImode.
23046 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23047 number for P2QImode and P2HImode.
23048 (ix86_regmode_natural_size): New function.
23049 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23050 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23051 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23052 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23053 * config/i386/i386.opt: Add -mavx512vp2intersect.
23054 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23055 avx512vp2intersectvlintrin.h.
23056 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23057 (define_mode_iterator VI48_AVX512VP2VL): New.
23058 (avx512vp2intersect_2intersect<mode>,
23059 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23060 * config.gcc: Add avx512vp2intersectvlintrin.h and
23061 avx512vp2intersectintrin.h to extra_headers.
23062 * doc/invoke.texi: Document -mavx512vp2intersect.
23064 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23066 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23068 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23070 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23071 savres_routine_syms, savres_routine_name, morestack_ref,
23072 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23073 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23074 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23075 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23076 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23077 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23078 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23079 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23080 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23081 get_stack_clash_protection_probe_interval,
23082 get_stack_clash_protection_guard_size,
23083 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23084 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23085 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23086 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23087 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23088 gen_frame_mem_offset, rs6000_savres_routine_name,
23089 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23090 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23091 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23092 rs6000_global_entry_point_prologue_needed_p,
23093 rs6000_get_separate_components, rs6000_components_for_bb,
23094 rs6000_disqualify_components, rs6000_emit_prologue_components,
23095 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23096 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23097 rs6000_output_savres_externs, rs6000_output_function_prologue,
23098 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23099 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23100 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23101 rs6000_output_function_epilogue, gen_add3_const,
23102 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23103 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23105 (machine_function): Moved to rs6000.h.
23106 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23108 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23109 savres_routine_syms, savres_routine_name, morestack_ref,
23110 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23111 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23112 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23113 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23114 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23115 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23116 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23117 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23118 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23119 get_stack_clash_protection_probe_interval,
23120 get_stack_clash_protection_guard_size,
23121 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23122 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23123 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23124 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23125 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23126 gen_frame_mem_offset, rs6000_savres_routine_name,
23127 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23128 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23129 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23130 rs6000_global_entry_point_prologue_needed_p,
23131 rs6000_get_separate_components, rs6000_components_for_bb,
23132 rs6000_disqualify_components, rs6000_emit_prologue_components,
23133 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23134 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23135 rs6000_output_savres_externs, rs6000_output_function_prologue,
23136 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23137 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23138 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23139 rs6000_output_function_epilogue, gen_add3_const,
23140 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23141 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23142 to here from rs6000.c.
23143 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23144 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23145 quad_address_offset_p) Moved to here from rs6000.c.
23146 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23147 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23150 2019-06-25 Martin Liska <mliska@suse.cz>
23152 * hash-table.c (hashtab_chk_error): Move here from ...
23153 * hash-table.h (hashtab_chk_error): ... here.
23155 2019-06-25 Martin Liska <mliska@suse.cz>
23157 PR tree-optimization/90978
23158 * df-scan.c (df_update_entry_block_defs): Remove dead else
23160 (df_update_exit_block_uses): Likewise.
23162 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23163 Andrew Stubbs <ams@codesourcery.com>
23165 * config.gcc (thread_file): Set to gcn for AMD GCN.
23166 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23167 (TARGET_EMUTLS_VAR_INIT): New hook.
23169 2019-06-25 Martin Jambor <mjambor@suse.cz>
23172 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23174 2019-06-25 Richard Biener <rguenther@suse.de>
23176 PR tree-optimization/90930
23177 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23178 into parallel form in the last pass instance.
23180 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23182 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23183 (arc_legitimize_pic_address): Simplify and cleanup the function.
23184 (SYMBOLIC_CONST): Remove.
23185 (prepare_pic_move): Likewise.
23186 (prepare_move_operands): Handle complex mov cases here.
23187 (arc_legitimize_address_0): Remove call to
23188 arc_legitimize_pic_address.
23189 (arc_legitimize_address): Remove call to
23190 arc_legitimize_tls_address.
23191 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23192 (movhi_insn): Likewise.
23194 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23196 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23198 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23199 format of "__intN" types for UINTMAX_TYPE.
23200 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23201 format of "__intN" types for SIZETYPE.
23202 * tree.c (build_common_tree_nodes): Accept "__intN__"
23203 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23204 * doc/invoke.texi: Document that __intN__ disables pedantic
23207 2019-06-25 Jan Hubicka <jh@suse.cz>
23209 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23210 base2_alias_set is non-zero before doing TBAA based disambiguation.
23212 2019-06-25 Martin Liska <mliska@suse.cz>
23214 PR tree-optimization/90973
23215 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23216 of prologue and epilogue.
23218 2019-06-24 Jan Hubicka <jh@suse.cz>
23220 * ipa-utils.h (type_with_linkage_p): Verify that type is
23222 (odr_type_p): Remove extra return.
23223 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23224 hash STRING_FLAG only for arrays and integers.
23225 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23226 Update analogously.
23227 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23229 * print-tree.c (print_node): Print cxx-odr-p
23231 * tree.c (need_assembler_name_p): Also check that type
23233 (verify_type_variant): Update verification of SRING_FLAG;
23234 also check CXX_ODR_P.
23235 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23236 (TYPE_STRING_FLAG): Use it.
23237 (TYPE_CXX_ODR_P): New macro.
23238 * dwarf2out.c (gen_array_type_die): First check that type
23239 is an array and then test string flag.
23241 2019-06-24 Richard Biener <rguenther@suse.de>
23243 PR tree-optimization/90972
23244 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23245 in common code, dealing with STRING_CST properly.
23247 2019-06-24 Richard Biener <rguenther@suse.de>
23249 PR tree-optimization/90930
23250 PR tree-optimization/90316
23251 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23252 decrement of limit.
23254 2019-06-24 Martin Sebor <msebor@redhat.com>
23256 * tree-pretty-print.h: Remove unnecessary punctuation characters
23258 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23260 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23262 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23263 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23264 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23266 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23268 * config/rs6000/darwin.h: Handle GCC target pragma.
23270 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23272 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23274 2019-06-22 Jeff Law <law@redhat.com>
23276 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23278 2019-06-22 Jan Hubicka <jh@suse.cz>
23280 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23281 give up on bitfields; continue searching for different refs
23284 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23286 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23287 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23288 containing the offset as possible simd lane access. Look through
23289 widening conversion. Move the
23290 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23292 2019-06-21 Richard Biener <rguenther@suse.de>
23294 PR tree-optimization/90930
23295 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23296 flag on new stmts to avoid re-processing them.
23298 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23300 PR c++/90875 - added -Wswitch-outside-range option
23301 * doc/invoke.texi (Wswitch-outside-range): Document.
23303 2019-06-21 Jeff Law <law@redhat.com>
23305 PR tree-optimization/90949
23306 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23307 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23309 2019-06-21 Richard Biener <rguenther@suse.de>
23312 * dwarf2out.c (prune_unused_types_walk): Always consider
23313 function-local extern declarations as used.
23315 2019-06-21 Richard Biener <rguenther@suse.de>
23317 PR tree-optimization/90913
23318 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23319 the scalar variant of if-conversion versioning.
23321 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23323 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23324 create another "omp scan inscan exclusive" array if
23325 !ctx->scan_inclusive.
23326 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23327 (lower_omp_scan): Likewise.
23328 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23329 2-bit bitfield for simd_lane_access_p member.
23330 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23331 aux == (void *)-4 as simd lane access.
23332 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23333 comment with permutations to show the canonical permutation order.
23334 (vectorizable_scan_store): Handle exclusive scan.
23335 (vectorizable_store): Call vectorizable_scan_store even for
23336 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23338 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23339 "omp simd array" arrays with one byte elements.
23341 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23343 * config/alpha/alpha.md (@unaligned_store<mode>):
23344 Rename from unaligned_store<mode>.
23345 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23346 * config/alpha/sync.md (@load_locked_<mode>): Rename
23347 from load_locked_<mode>.
23348 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23349 (@atomic_compare_and_swap<mode>_1): Rename
23350 from atomic_compare_and_swap<mode>_1.
23351 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23352 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23353 Use gen_reload_in_aligned and gen_unaligned_store.
23354 (emit_load_locked): Remove.
23355 (emit_store_conditional): Ditto.
23356 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23357 (alpha_split_compare_and_swap): Ditto.
23358 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23359 (alpha_split_compare_and_swap_12): Use gen_load_locked
23360 and gen_store_conditional.
23361 (alpha_split_atomic_exchange): Ditto.
23362 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23363 (alpha_split_atomic_exchange_12): Use gen_load_locked
23364 and gen_store_conditional.
23366 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23368 * config/aarch64/aarch64-errata.h: New file.
23369 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23370 (CA53_ERR_843419_SPEC): Delete.
23371 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23372 * config/aarch64/aarch64-linux.h: Likewise.
23373 * config/aarch64/aarch64-netbsd.h: Likewise.
23374 * config/aarch64/aarch64-freebsd.h: Likewise.
23376 2019-06-20 Marek Polacek <polacek@redhat.com>
23378 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23380 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23382 * config/rs6000/rs6000.md (isa attribute): Add support for
23383 for a future processor.
23385 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23388 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23389 standard scalar operation pattern for V2DF.
23390 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23391 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23392 (*ieee_<ieee_maxmin><mode>3): Likewise.
23393 (vec_setv2df_0): Likewise.
23395 2019-06-20 Jan Hubicka <jh@suse.cz>
23397 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23398 parameter; it has no use in gimple memory model.
23399 (indirect_ref_may_alias_decl_p): Update.
23401 2019-06-20 Martin Liska <mliska@suse.cz>
23403 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23406 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23408 * tree-vect-stmts.c (enum scan_store_kind): New type.
23409 (scan_store_can_perm_p): Change last argument from int * to
23410 vec<enum scan_store_kind> *, record precisely which permutations
23411 need whole vector left shift or that plus VEC_COND_EXPR.
23412 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23413 and additional VEC_COND_EXPR only for those iterations that need it.
23415 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23417 * config.gcc: Fix ARM --with-fpu checking and error message.
23419 2019-06-19 Marek Polacek <polacek@redhat.com>
23421 PR c++/60364 - noreturn after first decl not diagnosed.
23422 * attribs.c (get_attribute_namespace): No longer static.
23423 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23425 (attr_noreturn_exclusions): Make it extern.
23426 * attribs.h (get_attribute_namespace): Declare.
23427 * tree-inline.c (function_attribute_inlinable_p): Use
23428 get_attribute_name.
23430 2019-06-19 Martin Sebor <msebor@redhat.com>
23432 PR tree-optimization/90626
23433 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23435 PR tree-optimization/90626
23436 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23437 (handle_builtin_string_cmp): Call it.
23439 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23441 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23442 and DARWIN_NOPIE_SPEC.
23443 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23444 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23445 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23446 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23447 (DARWIN_EXPORT_DYNAMIC): Delete.
23448 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23449 and pie options processing to darwin.h.
23450 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23452 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23454 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23455 in computing the number of options to be moved.
23457 2019-06-19 Maya Rashish <coypu@sdf.org>
23459 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23460 (CLEAR_INSN_CACHE) Use it.
23462 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23464 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23466 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23468 PR middle-end/84521
23469 * builtins.c (expand_builtin_setjmp_setup): Save
23470 hard_frame_pointer_rtx.
23471 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23473 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23475 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23477 (remove_reg_equal_offset_note): Remove unused function.
23478 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23480 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23481 (arc_builtin_setjmp_frame_value): Remove function.
23482 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23483 (avr_builtin_setjmp_frame_value): Remove function.
23484 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23485 (ix86_builtin_setjmp_frame_value): Remove function.
23486 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23487 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23488 (sparc_builtin_setjmp_frame_value): Remove function.
23489 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23490 (vax_builtin_setjmp_frame_value): Remove function.
23491 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23492 pointer if has_nonlocal_label.
23494 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23496 * doc/md.texi: Document vec_shl_<mode> pattern.
23497 * optabs.def (vec_shl_optab): New optab.
23498 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23499 argument, if == vec_shl_optab, check for left whole vector shift
23500 pattern rather than right shift.
23501 (expand_vec_perm_const): Add vec_shl_optab support.
23502 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23504 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23505 can be handled by vec_shl_optab.
23506 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23507 (check_scan_store): Use it.
23508 (vectorizable_scan_store): If target can't do normal permutations,
23509 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23511 * config/i386/sse.md (vec_shl_<mode>): New expander.
23513 * omp-low.c (lower_rec_input_clauses): Handle references properly
23515 (lower_omp_scan): Likewise.
23517 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23519 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23520 mem_mode is BLKmode.
23522 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23525 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23526 pointer adjustment for the case of no callee-saved registers and
23527 stack frame bigger than 128 bytes.
23529 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23531 PR middle-end/90862
23532 * omp-low.c (check_omp_nesting_restrictions): Handle
23533 GF_OMP_TARGET_KIND_OACC_DECLARE.
23535 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23537 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23538 (@add<mode>3_carry): Rename from add<mode>3_carry.
23539 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23540 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23541 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23542 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23543 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23544 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23545 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23546 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23547 (cmpstrnsi): Use gen_cmp_1.
23548 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23549 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23550 (@umonitor_<mode>): Rename from umonitor_<mode>.
23551 * config/i386/i386-expand.c (ix86_expand_copysign):
23552 Use gen_copysign3_const and gen_copysign3_var.
23553 (ix86_expand_xorsign): Use gen_xorsign3_1.
23554 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23555 gen_sub3_carry_ccgz and gen_cmp1.
23556 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23557 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23558 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23559 (ix86_split_lshr): Ditto.
23560 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23562 2019-06-18 Jason Merrill <jason@redhat.com>
23564 * tree.c (build_constructor): Add MEM_STAT_DECL.
23566 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23568 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23569 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23570 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23571 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23572 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23573 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23574 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23575 Use CC_NZC instead of CC.
23576 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23577 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23578 (aarch64_print_operand): Handle E_CC_NZCmode.
23579 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23580 of gen_set_clobber_cc.
23582 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23584 * config/aarch64/aarch64-sve.md: Tabify file.
23586 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23588 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23589 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23590 * config/aarch64/aarch64-sve.md: Use it.
23592 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23594 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23595 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23596 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23597 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23598 (aarch64_expand_sve_vec_cmp_int): Use it.
23599 (aarch64_expand_sve_vec_cmp_float): Likewise.
23600 * config/aarch64/aarch64-sve.md: Likewise throughout.
23602 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23603 Kugan Vivekanandarajah <kuganv@linaro.org>
23605 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23606 (*cond_<optab><mode>_z): Fold into...
23607 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23608 operand 4 can be tied to operand 0 (either inherently or via RA).
23610 2019-06-18 Richard Biener <rguenther@suse.de>
23613 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23614 as if optimized away.
23616 2019-06-18 Tom de Vries <tdevries@suse.de>
23618 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23619 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23620 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23622 (define_insn "@set_softstack_<mode>"): ... this.
23623 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23624 (define_insn "@omp_simt_enter_<mode>"): ... this.
23625 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23626 (define_insn "@omp_simt_exit_<mode>"): ... this.
23628 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23630 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23631 vf parameter. Restore the previous iv step of nscalars_step,
23632 but give it iv_type rather than compare_type. Tweak code order
23633 to match the comments.
23634 (vect_set_loop_condition_masked): Update accordingly.
23635 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23636 for iv_precision. Tweak comment formatting.
23638 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23640 * config/darwin.c: Strip trailing whitespace.
23642 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23644 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23645 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23647 2019-06-18 Martin Jambor <mjambor@suse.cz>
23650 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23651 caller does not have flag_ipa_cp set.
23653 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23655 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23656 from "*fold_left_plus_<mode>", updated operands order.
23657 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23658 * internal-fn.c (mask_fold_left_direct): New define.
23659 (expand_mask_fold_left_optab_fn): Likewise.
23660 (direct_mask_fold_left_optab_supported_p): Likewise.
23661 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23662 * optabs.def (mask_fold_left_plus_optab): New optab.
23663 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23664 masked internal_fn for a reduction ifn.
23665 (vectorize_fold_left_reduction): Add support for masking reductions.
23667 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23669 PR middle-end/80791
23670 * target.def (predict_doloop_p): New hook.
23671 * targhooks.h (default_predict_doloop_p): New declaration.
23672 * targhooks.c (default_predict_doloop_p): New function.
23673 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23674 * doc/tm.texi: Regenerate.
23675 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23676 (TARGET_PREDICT_DOLOOP_P): New macro.
23677 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23679 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23681 * omp-low.c (struct omp_context): Add scan_inclusive field.
23682 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23684 (struct omplow_simd_context): Add lastlane member.
23685 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23686 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23688 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23689 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23690 (lower_omp_scan): New function.
23691 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23692 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23693 check 3rd argument if present rather than 2nd.
23694 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23695 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23697 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23698 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23700 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23701 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23702 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23704 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23705 IFN_GOMP_SIMD_LANE argument.
23706 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23707 encoded ->aux value.
23708 * tree-vect-stmts.c: Include attribs.h.
23709 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23710 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23712 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23713 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23715 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23718 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23719 (*nabs<mode>2_1): Ditto.
23720 (nabs sse-reg splitter): New splitter.
23721 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23723 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23725 PR bootstrap/90873.
23726 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23729 2019-06-17 Tom de Vries <tdevries@suse.de>
23731 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23732 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23733 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23735 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23737 (define_insn "omp_simt_enter_insn"): Rename to ...
23738 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23739 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23740 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23741 gen_omp_simt_enter_si.
23742 (define_expand "omp_simt_exit"): New.
23743 (define_insn "omp_simt_exit"): Rename to ...
23744 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23747 2019-06-17 Matthew Green <mrg@eterna.com.au>
23748 Maya Rashish <coypu@sdf.org>
23750 * config.gcc (aarch64*-*-netbsd*): New target.
23751 * config/aarch64/aarch64-netbsd.h: New file.
23752 * config/aarch64/t-aarch64-netbsd: Likewise.
23754 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23756 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23757 the access path from base to first VIEW_CONVERT_EXPR or
23760 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23762 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23763 access path on BIT_FIELD_REFs.
23765 2019-06-17 Martin Liska <mliska@suse.cz>
23768 * ipa-utils.h (odr_type_p): Remove dead code.
23770 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23772 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23773 alternative Solaris 11.4 format.
23774 * configure: Regenerate.
23776 2019-06-17 Tom de Vries <tdevries@suse.de>
23778 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23779 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23781 (define_insn "call_value_insn"): Rename to ...
23782 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23784 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23787 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23789 PR middle-end/64242
23790 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23791 frame clobbers and schedule block.
23792 (builtin_longjmp): Likewise.
23794 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23796 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23797 describe how to perform MSPABI compliant 64-bit shift.
23798 * config/msp430/msp430.md (ashldi3): New define_expand.
23799 (ashrdi3): New define_expand.
23800 (lshrdi3): New define_expand.
23802 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23804 * doc/sourcebuild.texi: Document new effective target keyword
23807 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23809 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23810 indirect_refs_may_alias_p): Revert accidental commits.
23812 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23813 at the end of structures.
23815 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23817 * config/darwin.c (machopic_indirect_call_target): Use renamed
23818 darwin_picsymbol_stubs to decide on output.
23819 (darwin_override_options): Handle darwin_picsymbol_stubs.
23820 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23821 (LD64_VERSION): Revise default.
23822 * config/darwin.opt: (mpic-symbol-stubs): New option.
23823 (darwin_picsymbol_stubs): New variable.
23824 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23825 rename to TARGET_MACHO_PICSYM_STUBS.
23826 * config/i386/i386.c (output_pic_addr_const): Likewise.
23827 * config/i386/i386.h Likewise.
23828 * config/rs6000/darwin.h: Likewise.
23829 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23830 darwin_picsymbol_stubs.
23832 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23834 * config/darwin.opt (prebind, noprebind, seglinkedit,
23835 noseglinkedit): Add RejectNegative.
23837 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23839 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23840 in my previous patch.
23842 2019-06-16 Tom de Vries <tdevries@suse.de>
23844 PR tree-optimization/89376
23845 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23847 2019-06-15 Maya Rashish <coypu@sdf.org>
23849 * doc/invoke.texi (Spec Files): Update location of the
23852 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23854 * doc/extend.texi (Common Function Attributes): Clarify
23855 no_sanitize. Fix grammar.
23857 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23859 * tree-ssa-alias.c (alias_stats): Add
23860 nonoverlapping_component_refs_p_may_alias,
23861 nonoverlapping_component_refs_p_no_alias,
23862 nonoverlapping_component_refs_of_decl_p_may_alias,
23863 nonoverlapping_component_refs_of_decl_p_no_alias.
23864 (dump_alias_stats): Dump them.
23865 (nonoverlapping_component_refs_of_decl_p): Add stats.
23866 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23869 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23871 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23872 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23874 (*anddi3_doubleword): Split before reload. Merge with
23875 anddi->zext pre-reload splitter.
23876 (*andndi3_doubleword): Split before reload.
23877 (*<code>di3_doubleword): Ditto.
23878 (*one_cmpldi2_doubleword): Ditto.
23880 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23882 PR middle-end/90779
23883 * gimplify.c: Include omp-offload.h and context.h.
23884 (gimplify_bind_expr): Add "omp declare target" attributes
23885 to static block scope variables inside of target region or target
23888 2019-06-15 Tom de Vries <tdevries@suse.de>
23890 PR tree-optimization/90009
23891 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23892 Return NULL if bb contains IFN_UNIQUE.
23894 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23896 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23897 (un): New define_mode_attr.
23898 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23899 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23900 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23902 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23904 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23906 * config/darwin.opt: Add RejectNegative where needed, reorder
23907 and add minimal functional descriptions.
23909 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23911 PR rtl-optimization/90765
23912 * calls.c (update_stack_alignment_for_call): New function.
23913 (expand_call): Call update_stack_alignment_for_call when
23914 outgoing parameter is passed in the stack.
23915 (emit_library_call_value_1): Likewise.
23916 * function.c (locate_and_pad_parm): Don't update
23917 stack_alignment_needed and preferred_stack_boundary.
23919 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23922 * config/i386/i386-features.c
23923 (dimode_scalar_chain::compute_convert_gain): Replace
23924 mmxsse_to_integer with sse_to_integer.
23925 * config/i386/i386.c (ix86_register_move_cost): Verify that
23926 moves between MMX and non-MMX units require secondary memory.
23927 Correct costs of moves between SSE and integer units.
23928 * config/i386/i386.h (processor_costs): Rename cost of moving
23929 SSE register to integer to sse_to_integer. Rename cost of
23931 2019-06-14 Matt Thomas <matt@3am-software.com>
23932 Matthew Green <mrg@eterna.com.au>
23933 Nick Hudson <skrll@netbsd.org>
23934 Maya Rashish <coypu@sdf.org>
23935 Richard Earnshaw <rearnsha@arm.com>
23937 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
23938 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
23939 * config/arm/netbsd-eabi.h: New file.
23940 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
23942 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
23943 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
23944 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
23945 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
23947 2019-06-14 Richard Biener <rguenther@suse.de>
23949 * tree-loop-distribution.c (classify_partition): Return
23950 whether a reduction appeared in all partitions and do not
23951 stop builtin detection because of this.
23952 (distribute_loop): Sort a non-builtin partition last if
23953 there's a reduction in all partitions and make sure the
23954 partition prevailing as last is not a builtin.
23956 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
23959 * ipa-prop.c (add_to_agg_contents_list): New function.
23960 (clobber_by_agg_contents_list_p): Likewise.
23961 (extract_mem_content): Likewise.
23962 (get_place_in_agg_contents_list): Delete.
23963 (determine_known_aggregate_parts): Renamed from
23964 determine_locally_known_aggregate_parts. New parameter
23967 2019-06-13 Martin Sebor <msebor@redhat.com>
23969 PR tree-optimization/90662
23970 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
23973 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
23976 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
23977 dbase is not TARGET_MEM_REF.
23979 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23981 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
23983 (and<mode>3): Use gen_extend_insn instead of indirect functions.
23984 Do not generate DImode extends for 32bit targets.
23985 (and->zext post-reload splitter): Use gen_extend_insn
23986 instead of indirect functions.
23987 (anddi->zext pre-reload splitter): New.
23988 (*zext<mode>_doubleword_and): Remove.
23989 (*zext<mode>_doubleword): Ditto.
23990 (*zextsi_doubleword): Dittto.
23992 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
23994 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
23995 Use gen_sub3_insn instead of indirect function.
23996 (ix86_expand_ashl_const): Use gen_add2_insn instead of
23998 (ix86_adjust_counter): Ditto.
24000 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24001 Lijia He <helijia@linux.ibm.com>
24003 PR tree-optimization/77820
24004 * tree-ssa-threadedge.c
24005 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24007 (thread_across_edge): Add call to
24008 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24010 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24012 * config/darwin-driver.c (validate_macosx_version_min): New.
24013 (darwin_default_min_version): Cleanup and validate supplied version.
24014 (darwin_driver_init): Likewise and push cleaned version into opts.
24016 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24018 PR tree-optimization/90869
24019 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24020 converts in MEM_REF referencing decl rather than view converts
24021 from decl type to MEM_REF type.
24023 2019-06-13 Richard Biener <rguenther@suse.de>
24025 PR tree-optimization/90856
24026 * tree-sra.c (build_ref_for_model): Only use
24027 build_reconstructed_reference when address-spaces are the same.
24029 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24031 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24032 wrap ei variable name in the declaration in ()s.
24033 (nvptx_single): Actually use mode_label variable. Formatting fix.
24035 2019-06-13 Richard Biener <rguenther@suse.de>
24037 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24038 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24039 also return the condition stmt.
24040 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24041 loop we can version and version that, reusing the loop version
24042 created by if-conversion instead of versioning again.
24044 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24046 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24048 * tree-vrp (value_range_base::may_contain_p): Call into
24049 value_inside_range.
24050 (value_inside_range): Make private inside value_range_base class.
24051 Take min/max from *this.
24052 (range_includes_p): Remove.
24053 * tree-vrp.h (value_range_base): Add value_inside_range.
24054 (range_includes_p): Remove.
24055 (range_includes_zero_p): Call may_contain_p.
24056 * vr-values.c (compare_range_with_value): Same.
24058 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24060 * doc/extend.texi (ARC Function Attributes): Update info.
24062 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24064 PR tree-optimization/89713
24065 * doc/invoke.texi (-ffinite-loops): Document new option.
24066 * common.opt (-ffinite-loops): New option.
24067 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24068 IFN_GOACC_LOOP calls as necessary.
24069 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24071 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24072 IFN_GOACC_LOOP call is not used.
24073 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24075 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24078 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24079 compare_type is not with Pmode size, we will create an IV with
24080 Pmode size with truncated use (i.e. converted to the correct type).
24081 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24082 (vect_iv_limit_for_full_masking): New. Factored out of
24083 vect_set_loop_condition_masked.
24084 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24085 (vect_iv_limit_for_full_masking): Declare.
24087 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24090 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24091 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24092 (get_alias_ptr_type_for_ptr_address): Likewise.
24093 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24094 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24095 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24098 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24100 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24102 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24104 * common/config/pru/pru-common.c: New file.
24105 * config.gcc: Add PRU target.
24106 * config/pru/alu-zext.md: New file.
24107 * config/pru/constraints.md: New file.
24108 * config/pru/predicates.md: New file.
24109 * config/pru/pru-opts.h: New file.
24110 * config/pru/pru-passes.c: New file.
24111 * config/pru/pru-pragma.c: New file.
24112 * config/pru/pru-protos.h: New file.
24113 * config/pru/pru.c: New file.
24114 * config/pru/pru.h: New file.
24115 * config/pru/pru.md: New file.
24116 * config/pru/pru.opt: New file.
24117 * config/pru/t-pru: New file.
24118 * doc/extend.texi: Document PRU pragmas.
24119 * doc/invoke.texi: Document PRU-specific options.
24120 * doc/md.texi: Document PRU asm constraints.
24122 2019-06-12 Martin Sebor <msebor@redhat.com>
24124 PR middle-end/90676
24125 * tree-pretty-print.c (dump_mem_ref): New function. Include
24126 MEM_REF type in output when different size than operand.
24127 (dump_generic_node): Move code to dump_mem_ref and call it.
24129 2019-06-12 Martin Sebor <msebor@redhat.com>
24131 PR tree-optimization/90662
24132 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24135 2019-06-12 Tom de Vries <tdevries@suse.de>
24137 PR tree-optimization/90009
24138 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24140 2019-06-12 Martin Liska <mliska@suse.cz>
24142 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24144 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24145 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24146 Do not sanitize created maps.
24148 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24150 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24151 value_range::singleton_p.
24152 * tree-vrp.c (value_range_constant_singleton): Remove.
24153 * tree-vrp.h (value_range_constant_singleton): Remove.
24154 * vr-values.c (vr_values::singleton): Use
24155 value_range::singleton_p.
24157 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24160 * cfgexpand.c (align_local_variable): Add really_expand argument,
24161 don't SET_DECL_ALIGN if it is false.
24162 (add_stack_var): Add really_expand argument, pass it through to
24163 align_local_variable.
24164 (expand_one_stack_var_1): Pass true as really_expand to
24165 align_local_variable.
24166 (expand_one_ssa_partition): Pass true as really_expand to
24168 (expand_one_var): Pass really_expand through to add_stack_var.
24170 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24172 * config/arm/iterators.md (VABAL): New int iterator.
24173 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24174 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24175 UNSPEC_VABAL_U values.
24177 2019-06-12 Martin Liska <mliska@suse.cz>
24179 * value-prof.c (stream_out_histogram_value): Only first value
24182 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24185 * symtab.c (symtab_node::set_section): Allow being called on aliases
24186 as long as they aren't analyzed yet.
24188 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24190 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24191 to `mips_set_text_contents_type' to indicate whether a
24192 non-debug insn follows.
24194 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24196 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24197 enabling -mpcrel by default.
24198 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24199 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24200 that the test against -mcpu=future is done first. Then test if
24201 -mprefixed-addr is on for -mpcrel.
24202 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24204 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24207 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24208 instead of and.u%d.
24210 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24212 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24214 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24216 PR c++/90449 - add -Winaccessible-base option.
24217 * doc/invoke.texi (Winaccessible-base): Document.
24219 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24221 PR tree-optimization/62041
24222 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24224 2019-06-11 Jason Merrill <jason@redhat.com>
24226 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24227 * tree.c (get_tree_code_name): Likewise.
24228 * print-tree.c (print_node): Only briefly print a node with an
24231 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24234 * trans-mem.c (tm_memopt_compute_available): Add assertion
24235 that blocks is not empty. Formatting fix.
24237 2019-06-11 Martin Liska <mliska@suse.cz>
24240 * hash-table.h: Extend create_gcc, add one parameter
24241 that is passed into hash_table::hash_table.
24243 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24245 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24247 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24248 Emit clobber also for non-sse operations.
24249 (ix86_split_fp_absneg_operator): New function.
24250 * config/i386/i386.md (SSEMODEF): New mode iterator.
24251 (ssevecmodef): New mode attribute.
24252 (<code>tf2): Use absneg code iterator.
24253 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24254 Add three-operand AVX alternatives.
24255 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24256 Use absneg code iterator and X87MODEF mode iterator.
24257 (absneg fp_reg non-sse splitter): Call absneg code iterator
24258 and X87MODEF mode iterator.
24259 (absneg general_reg non-sse splitter): Use absneg code iterator
24260 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24261 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24262 code iterator. Add three-operand AVX alternative.
24263 (absneg sse_reg splitter): Use absneg code iterator
24264 and SSEMODEF mode iterator. Handle AVX operands.
24265 (absneg fp_reg splitter): Use absneg code iterator
24266 and MODEF mode iterator.
24267 (absneg general_reg splitter): Merge splitters using MODEF mode
24268 iterator. Use absneg code iterator. Call
24269 ix86_split_fp_absneg_operator.
24270 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24271 Do not enable for non-sse modes before reload.
24272 (CSGNMODE): Remove.
24273 (CSGNVMODE): Ditto.
24274 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24275 ssevecmodef mode attribute instaed of CSGNVMODE.
24276 (copysign<mode>3_const): Ditto.
24277 (copysign<mode>3_var): Ditto.
24278 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24279 Use absneg code iterator. Simplify code using std::swap.
24280 * config/i386/predicates.md (absneg_operator): Remove.
24282 2019-06-10 Martin Sebor <msebor@redhat.com>
24284 * gimple-fold.c (get_range_strlen): Update comment that didn't
24285 make it into r267503 or related commits.
24287 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24289 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24290 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24292 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24294 * tree.def (OMP_SCAN): New tree code.
24295 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24296 OMP_CLAUSE_EXCLUSIVE.
24297 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24298 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24299 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24300 OMP_CLAUSE_{IN,EX}CLUSIVE.
24301 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24302 * tree-nested.c (convert_nonlocal_reference_stmt,
24303 convert_local_reference_stmt, convert_gimple_call): Handle
24305 * tree-pretty-print.c (dump_omp_clause): Handle
24306 OMP_CLAUSE_{IN,EX}CLUSIVE.
24307 (dump_generic_node): Handle OMP_SCAN.
24308 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24309 * gimple.h (gomp_scan): New type.
24310 (is_a_helper <gomp_scan *>::test,
24311 is_a_helper <const gomp_scan *>::test): New templates.
24312 (gimple_build_omp_scan): Declare.
24313 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24314 gimple_omp_scan_set_clauses): New inline functions.
24315 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24316 * gimple.c (gimple_build_omp_scan): New function.
24317 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24318 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24319 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24320 GIMPLE_OMP_TASKGROUP.
24321 (dump_gimple_omp_scan): New function.
24322 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24323 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24324 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24325 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24326 (is_gimple_stmt): Handle OMP_SCAN.
24327 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24328 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24329 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24330 mentioned in nested #pragma omp scan. Handle
24331 OMP_CLAUSE_{IN,EX}CLUSIVE.
24332 (gimplify_expr): Handle OMP_SCAN.
24333 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24334 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24336 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24339 2019-06-10 Martin Liska <mliska@suse.cz>
24341 * ipa-cp.c (ignore_edge_p): New function.
24342 (build_toporder_info): Use it.
24343 * ipa-inline.c (ignore_edge_p): New function.
24344 (inline_small_functions): Use it.
24345 * ipa-pure-const.c (ignore_edge_for_nothrow):
24346 Verify opt_for_fn for caller and callee.
24347 (ignore_edge_for_pure_const): Likewise.
24348 * ipa-reference.c (ignore_edge_p): Extend to check
24350 * ipa-utils.c (searchc): Refactor.
24351 * ipa-utils.h: Fix coding style.
24353 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24355 * config/arc/arc.c (arc_rtx_costs): Update costs.
24357 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24359 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24360 (arc_split_ior): Likewise.
24361 (arc_check_mov_const): Likewise.
24362 (arc_split_mov_const): Likewise.
24363 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24364 (arc_rtx_costs): Replace check Crr with Cax constraint.
24365 (prepare_move_operands): Cleanup, remove unused code.
24366 (arc_split_ior): New function.
24367 (arc_check_ior_const): Likewise.
24368 (arc_split_mov_const): Likewise.
24369 (arc_check_mov_const): Likewise.
24370 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24371 in define_insn_and_split pattern.
24372 (iorsi3): Likewise.
24373 (mulsi3_v2): Add new matching variant.
24374 (andsi3_i): Cleanup pattern.
24375 (rotrsi3_cnt1): Update pattern.
24376 (rotrsi3_cnt8): New pattern.
24377 (ashlsi2_cnt8): Likewise.
24378 (ashlsi2_cnt16): Likewise.
24379 * config/arc/constraints.md (C0p): Update constraint.
24381 (C0x): New pattern.
24382 (Cax): New pattern.
24384 2019-06-10 Martin Liska <mliska@suse.cz>
24386 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24387 Update coding style.
24388 (sem_item_optimizer::dump_cong_classes):
24389 Print how many items are in a non-singular class. Improve
24392 2019-06-10 Martin Liska <mliska@suse.cz>
24394 * value-prof.c (dump_histogram_value): Change dump format.
24395 (gimple_mod_subtract_transform): Remove legacy comment.
24397 2019-06-10 Martin Liska <mliska@suse.cz>
24399 * value-prof.c (dump_histogram_value): Print histogram values
24402 2019-06-10 Martin Liska <mliska@suse.cz>
24404 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24405 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24406 * ipa-profile.c (ipa_profile_generate_summary):
24407 Use get_most_common_single_value.
24408 * tree-profile.c (gimple_init_gcov_profiler):
24409 Instrument with __gcov_one_value_profiler_v2
24410 and __gcov_indirect_call_profiler_v4.
24411 * value-prof.c (dump_histogram_value):
24412 Print all values for HIST_TYPE_SINGLE_VALUE.
24413 (stream_out_histogram_value): Update assert for
24415 (stream_in_histogram_value): Set number of
24416 counters for HIST_TYPE_SINGLE_VALUE.
24417 (get_most_common_single_value): New.
24418 (gimple_divmod_fixed_value_transform):
24419 Use get_most_common_single_value.
24420 (gimple_ic_transform): Likewise.
24421 (gimple_stringops_transform): Likewise.
24422 (gimple_find_values_to_profile): Set number
24423 of counters for HIST_TYPE_SINGLE_VALUE.
24424 * value-prof.h (get_most_common_single_value): New.
24426 2019-06-10 Martin Liska <mliska@suse.cz>
24428 * hash-map.h: Pass default value to hash_table ctor.
24429 * hash-table.h: Add default value to call of a ctor.
24431 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24433 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24434 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24436 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24439 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24440 Call pa_output_function_label.
24441 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24442 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24443 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24445 (pa_linux_output_function_prologue): Declare.
24446 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24447 (pa_output_function_label): New.
24448 (pa_output_function_prologue): Revise to use pa_output_function_label.
24449 (pa_linux_output_function_prologue): New.
24450 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24452 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24454 * tree-vrp.h (value_range_base::intersect): New.
24455 (value_range::intersect_helper): Move from here...
24456 (value_range_base::intersect_helper): ...to here.
24457 * tree-vrp.c (value_range::intersect_helper): Rename to...
24458 (value_range_base::intersect_helper): ...this, and rewrite to
24459 return a value instead of modifying THIS in place.
24460 Also, move equivalence handling...
24461 (value_range::intersect): ...here, while calling intersect_helper.
24462 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24464 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24466 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24468 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24470 * Makefile.in (genprogerr): Add condmd.
24471 (genprog): Remove it here.
24473 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24475 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24477 2019-06-07 Richard Biener <rguenther@suse.de>
24480 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24481 that appear after user labels.
24483 2019-06-07 Martin Liska <mliska@suse.cz>
24485 * cselib.c (cselib_init): Disable hash table
24487 * hash-set.h: Pass new default argument to m_table.
24488 * hash-table.c: Add global variable with hash table
24489 sanitization limit.
24490 * hash-table.h (Allocator>::hash_table): Add new argument
24492 (hashtab_chk_error): New.
24493 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24494 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24495 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24497 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24499 * common.opt (flto-odr-type-merging): Ignore.
24500 * invoke.texi (-flto-odr-type-merging): Remove.
24501 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24502 (can_be_vtable_hashed_p): Remove.
24503 (hash_odr_vtable): Remove.
24504 (odr_vtable_hasher::hash): Remove.
24505 (types_same_for_odr): Remove.
24506 (types_odr_comparable): Remove.
24507 (odr_vtable_hasher::equal): Remove.
24508 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24509 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24510 (get_odr_type): Do not use vtable hash.
24511 (dump_odr_type): Remove commented out code.
24512 (build_type_inheritance_graph): Do not allocate vtable hash.
24513 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24514 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24515 (odr_type_p): Likewise.
24516 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24519 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24521 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24522 immediately after same_types_for_tbaa_p returns -1 and continue
24523 looking for possible exact match; if matching types are arrays
24524 watch for partial overlaps.
24525 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24526 (indirect_refs_may_alias_p): Do type based disambiguation first;
24529 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24531 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24533 2019-06-07 Martin Liska <mliska@suse.cz>
24535 * doc/invoke.texi: Remove param.
24536 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24538 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24539 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24540 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24541 * profile.c (instrument_values): Remove
24542 HIST_TYPE_INDIR_CALL_TOPN.
24543 * tree-profile.c (init_ic_make_global_vars):
24544 Always build __gcov_indirect_call only.
24545 (gimple_init_gcov_profiler): Remove usage
24546 of PARAM_INDIR_CALL_TOPN_PROFILE.
24547 (gimple_gen_ic_profiler): Likewise.
24548 * value-prof.c (dump_histogram_value): Likewise.
24549 (stream_in_histogram_value): Likewise.
24550 (gimple_indirect_call_to_profile): Likewise.
24551 (gimple_find_values_to_profile): Likewise.
24552 * value-prof.h (enum hist_type): Likewise.
24554 2019-06-07 Martin Liska <mliska@suse.cz>
24556 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24559 2019-06-07 Martin Liska <mliska@suse.cz>
24561 PR tree-optimization/78902
24562 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24563 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24564 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24565 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24566 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24567 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24568 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24569 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24570 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24571 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24572 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24573 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24574 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24576 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24577 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24578 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24579 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24580 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24581 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24582 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24583 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24584 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24585 warn_unused_result attribute.
24586 (BUILT_IN_STRDUP): Likewise.
24587 (BUILT_IN_STRNDUP): Likewise.
24588 (BUILT_IN_ALLOCA): Likewise.
24589 (BUILT_IN_CALLOC): Likewise.
24590 (BUILT_IN_MALLOC): Likewise.
24591 (BUILT_IN_REALLOC): Likewise.
24593 2019-06-06 Jim Wilson <jimw@sifive.com>
24596 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24597 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24598 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24600 2019-06-06 Martin Sebor <msebor@redhat.com>
24602 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24603 (handle_builtin_malloc): Remove trailing spaces.
24604 (handle_builtin_memset): Same.
24605 (handle_builtin_memcmp): Same.
24606 (compute_string_length): Same.
24607 (determine_min_objsize): Same.
24608 (handle_builtin_string_cmp): Same.
24609 (handle_char_store): Same. Break up excessively long line.
24611 2019-06-06 Martin Jambor <mjambor@suse.cz>
24613 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24616 2019-06-06 Martin Jambor <mjambor@suse.cz>
24618 * tree-sra.c (struct access): New field grp_same_access_path.
24619 (dump_access): Dump it.
24620 (build_reconstructed_reference): New function.
24621 (build_ref_for_model): Use it if possible.
24622 (path_comparable_for_same_access): New function.
24623 (same_access_path_p): Likewise.
24624 (sort_and_splice_var_accesses): Set the new flag.
24625 (analyze_access_subtree): Likewise.
24626 (propagate_subaccesses_across_link): Propagate zero value of the new
24627 flag down the access tree.
24629 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24631 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24632 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24633 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24634 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24637 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24639 PR tree-optimization/90332
24640 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24641 Handle VALS containing two vectors.
24642 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24644 (@aarch64_combinez<mode>): ... This.
24645 (*aarch64_combinez_be<mode>): Rename to...
24646 (@aarch64_combinez_be<mode>): ... This.
24647 (vec_init<mode><Vhalf>): New define_expand.
24648 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24650 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24652 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24653 library functions only when not optimizing for size.
24654 (ashlsi3): Likewise.
24655 (ashrhi3): Likewise.
24656 (ashrsi3): Likewise.
24657 (lshrhi3): Likewise.
24658 (lshrsi3): Likewise.
24660 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24662 PR rtl-optimization/88751
24663 * ira.c (ira): Use the number of the actually referenced registers
24664 when calculating the threshold.
24666 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24668 * configure: Regenerate.
24670 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24672 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24673 register if it is in memory, so the shift can be emulated with a rotate
24675 (ashrhi3): Likewise.
24676 (lshrhi3): Likewise.
24678 2019-06-06 Martin Liska <mliska@suse.cz>
24680 PR tree-optimization/87954
24681 * match.pd: Simplify mult where both arguments are 0 or 1.
24683 2019-06-06 Richard Biener <rguenther@suse.de>
24685 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24686 put equivalences on UNDEFINED ranges.
24687 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24688 Make sure to drop defs of stmts added during simplification
24691 2019-06-06 Richard Biener <rguenther@suse.de>
24693 * tree-ssa-structalias.c: Include tree-cfg.h.
24694 (make_heapvar): Do not make heap vars artificial.
24695 (find_func_aliases_for_builtin_call): Handle stack allocation
24697 (find_func_aliases): Delay processing of simple enough returns
24699 (set_uids_in_ptset): Adjust.
24700 (find_what_var_points_to): Likewise.
24701 (solve_constraints): Do not dump points-to sets here.
24702 (compute_points_to_sets): Post-process return statements,
24703 amending the escaped solution. Dump points-to sets afterwards.
24704 (ipa_pta_execute): Dump points-to sets.
24706 2019-06-06 Martin Liska <mliska@suse.cz>
24709 * doc/install.texi: Fix HTML headers and
24710 titles for 'Installing GCC' pages.
24712 2019-06-06 Martin Liska <mliska@suse.cz>
24714 * ipa-icf-gimple.h (dump_message_1): Remove.
24715 (dump_message): Likewise.
24716 (return_false_with_message_1): Print also file.
24717 (return_false_with_msg): Likewise.
24718 (return_with_result): Likewise.
24719 (return_with_debug): Likewise.
24720 * ipa-icf.c (sem_function::equals_private): Remove call
24723 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24725 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24726 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24727 memory operand for it.
24728 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24730 2019-06-05 Martin Sebor <msebor@redhat.com>
24732 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24733 Adjust quoting and hyphenation.
24734 * convert.c (convert_to_real_1): Same.
24735 * gcc.c (driver_wrong_lang_callback): Same.
24736 (driver::handle_unrecognized_options): Same.
24737 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24738 * opts-common.c (cmdline_handle_error): Same.
24739 (read_cmdline_option): Same.
24740 * opts-global.c (complain_wrong_lang): Same.
24741 (print_ignored_options): Same.
24742 (handle_common_deferred_options): Same.
24743 * pretty-print.h: Same.
24744 * print-rtl.c (debug_bb_n_slim): Same.
24745 * sched-rgn.c (make_pass_sched_fusion): Same.
24746 * tree-cfg.c (verify_gimple_assign_unary): Same.
24747 (verify_gimple_label): Same.
24748 * tree-ssa-operands.c (verify_ssa_operands): Same.
24749 * varasm.c (do_assemble_alias): Same.
24750 (assemble_alias): Same.
24752 2019-06-05 Richard Henderson <rth@twiddle.net>
24754 * config/alpha/alpha.c (direct_return): Move down after
24755 struct machine_function definition; use saved frame_size;
24757 (struct machine_function): Add sa_mask, sa_size, frame_size.
24758 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24759 (alpha_compute_frame_layout): ... new function.
24760 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24761 (alpha_initial_elimination_offset): Use saved sa_size.
24762 (alpha_vms_initial_elimination_offset): Likewise.
24763 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24764 (alpha_expand_prologue): Use saved frame data. Merge integer
24765 and fp register save loops.
24766 (alpha_expand_epilogue): Likewise.
24767 (alpha_start_function): Use saved frame data.
24768 * config/alpha/alpha-protos.h (direct_return): Update.
24769 (alpha_sa_size): Remove.
24771 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24773 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24774 multiplication by a power-of-two value.
24775 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24776 and turn the modulo operation into a masking operation.
24778 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24781 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24782 with VOIDmode inner operands.
24784 2019-06-05 Richard Biener <rguenther@suse.de>
24786 PR middle-end/90726
24787 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24788 turn an expression graph into a tree.
24790 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24792 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24794 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24795 treat it like explicit monotonic schedule modifier.
24796 (expand_omp_for): Initialize has_lastprivate_conditional.
24797 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24800 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24801 references, lookup in in hash map MEM_REF operand instead of the
24803 (lower_omp_1): When looking for lastprivate conditional assignments,
24804 handle MEM_REFs with REFERENCE_TYPE operands.
24806 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24807 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24808 and references a VLA. Handle references to non-VLAs if is_simd
24809 all privatization clauses like reductions.
24810 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24811 If omp_is_reference, use always omp simd arrays and set
24812 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24813 fails, emit reference initialization.
24815 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24818 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24819 _mm_mask_fpclass_sd_mask): New intrinsics.
24820 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24821 * config/i386/i386-builtin.def
24822 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24824 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24825 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24826 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24827 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24828 case QI_FTYPE_V2SF_INT): Ditto.
24829 * config/i386/sse.md
24830 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24831 Extended to insnstructions with mask operands.
24833 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24835 * config/rs6000/constraints.md (define_register_constraint "wp"):
24837 (define_register_constraint "wq"): Delete.
24838 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24839 (rs6000_init_hard_regno_mode_ok): Adjust.
24840 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24841 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24842 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24843 (define_mode_attr VSa): Delete.
24844 (define_mode_attr VSisa): New.
24845 (rest of file): Adjust.
24846 * doc/md.texi (Machine Constraints): Adjust.
24848 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24850 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24851 (define_attr "enabled"): Handle those new isa values.
24853 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24855 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24856 (define_mode_attr VSr5): Delete.
24857 (define_mode_attr VStype_sqrt): Delete.
24858 (define_mode_iterator VSX_SPDP): Delete.
24859 (define_mode_attr VS_spdp_res): Delete.
24860 (define_mode_attr VS_spdp_insn): Delete.
24861 (define_mode_attr VS_spdp_type): Delete.
24862 (*vsx_sqrt<mode>2): Adjust.
24863 (vsx_<VS_spdp_insn>): Delete, split to...
24864 (vsx_xscvdpsp): ... this. New. And...
24865 (vsx_xvcvspdp): ... this. New. And...
24866 (vsx_xvcvdpsp): ... this. New.
24868 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24870 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24872 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24873 (rest of file): Adjust.
24875 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24877 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24878 (vsx_extract_<mode>_var): Ditto.
24880 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24882 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24885 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24887 * config/rs6000/constraints.md (define_register_constraint "ww"):
24889 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24890 (rs6000_init_hard_regno_mode_ok): Adjust.
24891 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24892 RS6000_CONSTRAINT_ww.
24893 * config/rs6000/rs6000.md: Adjust.
24894 * config/rs6000/vsx.md: Adjust.
24895 * doc/md.texi (Machine Constraints): Adjust.
24897 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24899 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24900 (define_mode_attr sd): New.
24901 (define_mode_attr s): New.
24902 (define_mode_attr Ftrad): Delete.
24903 (define_mode_attr Fvsx): Delete.
24904 (define_mode_attr Fs): Delete.
24905 (rest of file): Use the new mode attributes.
24906 * config.rs6000/vsx.md: Use the new mode attributes.
24908 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24910 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24913 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24915 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24916 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24917 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24919 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24922 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24923 C++ with strict ANSI requirements.
24925 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24927 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24928 computations when step is 1.
24930 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24932 * config/rs6000/constraints.md (define_register_constraint "wf"):
24934 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24935 (rs6000_init_hard_regno_mode_ok): Adjust.
24936 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24937 RS6000_CONSTRAINT_wf.
24938 * config/rs6000/rs6000.md: Adjust.
24939 * config/rs6000/vsx.md: Adjust.
24940 * doc/md.texi (Machine Constraints): Adjust.
24942 2019-06-04 Andrew Pinski <apinski@marvell.com>
24944 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
24947 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24949 * config/rs6000/constraints.md (define_register_constraint "wd"):
24951 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24952 (rs6000_init_hard_regno_mode_ok): Adjust.
24953 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24954 RS6000_CONSTRAINT_wd.
24955 * config/rs6000/rs6000.md: Adjust.
24956 * config/rs6000/vsx.md: Adjust.
24957 * doc/md.texi (Machine Constraints): Adjust.
24959 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24961 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
24962 (rest of file): Adjust.
24964 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24966 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
24967 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
24968 (vsx_splat_<mode>_reg): Adjust.
24970 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24972 * config/rs6000/constraints.md (define_register_constraint "ws"):
24974 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24975 (rs6000_init_hard_regno_mode_ok): Adjust.
24976 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24977 RS6000_CONSTRAINT_ws.
24978 * config/rs6000/rs6000.md: Adjust.
24979 * config/rs6000/vsx.md: Adjust.
24980 * doc/md.texi (Machine Constraints): Adjust.
24982 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24984 * config/rs6000/constraints.md (define_register_constraint "wv"):
24986 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24987 (rs6000_init_hard_regno_mode_ok): Adjust.
24988 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24989 RS6000_CONSTRAINT_wv.
24990 * config/rs6000/rs6000.md: Adjust.
24991 * config/rs6000/vsx.md: Adjust.
24992 * doc/md.texi (Machine Constraints): Adjust.
24994 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24996 * config/rs6000/constraints.md (define_register_constraint "wi"):
24998 (define_register_constraint "wt"): Delete.
24999 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25000 (rs6000_init_hard_regno_mode_ok): Adjust.
25001 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25002 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25003 * config/rs6000/rs6000.md: Adjust.
25004 * config/rs6000/vsx.md: Adjust.
25005 * doc/md.texi (Machine Constraints): Adjust.
25007 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25009 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25011 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25012 default_elf_asm_output_external.
25014 2019-06-04 Martin Liska <mliska@suse.cz>
25016 * ipa-icf.c (INCLUDE_LIST): Remove.
25017 (sem_item_optimizer::execute): Remove call to init_wpa.
25018 * ipa-icf.h (init_wpa): Remove.
25020 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25022 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25023 conditional on combined for simd.
25024 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25026 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25027 constructs, don't remove lastprivate_conditional_map, but instead set
25028 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25029 to parent construct temporaries.
25030 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25031 like !ctx->lastprivate_conditional_map.
25032 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25033 use up->outer context instead of up.
25034 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25035 gimple_omp_for_combined_p.
25036 (expand_omp_for_static_nochunk): Likewise.
25037 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25038 probably moved over into expand_omp_for_generic rather than being copied
25041 2019-06-04 Martin Liska <mliska@suse.cz>
25043 * value-prof.c (dump_histogram_value): Fix typo.
25044 (gimple_mod_subtract_transform): Likewise.
25046 2019-06-04 Richard Biener <rguenther@suse.de>
25048 PR middle-end/90726
25049 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25050 (tree_contains_chrecs): Likewise.
25051 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25052 exponential behaivor from ...
25053 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25055 (expression_expensive_p): Avoid exponential behavior and compute
25056 expanded size, rejecting any expansion.
25057 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25058 (idx_contains_abnormal_ssa_name_p): Likewise.
25059 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25060 (contains_abnormal_ssa_name_p): Simplify and use
25061 walk_tree_without_duplicates.
25063 2019-06-04 Richard Biener <rguenther@suse.de>
25065 PR tree-optimization/90738
25067 2019-06-03 Richard Biener <rguenther@suse.de>
25069 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25070 full reference tree and record in ref->ref.
25071 (vn_reference_lookup_3): Pass in original ref to
25072 ao_ref_init_from_vn_reference.
25073 (vn_reference_lookup): Likewise.
25074 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25075 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25076 Handle non-decl bases in the original reference.
25078 2019-06-04 Martin Liska <mliska@suse.cz>
25080 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25081 number of references.
25082 (sem_item_optimizer::do_congruence_step):
25083 (sem_item_optimizer::worklist_push): Dump how references
25085 (sem_item_optimizer::worklist_pop): Use heap.
25086 (sem_item_optimizer::process_cong_reduction): Likewise.
25087 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25089 2019-06-04 Martin Liska <mliska@suse.cz>
25091 * ipa-icf.h (struct sem_usage_pair_hash): New.
25092 (sem_usage_pair_hash::hash): Likewise.
25093 (sem_usage_pair_hash::equal): Likewise.
25094 (struct sem_usage_hash): Likewise.
25095 * ipa-icf.c (sem_item::sem_item): Initialize
25096 referenced_by_count.
25097 (sem_item::add_reference): Register a reference
25098 in ref_map and not in target->usages.
25099 (sem_item::setup): Remove initialization of
25101 (sem_item::~sem_item): Remove usage of dead vectors.
25102 (sem_item::dump): Remove dump of references.
25103 (sem_item_optimizer::sem_item_optimizer): Initialize
25105 (sem_item_optimizer::read_section): Remove useless
25107 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25108 (sem_item_optimizer::build_graph): Pass m_references
25109 to ::add_reference.
25110 (sem_item_optimizer::verify_classes): Remove usage of dead
25112 (sem_item_optimizer::traverse_congruence_split): Return true
25113 when a class is split.
25114 (sem_item_optimizer::do_congruence_step_for_index): Use
25115 hash_map for look up of (sem_item *, index). That brings
25116 significant speed up.
25117 (sem_item_optimizer::do_congruence_step): Return true
25118 when a split is done.
25119 (congruence_class::is_class_used): Use referenced_by_count.
25121 2019-06-04 Alan Modra <amodra@gmail.com>
25124 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25127 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25129 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25130 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25131 (rs6000_secondary_reload_simple_move): Adjust.
25132 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25133 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25134 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25137 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25138 (floatunssi<mode>2_lfiwzx): Adjust.
25139 (fix_trunc<mode>si2_stfiwx): Adjust.
25140 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25141 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25142 (mfpgpr): Mark as deprecated.
25143 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25144 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25145 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25147 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25149 * config/rs6000/constraints.md (define_register_constraint "wg"):
25151 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25152 RS6000_CONSTRAINT_wg.
25153 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25154 (rs6000_init_hard_regno_mode_ok): Adjust.
25155 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25156 Delete "wg" alternatives.
25157 * doc/md.texi (Machine Constraints): Adjust.
25159 2019-06-03 Alan Modra <amodra@gmail.com>
25161 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25162 (get_uncond_jump_length): Assert length less than INT_MAX and
25165 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25167 PR middle-end/64242
25168 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25170 (expand_builtin_nonlocal_goto): Likewise.
25172 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25174 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25175 (aarch64_asm_output_external): Declare.
25176 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25177 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25178 (aarch64_asm_output_alias): New.
25179 (aarch64_asm_output_external): New.
25180 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25181 (ASM_OUTPUT_EXTERNAL): Define.
25183 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25184 * tree-vrp.h (value_range_base::nonzero_p): New.
25185 (value_range_base::set_nonnull): Rename to...
25186 (value_range_base::set_nonzero): ...this.
25187 (value_range_base::set_null): Rename to...
25188 (value_range_base::set_zero): ...this.
25189 (value_range::set_nonnull): Remove.
25190 (value_range::set_null): Remove.
25191 * tree-vrp.c (range_is_null): Remove.
25192 (range_is_nonnull): Remove.
25193 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25194 instead of range_is_*null.
25195 (extract_range_from_unary_expr): Same.
25196 (value_range_base::set_nonnull): Rename to...
25197 (value_range_base::set_nonzero): ...this.
25198 (value_range::set_nonnull): Remove.
25199 (value_range_base::set_null): Rename to...
25200 (value_range_base::set_zero): ...this.
25201 (value_range::set_null): Remove.
25202 (extract_range_from_binary_expr): Rename set_*null uses to
25204 (extract_range_from_unary_expr): Same.
25205 (union_helper): Same.
25206 * vr-values.c (get_value_range): Use set_*zero instead of
25208 (vr_values::extract_range_from_binary_expr): Same.
25209 (vr_values::extract_range_basic): Same.
25211 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25214 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25216 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25218 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25219 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25221 (aarch64_<su>abd<mode>_3): ... This.
25222 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25224 2019-06-03 Richard Biener <rguenther@suse.de>
25226 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25227 full reference tree and record in ref->ref.
25228 (vn_reference_lookup_3): Pass in original ref to
25229 ao_ref_init_from_vn_reference.
25230 (vn_reference_lookup): Likewise.
25231 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25232 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25233 Handle non-decl bases in the original reference.
25235 2019-06-03 Martin Liska <mliska@suse.cz>
25237 * doc/generic.texi: Remove Java Trees.
25239 2019-06-03 Martin Liska <mliska@suse.cz>
25241 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25242 returns 0 when operands are equal.
25244 2019-06-03 Richard Biener <rguenther@suse.de>
25246 PR tree-optimization/90716
25247 * tree-loop-distribution.c (destroy_loop): Process blocks in
25250 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25253 * vector-builder.h (vector_builder::count_dups): New method.
25254 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25256 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25257 (vec_init<mode><Vel>): New pattern.
25258 * config/aarch64/aarch64.c (emit_insr): New function.
25259 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25260 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25261 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25262 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25264 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25266 PR tree-optimization/90681
25267 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25268 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25269 special case for SLP, but fail on non-groupped loads.
25271 2019-06-03 Martin Liska <mliska@suse.cz>
25273 * cfg.c (debug): Use TDF_DETAILS for debug and
25274 print edge info only once.
25276 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25279 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25281 2019-06-01 Martin Sebor <msebor@redhat.com>
25283 PR middle-end/90694
25284 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25286 2019-05-31 Jan Hubicka <jh@suse.cz>
25288 * alias.c: Include ipa-utils.h.
25289 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25290 * ipa-devirt.c (prevailing_odr_type): New.
25291 * ipa-utils.h (previaling_odr_type): Declare.
25293 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25294 Hongtao Liu <hongtao.liu@intel.com>
25297 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25298 NOTE_INSN_DELETED_LABEL check.
25300 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25301 Robert Suchanek <robert.suchanek@mips.com>
25303 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25304 and 3rd operands of the fmadd/fmsub/maddv builtin.
25306 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25308 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25309 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25310 on OMP_SIMD if not nested inside of worksharing loop that also has
25311 lastprivate conditional clause for the same decl.
25312 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25313 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25315 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25317 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25319 (lower_lastprivate_clauses): Likewise.
25320 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25321 calling lower_rec_input_clauses.
25322 (lower_omp_for): Likewise.
25323 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25324 clause on simd construct.
25325 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25326 OMP_CLAUSE__CONDTEMP_ clause is present.
25328 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25331 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25334 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25335 TEX_D32, TEX_D64 or TEX_D128.
25337 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25339 * match.pd (~(vec?cst1:cst2)): New transformation.
25341 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25343 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25344 ((size_t)(A /[ex] B) CMP C): New transformation.
25346 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25348 * doc/md.texi: Document define_insn_and_rewrite.
25349 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25350 * gensupport.c (queue_elem): Update comment.
25351 (replace_operands_with_dups): New function.
25352 (gen_rewrite_sequence): Likewise.
25353 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25354 * read-rtl.c (apply_subst_iterator): Likewise.
25355 (add_condition_to_rtx, named_rtx_p): Likewise.
25356 (rtx_reader::read_rtx_operand): Likewise.
25357 * config/aarch64/aarch64-sve.md
25358 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25359 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25360 define_insn_and_rewrite.
25361 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25362 Remove separate define_split.
25364 2019-05-31 Jan Hubicka <jh@suse.cz>
25366 * tree-ssa-alias.c (type_has_components_p): New function.
25367 (aliasing_component_refs_p): Use it.
25369 2019-05-31 Martin Liska <mliska@suse.cz>
25371 * gdbhooks.py: Add const_tree to TreePrinter.
25373 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25376 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25377 * doc/invoke.texi (Debugging Options): Document new default of
25378 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25380 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25382 PR tree-optimization/90671
25383 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25384 template_block used to be empty on the first call, don't use
25385 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25386 seq with bb_seq and set it with set_bb_seq.
25388 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25390 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25392 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25393 Michael Meissner <meissner@linux.ibm.com>
25395 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25396 (prefixed_mem_operand): Likewise.
25397 (non_prefixed_mem_operand): Likewise.
25398 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25400 * config/rs6000/rs6000.c (print_operand_address): Handle
25401 PC-relative addresses.
25402 (mode_supports_prefixed_address_p): New function.
25403 (rs6000_prefixed_address): New function.
25404 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25405 (SYMBOL_REF_PCREL_P): Likewise.
25407 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25409 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25410 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25411 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25412 is nested inside of parallel region, add _condtemp_ clause to both.
25413 * tree-nested.c (convert_nonlocal_omp_clauses,
25414 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25416 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25418 * omp-general.c (omp_extract_for_data): Compute it.
25419 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25420 (lower_rec_input_clauses): Likewise.
25421 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25422 clause is already present, just add one further one after it.
25423 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25424 (lower_send_shared_vars): Clear _condtemp_ vars.
25425 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25426 or section or taskgroup.
25427 * omp-expand.c (determine_parallel_type): Disallow combining only if
25428 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25429 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25430 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25431 expand_omp_for_static_chunk, expand_omp_for): Use
25432 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25433 determine if a special set of API routines are needed and if condtemp
25434 needs to be initialized, while always initialize cond_var if
25435 fd->lastprivate_conditional is non-zero.
25437 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25438 Michael Meissner <meissner@linux.ibm.com>
25440 * config/rs6000/constraints.md (eI): New constraint.
25441 * config/rs6000/predicates.md (cint34_operand): New predicate.
25442 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25443 (SIGNED_34BIT_OFFSET_P): Likewise.
25444 * doc/md.texi (eI): Document constraint.
25446 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25448 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25450 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25451 Michael Meissner <meissner@linux.ibm.com>
25453 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25454 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25455 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25456 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25457 (OTHER_FUTURE_MASKS): Likewise.
25458 (POWERPC_MASKS): Likewise.
25459 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25460 specified without -mprefixed-addr or -mcpu=future. Error if
25461 -mprefixed-addr is specified without -mcpu=future.
25462 (rs6000_opt_masks): Add entry for prefixed-addr.
25463 * rs6000.opt (mprefixed-addr): New option.
25465 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25467 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25468 cfun->is_thunk check.
25470 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25472 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25475 2019-05-30 Martin Liska <mliska@suse.cz>
25477 * gdbinit.in: Fix 'ptc' command. Add trt
25478 that prints TREE_TYPE($).
25480 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25481 Alan Modra <amodra@gmail.com>
25483 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25485 (rs6000_indirect_call_template_1): ...and here.
25486 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25487 plt16_ha, plt16_lo, mtctr indirect calls. Use
25488 rs6000_pltseq_enum.
25489 (rs6000_decl_ok_for_sibcall): New function.
25490 (rs6000_function_ok_for_sibcall): Refactor.
25491 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25492 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25493 when pcrel. Reorganize.
25494 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25495 * rs6000.h (rs6000_pltseq_enum): New enum.
25496 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25497 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25498 (*pltseq_plt16_ha): Likewise.
25499 (*pltseq_plt16_lo): Likewise.
25500 (*pltseq_mtctr): Likewise.
25501 (*pltseq_plt_pcrel): New insn.
25502 (*call_local_aix): Handle @notoc calls.
25503 (*call_value_local_aix): Likewise.
25504 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25505 (*call_value_nonlocal_aix): Likewise.
25506 (*call_indirect_pcrel): New insn.
25507 (*call_value_indirect_pcrel): Likewise.
25509 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25511 * config/i386/sse.md (*save_multiple<mode>): Rename from
25512 save_multiple<mode>.
25513 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25514 (*restore_multiple_and_return<mode>): Rename from
25515 restore_multiple_and_return<mode>.
25516 (*restore_multiple_leave_return<mode>): Rename from
25517 restore_multiple_leave_return<mode>.
25519 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25521 * config.gcc (rx-*-linux*): New target.
25522 * config/rx/elf.opt: New file.
25523 * config/rx/linux.h: Likewise.
25524 * config/rx/t-linux: Likewise.
25525 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25527 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25528 (ASM_APP_OFF): Likewise.
25529 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25532 2019-05-29 Jan Hubicka <jh@suse.cz>
25534 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25535 variants are pointer equivalent.
25537 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25539 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25540 * config/aarch64/aarch64-sve2.md: New file.
25541 (<u>avg<mode>3_floor): New pattern.
25542 (<u>avg<mode>3_ceil): Likewise.
25543 (*<sur>h<addsub><mode>): Likewise.
25544 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25545 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25547 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25550 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25551 for var_opt_string printing. In cl_optimization_print_diff, print
25552 (null) instead of invoking undefined behavior if one of the
25553 var_opt_string pointers is NULL and use && instead of first || in the
25554 guarding condition. For var_target_other options, handle const char *
25555 target variables similarly to const char * optimize node variables.
25557 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25559 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25560 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25561 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25562 Add autib1716 and pacib1716 initialisation.
25563 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25564 for autib1716 and pacib1716.
25565 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25566 aarch64_post_cfi_startproc): Define.
25567 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25568 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25569 aarch64_handle_pac_ret_protection): Set default sign key to A.
25570 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25571 aarch64_expand_prologue): Add check for b-key.
25572 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25573 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25574 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25575 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25576 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25577 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25578 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25579 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25580 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25581 pauth_hint_num_a with pauth_hint_num.
25582 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25583 pauth_hint_num_a with pauth_hint_num.
25584 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25585 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25586 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25587 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25588 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25589 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25590 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25591 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25592 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25593 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25594 UNSPEC_AUTIA1716 respectively.
25595 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25596 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25597 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25598 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25599 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25600 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25602 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25604 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25605 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25606 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25607 explicit clause on combined parallel into implicit shared clause.
25608 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25609 and firstprivate if the decl has one too from combined parallel to
25610 the worksharing construct.
25612 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25613 Michael Meissner <meissner@linux.ibm.com>
25615 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25617 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25619 * rtl.h (LABEL_REF_P): New #define.
25621 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25623 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25625 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25627 * internal-fn.c: Marked mask_load_direct as vectorizable.
25628 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25629 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25630 combined even if masks different with allow_slp_p param.
25631 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25632 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25633 dissolve SLP-only vectorizable groups when SLP has been discarded.
25634 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25635 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25637 (vect_build_slp_tree_1): Fixed comment typo.
25638 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25639 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25640 loads for SLP only.
25641 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25643 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25645 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25647 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25648 Remove obsolete use_thunk reference.
25649 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25650 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25651 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25652 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25653 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25654 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25655 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25656 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25657 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25659 2019-05-28 Nathan Sidwell <nathan@acm.org>
25661 * tree.h (IDENTIFIER_ANON_P): New.
25662 (anon_aggrname_format, anon_aggname_p): Don't declare.
25663 (make_anon_name): Declare.
25664 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25665 (hash_tree): Likewise.
25666 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25667 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25668 (anon_cnt, make_anon_name): New.
25670 2019-05-28 Martin Liska <mliska@suse.cz>
25673 * opts-global.c (decode_options): Print help for all
25674 help_option_arguments.
25675 * opts.c (print_help): Add new argument.
25676 (common_handle_option): Remember all values into
25677 help_option_arguments.
25678 * opts.h (print_help): Add new argument.
25680 2019-05-28 Martin Liska <mliska@suse.cz>
25683 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25684 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25685 (func_checker::compare_bb): Call compare_loops.
25687 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25689 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25690 on sections construct.
25691 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25693 (lower_omp_sections): Handle lastprivate conditional.
25694 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25695 lastprivate_conditional_map.
25696 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25698 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25699 critical, taskgroup and section regions when looking for a region
25700 with non-NULL lastprivate_conditional_map.
25702 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25704 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25705 (*ix86_gen_sub3): Ditto.
25706 (*ix86_gen_sub3_carry): Ditto.
25707 (*ix86_gen_one_cmpl2): Ditto.
25708 (*ix86_gen_andsp): Ditto.
25709 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25710 (gen_and2_insn): New static function.
25711 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25712 Use gen_add3_insn instead of ix86_gen_add3.
25713 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25714 instead of ix86_gen_add3.
25715 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25716 Use gen_sub3_insn instead of ix86_gen_sub3.
25717 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25718 instead of ix86_gen_add3.
25719 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25720 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25721 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25722 * config/i386/i386-options.c (ix86_option_override_internal):
25723 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25724 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25726 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25728 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25729 and DW_OP_GNU_const_index opcodes.
25731 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25733 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25735 2019-05-27 Richard Biener <rguenther@suse.de>
25737 PR tree-optimization/90637
25738 * tree-ssa-sink.c (statement_sink_location): Honor the
25739 computed sink location for single-uses.
25741 2019-05-27 Richard Biener <rguenther@suse.de>
25743 PR middle-end/90610
25744 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25747 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25749 * config/i386/i386.md (@sub<mode>3_carry): Rename
25750 from sub<mode>3_carry.
25751 (@leave_<mode>): New expander.
25752 (*leave): Rename from leave.
25753 (*leave_rex64): Rename from leave_rex64.
25754 (@monitorx_<mode>): Rename from monitorx_<mode>.
25755 (@clzero_<mode>): Rename from clzero_<mode>.
25756 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25757 from sse3_monitor_<mode>.
25758 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25759 (*ix86_gen_leave): Ditto.
25760 (*ix86_gen_monitor): Ditto.
25761 (*ix86_gen_monitorx): Ditto.
25762 (*ix86_gen_clzero): Ditto.
25763 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25764 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25765 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25766 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25767 Use gen_sse3_monitor instead of ix86_gen_monitor.
25768 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25769 instead of ix86_gen_monitorx.
25770 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25771 instead of ix86_gen_clzero.
25772 * config/i386/i386-options.c (ix86_option_override_internal):
25773 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25774 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25776 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25778 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25779 Rename from tls_global_dynamic_64_<mode>.
25780 (@tls_local_dynamic_base_64_<mode>): Rename from
25781 tls_local_dynamic_base_64_<mode>.
25782 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25783 Remove indirect function.
25784 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25785 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25786 instead of ix86_gen_tls_global_dynamic_64.
25787 Use gen_tls_local_dynamic_base_64 instead of
25788 ix86_gen_tls_local_dynamic_base_64.
25789 * config/i386/i386-options.c (ix86_option_override_internal):
25790 Do not initialize ix86_gen_tls_global_dynamic_64 and
25791 ix86_gen_tls_local_dynamic_base_64.
25793 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25795 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25796 Rename from pro_epilogue_adjust_stack_<mode>_add.
25797 (@pro_epilogue_adjust_stack_sub_<mode>)
25798 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25799 (@allocate_stack_worker_probe_<mode>):
25800 Rename from allocate_stack_worker_probe_<mode>.
25801 (allocate_stack): Use gen_allocate_stack_worker_probe.
25802 (probe_stack): Use gen_probe_stack_1.
25803 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25804 (@adjust_stack_and_probe_<mode>): Rename from
25805 adjust_stack_and_probe<mode>.
25806 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25807 (stack_protect_set): Use gen_stack_protect_set_1.
25808 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25809 (stack_protect_test): Use gen_stack_protect_test_1.
25810 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25811 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25812 Remove indirect function.
25813 (*ix86_gen_adjust_stack_and_probe): Ditto.
25814 (*ix86_gen_probe_stack_range): Ditto.
25815 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25816 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25817 (ix86_adjust_stack_and_probe_stack_clash): Use
25818 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25819 (ix86_adjust_stack_and_probe): Ditto.
25820 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25821 of ix86_gen_probe_stack_range.
25822 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25823 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25824 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25825 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25826 CODE_FOR_stack_protect_test_{si,di}.
25827 * config/i386/i386-options.c (ix86_option_override_internal):
25828 Do not initialize ix86_gen_allocate_stack_worker,
25829 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25831 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25833 * doc/invoke.texi (Link Options): Many editorial changes around
25836 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25838 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25839 pre-Solaris 11 referene and most Studio compiler details.
25841 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25844 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25845 DImode to SImode in floating-point registers on 64-bit target.
25846 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25847 register_operand in xmpyu patterns.
25849 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25851 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25852 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25853 OMP_CLAUSE__REDUCTEMP_.
25854 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25855 OMP_CLAUSE__CONDTEMP_.
25856 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25857 * tree-pretty-print.c (dump_omp_clause): Likewise.
25858 * tree-nested.c (convert_nonlocal_omp_clauses,
25859 convert_local_omp_clauses): Likewise.
25860 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25861 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25862 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25864 (gimplify_omp_for): Warn and disable conditional modifier from
25865 lastprivate on loop iterators.
25866 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25868 * omp-general.c (omp_extract_for_data): Initialize it.
25869 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25871 (delete_omp_context): Delete it.
25872 (lower_lastprivate_conditional_clauses): New function.
25873 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25874 handle lastprivate conditional clauses.
25875 (lower_reduction_clauses): Add CLIST argument, emit it into
25876 the critical section if any.
25877 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25878 lower_reduction_clauses callers.
25879 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25880 to lower_lastprivate_clauses.
25881 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25882 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25883 clist into a critical section if not emitted there already by
25884 lower_reduction_clauses.
25885 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25887 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25888 conditional variables.
25889 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25891 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25892 expand_omp_for_static_chunk): Handle lastprivate conditional.
25893 (expand_omp_for): Handle fd.lastprivate_conditional like
25896 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25898 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25899 kernel does not exit cleanly.
25900 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25902 2019-05-24 Jason Merrill <jason@redhat.com>
25905 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25907 2019-05-24 Richard Biener <rguenther@suse.de>
25910 * tree-loop-distribution.c (struct partition): Add location
25912 (partition_alloc): Initialize all fields.
25913 (generate_memset_builtin): Use the location recorded in the
25914 partition for the generated call.
25915 (generate_memcpy_builtin): Likewise.
25916 (classify_partition): Record the location of a single store
25917 as location for the partition.
25919 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25921 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25924 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25927 * common/config/aarch64/aarch64-common.c
25928 (aarch64_rewrite_selected_cpu): Change local temporary variable
25929 type from unsigned long to uint64_t.
25930 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
25931 aarch64_get_extension_string_for_isa_flags): Change declaration to
25932 match new definition by replacing unsigned long with uint64_t.
25934 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25937 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
25938 gen_attr_type just once instead of 4-7 times. Formatting fixes.
25939 Handle stack_protect_test_<mode> codegen similarly to corresponding
25942 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
25944 * config/i386/darwin.h: Reject -mfentry*.
25945 * doc/sourcebuild.texi: Document mfentry target support.
25947 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25949 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
25950 Rename to rs6000_global_entry_point_prologue_needed_p. Return
25951 false for PC-relative functions.
25952 (rs6000_output_function_prologue): Change called function name to
25953 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
25954 name,1" for PC-relative functions.
25955 (rs6000_elf_declare_function_name): Change called function name to
25956 rs6000_global_entry_point_prologue_needed_p.
25958 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
25961 * config/i386/i386.c (gen_rtx_cost):
25962 Use ix86_tune_cost instead of ix86_cost.
25964 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25965 Michael Meissner <meissner@linux.ibm.com>
25966 Segher Boessenkool <segher@kernel.crashing.org>
25968 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
25970 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
25971 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
25972 (rs6000_fndecl_pcrel_p): Likewise.
25973 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
25974 error if -mpcrel is requested without -mcpu=future.
25975 (rs6000_opt_masks): Add entry for pcrel.
25976 (rs6000_fndecl_pcrel_p): New function.
25977 (rs6000_pcrel_p): Likewise.
25978 * config/rs6000/rs6000.opt (mpcrel): New option.
25979 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
25981 2019-05-23 Jan Hubicka <jh@suse.cz>
25982 Martin Liska <mliska@suse.cz>
25984 PR tree-optimization/90576
25985 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
25987 (aliasing_component_refs_p): Fix three way size compare conditional;
25988 give up earlier in case we can not decide on equivalence.
25990 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
25991 Michael Meissner <meissner@linux.ibm.com>
25992 Segher Boessenkool <segher@kernel.crashing.org>
25994 * config.gcc: Add future cpu.
25995 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
25996 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
25998 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
25999 (RS6000_CPU): New instantiation for future cpu.
26000 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26002 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26003 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26004 * config/rs6000/rs6000-tables.opt: Regenerate.
26005 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26006 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26007 (rs6000_machine_from_flags): Handle future cpu.
26008 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26009 PROCESSOR_POWER9 for now.
26010 (rs6000_adjust_cost): Likewise.
26011 (rs6000_issue_rate): Likewise.
26012 (rs6000_register_move_cost): Likewise.
26013 (rs6000_opt_masks): Add entry for future.
26014 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26015 (MASK_FUTURE): New #define.
26016 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26017 * config/rs6000/rs6000.opt (mfuture): New target option.
26018 * doc/invoke.texi (mcpu): Add future cpu.
26020 2019-05-23 Martin Liska <mliska@suse.cz>
26023 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26024 operation points to a temporary (pointed via tree_to_wide_ref)
26025 that is out of scope after the &.
26027 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26030 * doc/extend.texi (Function Names): Add missing word.
26032 2019-05-23 Richard Biener <rguenther@suse.de>
26034 PR tree-optimization/88440
26035 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26037 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26039 (generate_memcpy_builtin): Likewise.
26040 (distribute_loop): Pass in whether to only distribute patterns.
26041 (prepare_perfect_loop_nest): Also allow size optimization.
26042 (pass_loop_distribution::execute): When optimizing a loop
26043 nest for size allow pattern replacement.
26045 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26048 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26051 2019-05-23 Martin Liska <mliska@suse.cz>
26054 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26055 expression similarly to gimplify_decl_expr.
26057 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26059 * cse.c (cse_dump_path): s/dump_file/f.
26061 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26064 * diagnostic-format-json.cc: Include "selftest.h".
26065 (json_from_expanded_location): Only add "file" key for non-NULL
26067 (json_from_location_range): Don't add "start" and "finish"
26068 children if they are UNKNOWN_LOCATION.
26069 (selftest::test_unknown_location): New selftest.
26070 (selftest::test_bad_endpoints): New selftest.
26071 (selftest::diagnostic_format_json_cc_tests): New function.
26072 * json.cc (json::object::get): New function.
26073 (selftest::test_object_get): New selftest.
26074 (selftest::json_cc_tests): Call it.
26075 * json.h (json::object::get): New decl.
26076 * selftest-run-tests.c (selftest::run_tests): Call
26077 selftest::diagnostic_format_json_cc_tests.
26078 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26081 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26082 Andrew Stubbs <amd@codesourcery.com>
26084 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26085 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26086 (kernel): Rename to...
26087 (main_kernel): ... this.
26088 (load_image): Load _init_array and _fini_array kernels.
26089 (run): Add argument for kernel to run.
26090 (main): Run init_array_kernel before main_kernel, and
26091 fini_array_kernel after.
26092 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26093 amdgpu_hsa_kernel attribute on functions.
26094 (gcn_disable_constructors): Delete.
26095 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26096 * config/gcn/crt0.c (size_t): Define.
26097 (_init_array, _fini_array): New.
26098 (__preinit_array_start, __preinit_array_end,
26099 __init_array_start, __init_array_end,
26100 __fini_array_start, __fini_array_end): Declare weak references.
26102 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26104 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26106 2019-05-22 Jason Merrill <jason@redhat.com>
26108 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26110 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26113 * config/i386/i386-options.c (ix86_init_machine_status): Set
26114 stack_frame_required to true.
26115 * config/i386/i386.c (ix86_get_frame_size): New function.
26116 (ix86_frame_pointer_required): Replace get_frame_size with
26117 ix86_get_frame_size.
26118 (ix86_compute_frame_layout): Likewise.
26119 (ix86_find_max_used_stack_alignment): Changed to void. Set
26120 stack_frame_required.
26121 (ix86_finalize_stack_frame_flags): Always call
26122 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26123 ix86_get_frame_size.
26124 * config/i386/i386.h (machine_function): Add stack_frame_required.
26126 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26128 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26130 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26132 * common/config/aarch64/aarch64-common.c
26133 (struct aarch64_option_extension, struct processor_name_to_arch,
26134 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26135 aarch64_contains_opt,
26136 aarch64_get_extension_string_for_isa_flags): Change type of
26137 variables storing flags to uint64_t.
26138 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26139 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26140 * config/aarch64/aarch64.c (struct processor,
26141 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26142 aarch64_validate_march, aarch64_override_options,
26143 aarch64_option_print, aarch64_handle_attr_isa_flags,
26144 aarch64_declare_function_name, aarch64_start_file): Make flag
26145 variables uint64_t.
26146 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26147 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26148 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26149 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26150 * config/aarch64/driver-aarch64.c
26151 (struct aarch64_arch_extension, struct aarch64_core_data,
26152 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26153 flag variables uint64_t.
26154 * doc/invoke.texi: Add documentation for new arguments.
26156 2019-05-22 Richard Biener <rguenther@suse.de>
26158 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26160 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26162 2019-05-22 Martin Liska <mliska@suse.cz>
26165 * doc/extend.texi: Document the change.
26167 2019-05-22 Richard Biener <rguenther@suse.de>
26169 PR tree-optimization/90450
26170 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26171 (mem_ref_hasher::equal): Check it.
26172 (mem_ref_alloc): Initialize it.
26173 (gather_mem_refs_stmt): Set it.
26175 2019-05-22 Richard Biener <rguenther@suse.de>
26177 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26179 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26182 2019-05-22 Alan Modra <amodra@gmail.com>
26184 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26185 (ASM_CPU_SPEC): Conditionally add -many.
26186 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26187 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26188 (rs6000_file_start): ..extracted from here, and modified to
26190 (rs6000_output_function_prologue): Emit .machine as necessary.
26192 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26194 PR middle-end/90553
26195 * ira-lives.c (process_bb_node_lives): Consider defs
26196 for a call insn to be die before the call, not after.
26198 * function.c (assign_parm_setup_block): Raise alignment of
26199 stacked parameter only for STRICT_ALIGNMENT targets.
26201 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26203 * config/rs6000/constraints.md (define_register_constraint "wz"):
26205 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26206 RS6000_CONSTRAINT_wz.
26207 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26208 (rs6000_init_hard_regno_mode_ok): Adjust.
26209 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26210 * doc/md.texi (Machine Constraints): Adjust.
26212 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26214 * config/rs6000/constraints.md (define_register_constraint "wl"):
26216 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26217 RS6000_CONSTRAINT_wl.
26218 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26219 (rs6000_init_hard_regno_mode_ok): Adjust.
26220 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26221 * doc/md.texi (Machine Constraints): Adjust.
26223 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26225 * config/rs6000/constraints.md (define_register_constraint "wm"):
26227 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26228 RS6000_CONSTRAINT_wm.
26229 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26230 (rs6000_init_hard_regno_mode_ok): Adjust.
26231 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26232 * doc/md.texi (Machine Constraints): Adjust.
26234 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26236 * config/rs6000/constraints.md (define_register_constraint "wk"):
26238 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26239 RS6000_CONSTRAINT_wk.
26240 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26241 (rs6000_init_hard_regno_mode_ok): Adjust.
26242 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26243 * doc/md.texi (Machine Constraints): Adjust.
26245 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26247 * config/rs6000/constraints.md (define_register_constraint "wj"):
26249 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26250 RS6000_CONSTRAINT_wj.
26251 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26252 (rs6000_init_hard_regno_mode_ok): Adjust.
26253 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26255 * config/rs6000/vsx.md: Ditto.
26256 * doc/md.texi (Machine Constraints): Adjust.
26258 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26260 * config/rs6000/constraints.md (define_register_constraint "wh"):
26262 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26263 RS6000_CONSTRAINT_wh.
26264 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26265 (rs6000_init_hard_regno_mode_ok): Adjust.
26266 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26267 * doc/md.texi (Machine Constraints): Adjust.
26269 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26272 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26273 Avoid calling gen_lowpart with CONST operand.
26275 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26277 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26278 field template_last_to_copy.
26279 (ssa_create_duplicates): Set it, and use it. Attempt to
26280 preserve more debug stmts.
26282 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26284 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26285 (signbit<mode>2): New expander
26287 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26290 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26291 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26293 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26295 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26296 %ebx and %ecx bafore calling cpuid with leaf 1 or
26297 non-constant leaf argument.
26299 2019-05-21 Alan Modra <amodra@gmail.com>
26302 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26303 power9 direct move cost.
26305 2019-05-21 Richard Biener <rguenther@suse.de>
26307 PR middle-end/90510
26308 * fold-const.c (fold_read_from_vector): New function.
26309 * fold-const.h (fold_read_from_vector): Declare.
26310 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26311 single-element insert permutations. Canonicalize selector
26312 further and fix issue with last commit.
26314 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26316 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26317 parameter with default value false to declaration.
26318 (split_edges_for_insertion): New inline function. Wrapper for
26319 split_critical_edges with for_edge_insertion_p = true.
26320 * tree-cfg.c (split_critical_edges): Don't split non-critical
26321 edges if for_edge_insertion_p is false. Fix whitespace.
26322 * tree-ssa-pre.c (pass_pre::execute): Call
26323 split_edges_for_insertion instead of split_critical_edges.
26324 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26325 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26326 (pass_data_sink_code): Update function name in the comment.
26328 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26330 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26331 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26332 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26333 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26336 2019-05-21 Martin Liska <mliska@suse.cz>
26338 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26340 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26341 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26343 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26345 (rs6000_function_arg): Likewise.
26346 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26347 (rs6000_expand_ternop_builtin): Use interval syntax.
26348 (get_element_number): Likewise.
26349 (altivec_expand_builtin): Likewise.
26350 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26352 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26356 * function.h (struct function): Add calls_eh_return member.
26357 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26358 gimplifying __builtin_eh_return call.
26359 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26361 (expand_call_inline): Or in src_cfun->calls_eh_return into
26362 dst_cfun->calls_eh_return.
26363 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26364 cfun->calls_eh_return.
26365 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26366 * lto-streamer-out.c (output_struct_function_base): Write
26369 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26371 PR rtl-optimization/43147
26372 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26373 IX86_BUILTIN_SHUFPD.
26375 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26377 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26378 (refs_may_alias_p_1): ... here; update stats.
26379 (refs_may_alias_p): Do not update stats here.
26381 2019-05-20 Richard Biener <rguenther@suse.de>
26383 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26384 doesn't produce pointers.
26385 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26386 the first operand points to.
26388 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26390 * tree-ssa-alias.c (compare_sizes): New function.
26391 (sompare_type_sizes): New function
26392 (aliasing_component_refs_p): Use it.
26393 (indirect_ref_may_alias_decl_p): Likewise.
26395 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26397 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26399 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26401 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26402 (LIBLSAN_EARLY_SPEC): Likewise.
26403 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26405 2019-05-20 Martin Liska <mliska@suse.cz>
26407 * config/i386/i386.c (ix86_libc_has_fast_function):
26408 Add ATTRIBUTE_UNUSED for the argument.
26410 2019-05-20 Richard Biener <rguenther@suse.de>
26412 * gimple-match-head.c: Include vec-perm-indices.h.
26413 * generic-match-head.c: Likewise.
26414 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26416 * fold-const.c (fold_vec_perm): Export.
26417 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26418 (match.pd): ...here.
26420 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26422 * cfgloop.h (struct loop): Add simdlen member.
26423 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26424 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26425 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26426 as new argument to autovectorize_vector_sizes target hook. If
26427 loop->simdlen, pick up vector size where the vectorization factor
26428 is equal to loop->simd, and if there is none, fall back to the first
26430 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26432 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26433 * omp-general.c (omp_max_vf): Likewise.
26434 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26435 * tree-vect-slp.c (vect_slp_bb): Likewise.
26436 * target.def (autovectorize_vector_sizes): Add ALL argument and
26438 * doc/tm.texi: Adjust documentation.
26439 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26440 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26441 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26443 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26444 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26445 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26446 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26447 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26448 preferred vector size is not 512-bit or 256-bit, just put those
26449 unpreferred ones last.
26451 2019-05-20 Martin Liska <mliska@suse.cz>
26453 * targhooks.c (default_libc_has_fast_function): New function.
26454 * targhooks.h (default_libc_has_fast_function): Likewise.
26456 2019-05-20 Martin Liska <mliska@suse.cz>
26458 PR middle-end/90263
26459 * builtins.c (expand_builtin_memory_copy_args): When having a
26460 target with fast mempcpy implementation do now use memcpy.
26461 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26462 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26463 * doc/tm.texi: Likewise.
26464 * doc/tm.texi.in: Likewise.
26466 * expr.c (emit_block_move_hints): Add 2 new arguments.
26467 * expr.h (emit_block_move_hints): Bail out when libcall
26468 to memcpy would be used.
26470 2019-05-20 Martin Liska <mliska@suse.cz>
26472 * profile-count.c: Add vertical spacing in order
26473 to separate functions.
26474 * profile-count.h: Likewise.
26476 2019-05-20 Martin Liska <mliska@suse.cz>
26478 * profile-count.h: Do not use full qualified
26480 * profile-count.c (profile_count::to_frequency): Likewise.
26482 2019-05-20 Martin Liska <mliska@suse.cz>
26484 * profile-count.h (enum profile_quality): Use capital letters
26485 for enum value names. Use the adjusted names.
26486 * profile-count.c: Use the adjusted names.
26488 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26490 * config/rs6000/constraints.md (define_register_constraint "wH"):
26492 (define_register_constraint "wI"): Delete.
26493 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26494 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26495 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26496 (rs6000_init_hard_regno_mode_ok): Adjust.
26497 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26498 resp. "d", or with "wa" as appropriate, all with "p8v".
26499 * config/rs6000/vsx.md: Ditto.
26500 * doc/md.texi (Machine Constraints): Adjust.
26502 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26504 * config/rs6000/constraints.md (define_register_constraint "wy"):
26506 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26507 RS6000_CONSTRAINT_wy.
26508 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26509 (rs6000_init_hard_regno_mode_ok): Adjust.
26510 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26511 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26512 (define_mode_attr Fisa): New.
26513 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26514 * doc/md.texi (Machine Constraints): Adjust.
26516 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26518 * config/rs6000/constraints.md (define_register_constraint "wu"):
26520 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26521 RS6000_CONSTRAINT_wu.
26522 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26523 (rs6000_init_hard_regno_mode_ok): Adjust.
26524 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26526 (define_mode_attr Fa): Delete.
26527 * config/rs6000/vsx.md: Ditto.
26528 * doc/md.texi (Machine Constraints): Adjust.
26530 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26532 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26534 (define_register_constraint "wK"): Delete.
26535 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26536 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26537 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26538 (rs6000_init_hard_regno_mode_ok): Adjust.
26539 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26540 Replace "wK" constraint by "wH" with "p9v".
26541 * config/rs6000/vsx.md: Ditto.
26542 * doc/md.texi (Machine Constraints): Adjust.
26544 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26546 * config/rs6000/constraints.md (define_register_constraint "wb"):
26548 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26549 RS6000_CONSTRAINT_wb.
26550 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26551 (rs6000_init_hard_regno_mode_ok): Adjust.
26552 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26553 * config/rs6000/vsx.md: Ditto.
26554 * doc/md.texi (Machine Constraints): Adjust.
26556 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26558 * config/rs6000/constraints.md (define_register_constraint "wo"):
26560 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26561 RS6000_CONSTRAINT_wo.
26562 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26563 (rs6000_init_hard_regno_mode_ok): Adjust.
26564 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26565 * config/rs6000/altivec.md: Ditto.
26566 * doc/md.texi (Machine Constraints): Adjust.
26568 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26570 * config/darwin-c.c (darwin_register_objc_includes): Do not
26571 prepend the sysroot when building gnu-runtime header search
26574 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26576 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26577 instead of direct output of the asm.
26579 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26581 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26582 argument to be type bool (was int before).
26583 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26584 at first use. Use type bool for some variables. Fix a theoretical
26585 eh_return bug for svr4.
26587 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26589 * config/rs6000/rs6000.md (isa): New attribute.
26590 (enabled): New attribute.
26592 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26594 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26595 assemble_start_function and assemble_end_function.
26597 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26599 PR middle-end/89433
26600 * omp-general.c (oacc_verify_routine_clauses): Change formal
26601 parameters. Add checking if already marked with an OpenACC
26602 'routine' directive. Adjust all users.
26604 PR middle-end/89433
26605 * omp-general.c (oacc_build_routine_dims): Move some of its
26607 (oacc_verify_routine_clauses): ... this new function.
26608 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26610 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26612 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26613 formating of picbase labels to match other ports.
26615 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26617 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26618 in the generated code.
26620 2019-05-16 Martin Sebor <msebor@redhat.com>
26622 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26623 identifiers, keywords, operators, and types in diagnostics. Correct
26624 quoting, spelling, and sentence capitalization issues.
26625 (expand_builtin_atomic_is_lock_free): Same.
26626 (fold_builtin_next_arg): Same.
26627 * cfgexpand.c (expand_one_var): Same.
26628 (tree_conflicts_with_clobbers_p): Same.
26629 (expand_asm_stmt): Same.
26630 (verify_loop_structure): Same.
26631 * cgraphunit.c (process_function_and_variable_attributes): Same.
26632 * collect-utils.c (collect_execute): Same.
26633 * collect2.c (maybe_run_lto_and_relink): Same.
26634 (is_lto_object_file): Same.
26635 (scan_prog_file): Same.
26636 * convert.c (convert_to_real_1): Same.
26637 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26638 * except.c (verify_eh_tree): Same.
26639 * gcc.c (execute): Same.
26640 (eval_spec_function): Same.
26641 (run_attempt): Same.
26642 (driver::set_up_specs): Same.
26643 (compare_debug_auxbase_opt_spec_function): Same.
26644 * gcov-tool.c (unlink_gcda_file): Same.
26646 (do_rewrite): Same.
26647 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26648 * gimplify.c (gimplify_asm_expr): Same.
26649 (gimplify_adjust_omp_clauses): Same.
26650 * hsa-gen.c (gen_hsa_addr_insns): Same.
26651 (gen_hsa_insns_for_load): Same.
26652 (gen_hsa_cmp_insn_from_gimple): Same.
26653 (gen_hsa_insns_for_operation_assignment): Same.
26654 (gen_get_level): Same.
26655 (gen_hsa_alloca): Same.
26656 (omp_simple_builtin::generate): Same.
26657 (gen_hsa_atomic_for_builtin): Same.
26658 (gen_hsa_insns_for_call): Same.
26659 * input.c (dump_location_info): Same.
26660 * ipa-devirt.c (compare_virtual_tables): Same.
26661 * ira.c (ira_setup_eliminable_regset): Same.
26662 * lra-assigns.c (lra_assign): Same.
26663 * lra-constraints.c (lra_constraints): Same.
26664 * lto-streamer-in.c (lto_input_mode_table): Same.
26665 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26666 (merge_and_complain): Same.
26667 (compile_offload_image): Same.
26668 (compile_images_for_offload_targets): Same.
26669 (debug_objcopy): Same.
26672 * opts.c (print_specific_help): Same.
26673 (parse_no_sanitize_attribute): Same.
26674 (print_help): Same.
26675 (handle_param): Same.
26676 * plugin.c (add_new_plugin): Same.
26677 (parse_plugin_arg_opt): Same.
26678 (try_init_one_plugin): Same.
26679 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26680 operators, and types in diagnostics. Correct quoting and spelling
26682 * read-rtl-function.c (parse_edge_flag_token): Same.
26683 (function_reader::parse_enum_value): Same.
26684 * reg-stack.c (check_asm_stack_operands): Same.
26685 * regcprop.c (validate_value_data): Same.
26686 * sched-rgn.c (make_pass_sched_fusion): Same.
26687 * stmt.c (check_unique_operand_names): Same.
26688 * targhooks.c (default_target_option_pragma_parse): Same.
26689 * tlink.c (recompile_files): Same.
26690 * toplev.c (process_options): Same.
26691 (do_compile): Same.
26692 * trans-mem.c (diagnose_tm_1): Same.
26693 (ipa_tm_scan_irr_block): Same.
26694 (ipa_tm_diagnose_transaction): Same.
26695 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26696 format a tree code name in a diagnostic.
26697 (verify_types_in_gimple_min_lval): Same.
26698 (verify_types_in_gimple_reference): Same.
26699 (verify_gimple_call): Same.
26700 (verify_gimple_assign_unary): Same.
26701 (verify_gimple_assign_binary): Same.
26702 (verify_gimple_assign_ternary): Same.
26703 (verify_gimple_assign_single): Same.
26704 (verify_gimple_switch): Same.
26705 (verify_gimple_label): Same.
26706 (verify_gimple_phi): Same.
26707 (verify_gimple_in_seq): Same.
26708 (verify_eh_throw_stmt_node): Same.
26709 (collect_subblocks): Same.
26710 (gimple_verify_flow_info): Same.
26711 (do_warn_unused_result): Same.
26712 * tree-inline.c (expand_call_inline): Same.
26713 * tree-into-ssa.c (update_ssa): Same.
26714 * tree.c (tree_int_cst_elt_check_failed): Same.
26715 (tree_vec_elt_check_failed): Same.
26716 (omp_clause_operand_check_failed): Same.
26717 (verify_type_variant): Same.
26718 (verify_type): Same.
26719 * value-prof.c (verify_histograms): Same.
26720 * varasm.c (assemble_start_function): Same.
26722 2019-05-16 Martin Sebor <msebor@redhat.com>
26724 * config/i386/i386-expand.c (get_element_number): Quote keywords
26725 and other internal names in diagnostics. Adjust other diagnostic
26726 formatting issues noted by -Wformat-diag.
26727 * config/i386/i386-features.c
26728 (ix86_mangle_function_version_assembler_name): Same.
26729 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26730 * config/i386/i386.c (ix86_function_type_abi): Same.
26731 (ix86_function_ms_hook_prologue): Same.
26732 (classify_argument): Same.
26733 (ix86_expand_prologue): Same.
26734 (ix86_md_asm_adjust): Same.
26735 (ix86_memmodel_check): Same.
26737 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26739 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26740 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26743 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26746 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26747 intrinsics without SSE/SSE2/SSSE3.
26748 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26750 (*mmx_uavgv8qi3): Likewise.
26752 2019-05-17 Richard Biener <rguenther@suse.de>
26754 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26755 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26757 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26759 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26760 vec_sldw insn pattern.
26762 2019-05-17 Richard Biener <rguenther@suse.de>
26764 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26766 2019-05-17 Martin Liska <mliska@suse.cz>
26769 * toplev.c (output_stack_usage): With LTO and sanitizer it
26770 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26771 has no file location.
26773 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26776 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26777 sz0 is equal to sz1, instead return false in that case.
26779 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26780 has non-constant expression, force sctx.lane and use two
26781 argument IFN_GOMP_SIMD_LANE instead of single argument.
26782 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26783 two argument IFN_GOMP_SIMD_LANE without lhs.
26784 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26786 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26788 (LOOP_REQUIRES_VERSIONING): Or in
26789 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26790 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26792 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26793 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26794 from simd if clause if needed.
26796 2019-05-16 Richard Biener <rguenther@suse.de>
26798 * tree-affine.c (expr_to_aff_combination): New function split
26800 (tree_to_aff_combination): ... here.
26801 (aff_combination_expand): Avoid building a GENERIC tree.
26803 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26805 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26806 assemble_start_function and assemble_end_function calls.
26807 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26808 assemble_start_function and assemble_end_function.
26809 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26810 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26811 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26812 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26813 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26814 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26815 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26816 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26817 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26818 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26819 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26820 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26822 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26823 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26824 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26825 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26826 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26827 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26828 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26829 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26830 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26831 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26832 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26833 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26834 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26835 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26837 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26838 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26839 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26841 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26843 * tree-ssa-alias.c (alias_stats): Add
26844 aliasing_component_refs_p_may_alias and
26845 aliasing_component_refs_p_no_alias.
26846 (dump_alias_stats): Print aliasing_component_refs_p stats.
26847 (aliasing_component_refs_p): Update stats.
26849 2019-05-16 Martin Liska <mliska@suse.cz>
26852 * multiple_target.c (expand_target_clones): Do not allow
26853 target_clones being used with a symbol that is an alias.
26855 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26857 PR tree-optimization/90394
26858 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26859 positives rather than ICE for cases where (code2 == NE_EXPR
26860 && code1 == BIT_AND_EXPR).
26862 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26865 * tree-core.h (struct tree_decl_common): Document
26866 decl_nonshareable_flag for PARM_DECLs.
26867 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26868 * calls.c (expand_call): Don't try tail call if caller
26869 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26870 passed on the stack and callee needs to pass any arguments on the
26872 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26873 else if instead of series of mutually exclusive ifs. Handle
26874 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26875 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26877 * lto-streamer.h (LTO_major_version): Bump to 9.
26879 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26881 PR tree-optimization/90106
26882 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26883 new parameter as new internal function call, also move it to new
26885 (use_internal_fn): Pass internal function call to
26886 shrink_wrap_one_built_in_call_with_conds.
26888 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26890 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26892 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26893 safelen_int and set loop->dont_vectorize.
26895 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26898 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26900 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26902 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26903 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26904 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26907 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26910 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26911 define_insn_and_split to support SSE emulation.
26912 (*vec_extractv2sf_0): Likewise.
26913 (*vec_extractv2sf_1): Likewise.
26914 (*vec_extractv2si_0): Likewise.
26915 (*vec_extractv2si_1): Likewise.
26916 (*vec_extractv2si_zext_mem): Likewise.
26917 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26918 (vec_extractv2sf_1 splitter): Likewise.
26919 (vec_extractv2sfsf): Likewise.
26920 (vec_setv2si): Likewise.
26921 (vec_extractv2si_1 splitter): Likewise.
26922 (vec_extractv2sisi): Likewise.
26923 (vec_setv4hi): Likewise.
26924 (vec_extractv4hihi): Likewise.
26925 (vec_setv8qi): Likewise.
26926 (vec_extractv8qiqi): Likewise.
26927 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26928 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
26929 (vec_extractv2sisi): Likewise.
26930 (vec_extractv4hihi): Likewise.
26931 (vec_extractv8qiqi): Likewise.
26932 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26933 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
26934 (vec_initv2sisi): Likewise.
26935 (vec_initv4hihi): Likewise.
26936 (vec_initv8qiqi): Likewise.
26937 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
26938 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
26939 (vec_setv4hi): Likewise.
26940 (vec_setv8qi): Likewise.
26942 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26945 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
26946 TARGET_MMX_WITH_SSE.
26947 (MMXMODE:*mov<mode>_internal): Likewise.
26948 (MMXMODE:movmisalign<mode>): Likewise.
26950 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
26953 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
26954 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
26955 (sse2_cvtpd2pi): Ditto.
26956 (sse2_cvttpd2pi): Ditto.
26957 (*vec_concatv2sf_sse4_1): Ditto.
26958 (*vec_concatv2sf_sse): Ditto.
26959 (*vec_concatv2si_sse4_1): Ditto.
26960 (*vec_concatv2si): Ditto.
26961 (*vec_concatv4si_0): Ditto.
26962 (*vec_concatv2di_0): Ditto.
26964 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26967 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
26969 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26972 * config/i386/sse.md (ssse3_palignrdi): Changed to
26973 define_insn_and_split to support SSE emulation.
26975 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26978 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
26980 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26983 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
26984 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
26987 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26990 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
26991 or TARGET_MMX_WITH_SSE.
26992 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
26994 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26997 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
26999 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27002 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27003 Changed to define_insn_and_split to support SSE emulation.
27005 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27008 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27009 Changed to define_insn_and_split to support SSE emulation.
27011 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27014 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27015 (*mmx_<emms>): This.
27016 (mmx_<emms>): New expander.
27018 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27021 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27023 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27025 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27028 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27030 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27033 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27035 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27038 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27039 TARGET_MMX_WITH_SSE.
27040 (*mmx_uavgv4hi3): Add SSE emulation.
27042 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27045 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27046 and TARGET_MMX_WITH_SSE.
27047 (*mmx_uavgv8qi3): Add SSE emulation.
27049 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27052 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27053 maskmovdqu for __MMX_WITH_SSE__.
27055 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27058 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27059 TARGET_MMX and TARGET_MMX_WITH_SSE.
27060 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27062 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27065 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27066 define_insn_and_split to support SSE emulation.
27068 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27071 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27072 and TARGET_MMX_WITH_SSE.
27073 (mmx_<code>v8qi3): Likewise.
27074 (smaxmin:<code>v4hi3): New.
27075 (umaxmin:<code>v8qi3): Likewise.
27076 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27077 (umaxmin:*mmx_<code>v8qi3): Likewise.
27079 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27082 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27083 TARGET_MMX_WITH_SSE.
27084 (*mmx_pinsrw): Add SSE emulation.
27086 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27089 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27091 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27094 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27095 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27098 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27101 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27102 (sse_cvttps2pi): Likewise.
27104 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27107 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27108 TARGET_MMX_WITH_SSE.
27109 (mmx_pshufw_1): Add SSE emulation.
27110 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27111 TARGET_MMX_WITH_SSE to support SSE emulation.
27113 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27116 * config/i386/constraints.md (Yw): New constraint.
27117 * config/i386/mmx.md (*vec_dupv2si): Changed to
27118 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27119 support SSE emulation.
27121 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27124 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27125 TARGET_MMX_WITH_SSE.
27126 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27128 (mmx_gt<mode>3): Likewise.
27130 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27133 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27134 TARGET_MMX_WITH_SSE. Add SSE support.
27136 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27139 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27140 TARGET_MMX_WITH_SSE.
27141 (any_logic:<code><mode>3): New.
27142 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27145 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27148 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27149 TARGET_MMX_WITH_SSE. Add SSE emulation.
27150 (mmx_<shift_insn><mode>3): Likewise.
27151 (ashr<mode>3): New.
27152 (<shift_insn><mode>3): Likewise.
27154 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27157 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27158 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27160 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27163 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27164 TARGET_MMX_WITH_SSE.
27165 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27168 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27171 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27172 TARGET_MMX_WITH_SSE.
27174 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27177 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27180 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27181 (plusminus:mmx_<plusminus_insn><mode>3): Check
27182 TARGET_MMX_WITH_SSE.
27183 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27184 (<plusminus_insn><mode>3): New.
27185 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27186 (*mmx_<plusminus_insn><mode>3): Likewise.
27188 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27191 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27192 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27194 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27195 define_insn_and_split to support SSE emulation.
27196 (mmx_punpcklbw): Likewise.
27197 (mmx_punpckhwd): Likewise.
27198 (mmx_punpcklwd): Likewise.
27199 (mmx_punpckhdq): Likewise.
27200 (mmx_punpckldq): Likewise.
27202 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27203 Uros Bizjak <ubizjak@gmail.com>
27206 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27208 (ix86_split_mmx_pack): Likewise.
27209 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27211 (ix86_split_mmx_pack): Likewise.
27212 * config/i386/i386.md (mmx_isa): New.
27213 (enabled): Also check mmx_isa.
27214 * config/i386/mmx.md (any_s_truncate): New code iterator.
27215 (s_trunsuffix): New code attr.
27216 (mmx_packsswb): Removed.
27217 (mmx_packssdw): Likewise.
27218 (mmx_packuswb): Likewise.
27219 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27220 MMX packsswb/packuswb with SSE2.
27221 (mmx_packssdw): Likewise.
27222 * config/i386/predicates.md (register_mmxmem_operand): New.
27224 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27227 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27228 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27229 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27230 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27231 (ix86_vector_mode_supported_p): Likewise.
27232 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27234 2019-05-15 Martin Liska <mliska@suse.cz>
27236 PR middle-end/90478
27237 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27238 Check for overflow.
27240 2019-05-15 Richard Biener <rguenther@suse.de>
27242 * tree-into-ssa.c (pass_build_ssa::execute): Run
27243 update_address_taken before going into SSA.
27245 2019-05-15 Richard Biener <rguenther@suse.de>
27247 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27248 as __BIT_FIELD_REF with type with -gimple.
27250 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27252 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27253 semantically equivalent branches (left over after prior refactorings).
27255 2019-05-15 Richard Biener <rguenther@suse.de>
27257 PR tree-optimization/88828
27258 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27261 2019-05-14 Richard Biener <rguenther@suse.de>
27263 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27264 as __VIEW_CONVERT with -gimple.
27266 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27269 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27272 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27274 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27275 define_split to become a define_insn_and_split.
27277 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27279 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27281 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27282 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27283 (sibcall_epilogue): Adjust.
27284 (epilogue): Adjust.
27286 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27288 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27289 to unsupported ones.
27290 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27291 * config.host: Likewise.
27292 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27293 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27294 __svr4__]: Remove "brand" fallback.
27295 [!KSTAT_DATA_STRING]: Remove.
27296 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27298 (comdat_group): Likewise.
27299 (set_have_as_tls): Likewise.
27300 (gcc_cv_target_dl_iterate_phdr): Likewise.
27301 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27302 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27303 * configure: Regenerate.
27304 * doc/install.texi: Simplify Solaris target triplets.
27305 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27306 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27307 Remove Solaris 10 references.
27308 Remove obsolete Solaris bug reference.
27309 (Specific, sparc-sun-solaris2.10): Remove.
27311 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27313 * config/i386/i386.md (any_div): New code iterator.
27314 (paired_mod): New code attribute.
27315 (sgnprefix): Handle DIV and UDIV RTXes.
27317 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27318 and udivmod<mode>4 patterns using any_div code iterator.
27319 (divmod splitters): Macroize splitters using any_div code iterator.
27320 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27321 (*udivmodsi4_pow2_zext_2): Ditto.
27322 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27323 and *udivmod<mode>4_noext patterns using any_div code iterator.
27324 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27325 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27326 patterns using any_div code iterator.
27327 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27328 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27329 patterns using any_div code iterator.
27330 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27331 udivmodhiqi3 patterns using any_extend code iterator.
27333 2019-05-14 Richard Biener <rguenther@suse.de>
27334 H.J. Lu <hongjiu.lu@intel.com>
27336 PR tree-optimization/88828
27337 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27338 permuting in a single non-constant element not extracted
27341 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27343 * internal-fn.def (SIGNBIT): New.
27344 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27346 (signbitv4sf2): Likewise.
27348 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27351 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27352 next insn when the SRC reg is dead.
27354 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27356 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27357 (alloc_cand_and_find_basis): Ditto.
27358 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27359 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27360 (create_add_imm_cand, slsr_process_cast): Ditto.
27361 (slsr_process_copy, replace_mult_candidate): Ditto.
27362 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27363 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27364 (pass_strength_reduction::execute): Init the first NULL element.
27366 2019-05-13 Nathan Sidwell <nathan@acm.org>
27368 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27369 (run_attempt): Reformat line break.
27371 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27374 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27375 data registers in sibcall epilogues.
27376 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27378 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27381 * configure.ac (--enable-frame-pointer):
27382 Disable by default for cygwin and mingw.
27383 * configure: Regenerate.
27385 2019-05-13 Nathan Sidwell <nathan@acm.org>
27387 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27389 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27390 (gen_member_die): Move abstract origin check earlier. Only VARs
27391 can be static_inline_p. Simplify splicing control flow.
27393 2019-05-13 Richard Biener <rguenther@suse.de>
27395 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27397 (vect_build_slp_tree_1): Likewise.
27399 2019-05-13 Richard Biener <rguenther@suse.de>
27401 PR tree-optimization/90402
27402 * tree-if-conv.c (tree_if_conversion): Value number only
27403 the loop body by making the latch an exit of the region
27405 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27407 (do_rpo_vn): Deal with multiple edges into the entry block
27408 that are not backedges inside the region by skipping PHIs
27409 of the entry block.
27411 2019-05-13 Richard Biener <rguenther@suse.de>
27413 PR tree-optimization/90316
27414 * tree-ssa-pre.c (insert_aux): Fold into ...
27415 (insert): ... this function. Use a RPO walk to reduce the
27416 number of required iterations.
27418 2019-05-13 Martin Liska <mliska@suse.cz>
27420 PR tree-optimization/90416
27421 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27422 string instead of passing the second part as va_arg argument.
27424 2019-05-13 Martin Liska <mliska@suse.cz>
27426 PR gcov-profile/90380
27427 * gcov.c (handle_cycle): Do not support zero cycle count,
27428 it should not be possible.
27429 (path_contains_zero_cycle_arc): New function.
27430 (circuit): Ignore zero cycle arc counts.
27432 2019-05-13 Martin Liska <mliska@suse.cz>
27434 PR gcov-profile/90380
27435 * gcov.c (enum loop_type): Remove the enum and
27437 (handle_cycle): Assert that we should not reach
27439 (circuit): Use loop_found instead of a tri-state loop_type.
27440 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27443 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27446 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27447 (ix86_output_indirect_branch_via_reg): Use output mechanism
27448 accounting for __USER_LABEL_PREFIX__.
27449 (ix86_output_indirect_branch_via_push): Likewise.
27450 (ix86_output_function_return): Likewise.
27451 (ix86_output_indirect_function_return): Likewise.
27453 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27455 * doc/md.texi: Document use of code attributes in rtx patterns.
27456 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27457 * read-rtl.c (find_code): Split out search loops into...
27458 (maybe_find_code): ...this new function.
27459 (check_code_iterator): Make the error message more informative.
27460 (check_code_attribute): New function.
27461 (rtx_reader::rtx_alloc_for_name): Likewise.
27462 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27463 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27464 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27465 <max_opp> directly as an rtx code instead of via a match_operator.
27466 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27467 (<su>abd<mode>_3): Update accordingly.
27469 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27471 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27472 is given, print the state of the EH "save world" computation for
27475 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27478 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27479 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27481 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27483 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27484 Use pinsrd for TARGET_SSE4_1.
27485 * config/i386/sse.md (movdi_to_sse): Ditto.
27487 2019-05-10 Richard Biener <rguenther@suse.de>
27489 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27490 (do_rpo_vn): Initialize next_value_id.
27492 2019-05-10 Martin Liska <mliska@suse.cz>
27494 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27497 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27499 PR tree-optimization/90385
27500 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27501 arguments of the exit phis.
27504 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27505 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27507 (copy_tree_body_r): Likewise.
27508 (copy_fn): Set id.do_not_fold to true.
27510 2019-05-10 Martin Liska <mliska@suse.cz>
27512 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27513 Reapply changes from r269790.
27515 2019-05-10 Martin Liska <mliska@suse.cz>
27517 PR middle-end/90340
27518 * doc/invoke.texi: New params.
27519 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27520 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27521 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27523 * tree-switch-conversion.h (struct jump_table_cluster):
27526 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27528 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27530 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27532 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27534 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27536 PR rtl-optimization/88879
27537 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27539 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27542 * config/arm/arm.c (callee_saved_reg_p): Move before
27543 thumb_find_work_register.
27544 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27545 thumb_find_work_register. Only call df_get_live_out once.
27546 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27547 (thumb_find_work_register): Use
27548 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27549 algorithms to locate a spare call clobbered reg.
27551 2019-05-09 Martin Liska <mliska@suse.cz>
27553 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27554 and MAX_EXPR in GIMPLE FE format.
27556 2019-05-09 Martin Liska <mliska@suse.cz>
27558 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27559 * gimple-pretty-print.c (dump_gimple_bb_header):
27561 (pp_cfg_jump): Dump edge probability.
27562 * profile-count.c (profile_quality_as_string): Simplify
27563 with a static array.
27564 (parse_profile_quality): New function.
27565 (profile_count::dump): Simplify with a static array.
27566 (profile_count::from_gcov_type): Add new argument.
27567 * profile-count.h (parse_profile_quality): Likewise.
27568 * predict.h (set_hot_bb_threshold): New.
27569 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27571 * predict.c (get_hot_bb_threshold): Set from the new param.
27572 (set_hot_bb_threshold): New.
27574 2019-05-09 Richard Biener <rguenther@suse.de>
27576 PR tree-optimization/90395
27577 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27578 rewrite vector stores that throw internally.
27580 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27582 * cif-code.def (CHKP): Remove.
27585 * configure.ac (--enable-frame-pointer): Disable by default for
27587 * configure: Regenerate.
27589 2019-05-09 Alan Modra <amodra@gmail.com>
27592 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27593 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27594 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27595 cost for general <-> vsx when direct moves are available.
27596 Cost union classes at minimal cost for any reg in the class.
27597 Correct calculation for moves between vsx, float, and altivec.
27598 Don't return a low cost for moves between special regs. Don't
27599 use hard coded register numbers.
27600 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27601 (rs6000_ira_change_pseudo_allocno_class): New function.
27602 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27603 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27605 (movsi_internal1): Don't disparage vector alternatives.
27606 (mov<mode>_internal): Likewise, excepting alternative that
27608 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27609 we <- b alternative.
27611 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27614 PR tree-optimization/89060
27615 * tree-ssa-live.h (live_vars_map): New typedef.
27616 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27617 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27618 (struct compute_live_vars_data): New type.
27619 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27620 live_vars_at_stmt, destroy_live_vars): New functions.
27621 * tree-tailcall.c: Include tree-ssa-live.h.
27622 (live_vars, live_vars_vec): New global variables.
27623 (find_tail_calls): Perform variable life analysis before punting.
27624 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27625 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27627 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27628 Perform variable life analysis to select variables that really need
27630 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27631 instead set id->eh_landing_pad_dest and assert it is the same.
27632 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27634 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27635 Richard Earnshaw <rearnsha@arm.com>
27638 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27640 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27641 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27642 register if both the epilogue and prologue can use call-clobbered
27644 (thumb1_unexpanded_epilogue): Use
27645 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27646 picking temporaries for restoring high regs to match that of the
27647 prologue where possible.
27648 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27649 the list of work registers. Detect if the return address is still live
27650 at the end of the prologue and avoid using it for a work register if so.
27651 If the return address is not live, add LR to the list of pushable regs
27652 after the first pass.
27654 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27656 PR tree-optimization/90078
27657 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27658 (INFTY): Increase the value for infinite cost.
27659 (struct comp_cost): Promote type of members to int64_t.
27660 (infinite_cost): Don't set complexity in initialization.
27661 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27662 overflows to infinite_cost.
27663 (adjust_setup_cost): Promote type of parameter and cost computation
27665 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27667 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27668 cost computation to int64_t.
27669 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27670 int64_t's format specifier in dump.
27672 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27674 PR tree-optimization/90240
27675 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27676 with respect to scaling factor pre-computed for each basic block.
27677 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27678 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27679 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27680 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27681 live range for array of loop's basic blocks. Cleanup aux field of
27682 loop's basic blocks.
27684 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27686 PR tree-optimization/90356
27687 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27689 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27691 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27692 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27693 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27694 (ix86_handle_option): Handle -mavx512bf16.
27695 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27697 * config/i386/avx512bf16vlintrin.h: New.
27698 * config/i386/avx512bf16intrin.h: New.
27699 * config/i386/cpuid.h (bit_AVX512BF16): New.
27700 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27701 * config/i386/i386-builtin-types.def: Add new types.
27702 * config/i386/i386-builtin.def: Add new builtins.
27703 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27705 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27706 (ix86_option_override_internal): Handle BF16.
27707 (ix86_valid_target_attribute_inner_p): Ditto.
27708 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27709 * config/i386/i386-builtin.c (enum processor_features): Add
27711 (static const _isa_names_table isa_names_table): Ditto.
27712 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27713 (PTA_AVX512BF16): Ditto.
27714 * config/i386/i386.opt: Add -mavx512bf16.
27715 * config/i386/immintrin.h: Include avx512bf16intrin.h
27716 and avx512bf16vlintrin.h.
27717 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27718 avx512f_cvtneps2bf16_<mode><mask_name>,
27719 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27720 * config/i386/subst.md (mask_half): Add new subst.
27721 * doc/invoke.texi: Document -mavx512bf16.
27723 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27725 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27726 Delete declaration.
27727 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27728 (rs6000_debug_legitimize_reload_address): Delete.
27729 (rs6000_legitimize_reload_address_ptr): Delete.
27730 (rs6000_option_override_internal): Adjust.
27731 (mem_operand_gpr): Adjust comment.
27732 (legitimate_lo_sum_address_p): Ditto.
27733 (rs6000_legitimize_reload_address): Delete.
27734 (rs6000_debug_legitimize_reload_address): Delete.
27735 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27737 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27740 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27741 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27742 to compute vector element selector for both constant and variable
27745 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27747 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27748 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27749 ashrdi3_cvt using SWI48 mode iterator.
27751 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27753 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27754 (aarch64_<su>abd<mode>_3): Likewise.
27755 (*aarch64_<su>abd<mode>_3): New define_insn.
27756 (<sur>sad<vsi2qi>): New define_expand.
27757 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27758 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27759 (build_vect_cond_expr): Likewise.
27761 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27763 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27764 clobbers outside of accessible_reg_set.
27765 * config/i386/i386.c (ix86_conditional_register_usage):
27766 Disable register sets by clearing corresponding bits in
27767 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27768 call_used_regs and don't clear corresponding reg_names array members.
27770 2019-05-07 Richard Biener <rguenther@suse.de>
27772 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27773 not specified still compute a comp_vectype for invariant
27776 2019-05-07 Richard Biener <rguenther@suse.de>
27778 PR tree-optimization/90316
27779 * tree-ssa-pre.c (translate_vuse_through_block): When
27780 same_valid is NULL do not bother to search for a virtual
27782 (phi_translate_1): When operands changed we cannot keep
27783 the same value-number so do not bother to ask whether
27784 that's possible from translate_vuse_through_block.
27786 2019-05-07 Martin Liska <mliska@suse.cz>
27788 * bitmap.c (bitmap_register): Come up with
27789 alloc_descriptor_max_uid and assign it for
27791 (register_overhead): Use get_descriptor as
27793 (release_overhead): New.
27794 (bitmap_elem_to_freelist): Call it.
27795 (bitmap_elt_clear_from): Likewise.
27796 (bitmap_obstack_free): Likewise.
27797 (bitmap_move): Sensitively release memory.
27798 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27799 (bitmap_initialize): Initialize alloc_descriptor to zero.
27800 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27802 2019-05-07 Richard Biener <rguenther@suse.de>
27804 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27805 we build a SLP node. Remove max_size and limiting.
27806 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27808 2019-05-07 Richard Biener <rguenther@suse.de>
27810 PR tree-optimization/90316
27811 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27812 limit by reference.
27813 (walk_non_aliased_vuses): Take walking limit argument.
27814 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27815 walking if it is reached instead of just counting.
27816 (get_continuation_for_phi): Likewise.
27817 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27818 limiting to the callback.
27819 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27820 (vn_reference_lookup_3): Likewise.
27821 (vn_reference_lookup_pieces): Likewise.
27822 (vn_reference_lookup): Likewise.
27823 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27824 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27825 (avail_exprs_stack::lookup_avail_expr): Likewise.
27827 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27829 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27830 for comparaible types in the second direction even if first one
27831 hits incomparable type.
27833 2019-05-07 Richard Biener <rguenther@suse.de>
27836 * lto-wrapper.c (debug_objcopy): Use the original filename
27837 including archive offset for the filename used for -save-temps.
27839 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27841 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27844 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27845 Hongtao Liu <hongtao.liu@intel.com>
27849 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27850 Modified, original implementation isn't correct.
27852 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27854 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27855 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27856 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27857 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27858 (FRAME_POINTER_REGNUM): Change numbering.
27859 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27860 (alt_reg_names): Adjust.
27861 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27863 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27864 (DWARF_FRAME_REGISTERS): Delete.
27865 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27866 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27868 (REG_ALLOC_ORDER): Adjust.
27869 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27870 (REG_CLASS_CONTENTS): Adjust.
27871 (RETURN_ADDR_RTX): Change comment.
27872 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27874 (REGISTER_NAMES): Adjust.
27875 (ADDITIONAL_REGISTER_NAMES): Adjust.
27876 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27878 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27880 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27882 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27883 (DWARF_FRAME_REGISTERS): Adjust.
27884 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27886 (REG_ALLOC_ORDER): Adjust.
27887 (enum reg_class): Delete SPR_REGS.
27888 (REG_CLASS_NAMES): Delete SPR_REGS.
27889 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27890 (REGISTER_NAMES): Adjust.
27891 (ADDITIONAL_REGISTER_NAMES): Adjust.
27892 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27893 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27894 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27895 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27896 (htm_spr_regno): Delete.
27897 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27899 (rs6000_dbx_register_number): Adjust.
27901 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27903 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27905 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27907 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27908 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27910 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27912 PR tree-optimization/88709
27913 PR tree-optimization/90271
27914 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27915 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27916 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27918 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27919 of the store merging group is larger than
27920 PARAM_STORE_MERGING_MAX_SIZE parameter.
27921 (split_group): Add bzero_first argument. If set, always emit first
27922 the first store which must be = {} of the whole area and then for the
27923 rest of the stores consider all zero bytes as paddings.
27924 (imm_store_chain_info::output_merged_store): Check if first store
27925 is = {} of the whole area and if yes, determine which setting of
27926 bzero_first for split_group gives smaller number of stores. Adjust
27927 split_group callers.
27928 (lhs_valid_for_store_merging_p): Allow decls.
27929 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
27931 (pass_store_merging::process_store): Likewise.
27933 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
27936 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
27937 handling of V1TImode.
27939 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
27942 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
27943 and enable_frame_pointer ...
27944 * configure.ac: ... here. Update help strings for
27945 --enable-frame-pointer.
27946 * configure: Regenerate.
27947 * config/i386/i386-options.c (ix86_option_override_internal): Remove
27948 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
27949 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
27950 (USE_X86_64_FRAME_POINTER): Ditto.
27952 2019-05-06 Martin Liska <mliska@suse.cz>
27954 * config.gcc: Append to target_gtfiles and fix indentation.
27956 2019-05-06 Richard Biener <rguenther@suse.de>
27958 PR tree-optimization/90358
27959 * tree-vect-stmts.c (get_group_load_store_type): Properly
27960 detect unused upper half of load.
27961 (vectorizable_load): Likewise.
27963 2019-05-06 Richard Biener <rguenther@suse.de>
27965 PR tree-optimization/88828
27966 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
27967 (simplify_vector_constructor): ...here. Handle constants in
27970 2019-05-06 Richard Biener <rguenther@suse.de>
27972 PR tree-optimization/90328
27973 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
27974 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
27975 is valid in the loop nest before using it.
27976 (initialize_data_dependence_relation): Adjust.
27977 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
27978 loop as loop-nest to dr_may_alias_p.
27980 2019-05-06 Richard Biener <rguenther@suse.de>
27982 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
27984 2019-05-06 Richard Biener <rguenther@suse.de>
27986 PR tree-optimization/90316
27987 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
27988 compute target on demand.
27989 (get_continuation_for_phi): Remove code walking stmts to
27990 get to a target virtual operand which could end up being
27993 2019-05-06 Martin Liska <mliska@suse.cz>
27996 * config/i386/i386-options.c (ix86_option_override_internal): Error only
27997 when -mabi is selected to a non-default version.
27999 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28000 Martin Liska <mliska@suse.cz>
28002 * Makefile.in: Add lto-dump.texi.
28003 * cgraph.h: Add new functions get_visibility_string and
28004 get_symtab_type_string.
28005 * doc/gcc.texi: Include lto-dump section.
28006 * doc/lto-dump.texi: New file.
28007 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28008 (parse_dump_option): Factor out this function.
28009 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28010 (parse_dump_option): Export the function.
28011 * symtab.c (symtab_node::get_visibility_string): New function.
28012 (symtab_node::get_symtab_type_string): Likewise.
28014 2019-05-06 Martin Liska <mliska@suse.cz>
28016 * config/i386/i386-builtins.c: New file.
28017 * config/i386/i386-builtins.h: New file.
28018 * config/i386/i386-expand.c: New file.
28019 * config/i386/i386-expand.h: New file.
28020 * config/i386/i386-features.c: New file.
28021 * config/i386/i386-features.h: New file.
28022 * config/i386/i386-options.c: New file.
28023 * config/i386/i386-options.h: New file.
28024 * config.gcc: Add new files into extra_objs and
28026 * config/i386/i386.c: Split content of the file
28027 into newly introduced files.
28028 * config/i386/i386.h: Declare common variables
28030 * config/i386/t-i386: Define dependencies for new files.
28032 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28035 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28036 Restrict 'all' variant to 32-bit configurations.
28037 (unaligned_loadhiu): Likewise.
28038 (unaligned_storehi): Likewise.
28039 (unaligned_storesi): Likewise.
28040 (unaligned_loadhis): Disable when compiling for thumb1.
28042 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28044 PR tree-optimization/90269
28045 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28048 2019-05-03 Martin Liska <mliska@suse.cz>
28050 * hash-map.h: Add is_empty function.
28051 * hash-set.h: Likewise.
28052 * hash-table.h: Likewise.
28053 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28054 elements () == 0 (and similar usages).
28055 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28056 * gimplify.c (gimplify_bind_expr): Likewise.
28057 (gimplify_switch_expr): Likewise.
28058 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28059 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28060 * postreload-gcse.c (dump_hash_table): Likewise.
28061 (gcse_after_reload_main): Likewise.
28062 * predict.c (combine_predictions_for_bb): Likewise.
28063 * tree-parloops.c (reduction_phi): Likewise.
28064 (separate_decls_in_region): Likewise.
28065 (transform_to_exit_first_loop): Likewise.
28066 (gen_parallel_loop): Likewise.
28067 (gather_scalar_reductions): Likewise.
28068 (try_create_reduction_list): Likewise.
28069 * var-tracking.c (dump_vars): Likewise.
28070 (emit_notes_for_changes): Likewise.
28071 (vt_emit_notes): Likewise.
28073 2019-05-03 Richard Biener <rguenther@suse.de>
28075 PR tree-optimization/90316
28076 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28079 2019-05-03 Richard Biener <rguenther@suse.de>
28081 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28082 peeling for gaps by loading only lower halves of vectors
28084 (vectorizable_load): Likewise.
28086 2019-05-03 Richard Biener <rguenther@suse.de>
28088 PR middle-end/89518
28089 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28091 2019-05-03 Richard Biener <rguenther@suse.de>
28093 PR middle-end/87314
28094 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28095 Handle STRING_CST vs DECL or STRING_CST.
28097 2019-05-03 Richard Biener <rguenther@suse.de>
28099 PR tree-optimization/88963
28100 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28101 vector loads feeding only BIT_FIELD_REFs to component
28102 loads. Rewrite stores fed by CONSTRUCTORs to component
28105 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28107 * opts.h (finish_options): Remove lang_mask argument.
28108 (print_help, help_option_argument): Declare.
28109 * opts.c (print_help): Remove forward declaration, no longer static.
28110 (finish_options): Remove lang_mask argument, don't call print_help
28112 * opts-global.c (decode_options): Adjust finish_option caller, call
28115 PR tree-optimization/90303
28116 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28117 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28119 2019-05-03 Richard Biener <rguenther@suse.de>
28121 PR tree-optimization/89698
28122 * gimple-fold.c (canonicalize_constructor_val): Early out
28123 for constants, handle unfolded INTEGER_CSTs as they appear in
28124 C++ virtual table ctors.
28126 2019-05-03 Richard Biener <rguenther@suse.de>
28128 * passes.c (execute_function_todo): Remove dead code.
28130 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28132 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28133 the internal register number, for any "real" register.
28135 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28137 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28138 correct numbers for TFHAR, TFIAR, TEXASR.
28140 2019-05-02 Richard Biener <rguenther@suse.de>
28142 PR tree-optimization/89653
28143 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28144 update-address-taken before the pass.
28145 * passes.def (pass_tree_loop_init): Put comment before it.
28147 2019-05-02 Richard Biener <rguenther@suse.de>
28149 PR tree-optimization/89509
28150 * tree-ssa-structalias.c (compute_dependence_clique): Look
28151 at the first subvar when determining whether it is restrict.
28153 2019-05-02 Richard Biener <rguenther@suse.de>
28155 PR tree-optimization/90273
28156 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28157 useless debug stmts.
28159 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28161 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28163 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28165 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28166 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28167 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28168 (vectorizable_reduction): Use the functions above to vectorize in a
28169 fully masked loop codes that don't have a conditional internal
28172 2019-05-02 Martin Liska <mliska@suse.cz>
28174 * cgraphclones.c: Call valid_attribute_p with 1 for
28176 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28177 it's for target attribute.
28178 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28179 Add new boolean argument.
28180 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28182 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28183 to ix86_valid_target_attribute_inner_p.
28184 (ix86_valid_target_attribute_p): Pass flags argument to
28185 ix86_valid_target_attribute_inner_p.
28186 (get_builtin_code_for_version): Use 0 as it's target attribute.
28188 2019-05-02 Martin Liska <mliska@suse.cz>
28190 * gcc.c (process_command): Add dummy file only
28192 * opts-global.c (decode_options): Pass lang_mask.
28193 * opts.c (print_help): New function.
28194 (finish_options): Print --help if help_option_argument
28196 (common_handle_option): Factor out content of OPT__help_
28198 * opts.h (finish_options): Add new argument.
28200 2019-05-02 Martin Liska <mliska@suse.cz>
28203 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28204 With -minline-all-stringops use inline expansion using 4B loop.
28205 * doc/invoke.texi: Document the change of
28206 -minline-all-stringops.
28208 2019-05-01 Jeff Law <law@redhat.com>
28210 PR tree-optimization/88797
28211 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28212 PHI feeds a conditional on the RHS of an assignment.
28214 2019-04-30 Andrew Waterman <andrew@sifive.com>
28215 Jim Wilson <jimw@sifive.com>
28217 * config/riscv/constraints.md (L): New.
28218 * config/riscv/predicates.md (lui_operand): New.
28219 (sfb_alu_operand): New.
28220 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28221 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28222 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28223 * config/riscv/risc.md (type): Add sfb_alu.
28224 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28225 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28226 (branch_zero<mode>): Delete.
28227 (mov<mode>cc): New.
28228 (mov<GPR:mode><X:mode>cc): Likewise.
28229 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28231 2019-04-30 Nathan Sidwell <nathan@acm.org>
28233 * tree.h (MARK_TS_EXP): New.
28235 2019-04-30 Martin Liska <mliska@suse.cz>
28237 * opts.c (enable_warning_as_error): Provide hints
28238 for unknown options.
28240 2019-04-30 Martin Liska <mliska@suse.cz>
28243 * doc/invoke.texi: Add missing dash for gas-locview-support
28244 and gno-as-locview-support.
28246 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28249 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28250 whitespace at the start of target attribute string.
28252 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28255 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28256 Define __ARM_FEATURE_ATOMICS.
28258 2019-04-30 Martin Liska <mliska@suse.cz>
28260 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28261 into built_in_function enum. Remove code for endp == 2 and
28262 use BUILT_IN_* constants.
28263 (gimple_fold_builtin): Call the function with fcode.
28265 2019-04-30 Martin Liska <mliska@suse.cz>
28267 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28268 DECL_FUNCTION_CODE into ix86_builtins enum before
28269 the switch statement.
28271 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28273 PR tree-optimization/89475
28274 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28277 2019-04-30 Martin Liska <mliska@suse.cz>
28279 PR translation/90274
28280 * opts.c (print_filtered_help): Wrap string in _(...).
28282 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28284 PR tree-optimization/90240
28286 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28288 PR tree-optimization/90078
28289 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28290 checks for infinite_cost overflow.
28292 2019-04-29 Jeff Law <law@redhat.com>
28294 * passes.def: Move -Wrestrict pass after copy propagation.
28296 2019-04-29 Maya Rashish <coypu@sdf.org>
28298 * config.gcc (default_gnu_indirect_function): Default to yes
28299 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28300 sparc*-*-netbsd*, x86_64-*-netbsd*.
28302 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28304 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28305 where cond2 is NE_EXPR.
28306 (is_value_included_in): Update comment.
28308 2019-04-29 Richard Biener <rguenther@suse.de>
28310 PR tree-optimization/90278
28311 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28312 EH on comparison simplification.
28314 2019-04-29 Jason Merrill <jason@redhat.com>
28316 PR c++/82081 - tail call optimization breaks noexcept
28317 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28318 nothrow function to a might-throw function into a tail call.
28320 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28322 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28323 (DDR_INNER_LOOP): Likewise.
28324 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28325 (initialize_data_dependence_relation): Likewise.
28326 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28328 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28330 PR rtl-optimization/90257
28331 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28335 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28339 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28342 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28345 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28347 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28349 2019-04-29 Richard Biener <rguenther@suse.de>
28351 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28354 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28356 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28357 varasm.h, and netbsd-protos.h.
28359 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28362 * config/i386/i386-protos.h (ix86_data_alignment): Change
28363 the second argument type to unsigned int.
28364 * config/i386/i386.c (ix86_data_alignment): Change "align"
28365 argument type to unsigned int.
28367 2019-04-27 Martin Liska <mliska@suse.cz>
28369 PR middle-end/90258
28370 * opt-suggestions.c (option_proposer::build_option_suggestions):
28371 When get_valid_option_values returns empty values, add the
28372 misspelling candidate.
28374 2019-04-26 Jim Wilson <jimw@sifive.com>
28376 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28378 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28379 Pass orig_mode to riscv_build_integer.
28380 (riscv_split_integer): Pass mode to riscv_move_integer.
28381 (riscv_legitimize_const_move): Likewise.
28382 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28383 promoted_mode. Replace force_reg call with code to load constant into
28384 promoted reg and then subreg it for the store.
28385 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28386 riscv_move_integer.
28388 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28390 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28393 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28395 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28396 commentary about the encoding of precision.
28398 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28400 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28401 * config/i386/t-freebsd64: New file.
28402 * config.gcc: Add the t-freebsd64 for multilib support.
28404 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28406 * doc/extend.texi (vector_size): Add missing comma after @xref.
28408 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28410 * BASE-VER: Set to 10.0.0.
28412 2019-04-25 Richard Biener <rguenther@suse.de>
28414 PR middle-end/89765
28415 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28416 VIEW_CONVERT_EXPR into one operating on an rvalue.
28418 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28421 * config/i386/i386.c (feature_priority): Moved to file scope.
28422 (processor_features): Likewise.
28423 (processor_model): Likewise.
28424 (_arch_names_table): Likewise.
28425 (arch_names_table): Likewise.
28426 (_feature_list): Removed.
28427 (feature_list): Likewise.
28428 (_isa_names_table): Moved to file scope. Add priority.
28429 (isa_names_table): Likewise.
28430 (get_builtin_code_for_version): Replace feature_list with
28431 isa_names_table. Update error message for P_ZERO priority.
28433 2019-04-25 Richard Biener <rguenther@suse.de>
28435 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28436 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28438 2019-04-24 Jeff Law <law@redhat.com>
28440 PR tree-optimization/90037
28441 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28442 * passes.def: Replace all instance of phi-only cprop with the
28443 lattice propagator. Move propagation pass from after erroneous
28444 path isolation to before erroneous path isolation.
28445 * tree-ssa-phionlycprop.c: Remove.
28447 2019-04-24 Richard Biener <rguenther@suse.de>
28449 PR middle-end/90213
28450 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28451 by size and BITS_PER_UNIT on poly-wide-ints.
28453 2019-04-25 Richard Biener <rguenther@suse.de>
28455 PR middle-end/90194
28456 * match.pd: Add pattern to simplify view-conversion of an
28459 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28461 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28462 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28463 for Go on 32 bit AIX.
28464 * config/rs6000/aix72.h: Likewise.
28466 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28469 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28470 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28472 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28475 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28476 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28477 for restored hard frame pointer.
28478 (s390_sched_dependencies_evaluation): Implement new target hook.
28479 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28481 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28483 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28484 * config/arc/arc.c (arc_init): Cleanup warning message.
28485 (arc_override_options): Likewise.
28487 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28490 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28491 a register if both if_true and if_false are MEMs.
28493 PR tree-optimization/90208
28494 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28495 after labels of new_bb, not before them.
28497 PR tree-optimization/90211
28498 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28499 which are not SSA_NAMEs.
28501 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28503 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28505 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28507 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28509 PR rtl-optimization/87979
28510 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28513 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28515 PR rtl-optimization/84032
28516 * modulo-sched.c (ps_insn_find_column): Change condition so that
28517 branch will always be the last insn in a row inside partial
28520 2019-04-23 Richard Biener <rguenther@suse.de>
28523 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28524 dest_single_pred_p argument.
28525 (remove_forwarder_block): Adjust.
28526 (remove_forwarder_block_with_phi): Likewise.
28528 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28529 Bernd Edlinger <bernd.edlinger@hotmail.de>
28530 Jakub Jelinek <jakub@redhat.com>
28533 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28534 if used with general-regs-only.
28535 (arm_conditional_register_usage): Don't add non-general regs if
28537 (arm_valid_target_attribute_rec): Handle general-regs-only.
28538 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28540 (TARGET_HARD_FLOAT_SUB): Define.
28541 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28542 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28543 (TARGET_REALLY_IWMMXT2): Likewise.
28544 * config/arm/arm.opt: Add -mgeneral-regs-only.
28545 * doc/extend.texi: Document ARM general-regs-only target.
28546 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28548 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28550 PR tree-optimization/90078
28551 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28552 checks for infinite_cost overflow.
28554 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28556 PR tree-optimization/90021
28557 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28558 and check univariate against it.
28559 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28560 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28562 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28566 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28569 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28572 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28574 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28576 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28578 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28579 names using operand format, rather than hard-wired.
28580 (speculation_barrier): Likewise.
28582 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28584 PR tree-optimization/88055
28585 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28586 (gen_one_condition): Use it if !HONOR_NANS.
28588 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28590 PR middle-end/90139
28591 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28592 assign_temp instead of gen_reg_rtx.
28594 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28596 PR translation/90118
28597 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28598 Add missing space before %<.
28600 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28602 PR rtl-optimization/87871
28603 * ira-lives.c (make_object_dead): Don't add conflicts to
28604 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28606 2019-04-18 Martin Sebor <msebor@redhat.com>
28608 PR middle-end/89797
28609 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28610 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28611 assuming type size fits in SHWI.
28613 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28616 * ipa-inline.c (flatten_function): New parameter UPDATE.
28617 (ipa_inline, early_inliner): Use it.
28619 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28621 * fold-const.c (int_const_binop): Return early on failure.
28623 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28625 PR middle-end/85164
28626 * combine.c (force_int_to_mode): Cast the argument rather than
28627 the result of known_alignment.
28628 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28630 2019-04-18 Richard Biener <rguenther@suse.de>
28633 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28635 (remove_forwarder_block): ... here.
28636 (remove_forwarder_block_with_phi): Also move debug stmts here.
28638 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28640 PR translation/79183
28641 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28642 inform where appropriate.
28644 2019-04-18 Richard Biener <rguenther@suse.de>
28646 * tree.c (get_qualified_type): Put found type variants at the
28647 head of the variant list.
28649 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28651 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28653 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28656 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28657 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28658 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28659 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28660 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28662 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28664 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28665 even for allocno's with no conflicts.
28666 (print_conflicts): Print an extra newline.
28668 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28670 * auto-inc-dec.c (attempt_change): Set the alignment of the
28671 temporary memory to that of the original.
28673 2019-04-17 Joao Moreira <jmoreira@suse.de>
28675 * targhooks.c (default_print_patchable_function_entry): Emit
28676 __patchable_function_entries section with writable flags to allow
28677 relocation resolution.
28679 2019-04-17 Jonny Grant <jg@jguk.org>
28681 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28683 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28685 PR middle-end/90095
28686 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28687 on lowpart SUBREGs.
28689 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28691 * config/arc/arc.c (arc_init): Format diagnostic string.
28692 (arc_override_options): Likewise.
28693 (check_if_valid_regno_const): Likewise.
28694 (arc_reorg): Likewise.
28696 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28699 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28701 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28703 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28704 (*movdi_update1): Use Pmode.
28705 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28706 (movdi_<mode>_update_stack): Rename to ...
28707 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28709 (*movsi_update1): Use Pmode.
28710 (*movsi_update2): Use Pmode.
28711 (movsi_update): Rename to ...
28712 (movsi_<mode>_update): ... this. Use Pmode.
28713 (movsi_update_stack): Fix condition.
28714 (*movhi_update1): Use Pmode. Fix argument to
28715 avoiding_indexed_address_p.
28716 (*movhi_update2): Ditto.
28717 (*movhi_update3): Ditto.
28718 (*movhi_update4): Ditto.
28719 (*movqi_update1): Ditto.
28720 (*movqi_update2): Ditto.
28721 (*movqi_update3): Ditto.
28722 (*movsf_update1, *movdf_update1): Merge, rename to...
28723 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28724 avoiding_indexed_address_p. Add "size" attribute.
28725 (*movsf_update2, *movdf_update2): Merge, rename to...
28726 (*mov<mode>_update2): This. Ditto.
28727 (*movsf_update3): Use Pmode. Fix argument to
28728 avoiding_indexed_address_p.
28729 (*movsf_update4): Ditto.
28730 (allocate_stack): Simplify condition. Adjust pattern names.
28732 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28735 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28736 whitespace at the start of target attribute string.
28738 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28741 * config/rs6000/power9.md: Add store forwarding bypass.
28743 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28746 * valtrack.c (dead_debug_insert_temp): Reset debug references
28747 to the return value of a call being removed.
28749 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28751 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28752 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28753 implement target hook.
28754 (arc_memory_move_cost): New function.
28755 (TARGET_REGISTER_MOVE_COST): Define.
28756 (TARGET_MEMORY_MOVE_COST): Likewise.
28757 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28758 (MEMORY_MOVE_COST): Likewise.
28760 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28762 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28763 (sibcall_value_insn): Likewise.
28764 * config/arc/constraints.md (Rs5): Remove.
28766 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28768 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28769 for last two fake registers.
28770 (arc_conditional_register_usage): Make sure fake frame and arg
28771 pointer regs are in general regs class.
28772 (FRAME_POINTER_MASK): Remove.
28773 (RETURN_ADDR_MASK): Remove.
28774 (arc_must_save_register): Use hard frame regnum.
28775 (frame_restore_reg): Use hard_frame_pointer_rtx.
28776 (arc_save_callee_saves): Likewise.
28777 (arc_restore_callee_saves): Likewise.
28778 (arc_save_callee_enter): Likewise.
28779 (arc_restore_callee_leave): Likewise.
28780 (arc_save_callee_milli): Likewise.
28781 (arc_eh_return_address_location): Likewise.
28782 (arc_check_multi): Use hard frame regnum.
28783 (arc_can_eliminate): Likewise.
28784 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28785 for register allocator.
28786 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28787 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28788 (FRAME_POINTER_REGNUM): Change it to a fake register.
28789 (HARD_FRAME_POINTER_REGNUM): Defined.
28790 (ARG_POINTER_REGNUM): Change it to a new fake register.
28791 (ELIMINABLE_REGS): Update.
28792 (REGISTER_NAMES): Update names.
28793 * config/arc/arc.md (LP_START): Remove.
28794 (LP_END): Likewise.
28795 (shift_si3_loop): Update pattern.
28797 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28799 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28800 to avoid delay slot scheduling.
28801 (arc_must_save_register): Don't save SP.
28802 * config/arc/arc.md (stack_tie): Remove.
28803 (UNSPEC_ARC_STKTIE): Likewise.
28805 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28806 Shiva Chen <shiva0217@gmail.com>
28808 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28809 code gen with large shift amount.
28811 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28813 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28816 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28819 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28820 print -m64/-mx32/-m32 if it is true.
28821 (ix86_debug_options, ix86_function_specific_print): Pass true as
28822 ADD_ABI_P to ix86_target_string.
28823 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28824 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28825 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28827 PR rtl-optimization/90082
28828 * dce.c (can_delete_call): New function.
28829 (deletable_insn_p, mark_insn): Use it.
28831 PR tree-optimization/90090
28832 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28834 (is_division_by_square): Likewise. Formatting fix.
28836 2019-04-16 Richard Biener <rguenther@suse.de>
28838 PR tree-optimization/56049
28839 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28840 equality check if alias-set zero will prevail.
28842 2019-04-15 Jeff Law <law@redhat.com>
28844 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28845 size and alignment as unsigned.
28847 2019-04-15 Richard Biener <rguenther@suse.de>
28850 * tree-loop-distribution.c (destroy_loop): Preserve correct
28853 2019-04-15 Richard Biener <rguenther@suse.de>
28855 PR tree-optimization/90071
28856 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28857 abnormal operands from def stmts.
28859 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28861 PR rtl-optimization/89794
28862 * combine.c (count_auto_inc): New function.
28863 (try_combine): Count how many auto_inc expressions there were in the
28864 original instructions. Ensure we have the same number in the new
28865 instructions. Remove the code that tried to ensure auto_inc side
28866 effects on i1 and i0 are not lost.
28868 2019-04-15 Richard Biener <rguenther@suse.de>
28871 * tree.h (auto_var_p): Declare.
28872 * tree.c (auto_var_p): New function, split out from ...
28873 (auto_var_in_fn_p): ... here.
28874 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28876 (new_var_info): Initialize it.
28877 (set_uids_in_ptset): Also set the shadow variable uid if required.
28878 (ipa_pta_execute): Postprocess points-to solutions assigning
28879 shadow variable uids for locals that may reach their containing
28880 function recursively.
28881 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28882 assert but instead check whether the points-to solution is
28885 2019-04-15 Martin Jambor <mjambor@suse.cz>
28888 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28891 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28893 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28895 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28896 Kito Cheng <kito.cheng@gmail.com>
28897 Shiva Chen <shiva0217@gmail.com>
28899 * config/nds32/nds32-md-auxiliary.c
28900 (nds32_legitimize_pic_address): Use new PIC pattern.
28901 (nds32_legitimize_tls_address): Use new TLS pattern.
28902 (nds32_output_symrel): New.
28903 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28904 (nds32_alloc_relax_group_id): Ditto.
28905 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28906 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28908 (nds32_group_tls_insn): Ditto.
28909 (nds32_group_float_insns): Ditto.
28910 * config/nds32/nds32.md (tls_le): New.
28913 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28915 * configure: Add nds32 target for dwarf2 debug_line checking.
28916 * configure.ac: Regenerated.
28918 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28921 * ipa-devirt.c (skip_in_fields_list_p): New.
28922 (odr_types_equivalent_p): Use it.
28924 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28927 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28928 instead of strncmp when checking for thumb and arm. Formatting fixes.
28930 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
28932 * doc/install.texi: Document --with-target-system-zlib.
28934 2019-04-12 Martin Sebor <msebor@redhat.com>
28940 * targhooks.c (default_vector_alignment): Avoid assuming
28941 argument fits in SHWI.
28942 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
28943 a shift expression.
28944 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
28946 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28948 PR rtl-optimization/89965
28949 * dce.c: Include rtl-iter.h.
28950 (struct check_argument_load_data): New type.
28951 (check_argument_load): New function.
28952 (find_call_stack_args): Check for loads from stack slots still tracked
28953 in sp_bytes and punt if any is found.
28955 * config/mips/loongson-mmiintrin.h: Fix up #error message.
28957 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
28959 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
28960 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
28962 2019-04-12 Martin Liska <mliska@suse.cz>
28964 PR middle-end/89970
28965 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
28967 (separate_attrs): Handle multiple 'default's.
28968 (expand_target_clones): Rework error handling code.
28970 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
28973 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
28974 mode of vector rather than mode of destination for move instruction.
28975 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
28976 Use QI inner mode with V16QI vector mode.
28978 2019-04-12 Jakub Jelinek <jakub@redhat.com>
28981 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
28982 "invalid %%t operand" in output_operand_lossage message.
28984 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
28986 * config/s390/predicates.md (permute_pattern_operand): New
28988 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
28989 operand for the permute pattern.
28990 ("*vec_perm<mode>"): New insn definition.
28991 ("bswap<mode>"): Generate the permute pattern operand in the
28992 expander and perform the operand reloads for pre arch13 level
28994 ("*bswap<mode>_emu"): Rename to ...
28995 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
28996 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
28997 Add the USE operand for the permute pattern.
28998 ("*vec_set_bswap_vec<mode>"): Likewise.
29000 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29003 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29004 and gcc_unreachable if it fails, just call tree_to_uhwi which
29005 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29006 Start warning message with a lower-case letter. Formatting fixes.
29008 PR rtl-optimization/90026
29009 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29010 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29011 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29012 in cfglayout mode, use emit_barrier_after_bb.
29014 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29016 PR rtl-optimization/87763
29017 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29020 2019-04-11 Tom de Vries <tdevries@suse.de>
29022 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29023 max macro using statement expression.
29025 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29027 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29028 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29029 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29030 read_only_private_data_section using xcoff_private_rodata_section_name.
29031 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29033 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29036 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29038 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29040 PR rtl-optimization/89965
29041 * dce.c (sp_based_mem_offset): New function.
29042 (find_call_stack_args): Use sp_based_mem_offset.
29044 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29046 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29048 2019-04-11 Richard Biener <rguenther@suse.de>
29050 PR tree-optimization/90020
29051 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29052 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29053 * tree-ssa-pre.c (compute_avail): Use it to not put
29054 possibly trapping references after a call that might not
29055 return into EXP_GEN.
29056 * gcse.c (compute_hash_table_work): Do not elide
29057 marking a block containing a call if the call might not
29060 2019-04-11 Richard Biener <rguenther@suse.de>
29062 PR tree-optimization/90018
29063 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29064 Test both SLP and interleaving variants.
29066 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29068 * config/s390/8561.md: New file.
29069 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29070 Add arch13 cpu model.
29071 * config/s390/s390-opts.h (enum processor_type): Likewise.
29072 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29073 (s390_get_unit_mask): Likewise.
29074 (s390_is_fpd): Likewise.
29075 (s390_is_fxd): Likewise.
29076 * config/s390/s390.h (s390_tune_attr): Likewise.
29077 * config/s390/s390.md: Include arch13 pipeline description.
29078 * config/s390/s390.opt: Add arch13.
29080 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29082 PR rtl-optimization/87763
29083 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29085 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29087 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29089 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29090 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29091 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29092 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29094 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29096 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29097 "Although" in -fipa-icf documentation.
29099 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29100 of using multiple -g options.
29102 2019-04-10 Martin Liska <mliska@suse.cz>
29104 PR gcov-profile/89959
29105 * doc/gcov.texi: Make documentation of -x option
29108 2019-04-10 Richard Biener <rguenther@suse.de>
29110 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29112 (DR_GROUP_SAME_DR_STMT): Remove.
29113 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29114 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29115 replace with assert.
29116 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29117 (vect_record_grouped_load_vectors): Remove unreachable code.
29119 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29122 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29123 obsolete reference to N.
29125 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29127 PR middle-end/90025
29128 * expr.c (store_expr): Set properly size on the MEM passed to
29132 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29133 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29134 translation is needed, and when translation is needed, only append
29135 ... if the string length is hostsz or more bytes long. Avoid using
29138 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29141 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29142 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29144 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29145 differences directly.
29146 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29148 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29150 PR translation/90011
29151 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29153 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29155 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29156 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29157 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29158 trailing space from -gsplit-dwarf diagnostics.
29160 PR tree-optimization/89998
29161 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29162 instead of integer_type_node if possible, don't add ranges if return
29163 type is not compatible with int.
29164 * gimple-fold.c (gimple_fold_builtin_sprintf,
29165 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29168 2019-04-09 Martin Liska <mliska@suse.cz>
29170 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29171 * doc/install.texi: Document the new config.
29173 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29175 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29176 use gimple_expr_type for load and store calls. Skip over the
29177 condition argument in a conditional internal function.
29178 Protect use of TREE_INT_CST_LOW.
29180 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29183 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29184 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29185 trailing period from it too.
29187 2019-04-08 wu yuan <wuyuan5@huawei.com>
29189 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29190 * config/aarch64/aarch64.md: Add "tsv110.md".
29191 * config/aarch64/tsv110.md: New file.
29193 2019-04-08 Richard Biener <rguenther@suse.de>
29195 PR tree-optimization/90006
29196 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29199 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29202 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29204 (fma_root_node): Likewise.
29205 (func_fma_steering): Likewise.
29207 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29209 PR rtl-optimization/89865
29210 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29212 PR rtl-optimization/89865
29213 * config/i386/i386.md
29214 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29215 numbers not to clash with the additional operands[4].
29216 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29217 with extra register copy in the middle.
29219 2019-04-08 Martin Liska <mliska@suse.cz>
29221 PR gcov-profile/89961
29222 * doc/gcov.texi: Document data_file.
29223 * gcov.c (generate_results): Add data_info into JSON output.
29225 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29227 PR tree-optimization/89725
29228 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29229 loop's chrec as invariant symbol.
29230 * tree-chrec.h (chrec_contains_symbols): New parameter.
29231 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29232 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29233 function of loops not in DDR's loop_nest.
29234 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29236 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29239 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29242 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29245 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29246 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29248 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29250 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29251 targetm.fixed_condition_code_regs.
29253 2019-04-05 Richard Biener <rguenther@suse.de>
29257 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29258 debug bind stmts but reset them if they are not valid at the
29261 2019-04-05 Martin Liska <mliska@suse.cz>
29263 PR translation/89936
29264 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29265 order to wrap keywords or arguments.
29266 * collect2.c (main): Likewise.
29267 (scan_prog_file): Likewise.
29268 (scan_libraries): Likewise.
29269 * common/config/riscv/riscv-common.c
29270 (riscv_subset_list::parsing_subset_version): Likewise.
29271 (riscv_subset_list::parse_std_ext): Likewise.
29272 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29274 * config/arm/arm.c (arm_option_override): Likewise.
29275 * config/cris/cris.c (cris_print_operand): Likewise.
29276 * config/darwin-c.c (darwin_pragma_options): Likewise.
29277 (darwin_pragma_unused): Likewise.
29278 (darwin_pragma_ms_struct): Likewise.
29279 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29280 * config/i386/i386.c (print_reg): Likewise.
29281 (ix86_print_operand): Likewise.
29282 * config/i386/xm-djgpp.h: Likewise.
29283 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29284 * config/m32c/m32c.c (m32c_option_override): Likewise.
29285 * config/msp430/msp430.c (msp430_option_override): Likewise.
29286 * config/nds32/nds32.c (nds32_option_override): Likewise.
29287 * config/nvptx/mkoffload.c (main): Likewise.
29288 * config/rx/rx.c (rx_print_operand): Likewise.
29289 (valid_psw_flag): Likewise.
29290 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29291 (vms_pragma_nomember_alignment): Likewise.
29292 (vms_pragma_extern_model): Likewise.
29293 * lto-wrapper.c (compile_offload_image): Likewise.
29294 * omp-offload.c (oacc_parse_default_dims): Likewise.
29295 * symtab.c (symtab_node::verify_base): Likewise.
29296 * tlink.c (recompile_files): Likewise.
29297 (start_tweaking): Likewise.
29298 * tree-profile.c (parse_profile_filter): Likewise.
29300 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29302 PR tree-optimization/89956
29303 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29304 multiple negates of the same value.
29306 2019-04-04 Martin Sebor <msebor@redhat.com>
29308 PR middle-end/89957
29309 PR middle-end/89911
29310 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29311 have the same precision since the function crashes otherwise.
29312 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29313 has non-zero arguments.
29315 2019-04-04 Martin Sebor <msebor@redhat.com>
29317 PR middle-end/89934
29318 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29319 out if the number of arguments is less than expected.
29321 2019-04-04 Jeff Law <law@redhat.com>
29323 PR rtl-optimization/89399
29324 * ree.c (combine_set_extension): Use single_set rather than
29325 digging into PATTERN for items on the candidate list.
29326 (combine_reaching_defs): Likewise.
29328 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29330 PR rtl-optimization/46590
29331 * loop-invariant.c (find_defs): Move df_remove_problem and
29332 df_process_deferred_rescans to move_invariants.
29333 Move df_live_add_problem and df_live_set_all_dirty calls
29334 to move_invariants.
29335 (move_invariants): Likewise.
29336 (move_loop_invariants): Likewise, making the df_live calls
29337 conditional on -O. Remove the problem again if we added it
29340 2019-04-03 qing zhao <qing.zhao@oracle.com>
29342 PR tree-optimization/89730
29343 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29344 -flive-patching=inline-only-static.
29345 (can_inline_edge_by_limits_p): Add the checking for
29346 -flive-patching=inline-only-static and grant always_inline
29347 even when -flive-patching=inline-only-static is specified.
29349 2019-04-03 Jeff Law <law@redhat.com>
29351 PR rtl-optimization/81025
29352 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29354 2019-04-03 Richard Biener <rguenther@suse.de>
29356 PR tree-optimization/84101
29357 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29358 regs.h for hard_regno_nregs.
29359 (cfun_returns): New helper.
29360 (vect_model_store_cost): When vectorizing a store to a decl
29361 we return and the function ABI returns in a multi-reg location
29362 account for the possible spilling that will happen.
29364 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29366 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29367 displacement addresses for vector mode operands.
29369 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29371 * config/arc/arc.c (GMASK_LEN): Define.
29372 (arc_restore_callee_saves): Restore first blink when
29375 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29377 * doc/extend.texi: Add deprecated comment on sign-return-address
29378 function attribute and add mbranch-protection.
29379 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29381 2019-04-03 Richard Biener <rguenther@suse.de>
29384 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29385 the all target phony.
29387 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29391 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29392 Return false for variable DImode shifts.
29393 (dimode_scalar_chain::compute_convert_gain): Do not handle
29394 register count operand in variable DImode shifts.
29395 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29396 count argument of a variable shift instruction to a vector register.
29397 (dimode_scalar_chain::convert_reg): Remove support to convert
29398 count argument of a variable shift instruction.
29400 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29402 PR rtl-optimization/84206
29403 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29404 iterating over loop headers.
29406 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29408 PR rtl-optimization/85876
29409 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29410 beyond the original fence.
29412 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29414 * config.gcc: Mark spu* targets as deprecated/obsolete.
29416 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29418 * config/s390/s390-builtin-types.def: New builtin function type
29419 definitions. Remove unused types.
29420 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29421 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29422 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29423 overloaded builtins.
29424 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29425 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29426 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29427 (vec_double, vec_signed, vec_unsigned): Define to use the new
29428 overloaded builtins.
29429 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29432 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29434 * config/s390/s390-builtin-types.def: New builtin function type
29436 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29437 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29438 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29439 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29440 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29441 constant definitions.
29442 * config/s390/vecintrin.h (vec_search_string_cc)
29443 (vec_search_string_until_zero_cc): New builtin name definitions.
29444 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29446 ("vec_vstrs<mode>"): New insn definition.
29448 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29450 * config/s390/s390-builtin-types.def: Add new builtin function
29452 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29453 New overloaded builtins.
29454 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29456 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29457 (UNSPEC_VEC_SLDBYTE): ... this.
29458 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29459 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29461 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29462 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29463 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29465 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29467 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29468 New insn definition.
29469 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29470 * config/s390/vector.md (V_HW_HSD): ... here.
29472 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29474 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29475 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29476 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29477 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29478 New insn definitions.
29480 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29482 * config/s390/s390-builtin-types.def: Add new builtin function type.
29483 * config/s390/s390-builtins.def: Add overloaded builtin
29484 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29485 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29486 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29487 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29488 ("eltswap<mode>"): New expander.
29489 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29492 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29494 * config/s390/s390-builtin-types.def: Add new builtin function types.
29495 * config/s390/s390-builtins.def: Add overloaded builtin
29496 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29498 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29499 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29500 ("bswap<mode>"): New expander.
29501 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29503 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29505 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29506 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29507 vector builtin version number in __VEC__.
29509 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29511 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29513 (SFSI): New mode attribute.
29514 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29515 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29517 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29518 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29519 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29520 ("floatsi<mode>2"): Add wcefb instruction.
29522 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29524 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29525 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29527 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29528 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29529 support 32 bit fp-int conversions. Rename to ...
29530 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29531 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29532 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29533 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29536 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29538 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29539 if-then-else constructs if we can use the select instruction.
29540 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29542 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29544 * config/s390/s390.md ("*popcountdi_arch13_cc")
29545 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29547 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29548 Append _z196 to make it ...
29549 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29550 ("popcounthi2_z196"): ... this.
29551 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29552 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29554 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29556 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29557 certain compares for arch13 in order to make use of the condition
29558 code result produced by the new instructions.
29559 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29560 nxrk, and nxgrk instruction patterns.
29561 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29562 (inv_no): Add new code iterator together with some attributes.
29563 ("*andc_split_<mode>"): Disable splitter for arch13.
29564 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29565 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29566 ("*<ANDOR:bitops_name>c<GPR:mode>")
29567 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29568 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29569 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29570 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29572 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29574 * common/config/s390/s390-common.c (processor_flags_table): New
29576 * config.gcc: Support arch13 with the --with-arch= configure flag.
29577 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29578 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29579 * config/s390/s390.c (s390_get_sched_attrmask)
29580 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29581 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29582 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29583 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29584 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29586 * config/s390/s390.opt: Support arch13 as processor type in
29587 command line options.
29589 2019-04-02 Martin Liska <mliska@suse.cz>
29591 PR translation/89912
29592 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29593 Fix param description of graphite-max-arrays-per-scop.
29595 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29597 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29598 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29599 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29601 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29603 PR rtl-optimization/85412
29604 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29605 sel_sched_region_1, not after.
29607 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29609 PR rtl-optimization/86928
29610 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29611 compute_live if necessary.
29612 (sel_redirect_edge_and_branch): Likewise.
29614 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29616 PR rtl-optimization/89865
29617 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29618 register if it is a part of small class.
29620 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29622 PR rtl-optimization/87273
29623 * sel-sched-ir.c (merge_fences): Remove assert.
29625 2019-04-01 Richard Biener <rguenther@suse.de>
29627 PR tree-optimization/46590
29628 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29629 (dom_walker::m_reachability): Add in place of...
29630 (dom_walker::m_skip_unreachable_blocks): ...this.
29631 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29632 Move complex initialization ...
29633 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29634 lazily and initialize edge flags on each invocation.
29635 (dom_walker::bb_reachable): Use m_reachability.
29637 2019-04-01 Martin Liska <mliska@suse.cz>
29640 * opt-suggestions.c (option_proposer::build_option_suggestions):
29641 Add variant without any argument in order to provide better
29644 2019-04-01 Richard Biener <rguenther@suse.de>
29647 * gimple.c: Include langhooks.h.
29648 (gimple_get_alias_set): Treat enumeral types as the underlying
29651 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29652 Eric Botcazou <ebotcazou@adacore.com>
29654 PR rtl-optimization/89862
29655 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29656 that operates on the full registers for WORD_REGISTER_OPERATIONS
29659 2019-03-29 Jim Wilson <jimw@sifive.com>
29661 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29662 Clear MASK_RVC and then set if C subset supported.
29664 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29667 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29668 non-addressable complit into its initializer if it is volatile.
29670 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29672 * opts-common.c (integral_argument): Set errno properly in one case.
29674 2019-03-29 Martin Liska <mliska@suse.cz>
29676 * doc/invoke.texi: Remove -Wchkp from documentation.
29678 2019-03-29 Martin Liska <mliska@suse.cz>
29680 * dbgcnt.c (print_limit_reach): New function.
29683 2019-03-29 Martin Liska <mliska@suse.cz>
29685 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29686 (dbg_cnt_process_opt): Parse first tokens aas
29687 dbg_cnt_process_single_pair is also using strtok.
29689 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29691 PR rtl-optimization/87485
29692 * function.c (expand_function_end): Move stack_protect_epilogue
29693 before loading of return value into hard register(s).
29695 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29697 PR middle-end/89621
29698 * tree-inline.h (struct copy_body_data): Add
29699 dont_remap_vla_if_no_change flag.
29700 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29701 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29702 and remap_type_2 returns false.
29703 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29704 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29705 only from where it is copied to nested contexts.
29707 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29710 * config/i386/i386.md (RMW operation with LEA peephole):
29711 Use LEAMODE mode attribute instead of SWI mode iterator for
29714 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29717 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29718 Also process XEXP (src, 0) of a shift insn.
29720 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29722 PR middle-end/89725
29723 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29724 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29726 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29728 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29730 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29731 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29732 immediately after first one with df_analyze in between, but rather
29733 process all bbs, queueing ones that need second pass in a worklist,
29734 df_analyze, process queued debug insn changes and if second pass is
29735 needed, process bbs from worklist, df_analyze, process queued debug
29738 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29739 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29740 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29742 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29745 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29748 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29751 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29752 function for 32-bit MS_ABI.
29753 (function_value_ms_32): New function.
29755 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29757 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29758 (movdi): Call gen_movdi_symbol_save_scc.
29759 (gen_movdi_symbol_save_scc): New insn and split.
29761 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29763 PR rtl-optimization/89313
29764 * function.c (matching_constraint_num): New static function.
29765 (match_asm_constraints_1): Use it. Fixup white space and comment.
29766 Don't replace inputs with non-matching constraints which conflict
29767 with early clobber outputs.
29769 2019-03-27 Jeff Law <law@redhat.com>
29771 PR rtl-optimization/87761
29772 PR rtl-optimization/89826
29773 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29775 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29776 note problem to get REG_DEAD/REG_UNUSED notes updated.
29778 2019-03-27 Richard Biener <rguenther@suse.de>
29780 PR tree-optimization/89463
29781 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29782 queue edges to remove.
29783 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29784 dead stmts. Delay edge removal until PHIs are removed to
29785 make debug-stmt creation not confused by seemingly degenerate
29788 2019-03-27 Alan Modra <amodra@gmail.com>
29790 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29792 * config/rs6000/darwin.h: Likewise.
29793 * config/rs6000/rs6000.c: Likewise.
29795 2019-03-27 Alan Modra <amodra@gmail.com>
29797 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29798 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29800 2019-03-26 Andrew Waterman <andrew@sifive.com>
29801 Jim Wilson <jimw@sifive.com>
29803 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29804 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29805 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29806 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29807 (generic_alu): Add auipc to type list.
29808 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29809 (riscv_microarchitecture): Declare.
29810 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29811 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29813 (riscv_microarchitecture): New.
29814 (sifive_7_tune_info): New.
29815 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29816 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29818 (riscv_store_data_bypass_p): New.
29819 (riscv_option_override): Set riscv_microarchitecture from
29820 cpu->microarchitecture.
29821 * config/riscv/riscv.md: Include sifive-7.md.
29824 (auipc<mode>): Change type to auipc.
29825 (restore_stack_nonlocal): New.
29826 * config/riscv/sifive-7.md: New.
29827 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29829 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29832 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29833 Also process XEXP (src, 0) of a shift insn.
29835 2019-03-26 Richard Biener <rguenther@suse.de>
29837 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29838 (copy_debug_stmt): Likewise.
29839 (expand_call_inline): Likewise.
29840 (copy_bb): Avoid redundant lookup & set of gimple_block.
29841 * gimple-low.c (lower_gimple_return): Likewise.
29842 (lower_builtin_setjmp): Likewise.
29844 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29846 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29847 is constant 0, turn into static const data member initialized to false.
29848 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29849 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29851 2019-03-26 Jason Merrill <jason@redhat.com>
29852 Jakub Jelinek <jakub@redhat.com>
29854 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29856 (mem_alloc_description::release_object_overhead): Fix comment typos.
29857 * hash-table.h (hash_table::~hash_table): Call
29858 release_instance_overhead only if m_entries is non-NULL, otherwise
29859 call unregister_descriptor.
29861 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29863 PR tree-optimization/81740
29864 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29865 In case of outer loop vectorization, check for backward dependence
29866 at the inner loop if outer loop dependence is reversed.
29868 2019-03-26 Alan Modra <amodra@gmail.com>
29870 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29871 rs6000_vector_mem init. Correct wI and wJ comment.
29873 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29875 PR rtl-optimization/88347
29876 PR rtl-optimization/88423
29877 * sched-deps.c (sched_analyze_insn): Take into account that for
29878 tablejumps the barrier appears after a label and a jump_table_data.
29880 2019-03-25 Martin Sebor <msebor@redhat.com>
29883 * c-common.c (check_user_alignment): Rename local. Correct maximum
29884 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29885 convert it to UHWI when it fits.
29887 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29890 * dwarf2out.c (premark_used_variables): New function.
29891 (prune_unused_types_walk): Do not mark not premarked external
29893 (prune_unused_types): Call premark_used_variables.
29895 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29897 PR rtl-optimization/89676
29898 * lra-constraints.c (curr_insn_transform): Do match reload for
29899 early clobbers when the match was successful only for different
29902 2019-03-25 Martin Sebor <msebor@redhat.com>
29904 * doc/extend.texi (Common Type Attributes): Document vector_size.
29905 (Common Variable Attributes): Mention size constraint. Correct
29907 (Vector Extensions): Use @dfn when defining bas type. Clarify
29908 base type and size constraints.
29910 2019-03-25 Richard Biener <rguenther@suse.de>
29912 PR tree-optimization/89789
29913 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29914 changes from non-undefined back to undefined.
29916 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29918 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29919 heap string and a gc string, but since this variable is unknown to
29920 ggc the gc string might get reused and corrupted. Fixed by always
29921 using a heap string.
29923 2019-03-25 Richard Biener <rguenther@suse.de>
29925 PR tree-optimization/89779
29926 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29927 to remove IV defs, delay actual removal.
29928 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
29929 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
29930 very end, properly also reset loop control IV information.
29932 2019-03-25 Richard Biener <rguenther@suse.de>
29934 PR tree-optimization/89802
29935 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
29936 move EH data to folded stmt.
29938 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29940 * config/s390/s390-builtin-types.def: Remove few unused types and
29941 fix sort order for others.
29943 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
29945 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
29946 expected and found types with -mdebug during builtin matching.
29948 2019-03-25 Richard Biener <rguenther@suse.de>
29950 PR middle-end/89790
29951 * fold-const.c (operand_equal_p): Revert last change with
29954 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
29956 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
29957 notes for the result of the __tls_get_addr calls.
29958 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
29960 2019-03-24 Jeff Law <law@redhat.com>
29962 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
29964 PR rtl-optimization/87761
29965 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
29966 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
29968 (pass_cprop_hardreg::execute): Add df note problem and defer insn
29969 rescans. Reprocess blocks as needed, calling df_analyze before
29970 reprocessing. Always call df_analyze before fixing up debug bind
29973 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
29975 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
29978 2019-03-22 Andrew Pinski <apinski@marvell.com>
29980 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
29981 attrribute for uxtw.
29983 2019-03-26 Jeff Law <law@redhat.com>
29985 PR rtl-optimization/87761
29986 * config/mips/mips-protos.h (mips_split_move): Add new argument.
29987 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
29988 (mips_split_move): Accept new INSN argument. Try to forward SRC
29989 into the next instruction.
29990 (mips_split_move_insn): Pass INSN through to mips_split_move.
29992 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
29994 PR rtl-optimization/89676
29995 * lra-constraints.c (curr_insn_transform): Do match reload for
29996 early clobbers even if the match was successful.
29998 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30001 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30003 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30005 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30007 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30009 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30010 <avx512>_fmsub_<mode>_mask3<round_name>,
30011 <avx512>_fnmadd_<mode>_mask3<round_name>,
30012 <avx512>_fnmsub_<mode>_mask3<round_name>,
30013 avx512f_vmfmadd_<mode>_mask3<round_name>,
30014 avx512f_vmfmsub_<mode>_mask3<round_name>,
30015 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30016 instead of register_operand and %v instead of v for match_operand 1.
30017 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30018 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30019 <round_nimm_predicate> instead of register_operand and %v instead of v
30020 for match_operand 1.
30022 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30023 <avx512>_fmadd_<mode>_mask3<round_name>,
30024 <avx512>_fmsub_<mode>_mask<round_name>,
30025 <avx512>_fmsub_<mode>_mask3<round_name>,
30026 <avx512>_fnmadd_<mode>_mask<round_name>,
30027 <avx512>_fnmadd_<mode>_mask3<round_name>,
30028 <avx512>_fnmsub_<mode>_mask<round_name>,
30029 <avx512>_fnmsub_<mode>_mask3<round_name>,
30030 <avx512>_fmaddsub_<mode>_mask<round_name>,
30031 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30032 <avx512>_fmsubadd_<mode>_mask<round_name>,
30033 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30034 <round_nimm_predicate> instead of nonimmediate_operand.
30035 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30036 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30037 Use register_operand instead of <round_nimm_predicate> for the
30038 operand that needs to match output.
30039 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30040 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30041 Likewise. Formatting fixes.
30044 * config/i386/i386.c (enum ix86_builtins): Remove
30045 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30046 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30047 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30048 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30049 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30050 __builtin_ia32_vfmsubss3_mask3): New builtins.
30051 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30052 avx512f_vmfmadd_<mode>_mask3<round_name>,
30053 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30054 *avx512f_vmfmsub_<mode>_mask<round_name>,
30055 avx512f_vmfmsub_<mode>_mask3<round_name>,
30056 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30057 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30058 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30059 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30060 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30061 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30062 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30063 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30064 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30065 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30066 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30067 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30068 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30069 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30070 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30071 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30072 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30073 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30074 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30075 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30076 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30077 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30078 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30079 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30080 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30081 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30082 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30083 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30085 2019-03-21 Martin Sebor <msebor@redhat.com>
30087 PR tree-optimization/89350
30088 * builtins.c (compute_objsize): Also ignore offsets whose upper
30090 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30091 (builtin_memref::builtin_memref): Initialize new member.
30092 Allow EXPR to be null.
30093 (builtin_memref::extend_offset_range): Replace local with a member.
30094 Avoid assuming pointer offsets are unsigned.
30095 (builtin_memref::set_base_and_offset): Determine base object
30096 before computing offset range.
30097 (builtin_access::builtin_access): Handle memset.
30098 (builtin_access::generic_overlap): Replace local with a member.
30099 (builtin_access::strcat_overlap): Same.
30100 (builtin_access::overlap): Same.
30101 (maybe_diag_overlap): Same.
30102 (maybe_diag_access_bounds): Same.
30103 (wrestrict_dom_walker::check_call): Handle memset.
30104 (check_bounds_or_overlap): Same.
30106 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30107 Jakub Jelinek <jakub@redhat.com>
30110 * tree.c (fld_type_variant, fld_incomplete_type_of,
30111 fld_process_array_type): Call fld->pset.add and don't call
30112 add_tree_to_fld_list if it returns true.
30113 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30114 non-marked types from TYPE_NEXT_VARIANT list.
30115 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30117 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30119 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30120 to false, if true, don't alloc_entries during construction, but defer
30121 it to the first method that needs m_entries allocated.
30122 (hash_table::hash_table, hash_table::~hash_table,
30123 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30124 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30125 hash_table::clear_slot, hash_table::traverse_noresize,
30126 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30127 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30129 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30130 NO_INSERT instead of find_with_hash.
30131 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30132 hash_set::m_table): Add Lazy to template params of hash_table.
30133 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30134 * attribs.c (test_attribute_exclusions): Likewise.
30135 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30136 hash_set. Add tests for hash_set with Lazy = true.
30138 2019-03-21 Richard Biener <rguenther@suse.de>
30140 PR tree-optimization/89779
30141 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30142 checks with respect to released SSA names now having error_mark_node
30144 * fold-const.c (operand_equal_p): Likewise.
30146 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30149 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30151 (s390_optimize_register_info): Use global_not_special_regno_p to
30152 check for global regs.
30154 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30157 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30158 update this_alternative nor this_alternative_set.
30160 2019-03-19 Jim Wilson <jimw@sifive.com>
30163 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30164 align, size, offset. Use them to handle a BLKmode reference. Update
30166 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30168 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30170 PR rtl-optimization/89768
30171 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30172 instead of GEN_INT.
30173 (unroll_loop_runtime_iterations): Likewise.
30175 2019-03-19 Martin Sebor <msebor@redhat.com>
30177 PR tree-optimization/89644
30178 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30179 rather than endptr as an indicator of nul-termination.
30181 PR tree-optimization/89644
30182 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30183 arrays in determining sequence sizes in strncpy and stpncpy.
30185 2019-03-19 Martin Liska <mliska@suse.cz>
30187 PR middle-end/89737
30188 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30189 unlikely_edges if there's an edge that belongs to both these sets.
30191 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30194 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30195 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30196 go via a stack temporary.
30198 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30201 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30202 instead of gen_rtx_SUBREG.
30203 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30205 2019-03-19 Richard Biener <rguenther@suse.de>
30208 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30210 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30214 * tree.c (free_lang_data_in_decl): Do not free context of C++
30217 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30220 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30221 subs for the first alternative except when operands[3] is 1.
30224 * gimplify.c (gimplify_asm_expr): For output argument with
30225 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30228 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30230 PR rtl-optimization/89753
30231 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30232 explicit unrolling factor even more robust.
30234 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30237 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30238 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30239 signed zeros, do another copysign after the compensation.
30241 2019-03-18 Martin Sebor <msebor@redhat.com>
30243 PR tree-optimization/89720
30244 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30245 more conservatively, the same as anti-range.
30247 2019-03-18 Richard Biener <rguenther@suse.de>
30249 PR middle-end/88945
30250 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30251 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30252 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30253 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30255 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30257 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30258 Extend queue to 1024 entries.
30259 Add "consumed" field.
30260 (gomp_print_output): Remove print_index parameter.
30261 Add final parameter.
30262 Change limit to unsigned.
30263 Use consumed field to implement circular buffer.
30264 Detect interrupted print in final pass.
30265 Flush output at the end.
30266 (run): Update gomp_print_output usage.
30267 (main): Initialize kernargs->output_data.consumed.
30269 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30271 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30272 calculation of the minimum number of scalar iterations for
30273 fully-predicated loops.
30275 2019-03-18 Martin Jambor <mjambor@suse.cz>
30277 PR tree-optimization/89546
30278 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30279 any propagation to its children took place.
30281 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30284 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30285 parameter, and make use of it.
30286 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30288 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30290 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30291 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30292 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30293 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30294 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30295 match what the ops is doing.
30296 (push_multi_fp_blink): Likewise.
30297 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30298 compiling for size and elf target.
30299 (arc_save_callee_enter): Adjust note to match what enter/leave
30302 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30304 * config/arc/arc.md (tst_movb): Fix constraint.
30306 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30308 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30310 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30312 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30313 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30314 reg_alloc_order references.
30315 (size_alloc_order): Define.
30316 (arc_adjust_reg_alloc_order): New function.
30317 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30319 (ADJUST_REG_ALLOC_ORDER): Define.
30320 (HONOR_REG_ALLOC_ORDER): Likewise.
30322 2019-03-18 Richard Biener <rguenther@suse.de>
30325 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30326 loads and stores a bit more.
30328 2019-03-18 Richard Biener <rguenther@suse.de>
30331 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30332 load pessimization to stores as well.
30334 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30336 PR middle-end/86979
30337 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30338 successor, use NULL as its av set.
30340 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30342 PR rtl-optimization/89721
30343 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30345 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30348 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30349 When handling vec_extract, use modular arithmetic to allow
30350 constant selectors greater than vector length.
30351 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30352 V1TImode vectors to have constant selector values greater than 0.
30353 Use modular arithmetic to compute vector index.
30354 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30355 index for in-memory vectors. Correct code generation for
30356 in-register vectors.
30357 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30360 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30364 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30367 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30370 * tree.c (inchash::add_expr): Strip any location wrappers.
30371 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30372 after hash verification.
30375 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30376 SIGN_EXTEND and ZERO_EXTEND.
30378 2019-03-14 Jason Merrill <jason@redhat.com>
30379 Jakub Jelinek <jakub@redhat.com>
30381 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30382 than if is_empty (*slot).
30383 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30384 existing elt and for elt removal.
30385 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30386 of already removed elt.
30388 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30391 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30392 REG_EH_REGION note.
30394 2019-03-14 Martin Liska <mliska@suse.cz>
30397 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30399 2019-03-14 Richard Biener <rguenther@suse.de>
30402 * config/i386/i386.c (make_resolver_func): Properly set
30403 DECL_CONTEXT on the RESULT_DECL.
30404 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30406 2019-03-14 Richard Biener <rguenther@suse.de>
30408 * gimple-pretty-print.c: Include cfgloop.h.
30409 (dump_gimple_phi): Adjust.
30410 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30411 (pp_cfg_jump): Adjust.
30412 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30413 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30414 (lower_phi_internal_fn): Remove.
30415 (verify_gimple_call): Remove IFN_PHI special-casing.
30416 (dump_function_to_file): Dump IL state.
30417 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30418 done to deal with PHI nodes being present in non-SSA state.
30420 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30423 * multiple_target.c (create_dispatcher_calls): Change
30424 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30425 In the node->iterate_referring loop, push *ref rather than ref, call
30426 ref->remove_reference () and always pass 0 to iterate_referring.
30428 PR rtl-optimization/89679
30429 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30430 would contain a paradoxical SUBREG.
30432 2019-03-14 Richard Biener <rguenther@suse.de>
30434 PR tree-optimization/89710
30435 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30438 2019-03-14 Martin Liska <mliska@suse.cz>
30440 * coverage.c (coverage_begin_function): Stream also
30442 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30443 documentation about function declaration location.
30444 * gcov-dump.c (tag_function): Print whole range
30445 of function declaration.
30446 * gcov.c (struct function_info): Add end_column field.
30447 (function_info::function_info): Initialize it.
30448 (output_json_intermediate_file): Output {start,end}_column
30450 (read_graph_file): Read end_column.
30452 2019-03-14 Richard Biener <rguenther@suse.de>
30454 PR middle-end/89698
30455 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30456 that the access types are similar.
30458 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30460 PR tree-optimization/89703
30461 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30462 aren't compatible also with builtin_decl_explicit. Check pure
30463 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30464 and BUILT_IN_STPNCPY{,_CHK}.
30466 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30469 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30470 addr32 prefix to VSIB address for X32.
30471 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30473 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30474 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30475 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30476 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30477 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30478 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30479 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30480 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30481 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30482 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30483 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30484 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30485 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30486 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30487 (*avx512f_scatterdi<mode>): Likewise.
30489 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30492 * lra-constraints.c (inherit_in_ebb): Update
30493 potential_reload_hard_regs along with live_hard_regs.
30495 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30498 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30500 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30502 2019-03-13 Martin Sebor <msebor@redhat.com>
30504 PR tree-optimization/89662
30505 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30508 2019-03-13 Richard Biener <rguenther@suse.de>
30510 PR middle-end/89677
30511 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30512 throw FP expressions at tree-affine.
30514 2019-03-14 Richard Biener <rguenther@suse.de>
30516 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30517 dump negative integer constants using _Literal (type) -num.
30519 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30521 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30522 nonlocal_value member.
30524 PR middle-end/88588
30525 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30526 (ipa_simd_modify_function_body): Handle PHIs.
30528 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30530 * config/s390/s390.c (s390_option_override_internal): Use more
30531 aggressive inlining parameters.
30533 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30535 * config/s390/3906.md: New file.
30536 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30537 (LONGRUNNING_THRESHOLD): Remove.
30538 (MAX_SCHED_MIX_SCORE): Decrease.
30539 (MAX_SCHED_MIX_DISTANCE): Decrease.
30540 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30541 (struct s390_sched_state): New struct to hold scheduling state.
30542 (S390_SCHED_STATE_NORMAL): Remove.
30543 (S390_SCHED_STATE_CRACKED): Remove.
30544 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30545 (s390_get_sched_attrmask): Use new attribute.
30546 (s390_get_unit_mask): Use new units.
30547 (s390_is_fpd): New function.
30548 (s390_is_fxd): New function.
30549 (s390_is_longrunning): New function.
30550 (s390_sched_score): Use new functions.
30551 (s390_sched_reorder): Likewise.
30552 (s390_sched_variable_issue): Rework and use new functions.
30553 (s390_sched_init): Use new functions.
30554 * config/s390/s390.h (s390_tune_attr): Add z14.
30555 * config/s390/s390.md: Add z14.
30557 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30559 * config/s390/2964.md: Update pipeline description.
30560 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30561 (LONGRUNNING_THRESHOLD): Remove.
30562 (LATENCY_FACTOR): Remove.
30563 (s390_get_unit_mask): Add unit.
30564 (s390_sched_score): Use fxd/fpd.
30565 (s390_sched_variable_issue): Use fxd/fpd.
30567 2019-03-12 Martin Liska <mliska@suse.cz>
30569 * config/i386/i386.c: Reword an error message.
30571 2019-03-12 Martin Jambor <mjambor@suse.cz>
30573 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30574 terminate with newline.
30576 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30579 * config/s390/s390.md (tabort): Use %wd instead of
30580 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30581 letters and periods.
30582 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30583 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30586 PR middle-end/89663
30587 * builtins.c (expand_builtin_int_roundingfn,
30588 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30589 gcc_unreachable if validate_arglist fails.
30591 2019-03-12 Richard Biener <rguenther@suse.de>
30593 PR tree-optimization/89664
30594 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30595 free the occurance tree after the early out.
30597 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30599 PR middle-end/89655
30601 * vr-values.c (vr_values::update_value_range): If
30602 old_vr->varying_p (), don't update it, make new_vr also VARYING
30605 2019-03-11 Martin Liska <mliska@suse.cz>
30607 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30608 Fix double string quoting.
30610 2019-03-11 Martin Liska <mliska@suse.cz>
30612 * collect-utils.c (collect_wait): Wrap apostrophes
30613 in gcc internal format with %'.
30614 * collect2.c (main): Likewise.
30615 (scan_prog_file): Likewise.
30616 (scan_libraries): Likewise.
30617 * config/i386/i386.c (ix86_expand_call): Likewise.
30618 (ix86_handle_interrupt_attribute): Likewise.
30619 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30620 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30621 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30622 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30623 * symtab.c (symtab_node::verify_base): Likewise.
30624 * tree-cfg.c (verify_gimple_label): Likewise.
30625 * tree.c (verify_type_variant): Likewise.
30627 2019-03-11 Martin Liska <mliska@suse.cz>
30629 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30630 in a string format message and fix GNU coding style.
30631 (expand_builtin_set_thread_pointer): Likewise.
30632 * common/config/aarch64/aarch64-common.c
30633 (aarch64_rewrite_selected_cpu): Likewise.
30634 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30635 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30636 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30637 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30638 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30639 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30640 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30641 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30642 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30643 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30645 * common/config/riscv/riscv-common.c
30646 (riscv_subset_list::parsing_subset_version): Likewise.
30647 (riscv_subset_list::parse_std_ext): Likewise.
30648 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30649 (riscv_subset_list::parse): Likewise.
30650 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30651 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30652 (aarch64_override_options_internal): Likewise.
30653 (aarch64_validate_mcpu): Likewise.
30654 (aarch64_validate_march): Likewise.
30655 (aarch64_validate_mtune): Likewise.
30656 (aarch64_override_options): Likewise.
30657 * config/alpha/alpha.c (alpha_option_override): Likewise.
30658 * config/arc/arc.c (arc_init): Likewise.
30659 (parse_mrgf_banked_regs_option): Likewise.
30660 (arc_override_options): Likewise.
30661 (arc_expand_builtin_aligned): Likewise.
30662 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30663 (arm_expand_builtin): Likewise.
30664 * config/arm/arm.c (arm_option_check_internal): Likewise.
30665 (arm_configure_build_target): Likewise.
30666 (arm_option_override): Likewise.
30667 (arm_options_perform_arch_sanity_checks): Likewise.
30668 (arm_handle_cmse_nonsecure_entry): Likewise.
30669 (arm_handle_cmse_nonsecure_call): Likewise.
30670 (arm_tls_referenced_p): Likewise.
30671 (thumb1_expand_prologue): Likewise.
30672 * config/avr/avr.c (avr_option_override): Likewise.
30673 * config/bfin/bfin.c (bfin_option_override): Likewise.
30674 * config/c6x/c6x.c (c6x_option_override): Likewise.
30675 * config/cr16/cr16.c (cr16_override_options): Likewise.
30676 * config/cris/cris.c (cris_option_override): Likewise.
30677 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30678 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30679 * config/darwin.c (darwin_override_options): Likewise.
30680 * config/frv/frv.c (frv_expand_builtin): Likewise.
30681 * config/h8300/h8300.c (h8300_option_override): Likewise.
30682 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30683 (ix86_option_override_internal): Likewise.
30684 (warn_once_call_ms2sysv_xlogues): Likewise.
30685 (ix86_expand_prologue): Likewise.
30686 (split_stack_prologue_scratch_regno): Likewise.
30687 (ix86_warn_parameter_passing_abi): Likewise.
30688 * config/ia64/ia64.c (fix_range): Likewise.
30689 * config/m68k/m68k.c (m68k_option_override): Likewise.
30690 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30691 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30692 (mips_set_compression_mode): Likewise.
30693 * config/mmix/mmix.c (mmix_option_override): Likewise.
30694 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30695 * config/msp430/msp430.c (msp430_option_override): Likewise.
30696 * config/nds32/nds32.c (nds32_option_override): Likewise.
30697 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30698 (nios2_option_override): Likewise.
30699 (nios2_expand_custom_builtin): Likewise.
30700 * config/nvptx/mkoffload.c (main): Likewise.
30701 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30702 * config/pa/pa.c (fix_range): Likewise.
30703 (pa_option_override): Likewise.
30704 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30705 (riscv_option_override): Likewise.
30706 * config/rl78/rl78.c (rl78_option_override): Likewise.
30707 * config/rs6000/aix61.h: Likewise.
30708 * config/rs6000/aix71.h: Likewise.
30709 * config/rs6000/aix72.h: Likewise.
30710 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30711 * config/rs6000/freebsd64.h: Likewise.
30712 * config/rs6000/linux64.h: Likewise.
30713 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30714 (rs6000_expand_zeroop_builtin): Likewise.
30715 (rs6000_expand_mtfsb_builtin): Likewise.
30716 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30717 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30718 (rs6000_invalid_builtin): Likewise.
30719 (rs6000_expand_split_stack_prologue): Likewise.
30720 * config/rs6000/rtems.h: Likewise.
30721 * config/rx/rx.c (valid_psw_flag): Likewise.
30722 (rx_expand_builtin): Likewise.
30723 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30724 * config/s390/s390.c (s390_expand_builtin): Likewise.
30725 (s390_function_profiler): Likewise.
30726 (s390_option_override_internal): Likewise.
30727 (s390_option_override): Likewise.
30728 * config/sh/sh.c (sh_option_override): Likewise.
30729 (sh_builtin_saveregs): Likewise.
30730 (sh_fix_range): Likewise.
30731 * config/sh/vxworks.h: Likewise.
30732 * config/sparc/sparc.c (sparc_option_override): Likewise.
30733 * config/spu/spu.c (spu_option_override): Likewise.
30734 (fix_range): Likewise.
30735 * config/visium/visium.c (visium_option_override): Likewise.
30736 (visium_handle_interrupt_attr): Likewise.
30737 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30738 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30739 (dbg_cnt_process_opt): Likewise.
30740 * dwarf2out.c (output_dwarf_version): Likewise.
30741 * except.c (expand_eh_return): Likewise.
30742 * gcc.c (defined): Likewise.
30743 (driver_handle_option): Likewise.
30744 (process_command): Likewise.
30745 (compare_files): Likewise.
30746 (driver::prepare_infiles): Likewise.
30747 (driver::do_spec_on_infiles): Likewise.
30748 (driver::maybe_run_linker): Likewise.
30749 * omp-offload.c (oacc_parse_default_dims): Likewise.
30750 * opts-global.c (handle_common_deferred_options): Likewise.
30751 * opts.c (parse_sanitizer_options): Likewise.
30752 (common_handle_option): Likewise.
30753 (enable_warning_as_error): Likewise.
30754 * passes.c (enable_disable_pass): Likewise.
30755 * plugin.c (parse_plugin_arg_opt): Likewise.
30756 (default_plugin_dir_name): Likewise.
30757 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30758 (default_pch_valid_p): Likewise.
30759 * toplev.c (init_asm_output): Likewise.
30760 (process_options): Likewise.
30761 (toplev::run_self_tests): Likewise.
30762 * tree-cfg.c (verify_gimple_call): Likewise.
30763 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30764 (tree_inlinable_function_p): Likewise.
30765 * var-tracking.c (vt_find_locations): Likewise.
30767 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30769 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30770 only on the else branch.
30772 2019-03-11 Martin Liska <mliska@suse.cz>
30774 * gcov.c (output_intermediate_json_line): Print function
30776 (output_json_intermediate_file): Add new argument.
30777 * doc/gcov.texi: Document the change.
30779 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30781 PR rtl-optimization/89588
30782 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30783 explicit unrolling factor more robust.
30785 2019-03-11 Richard Biener <rguenther@suse.de>
30787 PR tree-optimization/89649
30788 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30789 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30790 on the prolog and epilog loops.
30791 (vect_loop_versioning): Return copy of loop.
30792 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30793 on the non-vectorized version of the loop.
30795 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30798 * config/i386/sse.md (*vec_extractv2di_0_sse):
30799 Add (=r,x) alternative and corresponding splitter.
30801 2019-03-10 Martin Jambor <mjambor@suse.cz>
30803 PR tree-optimization/85762
30804 PR tree-optimization/87008
30805 PR tree-optimization/85459
30806 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30807 it points to if there is a type changing MEM_REF. Adjust all callers.
30808 (build_accesses_from_assign): Disable total scalarization if
30809 contains_vce_or_bfcref_p returns true through the new parameter, for
30812 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30815 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30816 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30819 * common.opt (fdiagnostics-show-labels,
30820 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30821 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30822 gas-locview-support, ginline-points, ginternal-reset-location-views):
30823 Terminate description text with a dot.
30824 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30825 * config/mcore/mcore.opt (m210, m340): Likewise.
30826 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30827 mnops=): Start description text with a capital letter.
30828 * config/arc/arc.opt (msize-level=): Likewise.
30829 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30830 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30831 mnewlib): Likewise.
30832 * config/ft32/ft32.opt (msim): Likewise.
30833 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30834 (mnodiv, mnopm): Terminate description text with a dot.
30835 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30837 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30839 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30842 PR rtl-optimization/89634
30843 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30844 are modified in BB_END (e->src) instruction.
30846 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30849 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30850 messages more amenable to translation, and improve wording.
30852 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30854 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30855 ud- and du-chains between phases.
30857 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30860 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30861 instead of POLY_INT_CST.
30863 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30865 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30868 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30873 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30874 (_mm_storeu_si64): Ditto.
30876 2019-03-08 Martin Liska <mliska@suse.cz>
30879 * config/i386/i386.c (ix86_option_override_internal): Disable
30880 jump tables when retpolines are used.
30882 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30885 * ipa-split.c (execute_split_functions): Do not split
30886 'noinline' or 'section' function.
30888 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30891 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30892 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30893 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30896 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30897 from diagnostics. Formatting fixes.
30900 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30901 warn_odr diagnostics.
30904 * lra-constraints.c (process_alt_operands): Avoid one space before
30905 " at the end of line and another after " on another line in a string
30907 * attribs.c (handle_dll_attribute): Likewise.
30908 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30910 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30911 warning_at or inform messages in G_() if there is no ?:.
30913 PR tree-optimization/89550
30914 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30915 returned true. Formatting fixes.
30916 (expand_builtin_strnlen): Formatting fixes.
30917 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30918 if warning_at returned true.
30919 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30921 2019-03-08 Richard Biener <rguenther@suse.de>
30923 PR middle-end/89578
30924 * cfgloop.h (struct loop): Add owned_clique field.
30925 * cfgloopmanip.c (copy_loop_info): Copy it.
30926 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30928 * tree-inline.c (copy_loops): Remap owned_clique.
30929 * lto-streamer-in.c (input_cfg): Stream owned_clique.
30930 * lto-streamer-out.c (output_cfg): Likewise.
30932 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30935 * config/darwin.c: Include intl.h.
30936 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
30937 composing the message out of two separate parts.
30939 2019-03-07 Jakub Jelinek <jakub@redhat.com>
30942 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
30943 doesn't start with a capital letter and doesn't end with a dot.
30944 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
30945 with a capital letter.
30946 (ix86_mangle_function_version_assembler_name): Likewise.
30947 (ix86_generate_version_dispatcher_body): Likewise.
30948 (fold_builtin_cpu): Likewise.
30949 (get_builtin_code_for_version): Likewise. Remove extraneous space.
30950 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
30951 translators, wrap full type name in %qs.
30953 PR translation/79999
30954 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
30955 depend clause with source (or sink) modifier.
30956 * omp-expand.c (expand_omp_ordered_sink): Likewise.
30959 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
30960 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
30961 (avx512f_load<mode>_mask): New define_expand.
30962 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
30963 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
30964 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
30965 __builtin_ia32_movess_mask): New builtins.
30966 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
30967 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
30968 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
30969 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
30971 2019-03-07 Martin Jambor <mjambor@suse.cz>
30974 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
30975 for extern inline functions.
30977 2019-03-07 Martin Jambor <mjambor@suse.cz>
30980 * cgraph.h (cgraph_node): New inline method former_thunk_p.
30981 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
30982 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
30983 have multiple callees. At the end check if declarations match as
30984 opposed to cgraph_nodes.
30986 2019-03-07 Martin Liska <mliska@suse.cz>
30988 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
30989 which is equivalent to searching for this in clones chain.
30990 * symtab.c (symtab_node::verify_base): Similarly compare ASM
30991 names with a neighbour and special case first node in a chain.
30993 2019-01-25 Jason Merrill <jason@redhat.com>
30995 PR c++/80916 - spurious "static but not defined" warning.
30996 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
30997 for an internal symbol with DECL_EXTERNAL.
30999 2019-04-07 Richard Biener <rguenther@suse.de>
31001 PR middle-end/89618
31002 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31003 * tree-inline.c (copy_loops): Simplify.
31005 2019-03-07 Martin Liska <mliska@suse.cz>
31007 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31009 2019-03-07 Richard Biener <rguenther@suse.de>
31011 PR tree-optimization/89595
31012 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31013 stmt iterator as reference, take boolean output parameter to
31014 indicate whether the stmt was removed and thus the iterator
31016 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31017 stmts created by folding.
31019 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31022 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31025 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31027 PR rtl-optimization/88845
31028 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31030 * lra.c (remove_scratches_1): New function.
31031 (remove_scratches): Use it.
31032 (lra_emit_move): Likewise.
31034 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31036 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31037 unaligned_access variable.
31038 * config/arc/arc.c (arc_override_options): Set unaligned access
31039 default on for HS CPUs.
31040 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31042 2019-03-06 Martin Liska <mliska@suse.cz>
31044 PR gcov-profile/89577
31045 * doc/gcov.texi: Prefer to use --coverage.
31046 * doc/sourcebuild.texi: Likewise.
31048 2019-03-02 Jason Merrill <jason@redhat.com>
31050 PR c++/86485 - -Wmaybe-unused with empty class ?:
31051 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31053 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31056 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31059 PR middle-end/89590
31060 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31061 exactly one argument.
31063 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31064 Richard Sandiford <richard.sandiford@arm.com>
31066 PR tree-optimization/89570
31067 * match.pd (vec_cond into cond_op simplification): Don't use
31068 get_conditional_internal_fn, use as_internal_fn (cond_op).
31070 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31073 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31074 to decide when to split off a non-zero offset from a symbol.
31075 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31076 in function symbols.
31078 2019-03-05 Richard Biener <rguenther@suse.de>
31080 PR tree-optimization/89594
31081 * tree-if-conv.c (pass_if_conversion::execute): Handle
31082 case where .LOOP_VECTORIZED_FUNCTION was removed.
31084 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31087 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31088 instead alloca it only when needed with the needed size.
31090 PR tree-optimization/89570
31091 * match.pd (vec_cond into cond_op simplification): Guard with
31092 vectorized_internal_fn_supported_p test and #if GIMPLE.
31094 PR tree-optimization/89566
31095 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31096 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31097 Punt if get_user_idx_format succeeds, but idx_format argument is
31098 not provided or doesn't have pointer type, or if idx_args is above
31099 number of provided arguments.
31101 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31103 PR tree-optimization/89437
31104 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31106 2019-03-04 Richard Biener <rguenther@suse.de>
31108 PR middle-end/89572
31109 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31112 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31114 PR tree-optimization/89487
31115 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31116 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31117 (distribute_loop): Don't do runtime alias check if there is non-
31118 addressable data reference.
31119 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31120 is a register variable.
31122 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31125 * config/arm/arm.md (cmpsi2_addneg): Use
31126 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31127 If operands[2] is 0 or INT_MIN, force use of subs.
31128 (*compare_scc splitter): Use gen_int_mode.
31129 (*negscc): Likewise.
31130 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31132 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31133 Monk Chiang <sh.chiang04@gmail.com>
31135 * common/config/riscv/riscv-common.c: Include sstream.
31136 (riscv_subset_list::to_string): New.
31137 (riscv_arch_str): Likewise.
31138 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31139 * config.in: Regen.
31140 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31141 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31142 (riscv_emit_attribute): New.
31143 (riscv_file_start): Emit attribute if needed.
31144 (riscv_option_override): Init riscv_emit_attribute_p.
31145 * config/riscv/riscv.opt (mriscv-attribute): New option.
31146 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31147 * configure: Regen.
31148 * doc/install.texi: Document --with-riscv-attribute.
31149 * doc/invoke.texi: Document -mriscv-attribute.
31151 * common/config/riscv/riscv-common.c:
31152 Include config/riscv/riscv-protos.h.
31153 (INCLUDE_STRING): Defined.
31154 (RISCV_DONT_CARE_VERSION): Defined.
31155 (riscv_subset_t): Declare.
31156 (riscv_subset_t::riscv_subset_t): New.
31157 (riscv_subset_list): Declare.
31158 (riscv_subset_list::riscv_subset_list): New.
31159 (riscv_subset_list::~riscv_subset_list): Likewise.
31160 (riscv_subset_list::parsing_subset_version): Likewise.
31161 (riscv_subset_list::parse_std_ext): Likewise.
31162 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31163 (riscv_subset_list::add): Likewise.
31164 (riscv_subset_list::lookup): Likewise.
31165 (riscv_subset_list::xlen): Likewise.
31166 (riscv_subset_list::parse): Likewise.
31167 (riscv_supported_std_ext): Likewise.
31168 (current_subset_list): Likewise.
31169 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31172 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31174 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31175 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31176 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31178 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31180 PR rtl-optimization/85899
31181 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31182 fallthru edges leading to the exit block.
31184 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31187 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31188 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31190 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31192 PR tree-optimization/89535
31193 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31194 for each operand. Calculate the fallback choice for mask operands
31195 and pass it to vect_get_vec_def_for_operand.
31197 2019-03-01 Richard Biener <rguenther@suse.de>
31199 PR middle-end/89541
31200 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31201 get virtual operands.
31202 (get_expr_operands): Handle CONST_DECL like other decls.
31204 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31206 PR middle-end/89503
31207 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31208 on DECL_P and EXPR_P.
31210 2019-03-01 Richard Biener <rguenther@suse.de>
31212 PR middle-end/89497
31213 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31214 argument, defaulted to zero.
31215 * passes.c (execute_function_todo): Pass down SSA update flags
31216 to cleanup_tree_cfg.
31217 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31218 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31220 (cleanup_tree_cfg): Get and pass down SSA update flags.
31222 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31225 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31226 early_lto_debug argument.
31228 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31230 PR tree-optimization/89536
31231 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31232 only whether bit #0 of the value is 0 instead of the entire value.
31234 2019-02-28 Marek Polacek <polacek@redhat.com>
31236 PR c++/87068 - missing diagnostic with fallthrough statement.
31237 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31238 at the end of a seq, save its location to walk_stmt_info.
31239 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31242 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31245 * tree.c (find_atomic_core_type): Move ahead in file.
31246 (check_base_type): Correctly compare alignments of atomic types.
31248 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31251 * config/i386/i386.c (get_builtin_code_for_version): Identify
31252 Westmere from PCLMUL, instead of AES.
31254 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31257 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31258 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31261 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31264 * config/aarch64/aarch64-option-extensions.def: Document it.
31265 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31268 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31271 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31272 builtins if they don't have a single scalar floating point argument.
31275 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31277 PR rtl-optimization/89490
31278 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31279 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31280 block section is not mergeable.
31282 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31285 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31286 old define_insn to ...
31287 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31288 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31289 Rename old define_insn to ...
31290 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31291 (thumb2_casesi_internal_pic): New define_expand. Rename old
31293 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31294 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31295 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31297 2019-02-27 Richard Biener <rguenther@suse.de>
31300 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31302 2019-02-27 Richard Biener <rguenther@suse.de>
31304 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31307 2019-02-27 Richard Biener <rguenther@suse.de>
31310 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31311 parameter, prefix section name with .gnu.debuglto_ if true.
31312 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31313 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31315 2019-02-27 Richard Biener <rguenther@suse.de>
31318 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31319 rather than on use_debug_types, doing what output_die does.
31320 (value_format): Likewise.
31322 2019-02-27 Martin Jambor <mjambor@suse.cz>
31323 Martin Sebor <msebor@redhat.com>
31325 * doc/invoke.texi (Warning Options): Reword description of
31326 -Wno-absolute-value.
31328 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31330 PR tree-optimization/89280
31331 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31332 builtin_setjmp_setup_bb): New functions.
31333 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31334 When visiting __builtin_setjmp_setup block, queue in special
31335 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31336 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31337 from visited after the loop if they don't have any visited successor
31340 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31342 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31344 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31346 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31349 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31350 with types other than sizetype/ssizetype.
31352 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31354 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31355 (enum sparc_processor_type): ...this.
31356 (enum sparc_code_model_type): New enumeration type.
31357 (enum sparc_memory_model_type): Tweak comments.
31358 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31360 (mcmodel): Use sparc_code_model enumeration and variable.
31361 (sparc_code_model): New enumeration.
31362 (mdebug): Add Undocumented marker.
31363 * config/sparc/sparc.h (enum cmodel): Delete.
31364 (sparc_cmodel): Likewise.
31365 (TARGET_CM_MEDLOW): Adjust to above renaming.
31366 (TARGET_CM_MEDMID): Likewise.
31367 (TARGET_CM_MEDANY): Likewise.
31368 (TARGET_CM_EMBMEDANY): Likewise.
31369 * config/sparc/sparc.c (sparc_cmodel): Delete.
31370 (sparc_option_override): Remove string/value mapping support for the
31371 code model. Move code and memory model support to after the handling
31372 of target flags. Do private machine setup last.
31373 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31374 (sparc_legitimize_reload_address): Likewise.
31375 (sparc_output_mi_thunk): Likewise.
31376 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31378 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31380 PR tree-optimization/89500
31381 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31382 (handle_builtin_strlen): Remove noncst_bound variable. Always
31383 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31384 cst if the first cst bytes starting at x are known to be non-zero,
31385 even if the string is not zero terminated. Don't try to modify
31386 *si for strnlen. Update strlen_to_stridx only for strlen or if
31387 we can prove strnlen returns the same value as strlen would.
31389 2019-02-26 Martin Liska <mliska@suse.cz>
31391 * alloc-pool.h (struct pool_usage): Remove extra
31393 * bitmap.h (struct bitmap_usage): Likewise.
31394 * ggc-common.c (struct ggc_usage): Likewise.
31395 * mem-stats.h (struct mem_usage): Likewise.
31396 (mem_alloc_description::dump): Print dash lines
31397 here and repeat header at the end of a table report.
31398 It's then more readable.
31399 * tree-phinodes.c (phinodes_print_statistics): Make
31400 horizontal alignment.
31401 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31402 * vec.c (struct vec_usage): Remove extra print_dash_line.
31403 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31405 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31407 * doc/extend.texi (__builtin_object_size):
31408 Use @pxref instead of @xref inside parenthesis.
31409 (__builtin_has_attribute): Add missing comma after @xref.
31410 (__builtin_object_size): Ditto.
31411 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31413 2019-02-26 Jeff Law <law@redhat.com>
31415 PR rtl-optimization/87761
31416 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31417 detect obviously dead insns and delete them.
31419 2019-02-26 Richard Biener <rguenther@suse.de>
31421 PR tree-optimization/89505
31422 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31423 to handle restrict pointed-to vars with multiple subvars
31426 2019-02-26 Richard Biener <rguenther@suse.de>
31428 PR tree-optimization/89489
31429 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31431 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31433 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31434 and move around comment.
31435 <BIT_AND_EXPR>: Likewise.
31436 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31438 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31441 * config/i386/i386.c (remove_partial_avx_dependency): Call
31442 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31443 after changing possibly many instructions to use that pseudo. Fix up
31444 insertion of v4sf_const0 setter at the start of bb.
31446 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31449 * doc/extend.texi (Variadic Pointer Args): New section.
31451 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31452 Martin Sebor <msebor@gmail.com>
31454 * common.opt (Wattribute-alias): Likewise.
31455 * doc/invoke.texi (Option Summary): List general form of
31456 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31457 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31458 Add cross-references.
31459 (-Wattribute-alias): Rewrite and correct default. Mention
31460 considered attributes (same as for -Wmissing-attributes).
31462 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31464 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31465 (_mm_cvtpd_ps): Likewise.
31466 (_mm_cvttpd_epi32): Likewise.
31469 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31470 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31473 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31475 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31478 * common/config/aarch64/aarch64-common.c
31479 (struct aarch64_option_extension): Add is_synthetic.
31480 (all_extensions): Use it.
31481 (TARGET_OPTION_INIT_STRUCT): Define hook.
31482 (struct gcc_targetm_common): Moved to end.
31483 (all_extensions_by_on): New.
31484 (opt_ext_cmp, typedef opt_ext): New.
31485 (aarch64_option_init_struct): New.
31486 (aarch64_contains_opt): New.
31487 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31488 * config/aarch64/aarch64-option-extensions.def
31489 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31490 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31491 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31492 Set is_synthetic to false.
31493 (crypto): Set is_synthetic to true.
31494 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31497 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31499 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31500 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31501 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31502 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31503 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31504 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31505 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31506 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31508 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31509 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31510 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31511 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31512 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31513 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31514 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31515 vfmlsl_laneq_high_f16): ... To this.
31516 * config/arm/neon.md: Update comments.
31518 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31520 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31521 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31522 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31523 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31524 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31525 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31526 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31527 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31529 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31530 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31531 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31532 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31533 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31534 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31535 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31536 vfmlslq_laneq_high_f16): ... To this.
31538 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31540 PR rtl-optimization/86096
31541 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31542 comparing mw_order values.
31544 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31547 * config/arm/arm.md (*subsi3_carryin_const): Use
31548 arm_neg_immediate_operand predicate instead of
31549 arm_not_immediate_operand, "L" constraint instead of "K" and
31550 print it using %n2 instead of %B2.
31551 (*subsi3_carryin_const0): New define_insn.
31552 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31553 instead of arm_not_operand and "I" constraint instead of "K" and
31554 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31555 another match_operand and in the condition check that it is negation
31557 (*subsi3_carryin_compare_const0): New define_ins.
31558 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31559 *subsi3_carryin_const.
31560 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31561 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31564 * config/arm.vfp.md (*negdf2_vfp): Use
31565 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31566 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31568 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31570 PR rtl-optimization/89445
31571 * simplify-rtx.c (simplify_ternary_operation): Don't use
31572 simplify_merge_mask on operands that may trap.
31573 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31574 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31575 second operand is CONST_VECTOR, check if any element could be zero.
31576 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31577 their operands can trap.
31579 2019-02-23 Martin Sebor <msebor@redhat.com>
31581 * gimple-ssa-sprintf.c (target_strtol): Rename...
31582 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31583 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31584 check for range error.
31586 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31589 * opts-common.c (prune_options): Also prune joined switches
31590 with Negative and RejectNegative.
31591 * config/i386/i386.opt (march=): Add Negative(march=).
31592 (mtune=): Add Negative(mtune=).
31593 * doc/options.texi: Document Negative used together with Joined
31594 and RejectNegative.
31596 2019-02-22 Martin Sebor <msebor@redhat.com>
31598 * doc/extend.texi (Other Builtins): Add
31599 __builtin_is_constant_evaluated.
31601 2019-02-22 Richard Biener <rguenther@suse.de>
31603 PR tree-optimization/87609
31604 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31606 2019-02-22 Jeff Law <law@redhat.com>
31608 PR rtl-optimization/87761
31609 * config/mips/mips.md: Add new combiner pattern to recognize
31610 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31612 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31615 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31616 destination register in peepholes generating patterns for ADDS/SUBS.
31617 (add<mode>3_compare0,
31618 *addsi3_compare0_uxtw, add<mode>3_compareC,
31619 add<mode>3_compareV_imm, add<mode>3_compareV,
31620 *adds_<optab><ALLX:mode>_<GPI:mode>,
31621 *subs_<optab><ALLX:mode>_<GPI:mode>,
31622 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31623 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31624 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31625 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31626 sub<mode>3_compare1): Allow stack pointer for source register.
31627 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31629 2019-02-22 Martin Sebor <msebor@redhat.com>
31631 PR tree-optimization/88993
31632 PR tree-optimization/88853
31633 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31635 (sprintf_dom_walker::call_info::is_string_func): New helper.
31636 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31637 for formatted string functions.
31638 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31640 2019-02-22 Martin Sebor <msebor@redhat.com>
31643 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31644 unreachable subexpressions.
31646 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31647 Hongtao Liu <hongtao.liu@intel.com>
31648 Sunil K Pandey <sunil.k.pandey@intel.com>
31651 * config/i386/i386-passes.def: Add
31652 pass_remove_partial_avx_dependency.
31653 * config/i386/i386-protos.h
31654 (make_pass_remove_partial_avx_dependency): New.
31655 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31657 (pass_data_remove_partial_avx_dependency): New.
31658 (pass_remove_partial_avx_dependency): Likewise.
31659 (make_pass_remove_partial_avx_dependency): Likewise.
31660 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31661 (*extendsfdf2): Add avx_partial_xmm_update.
31662 (truncdfsf2): Likewise.
31663 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31664 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31666 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31668 PR middle-end/85598
31669 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31672 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31675 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31676 (PTA_SKYLAKE): Add PTA_AES.
31677 (PTA_GOLDMONT): Likewise.
31679 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31681 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31682 instruction if enabled.
31683 (aarch64_override_options): Remove reference to return address key.
31685 2019-02-22 Richard Biener <rguenther@suse.de>
31687 PR tree-optimization/89440
31688 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31689 not necessary assert.
31691 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31694 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31695 (oacc_replace_fn_attrib_attr): ... this new function.
31696 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31697 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31699 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31701 * config/arm/arm-cpus.in (ares): Rename to...
31702 (neoverse-n1): ... This. Add ares as alias.
31703 * config/arm/arm-tables.opt: Regenerate.
31704 * config/arm/arm-tune.md: Likewise.
31705 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31707 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31709 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31710 * config/aarch64/aarch64-tune.md: Regenerate.
31711 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31713 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31715 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31716 (neoversen1_tunings): ... This.
31717 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31718 (neoverse-n1): New CPU.
31719 * config/aarch64/aarch64-tune.md: Regenerate.
31720 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31722 2019-02-22 Richard Biener <rguenther@suse.de>
31724 PR middle-end/87609
31725 * cfghooks.h (dependence_hash): New typedef.
31726 (struct copy_bb_data): New type.
31727 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31728 (duplicate_block): Likewise.
31729 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31730 (copy_bbs): Create and pass down copy_bb_data.
31731 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31732 (rtl_duplicate_bb): Likewise.
31733 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31734 remap dependence info.
31736 2019-02-22 Richard Biener <rguenther@suse.de>
31738 PR tree-optimization/87609
31739 * tree-core.h (tree_base): Document special clique values.
31740 * tree-inline.c (remap_dependence_clique): Do not use the
31741 special clique value of one.
31742 (maybe_set_dependence_info): Use clique one.
31743 (clear_dependence_clique): New callback.
31744 (compute_dependence_clique): Clear clique one from all refs
31745 before assigning it (again).
31747 2019-02-21 Martin Sebor <msebor@redhat.com>
31749 * doc/extend.texi (__clear_cache): Correct signature.
31751 2019-02-21 Ian Lance Taylor <iant@golang.org>
31754 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31755 than output_constant_def.
31756 (add_constant_to_table): New static function.
31757 (output_constant_def): Call add_constant_to_table.
31758 (tree_output_constant_def): Likewise.
31760 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31763 * builtins.c (fold_builtin_arith_overflow): If first two args are
31764 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31767 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31770 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31771 error for -mindirect-branch/-mfunction-return with incompatible
31774 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31777 * constraints.md (q): Remove.
31778 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31781 2019-02-21 Martin Jambor <mjambor@suse.cz>
31784 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31785 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31786 (omp_adjust_for_condition): ...here. Added necessary parameters.
31787 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31788 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31789 proper values to new parameters of omp_adjust_for_condition.
31791 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31793 PR middle-end/89412
31794 * expr.c (expand_assignment): If result is a MEM, use change_address
31795 instead of simplify_gen_subreg.
31797 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31798 David Malcolm <dmalcolm@redhat.com>
31800 PR middle-end/89091
31801 * fold-const.c (decode_field_reference): Return NULL_TREE if
31802 lang_hooks.types.type_for_size returns NULL. Check it before
31803 overwriting *exp_. Use return NULL_TREE instead of return 0.
31805 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31807 PR middle-end/88074
31808 PR middle-end/89415
31809 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31812 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31815 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31816 TARGET_SSE in addition to TARGET_SSE_MATH.
31818 (ix86_excess_precision): Ditto.
31819 (ix86_float_exceptions_rounding_supported_p): Ditto.
31820 (use_rsqrt_p): Ditto.
31821 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31823 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31826 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31827 linenum_arith_t when determining if two adjacent line spans are
31828 close enough to merge.
31829 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31830 lines within each line_span.
31832 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31835 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31836 paradoxical SUBREGS.
31838 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31841 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31842 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31843 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31846 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31848 * config/gcn/gcn.c (print_operand): Fix typo.
31850 2019-02-19 Richard Biener <rguenther@suse.de>
31852 PR middle-end/88074
31853 * toplev.c (do_compile): Initialize mpfr's exponent range
31854 based on available float modes.
31856 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31858 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31859 as long as the epilogue isn't completed.
31861 2019-02-18 Martin Sebor <msebor@redhat.com>
31863 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31864 __has_cpp_attribute, and __has_include.
31866 2019-02-18 Martin Sebor <msebor@redhat.com>
31868 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31870 2019-02-18 Martin Sebor <msebor@redhat.com>
31872 PR middle-end/89294
31873 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31875 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31877 2019-02-18 Richard Biener <rguenther@suse.de>
31879 PR tree-optimization/89296
31880 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31881 of no-warning flag to cases that might emit the bogus warning.
31883 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31886 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31888 * config/arm/vfp.md (*movdi_vfp): Likewise.
31889 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31890 "q" constraint for operands[0].
31893 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31894 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31895 pattern in a temporary buffer.
31896 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31897 than 64-operands[2].
31900 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31901 s390_indirect_branch_settings): Define unconditionally.
31902 (s390_set_current_function): Likewise, but guard the whole body except
31903 the s390_indirect_branch_settings call with
31904 #if S390_USE_TARGET_ATTRIBUTE.
31905 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31907 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31908 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31909 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31910 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31911 HOST_WIDE_INT_1U instead of 1ULL.
31912 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31913 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31914 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31915 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31917 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31920 2019-02-18 Martin Jambor <mjambor@suse.cz>
31922 PR tree-optimization/89209
31923 * tree-sra.c (create_access_replacement): New optional parameter
31924 reg_tree. Use it as a type if non-NULL and access type is not of
31926 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31927 to create_access_replacement.
31928 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
31929 Check lacc is non-NULL before attempting to re-create it on the RHS.
31931 2019-02-18 Martin Liska <mliska@suse.cz>
31934 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
31936 (symbol_table::free_edge): Recycle m_summary_id.
31937 * cgraph.h (get_summary_id): New.
31938 (symbol_table::release_symbol): Set m_summary_id to -1
31940 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
31941 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
31942 function_summary to fast_function_summary.
31943 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
31944 * ipa-pure-const.c (class funct_state_summary_t):
31945 Switch from function_summary to fast_function_summary.
31946 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
31947 (class ipa_ref_opt_summary_t): Switch from function_summary
31948 to fast_function_summary.
31949 * symbol-summary.h (class function_summary_base): New class
31950 that is created from base of former function_summary.
31951 (function_summary_base::unregister_hooks): New.
31952 (class function_summary): Inherit from function_summary_base.
31953 (class call_summary_base): New class
31954 that is created from base of former call_summary.
31955 (class call_summary): Inherit from call_summary_base.
31956 (struct is_same): New.
31957 (class fast_function_summary): New summary class.
31958 (class fast_call_summary): New summary class.
31959 * vec.h (vec_safe_grow_cleared): New function.
31961 2019-02-18 Martin Liska <mliska@suse.cz>
31963 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
31964 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
31965 * doc/tm.texi: Document new target hook.
31966 * doc/tm.texi.in: Likewise.
31967 * target.def: Add new target macro.
31968 * gcc.c (find_fortran_preinclude_file): Do not search multilib
31971 2019-02-17 Alan Modra <amodra@gmail.com>
31974 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
31975 output reg on add insn.
31976 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
31978 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31981 * config/i386/sse.md (ssedoublemode): Remove V4HI.
31982 (PMULHRSW): Likewise.
31983 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
31985 (ssse3_pmulhrswv4hi3): New expander.
31987 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
31989 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
31990 MMX. Add isa attribute.
31992 2019-02-16 Jakub Jelinek <jakub@redhat.com>
31994 PR rtl-optimization/66152
31995 * builtins.h (c_readstr): Declare.
31996 * builtins.c (c_readstr): Remove forward declaration. Add
31997 null_terminated_p argument, if false, read all bytes from the
31998 string instead of stopping after '\0'.
31999 * expr.c (string_cst_read_str): New function.
32000 (store_expr): Use string_cst_read_str instead of
32001 builtin_strncpy_read_str. Try to store by pieces the whole
32002 exp_len first, and only if that fails, split it up into
32003 store by pieces followed by clear_storage. Formatting fix.
32005 * config/i386/i386.md (*movqi_internal): Remove static from
32006 buf variable. Use output_asm_insn (buf, operands); return "";
32007 instead of return buf;.
32008 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32009 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32010 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32012 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32014 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32015 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32016 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32017 (CC1_SPEC): Likewise.
32018 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32020 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32022 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32023 the base address on 64-bit strict-alignment platforms.
32025 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32027 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32029 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32031 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32033 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32035 PR rtl-optimization/88308
32036 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32037 on copied instruction.
32039 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32041 * final.c (insn_current_reference_address): Replace test on JUMP_P
32042 with test on jump_to_label_p.
32043 * config/visium/visium-passes.def: New file.
32044 * config/visium/t-visium (PASSES_EXTRA): Define.
32045 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32046 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32047 (TRAMPOLINE_ALIGNMENT): Define.
32048 * config/visium/visium.c (visium_option_override): Do not register
32049 the machine-specific reorg pass here.
32050 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32052 (output_branch): Adjust threshold for long branch instruction.
32053 * config/visium/visium.md (cpu): Move around.
32054 (length): Adjust for the GR6.
32056 2019-02-15 Richard Biener <rguenther@suse.de>
32057 Jakub Jelinek <jakub@redhat.com>
32059 PR tree-optimization/89278
32060 * tree-loop-distribution.c: Include tree-eh.h.
32061 (generate_memset_builtin, generate_memcpy_builtin): Call
32062 rewrite_to_non_trapping_overflow on builtin->size before passing it
32063 to force_gimple_operand_gsi.
32065 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32068 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32070 * opth-gen.awk: Likewise.
32072 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32074 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32075 Enable MMX, SSE and SSE2 by default.
32076 * config/i386/i386.c (ix86_option_override_internal): Do not
32077 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32079 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32081 PR rtl-optimization/89354
32082 * combine.c (make_extraction): Punt if extraction_mode is narrower
32085 2019-02-14 Maya Rashish <coypu@sdf.org>
32087 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32088 * config/netbsd-d.c: New file.
32089 * config/t-netbsd: Add netbsd-d.o
32091 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32093 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32094 affects_type_identity to true for aarch64_vector_pcs.
32095 (aarch64_comp_type_attributes): New function.
32096 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32098 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32101 * config/arm/iterators.md (ANY64): Add V4HF.
32103 2019-02-14 Martin Liska <mliska@suse.cz>
32105 PR rtl-optimization/89242
32106 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32107 process a transformation.
32109 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32111 PR tree-optimization/89314
32112 * fold-const.c (fold_binary_loc): Cast strlen argument to
32113 const char * before dereferencing it. Formatting fixes.
32115 PR middle-end/89284
32116 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32118 2019-02-13 Ian Lance Taylor <iant@golang.org>
32120 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32121 and set current index for other optimizations.
32123 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32125 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32126 nonimmediate_operand as operand 2 predicate.
32127 (vec_set<VF2_512_256:mode>_0): Ditto.
32128 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32129 (*vec_concatv2si): Remove alternative 2.
32130 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32131 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32132 (vec_concatv2di): Split alternatives 4,5,6 to ...
32133 (*vec_concatv2di_0) ... new pattern.
32135 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32138 * config/arm/arm.c (ldm_stm_operation_p) Set
32139 addr_reg_in_reglist correctly for first register.
32140 (load_multiple_sequence): Remove dead base check.
32141 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32143 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32146 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32147 Expose as @aarch64_pred_mov.
32148 * config/aarch64/aarch64.c (aarch64_classify_address):
32149 Use expand_insn which legitimizes operands.
32151 2019-02-13 Martin Liska <mliska@suse.cz>
32153 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32154 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32155 and pointer_offset fields.
32156 (initialize_argument_information): Remove usage of dead
32158 * cgraph.h (struct cgraph_thunk_info): Remove
32159 add_pointer_bounds_args.
32160 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32162 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32164 * config/i386/i386.c (ix86_function_arg_advance): Remove
32166 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32167 (def_builtin): Remove usage of dead fields.
32168 (ix86_add_new_builtins): Likewise.
32169 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32170 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32171 (sem_function::init): Likewise.
32172 (sem_variable::merge): Likewise.
32173 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32174 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32175 * lto-cgraph.c (lto_output_node): Likewise.
32176 (lto_output_varpool_node): Likewise.
32177 (input_node): Likewise.
32178 (input_varpool_node): Likewise.
32179 * lto-streamer-out.c (lto_output): Likewise.
32180 * tree-inline.c (expand_call_inline): Remove usage of
32182 * tree-inline.h (struct copy_body_data): Likewise.
32183 * varpool.c (varpool_node::dump): Likewise.
32185 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32187 PR middle-end/89303
32188 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32189 into pt->vars_contains_escaped_heap instead of setting
32190 pt->vars_contains_escaped_heap to it.
32192 PR middle-end/89281
32193 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32194 INTVAL (size), compare it to GET_MODE_MASK instead of
32195 1 << GET_MODE_BITSIZE.
32198 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32199 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32202 2019-02-13 Martin Liska <mliska@suse.cz>
32205 * cfgrtl.c (remove_barriers_from_footer): New function.
32206 (try_redirect_by_replacing_jump): Use it.
32207 (cfg_layout_redirect_edge_and_branch): Likewise.
32209 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32211 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32212 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32213 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32214 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32215 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32216 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32218 * config/rs6000/rs6000.c (builtin_function_type)
32219 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32220 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32221 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32222 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32223 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32225 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32227 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32228 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32230 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32233 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32234 268678 and revision 268657.
32235 (*movti_internal): Likewise.
32237 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32240 * config/s390/s390.c (s390_decompose_address): Update comment.
32241 (s390_check_qrst_address): Reject invalid address forms after
32244 2019-02-12 Martin Liska <mliska@suse.cz>
32247 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32248 we need default values of funct_state for a function that
32251 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32253 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32254 the object to pick the size of stores on strict-alignment platforms.
32256 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32257 (*movdi_insn_sp32): Likewise.
32258 (*movdi_insn_sp64): Likewise.
32260 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32263 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32264 types that needs constructiong.
32265 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32267 2019-02-12 Richard Biener <rguenther@suse.de>
32269 PR tree-optimization/89253
32270 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32271 duplicate the loop.
32273 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32276 * input.c (selftest::test_line_offset_overflow): New selftest.
32277 (selftest::input_c_tests): Call it.
32279 2019-02-11 Martin Sebor <msebor@redhat.com>
32281 PR tree-optimization/88771
32282 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32283 when -Wstringop-overflow is set.
32284 (builtin_memref::builtin_memref): Adjust excessive upper bound
32285 only when lower bound is not excessive.
32286 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32287 -Wstringop-ovefflow.
32288 (maybe_diag_offset_bounds): Rename...
32289 (maybe_diag_access_bounds): ...to this.
32290 (check_bounds_or_overlap): Adjust for name change above.
32292 2019-02-11 Martin Sebor <msebor@redhat.com>
32295 * builtins.c (max_object_size): Move from here...
32296 * builtins.h (max_object_size): ...and here...
32297 * tree.c (max_object_size): ...to here...
32298 * tree.h (max_object_size): ...and here.
32300 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32302 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32303 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32304 for correct semantics.
32306 2019-02-11 Alan Modra <amodra@gmail.com>
32308 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32309 -mlongcall and -mpltseq.
32310 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32311 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32312 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32313 * config/rs6000/sysv4.opt (mpltseq): New option.
32314 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32315 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32316 support is lacking. Don't allow -mpltseq with -mbss-plt.
32317 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32318 -mpltseq given for ELFv1.
32319 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32320 Only use UNSPEC_PLTSEQ for inline PLT calls.
32321 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32322 use UNSPEC_PLTSEQ for inline PLT calls.
32323 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32324 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32325 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32326 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32327 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32328 (pltseq_mtctr_<mode>): Likewise.
32330 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32332 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32334 * configure: Regenerate.
32336 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32339 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32342 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32344 * function.c (assign_parm_setup_block): Use the stored
32345 size, not the passed size, when allocating stack-space,
32346 also for a parameter with alignment larger than
32347 MAX_SUPPORTED_STACK_ALIGNMENT.
32349 2019-02-11 Martin Liska <mliska@suse.cz>
32352 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32353 * ipa-inline.c (inline_small_functions): Likewise.
32354 * ipa-pure-const.c (propagate_pure_const): Likewise.
32355 (propagate_nothrow): Likewise.
32356 * ipa-reference.c (propagate): Likewise.
32357 * ipa-utils.c (struct searchc_env): Remove unused field.
32358 (searchc): Always search across AVAIL_INTERPOSABLE.
32359 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32360 the only called IPA pure const can properly not propagate
32361 across interposable boundary.
32362 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32364 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32366 * config/nds32/nds32.md (call_internal, call_value_internal,
32367 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32369 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32371 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32374 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32376 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32379 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32381 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32383 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32385 PR tree-optimization/89268
32386 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32387 if preds is non-NULL.
32389 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32392 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32395 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32397 * config/nds32/nds32.md (trap): New pattern.
32399 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32401 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32404 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32406 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32409 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32411 * ipa-visibility.c (localize_node): Also do not localize
32412 LDPR_PREVAILING_DEF_IRONLY_EXP.
32414 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32417 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32418 instead of type_with_linkage.
32420 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32423 * params.def (uninlined-function-insns, uninlined-function-time,
32424 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32425 bound so we don't get overflows.
32427 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32429 * config/rs6000/rs6000-string.c (expand_compare_loop,
32430 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32433 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32435 PR middle-end/89246
32436 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32437 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32438 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32440 2019-02-09 Alan Modra <amodra@gmail.com>
32443 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32444 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32447 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32449 PR middle-end/88560
32450 * lra-constraints.c (process_alt_operands): Don't increase reject
32451 for memory when offset memory is required.
32453 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32455 * config/s390/vector.md: Implement vector copysign.
32457 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32459 * expr.c (expand_constructor): Correct indentations.
32461 2019-02-08 Richard Biener <rguenther@suse.de>
32463 PR tree-optimization/89247
32464 * tree-if-conv.c: Include tree-cfgcleanup.h.
32465 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32466 (tree_if_conversion): Pass through predicate vector.
32467 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32468 inline, see if any if-converted loops we refrece in
32469 LOOP_VECTORIZED calls vanished and fixup.
32470 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32472 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32474 * config/s390/constraints.md (jdd): New constraint.
32476 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32479 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32480 upper 16 vector registers without TARGET_AVX512VL.
32481 (*movti_internal): Likewise.
32483 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32485 PR rtl-optimization/89234
32486 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32487 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32488 (copy_reg_eh_region_note_backward): Likewise.
32490 2019-02-08 Richard Biener <rguenther@suse.de>
32492 PR middle-end/89223
32493 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32494 doesn't fit in HWI.
32495 (analyze_subscript_affine_affine): Handle failure from
32496 initialize_matrix_A.
32498 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32500 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32503 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32505 PR tree-optimization/86637
32506 PR tree-optimization/89235
32507 * tree-vect-loop.c (optimize_mask_stores): Add an
32508 auto_purge_vect_location sentinel to ensure that vect_location is
32510 * tree-vectorizer.c
32511 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32512 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32513 to ensure that vect_location is purged on exit.
32514 (pass_slp_vectorize::execute): Likewise, replacing the manual
32516 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32518 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32520 * config/aarch64/iterators.md (max_opp): New code_attr.
32521 (USMAX): New code iterator.
32522 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32523 (aarch64_smax): Likewise.
32524 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32525 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32528 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32531 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32532 for TARGET_AVX512VL.
32533 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32535 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32537 * config/s390/s390-builtin-types.def: Add new types.
32538 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32539 (s390_vec_xlw4): Make the memory operand into a const pointer.
32540 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32542 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32543 a new vector type with the alignment of the scalar memory operand.
32545 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32546 Jakub Jelinek <jakub@redhat.com>
32549 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32550 arm_count_ldrdstrd_insns): New declarations.
32551 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32553 (valid_operands_ldrd_strd): New function.
32554 (arm_count_ldrdstrd_insns): New function.
32555 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32556 sets instead of single DImode set and define new insns to match this.
32558 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32560 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32561 Make it a C initializer.
32563 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32566 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32568 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32570 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32571 Use neon_dot<q> for type.
32572 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32574 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32576 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32577 Use neon_dot<q> for type.
32578 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32579 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32581 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32583 PR rtl-optimization/89225
32584 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32587 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32589 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32590 after restoring registers saved to allocate the frame on Windows.
32592 2019-02-06 Richard Biener <rguenther@suse.de>
32594 PR tree-optimization/89182
32595 * graphite.h (cached_scalar_evolution_in_region): Declare.
32596 * graphite.c (struct seir_cache_key): New.
32597 (struct sese_scev_hash): Likewise.
32598 (seir_cache): New global.
32599 (cached_scalar_evolution_in_region): New function.
32600 (graphite_transform_loops): Allocate and release seir_cache.
32601 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32602 cached_scalar_evolution_in_region.
32603 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32605 (scop_detection::graphite_can_represent_expr: Use
32606 cached_scalar_evolution_in_region.
32607 (scop_detection::stmt_simple_for_scop_p): Likewise.
32608 (find_params_in_bb): Likewise.
32609 (gather_bbs::before_dom_children): Likewise.
32610 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32611 (add_loop_constraints): Likewise.
32613 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32615 PR middle-end/89210
32616 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32617 operand to new_unary_operation only if both element types are integral
32618 and it isn't a widening conversion. Return NULL_TREE if
32619 new_unary_operation failed.
32621 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32624 * config/s390/s390.md: Remove load and test FP splitter.
32626 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32629 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32630 expand_compare_loop, expand_block_compare_gpr,
32631 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32632 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32633 #include "profile-count.h" and "predict.h" for types and functions
32634 needed to work with REG_BR_PROB notes.
32636 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32639 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32640 for the long branch case.
32642 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32645 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32646 can throw, non-call exceptions are enabled and we can't delete
32647 dead exceptions or alter cfg. Set must_clean if
32648 delete_insn_and_edges returns true, don't set it blindly for calls.
32649 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32651 PR rtl-optimization/89195
32652 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32653 of the original MEM.
32655 2019-02-05 Martin Liska <mliska@suse.cz>
32657 PR gcov-profile/89000
32658 * gcov.c (function_summary): Remove argument.
32659 (file_summary): New function.
32660 (print_usage): Replace tabs with spaces.
32661 (generate_results): Use new function file_summary.
32663 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32666 * optabs.c (prepare_cmp_insn): Pass x and y to
32667 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32669 2019-02-05 Richard Biener <rguenther@suse.de>
32671 PR middle-end/89150
32672 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32673 (struct bitmap_element): Drop chain_prev so we properly recurse on
32674 the prev member, supporting tree views.
32675 (struct bitmap_head): GTY skip the obstack member.
32677 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32680 * doc/extend.texi (Vector Extensions): Add an example of using vector
32681 types together with x86 intrinsics.
32683 2019-02-04 Alan Modra <amodra@gmail.com>
32685 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32686 str[] size to 160, and comment.
32688 2019-02-04 Alan Modra <amodra@gmail.com>
32690 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32691 (rs6000_pltseq_template): Guard output of TLS markers with
32692 TARGET_TLS_MARKERS.
32693 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32694 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32695 to use inline PLT sequences.
32696 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32697 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32698 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32700 2019-02-04 Martin Liska <mliska@suse.cz>
32703 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32704 out when ipa_fn_summaries does not contain entry for callee.
32706 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32708 * config/sparc/sparc.h: Remove superfluous blank lines.
32709 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32710 (got_register_rtx): ...this.
32711 (sparc_got): Adjust to above renaming.
32712 (sparc_tls_got): Likewise.
32713 (sparc_delegitimize_address): Likewise.
32714 (sparc_output_mi_thunk): Likewise.
32715 (sparc_init_pic_reg): Likewise.
32716 (save_local_or_in_reg_p): Fix test on the GOT register.
32717 (USE_HIDDEN_LINKONCE): Move around.
32718 (get_pc_thunk_name): Likewise.
32719 (gen_load_pcrel_sym): Likewise.
32720 (load_got_register): Likewise.
32722 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32724 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32725 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32727 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32729 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32730 into consideration.
32732 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32734 * config.gcc (with_nds32_lib, glibc):
32735 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32736 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32737 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32739 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32742 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32743 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32744 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32745 (*rcpsf2_sse): Ditto.
32746 (*rsqrtsf2_sse): Ditto.
32747 (sse4_1_round<mode<2): Ditto.
32749 2019-02-03 Richard Biener <rguenther@suse.de>
32752 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32755 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32757 PR middle-end/87887
32758 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32759 Punt with warning on aggregate return or argument types. Ignore
32760 type/mode checking for uniform arguments.
32762 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32764 * combine.c (try_combine): Do not print "Can't combine" messages unless
32765 printing failed combination attempts.
32767 2019-02-01 Martin Jambor <mjambor@suse.cz>
32770 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32771 segment and global segment variables before making them static.
32773 2019-02-01 Martin Jambor <mjambor@suse.cz>
32775 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32776 missed optimization dump with dump_enabled_p.
32778 2019-02-01 Richard Biener <rguenther@suse.de>
32780 PR middle-end/88597
32781 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32782 the instantiate cache.
32783 (instantiate_scev_binary): Elide second operand procesing
32784 if equal to the first.
32785 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32786 (chrec_contains_undetermined): Likewise.
32787 (tree_contains_chrecs): Likewise.
32789 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32791 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32793 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32795 PR tree-optimization/89143
32796 * wide-int-range.h (wide_int_range_absu): Declare.
32797 * wide-int-range.cc (wide_int_range_absu): New function.
32798 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32800 PR tree-optimization/88107
32801 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32802 instead of assertion that eh_region_outermost is non-NULL, if it
32803 is NULL, set *ALL to true and return NULL.
32804 (move_sese_region_to_fn): Adjust caller, if all is set, call
32805 duplicate_eh_regions with NULL region.
32807 2019-02-01 Richard Biener <rguenth@suse.de>
32809 PR rtl-optimization/88593
32810 * mode-switching.c (optimize_mode_switching): Free dominators before
32811 calling cleanup_cfg.
32813 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32815 PR tree-optimization/88932
32816 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32818 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32820 PR middle-end/89137
32821 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32822 bogus clang warning.
32824 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32827 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32828 alternative to avoid partial SSE register stall for TARGET_AVX.
32829 (truncdfsf2): Ditto.
32830 (sse4_1_round<mode>2): Ditto.
32832 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32834 PR tree-optimization/89008
32835 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32836 process anything of the form X * 0.
32838 2019-01-31 Richard Biener <rguenther@suse.de>
32840 PR tree-optimization/89135
32841 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32842 with abnormal preds.
32844 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32847 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32848 always_inline callees into no_sanitize_address callers.
32850 2019-01-31 Richard Biener <rguenther@suse.de>
32852 PR rtl-optimization/89115
32853 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32855 2019-01-30 Martin Sebor <msebor@redhat.com>
32858 * doc/extend.texi (cast to a union): Correct and expand.
32860 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32862 PR rtl-optimization/87246
32863 * lra-constraints.c (simplify_operand_subreg): Reload memory
32864 in subreg if the address became invalid.
32866 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32869 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32870 Disable for little-endian.
32872 2019-01-30 Richard Biener <rguenther@suse.de>
32874 PR rtl-optimization/89115
32875 * opts.c (default_options_optimization): Reduce
32876 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32877 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32880 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32882 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32883 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32884 type of vector element when vec_extract is implemented by direct
32887 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32889 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32891 2019-01-30 Richard Biener <rguenther@suse.de>
32893 PR tree-optimization/89111
32894 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32895 canonicalization to appropriately sized access types.
32897 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32900 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32901 for arguments to functions that are TU-local and shouldn't be
32902 referenced by assembly.
32904 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32906 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32909 2019-01-29 Martin Sebor <msebor@redhat.com>
32912 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32914 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32918 * omp-simd-clone.c (simd_clone_clauses_extract)
32919 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32920 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32922 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32924 * config.gcc: Force .init_array for ARC.
32926 2019-01-29 Richard Biener <rguenther@suse.de>
32929 * dwarf2out.c (collect_skeleton_dies): New helper.
32930 (copy_decls_for_unworthy_types): Call it.
32931 (build_abbrev_table): Assert we do not try to replace
32932 DW_AT_signature refs with local refs.
32934 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32936 PR middle-end/89002
32937 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
32938 for lastprivate/linear IV, push gimplify context around gimplify_assign
32939 and, if it needed any temporaries, pop it into a gimple bind around the
32942 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
32944 * common.opt (-Wattribute-alias): Remove "no-" from name.
32945 Make -Wattribute-alias command line option and
32946 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
32948 2019-01-28 Jakub Jelinek <jakub@redhat.com>
32951 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
32952 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
32954 (bmi2): Add missing @opindex.
32955 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
32956 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
32957 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
32958 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
32959 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
32960 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
32961 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
32962 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
32963 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
32964 xsavec, xsaveopt and xsaves options.
32966 2019-01-28 Richard Biener <rguenther@suse.de>
32969 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
32972 2019-01-28 Richard Biener <rguenther@suse.de>
32974 PR tree-optimization/88739
32975 * tree-cfg.c (verify_types_in_gimple_reference): Verify
32976 BIT_FIELD_REFs only are applied to mode-precision operands
32977 when they are integral.
32978 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
32979 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
32980 BIT_FIELD_REFs of non-mode-precision integral operands.
32982 2019-01-27 Jakub Jelinek <jakub@redhat.com>
32985 * config/i386/sse.md
32986 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
32987 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
32988 first constants in pairs are multiples of 2. Formatting fixes.
32989 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
32990 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
32991 first constants in each quadruple are multiples of 4. Formatting fixes.
32993 2019-01-26 Martin Jambor <mjambor@suse.cz>
32996 * tree-inline.c: Include tree-cfgcleanup.h.
32997 (delete_unreachable_blocks_update_callgraph): Move...
32998 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
32999 ...here, make externally visible, make second argument bool, adjust
33001 * tree-cfgcleanup.c: Include cgraph.h.
33002 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33004 * ipa-prop.c: Include tree-cfgcleanup.h.
33005 (ipcp_transform_function): Call
33006 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33008 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33010 PR rtl-optimization/88846
33011 * ira.c (process_set_for_memref_referenced_p): New.
33012 (memref_referenced_p): Add new param. Use
33013 process_set_for_memref_referenced_p. Add new switch cases.
33014 (memref_used_between_p): Pass new arg to memref_referenced_p.
33016 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33019 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33020 argument ABI_BREAK. Set to true if the calculated alignment has
33021 changed in gcc-9. Check bit-fields for their base type alignment.
33022 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33023 (aarch64_function_arg_boundary): Likewise.
33024 (aarch64_gimplify_va_arg_expr): Likewise.
33026 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33028 PR middle-end/89037
33029 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33030 instead of accessing TREE_INT_CST_ELT directly.
33032 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33034 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33035 fenv_exceptions description.
33037 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33039 PR rtl-optimization/87763
33040 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33041 Allow SUBREG when matching CC_NZmode compare.
33043 2019-01-25 Richard Biener <rguenther@suse.de>
33045 PR tree-optimization/89049
33046 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33047 Look at the pattern stmt to determine if the stmt is vectorized.
33049 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33051 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33052 (pred_mov<mode>): Handle all-register forms using both a new
33053 alternative and a split.
33055 2019-01-25 Richard Biener <rguenther@suse.de>
33057 PR tree-optimization/86865
33058 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33059 Reject non-do-while loops.
33061 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33063 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33064 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33065 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33066 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33067 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33068 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33069 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33070 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33071 vlogical_operand, gpc_reg_operand, int_reg_operand,
33072 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33073 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33074 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33075 (save_world_operation, restore_world_operation, lmw_operation,
33076 stmw_operation): Use MEM_P and REG_P.
33077 (tie_operand): Use MEM_P.
33078 (vrsave_operation, crsave_operation): Use REG_P.
33079 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33080 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33081 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33082 (call_operand): Use HARD_REGISTER_P.
33083 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33085 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33086 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33087 quad_aligned_load_p, replace_swapped_aligned_store,
33088 recombine_lvx_pattern, replace_swapped_aligned_load,
33089 recombine_stvx_pattern): Use MEM_P.
33090 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33091 Use MEM_P and SYMBOL_REF_P.
33092 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33093 (insn_is_swappable_p): Use REG_P and MEM_P.
33094 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33095 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33097 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33098 Use CONST_DOUBLE_P.
33099 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33101 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33102 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33103 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33104 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33106 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33107 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33108 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33109 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33110 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33111 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33112 rs6000_split_logical_di): Use CONST_INT_P.
33113 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33114 REG_P and SYMBOL_REF_P.
33115 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33116 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33117 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33118 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33119 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33120 (small_data_operand, print_operand_address): Use CONST_INT_P and
33122 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33123 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33124 Use HARD_REGISTER_NUM_P.
33125 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33126 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33127 SUBREG_P and SYMBOL_REF_P.
33128 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33129 and HARD_REGISTER_NUM_P.
33130 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33132 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33133 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33135 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33136 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33137 find_addr_reg): Use REG_P.
33138 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33139 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33140 (offsettable_ok_by_alignment, constant_pool_expr_p,
33141 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33142 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33143 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33144 rs6000_assemble_integer, create_TOC_reference,
33145 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33146 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33147 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33148 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33149 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33150 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33151 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33152 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33153 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33154 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33155 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33156 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33157 and cbranch<mode>4): Use CONST_INT_P.
33158 (multiple define_splits): Use REG_P and SUBREG_P.
33159 (define_expands call, call_value): Use MEM_P.
33160 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33161 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33162 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33163 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33164 and HARD_REGISTER_NUM_P.
33165 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33167 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33169 PR rtl-optimization/88948
33170 * rtl.h (prepare_copy_insn): New prototype.
33171 * gcse.c (prepare_copy_insn): New function, split out from
33172 process_insert_insn.
33173 (process_insert_insn): Use prepare_copy_insn.
33174 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33175 instead of gen_move_insn.
33177 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33180 * config/i386/i386.c (ix86_pic_register_p): Return true for
33181 UNSPEC_SET_GOT too.
33183 PR tree-optimization/88964
33184 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33185 punt if HONOR_SNANS (chrec).
33187 PR middle-end/89015
33188 * tree-nested.c (convert_nonlocal_reference_stmt,
33189 convert_local_reference_stmt, convert_tramp_reference_stmt,
33190 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33191 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33192 or GIMPLE_OMP_TASK.
33194 PR tree-optimization/89027
33195 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33196 for "omp simd array" variables.
33198 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33201 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33202 force the alignment of m_val.
33204 2019-01-24 Richard Biener <rguenther@suse.de>
33207 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33208 When in "legacy" debug mode make sure to reset self-origins.
33210 2019-01-24 Martin Liska <mliska@suse.cz>
33212 PR gcov-profile/88994
33213 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33214 result will be always smaller or equal to the original.
33215 * gcov.c (mangle_name): Fix else branch where we should
33216 also copy to PTR and shift the pointer.
33218 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33220 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33221 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33223 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33225 * common/config/i386/i386-common.c
33226 (OPTION_MASK_ISA_ENQCMD_SET,
33227 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33228 (ix86_handle_option): Handle -menqcmd.
33229 * config.gcc (enqcmdintrin.h): New header file.
33230 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33231 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33233 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33235 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33236 __builtin_ia32_enqcmds): New builtins.
33237 * config/i386/i386-c.c (__ENQCMD__): New macro.
33238 * config/i386/i386-option.c (ix86_target_string): Add
33240 (ix86_valid_target_attribute_inner_p): Likewise.
33241 * config/i386/i386-expand.c
33242 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33243 IX86_BUILTIN_ENQCMDS.
33244 * config/i386/i386.h (TARGET_ENQCMD): New.
33245 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33246 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33247 (movdir64b_<mode>): Parameterize to enable share expansion code
33248 with ENQCMD in function ix86_expand_builtin.
33249 * config/i386/i386.opt: Add -menqcmd.
33250 * config/i386/immintrin.h: Include enqcmdintrin.h.
33251 * config/i386/enqcmdintrin.h: New intrinsic file.
33252 * doc/invoke.texi: Add -menqcmd.
33254 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33255 Steve Ellcey <sellcey@marvell.com>
33258 * recog.c (address_operand): Return false on wrong mode for address.
33259 (constrain_operands): Check for mode with 'p' constraint.
33261 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33264 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33265 Disparage MMX alternative.
33266 (sse2_cvtpd2pi): Ditto.
33267 (sse2_cvttpd2pi): Ditto.
33269 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33272 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33273 use-after-free of the result of
33274 aarch64_get_extension_string_for_isa_flags.
33276 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33279 * doc/extend.texi: Document break and continue behavior in
33280 statement expressions.
33282 2019-01-23 Richard Biener <rguenther@suse.de>
33284 PR tree-optimization/89008
33285 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33286 not leave another stray operand.
33288 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33290 * BASE-VER: Bump to 9.0.1.
33292 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33294 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33295 thunk that returns by reference, use the type of the return object
33296 of the thunk instead of that of the alias to build the dereference.
33298 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33300 * config/arc/atomic.md: Add operand to DMB instruction.
33302 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33304 PR tree-optimization/88964
33305 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33306 build_zero_cst instead of build_int_cst. Return false for loop
33307 invariants which honor signed zeros.
33309 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33311 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33313 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33316 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33317 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33318 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33320 PR middle-end/88968
33321 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33322 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33325 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33326 Disable for little endian.
33328 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33331 * config/arm/arm.c (arm_needs_double_word_align): Check
33332 DECL_BIT_FIELD_TYPE.
33334 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33335 H.J. Lu <hongjiu.lu@intel.com>
33338 * config/i386/i386-builtin.def: Add mask2 to all builtin
33339 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33341 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33342 (BDESC_FIRST): Likewise.
33343 (define_builtin): Add an argument for mask2. Updated to handle
33344 both ix86_isa_flags and ix86_isa_flags2.
33345 (define_builtin_const): Likewise.
33346 (define_builtin_pure): Likewise.
33347 (define_builtin2): Deleted.
33348 (define_builtin_const2): Likewise.
33349 (builtin_description): Add a member, mask2.
33350 (bdesc_*): Add mask2 to builtin initializations.
33351 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33352 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33354 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33356 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33359 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33362 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33365 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33366 alignment is dominated by a bitfield with 64-bit aligned base type.
33367 (arm_function_arg): Emit a warning if the alignment has changed since
33368 earlier GCC releases.
33369 (arm_function_arg_boundary): Likewise.
33370 (arm_setup_incoming_varargs): Likewise.
33372 2019-01-22 Richard Biener <rguenther@suse.de>
33374 PR tree-optimization/88862
33375 * graphite-scop-detection.c
33376 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33378 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33380 * doc/extend.tex (AMD GCN Function Attributes): New section.
33381 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33382 * doc/invoke.texi (AMD GCN Options): New section.
33383 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33385 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33387 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33388 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33390 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33392 PR tree-optimization/88044
33393 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33394 is false in the first iteration, but !every_iteration, return false
33395 instead of true with niter->niter zero.
33397 PR rtl-optimization/88904
33398 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33399 any nonequal registers before processing BB_END (b).
33402 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33404 (expand_binop_directly, expand_doubleword_clz,
33405 expand_doubleword_popcount, expand_ctz, expand_ffs,
33406 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33408 PR rtl-optimization/49429
33410 PR rtl-optimization/86334
33412 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33413 addressable from here...
33414 (emit_block_op_via_libcall): ... to here.
33416 2019-01-22 Richard Biener <rguenther@suse.de>
33418 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33419 auto_vec for cost vector to fix memleak.
33420 (vectorize_fold_left_reduction): Properly gather SLP defs.
33421 (vectorizable_comparison): Do not swap operands to properly
33424 2019-01-22 Alan Modra <amodra@gmail.com>
33427 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33428 stays a reg. Allow a const_int.
33429 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33430 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33431 (IS_NOMARK_TLSGETADDR): Define.
33432 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33433 (rs6000_output_tlsargs): New function.
33434 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33435 __tls_get_addr call takes an arg.
33436 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33437 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33439 (call_value_nonlocal_sysv): ..or here, delete split.
33440 (tls_gdld_nomark): Delete.
33441 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33442 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33443 (call_value_nonlocal_sysv): Likewise.
33444 (call_value_nonlocal_sysv_secure): Likewise.
33445 (call_value_nonlocal_aix): Likewise.
33446 (call_value_indirect_aix): Likewise.
33447 (call_value_indirect_elfv2): Likewise.
33448 (call_value_local32, call_value_local64): Disable for no-mark tls.
33449 (call_value_local_aix): Likewise.
33451 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33454 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33455 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33457 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33459 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33460 string contents as hash_map keys.
33462 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33465 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33466 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33467 instead of TYPE_ALIGN.
33468 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33469 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33470 pointer from TYPE_STUB_DECL.
33472 2019-01-21 Richard Biener <rguenther@suse.de>
33474 PR tree-optimization/88934
33475 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33476 at the possibly non-constant operand.
33477 (vect_get_constant_vectors): Adjust.
33479 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33482 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33483 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33484 instead of _X86INTRIN_H_INCLUDED.
33485 * onfig/i386/clwbintrin.h: Likewise.
33486 * config/i386/pkuintrin.h: Likewise.
33487 * config/i386/prfchwintrin.h: Likewise.
33488 * config/i386/rdseedintrin.h: Likewise.
33489 * config/i386/wbnoinvdintrin.h: Likewise.
33490 * config/i386/xsavecintrin.h: Likewise.
33491 * config/i386/xsavesintrin.h: Likewise.
33492 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33493 * config/i386/xsaveintrin.h: Likewise.
33494 * config/i386/xsaveoptintrin.h: Likewise.
33495 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33496 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33497 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33498 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33499 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33500 * config/i386/immintrin.h: Here.
33502 2019-01-20 Martin Jambor <mjambor@suse.cz>
33505 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33506 with aa_walk_budget.
33507 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33508 aa_walk_budget_p parameter.
33509 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33510 walk. Updated all callers.
33511 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33512 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33514 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33515 parameter info. Extract info from fbi. Pass fbi to recursive calls
33516 and to unmodified_parm.
33517 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33518 info, updated call to will_be_nonconstant_expr_predicate.
33519 (param_change_prob): New parameter fbi, limit AA walking.
33520 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33521 calls to various above functions.
33522 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33523 parameter. Use it to limit AA walking.
33524 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33525 fbi, limit AA walk.
33526 (detect_type_change): New parameter fbi, pass it on to
33527 detect_type_change_from_memory_writes.
33528 (detect_type_change_ssa): Likewise.
33529 (aa_overwalked): Removed.
33530 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33531 accordingly, adjust to the neew AA limiting scheme.
33532 (parm_ref_data_preserved_p): Likewise.
33533 (ipa_compute_jump_functions_for_edge): Adjust call to
33535 (ipa_analyze_call_uses): Likewise.
33536 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33537 (ipa_analyze_node): Initialize aa_walk_budget.
33538 (ipcp_transform_function): Likewise.
33539 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33540 to get_dynamic_type.
33542 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33544 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33545 outside of #if CHECKING_P code.
33547 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33549 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33550 New function, split out from...
33551 (loop_versioning::analyze_stride): ...here.
33552 (loop_versioning::find_per_loop_multiplication): Use gassign.
33553 (loop_versioning::analyze_term_using_scevs): Return a success code.
33554 (loop_versioning::analyze_arbitrary_term): New function.
33555 (loop_versioning::analyze_address_fragment): Use
33556 analyze_arbitrary_term if all else fails.
33558 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33561 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33564 2019-01-18 Richard Biener <rguenther@suse.de>
33566 PR tree-optimization/88903
33567 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33568 scalar stmts a SLP shift amount is composed of when detecting
33571 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33574 * config/arm/arm-cpus.in (mp): New feature.
33575 (sec): New feature.
33576 (fgroup ARMv7ve): Add mp and sec features.
33577 (arch armv7-a): Add options to allow mp and sec extensions.
33578 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33579 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33580 extenstions to the base architecture.
33581 (cpu cortex-a8): Add sec extension to the base architecture.
33582 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33583 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33584 variants down to the base v7-a varaint.
33585 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33586 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33587 of permitted extensions for -march=armv7-a and for
33588 -mcpu=generic-armv7-a.
33590 2019-01-18 Martin Liska <mliska@suse.cz>
33592 * params.def: Fix comment.
33593 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33595 (gimple_gen_ic_func_profiler): Likewise.
33597 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33599 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33600 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33601 and put in error checks for stack protector guard options.
33602 (aarch64_stack_protect_guard): New.
33603 (TARGET_STACK_PROTECT_GUARD): Define.
33604 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33605 (reg_stack_protect_address<mode>): New.
33606 (stack_protect_set): Adjust for SSP_GLOBAL.
33607 (stack_protect_test): Likewise.
33608 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33609 (-mstack-protector-guard): Likewise.
33610 (-mstack-protector-guard-offset): Likewise.
33612 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33614 PR tree-optimization/86214
33615 * tree-inline.h (struct copy_body_data): Add
33616 add_clobbers_to_eh_landing_pads member.
33617 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33618 (copy_edges_for_bb): Call it if EH edge destination is <
33619 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33620 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33621 if flag_stack_reuse != SR_NONE and clear it afterwards.
33623 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33626 * doc/install.texi (with-multilib-list): Document for aarch64.
33628 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33631 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33632 (("..."))) with ("...").
33634 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33636 * doc/extend.texi (Built-in Functions for Memory Model Aware
33637 Atomic Operations): Document atomic fetch and nand.
33639 2019-01-18 Martin Liska <mliska@suse.cz>
33640 Richard Biener <rguenther@suse.de>
33642 PR middle-end/88587
33643 * cgraph.h (create_version_clone_with_body): Add new argument
33645 * cgraphclones.c (cgraph_node::create_version_clone): Add
33646 DECL_ATTRIBUTES to a newly created decl. And call
33647 valid_attribute_p so that proper cl_target_optimization_node
33648 is set for the newly created declaration.
33649 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33651 (expand_target_clones): Do not call valid_attribute_p, it must
33653 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33656 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33659 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33660 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33661 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33663 2019-01-17 Martin Sebor <msebor@redhat.com>
33665 PR middle-end/88273
33666 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33667 Handle anti-ranges the same as no range at all.
33669 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33671 * config/aarch64/aarch64.c (cgraph.h): New include.
33672 (intl.h): New include.
33673 (supported_simd_type): New function.
33674 (currently_supported_simd_type): Ditto.
33675 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33676 (aarch64_simd_clone_adjust): Ditto.
33677 (aarch64_simd_clone_usable): Ditto.
33678 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33679 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33680 (TARGET_SIMD_CLONE_USABLE): Ditto.
33681 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33682 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33685 2019-01-17 Martin Sebor <msebor@redhat.com>
33687 PR tree-optimization/88800
33688 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33689 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33690 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33691 redundant argument. Add new argument and issue diagnostics under
33692 its control. Detect out-of-bounds access even with warnings
33694 (check_bounds_or_overlap): Change return type. Add argument.
33695 (wrestrict_dom_walker::check_call): Adjust.
33696 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33697 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33698 check_bounds_or_overlap's return value.
33699 (handle_builtin_stxncpy): Same.
33700 (handle_builtin_strcat): Same.
33702 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33703 Kwok Cheung Yeung <kcy@codesourcery.com>
33704 Julian Brown <julian@codesourcery.com>
33705 Tom de Vries <tom@codesourcery.com>
33707 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33709 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33711 * doc/sourcebuild.texi: Document dg-require-effective-target
33712 llvm_binutils and offload_gcn.
33714 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33715 Kwok Cheung Yeung <kcy@codesourcery.com>
33716 Julian Brown <julian@codesourcery.com>
33717 Tom de Vries <tom@codesourcery.com>
33719 * doc/sourcebuild.texi: Document dg-required-effective-target
33722 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33723 Kwok Cheung Yeung <kcy@codesourcery.com>
33724 Julian Brown <julian@codesourcery.com>
33725 Tom de Vries <tom@codesourcery.com>
33726 Jan Hubicka <hubicka@ucw.cz>
33727 Martin Jambor <mjambor@suse.cz>
33729 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33730 * configure.ac: Check for dlopen.
33731 * configure: Regenerate.
33733 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33734 Kwok Cheung Yeung <kcy@codesourcery.com>
33735 Julian Brown <julian@codesourcery.com>
33736 Tom de Vries <tom@codesourcery.com>
33737 Jan Hubicka <hubicka@ucw.cz>
33738 Martin Jambor <mjambor@suse.cz>
33740 * common/config/gcn/gcn-common.c: New file.
33741 * config/gcn/driver-gcn.c: New file.
33742 * config/gcn/gcn-builtins.def: New file.
33743 * config/gcn/gcn-hsa.h: New file.
33744 * config/gcn/gcn-modes.def: New file.
33745 * config/gcn/gcn-opts.h: New file.
33746 * config/gcn/gcn-passes.def: New file.
33747 * config/gcn/gcn-protos.h: New file.
33748 * config/gcn/gcn-run.c: New file.
33749 * config/gcn/gcn-tree.c: New file.
33750 * config/gcn/gcn.c: New file.
33751 * config/gcn/gcn.h: New file.
33752 * config/gcn/gcn.opt: New file.
33753 * config/gcn/t-gcn-hsa: New file.
33755 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33756 Kwok Cheung Yeung <kcy@codesourcery.com>
33757 Julian Brown <julian@codesourcery.com>
33758 Tom de Vries <tom@codesourcery.com>
33759 Jan Hubicka <hubicka@ucw.cz>
33760 Martin Jambor <mjambor@suse.cz>
33762 * config/gcn/constraints.md: New file.
33763 * config/gcn/gcn-valu.md: New file.
33764 * config/gcn/gcn.md: New file.
33765 * config/gcn/predicates.md: New file.
33767 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33769 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33770 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33771 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33772 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33774 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33777 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33778 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33779 it and document registers.
33781 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33783 * config/aarch64/aarch64.c (ares_tunings): Define.
33784 * config/aarch64/aarch64-cores.def (ares): Use the above.
33786 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33790 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33792 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33793 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33794 (_mm512_maskz_fixupimm_round_pd): Ditto.
33795 (_mm512_fixupimm_round_ps): Ditto.
33796 (_mm512_maskz_fixupimm_round_ps): Ditto.
33797 (_mm_fixupimm_round_sd): Ditto.
33798 (_mm_maskz_fixupimm_round_sd): Ditto.
33799 (_mm_fixupimm_round_ss): Ditto.
33800 (_mm_maskz_fixupimm_round_ss): Ditto.
33801 (_mm512_fixupimm_pd): Ditto.
33802 (_mm512_maskz_fixupimm_pd): Ditto.
33803 (_mm512_fixupimm_ps): Ditto.
33804 (_mm512_maskz_fixupimm_ps): Ditto.
33805 (_mm_fixupimm_sd): Ditto.
33806 (_mm_maskz_fixupimm_sd): Ditto.
33807 (_mm_fixupimm_ss): Ditto.
33808 (_mm_maskz_fixupimm_ss): Ditto.
33809 (_mm512_mask_fixupimm_round_pd): Update builtin.
33810 (_mm512_mask_fixupimm_round_ps): Ditto.
33811 (_mm_mask_fixupimm_round_sd): Ditto.
33812 (_mm_mask_fixupimm_round_ss): Ditto.
33813 (_mm512_mask_fixupimm_pd): Ditto.
33814 (_mm512_mask_fixupimm_ps): Ditto.
33815 (_mm_mask_fixupimm_sd): Ditto.
33816 (_mm_mask_fixupimm_ss): Ditto.
33817 * config/i386/avx512vlintrin.h:
33818 (_mm256_fixupimm_pd): Update parameters and builtin.
33819 (_mm256_maskz_fixupimm_pd): Ditto.
33820 (_mm256_fixupimm_ps): Ditto.
33821 (_mm256_maskz_fixupimm_ps): Ditto.
33822 (_mm_fixupimm_pd): Ditto.
33823 (_mm_maskz_fixupimm_pd): Ditto.
33824 (_mm_fixupimm_ps): Ditto.
33825 (_mm_maskz_fixupimm_ps): Ditto.
33826 (_mm256_mask_fixupimm_pd): Update builtin.
33827 (_mm256_mask_fixupimm_ps): Ditto.
33828 (_mm_mask_fixupimm_pd): Ditto.
33829 (_mm_mask_fixupimm_ps): Ditto.
33830 * config/i386/i386-builtin-types.def: Add new types and remove
33832 * config/i386/i386-builtin.def: Update builtin definitions.
33833 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33834 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33835 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33836 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33837 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33838 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33839 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33840 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33841 * config/i386/subst.md:
33842 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33843 (round_saeonly_sd_mask_op4): Ditto.
33844 (round_saeonly_expand_operand5): Ditto.
33845 (round_saeonly_expand): Update.
33847 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33851 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33853 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33854 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33855 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33856 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33857 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33858 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33859 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33861 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33865 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33868 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33869 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33870 instead of UNSPEC_FIXUPIMM.
33872 2019-01-17 Richard Biener <rguenther@suse.de>
33875 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33876 and friends for the LTO part of debug info.
33878 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33880 PR tree-optimization/86214
33881 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33884 PR rtl-optimization/88870
33885 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33886 throw if we can't alter the cfg or delete dead exceptions.
33887 (mark_insn): Don't call find_call_stack_args for such calls.
33889 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33891 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33892 prototypes for vec_st.
33893 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33894 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33895 mainly on signed/unsigned long long and double.
33897 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33900 * combine.c (delete_noop_moves): Convert to "bool" return,
33901 returning true if any edges are eliminated.
33902 (combine_instructions): Also return true if delete_noop_moves
33905 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33907 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33908 correct max nunits for endian swap.
33909 (aarch64_expand_fcmla_builtin): Correct subreg code.
33910 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33911 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33914 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33916 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33917 Handle split indirect COMPLEX_TYPE arguments.
33919 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33922 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33923 bit is set by add and compare.
33924 (CC_ADC): New CC_MODE.
33925 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33926 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33927 comparison. Add detection for CC_ADCmode.
33928 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
33930 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
33931 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
33932 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
33933 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
33934 to eliminate the need for zero-extending the operands.
33935 (add<mode>3_compareC_imm): Delete. Merge into ...
33936 (add<mode>3_compareC): ... this. Restructure the comparison to
33937 eliminate the need for zero-extending the operands.
33938 (add<mode>3_carryin): Use LTU for the overflow detection.
33939 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
33940 Reexpress comparison for overflow.
33941 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
33942 (add<mode>3_carryinC): Likewise.
33943 (add<mode>3_carryinV): Use LTU for carry between partials.
33944 * config/aarch64/predicates.md (aarch64_carry_operation): Update
33945 handling of CC_Cmode and add CC_ADCmode.
33946 (aarch64_borrow_operation): Likewise.
33948 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33950 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
33951 Remove patternmode.
33952 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
33953 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
33954 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
33955 Remove endianness conversion.
33957 2019-01-16 Martin Liska <mliska@suse.cz>
33959 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
33961 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
33963 * gcc.c (add_sysrooted_hdrs_prefix): New function.
33964 (path_prefix_reset): Move up in the source file.
33965 (find_fortran_preinclude_file): Make complex search for the
33966 fortran header files.
33968 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
33970 * godump.c (go_output_typedef): When outputting a typedef, refer
33971 to the underlying type by its name and not its structure.
33973 2019-01-15 David Malcolm <dmalcolm@redhat.com>
33976 * tree.c (build_function_type): Assert that arg_types is not
33979 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
33981 PR inline-asm/52813
33982 * doc/extend.texi: Document that listing the stack pointer in the
33983 clobber list of an asm is a deprecated feature.
33984 * common.opt (Wdeprecated): Moved from c-family/c.opt.
33985 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
33986 warning instead of an error for clobbers of the stack pointer.
33987 Add a note explaining why.
33989 2019-01-15 Richard Biener <rguenther@suse.de>
33992 * dwarf2out.c (gen_member_die): Do not generate inheritance
33995 2019-01-15 Richard Biener <rguenther@suse.de>
33997 PR tree-optimization/88855
33998 * tree-if-conv.c (combine_blocks): Collect
33999 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34001 2019-01-15 Tom de Vries <tdevries@suse.de>
34004 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34005 lhs == NULL_TREE for gang-level reduction.
34007 2019-01-15 Richard Biener <rguenther@suse.de>
34008 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34011 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34012 return true if SSA_NAME is already marked in visited bitmap.
34013 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34015 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34017 PR tree-optimization/88775
34018 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34019 equal == 0 equality pointer comparisons some more if compared in
34020 integral types and either one points to an automatic var and the
34021 other to a global, or we can prove at least one points to the middle
34022 or both point to start or both point to end.
34024 2019-01-14 Andi Kleen <ak@linux.intel.com>
34026 * Makefile.in: Lower autofdo sampling rate by 10x.
34027 * Makefile.tpl: Dito.
34029 2019-01-14 Tom Honermann <tom@honermann.net>
34031 * defaults.h: Define CHAR8_TYPE.
34033 2019-01-14 Martin Sebor <msebor@redhat.com>
34036 * doc/extend.texi (Darwin Format Checks): Clarify.
34038 2019-01-14 Richard Biener <rguenther@suse.de>
34040 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34041 whether we are in (simplify ...) or (match ...) context.
34043 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34045 PR rtl-optimization/88796
34046 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34047 * cfgexpand.c (stack_protect_prologue): Initialize
34048 crtl->stack_protect_guard_decl.
34049 * function.c (stack_protect_epilogue): Use it instead of calling
34050 targetm.stack_protect_guard again.
34051 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34052 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34053 crtl->stack_protect_guard_decl.
34054 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34055 on the returned MEM_EXPR.
34057 2019-01-12 Tom de Vries <tdevries@suse.de>
34059 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34060 vector length using -fopenacc-dim.
34062 2019-01-12 Tom de Vries <tdevries@suse.de>
34064 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34065 lengths into account.
34067 2019-01-12 Svante Signell <svante.signell@gmail.com>
34069 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34070 (TARGET_CAN_SPLIT_STACK): Define.
34071 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34073 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34075 * params.def (inline-unit-growth): Set to 40.
34077 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34079 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34081 2019-01-12 Tom de Vries <tdevries@suse.de>
34083 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34084 region calling vector-partitionable routine, set default_vector_length
34087 2019-01-12 Tom de Vries <tdevries@suse.de>
34089 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34090 variable default_vector_length.
34092 2019-01-12 Tom de Vries <tdevries@suse.de>
34094 PR middle-end/88703
34095 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34096 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34099 2019-01-12 Tom de Vries <tdevries@suse.de>
34101 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34102 (nvptx_goacc_validate_dims): Add used parameter.
34103 * doc/tm.texi: Regenerate.
34104 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34105 argument to call to targetm.goacc.validate_dims.
34106 (default_goacc_validate_dims): Add used
34108 * target.def (validate_dims): Add used parameter in DEFHOOK.
34109 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34111 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34113 PR middle-end/85956
34115 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34117 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34118 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34119 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34120 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34122 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34124 PR rtl-optimization/87305
34126 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34127 for little endian pseudos used as paradoxical subreg.
34129 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34131 PR tree-optimization/88693
34132 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34133 for STRING_CSTs that don't contain any NUL characters in the first
34134 TREE_STRING_LENGTH bytes.
34136 2019-01-11 Alan Modra <amodra@gmail.com>
34140 * genattrtab.c (min_fn): Don't translate values.
34141 (min_attr_value): Return INT_MAX when the value can't be calculated.
34142 Return minimum among any values that can be calculated.
34143 (max_attr_value): Adjust.
34145 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34147 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34149 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34151 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34152 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34153 (aarch64_return_call_with_max_clobbers): New function.
34154 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34155 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34157 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34158 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34159 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34160 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34161 * cselib.c (cselib_process_insn): Add argument to
34162 targetm.hard_regno_call_part_clobbered call.
34163 * ira-conflicts.c (ira_build_conflicts): Ditto.
34164 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34165 * lra-constraints.c (inherit_reload_reg): Ditto.
34166 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34167 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34168 argument. Call targetm.return_call_with_max_clobbers.
34169 Add argument to targetm.hard_regno_call_part_clobbered call.
34170 (calls_have_same_clobbers_p): New function.
34171 (process_bb_lives): Add call_insn and last_call_insn variables.
34172 Pass call_insn to check_pseudos_live_through_calls.
34173 Modify if stmt to check targetm.return_call_with_max_clobbers.
34174 Update setting of flush variable.
34175 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34177 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34178 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34179 targetm.hard_regno_call_part_clobbered call.
34180 * reginfo.c (choose_hard_reg_mode): Ditto.
34181 * regrename.c (check_new_reg_p): Ditto.
34182 * reload.c (find_equiv_reg): Ditto.
34183 * reload1.c (emit_reload_insns): Ditto.
34184 * sched-deps.c (deps_analyze_insn): Ditto.
34185 * sel-sched.c (init_regs_for_mode): Ditto.
34186 (mark_unavailable_hard_regs): Ditto.
34187 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34188 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34189 (return_call_with_max_clobbers): New target function.
34190 * doc/tm.texi: Regenerate.
34191 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34192 * hooks.c (hook_bool_uint_mode_false): Change to
34193 hook_bool_insn_uint_mode_false.
34194 * hooks.h (hook_bool_uint_mode_false): Ditto.
34196 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34198 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34199 (aarch64_remove_extra_call_preserved_regs): New function.
34200 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34201 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34202 * doc/tm.texi: Regenerate.
34203 * final.c (get_call_reg_set_usage): Call new hook.
34204 * target.def (remove_extra_call_preserved_regs): New hook.
34205 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34206 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34208 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34211 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34212 inside of pass_combine_1 dump rather than pass_profile_1.
34214 2019-01-11 Tom de Vries <tdevries@suse.de>
34216 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34217 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34218 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34219 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34222 2019-01-11 Tom de Vries <tdevries@suse.de>
34224 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34226 2019-01-11 Jan Beulich <jbeulich@suse.com>
34228 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34229 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34230 sse2_cvtsi2sd): Add {l}.
34231 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34234 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34237 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34239 (*float<floatunssuffix>v2div2sf2): New define_insn.
34240 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34241 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34242 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34243 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34244 match_operands with "const0_operand" "C".
34246 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34248 * config/aarch64/aarch64-builtins.c
34249 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34250 (aarch64_init_simd_builtins): ...Here
34252 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34254 PR rtl-optimization/87305
34256 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34257 allocation for big endian pseudos used as paradoxical subregs and
34258 spill them if it is wrong.
34259 * lra-constraints.c (lra_constraints): Add a comment.
34261 2019-01-10 Richard Biener <rguenther@suse.de>
34263 PR tree-optimization/88792
34264 * tree-ssa-pre.c (get_representative_for): Do not return a
34267 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34269 PR middle-end/84877
34271 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34272 (assign_parm_setup_block): Do the argument slot realignment here
34275 2019-01-10 Stefan Agner <stefan@agner.ch>
34278 * config/arm/arm.c (arm_option_override_internal): Force
34279 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34281 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34284 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34287 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34289 * config/arm/arm-builtins.c
34290 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34291 (MAC_LANE_PAIR_QUALIFIERS): New.
34292 (arm_expand_builtin_args): Use it.
34293 (arm_expand_builtin_1): Likewise.
34294 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34295 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34296 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34297 * config/arm/arm_neon.h:
34298 (vcadd_rot90_f16): New.
34299 (vcaddq_rot90_f16): New.
34300 (vcadd_rot270_f16): New.
34301 (vcaddq_rot270_f16): New.
34304 (vcmla_lane_f16): New.
34305 (vcmla_laneq_f16): New.
34306 (vcmlaq_lane_f16): New.
34307 (vcmlaq_laneq_f16): New.
34308 (vcmla_rot90_f16): New.
34309 (vcmlaq_rot90_f16): New.
34310 (vcmla_rot90_lane_f16): New.
34311 (vcmla_rot90_laneq_f16): New.
34312 (vcmlaq_rot90_lane_f16): New.
34313 (vcmlaq_rot90_laneq_f16): New.
34314 (vcmla_rot180_f16): New.
34315 (vcmlaq_rot180_f16): New.
34316 (vcmla_rot180_lane_f16): New.
34317 (vcmla_rot180_laneq_f16): New.
34318 (vcmlaq_rot180_lane_f16): New.
34319 (vcmlaq_rot180_laneq_f16): New.
34320 (vcmla_rot270_f16): New.
34321 (vcmlaq_rot270_f16): New.
34322 (vcmla_rot270_lane_f16): New.
34323 (vcmla_rot270_laneq_f16): New.
34324 (vcmlaq_rot270_lane_f16): New.
34325 (vcmlaq_rot270_laneq_f16): New.
34326 (vcadd_rot90_f32): New.
34327 (vcaddq_rot90_f32): New.
34328 (vcadd_rot270_f32): New.
34329 (vcaddq_rot270_f32): New.
34332 (vcmla_lane_f32): New.
34333 (vcmla_laneq_f32): New.
34334 (vcmlaq_lane_f32): New.
34335 (vcmlaq_laneq_f32): New.
34336 (vcmla_rot90_f32): New.
34337 (vcmlaq_rot90_f32): New.
34338 (vcmla_rot90_lane_f32): New.
34339 (vcmla_rot90_laneq_f32): New.
34340 (vcmlaq_rot90_lane_f32): New.
34341 (vcmlaq_rot90_laneq_f32): New.
34342 (vcmla_rot180_f32): New.
34343 (vcmlaq_rot180_f32): New.
34344 (vcmla_rot180_lane_f32): New.
34345 (vcmla_rot180_laneq_f32): New.
34346 (vcmlaq_rot180_lane_f32): New.
34347 (vcmlaq_rot180_laneq_f32): New.
34348 (vcmla_rot270_f32): New.
34349 (vcmlaq_rot270_f32): New.
34350 (vcmla_rot270_lane_f32): New.
34351 (vcmla_rot270_laneq_f32): New.
34352 (vcmlaq_rot270_lane_f32): New.
34353 (vcmlaq_rot270_laneq_f32): New.
34354 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34355 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34356 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34357 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34358 vcmlaq_lane270): New.
34359 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34360 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34361 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34362 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34363 (arm_option_reconfigure_globals): Use them.
34364 * config/arm/iterators.md (VDF, VQ_HSF): New.
34365 (VCADD, VCMLA): New.
34366 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34367 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34369 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34370 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34372 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34374 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34375 Add qualifier_lane_pair_index.
34376 (emit-rtl.h): Include.
34377 (TYPES_QUADOP_LANE_PAIR): New.
34378 (aarch64_simd_expand_args): Use it.
34379 (aarch64_simd_expand_builtin): Likewise.
34380 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34382 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34383 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34384 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34385 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34386 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34387 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34388 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34389 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34390 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34391 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34392 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34393 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34394 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34395 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34396 Add __ARM_FEATURE_COMPLEX.
34397 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34398 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34399 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34400 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34401 fcmlaq_lane270): New.
34402 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34403 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34404 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34405 * config/aarch64/arm_neon.h:
34406 (vcadd_rot90_f16): New.
34407 (vcaddq_rot90_f16): New.
34408 (vcadd_rot270_f16): New.
34409 (vcaddq_rot270_f16): New.
34412 (vcmla_lane_f16): New.
34413 (vcmla_laneq_f16): New.
34414 (vcmlaq_lane_f16): New.
34415 (vcmlaq_rot90_lane_f16): New.
34416 (vcmla_rot90_laneq_f16): New.
34417 (vcmla_rot90_lane_f16): New.
34418 (vcmlaq_rot90_f16): New.
34419 (vcmla_rot90_f16): New.
34420 (vcmlaq_laneq_f16): New.
34421 (vcmla_rot180_laneq_f16): New.
34422 (vcmla_rot180_lane_f16): New.
34423 (vcmlaq_rot180_f16): New.
34424 (vcmla_rot180_f16): New.
34425 (vcmlaq_rot90_laneq_f16): New.
34426 (vcmlaq_rot270_laneq_f16): New.
34427 (vcmlaq_rot270_lane_f16): New.
34428 (vcmla_rot270_laneq_f16): New.
34429 (vcmlaq_rot270_f16): New.
34430 (vcmla_rot270_f16): New.
34431 (vcmlaq_rot180_laneq_f16): New.
34432 (vcmlaq_rot180_lane_f16): New.
34433 (vcmla_rot270_lane_f16): New.
34434 (vcadd_rot90_f32): New.
34435 (vcaddq_rot90_f32): New.
34436 (vcaddq_rot90_f64): New.
34437 (vcadd_rot270_f32): New.
34438 (vcaddq_rot270_f32): New.
34439 (vcaddq_rot270_f64): New.
34443 (vcmla_lane_f32): New.
34444 (vcmla_laneq_f32): New.
34445 (vcmlaq_lane_f32): New.
34446 (vcmlaq_laneq_f32): New.
34447 (vcmla_rot90_f32): New.
34448 (vcmlaq_rot90_f32): New.
34449 (vcmlaq_rot90_f64): New.
34450 (vcmla_rot90_lane_f32): New.
34451 (vcmla_rot90_laneq_f32): New.
34452 (vcmlaq_rot90_lane_f32): New.
34453 (vcmlaq_rot90_laneq_f32): New.
34454 (vcmla_rot180_f32): New.
34455 (vcmlaq_rot180_f32): New.
34456 (vcmlaq_rot180_f64): New.
34457 (vcmla_rot180_lane_f32): New.
34458 (vcmla_rot180_laneq_f32): New.
34459 (vcmlaq_rot180_lane_f32): New.
34460 (vcmlaq_rot180_laneq_f32): New.
34461 (vcmla_rot270_f32): New.
34462 (vcmlaq_rot270_f32): New.
34463 (vcmlaq_rot270_f64): New.
34464 (vcmla_rot270_lane_f32): New.
34465 (vcmla_rot270_laneq_f32): New.
34466 (vcmlaq_rot270_lane_f32): New.
34467 (vcmlaq_rot270_laneq_f32): New.
34468 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34469 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34470 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34471 (FCADD, FCMLA): New.
34473 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34475 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34479 * config/pa/pa.c: Change "can not" to "cannot".
34480 * gimple-ssa-evrp-analyze.c: Likewise.
34481 * ipa-icf.c: Likewise.
34482 * ipa-polymorphic-call.c: Likewise.
34483 * ipa-pure-const.c: Likewise.
34484 * lra-constraints.c: Likewise.
34485 * lra-remat.c: Likewise.
34486 * reload1.c: Likewise.
34487 * reorg.c: Likewise.
34488 * tree-ssa-uninit.c: Likewise.
34490 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34494 * Makefile.in: Mechanically replace "can not" with "cannot".
34495 * alias.c: Likewise.
34496 * builtins.c: Likewise.
34497 * calls.c: Likewise.
34498 * cgraph.c: Likewise.
34499 * cgraph.h: Likewise.
34500 * cgraphclones.c: Likewise.
34501 * cgraphunit.c: Likewise.
34502 * combine-stack-adj.c: Likewise.
34503 * combine.c: Likewise.
34504 * common/config/i386/i386-common.c: Likewise.
34505 * config/aarch64/aarch64.c: Likewise.
34506 * config/alpha/sync.md: Likewise.
34507 * config/arc/arc.c: Likewise.
34508 * config/arc/predicates.md: Likewise.
34509 * config/arm/arm-c.c: Likewise.
34510 * config/arm/arm.c: Likewise.
34511 * config/arm/arm.h: Likewise.
34512 * config/arm/arm.md: Likewise.
34513 * config/arm/cortex-r4f.md: Likewise.
34514 * config/csky/csky.c: Likewise.
34515 * config/csky/csky.h: Likewise.
34516 * config/darwin-f.c: Likewise.
34517 * config/epiphany/epiphany.md: Likewise.
34518 * config/i386/i386.c: Likewise.
34519 * config/i386/sol2.h: Likewise.
34520 * config/m68k/m68k.c: Likewise.
34521 * config/mcore/mcore.h: Likewise.
34522 * config/microblaze/microblaze.md: Likewise.
34523 * config/mips/20kc.md: Likewise.
34524 * config/mips/sb1.md: Likewise.
34525 * config/nds32/nds32.c: Likewise.
34526 * config/nds32/predicates.md: Likewise.
34527 * config/pa/pa.c: Likewise.
34528 * config/rs6000/e300c2c3.md: Likewise.
34529 * config/rs6000/rs6000.c: Likewise.
34530 * config/s390/s390.h: Likewise.
34531 * config/sh/sh.c: Likewise.
34532 * config/sh/sh.md: Likewise.
34533 * config/spu/vmx2spu.h: Likewise.
34534 * cprop.c: Likewise.
34535 * dbxout.c: Likewise.
34536 * df-scan.c: Likewise.
34537 * doc/cfg.texi: Likewise.
34538 * doc/extend.texi: Likewise.
34539 * doc/fragments.texi: Likewise.
34540 * doc/gty.texi: Likewise.
34541 * doc/invoke.texi: Likewise.
34542 * doc/lto.texi: Likewise.
34543 * doc/md.texi: Likewise.
34544 * doc/objc.texi: Likewise.
34545 * doc/rtl.texi: Likewise.
34546 * doc/tm.texi: Likewise.
34548 * emit-rtl.c: Likewise.
34549 * emit-rtl.h: Likewise.
34550 * except.c: Likewise.
34551 * expmed.c: Likewise.
34552 * expr.c: Likewise.
34553 * fold-const.c: Likewise.
34554 * genautomata.c: Likewise.
34555 * gimple-fold.c: Likewise.
34556 * hard-reg-set.h: Likewise.
34557 * ifcvt.c: Likewise.
34558 * ipa-comdats.c: Likewise.
34559 * ipa-cp.c: Likewise.
34560 * ipa-devirt.c: Likewise.
34561 * ipa-fnsummary.c: Likewise.
34562 * ipa-icf.c: Likewise.
34563 * ipa-inline-transform.c: Likewise.
34564 * ipa-inline.c: Likewise.
34565 * ipa-polymorphic-call.c: Likewise.
34566 * ipa-profile.c: Likewise.
34567 * ipa-prop.c: Likewise.
34568 * ipa-pure-const.c: Likewise.
34569 * ipa-reference.c: Likewise.
34570 * ipa-split.c: Likewise.
34571 * ipa-visibility.c: Likewise.
34573 * ira-build.c: Likewise.
34574 * ira-color.c: Likewise.
34575 * ira-conflicts.c: Likewise.
34576 * ira-costs.c: Likewise.
34577 * ira-int.h: Likewise.
34578 * ira-lives.c: Likewise.
34581 * loop-invariant.c: Likewise.
34582 * loop-unroll.c: Likewise.
34583 * lower-subreg.c: Likewise.
34584 * lra-assigns.c: Likewise.
34585 * lra-constraints.c: Likewise.
34586 * lra-eliminations.c: Likewise.
34587 * lra-lives.c: Likewise.
34588 * lra-remat.c: Likewise.
34589 * lra-spills.c: Likewise.
34591 * lto-cgraph.c: Likewise.
34592 * lto-streamer-out.c: Likewise.
34593 * postreload-gcse.c: Likewise.
34594 * predict.c: Likewise.
34595 * profile-count.h: Likewise.
34596 * profile.c: Likewise.
34597 * recog.c: Likewise.
34599 * reload.c: Likewise.
34600 * reload1.c: Likewise.
34601 * reorg.c: Likewise.
34602 * resource.c: Likewise.
34603 * rtl.def: Likewise.
34605 * rtlanal.c: Likewise.
34606 * sched-deps.c: Likewise.
34607 * sched-ebb.c: Likewise.
34608 * sched-rgn.c: Likewise.
34609 * sel-sched-ir.c: Likewise.
34610 * sel-sched.c: Likewise.
34611 * shrink-wrap.c: Likewise.
34612 * simplify-rtx.c: Likewise.
34613 * symtab.c: Likewise.
34614 * target.def: Likewise.
34615 * toplev.c: Likewise.
34616 * tree-call-cdce.c: Likewise.
34617 * tree-cfg.c: Likewise.
34618 * tree-complex.c: Likewise.
34619 * tree-core.h: Likewise.
34620 * tree-eh.c: Likewise.
34621 * tree-inline.c: Likewise.
34622 * tree-loop-distribution.c: Likewise.
34623 * tree-nrv.c: Likewise.
34624 * tree-profile.c: Likewise.
34625 * tree-sra.c: Likewise.
34626 * tree-ssa-alias.c: Likewise.
34627 * tree-ssa-dce.c: Likewise.
34628 * tree-ssa-dom.c: Likewise.
34629 * tree-ssa-forwprop.c: Likewise.
34630 * tree-ssa-loop-im.c: Likewise.
34631 * tree-ssa-loop-ivcanon.c: Likewise.
34632 * tree-ssa-loop-ivopts.c: Likewise.
34633 * tree-ssa-loop-niter.c: Likewise.
34634 * tree-ssa-phionlycprop.c: Likewise.
34635 * tree-ssa-phiopt.c: Likewise.
34636 * tree-ssa-propagate.c: Likewise.
34637 * tree-ssa-threadedge.c: Likewise.
34638 * tree-ssa-threadupdate.c: Likewise.
34639 * tree-ssa-uninit.c: Likewise.
34640 * tree-ssanames.c: Likewise.
34641 * tree-streamer-out.c: Likewise.
34642 * tree.c: Likewise.
34643 * tree.h: Likewise.
34644 * vr-values.c: Likewise.
34646 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34648 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34649 (ix86_split_xorsign): Ditto.
34650 * config/i386/i386.c (ix86_expand_xorsign): New function.
34651 (ix86_split_xorsign): Ditto.
34652 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34653 (xorsign<mode>3): New expander.
34654 (xorsign<mode>3_1): New insn_and_split pattern.
34655 * config/i386/sse.md (xorsign<mode>3): New expander.
34657 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34659 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34660 (*tablejump_sp64): Likewise.
34661 (*tablejump<P:mode>): ...this.
34662 (*call_address_sp32): Merge into...
34663 (*call_address_sp64): Likewise.
34664 (*call_address<P:mode>): ...this.
34665 (*call_symbolic_sp32): Merge into...
34666 (*call_symbolic_sp64): Likewise.
34667 (*call_symbolic<P:mode>): ...this.
34668 (call_value): Remove constraint and add predicate.
34669 (*call_value_address_sp32): Merge into...
34670 (*call_value_address_sp64): Likewise.
34671 (*call_value_address<P:mode>): ...this.
34672 (*call_value_symbolic_sp32): Merge into...
34673 (*call_value_symbolic_sp64): Likewise.
34674 (*call_value_symbolic<P:mode>): ...this.
34675 (*sibcall_symbolic_sp32): Merge into...
34676 (*sibcall_symbolic_sp64): Likewise.
34677 (*sibcall_symbolic<P:mode>): ...this.
34678 (sibcall_value): Remove constraint and add predicate.
34679 (*sibcall_value_symbolic_sp32): Merge into...
34680 (*sibcall_value_symbolic_sp64): Likewise.
34681 (*sibcall_value_symbolic<P:mode>): ...this.
34682 (window_save): Minor tweak.
34683 (*branch_sp32): Merge into...
34684 (*branch_sp64): Likewise.
34685 (*branch<P:mode>): ...this.
34687 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34688 James Clarke <jrtc27@jrtc27.com>
34691 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34692 consistently in TLS address generation and adjust code to the renaming
34693 of patterns. Mark calls to __tls_get_addr as const.
34694 * config/sparc/sparc.md (tgd_hi22): Turn into...
34695 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34696 (tgd_lo10): Turn into...
34697 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34698 (tgd_add32): Merge into...
34699 (tgd_add64): Likewise.
34700 (tgd_add<P:mode>): ...this and use Pmode throughout.
34701 (tldm_hi22): Turn into...
34702 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34703 (tldm_lo10): Turn into...
34704 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34705 (tldm_add32): Merge into...
34706 (tldm_add64): Likewise.
34707 (tldm_add<P:mode>): ...this and use Pmode throughout.
34708 (tldm_call32): Merge into...
34709 (tldm_call64): Likewise.
34710 (tldm_call<P:mode>): ...this and use Pmode throughout.
34711 (tldo_hix22): Turn into...
34712 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34713 (tldo_lox10): Turn into...
34714 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34715 (tldo_add32): Merge into...
34716 (tldo_add64): Likewise.
34717 (tldo_add<P:mode>): ...this and use Pmode throughout.
34718 (tie_hi22): Turn into...
34719 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34720 (tie_lo10): Turn into...
34721 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34722 (tie_ld64): Use DImode throughout.
34723 (tie_add32): Merge into...
34724 (tie_add64): Likewise.
34725 (tie_add<P:mode>): ...this and use Pmode throughout.
34726 (tle_hix22_sp32): Merge into...
34727 (tle_hix22_sp64): Likewise.
34728 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34729 (tle_lox22_sp32): Merge into...
34730 (tle_lox22_sp64): Likewise.
34731 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34732 (*tldo_ldub_sp32): Merge into...
34733 (*tldo_ldub_sp64): Likewise.
34734 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34735 (*tldo_ldub1_sp32): Merge into...
34736 (*tldo_ldub1_sp64): Likewise.
34737 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34738 (*tldo_ldub2_sp32): Merge into...
34739 (*tldo_ldub2_sp64): Likewise.
34740 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34741 (*tldo_ldsb1_sp32): Merge into...
34742 (*tldo_ldsb1_sp64): Likewise.
34743 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34744 (*tldo_ldsb2_sp32): Merge into...
34745 (*tldo_ldsb2_sp64): Likewise.
34746 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34747 (*tldo_ldub3_sp64): Use DImode throughout.
34748 (*tldo_ldsb3_sp64): Likewise.
34749 (*tldo_lduh_sp32): Merge into...
34750 (*tldo_lduh_sp64): Likewise.
34751 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34752 (*tldo_lduh1_sp32): Merge into...
34753 (*tldo_lduh1_sp64): Likewise.
34754 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34755 (*tldo_ldsh1_sp32): Merge into...
34756 (*tldo_ldsh1_sp64): Likewise.
34757 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34758 (*tldo_lduh2_sp64): Use DImode throughout.
34759 (*tldo_ldsh2_sp64): Likewise.
34760 (*tldo_lduw_sp32): Merge into...
34761 (*tldo_lduw_sp64): Likewise.
34762 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34763 (*tldo_lduw1_sp64): Use DImode throughout.
34764 (*tldo_ldsw1_sp64): Likewise.
34765 (*tldo_ldx_sp64): Likewise.
34766 (*tldo_stb_sp32): Merge into...
34767 (*tldo_stb_sp64): Likewise.
34768 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34769 (*tldo_sth_sp32): Merge into...
34770 (*tldo_sth_sp64): Likewise.
34771 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34772 (*tldo_stw_sp32): Merge into...
34773 (*tldo_stw_sp64): Likewise.
34774 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34775 (*tldo_stx_sp64): Use DImode throughout.
34777 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34779 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34780 check configure option to set BTI and Return Address Signing.
34781 * configure.ac: Add --enable-standard-branch-protection and
34782 --disable-standard-branch-protection.
34783 * configure: Regenerated.
34784 * doc/install.texi: Document the same.
34786 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34787 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34789 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34790 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34791 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34793 * config/aarch64/aarch64-bti-insert.c: New file.
34794 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34796 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34798 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34799 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34800 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34801 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34803 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34805 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34806 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34807 Disable bti for -mbranch-protection=none.
34808 (aarch64_handle_standard_branch_protection): Enable bti for
34809 -mbranch-protection=standard.
34810 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34811 -mbranch-protection.
34812 (aarch64_bti_enabled): Check if bti is enabled.
34813 * config/aarch64/aarch64.opt: Declare target variable.
34814 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34816 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34818 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34819 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34820 (aarch64_expand_epilogue): Likewise.
34821 (aarch64_output_mi_thunk): Likewise.
34822 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34823 TAILCALL_ADDR_REGS to x16 and x17.
34824 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34826 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34828 * config/aarch64/aarch64-option-extensions.def: Define
34829 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34830 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34831 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34832 (AARCH64_FL_PREDRES): New.
34833 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34834 AARCH64_FL_PREDRES by default.
34835 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34837 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34839 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34841 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34842 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34843 * doc/invoke.texi: Document ARMv8.5-A.
34845 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34847 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34848 (xorsign<mode>3): Likewise.
34850 2019-01-09 Jelinek <jakub@redhat.com>
34852 PR middle-end/88758
34853 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34854 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34856 PR rtl-optimization/88331
34857 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34858 not currently_expanding_to_rtl.
34860 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34862 * doc/invoke.texi (-Os): Remove trailing spaces.
34863 (-finline-functions): Remove reference to -O2.
34865 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34867 PR rtl-optimization/79593
34868 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34870 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34871 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34873 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34876 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34880 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34881 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34883 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34886 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34887 ix86_avx_u128_mode_entry.
34889 2019-01-08 Martin Liska <mliska@suse.cz>
34891 PR tree-optimization/88753
34892 * tree-switch-conversion.c (switch_conversion::build_one_array):
34893 Come up with local variable constructor. Convert first to
34894 type of constructor values.
34896 2019-01-08 Richard Biener <rguenther@suse.de>
34898 PR tree-optimization/86554
34899 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34900 rpo_avail): Move earlier.
34901 (visit_nary_op): When value-numbering to expressions
34902 with different overflow behavior make sure there's an
34903 available expression on the path.
34905 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34907 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34908 aarch64_parse_branch_protection,
34909 struct aarch64_branch_protect_type,
34910 aarch64_handle_no_branch_protection,
34911 aarch64_handle_standard_branch_protection,
34912 aarch64_validate_mbranch_protection,
34913 aarch64_handle_pac_ret_protection,
34914 aarch64_handle_attr_branch_protection,
34915 accepted_branch_protection_string,
34916 aarch64_pac_ret_subtypes,
34917 aarch64_branch_protect_types,
34918 aarch64_handle_pac_ret_leaf): Define.
34919 (aarch64_override_options_after_change_1, aarch64_override_options):
34920 Add check for accepted_branch_protection_string.
34921 (aarch64_option_save): Save accepted_branch_protection_string.
34922 (aarch64_option_restore): Save accepted_branch_protection_string.
34923 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34924 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34925 msign-return-address.
34926 * doc/invoke.texi: Add mbranch-protection.
34928 2019-01-08 Alan Modra <amodra@gmail.com>
34931 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
34932 Delete "unknownp" parameter. Adjust callers. Handle
34933 CONST_INT, PLUS, MINUS, and MULT.
34934 (attr_value_aligned): Renamed from or_attr_value.
34935 (min_attr_value): Return INT_MIN for unhandled rtl case..
34936 (min_fn): ..and translate to INT_MAX here.
34937 (write_length_unit_log): Modify to cope without "unknown".
34938 (write_attr_value): Handle IF_THEN_ELSE.
34940 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34942 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
34943 optimization for masked stores.
34945 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34947 PR middle-end/88567
34948 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
34949 output vector directly to duplicate_and_interleave instead of
34950 going through a temporary. Postpone insertion of ctor_seq to
34951 the end of the loop.
34953 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
34956 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
34957 unsigned_p. Handle signed and unsigned overflow correction as
34959 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
34961 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
34963 (add<mode>3_compareV_imm): Make this callable for expanding.
34964 (subv<GPI:mode>4): Use register_operand for operand 1. Use
34965 aarch64_plus_operand for operand 2.
34966 (subv<GPI:mode>_insn): New insn pattern.
34967 (subv<GPI:mode>_imm): Likewise.
34968 (negv<GPI:mode>3): New expand pattern.
34969 (negv<GPI:mode>_insn): New insn pattern.
34970 (negv<GPI:mode>_cmp_only): Likewise.
34971 (cmpv<GPI:mode>_insn): Likewise.
34972 (subvti4): Use register_operand for operand 1. Update call to
34973 aarch64_expand_subvti.
34974 (usubvti4): Likewise.
34975 (negvti3): New expand pattern.
34976 (negdi_carryout): New insn pattern.
34977 (negvdi_carryinV): New insn pattern.
34978 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
34979 version the named version.
34980 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
34982 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
34984 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
34986 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
34987 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
34988 (sub<mode>3_carryinCV): Delete.
34989 (sub<GPI:mode>3_carryinV): New expand pattern.
34990 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
34992 2019-01-07 Richard Biener <rguenther@suse.de>
34994 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
34995 of tree_operand_hash.
34997 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
34999 PR tree-optimization/88598
35000 * tree.h (single_nonzero_element): Declare.
35001 * tree.c (single_nonzero_element): New function.
35002 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35003 if I is the only nonzero element of CST.
35005 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35007 PR tree-optimization/88598
35008 * tree.h (initializer_each_zero_or_onep): Declare.
35009 * tree.c (initializer_each_zero_or_onep): New function.
35010 (signed_or_unsigned_type_for): Handle float types too.
35011 (unsigned_type_for, signed_type_for): Update comments accordingly.
35012 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35013 x & { 0 or -1, 0 or -1, ... }.
35015 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35017 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35018 with x86_64-pc-linux-gnu.
35020 2019-01-07 Tom de Vries <tdevries@suse.de>
35023 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35025 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35028 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35030 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35031 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35032 TARGET_AVX512F as condition.
35035 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35036 const_not_ok_for_debug_p target hook.
35037 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35038 on UNSPEC and subexpressions thereof if all subexpressions of the
35039 UNSPEC are CONSTANT_P.
35041 PR tree-optimization/88676
35042 * tree-ssa-phiopt.c (two_value_replacement): New function.
35043 (tree_ssa_phiopt_worker): Call it.
35046 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35047 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35050 * tree-vect-generic.c: Include insn-config.h and recog.h.
35051 (expand_vector_piecewise): Add defaulted ret_type argument,
35052 if non-NULL, use that in preference to type for the result type.
35053 (expand_vector_parallel): Formatting fix.
35054 (do_vec_conversion, do_vec_narrowing_conversion,
35055 expand_vector_conversion): New functions.
35056 (expand_vector_operations_1): Call expand_vector_conversion
35057 for VEC_CONVERT ifn calls.
35058 * internal-fn.def (VEC_CONVERT): New internal function.
35059 * internal-fn.c (expand_VEC_CONVERT): New function.
35060 * fold-const-call.c (fold_const_vec_convert): New function.
35061 (fold_const_call): Use it for CFN_VEC_CONVERT.
35062 * doc/extend.texi (__builtin_convertvector): Document.
35064 2019-01-07 Tom de Vries <tdevries@suse.de>
35066 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35067 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35068 vector_red_partition, vector_red_sym): New global variables.
35069 (nvptx_option_override): Initialize vector_red_sym.
35070 (nvptx_declare_function_name): Restore red_partition register.
35071 (nvptx_file_end): Emit code to declare the vector reduction variables.
35072 (nvptx_output_red_partition): New function.
35073 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35074 large vector reductions.
35075 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35076 (nvptx_init_builtins): Add VECTOR_ADDR.
35077 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35078 Handle nvptx_expand_shared_addr.
35079 (nvptx_get_shared_red_addr): Add vector argument and handle large
35081 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35083 (nvptx_goacc_reduction_init): Likewise.
35084 (nvptx_goacc_reduction_fini): Likewise.
35085 (nvptx_goacc_reduction_teardown): Likewise.
35086 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35087 init,fini,teardown}.
35088 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35089 (nvptx_set_current_function): Init vector_red_partition.
35090 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35091 (nvptx_red_partition): New insn.
35092 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35094 2019-01-07 Tom de Vries <tdevries@suse.de>
35097 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35100 2019-01-07 Tom de Vries <tdevries@suse.de>
35102 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35103 (nvptx_option_override): Init oacc_bcast_partition.
35104 (nvptx_init_oacc_workers): New function.
35105 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35106 (nvptx_needs_shared_bcast): New function.
35107 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35108 to propagate state.
35109 (nvptx_shared_propagate): Initialize vector bcast partition and
35110 synchronization state.
35111 (nvptx_single): Generalize to enable vectors to use shared-memory
35112 to propagate state.
35113 (nvptx_process_pars): Likewise.
35114 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35115 * config/nvptx/nvptx.h (struct machine_function): Add
35116 bcast_partition and sync_bar members.
35118 2019-01-07 Tom de Vries <tdevries@suse.de>
35120 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35121 (nvptx_apply_dim_limits): New function.
35122 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35125 2019-01-07 Tom de Vries <tdevries@suse.de>
35127 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35128 as late as possible.
35130 2019-01-07 Tom de Vries <tdevries@suse.de>
35132 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35133 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35134 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35135 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35136 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35138 2019-01-07 Tom de Vries <tdevries@suse.de>
35140 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35142 2019-01-07 Tom de Vries <tdevries@suse.de>
35144 * omp-offload.c (oacc_get_min_dim): New function.
35145 * omp-offload.h (oacc_get_min_dim): Declare.
35147 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35150 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35151 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35153 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35157 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35159 * ipa-inline.c (edge_badness): Use inlined_time instead of
35160 inline_summaries->get.
35162 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35164 * opts.c (enable_fdo_optimizations): Enable
35165 version-loops-for-strides, loop-interchange, unrol-and-jam
35166 and tree-loop-distribution.
35167 * invoke.texi: Document newly enabled options.
35169 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35171 * doc/invoke.texi (max-inline-insns-small): New parameters.
35172 * ipa-inline.c (want_early_inline_function_p): simplify.
35173 (want_inline_small_function_p): Fix pasto from previous patch;
35174 use max-inline-insns-small bound.
35175 * params.def (max-inline-insns-small): New param.
35176 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35177 variables correctly.
35179 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35181 * doc/invoke.texi: Document max-inline-insns-size,
35182 uninlined-function-insns, uninlined-function-time,
35183 uninlined-thunk-insns and uninlined-thunk-time.
35184 * params.def: Add max-inline-insns-size,
35185 uninlined-function-insns, uninlined-function-time,
35186 uninlined-thunk-insns and uninlined-thunk-time.
35187 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35189 * ipa-inline.c (can_inline_edge_by_limits_p,
35190 want_inline_small_function_p): Use new parameters.
35192 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35194 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35196 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35198 PR middle-end/82564
35200 * expr.c (expand_assignment): For calls returning VLA structures
35201 if to_rtx is not a MEM, force it into a stack temporary.
35204 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35205 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35206 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35207 subexpressions of both operands.
35208 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35209 subrtxes are CONSTANT_P.
35210 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35211 2018-11-09 changes.
35213 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35215 * params.def (hot-bb-count-ws-permille): Set to 990.
35217 2019-01-04 Martin Sebor <msebor@redhat.com>
35220 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35223 2019-01-04 Martin Sebor <msebor@redhat.com>
35226 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35228 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35230 * gdbinit.in: Turn off pagination for the skip commands, restore
35231 it to previous state afterwards.
35233 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35236 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35237 of GET_MODE (opN) as modes of the libcall arguments.
35239 2019-01-04 Jan Beulich <jbeulich@suse.com>
35241 * config/i386/sse.md
35242 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35243 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35244 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35245 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35246 avx512f_vmcmp<mode>3<round_saeonly_name>,
35247 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35248 avx512f_maskcmp<mode>3,
35249 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35250 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35251 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35252 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35253 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35254 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35255 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35256 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35257 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35258 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35259 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35260 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35261 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35262 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35263 avx512cd_maskb_vec_dup<mode>,
35264 avx512cd_maskw_vec_dup<mode>,
35265 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35266 avx512dq_vmfpclass<mode>,
35267 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35270 2019-01-03 Martin Sebor <msebor@redhat.com>
35272 PR tree-optimization/88659
35273 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35275 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35277 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35278 unaligned vsx and avoid lxvd2x/stxvd2x.
35279 (gen_lvx_v4si_move): New function.
35281 2019-01-03 Tom de Vries <tdevries@suse.de>
35283 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35284 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35286 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35288 2019-01-03 Tom de Vries <tdevries@suse.de>
35290 * config/nvptx/nvptx.c (struct offload_attrs): New.
35291 (populate_offload_attrs): New function. Factor mask extraction out of
35292 nvptx_reorg. Add extraction of dimensions.
35293 (nvptx_reorg): Use populate_offload_attrs.
35295 2019-01-03 Tom de Vries <tdevries@suse.de>
35297 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35298 cases for oacc_min_dims_p and routine_p. Add asserts for
35299 oacc_default_dims_p and offload_region_p.
35301 2019-01-03 Tom de Vries <tdevries@suse.de>
35303 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35304 factored out of ...
35305 (nvptx_goacc_validate_dims): ... here.
35307 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35309 PR tree-optimization/85574
35310 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35312 (struct ssa_equip_hash_traits): Declare.
35313 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35315 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35318 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35319 change it to qualified_type.
35321 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35323 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35324 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35326 2019-01-02 Martin Sebor <msebor@redhat.com>
35327 Jeff Law <law@redhat.com>
35329 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35330 (get_range_strlen_tree): Update appropriately.
35332 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35334 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35335 rather than set_range_info.
35336 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35337 maybe_set_strlen_range. Handle potentially boundary crossing
35338 cases more conservatively.
35339 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35340 Call set_strlen_range.
35341 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35343 PR middle-end/88663
35344 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35345 need the flexp argument.
35346 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35347 from calls to get_range_strlen. Update comments. Just update
35348 VAL for an unterminated const char array and let the reset of the
35349 code handle it normally. No longer try to set *flexp. Adjust
35351 (get_range_strlen): Update for the new get_range_strlen API.
35352 (get_maxval_strlen): Similarly.
35353 (gimple_fold_builtin_strlen): Handle update meaning of return value
35354 from get_range_strlen.
35355 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35356 get_range_strlen API.
35358 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35361 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35362 false at WPA time when body was removed.
35364 2019-01-02 Martin Liska <mliska@suse.cz>
35366 PR tree-optimization/88650
35367 * predict.c (set_even_probabilities): Calculate probability
35368 remainer only when really used.
35370 2019-01-02 Richard Biener <rguenther@suse.de>
35372 PR middle-end/88651
35373 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35374 widest_ints when mangling max_stmt_execution results.
35376 2019-01-02 Richard Biener <rguenther@suse.de>
35378 PR tree-optimization/88621
35379 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35380 bitfields when canoncalizing.
35382 2019-01-02 Richard Biener <rguenther@suse.de>
35385 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35386 cost of cheap SSE instruction.
35388 2019-01-02 Richard Biener <rguenther@suse.de>
35391 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35392 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35394 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35395 set after UIDs before splitting them.
35397 2019-01-01 Martin Sebor <msebor@redhat.com>
35398 Jeff Law <law@redhat.com>
35400 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35401 length is optimistic. If it is, then arrange to compute the
35402 conservative length as well.
35404 * gimple-fold.h (get_range_strlen): Update prototype.
35405 * builtins.c (check_access): Update call to get_range_strlen to use
35406 c_strlen_data pointer. Change various variable accesses to instead
35407 pull data from the c_strlen_data structure.
35408 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35409 * calls.c (maybe_warn_nonstring_arg): Likewise.
35410 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35411 minimum length if maximum lengh is unknown.
35412 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35413 that used c_strlen, it's no longer needed. Restructure slightly.
35414 (format_string): Set unlikely range appropriately.
35415 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35417 (get_range_strlen): Accept c_strlen_data pointer for external
35418 call sites as well. Pass through to call to internal get_range_strlen.
35419 Adjust minlen, maxlen and maxbound as needed.
35420 (get_maxval_strlen): Update comments.
35421 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35422 to use c_strlen_data pointer. Change variable accesses to instead
35423 use c_strlen_data data members.
35425 * gimple-fold.c (get_range_strlen): Update prototype.
35426 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35427 local variables. Use pdata to return information to caller.
35428 Update calls to get_range_strlen. Update pdata->maxbound.
35429 (get_range_strlen -- static version): Similarly.
35430 (get_range_strlen -- extern version): Update for internal
35431 get_range_strlen API change. Convert to external data format.
35432 (get_maxval_strlen): Similarly.
35434 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35436 * coverage.c (get_coverage_counts): Use current_function_decl.
35437 * profile.c (read_thunk_profile): New function.
35438 (branch_prob): Add THUNK parameter.
35439 * tree-profile.c (tree_profiling): Handle thunks.
35440 * value-prof.c (init_node_map): Handle thunks.
35441 * value-prof.h (branch_prob): Upate prototype.
35442 (read_thunk_profile): Declare.
35444 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35446 Update copyright years.
35448 * gcc.c (process_command): Update copyright notice dates.
35449 * gcov-dump.c (print_version): Ditto.
35450 * gcov.c (print_version): Ditto.
35451 * gcov-tool.c (print_version): Ditto.
35452 * gengtype.c (create_file): Ditto.
35453 * doc/cpp.texi: Bump @copying's copyright year.
35454 * doc/cppinternals.texi: Ditto.
35455 * doc/gcc.texi: Ditto.
35456 * doc/gccint.texi: Ditto.
35457 * doc/gcov.texi: Ditto.
35458 * doc/install.texi: Ditto.
35459 * doc/invoke.texi: Ditto.
35461 Copyright (C) 2019 Free Software Foundation, Inc.
35463 Copying and distribution of this file, with or without modification,
35464 are permitted in any medium without royalty provided the copyright
35465 notice and this notice are preserved.