1 2019-12-09 Hongtao Liu <hongtao.liu@intel.com>
5 (*<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
6 *<avx512>_cmp<mode>3<mask_scalar_merge_name>,
7 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>,
8 *<avx512>_ucmp<mode>3<mask_scalar_merge_name>): New.
9 * config/i386/i386.c (ix86_print_operand): New operand substitution.
10 * config/i386/i386-expand.c (ix86_valid_mask_cmp_mode):
12 (ix86_expand_sse_cmp): Relax condition for integer mask from
13 512-bit vector to all 128/256/512-bit vector. Delete code gen
14 for avx512f compare patterns since we have generic pattern now.
15 (ix86_expand_sse_movcc): Adjust condition and codegen for
17 (ix86_expand_int_sse_cmp): Don't canonicalize the comparison
18 when corresponding vector compare is available.
20 2019-12-08 Sandra Loosemore <sandra@codesourcery.com>
24 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
26 * config/nios2/linux.h (LINK_EH_SPEC): Define.
28 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
30 * cgraph.c (cgraph_node::dump): Make tp_first_run 64bit.
31 * cgraph.h (cgrpah_node): Likewise.
32 (tp_first_run_node_cmp): Deeclare.
33 * cgraphunit.c (node_cmp): Rename to ...
34 (tp_first_run_node_cmp): ... this; export; watch for 64bit overflows;
35 clear tp_first_run for no_reorder and !flag_profile_reorder_functions.
36 (expand_all_functions): Collect tp_first_run and normal functions to
37 two vectors so the other functions remain sorted. Do not check for
38 flag_profile_reorder_functions it is function local flag.
39 * profile.c (compute_value_histograms): Update tp_first_run printing.
41 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
43 * opts.c (common_handle_option): Do not clear ipa_reference for
46 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
48 * ipa-split.c (split_function): Preserve 0 tp_first_run.
50 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
52 * ipa-inline-analysis.c (do_estimate_edge_time): Silence overactive
55 2019-12-07 Jan Hubicka <hubicka@ucw.cz>
57 PR tree-optimization/92860
58 * common.opt (fprofile-reorder-functions, ftoplevel-reorder): Add
61 2019-12-07 Marek Polacek <polacek@redhat.com>
63 PR c++/91678 - wrong error with decltype and location wrapper.
64 * fold-const.c (maybe_lvalue_p): Handle VIEW_CONVERT_EXPR.
66 2019-12-07 Eric Botcazou <ebotcazou@adacore.com>
69 * expr.c (expand_assignment): In the case of a CONCAT on the LHS, make
70 sure to pass a valid inner mode in calls to simplify_gen_subreg.
72 2019-12-07 Tobias Burnus <tobias@codesourcery.com>
73 David Malcolm <dmalcolm@redhat.com>
74 Jakub Jelinek <jakub@redhat.com>
77 * pretty-print.c (pp_begin_url, pp_end_url, test_urls): Use BEL
78 instead of ST sequence to terminate OSC 8 strings.
80 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
81 Vladimir Makarov <vmakarov@redhat.com>
83 PR rtl-optimization/92176
84 * lra.c (simplify_subreg_regno): Don't permit unconditional
85 changing mode for LRA too.
87 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
89 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
90 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
91 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
94 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
96 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
99 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
101 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
102 (VEC_1REG_ALT): Likewise.
103 (VEC_ALL1REG_MODE): New mode iterator.
104 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
105 (VEC_1REG_INT_ALT): Likewise.
106 (VEC_ALL1REG_INT_MODE): New mode interator.
107 (VEC_ALL1REG_INT_ALT): Likewise.
108 (VEC_REG_MODE): Remove V64QI and V64HI.
109 (VEC_ALLREG_MODE): New mode interator.
110 (vec_merge): Change to VEC_ALLREG_MODE.
111 (vec_merge_with_clobber): Likewise.
112 (vec_merge_with_vcc): Likewise.
113 (mov<mode>): Likewise.
114 (mov<mode>_unspec): Likewise.
115 (*mov<mode>): Change to VEC_ALL1REG_MODE.
116 (mov<mode>_exec): Likewise.
117 (*mov<mode>_exec_match): Likewise.
118 (mov<mode>_sgprbase): Likewise.
119 (reload_in<mode>): Change to VEC_ALLREG_MODE.
120 (reload_out<mode>): Likewise.
121 (scalar address splits): Likewise.
122 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
123 (vec_set<mode>): Change to VEC_ALLREG_MODE.
124 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
125 (vec_duplicate<mode><exec>): Likewise.
126 (vec_extract<mode><scalar_mode>): Likewise.
127 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
128 (gather_load<mode>): Likewise.
129 (gather<mode>_exec): Likewise.
130 (gather<mode>_expr<exec>): Likewise.
131 (gather<mode>_insn_1offset<exec>): Likewise.
132 (gather<mode>_insn_1offset_ds<exec>): Likewise.
133 (gather<mode>_insn_2offsets<exec>): Likewise.
134 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
135 (VEC_INT_MODE): Remove V64QI and V64HI.
136 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
137 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
139 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
140 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
141 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
142 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
143 (maskstore<mode>di): Likewise.
144 (mask_gather_load<mode>): Likewise.
145 (mov_from_lane63_<mode>): Likewise.
146 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
147 and V64HImode vectorization.
148 (gcn_related_vector_mode): New function.
149 (TARGET_VECTORIZE_RELATED_MODE): New define.
151 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
152 Kwok Cheung Yeung <kcy@codesourcery.com>
154 * omp-low.c (lower_omp_target): For optional arguments, deref once
155 more to obtain the type.
157 2019-12-06 Richard Biener <rguenther@suse.de>
159 * match.pd (nop_convert): Remove empty match. Use nop_convert?
162 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
164 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
165 for empty vectors. Avoid using ordered_remove and instead
166 shuffle the vector as we go.
168 2019-12-06 Richard Biener <rguenther@suse.de>
170 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
172 (expr::opt_grp): Add and initialize.
173 (lower_opt_convert): Rename to ...
174 (lower_opt): ... and work on opt_grp, simply switching operations
175 from being optional to being present or not.
176 (has_opt_convert): Rename to ...
177 (has_opt): ... and adjust.
178 (parser::parse_operation): Return the optional opt_grp,
179 remove special-casing of conditional operations and more generally
181 (parser::parse_expr): Stick on the parsed opt_grp and perform
183 (parser::parse_for): Remove now unnecessary code.
185 * doc/match-and-simplify.texi: Mention ? now works on all
186 unary operations and also match predicates.
188 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
190 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
191 functions, not inline clones.
193 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
195 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
197 2019-12-06 Richard Biener <rguenther@suse.de>
199 * genmatch.c (c_expr::gen_transform): Emit newlines from line
200 number changes rather than after every semicolon.
202 2019-12-06 Richard Biener <rguenther@suse.de>
204 PR tree-optimization/92819
205 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
206 into the last lane. For two-element vectors try inserting
207 into the last lane when inserting into the first fails.
209 2019-12-06 Jakub Jelinek <jakub@redhat.com>
211 * common.opt (fprofile-partial-training): Terminate description with
214 2019-12-05 Martin Sebor <msebor@redhat.com>
217 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
218 left uninitialized by get_addr_base_and_unit_offset on failure.
220 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
222 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
223 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
224 (detect_type_change): Likewise.
225 (detect_type_change_ssa): Likewise.
226 (ipa_analyze_virtual_call_uses): Update.
228 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
230 * config/nios2/linux.h (LINK_EH_SPEC): Define.
232 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
234 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
236 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
238 * cgraphclones.c (localize_profile): New function.
239 (cgraph_node::create_clone): Use it for partial profiles.
240 * common.opt (fprofile-partial-training): New flag.
241 * doc/invoke.texi (-fprofile-partial-training): Document.
242 * ipa-cp.c (update_profiling_info): For partial profiles do not
243 set function profile to zero.
244 * profile.c (compute_branch_probabilities): With partial profile
245 watch if edge count is zero and turn all probabilities to guessed.
246 (compute_branch_probabilities): For partial profiles do not apply
247 profile when entry count is zero.
248 * tree-profile.c (tree_profiling): Only do value_profile_transformations
249 when profile is read.
251 2019-12-05 Sudakshina Das <sudi.das@arm.com>
253 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
254 check from if condition.
256 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
258 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
259 and Fortran's optional arguments, unconditionally add the is-present
260 condition before the libgomp call.
262 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
265 * tree-core.h (OEP_BITWISE): New flag.
266 * fold-const.c (operand_compare::operand_equal_p): Handle it.
267 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
269 2019-12-05 Richard Biener <rguenther@suse.de>
272 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
273 heuristics on what don't care element to choose.
274 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
276 2019-12-05 Martin Liska <mliska@suse.cz>
278 PR gcov-profile/92817
279 * coverage.c (build_gcov_exit_decl): Remove superfluous
282 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
284 * config/msp430/msp430.md (cbranch<mode>4): Use
285 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
286 dest operand of CMP instruction.
287 (cbranchpsi4_real): Likewise.
288 (cbranchqi4_real): Likewise.
289 (cbranchhi4_real): Likewise.
290 (cbranchpsi4_reversed): Likewise.
291 (cbranchqi4_reversed): Likewise.
292 (cbranchhi4_reversed): Likewise.
294 2019-12-05 Richard Biener <rguenther@suse.de>
296 PR tree-optimization/92803
297 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
298 invariant vector construction.
300 2019-12-05 Martin Liska <mliska@suse.cz>
302 PR gcov-profile/91971
303 * coverage.c (coverage_init): Mangle full path
304 only when -fprofile-dir is used.
306 2019-12-05 Jakub Jelinek <jakub@redhat.com>
309 * config/i386/i386.md (movstrict<mode>): Move test for
310 TARGET_PARTIAL_REG_STALL and not optimizing for size from
311 expander's condition to the body - FAIL; in that case.
313 2019-12-03 Martin Sebor <msebor@redhat.com>
316 * builtins.c (gimple_call_alloc_size): New function.
317 (compute_objsize): Add argument. Call gimple_call_alloc_size.
318 Handle variable offsets and indices.
319 * builtins.h (gimple_call_alloc_size): Declare.
320 (compute_objsize): Add argument.
321 * gcc/gimple-ssa-warn-restrict.c: Remove assertions.
322 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
324 2019-12-04 Julian Brown <julian@codesourcery.com>
326 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
328 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
331 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
333 (altivec_overloaded_builtins): Move to rs6000-call.c.
334 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
336 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
337 (altivec_overloaded_builtins): Moved from rs6000-c.c.
338 (rs6000_common_init_builtins): Do no define builtins that overload
339 builtins that have been disabled.
341 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
343 * config/arm/arm.c (arm_option_override_internal):
344 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
346 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
348 * config/aarch64/aarch64.c
349 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
350 (thunderx_tunings): Likewise.
351 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
352 (thunderx2t99_tunings): Likewise.
353 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
354 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
356 2019-12-04 Richard Biener <rguenther@suse.de>
358 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
359 empty CTOR and memset partial-def registering. Take advantage
360 of fancy offset analysis in memset handling.
362 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
364 * fold-const.c (native_encode_vector_part): Handle
365 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
366 (native_decode_vector_tree): Delete, moving the bulk of the code to...
367 (native_interpret_vector_part): ...this new function. Use a pointer
368 and length instead of a vec<> and start index.
369 (native_interpret_vector): Use native_interpret_vector_part.
370 (fold_view_convert_vector_encoding): Likewise.
372 2019-12-04 Richard Biener <rguenther@suse.de>
374 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
375 non-constant defs in the most trivial way.
376 (vn_reference_lookup_3): Also push down SSA partial defs.
378 2019-12-04 Martin Liska <mliska@suse.cz>
380 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
381 Initialize count of newly created BB.
383 2019-12-04 Jakub Jelinek <jakub@redhat.com>
385 PR tree-optimization/92734
386 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
387 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
389 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
392 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
393 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
395 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
397 * ipa-fnsummary.c: Include tree-into-ssa.h.
398 (compute_fn_summary): Call update_ssa.
400 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
402 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
403 is set only for symbol in comdat group.
404 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
406 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
408 * cgraph.c: Include tree-into-ssa.h
409 (cgraph_node::get_body): Call update_ssa.
410 * cgraphunit.c (cgraph_node::expand): Likewise.
411 * lto-streamer-in.c (input_function): Do not call update_ssa.
413 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
415 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
416 an array element size if array_element_size is already an invariant.
417 Similarly don't gimplify and install a field offset if
418 component_ref_field_offset is already an invariant.
420 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
422 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
423 with POLY_INT_CST size is made to a fixed-size object, force the
424 object to live in memory.
426 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
428 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
431 2019-12-03 Richard Biener <rguenther@suse.de>
433 PR tree-optimization/92758
434 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
435 operation on uniform vectors.
437 2019-12-03 Richard Biener <rguenther@suse.de>
439 PR tree-optimization/92645
440 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
441 from or to a properly aligned register variable.
443 2019-12-03 Matthias Klose <doko@ubuntu.com>
445 * Makefile.in (SOURCES): Add doc/lto-dump.1.
446 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
447 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
449 2019-12-03 Richard Biener <rguenther@suse.de>
451 PR tree-optimization/92751
452 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
453 when a clobber ends up in the partial-def vector.
454 (vn_reference_lookup_3): Let clobbers be handled by the
455 assignment from CTOR handling.
457 2019-12-03 Jakub Jelinek <jakub@redhat.com>
459 PR tree-optimization/92734
460 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
461 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
464 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
465 Jakub Jelinek <jakub@redhat.com>
468 * config/i386/i386.md (peephole2 for *swap<mode>): Use
469 general_reg_operand predicates instead of register_operand.
471 2019-12-03 Richard Biener <rguenther@suse.de>
473 PR tree-optimization/92645
474 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
475 a full def of a vector via a BIT_INSERT_EXPR.
477 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
479 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
481 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
484 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
487 * fold-const.c (fold_convertible_p): Check vector types more
490 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
492 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
493 (aarch64_expand_mov_immediate): Use it when attempting to measure
494 the length of an SVE vector.
495 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
498 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
500 * config/aarch64/aarch64-sve-builtins.h
501 (gimple_folder::force_vector): Declare.
502 * config/aarch64/aarch64-sve-builtins.cc
503 (gimple_folder::force_vector): New function.
504 * config/aarch64/aarch64-sve-builtins-base.cc
505 (svcmp_impl::fold): Likewise.
506 (svdup_impl::fold): Handle svdup_z too.
508 2019-12-02 Martin Liska <mliska@suse.cz>
510 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
512 (debug_tree_odr_name): New.
513 * ipa-utils.h (get_odr_name_for_type): New.
515 2019-12-02 Richard Biener <rguenther@suse.de>
517 PR tree-optimization/92742
518 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
519 touch the def-type but verify it is consistent with the
522 2019-12-02 Jakub Jelinek <jakub@redhat.com>
524 PR tree-optimization/92712
525 * match.pd ((A * B) +- A -> (B +- 1) * A,
526 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
527 even when we don't know anything about range of A, but do know
528 something about range of B and the simplification won't introduce
531 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
534 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
535 (ipa-cp-min-recursive-probability): Likewise.
536 * params.opt (ipa-cp-max-recursive-depth): New.
537 (ipa-cp-min-recursive-probability): Likewise.
538 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
540 (self_recursively_generated_p): New function.
541 (get_val_across_arith_op): Likewise.
542 (propagate_vals_across_arith_jfunc): Add constant propagation for
543 self-recursive function.
544 (incorporate_penalties): Do not penalize pure self-recursive function.
545 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
546 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
547 (get_info_about_necessary_edges): Relax hotness check for edge to
548 self-recursive function.
549 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
551 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
555 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
556 objects of flexible types to be small if they have internal linkage
557 or are declared extern.
558 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
559 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
560 instead of the size of the object initializer.
561 * tree.c (flexible_array_type_p): Move from C front end, and
562 generalize to handle fields in non-C structures.
563 * tree.h (flexible_array_type_p): Declare.
565 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
567 * profile-count.h (profile_count::operator<): Use IPA value for
569 (profile_count::operator>): Likewise.
570 (profile_count::operator<=): Likewise.
571 (profile_count::operator>=): Likewise.
572 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
574 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
576 * ipa-inline.c (compute_max_insns): Return int64_t.
577 (inline_small_functions): Simplify.
579 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
581 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
584 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
586 * cgraph.h (symtab_node): Add symver flag.
587 * cgraphunit.c (process_symver_attribute): New.
588 (process_common_attributes): Use process_symver_attribute.
589 * lto-cgraph.c (lto_output_node): Stream symver.
590 (lto_output_varpool_node): Stream symver.
591 (input_overwrite_node): Stream symver.
592 (input_varpool_node): Stream symver.
593 * output.h (do_assemble_symver): Decalre.
594 * symtab.c (symtab_node::dump_base): Dump symver.
595 (symtab_node::verify_base): Verify symver.
596 (symtab_node::resolve_alias): Handle symver.
597 * varasm.c (do_assemble_symver): New function.
598 * varpool.c (varpool_node::assemble_aliases): Use it.
599 * doc/extend.texi: (symver attribute): Document.
600 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
602 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
604 * target.h (type_context_kind): New enum.
605 (verify_type_context): Declare.
606 * target.def (verify_type_context): New target hook.
607 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
608 * doc/tm.texi: Regenerate.
609 * tree.c (verify_type_context): New function.
610 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
612 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
614 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
615 (TARGET_VERIFY_TYPE_CONTEXT): Define.
617 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
619 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
620 * cgraph.h (cgraph_node): Add unit_id and
621 merged_extern_inline.
622 (symbol_table): Add max_unit.
623 (symbol_table::symbol_table): Initialize it.
624 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
625 merged_comdat, merged_extern_inline.
626 (cgraph_node::create_clone): Likewise.
627 (cgraph_node::create_version_clone): Likewise.
628 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
630 * ipa-fnsummary.h (cross_module_call_p): New inline function.
631 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
632 * ipa-inline.c (inline_small_functions): Likewise.
633 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
634 copy merged_comdat and merged_extern_inline.
635 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
636 merged_extern_inline and unit_id.
637 (input_overwrite_node): Stream in these.
638 (input_cgraph_1): Set unit_base.
639 * lto-streamer.h (lto_file_decl_data): Add unit_base.
640 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
642 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
644 * gcc.c (process_command): Only warn about an ineffective `-x'
645 option if any input files have actually been supplied.
647 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
649 * doc/install.texi (Options specification): Remove the list of
650 target library subdirectories supporting
651 `--enable-version-specific-runtime-libs'. Document defaults for
654 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
656 PR rtl-optimization/92283
657 * lra.c (lra): Update reg notes after inheritance sub-pass and
658 before constraint sub-pass.
660 2019-11-29 Richard Biener <rguenther@suse.de>
662 PR tree-optimization/91003
663 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
664 operand number, avoid handling the non-condition operands of
665 COND_EXPRs as comparisons.
666 (vect_get_constant_vectors): Pass down the operand number.
667 (vect_get_slp_defs): Likewise.
669 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
671 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
672 generic_expr_could_trap_p to check if the condition of COND_EXPR or
673 VEC_COND_EXPR can trap.
675 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
677 PR tree-optimization/92677
678 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
679 to zero when dissolving a group of strided accesses.
681 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
683 PR tree-optimization/92596
684 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
686 (vectorizable_operation): Likewise, instead of relying on
687 vect_get_mask_type_for_stmt to do this.
688 (vect_get_vector_types_for_stmt): Always return a vector type
689 immediately, rather than deferring the choice for boolean results.
690 Use a vector mask type instead of a normal vector if
691 vect_use_mask_type_p.
692 (vect_get_mask_type_for_stmt): Delete.
693 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
694 mask_producers argument and special boolean_type_node handling.
695 (vect_determine_vf_for_stmt): Remove mask_producers argument and
696 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
697 (vect_determine_vectorization_factor): Update call accordingly.
698 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
699 boolean_type_node handling.
700 (vect_slp_analyze_node_operations_1): Likewise.
702 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
704 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
705 (vect_use_mask_type_p): New function.
706 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
707 mask precision to the pattern statement.
708 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
709 and use it to initialize the new stmt's mask precision.
710 (search_type_for_mask_1): Delete.
711 (search_type_for_mask): Replace with...
712 (integer_type_for_mask): ...this new function. Use the information
713 cached in the stmt_vec_info.
714 (vect_recog_bool_pattern): Update accordingly.
715 (build_mask_conversion): Pass the scalar type associated with the
716 mask type to append_pattern_def_seq.
717 (vect_recog_mask_conversion_pattern): Likewise. Call
718 integer_type_for_mask instead of search_type_for_mask.
719 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
720 of search_type_for_mask.
721 (possible_vector_mask_operation_p): New function.
722 (vect_determine_mask_precision): Likewise.
723 (vect_determine_stmt_precisions): Call it.
725 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
727 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
728 the slp_tree parameter with a group size parameter.
729 (vect_get_mask_type_for_stmt): Likewise.
730 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
731 (vect_get_mask_type_for_stmt): Likewise.
732 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
735 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
737 * tree-vect-stmts.c (vectorizable_operation): Punt early
738 on codes that are handled elsewhere.
740 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
742 * doc/sourcebuild.texi (vect_bool_cmp): Document.
743 * tree-vect-patterns.c (search_type_for_mask_1): If neither
744 operand to a boolean comparison is a natural vector mask,
745 handle both operands like normal integers instead.
747 2019-11-29 Richard Biener <rguenther@suse.de>
749 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
750 out early for too large objects.
752 2019-11-29 Martin Jambor <mjambor@suse.cz>
755 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
756 the summary only if the summary exists.
757 (find_more_scalar_values_for_callers_subset): Check node_dead in
758 the summary only if the summary exists.
759 (ipcp_store_bits_results): Ignore nodes without lattices.
760 (ipcp_store_vr_results): Likewise.
761 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
762 header files required by them.
763 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
765 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
767 PR tree-optimization/92710
768 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
769 vector mask arguments.
771 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
773 * profile-count.c (profile_count::to_cgraph_frequency,
774 profile_count::to_sreal_scale): Check for compaibility of counts.
775 * profile-count.h (compatible_p): Make public; add checking for
776 global0 versus global types.
777 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
779 2019-11-29 Richard Biener <rguenther@suse.de>
781 PR tree-optimization/92715
782 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
783 out for uniform vectors and source vectors with less elements
784 than the destination.
786 2019-11-29 Martin Liska <mliska@suse.cz>
789 * ipa-devirt.c (types_same_for_odr): Check for existence
792 2019-11-29 Richard Biener <rguenther@suse.de>
794 PR tree-optimization/92704
795 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
796 in loops performing only loads.
798 2019-11-29 Julian Brown <julian@codesourcery.com>
800 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
801 BT_DFLOAT128_PTR) Remove.
802 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
803 TI_DFLOAT128_PTR_TYPE): Remove.
804 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
805 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
806 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
807 dfloat128_ptr_type_node): Remove macros.
809 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
811 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
813 (*movdi_internal64): Ditto.
815 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
818 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
819 indexed_or_indirect_operand to be memory_operand.
820 (bswap<mode>2_store for HSI): Ditto.
821 (bswapdi2_load): Ditto.
822 (bswapdi2_store): Ditto.
824 2019-11-28 Martin Liska <mliska@suse.cz>
827 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
828 headers for translation.
830 2019-11-28 Martin Liska <mliska@suse.cz>
833 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
836 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
838 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
841 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
843 * profile-count.c (profile_count::combine_with_ipa_count): Return
844 uninitialized count if called on ininitialized count.
846 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
848 * ipa-inline-transform.c (inline_transform): Scale profile before
851 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
853 * profile-count.h (profile_count::max): Work on profiles of different
855 (profile_count::apply_scale): Be sure that ret is not local or global0
856 type if num is global.
858 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
860 * profile-count.h (profile_count::max): Work on profiles of different
862 (profile_count::apply_scale): Be sure that ret is not local or global0
863 type if num is global.
865 2019-11-28 Martin Jambor <mjambor@suse.cz>
868 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
870 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
871 Removed trailig whitespace.
873 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
875 * profile-count.h (profile_count::combine_with_ipa_count_within):
877 * profile-count.c (profile_count::combine_with_ipa_count_within):
879 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
882 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
884 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
885 of counters are done same way.
887 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
889 * ipa-cp.c (update_profiling_info): Fix scaling.
891 2019-11-28 Richard Biener <rguenther@suse.de>
893 PR tree-optimization/92645
894 * tree-inline.c (remap_gimple_stmt): When the return value
895 is not wanted, elide GIMPLE_RETURN.
897 2019-11-28 Richard Biener <rguenther@suse.de>
899 PR tree-optimization/92645
900 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
901 conversions inside a mode class. Remove restriction on
902 preserving the element size.
903 (simplify_vector_constructor): Deal with the above and for
904 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
905 and VEC_PACK_TRUNC_EXPR.
907 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
909 Must use push insn to pass varargs arguments of DFmode because
910 otherwise the middle-end generates wrong code.
913 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
915 2019-11-28 Jakub Jelinek <jakub@redhat.com>
917 PR tree-optimization/92691
918 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
920 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
921 calls, return !handle_printf_call rather than always returning true.
922 (check_and_optimize_stmt): Describe return value meaning in function
923 comment. Formatting fix.
925 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
927 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
928 combination of globa0 and global counters..
930 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
933 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
934 by VECTOR_UNIT_NONE_P instead.
936 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
938 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
939 Refine VF to VF_AVX512VL.
941 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
943 * config/rs6000/rs6000.md (movsi_internal): Reformat.
944 (movdi_internal64): Reformat.
946 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
949 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
950 builtin if we don't have an actual type.
951 (builtin_function_type): If the builtin function uses a DFP type
952 and decimal float has been disabled, then return NULL_TREE.
954 2019-11-27 Jakub Jelinek <jakub@redhat.com>
956 PR rtl-optimization/92510
957 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
958 of comparison into a comparison with different mode if both imode and
959 omode are scalar integral modes.
961 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
963 PR rtl-optimization/90007
964 * recog.c (constrain_operands): Permit hard registers too for
965 memory when LRA is used.
967 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
969 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
970 between Coldfire and regular m68k.
971 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
973 2019-11-27 Richard Biener <rguenther@suse.de>
975 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
976 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
977 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
978 * optabs-tree.c (supportable_convert_operation): Do not call
979 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
980 * optabs-tree.h (supportable_convert_operation): Adjust.
981 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
982 * doc/tm.texi: Regenerate.
983 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
984 * tree-vect-generic.c (expand_vector_conversion): Likewise.
985 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
986 unused decl parameter and adjust.
987 (vect_create_vectorized_promotion_stmts): Likewise.
988 (vectorizable_conversion): Adjust.
990 2019-11-27 Richard Biener <rguenther@suse.de>
992 PR tree-optimization/92690
993 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
994 converting elements not originally converted.
996 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
999 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
1000 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
1001 mpfr_rnd_t instead of mp_rnd_t.
1002 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
1003 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
1004 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
1005 Use mpfr_exp_t instead of mp_exp_t.
1006 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
1007 MPFR_RNDx instead of GMP_RNDx.
1008 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
1009 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
1010 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
1011 of mp_rnd_t and remove MPFR_RNDx poisoning.
1012 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
1014 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
1016 PR tree-optimization/91790
1017 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
1018 DR for vect_setup_realignment when first_stmt_info is different
1019 from first_stmt_info_for_drptr.
1021 2019-11-27 Richard Biener <rguenther@suse.de>
1023 PR tree-optimization/92645
1024 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1025 CTORs with just a subset of the original vectors.
1027 2019-11-27 Richard Biener <rguenther@suse.de>
1030 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
1031 edges and instead record blocks in bitmap.
1032 (gimple_expand_calls_inline): Adjust.
1033 (fold_marked_statements): Delay EH cleanup until all folding is
1035 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
1038 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
1040 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
1042 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
1045 2019-11-27 Jakub Jelinek <jakub@redhat.com>
1048 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
1050 2019-11-26 Martin Sebor <msebor@redhat.com>
1052 PR tree-optimization/92683
1053 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
1054 inadvertently removed in a previous change. Rename local variable
1057 2019-11-26 Richard Biener <rguenther@suse.de>
1060 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
1063 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
1065 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
1067 2019-11-26 Jakub Jelinek <jakub@redhat.com>
1069 PR tree-optimization/92644
1070 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
1071 next to INTEGER_CST checks.
1073 2019-11-26 Richard Biener <rguenther@suse.de>
1075 PR tree-optimization/92645
1076 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
1077 do not build the operation from scalars if the operand is.
1079 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1081 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1082 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1085 2019-11-25 Martin Liska <mliska@suse.cz>
1087 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1088 up used dump message.
1090 2019-11-25 Martin Liska <mliska@suse.cz>
1093 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1094 too strict checking assert.
1096 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1099 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1100 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1101 error_mark_node if corresponding global tree node is NULL.
1102 * tree.c (build_common_tree_nodes): Do not initialize
1103 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1104 decimal floating-point not supported.
1106 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1108 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1111 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1113 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1114 Replace code for non-CONST_INT constants with gcc_unreachable.
1115 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1117 (CMPMODE): New mode_iterator.
1118 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1120 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1122 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1124 (bit test insns patterns): Use nonimmediate_operand, not
1125 register_operand, for source operands that allow memory in
1127 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1128 Use register_operand, not nonimmediate_operand, for the
1130 (DBCC): New mode_iterator.
1131 (dbcc peepholes): Use it to reduce duplication.
1132 (trap): Use const_true_rtx, not const1_rtx.
1133 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1134 from m68k_subword_comparison_operand and changed to handle
1138 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1140 (m68k_init_cc): New declaration.
1141 (m68k_output_compare_di, m68k_output_compare_si)
1142 (m68k_output_compare_hi, m68k_output_compare_qi)
1143 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1144 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1145 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1146 m68k_output_branch_float, m68k_output_branch_float_rev):
1148 (valid_dbcc_comparison_p_2, flags_in_68881)
1149 (output_btst): Remove declaration.
1150 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1151 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1152 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1153 (flags_compare_op0, flags_compare_op1, flags_operand1,
1154 flags_operand2, flags_valid): New static variables.
1155 (m68k_find_flags_value, m68k_init_cc): New functions.
1156 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1157 remember_compare_flags): New static functions.
1158 (output_dbcc_and_branch): New argument CODE. Use it, and add
1159 PLUS and MINUS to the possible codes. All callers changed.
1160 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1161 and INSN arguments, add CODE arg. Return the comparison code
1162 to use. All callers changed. Use CODE instead of
1163 next_insn_tests_no_inequality, and replace cc_status management
1164 with changing the return code.
1165 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1166 RTX_COMPARE or RTX_COMM_COMPARE.
1167 (output_move_simode, output_move_qimode): Call
1168 handle_flags_for_move.
1169 (notice_update_cc): Delete function.
1170 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1171 m68k_output_compare_hi, m68k_output_compare_qi,
1172 m68k_output_compare_fp, m68k_output_branch_integer,
1173 m68k_output_branch_integer_rev, m68k_output_scc,
1174 m68k_output_branch_float, m68k_output_branch_float_rev,
1175 m68k_output_scc_float): New functions.
1176 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1177 once at the start, and set flags_valid and flags_operand1 if the
1179 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1180 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1182 (CC_STATUS_INIT): Define.
1183 * config/m68k/m68k.md (flags_valid): New define_attr.
1184 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1185 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1186 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1187 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1188 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1189 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1190 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1191 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1192 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1193 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1194 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1195 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1196 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1197 ctrapqi4, conditional_trap): Delete patterns.
1198 (cbranchdi4_insn): New pattern.
1199 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1200 test high part only. When testing EQ or NE, generate beq0_di
1201 and bne0_di patterns directly.
1202 (cstoredi4): When testing LT or GE, test high part only.
1203 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1205 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1206 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1207 cmp2_cf_predicate): New define_mode_attrs.
1208 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1209 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1210 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1212 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1213 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1214 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1216 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1217 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1219 (BTST): New define_mode_iterator.
1220 (btst_predicate, btst_constraint, btst_range): New
1222 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1224 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1225 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1226 patterns): Set attr "flags_valid".
1227 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1228 management. Set attr "flags_valid".
1229 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1230 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1231 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1232 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1233 manual CC_STATUS management.
1234 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1235 unnamed strict_lowpart subhi and subqi patterns): Set attr
1237 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1238 Remove code to operate on address regs and assert the case
1240 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1241 manual CC_STATUS_INIT.
1242 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1243 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1244 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1245 one_cmplqi2, unnamed strict_lowpart patterns
1246 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1247 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1248 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1249 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1251 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1252 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1253 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1254 unnamed strict_low_part patterns for HI and
1255 QI versions): Set attr "flags_valid".
1256 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1257 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1258 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1259 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1260 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1261 (various unnamed peepholes): Adjust compare/branch sequences
1262 for new cbranch patterns.
1263 (dbcc peepholes): Likewise, and output the comparison here
1265 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1266 (fp_src_operand): Allow constant zero.
1267 (address_reg_operand): New predicate.
1269 * rtl.h (inequality_comparisons_p): Remove declaration.
1270 * recog.h (next_insn_tests_no_inequality): Likewise.
1271 * rtlanal.c (inequality_comparisons_p): Delete function.
1272 * recog.c (next_insn_tests_no_inequality): Likewise.
1274 2019-11-25 Richard Biener <rguenther@suse.de>
1276 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1277 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1278 properly re-building the visited hash-map for each lane.
1280 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1282 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1283 gcn_md_reorg): Remove unused variables.
1284 (gcn_emutls_var_init): Add missing (but unreachable) return
1286 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1287 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1288 an uninitialized variable.
1290 2019-11-25 Martin Jambor <mjambor@suse.cz>
1293 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1294 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1295 (cgraph_materialize_clone): Move removel from clone tree to the
1296 the new method and use it instead.
1297 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1298 bodies of clones, also remove it from the clone tree.
1300 2019-11-25 Martin Jambor <mjambor@suse.cz>
1303 * ipa-sra.c (process_isra_node_results): Put the new node to the
1304 same comdat group as the original node.
1306 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1308 Build double32 / long-double32 multilibs if needed.
1312 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1313 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1314 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1315 tm_defines and pass to genmultilib.awk.
1316 * config/avr/genmultilib.awk: Use these variables to add double32
1317 and / or long-double32 multilib(s) as needed.
1318 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1320 2019-11-25 Richard Biener <rguenther@suse.de>
1322 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1323 loop body, defaulted to NULL.
1324 (single_likely_exit): Add exit vector argument
1325 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1326 (number_of_iterations_exit): Likewise.
1327 (number_of_iterations_exit_assumptions): Likewise.
1328 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1330 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1331 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1332 Compute exit vector around call to single_likely_exit.
1333 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1334 loop body to loop_only_exit_p.
1335 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1337 (number_of_iterations_exit_assumptions): Get loop body from caller
1339 (number_of_iterations_exit): Pass through new loop body arg.
1340 (infer_loop_bounds_from_undefined): Get loop body from caller.
1341 (estimate_numbers_of_iterations): Compute loop body once.
1343 2019-11-25 Richard Biener <rguenther@suse.de>
1345 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1346 auto_bb_flag instead of an sbitmap for visited handling.
1348 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1350 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1352 (vector_fp_comparison_complex): Likewise.
1353 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1355 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1357 (vector_lt<mode> for VEC_F): Refactor with
1358 vector_fp_comparison_simple.
1359 (vector_le<mode> for VEC_F): Likewise.
1360 (vector_unge<mode> for VEC_F): Likewise.
1361 (vector_unle<mode> for VEC_F): Likewise.
1362 (vector_ne<mode> for VEC_F): Likewise.
1363 (vector_ungt<mode> for VEC_F): Likewise.
1364 (vector_unlt<mode> for VEC_F): Likewise.
1365 (vector_ltgt<mode> for VEC_F): Refactor with
1366 vector_fp_comparison_complex.
1367 (vector_ordered<mode> for VEC_F): Likewise.
1368 (vector_uneq<mode> for VEC_F): Likewise.
1369 (vector_unordered<mode> for VEC_F): Likewise.
1371 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1373 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1374 COMPARE, representing an overflow detection.
1376 * combine.c (combine_instructions): Record costs for jumps.
1378 * combine.c (can_combine_p): Allow autoinc in jumps.
1380 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1382 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1383 * doc/invoke.texi (max-inline-insns-single-O2,
1384 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1385 early-inlining-insns-O2): Remove documentation.
1386 * ipa-fnsummary.c (analyze_function_body,
1387 compute_fn_summary): Use opt_for_fn when accessing parameters.
1388 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1389 inline_insns_auto, can_inline_edge_by_limits_p,
1390 want_early_inline_function_p, big_speedup_p,
1391 want_inline_small_function_p, want_inline_self_recursive_call_p,
1392 recursive_inlining, compute_max_insns, inline_small_functions):
1394 * opts.c (default_options): Add -O3 defaults for
1395 OPT__param_early_inlining_insns_,
1396 OPT__param_inline_heuristics_hint_percent_,
1397 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1398 * params.opt (-param=early-inlining-insns-O2=,
1399 -param=inline-heuristics-hint-percent-O2=,
1400 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1401 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1402 -param=inline-min-speedup=, -param=inline-unit-growth=,
1403 -param=large-function-growth=, -param=large-stack-frame=,
1404 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1405 -param=max-inline-insns-recursive=,
1406 -param=max-inline-insns-recursive-auto=,
1407 -param=max-inline-insns-single=,
1408 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1409 -param=max-inline-recursive-depth=,
1410 -param=max-inline-recursive-depth-auto=,
1411 -param=min-inline-recursive-probability=,
1412 -param=partial-inlining-entry-probability=,
1413 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1414 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1417 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1419 * ipa-fnsummary.c: Fix comment typos.
1420 * ipa-ref.h: Likewise.
1421 * ipa-predicate.h: Likewise.
1422 * ipa-split.c: Likewise.
1423 * ipa-inline-analysis.c: Likewise.
1424 * ipa-predicate.c: Likewise.
1425 * ipa-devirt.c: Likewise.
1426 * ipa-icf.h: Likewise.
1427 * profile-count.c: Likewise.
1428 * ipa-icf.c: Likewise.
1429 (sem_function::equals_wpa): Fix typos in dump messages.
1430 * ipa-icf-gimple.h: Fix comment typos.
1431 * ipa-inline-transform.c: Likewise.
1432 * ipa-polymorphic-call.c: Likewise.
1433 * ipa-fnsummary.h: Likewise.
1434 * ipa-inline.c: Likewise.
1435 (dump_inline_stats): Fix typo in debug dump message.
1436 * profile-count.h: Fix comment typos.
1439 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1440 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1441 register_operand, force x into register before storing it into dest.
1445 * doc/extend.texi (attribute access): Fix a typo.
1447 PR rtl-optimization/92610
1448 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1449 cse_cfg_altered is set, even when tem is 0.
1450 (rest_of_handle_cse_after_global_opts): Likewise.
1452 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1455 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1456 tree_hash): Move to ...
1457 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1458 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1460 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1462 PR tree-optimization/92618
1463 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1464 containing the auto_vec and a tree.
1465 (undistribute_bitref_for_vector): Handle the case when element type
1466 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1469 2019-11-22 Martin Sebor <msebor@redhat.com>
1472 * attribs.h (struct attr_access): New.
1473 * attribs.c (decl_attributes): Add an informational note.
1474 * builtins.c (check_access): Make extern. Consistently set no-warning
1475 after issuing a warning. Handle calls through function pointers. Set
1477 * builtins.h (check_access): Declare.
1478 * calls.c (rdwr_access_hash): New type.
1480 (init_attr_rdwr_indices): New function.
1481 (maybe_warn_rdwr_sizes): Same.
1482 (initialize_argument_information): Call init_attr_rdwr_indices.
1483 Call maybe_warn_rdwr_sizes.
1484 (get_size_range): Avoid null argument.
1485 * doc/extend.texi (attribute access): Document new attribute.
1487 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1489 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1490 (ACC_LDS_SIZE): Define.
1491 (OTHER_LDS_SIZE): Define.
1492 (LDS_SIZE): Redefine using above.
1493 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1495 2019-11-22 Martin Sebor <msebor@redhat.com>
1498 * builtins.c (check_nul_terminated_array): New function.
1499 (fold_builtin_0): Remove declaration.
1500 (fold_builtin_1): Same.
1501 (fold_builtin_2): Same.
1502 (fold_builtin_3): Same.
1503 (fold_builtin_strpbrk): Add argument.
1504 (fold_builtin_strspn): Same.
1505 (fold_builtin_strcspn): Same.
1506 (expand_builtin_strcat): Call it. Remove unused argument.
1507 (expand_builtin_stpncpy): Same.
1508 (expand_builtin_strncat): Same.
1509 (expand_builtin_strncpy): Same. Adjust indentation.
1510 (expand_builtin_strcmp): Same.
1511 (expand_builtin_strncmp): Same.
1512 (expand_builtin_fork_or_exec): Same.
1513 (expand_builtin): Handle more built-ins.
1514 (fold_builtin_2): Add argument.
1515 (fold_builtin_n): Make static. Add argument.
1516 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1517 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1518 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1519 (fold_call_stmt): Pass new argument to fold_builtin_n.
1520 * builtins.h: Correct a comment.
1521 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1522 check_nul_terminated_array.
1523 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1524 check_nul_terminated_array.
1525 (handle_builtin_strchr): Same.
1526 (handle_builtin_string_cmp): Same.
1528 2019-11-22 Martin Sebor <msebor@redhat.com>
1530 PR tree-optimization/92501
1531 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1532 handle unterminated arrays. Rename local variables for clarity.
1534 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1536 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1537 granulated_sgprs according to architecture.
1539 2019-11-22 Jan Hubicka <jh@suse.cz>
1541 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1542 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1543 (memory_block_pool::reduce_free_list): ... this one.
1544 (memory_block_pool::trim): New static function.
1545 * memory-block.h (memory_block_pool::freelist_size): New constant
1546 (memory_block_pool::clear_free_list): Rename to ...
1547 (memory_block_pool::reduce_free_list): ... this one.
1548 (memory_block_pool::trim): Declare.
1550 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1552 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1554 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1556 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1558 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1560 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1561 (bic_cmp0_noout): New pattern.
1562 (bic_cmp0): Likewise.
1563 (neg_scc_insn): Remove pattern.
1564 (not_scc_insn): Likewise.
1566 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1568 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1570 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1572 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1573 pedwarn instead of warning_at for fallthrough not preceding a case
1576 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1578 PR tree-optimization/92608
1579 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1582 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1584 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1586 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1587 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1588 special for FP comparisons that need a cror instruction eventually.
1589 (rs6000_emit_fp_cror): New function.
1590 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1591 instruction, for normal FP modes, with HONOR_NANS.
1592 (rs6000_emit_cbranch): Reformat.
1593 * config/rs6000/rs6000.md (fp_rev): New iterator.
1594 (fp_two): New iterator.
1595 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1596 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1597 *cbranch_2insn: New define_insn_and_split.
1599 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1601 PR tree-optimization/92526
1602 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1603 versioning for alignment if the accesses do not have a consistent
1604 mask, rather than asserting that the masks are consistent.
1606 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1608 PR tree-optimization/92595
1609 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1611 (vectorizable_store, vectorizable_load): Likewise.
1613 2019-11-21 Jan Hubicka <jh@suse.cz>
1615 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1616 (resolve_noninline_speculation, inline_small_functions): Avoid
1619 2019-11-21 Richard Biener <rguenther@suse.de>
1621 * lra.c (lra_insn_recog_data_pool): New.
1622 (free_insn_recog_data): Adjust.
1623 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1624 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1626 2019-11-21 Richard Biener <rguenther@suse.de>
1628 PR tree-optimization/92596
1629 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1631 2019-11-21 Jan Hubicka <jh@suse.cz>
1633 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1634 ready for some vectors to not be allocated.
1635 (evaluate_properties_for_edge): Document better; make
1636 known_vals and known_aggs caller allocated; avoid determining
1637 values of parameters which are not used.
1638 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1640 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1641 (do_estimate_edge_size): Likewise.
1642 (do_estimate_edge_hints): Likewise.
1643 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1644 values are not known.
1645 (ipa_release_agg_values): Add option to not release vector itself.
1646 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1648 2019-11-21 Richard Biener <rguenther@suse.de>
1650 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1651 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1652 (loop_iterator::loop_iterator): Adjust.
1653 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1654 (compute_dominance_frontiers): ... this. Hoist invariant
1655 get_immediate_dominator call.
1656 (compute_idf): Use a work-set instead of a work-list for more
1657 optimal iteration order and duplicate avoidance.
1658 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1659 the vector all the time, instead pre-allocate the vector only
1661 (delete_update_ssa): Simplify.
1662 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1664 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1666 PR tree-optimization/91355
1667 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1668 for early_bb scaled count with best_bb count comparison.
1670 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1672 * ipa-inline.c (edge_badness): Likewise.
1673 * lto-streamer.h (class lto_location_cache): Likewise.
1674 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1675 gratutious -> gratuitous.
1677 2019-11-21 Richard Biener <rguenther@suse.de>
1680 2019-09-17 Richard Biener <rguenther@suse.de>
1682 PR tree-optimization/91790
1683 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1684 use the correct DR for setting up realignment.
1686 2019-11-21 Richard Biener <rguenther@suse.de>
1688 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1689 (equiv_class_obstack): New.
1690 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1691 (perform_var_substitution): Initialize equiv_class_obstack.
1692 (free_var_substitution_info): Free equiv_class_obstack.
1694 2019-11-20 Jan Hubicka <jh@suse.cz>
1696 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1697 edge growth when callee function is very large.
1698 * ipa-inline.h (estimate_min_edge_growth): New.
1700 2019-11-20 Jan Hubicka <jh@suse.cz>
1702 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1703 negative time in calls summary; correct roundoff errors
1704 leading to negative times.
1705 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1707 (ipa_update_overall_fn_summary): Add RESET parameter.
1708 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1709 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1711 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1713 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1714 def types for two-operation SLP.
1716 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1719 * doc/sourcebuild.texi (vect_char_add): Document.
1721 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1723 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1724 * function.c (record_final_call): Record even calls that might
1725 have been in the cgraph.
1726 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1729 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1731 * configure.ac: Use https for gcc.gnu.org
1732 * configure: Regenerated.
1733 * doc/install.texi: Use https for gcc.gnu.org.
1734 * doc/sourcebuild.texi: Likewise.
1736 2019-11-20 Julian Brown <julian@codesourcery.com>
1738 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1740 2019-11-20 Jan Hubicka <jh@suse.cz>
1742 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1743 parameter and update call_size_time_table.
1744 (ipa_fn_summary::max_size_time_table_size): New constant.
1745 (estimate_calls_size_and_time_1): Break out from ...
1746 (estimate_calls_size_and_time): ... here; implement summary production.
1747 (summarize_calls_size_and_time): New function.
1748 (ipa_call_context::estimate_size_and_time): Bypass
1749 estimate_calls_size_and_time for leaf functions.
1750 (ipa_update_overall_fn_summary): Likewise.
1751 * ipa-fnsummary.h (call_size_time_table): New.
1752 (ipa_fn_summary::account_size_time): Update prototype.
1754 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1756 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1758 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1761 * common.opt (fcommon): Change init to 1.
1762 * doc/invoke.texi (-fcommon): Update documentation.
1764 2019-11-20 Jan Hubicka <jh@suse.cz>
1766 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1769 2019-11-20 Jan Hubicka <jh@suse.cz>
1771 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1772 Add allocator parameter.
1773 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1774 (fibonacci_heap<K,V>::m_allocator): New.
1775 (fibonacci_heap<K,V>::m_own_allocator): New.
1776 (fibonacci_heap<K,V>::insert): Use allocator.
1777 (fibonacci_heap<K,V>::extract_min): Likewise.
1778 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1780 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1782 * fibonacci_heap.c: Include alloc-pool
1783 (test_empty_heap): Initialize allocator.
1784 (test_union): Likewise.
1785 * bb-reorder.c: Include alloc-pool.h.
1786 * tracer.c: Inlclude alloc-pool.h.
1788 2019-11-20 Jan Hubicka <jh@suse.cz>
1790 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1791 Preallocate for 32 entries.
1792 (DFS::worklist): Likewise.
1793 (DFS::DFS): Do not initialize sccstack and worklist.
1794 (DFS::~DFS): Do not release sccstack.
1796 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1799 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1800 Handle UNORDERED if !HONOR_NANS.
1802 2019-11-20 Jan Hubicka <jh@suse.cz>
1804 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1805 (edge_badness): ... here.
1806 (inline_small_functions): Use monotonicity of badness calculation
1807 to avoid redundant updates.
1809 2019-11-20 Richard Biener <rguenther@suse.de>
1811 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1812 constructors we are actually analyzing.
1813 (vect_slp_check_for_constructors): Do not vectorize uniform
1814 constuctors, do not dump here.
1816 2019-11-20 Richard Biener <rguenther@suse.de>
1818 PR tree-optimization/92537
1819 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1820 vectorization validity check...
1821 (vect_slp_analyze_operations): ... here.
1823 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1825 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1826 (make_pass_arc_predicate_delay_insns): Likewise.
1827 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1828 method, remove clone.
1829 (class pass_arc_predicate_delay_insns): Likewise.
1830 (arc_init): Remove registering of ARC specific passes.
1831 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1832 * config/arc/arc-passes.def: New file.
1834 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1837 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1838 and has a mode that doesn't have corresponding integral type.
1841 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1842 clear opts->x_ix86_isa_flags{,2} here...
1843 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1844 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1847 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1849 (insert_clobbers_for_var): Fix a typo in function comment.
1851 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1852 Jakub Jelinek <jakub@redhat.com>
1855 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1856 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1859 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1861 Make 0-series device specs work with older versions of avr-gcc.
1864 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1865 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1866 <*link_pm_base_address>: Don't write spec.
1867 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1869 2019-11-20 Richard Biener <rguenther@suse.de>
1872 * builtins.c (compute_objsize): Deal with VLAs.
1874 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1876 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1878 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1880 (power9_sched_reorder2): Call new function.
1881 (rs6000_sched_reorder2): Likewise.
1883 2019-11-18 Jan Hubicka <jh@suse.cz>
1885 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1886 (estimate_calls_size_and_time): Update.
1888 2019-11-18 Jan Hubicka <jh@suse.cz>
1890 * ipa-inline.c (inlining_speedup): New function.
1891 (edge_badness): Use it.
1893 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1894 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1896 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1897 Mark as not having "likely" version.
1898 * config/mips/mips.md (insn_count): The simd_div instruction with
1899 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1900 (can_delay): Exclude simd_branch.
1901 (defile_delay *): Add simd_branch instructions.
1902 They have one regular delay slot.
1904 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1907 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1909 * cse.c (cse_insn): Delete no-op register moves too.
1910 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1911 Take a second comparison to control the value for NE.
1912 (mask_to_comparison): Handle unsigned comparisons.
1913 (simplify_logical_relational_operation): Likewise. Update call
1914 to comparison_to_mask. Handle AND if !HONOR_NANs.
1915 (simplify_binary_operation_1): Call the above for AND too.
1917 2019-11-19 Martin Liska <mliska@suse.cz>
1919 * toplev.c (general_init): Move the call...
1920 (toplev::main): ... here as we need init_options_struct
1923 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1926 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1929 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1931 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1932 (armv7-a): Likewise.
1933 (armv7ve): Likewise.
1935 2019-11-19 Richard Biener <rguenther@suse.de>
1937 PR tree-optimization/92581
1938 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1939 condition reduction chains gather all conditions involved
1940 for computing the index reduction vector.
1942 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1944 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1945 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1946 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1947 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1948 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1949 (aarch64_init_memtag_builtins): New.
1950 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1951 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1952 (aarch64_expand_builtin_memtag): New.
1953 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1954 (AARCH64_BUILTIN_SUBCODE): New macro.
1955 (aarch64_resolve_overloaded_memtag): New.
1956 (aarch64_resolve_overloaded_builtin_general): New. Call
1957 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1958 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1959 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1960 (aarch64_resolve_overloaded_builtin): Call
1961 aarch64_resolve_overloaded_builtin_general.
1962 * config/aarch64/aarch64-protos.h
1963 (aarch64_resolve_overloaded_builtin_general): New declaration.
1964 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1965 (TARGET_MEMTAG): Likewise.
1966 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1967 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1968 (irg, gmi, subp, addg, ldg, stg): New instructions.
1969 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1970 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1971 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1972 (__arm_mte_get_tag): Likewise.
1973 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1974 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1975 * config/arm/types.md (memtag): New.
1976 * doc/invoke.texi (-memtag): Update description.
1978 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1980 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1981 to define __GCC_ASM_FLAG_OUTPUTS__.
1982 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1983 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1984 depending on TARGET_THUMB1.
1985 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1987 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1990 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1993 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1994 operand is negative and one non-negative, compare the non-negative
1995 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1996 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1997 and s2 == 0, unless one of them is known to be negative. Remove
1998 tem2 variable, use tem where tem2 has been used before.
2000 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
2002 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
2004 2019-11-19 Jakub Jelinek <jakub@redhat.com>
2006 PR tree-optimization/92557
2007 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
2008 vmode rather than asserting it always is.
2010 2019-11-19 Richard Biener <rguenther@suse.de>
2012 PR tree-optimization/92554
2013 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
2014 for the actual condition stmt and deal with sign-changes.
2016 2019-11-19 Richard Biener <rguenther@suse.de>
2018 PR tree-optimization/92555
2019 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
2022 2019-11-19 Martin Liska <mliska@suse.cz>
2025 * config/riscv/riscv.c (riscv_address_insns): Initialize
2026 addr in order to remove boostrap -Wmaybe-uninitialized
2029 2019-11-18 Martin Sebor <msebor@redhat.com>
2031 PR tree-optimization/92493
2032 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
2035 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
2037 * cfgloop.c (get_loop_body_in_custom_order): New.
2038 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
2039 * tree-loop-distribution.c (class loop_distribution): New.
2040 (bb_top_order_cmp): Remove.
2041 (bb_top_order_cmp_r): New.
2042 (create_rdg_vertices): Move into class loop_distribution.
2043 (stmts_from_loop): Same as above.
2044 (update_for_merge): Same as above.
2045 (partition_merge_into): Same as above.
2046 (get_data_dependence): Same as above.
2047 (data_dep_in_cycle_p): Same as above.
2048 (update_type_for_merge): Same as above.
2049 (build_rdg_partition_for-vertex): Same as above.
2050 (classify_builtin_ldst): Same as above.
2051 (classify_partition): Same as above.
2052 (share_memory_accesses): Same as above.
2053 (rdg_build_partitions): Same as above.
2054 (pg_add_dependence_edges): Same as above.
2055 (build_partition_graph): Same as above.
2056 (merge_dep_scc_partitions): Same as above.
2057 (break_alias_scc_partitions): Same as above.
2058 (finalize_partitions): Same as above.
2059 (distribute_loop): Same as above.
2060 (bb_top_order_init): New method
2061 (bb_top_order_destroy): New method.
2062 (get_bb_top_order_index_size): New method.
2063 (get_bb_top_order_index_index): New method.
2064 (get_bb_top_order_index_index): New method.
2065 (loop_distribution::execute): New method.
2066 (pass_loop_distribution::execute): Instantiate loop_distribution.
2068 2019-11-18 Jan Hubicka <jh@suse.cz>
2071 * ipa-inline.c (inline_small_functions): Add new edges after reseting
2073 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
2075 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2077 * doc/sourcebuild.texi (vect_check_ptrs): Document.
2078 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2079 * doc/md.texi: Document them.
2080 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2082 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2083 * internal-fn.c (check_ptrs_direct): New macro.
2084 (expand_check_ptrs_optab_fn): Likewise.
2085 (direct_check_ptrs_optab_supported_p): Likewise.
2086 (internal_check_ptrs_fn_supported_p): New fuction.
2087 * tree-data-ref.c: Include internal-fn.h.
2088 (create_ifn_alias_checks): New function.
2089 (create_intersect_range_checks): Use it.
2090 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2091 (optab, cmp_op): Handle it.
2092 (raw_war, unspec): New int attributes.
2093 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2095 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2097 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2099 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2102 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2104 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2107 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2109 * cse.c (cse_insn): Delete no-op register moves too.
2110 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2111 Take a second comparison to control the value for NE.
2112 (mask_to_comparison): Handle unsigned comparisons.
2113 (simplify_logical_relational_operation): Likewise. Update call
2114 to comparison_to_mask. Handle AND if !HONOR_NANs.
2115 (simplify_binary_operation_1): Call the above for AND too.
2117 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2119 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2120 splitting the main code out into...
2121 (native_encode_vector_part): ...this new function.
2122 (native_decode_vector_tree): New function.
2123 (fold_view_convert_vector_encoding): Likewise.
2124 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2127 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2129 * tree-data-ref.c (create_intersect_range_checks_index): If the
2130 alias pair describes simple WAW and WAR dependencies, just check
2131 whether the first B access overlaps later A accesses.
2132 (create_waw_or_war_checks): New function that performs the same
2133 optimization on addresses.
2134 (create_intersect_range_checks): Call it.
2136 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2138 * lra-constraints.c (valid_address_p): Take the operand and a
2139 constraint as argument. If the operand is a MEM and the constraint
2140 is a memory constraint, check whether the eliminated form of the
2141 MEM already satisfies the constraint.
2142 (process_address_1): Update calls accordingly.
2144 2019-11-18 Tom Tromey <tromey@adacore.com>
2146 * doc/tm.texi: Rebuild.
2147 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2148 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2150 2019-11-18 Richard Biener <rguenther@suse.de>
2152 PR tree-optimization/92516
2153 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2154 argument, hoist bst_map creation/destruction to ...
2155 (vect_analyze_slp): ... here, forming a true graph with
2156 SLP instances being the entries.
2157 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2158 (vect_detect_hybrid_slp): Use one visited set for all
2160 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2161 to hash-sets of slp_tree.
2162 (vect_slp_analyze_operations): Likewise.
2163 (vect_bb_slp_scalar_cost): Remove wrapper.
2164 (vect_bb_vectorization_profitable_p): Use one visited set for
2166 (vect_schedule_slp_instance): Elide bst_map use.
2167 (vect_schedule_slp): Likewise.
2169 2019-11-18 Richard Biener <rguenther@suse.de>
2171 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2172 was vectorized with just external refs fail.
2174 2019-11-18 Martin Liska <mliska@suse.cz>
2177 * ipa-icf.c (sem_function::init): Unset m_checker
2178 at the end of the function.
2180 2019-11-18 Richard Biener <rguenther@suse.de>
2182 PR tree-optimization/92558
2183 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2184 reducting the width of a reduction vector def update new_phis.
2186 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2188 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2189 and s390*-*-linux-musl* targets.
2190 * configure: Regenerate.
2192 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2194 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2195 (MUSL_DYNAMIC_LINKER64): Define.
2197 2019-11-18 Martin Liska <mliska@suse.cz>
2199 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2200 message for an unknown counter.
2201 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2202 (dbg_cnt_process_opt): Remove unreachable code.
2204 2019-11-18 Martin Liska <mliska@suse.cz>
2207 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2208 Compare LHS types of NOP_EXPR.
2210 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2212 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2213 "initial_pass_name" argument -- by running "*clean_state" pass.
2214 Also free the "initial_pass_name" when done.
2216 2019-11-18 Richard Biener <rguenther@suse.de>
2218 PR rtl-optimization/92462
2219 * alias.c (find_base_term): Restrict the look through ANDs.
2220 (find_base_value): Likewise.
2222 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2224 Add support for AVR devices from the 0-series.
2227 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2228 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2229 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2230 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2231 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2232 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2233 for spec definitions.
2234 * doc/avr-mmcu.texi: Regenerate.
2236 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2239 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2240 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2241 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2242 (ix86_reassociation_width): Ditto.
2243 * config/i386/i386-options.c (ix86_option_override_internal):
2244 Replace TARGET_AVX128_OPTIAML with
2245 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2246 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2247 (TARGET_AVX128_OPTIMAL): Deleted.
2248 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2251 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2253 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2254 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2256 (cceq_rev_compare): Rename to...
2257 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2259 (define_split for <bd>tf_<mode>): Add SImode first argument to
2260 gen_cceq_ior_compare.
2262 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2264 * common/config/powerpcspe: Delete.
2266 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2268 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2269 output in UNSPEC_WRFFR.
2271 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2273 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2274 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2276 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2278 * tree-data-ref.c (create_intersect_range_checks_index)
2279 (create_intersect_range_checks): Print dump messages.
2281 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2283 * tree-data-ref.c (dump_alias_pair): New function.
2284 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2286 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2288 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2289 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2290 merging data references with different steps.
2291 (create_intersect_range_checks_index): Take a
2292 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2293 Bail out if DR_ALIAS_MIXED_STEPS is set.
2294 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2295 instead of two dr_with_seg_lens. Update call to
2296 create_intersect_range_checks_index.
2297 (create_runtime_alias_checks): Update call accordingly.
2299 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2301 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2302 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2303 (dr_with_seg_len_pair_t::sequencing): New enum.
2304 (dr_with_seg_len_pair_t::flags): New member variable.
2305 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2306 parameter and initialize the flags member variable.
2307 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2309 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2310 Ensure the two data references in an alias pair are in statement
2311 order, if there is a defined order.
2312 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2313 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2314 swapped the references in a dr_with_seg_len_pair_t. OR together
2315 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2316 try to restore the original dr_with_seg_len order, updating the
2317 flags if that fails.
2319 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2321 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2322 swapping the dr_as based on init values until we've decided
2323 whether to merge them.
2325 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2327 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2328 two accesses in each dr_with_seg_len_pair_t before trying to
2329 combine separate dr_with_seg_len_pair_ts.
2330 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2332 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2334 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2336 * config/aarch64/aarch64-sve.md
2337 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2338 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2339 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2340 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2341 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2342 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2343 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2345 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2346 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2347 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2348 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2350 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2352 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2353 (SVE_4HSI): New mode iterators.
2354 (ANY_EXTEND2): New code iterator.
2355 * config/aarch64/aarch64-sve.md
2356 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2358 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2359 ...this, handling extension to partial modes as well as full modes.
2360 Describe the extension as a predicated rather than unpredicated
2362 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2363 Likewise extend to...
2364 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2365 ...this, making the same adjustments.
2366 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2367 Likewise extend to...
2368 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2369 ...this, making the same adjustments.
2370 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2371 Likewise extend to...
2372 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2373 ...this, making the same adjustments.
2374 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2376 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2377 extension predicate.
2378 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2379 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2380 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2381 Describe the extension as a predicated rather than unpredicated
2383 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2384 Likewise. Canonicalize to a constant extension predicate.
2385 * config/aarch64/aarch64-sve-builtins-base.cc
2386 (svld1_gather_extend_impl::expand): Add an extra predicate for
2388 (svldff1_gather_extend_impl::expand): Likewise.
2390 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2392 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2394 * config/aarch64/aarch64-sve.md
2395 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2396 (gather_load<SVE_24:mode><v_int_container>): ...this.
2397 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2398 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2399 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2400 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2401 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2403 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2404 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2405 Allow the nominal extension predicate to be different from the
2407 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2408 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2410 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2412 * config/aarch64/aarch64-sve.md
2413 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2414 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2416 (aarch64_sve_adjust_stmt_cost): Call it.
2418 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2420 * config/aarch64/aarch64-sve.md
2421 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2422 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2423 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2425 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2426 ...this new pattern, handling extension to partial modes as well
2427 as full modes. Describe the extension as a predicated rather than
2428 unpredicated extension.
2429 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2430 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2431 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2433 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2434 ...this new pattern, handling extension to partial modes as well
2435 as full modes. Describe the extension as a predicated rather than
2436 unpredicated extension.
2437 * config/aarch64/aarch64-sve-builtins.cc
2438 (function_expander::use_contiguous_load_insn): Add an extra
2439 predicate for extending loads.
2440 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2441 (aarch64_sve_adjust_stmt_cost): Likewise.
2442 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2443 the cost of SVE vector stmts.
2445 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2447 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2448 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2449 * config/aarch64/aarch64-sve.md
2450 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2451 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2452 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2453 comment. Avoid new narrower_mask ambiguity.
2454 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2455 (*cond_uxt<mode>_2): Update comment.
2456 (*cond_uxt<mode>_any): Likewise.
2458 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2460 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2462 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2464 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2465 new vector float modes.
2466 (aarch64_sve_container_bits): New function.
2467 (aarch64_sve_pred_mode): Likewise.
2468 (aarch64_get_mask_mode): Use it.
2469 (aarch64_sve_element_int_mode): Handle structure modes and partial
2471 (aarch64_sve_container_int_mode): New function.
2472 (aarch64_vectorize_related_mode): Return SVE modes when given
2473 SVE modes. Handle partial modes, taking the preferred number
2474 of units from the size of the given mode.
2475 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2477 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2478 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2479 (aarch64_split_sve_subreg_move): Use the mode form of
2480 aarch64_sve_pred_mode.
2481 (aarch64_secondary_reload): Handle partial modes in the same way
2482 as full big-endian vectors.
2483 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2484 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2485 merging with the Advanced SIMD modes. If two modes have the
2486 same size, try the Advanced SIMD mode first.
2487 (aarch64_simd_valid_immediate): Use the container rather than
2488 the element mode for INDEX constants.
2489 (aarch64_simd_vector_alignment): Make the alignment of partial
2490 SVE vector modes the same as their minimum size.
2491 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2492 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2493 (mov<SVE_ALL:mode>): ...this.
2494 (movmisalign<SVE_FULL:mode>): Extend to...
2495 (movmisalign<SVE_ALL:mode>): ...this.
2496 (*aarch64_sve_mov<mode>_le): Rename to...
2497 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2498 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2499 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2500 partial modes regardless of endianness.
2501 (aarch64_sve_reload_be): Rename to...
2502 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2503 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2504 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2505 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2506 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2507 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2508 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2509 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2510 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2511 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2512 (maskload<SVE_FULL:mode><vpred>): Extend to...
2513 (maskload<SVE_ALL:mode><vpred>): ...this.
2514 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2515 (maskstore<SVE_ALL:mode><vpred>): ...this.
2516 (vec_duplicate<SVE_FULL:mode>): Extend to...
2517 (vec_duplicate<SVE_ALL:mode>): ...this.
2518 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2519 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2520 (sve_ld1r<SVE_FULL:mode>): Extend to...
2521 (sve_ld1r<SVE_ALL:mode>): ...this.
2522 (vec_series<SVE_FULL_I:mode>): Extend to...
2523 (vec_series<SVE_I:mode>): ...this.
2524 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2525 (*vec_series<SVE_I:mode>_plus): ...this.
2526 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2527 new VPRED ambiguity.
2528 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2529 (add<SVE_FULL_I:mode>3): Extend to...
2530 (add<SVE_I:mode>3): ...this.
2531 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2532 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2533 (VPRED, vpred): Likewise.
2534 (Vctype): New iterator.
2535 (vw): Remove SVE modes.
2537 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2539 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2540 (SVE_PARTIAL_I): ...this.
2541 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2543 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2545 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2546 (SVE_FULL): ...this.
2547 (SVE_I): Rename to...
2548 (SVE_FULL_I): ...this.
2549 (SVE_F): Rename to...
2550 (SVE_FULL_F): ...this.
2551 (SVE_BHSI): Rename to...
2552 (SVE_FULL_BHSI): ...this.
2553 (SVE_HSD): Rename to...
2554 (SVE_FULL_HSD): ...this.
2555 (SVE_HSDI): Rename to...
2556 (SVE_FULL_HSDI): ...this.
2557 (SVE_HSF): Rename to...
2558 (SVE_FULL_HSF): ...this.
2559 (SVE_SD): Rename to...
2560 (SVE_FULL_SD): ...this.
2561 (SVE_SDI): Rename to...
2562 (SVE_FULL_SDI): ...this.
2563 (SVE_SDF): Rename to...
2564 (SVE_FULL_SDF): ...this.
2565 (SVE_S): Rename to...
2566 (SVE_FULL_S): ...this.
2567 (SVE_D): Rename to...
2568 (SVE_FULL_D): ...this.
2569 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2570 * config/aarch64/aarch64-sve2.md: Likewise.
2572 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2574 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2576 * doc/invoke.texi: Document it.
2577 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2578 By default, return VECT_COMPARE_COSTS for SVE.
2580 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2582 * target.h (VECT_COMPARE_COSTS): New constant.
2583 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2584 * doc/tm.texi: Regenerate.
2585 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2586 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2587 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2589 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2590 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2591 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2592 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2593 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2594 (_loop_vec_info::vec_inside_cost): New member variables.
2595 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2596 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2597 (vect_analyze_loop): When autovectorize_vector_modes returns
2598 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2599 vector mode and picking the one with the lowest cost.
2600 (vect_estimate_min_profitable_iters): Record the computed costs
2601 in the loop_vec_info.
2603 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2605 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2606 element type rather than an element mode.
2607 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2608 Use get_vectype_for_scalar_type to query the natural types
2609 for a given element type rather than basing everything on
2610 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2611 query to MAX_FIXED_MODE_SIZE.
2612 (duplicate_and_interleave): Update call accordingly.
2613 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2615 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2617 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2618 optional maximum nunits.
2619 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2621 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2622 (vect_get_mask_type_for_stmt): Likewise.
2623 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2624 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2625 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2626 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2627 to get an assumed vector type for data references.
2628 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2629 (vect_update_all_shared_vectypes): Likewise.
2630 (vect_build_slp_tree_1): Pass the group size to
2631 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2632 for BB vectorization.
2633 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2634 before building the vectof from scalars.
2635 (vect_analyze_slp_instance): Pass the group size to
2636 get_vectype_for_scalar_type.
2637 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2638 types for BB vectorization here; just handle the case in which
2639 we deferred the choice for booleans.
2640 (vect_get_constant_vectors): Pass the slp_tree to
2641 get_vectype_for_scalar_type.
2642 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2643 (vectorizable_call): Likewise.
2644 (vectorizable_simd_clone_call): Likewise.
2645 (vectorizable_conversion): Likewise.
2646 (vectorizable_shift): Likewise.
2647 (vectorizable_operation): Likewise.
2648 (vectorizable_comparison): Likewise.
2649 (vect_is_simple_cond): Take the slp_tree as argument and
2650 pass it to get_vectype_for_scalar_type.
2651 (vectorizable_condition): Update call accordingly.
2652 (get_vectype_for_scalar_type): Take a group_size argument.
2653 For BB vectorization, limit the the vector to that number
2654 of elements. Also define an overload that takes an slp_tree.
2655 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2656 pass it to get_vectype_for_scalar_type.
2657 (vect_get_vector_types_for_stmt): Add a group_size argument
2658 and pass it to get_vectype_for_scalar_type. Don't use the
2659 cached vector type for BB vectorization if a group size is given.
2660 Handle data references in that case.
2661 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2662 pass it to get_mask_type_for_scalar_type.
2664 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2666 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2668 (estimate_edge_time): Use it.
2669 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2670 ret_nonspec_time parameter.
2672 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2674 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2676 2019-11-15 Nick Clifton <nickc@redhat.com>
2677 Szabolcs Nagy <szabolcs.nagy@arm.com>
2680 * config/microblaze/microblaze.c (print_operand): Print value as long.
2682 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2684 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2687 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2689 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2690 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2692 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2694 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2695 (gcn_conditional_register_usage): Use constants in place of hard-coded
2697 (gcn_hsa_declare_function_name): Set lower bound for number of
2698 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2699 MAX_NORMAL_VGPR_COUNT.
2701 2019-11-15 Martin Jambor <mjambor@suse.cz>
2703 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2706 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2708 * config/gcn/gcn.c (default_requested_args): New.
2709 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2710 set with default_requested_args.
2711 (gcn_conditional_register_usage): Limit register usage of non-kernel
2712 functions. Reassign fixed registers if a non-standard set of args is
2714 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2716 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2719 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2720 aggregate jump function when inlined-to caller has no edge summary.
2722 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2724 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2726 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2728 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2730 (print_operand_address): Use v1 for zero vector offset.
2732 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2734 PR tree-optimization/92515
2735 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2736 types when converting a vector/scalar shift into a vector/vector one,
2737 using tree_nop_conversion_p instead of useless_type_conversion_p.
2738 Move the conversion code to the transform block.
2740 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2742 * read-rtl-function.c
2743 (function_reader::add_fixup_source_location): Take additional
2744 parameter of a column.
2745 (function_reader::maybe_read_location): Optionally parse column
2746 information and pass to add_fixup_source_location.
2748 2019-11-15 Richard Biener <rguenther@suse.de>
2750 PR tree-optimization/92512
2751 * tree-vect-loop.c (check_reduction_path): Fix operand index
2752 computability check. Add check for second use in COND_EXPRs.
2754 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2757 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2758 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2760 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2762 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2763 register class for VCC_LO and VCC_HI.
2764 (gcn_spill_class): Use SGPR_REGS to spill registers in
2765 VCC_CONDITIONAL_REG.
2767 2019-11-15 Richard Biener <rguenther@suse.de>
2769 PR tree-optimization/92324
2770 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2771 singedness of SLP reduction epilouge operations. Also reduce
2772 the vector width for SLP reductions before doing elementwise
2773 operations if possible.
2775 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2777 * passes.c (skip_pass): Set epilogue_completed if skipping the
2778 pro_and_epilogue pass.
2780 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2782 * passes.c (should_skip_pass_p): Always run "dfinish".
2784 2019-11-15 Richard Biener <rguenther@suse.de>
2786 * ipa-inline.c (inline_small_functions): Move assignment
2787 to next before call destroying edge.
2789 2019-11-15 Richard Biener <rguenther@suse.de>
2791 PR tree-optimization/92039
2792 PR tree-optimization/91975
2793 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2794 previous change, treat invariants consistently as non-constant.
2795 (tree_estimate_loop_size): Ternary ops with just the first op
2796 constant are not optimized away.
2798 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2800 * gimplify.c (gimplify_call_expr): Don't call
2801 omp_resolve_declare_variant after gimplification.
2802 * omp-general.c (omp_context_selector_matches): For isa that might
2803 match in some other function, defer if in declare simd function.
2804 (omp_context_compute_score): Don't look for " score" in construct
2805 trait set. Set *score to -1 if it can't ever match.
2806 (omp_resolve_declare_variant): If any variants need to be deferred,
2807 don't punt immediately, but compute scores of all variants and if
2808 ther eis a score winner that doesn't need to be deferred, return that.
2810 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2812 * ipa-comdats.c: Fix comments typo.
2813 * ipa-profile.c: Fix comments typo.
2814 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2815 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2816 (gimple_gen_ic_func_profiler): Likewise.
2817 (pass_ipa_tree_profile::gate): Fix comments typo.
2819 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2821 * ipa-inline.c (inline_small_functions): Update iterator of next.
2823 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2825 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2826 register is suitable for the mode.
2828 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2830 * range-op.h (range_operator::fold_range): Return a bool.
2831 * range-op.cc (range_operator::wi_fold): Assert supported type.
2832 (range_operator::fold_range): Assert supported type and return true.
2833 (operator_equal::fold_range): Return true.
2834 (operator_not_equal::fold_range): Same.
2835 (operator_lt::fold_range): Same.
2836 (operator_le::fold_range): Same.
2837 (operator_gt::fold_range): Same.
2838 (operator_ge::fold_range): Same.
2839 (operator_plus::op1_range): Adjust call to fold_range.
2840 (operator_plus::op2_range): Same.
2841 (operator_minus::op1_range): Same.
2842 (operator_minus::op2_range): Same.
2843 (operator_exact_divide::op1_range): Same.
2844 (operator_lshift::fold_range): Return true and adjust fold_range call.
2845 (operator_rshift::fold_range): Same.
2846 (operator_cast::fold_range): Return true.
2847 (operator_logical_and::fold_range): Same.
2848 (operator_logical_or::fold_range): Same.
2849 (operator_logical_not::fold_range): Same.
2850 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2851 (operator_bitwise_not::op1_range): Same.
2852 (operator_cst::fold_range): Return true.
2853 (operator_identity::fold_range): Return true.
2854 (operator_negate::fold_range): Return true and adjust fold_range call.
2855 (operator_addr_expr::fold_range): Return true.
2856 (operator_addr_expr::op1_range): Adjust call to fold_range.
2858 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2859 (range_fold_unary_symbolics_p): Same.
2861 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2863 PR tree-optimization/92506
2864 * range-op.cc (range_operator::fold_range): Start with range undefined.
2865 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2866 overflow is varying.
2868 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2870 * range-op.cc (*operator*::*range): Remove calls to
2871 range_intersect, range_invert, and range_union in favor of calling
2872 the in-place API methods.
2873 (range_tests): Same.
2874 * range.cc (range_intersect): Remove.
2875 (range_union): Remove.
2876 (range_invert): Remove.
2877 * range.h (range_intersect): Remove.
2878 (range_union): Remove.
2879 (range_intersect): Remove.
2881 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2883 PR rtl-optimization/92430
2884 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2885 (pass_jump_after_combine::execute): Perform jump threading
2888 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2889 Doug Rupp <rupp@adacore.com>
2890 Olivier Hainque <hainque@adacore.com>
2892 * config.gcc: Collapse the arm-vxworks entries into
2893 a single arm-wrs-vxworks7* one, bpabi based. Update
2894 the default cpu from arm8 to armv7-a
2895 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2896 we always use ARM_UNWIND_INFO.
2897 (DWARF2_UNWIND_INFO): Remove redefinition.
2898 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2899 (VXWORKS_PERSONALITY): Define, to "llvm".
2900 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2902 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2904 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2905 _VX_CPU instead of CPU and handle arm_arch8.
2907 2019-11-14 Doug Rupp <rupp@adacore.com>
2908 Olivier Hainque <hainque@adacore.com>
2909 Jerome Lambourg <lambourg@adacore.com>
2911 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2912 * config/aarch64/aarch64-vxworks.h: New file.
2913 * config/aarch64/t-aarch64-vxworks: New file.
2915 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2916 Olivier Hainque <hainque@adacore.com>
2918 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2919 definition, pointless with a VxWorks specific version
2921 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2922 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2923 New local macros, controlling the addition of vxworks specific
2924 crtstuff objects depending on the EH mechanism and kind of
2925 module being linked.
2926 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2928 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2929 Jerome Lambourg <lambourg@adacore.com>
2930 Olivier Hainque <hainque@adacore.com>
2932 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2933 common macro definitions, conveying VXWORKS7 or 64bit general
2934 variations. Add a block to set gcc_cv_initfini_array
2935 unconditionally to "yes" for VxWorks7.
2936 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2937 by default. Update some comments.
2938 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2939 default, to be added the end of VXWORKS_LIBS_RTP.
2940 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2941 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2943 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2944 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2945 to account for the now available TLS abilities.
2946 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2947 (VXWORKS_HAVE_TLS): Likewise.
2949 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2951 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2952 (vect_slp_convert_to_external): Likewise.
2953 (vect_slp_analyze_node_operations): If analysis fails, try building
2954 the node from scalars instead.
2956 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2958 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2959 between vector types.
2960 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2961 non-widening and non-narrowing path to handle standard
2962 conversion codes, if the target supports them.
2963 * expr.c (convert_move): Try using the extend and truncate optabs
2965 * optabs-tree.c (supportable_convert_operation): Likewise.
2966 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2967 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2968 (trunc<mode><Vnarrowq>2): New patterns.
2970 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2972 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2973 require vectype and nunits_vectype to have the same size;
2974 instead assert that nunits_vectype has at least as many
2975 elements as vectype. Don't compute a separate nunits_vectype
2976 if the scalar type is obviously the same as vectype's.
2977 Tweak dump messages.
2979 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2981 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2983 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2984 (TARGET_VECTORIZE_RELATED_MODE): Define.
2986 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2988 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2989 (vec_info::used_vector_mode): New member variable.
2990 (vect_chooses_same_modes_p): Declare.
2991 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2992 chosen vector mode in vec_info::used_vector_mode.
2993 (vect_chooses_same_modes_p): New function.
2994 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2995 the same vector statements multiple times.
2996 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2998 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3000 * machmode.h (opt_machine_mode::operator==): New function.
3001 (opt_machine_mode::operator!=): Likewise.
3002 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
3003 (get_related_vectype_for_scalar_type): Delete.
3004 (get_vectype_for_scalar_type_and_size): Declare.
3005 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
3006 whether analysis passed or failed, and with what vector modes.
3007 Use related_vector_mode to check whether trying a particular
3008 vector mode would be redundant with the autodetected mode,
3009 and print a dump message if we decide to skip it.
3010 * tree-vect-loop.c (vect_analyze_loop): Likewise.
3011 (vect_create_epilog_for_reduction): Use
3012 get_related_vectype_for_scalar_type instead of
3013 get_vectype_for_scalar_type_and_size.
3014 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
3016 (get_related_vectype_for_scalar_type): ...this new function.
3017 Take a starting/"prevailing" vector mode rather than a vector size.
3018 Take an optional nunits argument, with the same meaning as for
3019 related_vector_mode. Use related_vector_mode when not
3020 auto-detecting a mode, falling back to mode_for_vector if no
3022 (get_vectype_for_scalar_type): Update accordingly.
3023 (get_same_sized_vectype): Likewise.
3024 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
3026 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3028 * tree-vect-stmts.c (vectorizable_call): Require the types
3029 to have the same size.
3031 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3033 * tree-vect-stmts.c (vectorizable_call): If an operand is
3034 constant or external, use get_vectype_for_scalar_type
3035 rather than get_same_sized_vectype to get its vector type.
3036 (vectorizable_conversion, vectorizable_shift): Likewise.
3037 (vectorizable_operation): Likewise.
3039 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3041 * tree-vectorizer.h (vec_info::vector_size): Replace with...
3042 (vec_info::vector_mode): ...this new field.
3043 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
3044 (vect_analyze_loop, vect_transform_loop): Likewise.
3045 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
3046 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
3047 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
3048 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
3049 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
3051 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3053 * target.h (vector_sizes, auto_vector_sizes): Delete.
3054 (vector_modes, auto_vector_modes): New typedefs.
3055 * target.def (autovectorize_vector_sizes): Replace with...
3056 (autovectorize_vector_modes): ...this new hook.
3057 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
3059 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
3060 * doc/tm.texi: Regenerate.
3061 * targhooks.h (default_autovectorize_vector_sizes): Delete.
3062 (default_autovectorize_vector_modes): New function.
3063 * targhooks.c (default_autovectorize_vector_sizes): Delete.
3064 (default_autovectorize_vector_modes): New function.
3065 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
3066 of autovectorize_vector_sizes. Use the number of units in the mode
3067 to calculate the maximum VF.
3068 * omp-low.c (omp_clause_aligned_alignment): Use
3069 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3070 Use a loop based on related_mode to iterate through all supported
3071 vector modes for a given scalar mode.
3072 * optabs-query.c (can_vec_mask_load_store_p): Use
3073 autovectorize_vector_modes instead of autovectorize_vector_sizes.
3074 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
3075 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
3076 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
3078 (aarch64_autovectorize_vector_modes): ...this new function.
3079 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3080 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3081 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3082 (arc_autovectorize_vector_modes): ...this new function.
3083 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3084 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3085 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3086 (arm_autovectorize_vector_modes): ...this new function.
3087 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3088 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3089 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3090 (ix86_autovectorize_vector_modes): ...this new function.
3091 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3092 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3093 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3094 (mips_autovectorize_vector_modes): ...this new function.
3095 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3096 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3098 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3100 * tree-vect-stmts.c (vectorizable_shift): Check the number
3101 of vector elements as well as the type mode when deciding
3102 whether an op1_vectype is compatible. Reuse the result of
3103 this check when generating vector statements.
3105 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3107 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3108 targetm.vectorize.preferred_simd_mode returns an integer mode,
3109 use mode_for_vector to decide what the vector type's mode
3110 should actually be. Use build_vector_type_for_mode instead
3111 of build_vector_type.
3113 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3115 * target.def (get_mask_mode): Take a vector mode itself as argument,
3116 instead of properties about the vector mode.
3117 * doc/tm.texi: Regenerate.
3118 * targhooks.h (default_get_mask_mode): Update to reflect new
3119 get_mode_mask interface.
3120 * targhooks.c (default_get_mask_mode): Likewise. Use
3121 related_int_vector_mode.
3122 * optabs-query.c (can_vec_mask_load_store_p): Update call
3124 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3125 first that the original mode really is a vector.
3126 * tree.c (build_truth_vector_type_for): Likewise.
3127 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3128 get_mode_mask interface.
3129 (aarch64_expand_sve_vcond): Update call accordingly.
3130 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3131 get_mode_mask interface.
3132 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3134 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3136 * tree.h (build_truth_vector_type): Delete.
3137 (build_same_sized_truth_vector_type): Likewise.
3138 * tree.c (build_truth_vector_type): Rename to...
3139 (build_truth_vector_type_for): ...this. Make static and take
3140 a vector type as argument.
3141 (truth_type_for): Update accordingly.
3142 (build_same_sized_truth_vector_type): Delete.
3143 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3144 instead of build_same_sized_truth_vector_type.
3145 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3146 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3147 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3148 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3149 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3150 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3151 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3152 (vectorizable_store, vectorizable_condition): Likewise.
3153 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3154 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3155 build_truth_vector_type.
3156 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3157 Use truth_type_for instead of build_same_sized_truth_vector_type.
3158 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3160 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3162 * tree.h (build_truth_vector_type_for_mode): Declare.
3163 * tree.c (build_truth_vector_type_for_mode): New function,
3165 (build_truth_vector_type): ...here.
3166 (build_opaque_vector_type): Fix head comment.
3167 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3169 (vect_halve_mask_nunits): Replace vec_info parameter with the
3170 mode of the new vector.
3171 (vect_double_mask_nunits): Likewise.
3172 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3173 (vect_double_mask_nunits): Likewise.
3174 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3175 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3176 to vect_halve_mask_nunits, getting the required mode from the unpack
3178 (vect_set_loop_condition_masked): Update call accordingly.
3179 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3180 parameter and update call to vect_double_mask_nunits.
3181 (vectorizable_conversion): Update call accordingly.
3182 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3183 (vectorizable_call): Update call accordingly.
3184 (supportable_widening_operation): Update call to
3185 vect_halve_mask_nunits.
3186 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3187 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3189 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3191 * machmode.h (mode_for_int_vector): Delete.
3192 (related_int_vector_mode): Declare.
3193 * stor-layout.c (mode_for_int_vector): Delete.
3194 (related_int_vector_mode): New function.
3195 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3196 instead of mode_for_int_vector.
3197 (expand_vec_perm_const): Likewise.
3198 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3199 (aarch64_evpc_sve_tbl): Likewise.
3200 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3201 (s390_expand_vcond): Likewise.
3203 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3205 * target.def (related_mode): New hook.
3206 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3207 * doc/tm.texi: Regenerate.
3208 * targhooks.h (default_vectorize_related_mode): Declare.
3209 * targhooks.c (default_vectorize_related_mode): New function.
3210 * machmode.h (related_vector_mode): Declare.
3211 * stor-layout.c (related_vector_mode): New function.
3212 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3213 * optabs-query.c (qimode_for_vec_perm): Likewise.
3214 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3215 (vectorizable_store, vectorizable_load): Likewise
3217 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3219 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3220 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3221 * config/arm/arm-c.c (arm_cpu_builtins): Define
3222 __GCC_ASM_FLAG_OUTPUTS__.
3223 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3224 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3225 Define __GCC_ASM_FLAG_OUTPUTS__.
3226 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3227 * doc/extend.texi (FlagOutputOperands): Add documentation
3228 for ARM and AArch64.
3230 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3231 * config/arm/predicates.md (nz_comparison_operator): Rename
3232 from noov_comparison_operator.
3233 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3234 (arm_gen_dicompare_reg): Likewise.
3235 (maybe_get_arm_condition_code): Likewise.
3236 (thumb1_final_prescan_insn): Likewise.
3237 (arm_emit_coreregs_64bit_shift): Likewise.
3238 * config/arm/arm.md (addsi3_compare0): Likewise.
3239 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3240 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3241 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3242 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3243 (*mulsi3addsi_compare0_scratch): Likewise.
3244 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3245 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3246 (*zeroextractsi_compare0_scratch): Likewise.
3247 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3248 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3249 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3250 (andsi_not_shiftsi_si_scc): Likewise.
3251 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3252 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3253 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3254 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3255 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3256 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3257 (return_addr_mask, *check_arch2): Likewise.
3258 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3259 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3260 (compare_scc splitters): Likewise.
3261 (movcond_addsi): Likewise.
3262 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3263 (*thumb2_addsi3_compare0_scratch): Likewise.
3264 (*thumb2_mulsi_short_compare0): Likewise.
3265 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3266 (compare peephole2s): Likewise.
3267 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3268 nz_comparison_operator names.
3269 (cbranchsi4_insn): Likewise.
3271 * config/arm/constraints.md (c): Use cc_register predicate.
3273 * config/aarch64/constraints.md (c): New constraint.
3275 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3277 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3278 ipa_merge_fn_summary_after_inlining): Micro optimize.
3280 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3282 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3284 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3286 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3287 (ipa_value_range_from_jfunc): New function.
3288 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3289 known_value_ranges parameter; use it to evalulate conditions.
3290 (evaluate_properties_for_edge): Compute known value ranges.
3291 (ipa_fn_summary_t::duplicate): Update use of
3292 evaluate_conditions_for_known_args.
3293 (estimate_ipcp_clone_size_and_time): Likewise.
3294 (ipa_merge_fn_summary_after_inlining): Likewise.
3295 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3297 2019-11-14 Martin Liska <mliska@suse.cz>
3299 * ipa-inline.c (want_inline_small_function_p): Use
3300 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3301 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3303 2019-11-14 Martin Liska <mliska@suse.cz>
3305 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3306 of a callee to get value of the param.
3307 * ipa-inline.c (inline_insns_auto): Use proper
3309 * opts.c (maybe_default_option): Do not overwrite param
3310 value if optimization level does not match. Note that
3311 params usually have default value set via Init() keyword.
3312 * params.opt: Remove -param=max-inline-insns-auto-O2.
3313 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3314 * doc/invoke.texi: Remove documentation of
3315 max-inline-insns-auto-O2.
3317 2019-11-14 Martin Liska <mliska@suse.cz>
3319 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3320 Do not initialize m_other_count.
3321 (switch_conversion::collect): Do not count m_default_count and
3322 m_other_count as we use frequencies for edges.
3323 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3325 2019-11-14 Martin Liska <mliska@suse.cz>
3328 * doc/invoke.texi: Document -fallocation-dce.
3330 2019-11-14 Martin Liska <mliska@suse.cz>
3333 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3334 PTA_ICELAKE_CLIENT which is later interited by
3335 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3337 2019-11-14 Martin Liska <mliska@suse.cz>
3339 * ipa-icf.c (sem_item_optimizer::execute): Save
3341 (sem_item_optimizer::parse_nonsingleton_classes):
3342 Return number of loaded symbols.
3343 (sem_item_optimizer::merge_classes): Print
3344 statistics about totally needed symbols.
3345 * ipa-icf.h (parse_nonsingleton_classes): Change return
3347 (merge_classes): Add one argument.
3349 2019-11-14 Martin Liska <mliska@suse.cz>
3351 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3352 func_checker::hash_operand by handling of FIELD_DECLs.
3354 2019-11-14 Martin Liska <mliska@suse.cz>
3356 * ipa-icf-gimple.h (func_checker::func_checker): Add
3357 default constructor.
3358 * ipa-icf.c (sem_function::init): Make operand_equal_p
3359 and hash_operand public.
3360 (sem_item::add_expr): Remove.
3361 (sem_item::add_type): Remove.
3362 (sem_function::hash_stmt): Use m_checker for hashing
3363 of GIMPLE statements.
3364 (sem_function::parse): Init with checker.
3365 (sem_variable::parse): Pass NULL as checker.
3366 (sem_item_optimizer::parse_funcs_and_vars):
3367 Pass checker to ::parse function.
3368 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3369 (sem_variable::parse): New function.
3370 (sem_variable::get_hash): Only return computed hash value.
3371 (sem_variable::init): Initialize hash of a variable.
3372 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3373 to couple of functions as a new argument.
3375 2019-11-14 Martin Liska <mliska@suse.cz>
3377 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3379 (func_checker::compare_gimple_assign): Likewise.
3381 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3383 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3384 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3385 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3387 * omp-general.c (omp_context_name_list_prop): New function.
3388 (omp_context_selector_matches): Use it. Return 0 if it returns
3390 (omp_context_selector_props_compare): Allow equivalency of an
3391 identifier and a string literal containing no embedded zeros.
3393 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3395 * range-op.cc (RANGE3): Remove.
3396 (range_tests): Remove all selftest that check for multi-ranges.
3397 Put tests in namespace selftest.
3398 * selftest.h: Move range_tests into namespace selftest.
3399 * value-range.h (class value_range): Unfriend range_tests.
3401 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3403 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3404 normalize_symbolics and normalize_addresses working in place.
3405 (range_fold_unary_symbolics_p): Same.
3406 (range_fold_unary_symbolics_p): Same.
3407 * value-range.cc (num_pairs): Same.
3408 (lower_bound): Same.
3409 (upper_bound): Same.
3411 (normalize_addresses): Same.
3412 (normalize_symbolics): Same.
3413 * value-range.h (normalize_symbolics): Same.
3414 (normalize_addresses): Same.
3416 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3419 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3420 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3421 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3422 (ipa_agg_jump_function): Remove member function equal_to.
3423 (ipa_agg_jump_function_p): Remove typedef.
3424 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3425 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3426 information for aggregate jump function.
3427 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3428 record last definition statement.
3429 (load_from_unmodified_param_or_agg): New function.
3430 (ipa_known_agg_contents_list): Add new field type and value, remove
3432 (build_agg_jump_func_from_list): Rename parameter const_count to
3433 value_count, build aggregate jump function from ipa_load_agg_data.
3434 (analyze_agg_content_value): New function.
3435 (extract_mem_content): Analyze memory store assignment to prepare
3436 information for aggregate jump function generation.
3437 (determine_known_aggregate_parts): Add new parameter fbi, remove
3438 parameter aa_walk_budeget_p.
3439 (update_jump_functions_after_inlining): Update aggregate jump function.
3440 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3441 (try_make_edge_direct_simple_call): Add new parameter new_root.
3442 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3444 (update_indirect_edges_after_inlining): Pass new argument to
3445 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3446 (ipa_write_jump_function): Write aggregate jump function to file.
3447 (ipa_read_jump_function): Read aggregate jump function from file.
3448 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3449 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3450 (ipa_agg_value_from_node): Likewise.
3451 (ipa_agg_value_set_from_jfunc): Likewise.
3452 (propagate_vals_across_arith_jfunc): Likewise.
3453 (propagate_aggregate_lattice): Likewise.
3454 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3455 (propagate_vals_across_pass_through): Call
3456 propagate_vals_across_arith_jfunc.
3457 (get_clone_agg_value): Move forward.
3458 (propagate_aggs_across_jump_function): Handle value propagation for
3459 aggregate jump function.
3460 (agg_jmp_p_vec_for_t_vec): Remove.
3461 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3462 with vec<ipa_agg_value>.
3463 (copy_plats_to_inter, intersect_with_plats): Likewise.
3464 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3465 (intersect_aggregate_with_edge): Likewise.
3466 (find_aggregate_values_for_callers_subset): Likewise.
3467 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3468 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3469 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3470 (gather_context_independent_values): Likewise.
3471 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3472 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3473 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3474 (evaluate_properties_for_edge): Likewise.
3475 (estimate_edge_devirt_benefit): Likewise.
3476 (estimate_edge_size_and_time): Likewise.
3477 (estimate_calls_size_and_time): Likewise.
3478 (ipa_call_context::ipa_call_context): Likewise.
3479 (estimate_ipcp_clone_size_and_time): Likewise.
3480 * ipa-fnsummary.h (ipa_call_context): Replace
3481 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3482 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3483 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3484 (do_estimate_edge_size): Likewise.
3485 (do_estimate_edge_hints): Likewise.
3487 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3489 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3492 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3494 * ipa-profile.c (check_argument_count): Check properly that e_info
3495 is non-NULL; do not check descriptors.
3497 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3499 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3500 check for ipa profiles.
3502 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3505 * ipa-prop.c (update_indirect_edges_after_inlining):
3506 Mark parameter as used.
3507 * ipa-inline.c (recursive_inlining): Reset node cache
3509 (inline_small_functions): Remove checking ifdef.
3510 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3513 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3516 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3518 (ipa_profile): Fix reversed test.
3520 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3522 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3523 (propagate_constants_topo): Fix typo.
3525 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3527 * Makefile.in (OBJS): Add value-range.o.
3528 (GTFILES): Add value-range.h.
3529 * gengtype.c (open_base_files): Add value-range.h to list of
3531 * tree-vrp.c: Move the following value_range related functions:
3532 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3533 constant_p, set_undefined, set_varying, may_contain_p,
3534 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3535 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3536 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3537 value_inside_range, ranges_from_anti_range, union_ranges,
3538 intersect_ranges, intersect_helper, union_helper, union_,
3539 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3540 upper_bound, contains_p, invert, intersect...
3541 * value-range.cc: ...to here.
3542 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3543 associated inline methods from here...
3544 * value-range.h: ...to here.
3546 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3548 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3549 instead of asserting its value.
3551 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3553 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3554 constructors and set methods so value_range_kind is the last
3555 argument and defaults to VR_RANGE.
3556 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3557 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3558 * ipa-prop.c (ipa_get_value_range): Same.
3559 (ipa_compute_jump_functions_for_edge): Same.
3560 * range-op.cc (value_range_from_overflowed_bounds): Same.
3561 (operator_cast::op1_range): Same.
3562 (range_tests): Same.
3563 * range.cc (range_nonzero): Same.
3564 * tree-ssanames.c (get_range_info): Same.
3565 * tree-vrp.c (value_range_equiv::set): Same.
3566 (value_range::value_range): Same.
3567 (value_range_equiv::value_range_equiv): Same.
3568 (value_range_equiv::update): Same.
3569 (value_range_equiv::deep_copy): Same.
3570 (value_range_equiv::move): Same.
3571 (value_range_equiv::set_undefined): Same.
3572 (value_range::set): Same.
3573 (value_range::set_nonzero): Same.
3574 (ranges_from_anti_range): Same.
3575 (extract_range_from_plus_minus_expr): Same.
3576 (value_range::intersect_helper): Same.
3577 (value_range_equiv::intersect): Same.
3578 (value_range::union_helper): Same.
3579 (value_range_equiv::union_): Same.
3580 (value_range::normalize_symbolics): Same.
3581 (value_range::invert): Same.
3582 (determine_value_range_1): Same.
3583 * tree-vrp.h (class value_range): Same.
3584 (class value_range_equiv): Same.
3585 * vr-values.c (set_value_range_to_nonnegative): Same.
3586 (set_value_range_to_truthvalue): Same.
3587 (vr_values::update_value_range): Same.
3588 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3589 (vr_values::extract_range_from_binary_expr): Same.
3590 (vr_values::extract_range_from_comparison): Same.
3591 (vr_values::extract_range_basic): Same.
3592 (vr_values::adjust_range_with_scev): Same.
3593 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3594 (vr_values::extract_range_from_phi_node): Same.
3596 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3598 * tree-dump.c (dequeue_and_dump): Print first tree operand
3599 for VIEW_CONVERT_EXPR.
3601 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3603 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3604 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3605 * real.c (get_max_float): Add norm_max argument.
3606 * real.h (get_max_float): Update prototype.
3607 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3610 2019-11-13 Martin Liska <mliska@suse.cz>
3612 * dbgcnt.c (test_sorted_dbg_counters): New.
3613 (dbgcnt_c_tests): Likewise.
3614 * selftest-run-tests.c (selftest::run_tests): Likewise.
3615 * selftest.h (dbgcnt_c_tests): Likewise.
3617 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3618 Martin Jambor <mjambor@suse.cz>
3621 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3622 (identify_dead_nodes): Likewise.
3624 2019-11-13 Martin Liska <mliska@suse.cz>
3626 * ipa-icf.c (sem_function::equals_private): Do not overuse
3627 push/pop_cfun functions.
3629 2019-11-13 Martin Liska <mliska@suse.cz>
3631 * common.opt: Document change of -fdbg-cnt option.
3632 * dbgcnt.c (DEBUG_COUNTER): Remove.
3633 (dbg_cnt_is_enabled): Remove.
3634 (dbg_cnt): Work with new intervals.
3635 (dbg_cnt_set_limit_by_index): Set to new
3637 (dbg_cnt_set_limit_by_name): Likewise.
3638 (dbg_cnt_process_single_pair): Process new format.
3639 (dbg_cnt_process_opt): Likewise.
3640 (dbg_cnt_list_all_counters): Likewise.
3641 * doc/invoke.texi: Document change of -fdbg-cnt option.
3644 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3646 * ipa-inline.c (ipa_inline): Check that function is defined before
3649 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3650 Julian Brown <julian@codesourcery.com>
3652 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3653 flag_worker_partitioning is not set.
3654 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3655 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3657 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3659 * config/gcn/gcn-run.c (heap_region): New global variable.
3660 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3661 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3662 (get_kernarg_region): Move contents to ....
3663 (get_memory_region): .... here.
3664 (get_heap_region): New function.
3665 (init_device): Initialize the heap_region.
3666 (device_malloc): Add region parameter.
3667 (struct kernargs): Move heap ....
3668 (heap): ... to global scope.
3669 (main): Allocate heap separate to kernargs.
3671 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3673 * ipa-prop.c (ipa_print_node_jump_functions,
3674 ipa_print_node_params): Print info about missing summaries.
3676 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3678 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3679 the cost of generating loop masks.
3681 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3683 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3685 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3686 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3687 (vect_transform_loop): Likewise.
3688 (vect_analyze_loop_costing): Don't take the cost of versioning
3689 into account for the static profitability threshold if it turns
3690 out that no versioning is needed.
3692 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3694 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3695 and target_option_default_node to get -fprofile-generate ctors working
3698 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3700 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3701 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3702 (vectorizable_assignment): Don't add a cost for nop conversions.
3703 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3705 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3707 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3709 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3710 number of ncopies as an additional argument.
3711 (vectorizable_conversion): Update call accordingly. Use "modifier"
3712 to check whether a conversion is between vectors with the same
3715 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3717 * config/aarch64/aarch64-sve-builtins-functions.h
3718 (unary_count::expand): Use aarch64_sve_int_mode instead of
3719 mode_for_int_vector.
3721 2019-11-13 Martin Liska <mliska@suse.cz>
3723 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3725 2019-11-13 Martin Liska <mliska@suse.cz>
3727 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3728 Remove call to finalize_options_struct.
3730 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3733 * config/avr/t-avr (avr-mcus): Do not depend on
3734 $(srcdir)/config/avr/t-multilib.
3736 2019-11-13 Richard Biener <rguenther@suse.de>
3738 PR tree-optimization/92473
3739 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3740 direct optab reduction in the correct type.
3742 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3744 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3745 hexadecimal literal.
3747 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3749 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3750 UNORDERED if !HONOR_NANS (DFmode).
3751 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3752 if !HONOR_NANS (<MODE>mode).
3754 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3756 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3757 (ipcp_verify_propagated_values): Likewise.
3758 (propagate_constants_across_call): Likewise.
3759 (propagate_constants_topo): Likewise.
3760 (ipcp_propagate_stage): Likewise.
3762 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3765 * ipa-profile.c (check_argument_count): Break out from ...;
3766 watch for missing summaries.
3767 (ipa_profile): Here.
3769 2019-11-12 Martin Sebor <msebor@redhat.com>
3771 PR tree-optimization/92412
3772 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3775 2019-11-12 Martin Sebor <msebor@redhat.com>
3778 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3779 (directive::argno): New member.
3780 (format_result::aliases, format_result::alias_count): New data members.
3781 (format_result::append_alias): New member function.
3782 (fmtresult::dst_offset): New data member.
3783 (pass_sprintf_length::call_info::dst_origin): New data member.
3784 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3785 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3786 (get_origin_and_offset): Same.
3787 (format_string): Call it.
3788 (format_directive): Call append_alias and set directive argument
3790 (maybe_warn_overlap): New function.
3791 (pass_sprintf_length::compute_format_length): Call it.
3792 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3793 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3795 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3797 PR rtl-optimization/92430
3798 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3799 dominance info at the beginning.
3801 2019-11-12 Richard Biener <rguenther@suse.de>
3803 PR tree-optimization/92460
3804 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3805 expression before gimplifying.
3807 2019-11-12 Richard Biener <rguenther@suse.de>
3809 PR tree-optimization/92461
3810 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3811 stmt after propagation.
3813 2019-11-12 Martin Liska <mliska@suse.cz>
3815 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3816 Use SET_OPTION_IF_UNSET.
3817 (ix86_option_override_internal): Likewise.
3818 * opts.c (default_options_optimization): Likewise.
3819 (finish_options): Likewise.
3820 (enable_fdo_optimizations): Likewise.
3821 (common_handle_option): Likewise.
3823 2019-11-12 Martin Liska <mliska@suse.cz>
3825 * common/common-target.def: Remove option_validate_param and
3826 option_default_params.
3827 * common/common-targhooks.c (default_option_validate_param):
3829 * common/common-targhooks.h (default_option_validate_param):
3831 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3832 Remove usage of this.
3833 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3834 (aarch64_option_validate_param): Likewise.
3835 (aarch64_option_default_params): Likewise
3836 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3837 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3838 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3839 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3840 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3841 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3842 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3843 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3844 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3845 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3846 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3848 * doc/tm.texi: Remove option_default_params and option_validate_param.
3849 * doc/tm.texi.in: Likewise.
3851 2019-11-12 Martin Liska <mliska@suse.cz>
3853 * common/common-target.def:
3854 Do not mention set_default_param_value
3855 and set_param_value.
3856 * doc/tm.texi: Likewise.
3858 2019-11-12 Martin Liska <mliska@suse.cz>
3860 * common.opt: Remove param_values.
3861 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3862 Remove finalize_options_struct.
3863 * gcc.c (driver::decode_argv): Do not call global_init_params
3865 (driver::finalize): Do not call params_c_finalize
3866 and finalize_options_struct.
3867 * opt-suggestions.c (option_proposer::get_completions): Remove
3868 special casing of params.
3869 (option_proposer::find_param_completions): Remove.
3870 (test_completion_partial_match): Update expected output.
3871 * opt-suggestions.h: Remove find_param_completions.
3872 * opts-common.c (add_misspelling_candidates): Add
3873 --param with a space.
3874 * opts.c (handle_param): Remove.
3875 (init_options_struct):. Remove init_options_struct and
3877 (finalize_options_struct): Remove.
3878 (common_handle_option): Use SET_OPTION_IF_UNSET.
3879 * opts.h (finalize_options_struct): Remove.
3880 * toplev.c (general_init): Do not call global_init_params.
3881 (toplev::finalize): Do not call params_c_finalize and
3882 finalize_options_struct.
3884 2019-11-12 Martin Liska <mliska@suse.cz>
3886 * Makefile.in: Remove PARAMS_H and params.list
3888 * params-enum.h: Remove.
3889 * params-list.h: Remove.
3890 * params-options.h: Remove.
3892 * params.def: Remove.
3894 * asan.c: Do not include params.h.
3895 * auto-profile.c: Likewise.
3896 * bb-reorder.c: Likewise.
3897 * builtins.c: Likewise.
3898 * cfgcleanup.c: Likewise.
3899 * cfgexpand.c: Likewise.
3900 * cfgloopanal.c: Likewise.
3901 * cgraph.c: Likewise.
3902 * combine.c: Likewise.
3903 * common/config/aarch64/aarch64-common.c: Likewise.
3904 * common/config/gcn/gcn-common.c: Likewise.
3905 * common/config/ia64/ia64-common.c: Likewise.
3906 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3907 * common/config/rs6000/rs6000-common.c: Likewise.
3908 * common/config/sh/sh-common.c: Likewise.
3909 * config/aarch64/aarch64.c: Likewise.
3910 * config/alpha/alpha.c: Likewise.
3911 * config/arm/arm.c: Likewise.
3912 * config/avr/avr.c: Likewise.
3913 * config/csky/csky.c: Likewise.
3914 * config/i386/i386-builtins.c: Likewise.
3915 * config/i386/i386-expand.c: Likewise.
3916 * config/i386/i386-features.c: Likewise.
3917 * config/i386/i386-options.c: Likewise.
3918 * config/i386/i386.c: Likewise.
3919 * config/ia64/ia64.c: Likewise.
3920 * config/rs6000/rs6000-logue.c: Likewise.
3921 * config/rs6000/rs6000.c: Likewise.
3922 * config/s390/s390.c: Likewise.
3923 * config/sparc/sparc.c: Likewise.
3924 * config/visium/visium.c: Likewise.
3925 * coverage.c: Likewise.
3926 * cprop.c: Likewise.
3928 * cselib.c: Likewise.
3930 * emit-rtl.c: Likewise.
3931 * explow.c: Likewise.
3932 * final.c: Likewise.
3933 * fold-const.c: Likewise.
3936 * ggc-common.c: Likewise.
3937 * ggc-page.c: Likewise.
3938 * gimple-loop-interchange.cc: Likewise.
3939 * gimple-loop-jam.c: Likewise.
3940 * gimple-loop-versioning.cc: Likewise.
3941 * gimple-ssa-split-paths.c: Likewise.
3942 * gimple-ssa-sprintf.c: Likewise.
3943 * gimple-ssa-store-merging.c: Likewise.
3944 * gimple-ssa-strength-reduction.c: Likewise.
3945 * gimple-ssa-warn-alloca.c: Likewise.
3946 * gimple-ssa-warn-restrict.c: Likewise.
3947 * graphite-isl-ast-to-gimple.c: Likewise.
3948 * graphite-optimize-isl.c: Likewise.
3949 * graphite-scop-detection.c: Likewise.
3950 * graphite-sese-to-poly.c: Likewise.
3951 * graphite.c: Likewise.
3952 * haifa-sched.c: Likewise.
3953 * hsa-gen.c: Likewise.
3954 * ifcvt.c: Likewise.
3955 * ipa-cp.c: Likewise.
3956 * ipa-fnsummary.c: Likewise.
3957 * ipa-inline-analysis.c: Likewise.
3958 * ipa-inline.c: Likewise.
3959 * ipa-polymorphic-call.c: Likewise.
3960 * ipa-profile.c: Likewise.
3961 * ipa-prop.c: Likewise.
3962 * ipa-split.c: Likewise.
3963 * ipa-sra.c: Likewise.
3964 * ira-build.c: Likewise.
3965 * ira-conflicts.c: Likewise.
3966 * loop-doloop.c: Likewise.
3967 * loop-invariant.c: Likewise.
3968 * loop-unroll.c: Likewise.
3969 * lra-assigns.c: Likewise.
3970 * lra-constraints.c: Likewise.
3971 * modulo-sched.c: Likewise.
3972 * opt-suggestions.c: Likewise.
3974 * postreload-gcse.c: Likewise.
3975 * predict.c: Likewise.
3976 * reload.c: Likewise.
3977 * reorg.c: Likewise.
3978 * resource.c: Likewise.
3979 * sanopt.c: Likewise.
3980 * sched-deps.c: Likewise.
3981 * sched-ebb.c: Likewise.
3982 * sched-rgn.c: Likewise.
3983 * sel-sched-ir.c: Likewise.
3984 * sel-sched.c: Likewise.
3985 * shrink-wrap.c: Likewise.
3987 * targhooks.c: Likewise.
3988 * toplev.c: Likewise.
3989 * tracer.c: Likewise.
3990 * trans-mem.c: Likewise.
3991 * tree-chrec.c: Likewise.
3992 * tree-data-ref.c: Likewise.
3993 * tree-if-conv.c: Likewise.
3994 * tree-inline.c: Likewise.
3995 * tree-loop-distribution.c: Likewise.
3996 * tree-parloops.c: Likewise.
3997 * tree-predcom.c: Likewise.
3998 * tree-profile.c: Likewise.
3999 * tree-scalar-evolution.c: Likewise.
4000 * tree-sra.c: Likewise.
4001 * tree-ssa-ccp.c: Likewise.
4002 * tree-ssa-dom.c: Likewise.
4003 * tree-ssa-dse.c: Likewise.
4004 * tree-ssa-ifcombine.c: Likewise.
4005 * tree-ssa-loop-ch.c: Likewise.
4006 * tree-ssa-loop-im.c: Likewise.
4007 * tree-ssa-loop-ivcanon.c: Likewise.
4008 * tree-ssa-loop-ivopts.c: Likewise.
4009 * tree-ssa-loop-manip.c: Likewise.
4010 * tree-ssa-loop-niter.c: Likewise.
4011 * tree-ssa-loop-prefetch.c: Likewise.
4012 * tree-ssa-loop-unswitch.c: Likewise.
4013 * tree-ssa-math-opts.c: Likewise.
4014 * tree-ssa-phiopt.c: Likewise.
4015 * tree-ssa-pre.c: Likewise.
4016 * tree-ssa-reassoc.c: Likewise.
4017 * tree-ssa-sccvn.c: Likewise.
4018 * tree-ssa-scopedtables.c: Likewise.
4019 * tree-ssa-sink.c: Likewise.
4020 * tree-ssa-strlen.c: Likewise.
4021 * tree-ssa-structalias.c: Likewise.
4022 * tree-ssa-tail-merge.c: Likewise.
4023 * tree-ssa-threadbackward.c: Likewise.
4024 * tree-ssa-threadedge.c: Likewise.
4025 * tree-ssa-uninit.c: Likewise.
4026 * tree-switch-conversion.c: Likewise.
4027 * tree-vect-data-refs.c: Likewise.
4028 * tree-vect-loop.c: Likewise.
4029 * tree-vect-slp.c: Likewise.
4030 * tree-vrp.c: Likewise.
4032 * value-prof.c: Likewise.
4033 * var-tracking.c: Likewise.
4035 2019-11-12 Martin Liska <mliska@suse.cz>
4037 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
4038 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
4040 (asan_sanitize_allocas_p): Likewise.
4041 (asan_emit_stack_protection): Likewise.
4042 (asan_protect_global): Likewise.
4043 (instrument_derefs): Likewise.
4044 (instrument_builtin_call): Likewise.
4045 (asan_expand_mark_ifn): Likewise.
4046 * auto-profile.c (auto_profile): Likewise.
4047 * bb-reorder.c (copy_bb_p): Likewise.
4048 (duplicate_computed_gotos): Likewise.
4049 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
4050 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
4051 (try_crossjump_bb): Likewise.
4052 * cfgexpand.c (defer_stack_allocation): Likewise.
4053 (stack_protect_classify_type): Likewise.
4054 (pass_expand::execute): Likewise.
4055 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
4056 (estimate_reg_pressure_cost): Likewise.
4057 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
4058 * combine.c (combine_instructions): Likewise.
4059 (record_value_for_reg): Likewise.
4060 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
4061 (aarch64_option_default_params): Likewise.
4062 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
4063 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
4064 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
4065 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
4066 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
4067 (aarch64_allocate_and_probe_stack_space): Likewise.
4068 (aarch64_expand_epilogue): Likewise.
4069 (aarch64_override_options_internal): Likewise.
4070 * config/alpha/alpha.c (alpha_option_override): Likewise.
4071 * config/arm/arm.c (arm_option_override): Likewise.
4072 (arm_valid_target_attribute_p): Likewise.
4073 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
4074 * config/i386/i386.c (get_probe_interval): Likewise.
4075 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
4076 (ix86_max_noce_ifcvt_seq_cost): Likewise.
4077 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
4078 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4079 (get_stack_clash_protection_guard_size): Likewise.
4080 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4081 * config/s390/s390.c (allocate_stack_space): Likewise.
4082 (s390_emit_prologue): Likewise.
4083 (s390_option_override_internal): Likewise.
4084 * config/sparc/sparc.c (sparc_option_override): Likewise.
4085 * config/visium/visium.c (visium_option_override): Likewise.
4086 * coverage.c (get_coverage_counts): Likewise.
4087 (coverage_compute_profile_id): Likewise.
4088 (coverage_begin_function): Likewise.
4089 (coverage_end_function): Likewise.
4090 * cse.c (cse_find_path): Likewise.
4091 (cse_extended_basic_block): Likewise.
4092 (cse_main): Likewise.
4093 * cselib.c (cselib_invalidate_mem): Likewise.
4094 * dse.c (dse_step1): Likewise.
4095 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4096 (get_max_insn_count): Likewise.
4097 (make_debug_insn_raw): Likewise.
4098 (init_emit): Likewise.
4099 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4100 * final.c (compute_alignments): Likewise.
4101 * fold-const.c (fold_range_test): Likewise.
4102 (fold_truth_andor): Likewise.
4103 (tree_single_nonnegative_warnv_p): Likewise.
4104 (integer_valued_real_single_p): Likewise.
4105 * gcse.c (want_to_gcse_p): Likewise.
4106 (prune_insertions_deletions): Likewise.
4107 (hoist_code): Likewise.
4108 (gcse_or_cprop_is_too_expensive): Likewise.
4109 * ggc-common.c: Likewise.
4110 * ggc-page.c (ggc_collect): Likewise.
4111 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4112 (MAX_DATAREFS): Likewise.
4113 (OUTER_STRIDE_RATIO): Likewise.
4114 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4115 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4116 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4117 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4118 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4119 (imm_store_chain_info::output_merged_store): Likewise.
4120 (pass_store_merging::process_store): Likewise.
4121 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4122 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4123 (scop_to_isl_ast): Likewise.
4124 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4125 (optimize_isl): Likewise.
4126 * graphite-scop-detection.c (build_scops): Likewise.
4127 * haifa-sched.c (set_modulo_params): Likewise.
4128 (rank_for_schedule): Likewise.
4129 (model_add_to_worklist): Likewise.
4130 (model_promote_insn): Likewise.
4131 (model_choose_insn): Likewise.
4132 (queue_to_ready): Likewise.
4133 (autopref_multipass_dfa_lookahead_guard): Likewise.
4134 (schedule_block): Likewise.
4135 (sched_init): Likewise.
4136 * hsa-gen.c (init_prologue): Likewise.
4137 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4138 (cond_move_process_if_block): Likewise.
4139 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4140 (merge_agg_lats_step): Likewise.
4141 (devirtualization_time_bonus): Likewise.
4142 (hint_time_bonus): Likewise.
4143 (incorporate_penalties): Likewise.
4144 (good_cloning_opportunity_p): Likewise.
4145 (ipcp_propagate_stage): Likewise.
4146 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4147 (set_switch_stmt_execution_predicate): Likewise.
4148 (analyze_function_body): Likewise.
4149 (compute_fn_summary): Likewise.
4150 * ipa-inline-analysis.c (estimate_growth): Likewise.
4151 * ipa-inline.c (caller_growth_limits): Likewise.
4152 (inline_insns_single): Likewise.
4153 (inline_insns_auto): Likewise.
4154 (can_inline_edge_by_limits_p): Likewise.
4155 (want_early_inline_function_p): Likewise.
4156 (big_speedup_p): Likewise.
4157 (want_inline_small_function_p): Likewise.
4158 (want_inline_self_recursive_call_p): Likewise.
4159 (edge_badness): Likewise.
4160 (recursive_inlining): Likewise.
4161 (compute_max_insns): Likewise.
4162 (early_inliner): Likewise.
4163 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4164 * ipa-profile.c (ipa_profile): Likewise.
4165 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4166 (ipa_analyze_node): Likewise.
4167 (ipcp_transform_function): Likewise.
4168 * ipa-split.c (consider_split): Likewise.
4169 * ipa-sra.c (allocate_access): Likewise.
4170 (process_scan_results): Likewise.
4171 (ipa_sra_summarize_function): Likewise.
4172 (pull_accesses_from_callee): Likewise.
4173 * ira-build.c (loop_compare_func): Likewise.
4174 (mark_loops_for_removal): Likewise.
4175 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4176 * loop-doloop.c (doloop_optimize): Likewise.
4177 * loop-invariant.c (gain_for_invariant): Likewise.
4178 (move_loop_invariants): Likewise.
4179 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4180 (decide_unroll_runtime_iterations): Likewise.
4181 (decide_unroll_stupid): Likewise.
4182 (expand_var_during_unrolling): Likewise.
4183 * lra-assigns.c (spill_for): Likewise.
4184 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4185 * modulo-sched.c (sms_schedule): Likewise.
4186 (DFA_HISTORY): Likewise.
4187 * opts.c (default_options_optimization): Likewise.
4188 (finish_options): Likewise.
4189 (common_handle_option): Likewise.
4190 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4192 * predict.c (get_hot_bb_threshold): Likewise.
4193 (maybe_hot_count_p): Likewise.
4194 (probably_never_executed): Likewise.
4195 (predictable_edge_p): Likewise.
4196 (predict_loops): Likewise.
4197 (expr_expected_value_1): Likewise.
4198 (tree_predict_by_opcode): Likewise.
4199 (handle_missing_profiles): Likewise.
4200 * reload.c (find_equiv_reg): Likewise.
4201 * reorg.c (redundant_insn): Likewise.
4202 * resource.c (mark_target_live_regs): Likewise.
4203 (incr_ticks_for_insn): Likewise.
4204 * sanopt.c (pass_sanopt::execute): Likewise.
4205 * sched-deps.c (sched_analyze_1): Likewise.
4206 (sched_analyze_2): Likewise.
4207 (sched_analyze_insn): Likewise.
4208 (deps_analyze_insn): Likewise.
4209 * sched-ebb.c (schedule_ebbs): Likewise.
4210 * sched-rgn.c (find_single_block_region): Likewise.
4211 (too_large): Likewise.
4212 (haifa_find_rgns): Likewise.
4213 (extend_rgns): Likewise.
4214 (new_ready): Likewise.
4215 (schedule_region): Likewise.
4216 (sched_rgn_init): Likewise.
4217 * sel-sched-ir.c (make_region_from_loop): Likewise.
4218 * sel-sched-ir.h (MAX_WS): Likewise.
4219 * sel-sched.c (process_pipelined_exprs): Likewise.
4220 (sel_setup_region_sched_flags): Likewise.
4221 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4222 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4223 * toplev.c (print_version): Likewise.
4224 (process_options): Likewise.
4225 * tracer.c (tail_duplicate): Likewise.
4226 * trans-mem.c (tm_log_add): Likewise.
4227 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4228 * tree-data-ref.c (split_constant_offset): Likewise.
4229 (compute_all_dependences): Likewise.
4230 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4231 * tree-inline.c (remap_gimple_stmt): Likewise.
4232 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4233 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4234 (create_parallel_loop): Likewise.
4235 * tree-predcom.c (determine_unroll_factor): Likewise.
4236 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4237 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4238 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4239 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4240 (dse_optimize_redundant_stores): Likewise.
4241 (dse_classify_store): Likewise.
4242 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4243 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4244 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4245 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4246 (try_peel_loop): Likewise.
4247 (tree_unroll_loops_completely): Likewise.
4248 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4249 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4250 (MAX_CONSIDERED_GROUPS): Likewise.
4251 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4252 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4253 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4254 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4255 (L1_CACHE_SIZE_BYTES): Likewise.
4256 (L2_CACHE_SIZE_BYTES): Likewise.
4257 (should_issue_prefetch_p): Likewise.
4258 (schedule_prefetches): Likewise.
4259 (determine_unroll_factor): Likewise.
4260 (volume_of_references): Likewise.
4261 (add_subscript_strides): Likewise.
4262 (self_reuse_distance): Likewise.
4263 (mem_ref_count_reasonable_p): Likewise.
4264 (insn_to_prefetch_ratio_too_small_p): Likewise.
4265 (loop_prefetch_arrays): Likewise.
4266 (tree_ssa_prefetch_arrays): Likewise.
4267 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4268 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4269 (convert_mult_to_fma): Likewise.
4270 (math_opts_dom_walker::after_dom_children): Likewise.
4271 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4272 (hoist_adjacent_loads): Likewise.
4273 (gate_hoist_loads): Likewise.
4274 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4275 (compute_partial_antic_aux): Likewise.
4276 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4277 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4278 (vn_reference_lookup): Likewise.
4279 (do_rpo_vn): Likewise.
4280 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4281 * tree-ssa-sink.c (select_best_block): Likewise.
4282 * tree-ssa-strlen.c (new_stridx): Likewise.
4283 (new_addr_stridx): Likewise.
4284 (get_range_strlen_dynamic): Likewise.
4285 (class ssa_name_limit_t): Likewise.
4286 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4287 (create_variable_info_for_1): Likewise.
4288 (init_alias_vars): Likewise.
4289 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4290 (tail_merge_optimize): Likewise.
4291 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4292 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4293 (thread_jumps::find_jump_threads_backwards): Likewise.
4294 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4295 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4296 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4297 (jump_table_cluster::can_be_handled): Likewise.
4298 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4299 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4300 (param_switch_conversion_branch_ratio): Likewise.
4301 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4302 (vect_enhance_data_refs_alignment): Likewise.
4303 (vect_prune_runtime_alias_test_list): Likewise.
4304 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4305 (vect_get_datarefs_in_loop): Likewise.
4306 (vect_analyze_loop): Likewise.
4307 * tree-vect-slp.c (vect_slp_bb): Likewise.
4308 * tree-vectorizer.h: Likewise.
4309 * tree-vrp.c (find_switch_asserts): Likewise.
4310 (vrp_prop::check_mem_ref): Likewise.
4311 * tree.c (wide_int_to_tree_1): Likewise.
4312 (cache_integer_cst): Likewise.
4313 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4314 (reverse_op): Likewise.
4315 (vt_find_locations): Likewise.
4317 2019-11-12 Martin Liska <mliska@suse.cz>
4319 * Makefile.in: Include params.opt.
4320 * flag-types.h (enum parloops_schedule_type): Add
4321 parloops_schedule_type used in params.opt.
4322 * params.opt: New file.
4324 2019-11-12 Martin Liska <mliska@suse.cz>
4326 * common.opt: Remove --param and --param= options.
4327 * opt-functions.awk: Mark CL_PARAMS for options
4328 that have Param keyword.
4329 * opts-common.c (decode_cmdline_options_to_array):
4330 Replace --param key=value with --param=key=value.
4331 * opts.c (print_filtered_help): Remove special
4333 (print_specific_help): Update title for params.
4334 (common_handle_option): Do not handle OPT__param.
4335 opts.h (SET_OPTION_IF_UNSET): New macro.
4336 * doc/options.texi: Document Param keyword.
4338 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4339 Frederik Harwath <frederik@codesourcery.com>
4340 Thomas Schwinge <thomas@codesourcery.com>
4343 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4344 enumeration constant.
4345 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4346 (is_gimple_omp_offloaded): Likewise.
4347 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4348 constant. Adjust the value of ORT_NONE accordingly.
4349 (is_gimple_stmt): Handle OACC_SERIAL.
4350 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4351 (gomp_needs_data_present): Likewise.
4352 (gimplify_adjust_omp_clauses): Likewise.
4353 (gimplify_omp_workshare): Handle OACC_SERIAL.
4354 (gimplify_expr): Likewise.
4355 * omp-expand.c (expand_omp_target):
4356 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4357 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4358 * omp-low.c (is_oacc_parallel): Rename function to...
4359 (is_oacc_parallel_or_serial): ... this.
4360 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4361 (scan_sharing_clauses): Adjust accordingly.
4362 (scan_omp_for): Likewise.
4363 (lower_oacc_head_mark): Likewise.
4364 (convert_from_firstprivate_int): Likewise.
4365 (lower_omp_target): Likewise.
4366 (check_omp_nesting_restrictions): Handle
4367 GF_OMP_TARGET_KIND_OACC_SERIAL.
4368 (lower_oacc_reductions): Likewise.
4369 (lower_omp_target): Likewise.
4370 * tree.def (OACC_SERIAL): New tree code.
4371 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4373 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4375 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4378 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4379 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4381 PR tree-optimization/92452
4382 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4383 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4386 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4388 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4391 2019-11-12 Alan Modra <amodra@gmail.com>
4393 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4394 element of unspec vec.
4395 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4397 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4398 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4399 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4400 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4402 2019-11-12 Alan Modra <amodra@gmail.com>
4404 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4405 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4406 (IS_NOMARK_TLSGETADDR): Likewise.
4407 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4408 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4409 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4410 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4411 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4412 (rs6000_indirect_call_template_1): Likewise.
4413 (rs6000_pltseq_template): Likewise.
4414 (rs6000_opt_vars): Remove "tls-markers" entry.
4415 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4417 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4418 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4419 (pltseq_plt_pcrel<mode>): Likewise.
4420 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4421 (call_value_local64): Likewise.
4422 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4423 output and length attribute sub-expression.
4424 (call_value_nonlocal_sysv<mode>),
4425 (call_value_nonlocal_sysv_secure<mode>),
4426 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4427 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4428 (call_value_indirect_pcrel<mode>): Likewise.
4429 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4430 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4431 * configure: Regenerate.
4432 * config.in: Regenerate.
4434 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4436 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4437 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4438 address being a prefixed load/store.
4439 (stack_protect_testdi): Deal with either address being a prefixed
4442 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4445 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4446 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4449 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4451 PR tree-optimization/92420
4452 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4454 (get_group_load_store_type): Use it for reversed SLP accesses.
4456 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4458 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4460 (ipcp_transformation_t::duplicate): Break out from ...
4461 (ipa_node_params_t::duplicate): ... here; add copying of agg
4463 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4464 (ipcp_transformation_t): Add duplicate.
4466 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4469 * doc/install.texi: Document that the minimum MPFR version is
4472 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4474 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4475 use new register constraint letters.
4477 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4479 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4480 as well, if interesting recover the symbol and re-legitimize the
4483 2019-11-11 Martin Liska <mliska@suse.cz>
4485 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4488 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4490 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4491 account when checking if there are enough iterations to vectorize
4494 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4495 Kwok Cheung Yeung <kcy@codesourcery.com>
4497 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4498 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4499 (LANG_HOOKS_DECLS): Rename also here.
4500 * langhooks.h (lang_hooks_for_decls): Rename
4501 omp_is_optional_argument to omp_check_optional_argument; take
4502 additional bool argument.
4503 * omp-general.h (omp_check_optional_argument): Likewise.
4504 * omp-general.h (omp_check_optional_argument): Likewise.
4505 * omp-low.c (lower_omp_target): Update calls; handle absent
4506 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4508 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4511 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4512 -fPIC and -shared the last to create offload image.
4514 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4516 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4519 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4520 (config.status): Use/depend on it.
4521 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4522 * configure: Regenerate.
4524 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4526 PR tree-optimization/88760
4527 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4528 * gcc/common/config/rs6000/rs6000-common.c
4529 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4530 Turn on -funroll-loops and -munroll-only-small-loops.
4531 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4532 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4533 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4534 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4535 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4536 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4538 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4540 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4541 Make scalar_load, vector_load, unaligned_load and
4542 vector_gather_load cost more to conform hardware latency and
4545 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4547 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4548 (MACHO_SYMBOL_LINKER_VIS_P): New.
4550 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4552 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4553 registers in eliminable_regset.
4555 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4557 * ipa-inline.c (compute_uninlined_call_time,
4558 compute_inlined_call_time): Take edge frequency as
4559 parameter rather than computing it by itself.
4560 (big_speedup_p, edge_badness): Manually CSE sreal
4561 frequency calculations.
4563 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4565 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4566 case where profiles are same.
4568 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4570 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4572 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4574 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4575 args summaries of inlined edge unless it holds info about
4576 described reference.
4578 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4580 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4581 (*movcc_internal1): Rename to...
4582 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4584 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4586 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4587 (cgraph_node::create_virtual_clone): Copy it.
4588 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4590 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4591 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4593 (propagate_constants_across_call): If callee is not analyzed, give up.
4594 (propagate_constants_topo): Lower to bottom latties of all callees of
4595 functions with ipa-cp disabled.
4596 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4597 (cgraph_edge_brings_value_p): Check for availability first.
4598 (create_specialized_node): Set ipcp_clone.
4599 (ipcp_store_bits_results): Check that info is present.
4600 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4602 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4603 conservative when callee summary is missing.
4604 (remap_edge_summaries): Lookup call summary only when needed.
4605 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4606 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4608 (ipa_analyze_node): Use get_create.
4609 (propagate_controlled_uses): Do not propagate when function is not
4611 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4612 (ipa_read_node_info): Use get_create.
4613 * ipa-prop.h (IPA_NODE_REF): Use get.
4614 (IPA_NODE_REF_GET_CREATE): New.
4616 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4618 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4621 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4623 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4624 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4625 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4626 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4628 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4630 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4631 capping the growth cumulated.
4632 (offline_size): Break out from ...
4633 (estimate_growth): ... here.
4634 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4636 (growth_likely_positive): Turn to ...
4637 (growth_positive_p): Re-implement.
4638 * ipa-inline.h (growth_likely_positive): Remove.
4639 (growth_positive_p): Declare.
4640 * ipa-inline.c (want_inline_small_function_p): Use
4642 (want_inline_function_to_all_callers_p): Likewise.
4644 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4646 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4647 calculation of min_size.
4648 (ipa_update_overall_fn_summary): Likewise.
4650 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4652 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4653 estimate_edge_devirt_benefit when not computing hints;
4654 do not compute time when not asked for.
4655 (estimate_calls_size_and_time): Pass NULL hints and time when
4656 these are not computed; do not evaluate hint predicates when these are
4658 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4661 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4663 PR tree-optimization/92401
4664 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4665 if res_op->code is an expression with code length 1.
4666 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4667 if res_op->code is an expression with code length 2.
4668 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4669 if res_op->code is an expression with code length 3.
4671 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4673 * config/darwin.c (machopic_mcount_stub_name): Validate the
4674 symbol stub name when it is created.
4675 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4678 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4680 * symtab.c: Fix comment typos.
4681 * cgraphunit.c: Likewise.
4682 * cgraph.h: Likewise.
4683 * cgraphclones.c: Likewise.
4684 * cgraph.c: Likewise.
4685 * varpool.c: Likewise.
4686 * tree-ssa-strlen.c: Likewise.
4687 * ipa-sra.c: Likewise.
4688 (scan_expr_access, check_all_callers_for_issues): Fix typo
4691 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4693 * config/darwin-protos.h: Add include quard.
4695 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4697 * range-op.h (range_operator::fold_range): Return result in a
4698 reference parameter instead of by value.
4699 (range_operator::wi_fold): Same.
4700 * range-op.cc (range_operator::wi_fold): Return result in a reference
4701 parameter instead of by value.
4702 (range_operator::fold_range): Same.
4703 (value_range_from_overflowed_bounds): Same.
4704 (value_range_with_overflow): Same
4705 (create_possibly_reversed_range): Same.
4706 (operator_equal::fold_range): Same.
4707 (operator_not_equal::fold_range): Same.
4708 (operator_lt::fold_range): Same.
4709 (operator_le::fold_range): Same.
4710 (operator_gt::fold_range): Same.
4711 (operator_ge::fold_range): Same.
4712 (operator_plus::wi_fold): Same.
4713 (operator_plus::op1_range): Change call to fold_range.
4714 (operator_plus::op2_range): Change call to fold_range.
4715 (operator_minus::wi_fold): Return result via reference parameter.
4716 (operator_minus::op1_range): Change call to fold_range.
4717 (operator_minus::op2_range): Change call to fold_range.
4718 (operator_min::wi_fold): Return result via reference parameter.
4719 (operator_max::wi_fold): Same.
4720 (cross_product_operator::wi_cross_product): Same.
4721 (operator_mult::wi_fold): Same.
4722 (operator_div::wi_fold): Same.
4723 (operator_div op_floor_div): Fix whitespace.
4724 (operator_exact_divide::op1_range): Change call to fold_range.
4725 (operator_lshift::fold_range): Return result via reference parameter.
4726 (operator_lshift::wi_fold): Same.
4727 (operator_rshift::fold_range): Same.
4728 (operator_rshift::wi_fold): Same.
4729 (operator_cast::fold_range): Same.
4730 (operator_cast::op1_range): Change calls to fold_range.
4731 (operator_logical_and::fold_range): Return result via reference.
4732 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4733 (operator_bitwise_and::wi_fold): Return result via reference.
4734 (operator_logical_or::fold_range): Same.
4735 (operator_bitwise_or::wi_fold): Same.
4736 (operator_bitwise_xor::wi_fold): Same.
4737 (operator_trunc_mod::wi_fold): Same.
4738 (operator_logical_not::fold_range): Same.
4739 (operator_bitwise_not::fold_range): Same.
4740 (operator_bitwise_not::op1_range): Change call to fold_range.
4741 (operator_cst::fold_range): Return result via reference.
4742 (operator_identity::fold_range): Same.
4743 (operator_abs::wi_fold): Same.
4744 (operator_absu::wi_fold): Same.
4745 (operator_negate::fold_range): Same.
4746 (operator_negate::op1_range): Change call to fold_range.
4747 (operator_addr_expr::fold_range): Return result via reference.
4748 (operator_addr_expr::op1_range): Change call to fold_range.
4749 (operator_pointer_plus::wi_fold): Return result via reference.
4750 (operator_pointer_min_max::wi_fold): Same.
4751 (operator_pointer_and::wi_fold): Same.
4752 (operator_pointer_or::wi_fold): Same.
4753 (range_op_handler): Change call to fold_range.
4755 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4757 (range_fold_unary_symbolics_p): Same.
4758 (range_fold_binary_expr): Same.
4759 (range_fold_unary_expr): Same.
4761 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4763 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4764 vector type as an argument rather than reading it from the
4766 (vect_create_epilog_for_reduction): Update accordingly.
4767 (vectorizable_reduction): Likewise.
4768 (vect_transform_cycle_phi): Likewise.
4770 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4772 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4773 the comparison codes that make sense for the mode used, and only the
4774 codes that can be done with a single branch instruction.
4776 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4778 PR tree-optimization/92351
4779 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4780 peeling the main loop for alignment, make sure to set the misalignment
4781 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4783 2019-11-08 Richard Biener <rguenther@suse.de>
4785 * dbgcnt.def (ivopts_loop): Add.
4786 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4787 ivopts_loop before optimizing a loop.
4789 2019-11-08 Richard Biener <rguenther@suse.de>
4792 * tree-inline.c (declare_return_variable): Properly handle
4793 type mismatches for the return slot.
4795 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4798 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4799 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4801 (got_helper_needed): New static variable.
4802 (output_load_pcrel_sym): New function.
4803 (get_pc_thunk_name): Remove after inlining...
4804 (load_got_register): ...here. Rework the initialization of the GOT
4805 register and of the GOT helper.
4806 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4807 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4808 helper must be emitted. Use output_asm_insn instead of fprintf.
4809 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4810 if optimization is enabled.
4811 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4812 by calling output_load_pcrel_sym.
4814 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4816 * tree-sra.c (create_access): Delay disqualifying the base
4817 for poly_int values until we know we have a base.
4819 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4821 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4822 for loops with SIMDUID set. Enable epilogue vectorization for loops
4823 with SIMDLEN set after finding a main loop with a VF that matches it.
4825 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4828 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4829 value only, return non-NULL if there is a single non-clobber
4830 constituent store even if there are constituent clobbers and return
4831 one of clobber constituent stores if all constituent stores are
4833 (split_group): Handle clobbers.
4834 (imm_store_chain_info::output_merged_store): When computing
4835 bzero_first, look after all clobbers at the start. Don't count
4836 clobber stmts in orig_num_stmts, except if the first orig store is
4837 a clobber covering the whole area and split_stores cover the whole
4838 area, consider equal number of stmts ok. Punt if split_stores
4839 contains only ->orig stores and their number plus number of original
4840 clobbers is equal to original number of stmts. For ->orig, look past
4841 clobbers in the constituent stores.
4842 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4844 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4846 (store_valid_for_store_merging_p): Allow clobber stmts.
4847 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4850 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4851 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4853 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4854 force creation of a unique data.stack_parm slot.
4856 2019-11-08 Richard Biener <rguenther@suse.de>
4858 * genmatch.c (expr::gen_transform): Use the resimplify
4859 member function instead of hard-coding the gimple_resimplifyN variant.
4860 (dt_simplify::gen_1): Likewise.
4862 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4864 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4867 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4869 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4870 instead of INTEGER_CST.
4872 2019-11-08 Richard Biener <rguenther@suse.de>
4874 PR tree-optimization/92324
4875 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4876 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4877 sign-conversions as necessary.
4878 (vectorizable_reduction): Reject conversions in the chain
4879 that are not sign-conversions, base analysis on a non-converting
4880 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4881 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4883 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4884 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4886 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4889 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4890 Fix a missing '-' when displaying these options in the
4893 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4895 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4897 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4899 * config/aarch64/aarch64-builtins.c
4900 (aarch64_builtin_vectorized_function): Remove bswap handling.
4902 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4904 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4905 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4906 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4907 Treat the vector types as indivisible.
4909 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4911 * optabs.def (gather_load_optab, mask_gather_load_optab)
4912 (scatter_store_optab, mask_scatter_store_optab): Turn into
4913 conversion optabs, with the offset mode given explicitly.
4914 * doc/md.texi: Update accordingly.
4915 * config/aarch64/aarch64-sve-builtins-base.cc
4916 (svld1_gather_impl::expand): Likewise.
4917 (svst1_scatter_impl::expand): Likewise.
4918 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4919 (expand_scatter_store_optab_fn): Likewise.
4920 (direct_gather_load_optab_supported_p): Likewise.
4921 (direct_scatter_store_optab_supported_p): Likewise.
4922 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4924 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4925 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4926 argument with the offset vector type. Require the two vector
4927 types to have the same number of elements but allow their element
4928 sizes to be different. Treat the optabs as conversion optabs.
4929 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4930 prototype accordingly.
4931 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4932 (supports_vec_convert_optab_p): ...this new function.
4933 (supports_vec_gather_load_p): Update accordingly.
4934 (supports_vec_scatter_store_p): Likewise.
4935 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4936 Replace the offset sign and bits parameters with a scalar type tree.
4937 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4938 Pass back the offset vector type instead of the scalar element type.
4939 Allow the offset to be wider than the memory elements. Search for
4940 an offset type that the target supports, stopping once we've
4941 reached the maximum of the element size and pointer size.
4942 Update call to internal_gather_scatter_fn_supported_p.
4943 (vect_check_gather_scatter): Update calls accordingly.
4944 When testing a new scale before knowing the final offset type,
4945 check whether the scale is supported for any signed or unsigned
4946 offset type. Check whether the target supports the source and
4947 target types of a conversion before deciding whether to look
4948 through the conversion. Record the chosen offset_vectype.
4949 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4950 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4951 directly from the gs_info's offset_vectype instead. Pass a zero
4952 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4953 * tree-vect-stmts.c (check_load_store_masking): Update call to
4954 internal_gather_scatter_fn_supported_p, passing the offset vector
4955 type recorded in the gs_info.
4956 (vect_truncate_gather_scatter_offset): Update call to
4957 vect_check_gather_scatter, leaving it to search for a valid
4959 (vect_use_strided_gather_scatters_p): Convert the offset to the
4960 element type of the gs_info's offset_vectype.
4961 (vect_get_gather_scatter_ops): Get the offset vector type directly
4963 (vect_get_strided_load_store_ops): Likewise.
4964 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4965 and IFN_MASK_GATHER_LOAD.
4966 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4967 (gather_load<mode><v_int_equiv>): ...this.
4968 (mask_gather_load<mode>): Rename to...
4969 (mask_gather_load<mode><v_int_equiv>): ...this.
4970 (scatter_store<mode>): Rename to...
4971 (scatter_store<mode><v_int_equiv>): ...this.
4972 (mask_scatter_store<mode>): Rename to...
4973 (mask_scatter_store<mode><v_int_equiv>): ...this.
4975 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4978 * config/rs6000/predicates.md
4979 (signed_or_equality_comparison_operator): New predicate.
4980 (unsigned_or_equality_comparison_operator): Likewise.
4981 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4982 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4983 * config/rs6000/vector.md
4984 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4985 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4986 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4987 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4988 vector modes and same-size integer vector modes.
4989 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4990 (vector_lt<mode> for VEC_F): New expand.
4991 (vector_le<mode> for VEC_F): Likewise.
4992 (vector_ne<mode> for VEC_F): Likewise.
4993 (vector_unge<mode> for VEC_F): Likewise.
4994 (vector_ungt<mode> for VEC_F): Likewise.
4995 (vector_unle<mode> for VEC_F): Likewise.
4996 (vector_unlt<mode> for VEC_F): Likewise.
4997 (vector_uneq<mode>): Expose name.
4998 (vector_ltgt<mode>): Likewise.
4999 (vector_unordered<mode>): Likewise.
5000 (vector_ordered<mode>): Likewise.
5002 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
5005 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
5006 Enhance ix86_expand_vector_init_concat.
5008 2019-11-08 Joseph Myers <joseph@codesourcery.com>
5010 * doc/invoke.texi (-Wold-style-definition): Document () not being
5011 considered an old-style definition for C2x.
5013 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
5015 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
5017 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
5018 insn patterns using ldcw instruction.
5019 (memory_barrier): Remove insn pattern using sync instruction.
5020 * config/pa/pa.opt (coherent-ldcw): New option.
5021 (ordered): New option.
5023 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5025 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
5028 2019-11-07 Jakub Jelinek <jakub@redhat.com>
5030 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
5031 typo - mistmatch -> mismatch.
5032 * ipa-profile.c (ipa_profile): Likewise.
5033 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
5034 - mistmatch -> mismatch.
5036 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5038 * simplify-rtx.c (comparison_to_mask): New function.
5039 (mask_to_comparison): New function.
5040 (simplify_logical_relational_operation): New function.
5041 (simplify_binary_operation_1): Call
5042 simplify_logical_relational_operation.
5044 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
5047 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
5048 modes for integer constants.
5050 2019-11-07 Jan Hubicka <jh@suse.cz>
5053 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
5056 2019-11-07 Jan Hubicka <jh@suse.cz>
5058 * optc-save-gen.awk: Generate cl_target_option_free
5059 and cl_optimization_option_free.
5060 * opth-en.awk: Declare cl_target_option_free
5061 and cl_optimization_option_free.
5062 * tree.c (free_node): Use it.
5064 2019-11-06 Jan Hubicka <jh@suse.cz>
5066 * lto-streamer-in.c: Include alloc-pool.h.
5067 (freeing_string_slot_hasher): Remove.
5068 (string_slot_allocator): New object allocator.
5069 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
5070 (file_name_obstack): New obstack.
5071 (canon_file_name): Allocate in obstack and allocator.
5072 (lto_reader_init): Initialize obstack and allocator.
5073 (lto_free_file_name_hash): New function.
5074 * lto-streamer.h (lto_free_file_name_hash): New.
5076 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
5078 PR tree-optimization/89134
5079 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5080 * params.def: Add min-loop-cond-split-prob.
5081 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5082 outside checks on loop into the function.
5083 (split_info): New class.
5084 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5085 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5086 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5087 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5088 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5089 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5090 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5091 (split_loop_on_cond): Likewise.
5092 (tree_ssa_split_loops): Add loop split on conditional statement.
5094 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5096 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5099 2019-11-07 Richard Biener <rguenther@suse.de>
5101 PR tree-optimization/92405
5102 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5103 restrict lane-reducing ops to single stmt chains.
5105 2019-11-07 Martin Jambor <mjambor@suse.cz>
5108 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5109 * cgraph.h (gimple_check_call_matching_types): Remove
5110 * cgraph.c (gimple_check_call_args): Likewise.
5111 (gimple_check_call_matching_types): Likewise.
5112 (symbol_table::create_edge): Do not call
5113 gimple_check_call_matching_types.
5114 (cgraph_edge::make_direct): Likewise.
5115 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5116 * value-prof.h (check_ic_target): Remove.
5117 * value-prof.c (check_ic_target): Remove.
5118 (gimple_ic_transform): Do nat call check_ic_target.
5119 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5120 (afdo_indirect_call): Likewise.
5121 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5122 gimple_check_call_matching_types.
5123 * ipa-inline.c (early_inliner): Likewise.
5125 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5127 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5128 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5129 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5130 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5131 * config/arm/iterators.md (USSAT16): New int_iterator.
5132 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5134 * config/arm/predicates.md (ssat16_imm): New predicate.
5135 (usat16_imm): Likewise.
5136 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5138 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5140 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5142 (arm_<simd32_op>): New define_expands.
5143 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5144 __smuad, __smuadx): Define.
5145 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5146 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5147 (SIMD32_BINOP_Q): Likewise.
5148 (simd32_op): Handle the above.
5149 * config/arm/unspecs.md: Define unspecs for the above.
5151 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5153 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5154 * config/arm/arm.md (APSRGE_REGNUM): Define.
5155 (arm_<simd32_op>): New define_insn.
5156 (arm_sel): Likewise.
5157 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5158 (CALL_USED_REGISTERS): Likewise.
5159 (REG_ALLOC_ORDER): Likewise.
5160 (FIRST_PSEUDO_REGISTER): Update value.
5161 (ARM_GE_BITS_READ): Define.
5162 * config/arm/arm.c (arm_conditional_register_usage): Clear
5163 APSRGE_REGNUM from operand_reg_set.
5164 (arm_ge_bits_access): Define.
5165 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5167 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5168 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5169 FAIL if ARM_GE_BITS_READ.
5170 (*arm_add<mode>3): New define_insn.
5171 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5172 (*arm_sub<mode>3): New define_insn.
5173 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5174 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5176 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5177 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5178 (simd32_op): Handle the above.
5179 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5180 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5181 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5182 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5184 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5186 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5187 (arm_smlabb): New define_expand.
5188 (*maddhisi4tb): Rename to...
5189 (maddhisi4tb): ... This.
5190 (*maddhisi4tt): Rename to...
5191 (maddhisi4tt): ... This.
5192 (arm_smlatb_setq): New define_insn.
5193 (arm_smlatb): New define_expand.
5194 (arm_smlatt_setq): New define_insn.
5195 (arm_smlatt): New define_expand.
5196 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5197 (arm_<smlaw_op>): New define_expand.
5198 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5199 __smlawb, __smlawt): Define.
5200 * config/arm_acle_builtins.def: Define builtins for the above.
5201 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5202 (slaw_op): New int_attribute.
5203 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5205 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5207 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5208 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5209 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5210 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5211 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5212 (ss_op): New code_attr.
5214 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5216 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5217 * config/arm/arm.md (APSRQ_REGNUM): Define.
5218 (add_setq): New define_subst.
5219 (add_clobber_q_name): New define_subst_attr.
5220 (add_clobber_q_pred): Likewise.
5221 (maddhisi4): Change to define_expand. Split into mult and add if
5223 (arm_maddhisi4): New define_insn.
5224 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5225 (*maddhisi4tt): Likewise.
5226 (arm_ssat): New define_expand.
5227 (arm_usat): Likewise.
5228 (arm_get_apsr): New define_insn.
5229 (arm_set_apsr): Likewise.
5230 (arm_saturation_occurred): New define_expand.
5231 (arm_set_saturation): Likewise.
5232 (*satsi_<SAT:code>): Rename to...
5233 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5234 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5235 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5236 (CALL_USED_REGISTERS): Mark apsrq.
5237 (FIRST_PSEUDO_REGISTER): Update value.
5238 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5239 (machine_function): Add q_bit_access.
5240 (ARM_Q_BIT_READ): Define.
5241 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5242 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5244 (arm_q_bit_access): Define.
5245 * config/arm/arm-builtins.c: Include stringpool.h.
5246 (arm_sat_binop_imm_qualifiers,
5247 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5248 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5249 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5250 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5251 SET_SAT_QUALIFIERS): Likewise.
5252 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5253 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5254 Handle 0 argument expander.
5255 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5256 (arm_check_builtin_call): Define.
5257 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5258 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5259 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5260 (arm_q_bit_access): Likewise.
5261 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5262 __saturation_occurred, __set_saturation_occurred): Define.
5263 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5264 saturation_occurred, set_saturation_occurred.
5265 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5266 (UNSPEC_APSR_READ): Likewise.
5267 (VUNSPEC_APSR_WRITE): Likewise.
5268 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5269 (*arm_ssadd<mode>3): New define_insn.
5270 (sssub<mode>3): Convert to define_expand.
5271 (*arm_sssub<mode>3): New define_insn.
5272 (ssmulsa3): Convert to define_expand.
5273 (*arm_ssmulsa3): New define_insn.
5274 (usmulusa3): Convert to define_expand.
5275 (*arm_usmulusa3): New define_insn.
5276 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5277 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5278 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5280 2019-11-07 Martin Liska <mliska@suse.cz>
5283 * cgraph.c (delete_function_version): Clear global
5284 variable version_info_node if equal to deleted
5287 2019-11-07 Martin Liska <mliska@suse.cz>
5289 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5290 of CONSTRUCTOR_NO_CLEARING.
5291 (operand_compare::hash_operand): Likewise.
5293 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5295 Support 64-bit double and 64-bit long double configurations.
5298 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5299 --with-long-double=.
5300 * config/avr/t-multilib: Remove.
5301 * config/avr/t-avr: Output of genmultilib.awk is now fully
5302 dynamically generated and no more part of the repo.
5303 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5304 Pass them down to...
5305 * config/avr/genmultilib.awk: ...here and handle them.
5306 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5307 (-mlong-double=, avr_long_double). New option and var.
5308 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5309 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5310 Set default as requested by --with-double=
5311 (TARGET_HANDLE_OPTION): Define to this...
5312 (avr_handle_option): ...new hook worker.
5313 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5314 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5315 (avr_double_lib): New proto for spec function.
5316 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5317 (DRIVER_SELF_SPECS): Call %:double-lib.
5318 * config/avr/avr.c (avr_option_override): Assert
5319 sizeof(long double) >= sizeof(double) for the target.
5320 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5321 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5322 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5323 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5324 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5325 New built-in define depending on --with-double=, --with-long-double=.
5326 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5327 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5328 * doc/install.texi (Cross-Compiler-Specific Options)
5329 <--with-double=, --with-long-double=>: Doc.
5331 2019-11-07 Richard Biener <rguenther@suse.de>
5333 * dbgcnt.def (gimple_unroll): New.
5334 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5335 gimple_unroll debug counter before applying transform.
5336 (try_peel_loop): Likewise.
5338 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5340 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5341 frame pointer in multiple registers.
5342 (ira_setup_eliminable_regset): Setup eliminable_regset,
5343 ira_no_alloc_regs and regs_ever_live for frame pointer in
5346 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5348 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5351 2019-11-06 Jan Hubicka <jh@suse.cz>
5353 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5355 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5356 Do not silently ignore summary corruptions.
5358 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5360 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5361 the epilogue if there are peeled iterations for it to handle.
5363 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5365 * config/arc/arc.c (arc_split_ior): Add asserts.
5366 (arc_split_mov_const): Likewise.
5367 (arc_check_ior_const): Do not match known short immediate values.
5368 * config/arc/arc.md (movsi): Don't split predicated instructions
5371 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5373 * config/arc/arc.opt (mea): Update help string.
5374 * doc/invoke.texi(ARC): Update mea option info.
5376 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5378 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5379 (zero_extendqisi2_ac): Likewise.
5380 (zero_extendhisi2_i): Likewise.
5381 (extendqihi2_i): Likewise.
5382 (extendqisi2_ac): Likewise.
5383 (extendhisi2_i): Likewise.
5385 2019-11-06 Richard Biener <rguenther@suse.de>
5387 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5388 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5389 Simplify single_defuse_cycle condition.
5391 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5393 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5394 epilogue loop, make sure that the VF is small enough or that
5395 the epilogue loop can be fully-masked.
5397 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5399 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5400 loop when we've finished, rather than returning directly from
5401 the loop. Use a local variable to track whether we're still
5402 searching for the preferred simdlen. Make vect_epilogues
5403 record whether the next iteration should try to treat the
5404 loop as an epilogue.
5406 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5408 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5409 __arc_hard_float__, __ARC_HARD_FLOAT__,
5410 __arc_soft_float__, __ARC_SOFT_FLOAT__
5412 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5414 PR tree-optimization/92317
5415 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5416 update phi's with constant phi arguments.
5418 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5419 Alexandre Oliva <oliva@adacore.com>
5421 * common.opt (-fcallgraph-info[=]): New option.
5422 * doc/invoke.texi (Developer options): Document it.
5423 * opts.c (common_handle_option): Handle it.
5424 * builtins.c (expand_builtin_alloca): Record allocation if
5425 -fcallgraph-info=da.
5426 * calls.c (expand_call): If -fcallgraph-info, record the call.
5427 (emit_library_call_value_1): Likewise.
5428 * flag-types.h (enum callgraph_info_type): New type.
5429 * explow.c: Include stringpool.h.
5430 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5431 * function.c (allocate_stack_usage_info): New.
5432 (allocate_struct_function): Call it for -fcallgraph-info.
5433 (prepare_function_start): Call it otherwise.
5434 (record_final_call, record_dynamic_alloc): New.
5435 * function.h (struct callinfo_callee): New.
5436 (CALLEE_FROM_CGRAPH_P): New.
5437 (struct callinfo_dalloc): New.
5438 (struct stack_usage): Add callees and dallocs.
5439 (record_final_call, record_dynamic_alloc): Declare.
5440 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5441 object if -fcallgraph-info=da.
5442 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5443 * print-tree.h (print_decl_identifier): Declare.
5444 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5445 * print-tree.c: Include print-tree.h.
5446 (print_decl_identifier): New function.
5447 * toplev.c: Include print-tree.h.
5448 (callgraph_info_file): New global variable.
5449 (callgraph_info_external_printed): Likewise.
5450 (output_stack_usage): Rename to...
5451 (output_stack_usage_1): ... this. Make it static, add cf
5452 parameter. If -fcallgraph-info=su, print stack usage to cf.
5453 If -fstack-usage, use print_decl_identifier for
5455 (INDIRECT_CALL_NAME): New.
5456 (dump_final_node_vcg_start): New.
5457 (dump_final_callee_vcg, dump_final_node_vcg): New.
5458 (output_stack_usage): New.
5459 (lang_dependent_init): Open and start file if
5460 -fcallgraph-info. Allocated callgraph_info_external_printed.
5461 (finalize): If callgraph_info_file is not null, finish it,
5462 close it, and release callgraph_info_external_printed.
5464 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5465 Frederik Harwath <frederik@codesourcery.com>
5466 Thomas Schwinge <thomas@codesourcery.com>
5468 * omp-low.c (struct omp_context): New fields
5469 local_reduction_clauses, outer_reduction_clauses.
5470 (new_omp_context): Initialize these.
5471 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5472 (scan_omp_for): Check reduction clauses for incorrect nesting.
5474 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5477 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5478 operands with non-memory constraints.
5480 2019-11-05 Martin Sebor <msebor@redhat.com>
5482 PR tree-optimization/92373
5483 * tree.c (component_ref_size): Only consider initializers of objects
5484 of matching struct types.
5485 Return null for instances of interior zero-length arrays.
5487 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5489 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5491 2019-11-05 Jason Merrill <jason@redhat.com>
5493 PR tree-optimization/91825
5494 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5496 2019-11-05 Jim Wilson <jimw@sifive.com>
5499 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5500 optimize_insn_for_speed_p is true.
5502 2019-11-05 Martin Sebor <msebor@redhat.com>
5506 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5508 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5509 name and location for a temporary variable.
5511 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5513 * tree-vrp.c (value_range::value_range): Fix whitespace.
5514 (defined_ranges_p): Same.
5515 (range_fold_binary_symbolics_p): Same.
5516 (value_range::intersect_helper): Same.
5517 (value_range::union_helper): Same.
5518 * tree-vrp.h (range_fold_binary_expr): Same.
5520 2019-11-04 Martin Sebor <msebor@redhat.com>
5524 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5525 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5526 of message printed in a warning for empty arrays.
5527 (vrp_prop::check_mem_ref): Also handle function parameters and
5530 2019-11-05 Richard Biener <rguenther@suse.de>
5532 PR tree-optimization/92371
5533 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5534 on the original stmt of live stmts in the chain.
5535 (vectorizable_live_operation): Look at the original stmt when
5536 checking STMT_VINFO_REDUC_DEF.
5538 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5540 * gimple-fold.c, gimple-loop-versioning.cc,
5541 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5542 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5543 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5544 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5545 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5546 value_range_equiv, and value_range_base to value_range.
5548 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5550 * expr.c (build_personality_function): Fix generated type to
5551 match actual personality functions.
5553 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5555 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5556 enough bytes for the NULL character.
5558 2019-11-05 Richard Biener <rguenther@suse.de>
5560 PR tree-optimization/92280
5561 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5562 had a single use do not create a new CTOR.
5563 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5564 BIT_FIELD_REF of a CTOR via GENERIC.
5566 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5568 * config/s390/s390.c (s390_vector_alignment): Check if the value
5569 fits into uhwi before using it.
5571 2019-11-05 Martin Liska <mliska@suse.cz>
5573 * symbol-summary.h: Use ggc_delete.
5575 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5577 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5578 Change vec_perm field to 10.
5580 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5582 * doc/install.texi: Further fix syntax for html generation.
5584 2019-11-05 Martin Liska <mliska@suse.cz>
5586 * symbol-summary.h: Rename allocator to m_allocator and
5589 2019-11-05 Richard Biener <rguenther@suse.de>
5591 PR tree-optimization/92324
5592 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5593 all signed or unsigned operations.
5595 2019-11-05 Jan Hubicka <jh@suse.cz>
5597 * hsa-brig.c: Include alloc-pool.h
5598 * hsa-dump.c: Likewise.
5599 * hsa-gen.c: Likewise.
5600 * hse-regalloc.c: Likewise.
5601 * ipa-hsa.c: Likewise.
5602 * ipa-predicate.c: Likewise.
5603 * ipa-reference.c: Likewise.
5604 * ipa-sra.c: Likewise.
5605 * omp-expand.c: Likewise.
5606 * omp-general.c: Likewise.
5607 * omp-low.c: Likewise.
5608 * sumbol-summary.h (function_summary_base): Add allocator.
5609 (function_summary<T *>::function_summary): Update construction.
5610 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5611 (call_summary_base): Add allcator.
5612 (call_summary<T *>::call_summary): Update construction.
5613 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5615 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5617 PR tree-optimization/91945
5618 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5619 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5622 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5624 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5625 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5626 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5627 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5628 (vrp_set_zero_nonzero_bits): Move to...
5629 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5630 (vr_values::simplify_bit_ops_using_ranges): Rename
5631 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5633 2019-11-05 Martin Liska <mliska@suse.cz>
5636 * fold-const.c (operand_compare::hash_operand): Remove
5637 FIELD_DECL handling.
5639 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5641 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5642 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5645 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5647 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5648 properly handle symbolics.
5649 (range_compatible_p): Remove.
5651 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5653 * common.opt (-fabi-version): Document =14.
5654 * doc/invoke.texi (C++ Dialect Options): Likewise.
5656 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5658 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5660 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5662 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5663 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5664 gcn_omp_device_kind_arch_isa.
5665 * config/gcn/t-omp-device: New file.
5666 * configure.ac: Support gcn for omp_device_property.
5667 * configure: Regenerate.
5669 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5671 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5672 (vrp_val_max): Same.
5673 (vrp_val_is_min): Same.
5674 (vrp_val_is_max): Same.
5675 (value_range_base::nonzero_p): Remove last argument to
5677 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5678 (vrp_val_max): Same.
5679 (vrp_val_is_min): Same.
5680 (vrp_val_is_max): Same.
5681 (value_range_base::set_varying): Remove last argument to vrp_val*.
5682 (value_range_base::dump): Same.
5683 (value_range_base::set): Same.
5684 (value_range_base::normalize_symbolics): Same.
5685 (value_range_base::num_pairs): Same.
5686 (value_range_base::lower_bound): Same.
5687 (value_range_base::upper_bound): Same.
5688 (ranges_from_anti_range): Remove handle_pointers argument.
5689 (value_range_base::singleton_p): Remove last argument to
5690 ranges_from_anti_range.
5692 2019-11-04 Jan Hubicka <jh@suse.cz>
5694 * ipa-reference.c (init_function_info): Initialize
5695 info->global.statics_read.
5697 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5699 * tree-vrp.c (value_range_base::invert): Use constructors to build
5702 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5704 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5705 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5707 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5709 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5712 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5714 * tree-vrp.c (dump_assert_info): New.
5715 (dump_asserts_info): New.
5717 2019-11-04 Jan Hubicka <jh@suse.cz>
5719 * ipa-inline-transform.c: Include ipa-utils.h
5720 (inline_call): Set thunk_expansion flag.
5721 * ipa-utils.h (thunk_expansion): Declare.
5722 * ipa-devirt.c (thunk_expansion): New global var.
5723 (devirt_node_removal_hook): Do not invalidate cache while
5724 doing thunk expansion.
5726 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5728 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5730 2019-11-04 Martin Sebor <msebor@redhat.com>
5732 PR tree-optimization/92349
5733 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5734 memebers have constant sizes.
5736 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5738 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5740 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5741 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5744 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5746 * expr.c (store_constructor): Modify to handle single element vectors.
5747 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5749 (vect_slp_check_for_constructors): New function.
5750 (vect_slp_analyze_bb_1): Call new function to check for vector
5752 (vectorize_slp_instance_root_stmt): New function.
5753 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5755 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5757 2019-11-04 Richard Biener <rguenther@suse.de>
5759 PR tree-optimization/92345
5760 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5761 we produced a reduction chain.
5762 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5763 LOOP_VINFO_REDUCTIONS.
5765 2019-11-04 Jan Hubicka <jh@suse.cz>
5767 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5768 duplicate summaries.
5769 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5771 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5772 access call summaries.
5773 (dump_ipa_call_summary): Be ready for missing edge summaries.
5774 (analyze_function_body): Use get instead of get_create to access
5776 (estimate_calls_size_and_time): Do not access summaries of
5777 inlined edges; sanity check they are missing.
5778 (ipa_call_context::estimate_size_and_time): Use get instead
5779 of get_create to access node summary.
5780 (inline_update_callee_summaries): Do not update depth of
5782 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5784 (ipa_merge_fn_summary_after_inlining): Use get instead
5786 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5787 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5789 (initialize_growth_caches): Update.
5790 (do_estimate_edge_time): Remove redundant copy of context.
5791 (ipa_remove_from_growth_caches): New function.
5792 * ipa-inline.c (flatten_function): Update overall summary
5793 only when optimizing.
5794 (inline_to_all_callers): Update overall summary of function
5796 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5797 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5800 2019-11-04 Richard Biener <rguenther@suse.de>
5802 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5803 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5805 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5807 * ggc-common.c: Include system.h before malloc.h.
5809 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5811 * configure.ac: Pass --enable-obsolete=* and
5812 --enable-option-checking=* down to build configure, and fail
5813 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5814 * configure: Rebuild.
5815 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5816 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5818 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5820 * config.in: Regenerate.
5821 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5822 -mtiny-printf is used without GCC being configured with
5823 --enable-newlib-nano-formatted-io.
5824 * config/msp430/msp430.h (LINK_SPEC): Pass
5825 "--wrap puts --wrap printf" when -mtiny-printf is used.
5826 * config/msp430/msp430.opt: Document -mtiny-printf.
5827 * configure: Regenerate.
5828 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5829 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5830 --enable-newlib-nano-formatted-io is passed.
5831 * doc/invoke.texi: Document -mtiny-printf.
5833 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5835 * configure: Regenerate.
5837 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5839 * config/msp430/driver-msp430.c
5840 (msp430_get_linker_devices_include_path): New spec function.
5841 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5842 (extract_devices_dir_from_exec_prefix): New function.
5843 (extract_devices_dir_from_collect_gcc): New function.
5844 (msp430_check_env_var_for_devices): New function.
5845 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5846 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5847 devices.csv was not found using other methods.
5848 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5850 (msp430_dirname): Likewise.
5851 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5852 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5853 msp430_get_linker_devices_include_path.
5854 (TARGET_EXTRA_PRE_INCLUDES): Define.
5855 * doc/invoke.texi: Document new ways of searching for support files.
5857 2019-11-04 Richard Biener <rguenther@suse.de>
5859 PR tree-optimization/92301
5860 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5861 as required by epilogue generation
5863 2019-11-04 Martin Liska <mliska@suse.cz>
5866 * fold-const.c (operand_compare::hash_operand): Fix field
5867 hashing of CONSTRUCTOR.
5869 2019-11-04 Martin Liska <mliska@suse.cz>
5871 * ggc.h (ggc_delete): New function.
5872 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5873 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5874 (ipa_free_all_node_params): Likewise.
5875 * ipa-sra.c (ipa_sra_analysis): Likewise.
5877 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5879 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5880 set_switch_stmt_execution_predicate, compute_bb_predicates,
5881 will_be_nonconstant_expr_predicate,
5882 phi_result_unknown_predicate,
5883 analyze_function_body): Pass arround params summary.
5884 (ipa_call_context::duplicate_from): New comment;
5885 only duplicate useful values.
5886 (ipa_call_context::equal_to): Only compare useful values.
5887 (remap_edge_summaries): Pass params_summary.
5888 (remap_hint_predicate): Likewise.
5889 (ipa_merge_fn_summary_after_inlining): Likewise.
5890 (inline_read_section): Initialize params summary used flags.
5891 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5892 around param_summary.
5893 (add_condition): Initialized used params summary flags.
5894 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5895 (inline_param_summary::useless_p): New predicate.
5896 (remap_after_inlining, add_condition): Update prototype
5897 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5899 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5901 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5902 (ipa_analyze_virtual_call_uses): Likewise.
5903 (update_indirect_edges_after_inlining): Update param summaries.
5904 (ipa_print_node_params): Print used flags.
5905 (ipa_read_indirect_edge_info): Update param summareis.
5906 * ipa-prop.h (ipa_param_descriptor): Add
5907 used_by_ipa_predicates, used_by_indirect_call
5908 and used_by_polymorphic_call.
5909 (ipa_set_param_used_by_ipa_predicates,
5910 ipa_set_param_used_by_indirect_call,
5911 ipa_set_param_used_by_polymorphic_call,
5912 ipa_is_param_used_by_ipa_predicates,
5913 ipa_is_param_used_by_indirect_call,
5914 ipa_is_param_used_by_polymorphic_call): New inline functions.
5916 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5918 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5920 (ipa_call_context::release): Add ALL parameter.
5921 (ipa_call_context::equal_to): New member function.
5922 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5923 duplicate_form, release, equal_to and exists_p member functoins.
5924 * ipa-inline-analysis.c (node_context_cache_entry): New
5926 (node_context_summary): Likewise.
5927 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5928 node_context_clear): New static vars.
5929 (initialize_growth_caches): New function.
5930 (free_growth_caches): Also delete node_context_cache; output stats.
5931 (do_estimate_edge_time): Cache contexts.
5932 (reset_node_cache): New function.
5933 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5934 (inline_small_functions): Initialize growth caches.
5935 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5937 * ipa-predicate.h (inline_param_summary::equal_to): New.
5938 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5939 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5940 (ipa_agg_jump_function): Implement equal_to member function.
5942 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5944 * ipa-fnsummary.c (inline_read_section): Set vector size
5947 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5949 * ipa-fnsummary.c (ipa_call_context): New constructor.
5950 (estimate_node_size_and_time): Turn to ...
5951 (ipa_call_context::estimate_size_and_time): ... this one.
5952 (ipa_call_context::release): New.
5953 * ipa-fnsummary.h (ipa_call_context): New class.
5954 (estimate_node_size_and_time): Remove.
5955 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5956 do_estimate_edge_hints): Update.
5958 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5960 * config.in: Regenerate.
5961 * configure: Regenerate.
5962 * configure.ac: Check for mallinfo.
5963 * ggc-common.c: Include malloc.h if available;
5965 (report_heap_memory_use): New functoin.
5966 * ggc-page.c (ggc_grow): Do not print "start".
5967 * ggc.h (report_heap_memory_use): Declare.
5968 * pases.c (execute_one_pass): Report memory after IPA passes.
5969 (ipa_read_summaries_1): Likewise.
5970 (ipa_read_optimization_summaries_1): Likewise.
5972 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5974 * gimplify.h (omp_construct_selector_matches): Change return
5975 type to int, add a new SCORES argument.
5976 * gimplify.c (omp_construct_selector_matches): Likewise. If
5977 SCORES is non-NULL, compute scores of each construct.
5978 * omp-general.h (omp_get_context_selector): Declare.
5979 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5980 Adjust omp_construct_selector_matches callers.
5981 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5982 (omp_context_compute_score): New function.
5983 (omp_resolve_declare_variant): Compute scores and decide based on
5987 * configure.ac: Don't look for omp-device-properties files from
5988 installed offloading compilers. Instead add tmake_file snippets
5989 for configured offloading targets and use files they generate.
5990 * Makefile.in (install): Don't depend on
5991 install-omp-device-properties.
5992 (install-omp-device-properties): Remove goal.
5993 * config/i386/t-omp-device: New file.
5994 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5995 * config/nvptx/t-omp-device: New file.
5996 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5997 * configure: Regenerated.
5999 * omp-general.h (omp_context_selector_set_compare): Declare.
6000 * omp-general.c (omp_construct_simd_compare,
6001 omp_context_selector_props_compare, omp_context_selector_set_compare,
6002 omp_context_selector_compare): New functions.
6003 (omp_resolve_declare_variant): Prune variants that are strict subset
6006 2019-11-01 Martin Sebor <msebor@redhat.com>
6012 * doc/invoke.texi (-Wzero-length-bounds): Document.
6013 * gimple-match-head.c (try_conditional_simplification): Use memcpy
6014 instead of a hand-rolled loop to avoid PR 92323.
6015 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
6017 (vrp_prop::check_mem_ref): Handle declared struct objects.
6018 * tree.c (last_field): New function.
6019 (array_at_struct_end_p): Handle MEM_REF.
6020 (get_initializer_for): New helper.
6021 (component_ref_size): Add argument. Rename locals. Call
6022 get_initializer_for instead of fold_ctor_reference. Correct handling
6023 of flexible array members.
6024 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
6026 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6028 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
6029 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
6030 UNSPEC_VSX_CVSPUXDS): Remove.
6031 (vsx_xvcvspdp): New define_expand, old define_insn split to...
6032 (vsx_xvcvspdp_be): ... this. New. And...
6033 (vsx_xvcvspdp_le): ... this. New.
6034 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
6035 (vsx_xvcv<su>xwdp_be): ... this. New. And...
6036 (vsx_xvcv<su>xwdp_le): ... this. New.
6037 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
6038 (vsx_xvcvsp<su>xds_be): ... this. New. And...
6039 (vsx_xvcvsp<su>xds_le): ... this. New.
6041 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6043 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
6044 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
6045 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
6046 UNSPEC_VSX_XVCVSPSXWS): Remove.
6047 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
6048 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
6050 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
6052 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
6053 (UNSPEC_VSX_XVCDPSP): Remove.
6054 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
6055 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
6057 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
6059 * hooks.c (hook_tree_tree_bool_null): New.
6060 * hooks.h (hook_tree_tree_bool_null): Declare.
6061 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
6062 (LANG_HOOKS_DECLS): Add it.
6063 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
6064 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
6065 (lower_omp_target): Handle Fortran array with descriptor in
6066 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
6068 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
6070 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
6071 Assert that the type we store in abi_vector_types is its own
6073 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
6075 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6077 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
6078 from a CONST_INT address when TARGET_THUMB2.
6080 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6082 * config/arm/arm.md (add_not_cin): New insn.
6083 (add_not_shift_cin): Likewise.
6085 2019-10-31 Martin Liska <mliska@suse.cz>
6087 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6088 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6089 and compare_memory_operand.
6091 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6093 * configure.ac: Compute and substitute omp_device_properties and
6094 omp_device_property_deps.
6095 * Makefile.in (generated_files): Add omp-device-properties.h.
6096 (omp-general.o): Depend on omp-device-properties.h.
6097 (omp_device_properties): New make variable.
6098 (omp-device-properties.h, s-omp-device-properties-h,
6099 install-omp-device-properties): New goals.
6100 (install): Depend on install-omp-device-properties for accelerators.
6101 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6102 * target.h (enum omp_device_kind_arch_isa): New enum.
6103 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6105 * omp-general.c: Include omp-device-properties.h.
6106 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6107 colon instead of comma.
6108 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6110 (omp_context_selector_matches): Implement device set arch/isa
6111 selectors, improve device set kind selector handling.
6112 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6113 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6114 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6115 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6116 ix86_omp_device_kind_arch_isa.
6117 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6118 definition from ix86_target_string to file scope.
6119 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6121 (ix86_omp_device_kind_arch_isa): New function.
6122 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6123 isa_opts definitions to file scope.
6124 * config/i386/t-intelmic (omp-device-properties): New goal.
6125 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6126 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6127 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6128 nvptx_omp_device_kind_arch_isa.
6129 * configure: Regenerate.
6130 * doc/tm.texi: Regenerate.
6133 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6134 DECL_BUILT_IN in comment. Remove redundant ()s around return
6136 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6137 before calling fndecl_built_in_p.
6138 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6139 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6140 fndecl_built_in_p on it.
6142 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6144 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6146 2019-10-31 Martin Liska <mliska@suse.cz>
6148 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6149 of cgraph_local_info and use local_info_node instead.
6150 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6151 (bfin_function_ok_for_sibcall): Likewise.
6152 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6153 (must_reload_pic_reg_p): Likewise.
6155 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6158 * tree.h (type_initializer_zero_p): Remove.
6159 * tree.c (type_initializer_zero_p): Remove.
6161 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6163 * doc/invoke.texi (-Wshadow, -Wshadow=global
6164 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6166 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6168 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6169 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6170 and 'target exit data'.
6172 2019-10-30 Martin Jambor <mjambor@suse.cz>
6175 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6176 availability comparison.
6178 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6180 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6181 calls to __mspabi_mpy* functions.
6182 * config/msp430/msp430.md (mulhisi3): New define_expand.
6183 (umulhisi3): New define_expand.
6184 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6185 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6187 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6189 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6190 (msp430_check_plus_not_high_mem): New.
6191 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6192 might be in low memory.
6193 Indicate that a 16-bit absolute address is in lower memory.
6195 2019-10-30 Martin Jambor <mjambor@suse.cz>
6197 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6198 ultimate_alias_target.
6200 2019-10-30 Richard Biener <rguenther@suse.de>
6202 PR tree-optimization/92275
6203 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6204 Copy all loop-closed PHIs.
6206 2019-10-30 Martin Liska <mliska@suse.cz>
6208 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6209 const_tree as function argument.
6210 (func_checker::compare_decl): Likewise.
6211 (func_checker::operand_equal_p): Likewise.
6212 (func_checker::compare_variable_decl): Likewise.
6213 (func_checker::parse_labels): Likewise.
6214 * ipa-icf-gimple.h: Likewise.
6216 2019-10-30 Martin Liska <mliska@suse.cz>
6218 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6219 Do not compare alias sets. It's handled by operand_equal_p.
6221 2019-10-30 Martin Liska <mliska@suse.cz>
6223 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6224 initialize m_compare_polymorphic.
6225 (func_checker::compare_decl): Do not compare polymorphic types.
6226 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6227 * ipa-icf.c (sem_function::equals_private): Do not call
6228 compare_polymorphic_p.
6230 2019-10-30 Martin Liska <mliska@suse.cz>
6232 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6234 (func_checker::compare_memory_operand): Remove.
6235 (func_checker::compare_cst_or_decl): Remove.
6236 (func_checker::operand_equal_valueize): Do not handle
6238 (func_checker::compare_gimple_call): Call compare_operand.
6239 (func_checker::compare_gimple_assign): Likewise.
6240 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6241 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6242 * ipa-icf.h (icf_handled_component_p): Remove.
6244 2019-10-30 Martin Liska <mliska@suse.cz>
6246 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6247 (func_checker::compare_cst_or_decl): Remove handling
6249 (func_checker::compare_operand): Transform to ...
6250 (func_checker::operand_equal_p): ... this.
6251 * ipa-icf-gimple.h (class func_checker): Add
6252 operand_equal_p and hash_operand.
6253 * ipa-icf.c (sem_function::equals_private): Fix
6254 pushing and popping of cfun.
6256 2019-10-30 Martin Liska <mliska@suse.cz>
6258 * fold-const.c (operand_equal_p): Move to ...
6259 (operand_compare::operand_equal_p): ... here.
6260 (operand_compare::verify_hash_value): New.
6261 (add_expr): Move to ...
6262 (operand_compare::hash_operand): ... here.
6263 * fold-const.h (operand_equal_p): Move to the class.
6264 (class operand_compare): New.
6265 * tree.c (add_expr): Remove.
6267 2019-10-30 Martin Liska <mliska@suse.cz>
6269 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6270 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6272 2019-10-30 Martin Liska <mliska@suse.cz>
6276 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6277 from a first_clone in order to get proper LTO section
6279 (cgraph_node::get_untransformed_body):
6280 Use lto_get_section_data where symtab_node::order
6282 * cgraphclones.c (cgraph_node::find_replacement):
6283 Update also symbol order.
6284 * ipa-fnsummary.c (ipa_fn_summary_read):
6285 Use new function lto_get_summary_section_data.
6286 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6287 * ipa-icf.c (sem_item_optimizer::read_summary):
6289 * ipa-prop.c (ipa_prop_read_jump_functions):
6291 (ipcp_read_transformation_summaries): Likewise.
6292 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6293 * lto-cgraph.c (input_node): Add also order_base.
6294 (input_varpool_node): Likewise.
6295 (input_cgraph_1): Assign the order_base.
6296 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6297 * lto-opts.c (lto_write_options): Pass new argument.
6298 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6299 (lto_get_summary_section_data): New.
6300 (lto_get_raw_section_data): Add order argument.
6301 (lto_create_simple_input_block): Likewise.
6302 * lto-section-out.c (lto_destroy_simple_output_block):
6304 * lto-streamer-in.c (lto_input_toplevel_asms):
6305 Use lto_get_summary_section_data.
6306 (lto_input_mode_table): Likewise.
6307 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6308 (lto_output_toplevel_asms): Pass new argument.
6309 (copy_function_or_variable): Likewise.
6310 (produce_lto_section):Likewise.
6311 (produce_symtab): Likewise.
6312 (lto_write_mode_table): Likewise.
6313 (produce_asm_for_decls): Likewise.
6314 * lto-streamer.c (lto_get_section_name): Concat symbol name
6316 * lto-streamer.h (lto_get_section_data): Add order argument.
6317 (lto_get_summary_section_data): New.
6318 (lto_get_raw_section_data): Add order argument.
6319 (lto_get_section_name): Likewise.
6320 * varpool.c (varpool_node::get_constructor): Pass order argument.
6322 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6324 PR tree-optimization/92262
6325 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6326 ubase or cbase here.
6327 (remove_unused_ivs): Unshare comp before using it.
6329 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6331 * ipa-prop.c (update_jump_functions_after_inlining):
6332 Watch for missing summaries.
6334 2019-10-30 Richard Biener <rguenther@suse.de>
6336 PR tree-optimization/65930
6337 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6338 chains also allow a leading and trailing conversion.
6339 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6340 intermediate reduction chains.
6341 (vect_analyze_slp_instance): Likewise. Build a SLP
6342 node for a trailing conversion manually.
6344 2019-10-30 Martin Liska <mliska@suse.cz>
6346 * cgraph.c (cgraph_node::local_info): Transform to ...
6347 (cgraph_node::local_info_node): ... this.
6348 (cgraph_node::dump): Remove cgraph_local_info and
6349 put its fields directly into cgraph_node.
6350 (cgraph_node::get_availability): Likewise.
6351 (cgraph_node::make_local): Likewise.
6352 (cgraph_node::verify_node): Likewise.
6353 * cgraph.h (struct GTY): Likewise.
6354 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6355 (duplicate_thunk_for_node): Likewise.
6356 (cgraph_node::create_clone): Likewise.
6357 (cgraph_node::create_virtual_clone): Likewise.
6358 (cgraph_node::create_version_clone): Likewise.
6359 * cgraphunit.c (cgraph_node::reset): Likewise.
6360 (cgraph_node::finalize_function): Likewise.
6361 (cgraph_node::add_new_function): Likewise.
6362 (analyze_functions): Likewise.
6363 * combine.c (setup_incoming_promotions): Likewise.
6364 * config/i386/i386.c (ix86_function_regparm): Likewise.
6365 (ix86_function_sseregparm): Likewise.
6366 (init_cumulative_args): Likewise.
6367 * ipa-cp.c (determine_versionability): Likewise.
6368 (count_callers): Likewise.
6369 (set_single_call_flag): Likewise.
6370 (initialize_node_lattices): Likewise.
6371 (estimate_local_effects): Likewise.
6372 (create_specialized_node): Likewise.
6373 (identify_dead_nodes): Likewise.
6374 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6375 (ipa_fn_summary_generate): Likewise.
6376 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6377 (process_hsa_functions): Likewise.
6378 * ipa-icf.c (set_local): Likewise.
6379 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6380 * ipa-inline.c (speculation_useful_p): Likewise.
6381 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6382 (ipa_profile): Likewise.
6383 * ipa-split.c (split_function): Likewise.
6384 (execute_split_functions): Likewise.
6385 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6386 (ipa_sra_ipa_function_checks): Likewise.
6387 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6388 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6389 * lto-cgraph.c (lto_output_node): Likewise.
6390 (input_overwrite_node): Likewise.
6391 * multiple_target.c (expand_target_clones): Likewise.
6392 * omp-simd-clone.c (simd_clone_create): Likewise.
6393 * trans-mem.c (expand_call_tm): Likewise.
6394 (ipa_tm_mayenterirr_function): Likewise.
6395 (ipa_tm_diagnose_tm_safe): Likewise.
6396 (ipa_tm_diagnose_transaction): Likewise.
6397 (ipa_tm_create_version): Likewise.
6398 (ipa_tm_transform_calls_redirect): Likewise.
6399 (ipa_tm_execute): Likewise.
6400 * tree-inline.c (expand_call_inline): Likewise.
6402 2019-10-29 Martin Liska <mliska@suse.cz>
6404 * symbol-summary.h (function_summary): Pass memory location
6405 to underlaying hash_map (or vec).
6406 (V>::fast_function_summary): Likewise.
6408 2019-10-29 Martin Liska <mliska@suse.cz>
6410 * ggc.h (ggc_alloc_no_dtor): New function.
6411 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6412 destructor and ggc_free.
6413 (ipa_free_size_summary): Call delete instead
6415 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6416 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6417 (ipa_free_all_edge_args): Call destructor and ggc_free.
6418 (ipa_free_all_node_params): Likewise.
6419 (ipcp_free_transformation_sum): Likewise.
6420 * ipa-prop.h (ipa_check_create_node_params):
6421 Call new ggc_alloc_no_dtor.
6422 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6423 (ipa_sra_analysis): Call destructor and ggc_free.
6424 Replace release with delete operator.
6425 * symbol-summary.h (release): Remove ..
6426 (V>::~fast_function_summary): and move logic here.
6427 Likewise for other classes.
6429 2019-10-29 Richard Biener <rguenther@suse.de>
6431 PR tree-optimization/92260
6432 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6435 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6437 PR tree-optimization/88915
6438 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6439 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6440 and make the valueize function pointer also take a void pointer.
6441 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6442 around vn_valueize, to call it without a context.
6443 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6444 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6445 (~_loop_vec_info): Release epilogue_vinfos.
6446 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6447 number of iterations of epilogue.
6448 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6449 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6450 versioning threshold needed for main loop.
6451 (vect_analyze_loop): Likewise.
6452 (find_in_mapping): New helper function.
6453 (update_epilogue_loop_vinfo): New function.
6454 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6455 on main loop and call update_epilogue_loop_vinfo to update it.
6456 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6457 stmts on loop preheader edge.
6458 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6459 we decided to vectorize epilogues. Update epilogues NITERS and
6460 construct ADVANCE to update epilogues data references where needed.
6461 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6462 (vect_do_peeling, vect_update_inits_of_drs,
6463 determine_peel_for_niter, vect_analyze_loop): Add or update
6465 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6466 created loop_vec_info's for epilogues when available. Otherwise analyse
6467 epilogue separately.
6469 2019-10-29 Richard Biener <rguenther@suse.de>
6471 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6474 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6476 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6477 index for the COND_EXPR from stmt_info rather than reduc_info.
6479 2019-10-29 Richard Biener <rguenther@suse.de>
6481 PR tree-optimization/65930
6482 * tree-vect-loop.c (check_reduction_path): Relax single-use
6483 check allowing out-of-loop uses.
6484 (vect_is_simple_reduction): SLP reduction chains cannot have
6485 intermediate stmts used outside of the loop.
6486 (vect_create_epilog_for_reduction): The adjustment might need
6488 (vectorizable_reduction): Annotate live stmts of the reduction
6489 chain with STMT_VINFO_REDUC_DEF.
6490 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6492 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6494 * calls.c (pass_by_reference): Leave the target to decide whether
6495 POLY_INT_CST-sized arguments should be passed by value or reference,
6496 rather than forcing them to be passed by reference.
6497 (must_pass_in_stack_var_size): Likewise.
6498 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6499 V31_REGNUM to P15_REGNUM.
6500 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6501 Take an extra "silent_p" parameter, defaulting to false.
6502 (aarch64_sve::svbool_type_p): Declare.
6503 (aarch64_sve::nvectors_if_data_type): Likewise.
6504 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6505 (aarch64_frame::reg_offset): Turn into poly_int64s.
6506 (aarch64_frame::save_regs_size): Likewise.
6507 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6508 (aarch64_frame::sve_callee_adjust): Likewise.
6509 (aarch64_frame::spare_reg_reg): Likewise.
6510 (ARM_PCS_SVE): New arm_pcs value.
6511 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6512 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6513 (CUMULATIVE_ARGS::silent_p): Likewise.
6514 (BITS_PER_SVE_PRED): New macro.
6515 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6516 function. Reject aarch64_vector_pcs attributes on SVE functions.
6517 (aarch64_attribute_table): Use the above handler.
6518 (aarch64_sve_abi): New function.
6519 (aarch64_sve_argument_p): Likewise.
6520 (aarch64_returns_value_in_sve_regs_p): Likewise.
6521 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6522 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6523 descriptor for them.
6524 (aarch64_simd_decl_p): Delete.
6525 (aarch64_emit_cfi_for_reg_p): New function.
6526 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6527 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6528 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6529 as partly clobbered for the SVE PCS.
6530 (aarch64_function_ok_for_sibcall): Check whether the two functions
6531 use the same ABI, rather than checking specifically for whether
6532 they're aarch64_vector_pcs functions.
6533 (aarch64_pass_by_reference): Raise an error for attempts to pass
6534 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6535 if there are not enough free registers left, or if the argument is
6537 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6538 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6540 (aarch64_layout_arg): Take a function_arg_info rather than
6541 individual properties. Handle SVE predicates, vectors and tuples.
6542 Raise an error if they are passed to unprototyped functions.
6543 (aarch64_function_arg): If the silent_p flag is set, suppress the
6544 usual error about using float registers without TARGET_FLOAT.
6545 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6546 it in the cumulative_args structure. Initialize aapcs_nprn and
6547 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6548 error about using float registers without TARGET_FLOAT.
6549 If the silent_p flag is not set, also raise an error about
6550 using SVE functions when SVE is disabled.
6551 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6552 and call it for SVE functions too. Update aapcs_nprn similarly
6553 to the other register counts.
6554 (aarch64_layout_frame): If a big-endian function needs to save
6555 and restore Z8-Z15, search for a spare predicate that it can use.
6556 Store SVE predicates at the bottom of the register save area,
6557 followed by SVE vectors, then followed by the normal slots.
6558 Keep pointing the hard frame pointer at the base of the normal slots,
6559 above the SVE vectors. Update the various frame creation and
6560 tear-down strategies for the new layout, initializing the new
6561 sve_callee_adjust field. Add an additional layout for frames
6562 whose saved registers are all SVE registers.
6563 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6564 (aarch64_return_address_signing_enabled): Likewise.
6565 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6566 aarch64_reg_save_mode.
6567 (aarch64_adjust_sve_callee_save_base): New function.
6568 (aarch64_add_cfa_expression): Move earlier in file. Take the
6569 saved register as an rtx rather than a register number and use
6570 its mode for the MEM slot.
6571 (aarch64_save_callee_saves): Remove the mode argument and instead
6572 use aarch64_reg_save_mode to get the mode of each save slot.
6573 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6574 offsets. Allow GP offsets to be saved at a VL-based offset from
6575 the stack, handling this case using the frame pointer if available
6576 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6577 big-endian SVE functions; use normal moves for other SVE saves.
6578 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6579 returns true. Add explicit CFA notes when not storing via the
6580 stack pointer. Do not try to pair SVE saves.
6581 (aarch64_restore_callee_saves): Cope with poly_int64 register
6582 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6583 use normal moves for other SVE restores. Only add CFA restore notes
6584 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6586 (aarch64_get_separate_components): Always keep the first SVE save
6587 in the prologue if we need to use it as a stack probe. Don't allow
6588 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6589 Likewise the spare predicate register that they need. Update the
6590 offset calculation to account for the SVE save area. Use the
6591 appropriate range check for SVE LDR and STR instructions.
6592 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6593 (aarch64_process_components): Likewise. Update the offset
6594 calculation to account for the SVE save area. Only mark the
6595 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6596 Do not try to pair SVE saves.
6597 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6598 reg_offsets. When handling the final allocation, expect the
6599 first SVE register save to be part of the initial allocation
6600 and for it to act as a probe at SP. Account for the SVE callee
6601 save area in the dump information.
6602 (aarch64_expand_prologue): Update the frame diagram. Fold the
6603 SVE callee allocation into the initial allocation if stack clash
6604 protection is enabled. Use new variables to track the offset
6605 of the frame chain (and hard frame pointer) from the current
6606 stack pointer, and likewise the offset of the bottom of the
6607 register save area. Update calls to aarch64_save_callee_saves
6608 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6609 saving the FP&SIMD registers. Save the predicate registers.
6610 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6611 into account when setting the stack pointer from the frame pointer,
6612 and when deciding whether we can inherit the initial adjustment
6613 amount from the prologue. Restore the predicate registers after
6614 the vector registers, then apply sve_callee_adjust, then restore
6615 the general registers.
6616 (aarch64_secondary_reload): Don't use secondary SVE reloads
6618 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6619 (aarch64_short_vector_p): Return false for SVE types.
6620 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6621 at the start of the function. Return false for SVE types.
6622 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6624 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6625 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6626 to big-endian targets for bytewise moves.
6627 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6629 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6630 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6631 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6633 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6634 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6635 aarch64-sve-builtins-base.o to extra_objs. Add
6636 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6637 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6638 (aarch64-sve-builtins-shapes.o): Likewise.
6639 (aarch64-sve-builtins-base.o): New rules.
6640 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6641 (aarch64_resolve_overloaded_builtin): Likewise.
6642 (aarch64_check_builtin_call): Likewise.
6643 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6644 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6646 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6647 (aarch64_svprfop): New enum.
6648 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6649 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6650 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6651 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6652 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6653 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6654 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6655 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6656 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6657 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6658 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6659 (aarch64_sve::mangle_builtin_type): Likewise.
6660 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6661 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6662 (aarch64_sve::expand_builtin): Likewise.
6663 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6664 (aarch64_sve_int_mode): Likewise.
6665 (aarch64_ptrue_all_mode): New function.
6666 (aarch64_convert_sve_data_to_pred): Make public.
6667 (svprfop_token): New function.
6668 (aarch64_output_sve_prefetch): Likewise.
6669 (aarch64_fold_sve_cnt_pat): Likewise.
6670 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6671 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6672 instead of gen_while_ult.
6673 (aarch64_replace_reg_mode): Make public.
6674 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6675 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6676 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6677 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6678 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6679 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6680 (aarch64_sve_ptrue_svpattern_p): Likewise.
6681 (aarch64_sve_pred_valid_immediate): Check
6682 aarch64_sve_ptrue_svpattern_p.
6683 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6684 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6686 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6687 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6688 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6689 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6690 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6691 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6693 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6694 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6695 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6696 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6697 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6698 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6699 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6700 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6701 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6702 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6703 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6704 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6705 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6706 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6707 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6708 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6709 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6710 (Vesize): Handle partial vector modes.
6711 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6713 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6715 (s, paired_extend, inc_dec): New code attributes.
6716 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6717 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6718 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6719 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6720 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6721 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6723 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6724 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6725 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6726 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6727 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6728 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6729 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6730 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6731 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6732 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6733 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6734 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6735 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6736 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6737 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6738 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6740 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6741 (binqops_op, binqops_op_rev, last_op): New int attributes.
6742 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6743 (fn, ab): New int attributes.
6744 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6745 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6746 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6747 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6749 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6750 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6751 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6752 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6753 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6755 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6756 (brk_reg_con, brk_reg_opno): New int attributes.
6757 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6758 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6759 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6761 (max_elem_bits): New int attribute.
6762 (min_elem_bits): Handle UNSPEC_RBIT.
6763 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6764 TRUNCATE as well as SUBREG.
6765 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6766 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6767 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6768 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6769 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6770 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6771 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6772 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6773 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6774 (aarch64_gather_scale_operand_h): New predicates.
6775 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6776 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6777 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6778 (*aarch64_sve_reinterpret<mode>): Allow any source register
6779 instead of requiring an exact match.
6780 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6781 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6782 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6783 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6784 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6785 (aarch64_update_ffrt): New patterns.
6786 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6787 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6788 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6789 (@aarch64_ld<fn>f1<mode>): New patterns.
6790 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6791 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6792 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6793 (@aarch64_ldnt1<mode>): New patterns.
6794 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6795 the scalar part of the address.
6796 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6797 scalar part of the addresse and add an alternative for handling
6799 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6800 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6801 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6802 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6803 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6804 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6805 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6806 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6807 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6808 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6809 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6810 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6811 (@aarch64_sve_prefetch<mode>): New patterns.
6812 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6813 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6814 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6815 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6816 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6817 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6818 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6819 (@aarch64_stnt1<mode>): New patterns.
6820 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6821 the scalar part of the address.
6822 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6823 the scalar part of the addresse and add an alternative for handling
6825 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6826 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6827 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6828 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6829 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6830 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6832 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6833 (extract_last_<mode>): Generalize to...
6834 (@extract_<LAST:last_op>_<mode>): ...this.
6835 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6836 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6837 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6838 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6839 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6840 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6841 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6842 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6843 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6844 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6845 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6846 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6847 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6848 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6849 (*aarch64_adr_uxtw_unspec): Likewise.
6850 (*aarch64_adr_uxtw): Rename to...
6851 (*aarch64_adr_uxtw_and): ...this.
6852 (@aarch64_adr<mode>_shift): New expander.
6853 (*aarch64_adr_shift_sxtw): New pattern.
6854 (aarch64_<su>abd<mode>_3): Rename to...
6855 (@aarch64_pred_<su>abd<mode>): ...this.
6856 (<su>abd<mode>_3): Update accordingly.
6857 (@aarch64_cond_<su>abd<mode>): New expander.
6858 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6859 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6860 (*<su>mul<mode>3_highpart): Rename to...
6861 (@aarch64_pred_<optab><mode>): ...this.
6862 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6863 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6864 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6865 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6866 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6867 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6868 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6869 (*v<ASHIFT:optab><mode>3): Rename to...
6870 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6871 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6872 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6873 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6874 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6875 (@cond_asrd<mode>): New expander.
6876 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6877 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6878 (*sdiv_pow2<mode>3): Delete.
6879 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6880 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6881 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6882 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6883 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6884 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6885 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6886 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6887 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6888 (*add<SVE_F:mode>3): Rename to...
6889 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6891 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6892 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6893 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6894 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6895 (*sub<SVE_F:mode>3): Rename to...
6896 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6898 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6899 (*fabd<SVE_F:mode>3): Rename to...
6900 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6901 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6902 (*mul<SVE_F:mode>3): Rename to...
6903 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6905 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6906 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6908 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6909 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6910 (*<nlogical><PRED_ALL:mode>3): Rename to...
6911 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6912 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6913 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6914 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6915 (aarch64_pred_<logical_nn><mode>_z): ...this.
6916 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6917 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6918 (*fma<SVE_I:mode>4): Rename to...
6919 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6920 (*fnma<SVE_I:mode>4): Rename to...
6921 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6922 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6923 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6924 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6925 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6926 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6927 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6928 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6929 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6930 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6931 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6932 (@aarch64_sve_tmad<mode>): Likewise.
6933 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6934 (*aarch64_sel_dup<mode>): Rename to...
6935 (@aarch64_sel_dup<mode>): ...this.
6936 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6937 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6938 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6939 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6940 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6941 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6942 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6943 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6944 (*fcm<cmp_op><mode>): Rename to...
6945 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6946 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6947 (*fcmuo<mode>): Rename to...
6948 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6949 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6950 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6951 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6952 (fold_extract_last_<mode>): Generalize to...
6953 (@fold_extract_<last_op>_<mode>): ...this.
6954 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6955 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6956 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6957 DImode result explicit.
6958 (reduc_plus_scal_<mode>): Update accordingly.
6959 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6960 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6961 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6962 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6963 (*aarch64_sve_tbl<mode>): Rename to...
6964 (@aarch64_sve_tbl<mode>): ...this.
6965 (@aarch64_sve_compact<mode>): New pattern.
6966 (*aarch64_sve_dup_lane<mode>): Rename to...
6967 (@aarch64_sve_dup_lane<mode>): ...this.
6968 (@aarch64_sve_dupq_lane<mode>): New pattern.
6969 (@aarch64_sve_splice<mode>): Likewise.
6970 (aarch64_sve_<perm_insn><mode>): Rename to...
6971 (@aarch64_sve_<perm_insn><mode>): ...this.
6972 (*aarch64_sve_ext<mode>): Rename to...
6973 (@aarch64_sve_ext<mode>): ...this.
6974 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6975 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6977 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6978 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6980 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6982 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6983 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6984 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6985 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6987 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6988 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6990 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6991 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6992 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6994 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6995 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6996 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6997 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6998 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
7000 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
7001 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
7002 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
7003 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
7004 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
7005 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
7006 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
7007 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
7008 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
7009 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
7010 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
7011 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
7012 (aarch64_sve_cnt_pat): Likewise.
7013 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7014 (*aarch64_sve_incsi_pat): Likewise.
7015 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7016 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7017 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7018 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7019 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7020 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
7021 (*aarch64_sve_decsi_pat): Likewise.
7022 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
7023 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
7024 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
7025 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
7026 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
7027 (@aarch64_pred_cntp<mode>): Likewise.
7028 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7030 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7031 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7032 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7034 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7036 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
7037 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7038 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
7039 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7040 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
7041 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7042 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
7044 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
7045 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
7046 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7048 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
7050 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
7052 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
7053 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
7055 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
7056 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
7058 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
7059 * config/aarch64/arm_sve.h: New file.
7060 * config/aarch64/aarch64-sve-builtins.h: Likewise.
7061 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
7062 * config/aarch64/aarch64-sve-builtins.def: Likewise.
7063 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
7064 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
7065 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
7066 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
7067 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
7068 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
7070 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7072 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
7074 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
7077 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7079 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7080 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7082 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7083 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7084 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7085 (aarch64_hard_regno_nregs): Handle the new register classes.
7086 (aarch64_hard_regno_mode_ok): Likewise.
7087 (aarch64_regno_regclass): Likewise.
7088 (aarch64_class_max_nregs): Likewise.
7089 (aarch64_register_move_cost): Likewise.
7090 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7091 as general register_operands.
7093 2019-10-29 Martin Liska <mliska@suse.cz>
7095 * ggc-common.c: One can't subtract unsigned types
7096 in compare function.
7098 2019-10-29 Martin Liska <mliska@suse.cz>
7100 * cgraphunit.c (symbol_table::compile): Pass
7101 title as dump_memory_report argument.
7102 * toplev.c (dump_memory_report): New argument.
7103 (finalize): Pass new argument.
7104 * toplev.h (dump_memory_report): Add argument.
7106 2019-10-29 Martin Liska <mliska@suse.cz>
7108 * ggc-common.c: Move Leak to the first column.
7110 2019-10-29 Martin Liska <mliska@suse.cz>
7112 * cgraphunit.c (symbol_table::compile): Remove argument
7113 for dump_memory_report.
7114 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7115 (compare_final): Remove in order to make report
7117 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7118 * mem-stats.h (mem_alloc_description::get_list):
7120 (mem_alloc_description::dump): Likewise here.
7121 * toplev.c (dump_memory_report): Remove final
7123 (finalize): Likewise.
7124 * toplev.h (dump_memory_report): Remove argument.
7126 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7128 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7129 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7130 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7131 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7134 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7136 * coretypes.h (string_int_pair): New typedef.
7137 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7138 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7139 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7141 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7143 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7144 (simulate_builtin_function_decl): Declare.
7145 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7146 (LANG_HOOKS_INITIALIZER): Include it.
7147 * langhooks.c (add_builtin_function_common): Rename to...
7148 (build_builtin_function): ...this. Add a location parameter and use
7149 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7151 (add_builtin_function): Update accordingly, passing the returned
7152 decl to the lang hook.
7153 (add_builtin_function_ext_scope): Likewise
7154 (simulate_builtin_function_decl): New function.
7156 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7158 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7159 example, use actual names of supported offload targets.
7162 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7164 2019-10-28 Martin Sebor <msebor@redhat.com>
7166 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7167 (handle_store): Pass argument to get_addr_stridx.
7169 2019-10-28 Martin Sebor <msebor@redhat.com>
7171 PR tree-optimization/92226
7172 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7173 the offset is in the open range outlined by SI's length.
7175 2019-10-28 Martin Sebor <msebor@redhat.com>
7178 * doc/cpp.texi (__has_builtin): Document.
7179 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7181 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7184 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7185 doubleword and low doubleword result of multiplication on
7188 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7189 pure qualifier to the built-in.
7190 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7192 (struct mips_builtin_description): Add is_pure flag.
7193 (mips_init_builtins): Mark built-in as pure if the flag in the
7194 corresponding mips_builtin_description struct is set.
7196 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7197 alternative which covers the floating-point input value. Also
7198 forbid the split of insert.d pattern for floating-point values.
7200 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7202 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7203 * config/riscv/riscv-sr.c: New file.
7204 * config/riscv/riscv.c (riscv_reorg): New function.
7205 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7206 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7207 (riscv_remove_unneeded_save_restore_calls): Declare.
7208 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7210 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7212 PR tree-optimization/92163
7213 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7214 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7215 before calling bitmap_set_bit.
7216 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7217 delete_dead_or_redundant_assignment.
7218 (dse_dom_walker::dse_optimize_stmt): Likewise.
7219 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7221 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7224 * tree-vect-stmts.c (vectorizable_condition): Support
7225 EXTRACT_LAST_REDUCTION with fully-masked loops.
7227 2019-10-28 Richard Biener <rguenther@suse.de>
7229 PR tree-optimization/92252
7230 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7231 STMT_VINFO_REDUC_IDX when swapping operands.
7233 2019-10-28 Richard Biener <rguenther@suse.de>
7235 PR tree-optimization/92241
7236 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7237 we failed to update the reduction index do not use the pattern
7238 stmts for the reduction chain.
7239 (vectorizable_reduction): When the reduction chain is corrupt,
7241 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7242 fail to update the reduction chain.
7244 2019-10-28 Richard Biener <rguenther@suse.de>
7246 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7247 STMT_VINFO_REDUC_IDX from the actual stmt.
7248 (vect_transform_reduction): Likewise.
7249 (vectorizable_reduction): Compute the reduction chain length,
7250 do not recompute the reduction operand index. Remove no longer
7251 necessary restriction for condition reduction chains.
7253 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7256 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7257 condition for V2DImode.
7259 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7261 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7262 Remove %k operand modifier.
7263 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7265 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7267 PR rtl-optimization/92007
7268 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7269 call it after reload if hot/cold partitioning has been done.
7270 (class pass_postreload_jump): Rename to
7271 pass_jump_after_combine.
7272 (make_pass_postreload_jump): Rename to
7273 make_pass_jump_after_combine.
7274 * passes.def(pass_postreload_jump): Move before reload, rename
7275 to pass_jump_after_combine.
7276 * tree-pass.h (make_pass_postreload_jump): Rename to
7277 make_pass_jump_after_combine.
7279 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7282 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7283 for missing EDGE_REF
7284 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7286 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7288 PR tree-optimization/88760
7289 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7290 Enable -funroll-loops for -O2 and above.
7291 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7292 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7293 do not turn on web and rngreg implicitly, if the unroller is not
7296 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7298 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7301 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7303 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7304 * cgraph.h (cgraph_node::rtl_info): Likewise.
7306 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7308 * ipa-cp.c (propagate_constants_across_call): If args are not available
7309 just drop everything to varying.
7310 (find_aggregate_values_for_callers_subset): Watch for missing
7312 (find_more_scalar_values_for_callers_subs): Likewise.
7313 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7314 update_jump_functions_after_inlining, propagate_controlled_uses):
7315 Watch for missing summaries.
7316 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7318 (ipa_write_node_info): Watch for missing summaries.
7319 (ipa_read_edge_info): Create new ref.
7320 (ipa_edge_args_sum_t): Add remove.
7321 (IPA_EDGE_REF_GET_CREATE): New macro.
7322 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7324 (remap_edge_change_prob): Likewise.
7326 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7328 * ipa-inline-transform.c (inline_call): update function summaries
7329 after expanidng thunk.
7331 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7333 * ipa-icf.c (sem_function::merge): Update function summaries.
7334 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7336 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7338 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7339 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7340 operand already has scalar mode.
7341 (iptr): Remove SF/DF.
7343 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7346 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7347 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7350 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7352 * config/i386/sse.md
7353 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7354 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7355 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7356 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7357 <sse>_vmmaskcmp<mode>3):
7358 Change predicates from vector_operand to nonimmediate_operand,
7359 constraints xBm to xm, since scalar operations don't need
7360 memory address alignment.
7361 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7362 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7363 round_saeonly_nimm_predicate with
7364 round_saeonly_nimm_scalar_predicate.
7365 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7366 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7367 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7368 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7369 avx512f_vmfmadd_<mode>_mask3<round_name>,
7370 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7371 *avx512f_vmfmsub_<mode>_mask<round_name>,
7372 avx512f_vmfmsub_<mode>_mask3<round_name>,
7373 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7374 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7375 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7376 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7377 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7378 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7379 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7380 cvtusi2<ssescalarmodesuffix>32<round_name>,
7381 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7382 round_nimm_predicate with round_nimm_scalr_predicate.
7383 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7384 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7385 avx512er_vmrcp28<mode><round_saeonly_name>,
7386 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7387 ): Replace round_saeonly_nimm_predicate with
7388 round_saeonly_nimm_scalar_predicate.
7389 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7390 vector_operand with nonimmediate_operand.
7391 * config/i386/subst.md (round_scalar_nimm_predicate,
7392 round_saeonly_scalar_nimm_predicate): Replace
7393 vector_operand with nonimmediate_operand.
7395 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7398 * config/i386/i386.md (*rcpsf2_sse): Add
7399 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7400 (*rsqrtsf2_sse): Ditto.
7401 (*sqrt<mode>2_sse): Ditto.
7402 (sse4_1_round<mode>2): separate constraint vm, add
7403 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7404 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7406 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7408 (*sse_vmrsqrtv4sf2): Ditto.
7409 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7410 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7411 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7412 <iptr> pointer size modifier since vround support memory operand.
7414 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7417 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7420 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7421 Tobias Burnus <tobias@codesourcery.com>
7423 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7424 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7427 2019-10-25 Richard Biener <rguenther@suse.de>
7429 PR tree-optimization/92222
7430 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7431 (_slp_oprnd_info::second_pattern): Likewise.
7432 (_slp_oprnd_info::any_pattern): New.
7433 (vect_create_oprnd_info): Adjust.
7434 (vect_get_and_check_slp_defs): Compute whether any stmt is
7436 (vect_build_slp_tree_2): Avoid building up a node from scalars
7437 if any of the operand defs, not just the first, is in a pattern.
7439 2019-10-25 Richard Biener <rguenther@suse.de>
7441 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7442 swapping if we actually have to modify the IL on a shared stmt.
7443 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7444 because we no longer modify the IL.
7446 2019-10-25 Martin Liska <mliska@suse.cz>
7448 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7450 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7452 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7453 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7454 handled by vect_transform_reduction. Allow fully-masked loops
7455 to be used with reduction chains.
7456 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7457 operations in fully-masked loops.
7458 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7459 operations in fully-masked loops.
7461 2019-10-25 Richard Biener <rguenther@suse.de>
7463 * tree-vect-loop.c (vectorizable_reduction): Verify
7464 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7466 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7467 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7470 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7472 * gimplify.h (omp_construct_selector_matches): Declare.
7473 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7474 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7475 called function if needed for flag_openmp.
7476 (gimplify_scan_omp_clauses): Set ctx->code.
7477 (omp_construct_selector_matches): New function.
7478 * omp-general.h (omp_constructor_traits_to_codes,
7479 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7480 * omp-general.c (omp_constructor_traits_to_codes,
7481 omp_context_selector_matches, omp_resolve_declare_variant): New
7484 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7486 * config/rx/rx.c (rx_print_operand): Likewise.
7487 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7488 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7489 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7491 * genemit.c (emit_c_code): Likewise.
7492 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7494 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7496 * symbols-summary.h (fast_function_summary<T *, V>::release,
7497 fast_call_summary<T *, V>::release): Free m_vector.
7499 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7501 * cgraphunit.c (symbol_table::process_new_functions): Call
7502 ipa_free_size_summary.
7503 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7504 (devirtualization_time_bonus): Update.
7505 (ipcp_propagate_stage): Update.
7506 * ipa-fnsummary.c (ipa_size_summaries): New.
7507 (ipa_fn_summary_alloc): Alloc size summary.
7508 (dump_ipa_call_summary): Update.
7509 (ipa_dump_fn_summary): Update.
7510 (analyze_function_body): Update.
7511 (compute_fn_summary): Likewise.
7512 (ipa_get_stack_frame_offset): New function.
7513 (inline_update_callee_summaries): Do not update frame offsets.
7514 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7515 remove call and function summary.
7516 (ipa_update_overall_fn_summary): Update.
7517 (inline_read_section): Update.
7518 (ipa_fn_summary_write): Update.
7519 (ipa_free_fn_summary): Do not remove summaries.
7520 (ipa_free_size_summary): New.
7521 (release summary pass): Also run at WPA.
7522 * ipa-fnsummary.h (ipa_size_summary): Declare.
7523 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7524 estimated_self_stack_size.
7525 (ipa_size_summary_t): New type.
7526 (ipa_size_summaries): Declare.
7527 (ipa_free_size_summary): Declare.
7528 (ipa_get_stack_frame_offset): Declare.
7529 * ipa-icf.c (sem_function::merge): Update.
7530 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7531 (estimate_growth): Update.
7532 (growth_likely_positive): Update.
7533 (clone_inlined_nodes): Update.
7534 (inline_call): Update.
7535 * ipa-inline.c (caller_growth_limits): Update.
7536 (edge_badness): Update.
7537 (recursive_inlining): Update.
7538 (inline_small_functions): Update.
7539 (inline_to_all_callers_1): Update.
7540 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7542 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7544 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7545 (uavg<mode>3_ceil): ... This.
7546 (altivec_vavgs<VI_char>): Rename to...
7547 (avg<mode>3_ceil): ... This.
7548 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7549 VAVGUW, VAVGSW): Adjust.
7551 2019-10-24 Nathan Sidwell <nathan@acm.org>
7553 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7555 2019-10-24 Martin Liska <mliska@suse.cz>
7557 * symbol-summary.h (gt_pch_nx): Mark all functions
7558 with gcc_unreachable as we do not expect to be called.
7560 2019-10-24 Richard Biener <rguenther@suse.de>
7562 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7563 chains try harder with operand swapping and instead of
7564 putting a shifted chain into the reduction operands put
7565 a repetition of the final reduction op there as if we'd
7566 reassociate the expression.
7568 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7570 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7571 statics_not_read and statics_not_written to statics_read and
7572 statics_written respectively.
7573 (no_module_statics): New static var.
7574 (ipa_reference_get_not_read_global): Rename to ...
7575 (ipa_reference_get_read_global): ... this.
7576 (ipa_reference_get_not_written_global): Rename to ...
7577 (ipa_reference_get_written_global): ... this.
7578 (dump_static_vars_set_to_file): Dump no_module_statics.
7579 (copy_static_var_set): Add for propagation parameter.
7580 (ipa_init): Initialize no_module_statics.
7581 (ipa_ref_opt_summary_t::duplicate): Update.
7582 (ipa_ref_opt_summary_t::remove): Update.
7583 (propagate): Update.
7584 (write_node_summary_p): Look correctly for bitmap differences.
7585 (ipa_reference_write_optimization_summary): Update.
7586 (ipa_reference_read_optimization_summary): Update.
7588 (ipa_reference_get_not_read_global): Rename to ...
7589 (ipa_reference_get_read_global): ... this.
7590 (ipa_reference_get_not_written_global): Rename to ...
7591 (ipa_reference_get_written_global): ... this.
7592 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7593 (call_may_clobber_ref_p_1): Update.
7595 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7597 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7599 (msp430_hard_regno_nregs_with_padding): Remove.
7601 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7603 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7604 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7605 shift amount is between 1 and 4.
7606 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7609 2019-10-24 Richard Biener <rguenther@suse.de>
7611 PR tree-optimization/92205
7612 * tree-vect-loop.c (vectorizable_reduction): Restrict
7613 search for alternate vectype_in to lane-reducing patterns
7616 2019-10-24 Richard Biener <rguenther@suse.de>
7618 PR tree-optimization/92203
7619 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7620 Skip eliminating conversion stmts inserted by insertion.
7622 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7624 * config/s390/s390.c (s390_get_thread_pointer): Use
7625 gen_get_thread_pointer.
7626 (s390_expand_split_stack_prologue): Likewise.
7627 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7628 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7629 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7630 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7633 2019-10-24 Richard Biener <rguenther@suse.de>
7635 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7636 SLP discovery fails try to handle the reduction as part
7637 of SLP reduction discovery.
7639 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7641 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7643 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7644 attribute if it exists, rather than the insn size. If we use the
7645 insn size, adjust the size to remove the extra size that prefixed
7647 (rs6000_adjust_insn_length): New function.
7648 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7649 update the instruction sized if prefixed instructions are used.
7650 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7651 (non_prefixed_length attribute): Delete.
7652 (num_insns attribute): New insn attribute to return the number of
7654 (max_prefixed_insns attribute): New insn attribute to return the
7655 maximum number of prefixed instructions in an insn.
7656 (length attribute): Do not adjust for prefix instructions here,
7657 punt to ADJUST_INSN_LENGTH.
7658 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7659 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7660 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7661 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7662 max_prefixed_insns and num_insns.
7664 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7665 (movtd_64bit_nodm): Reformat.
7666 (mov<mode>_32bit): Reformat.
7667 (mov<mode>_softfloat): Reformat.
7668 (FMOVE128_GPR splitter): Reformat.
7669 (DIFD splitter): Reformat.
7670 (TI2 splitter): Reformat.
7671 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7672 bits of the offset for the memory address are non-zero, use PLWA
7673 if prefixed instructions are available.
7675 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7677 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7679 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7681 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7684 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7686 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7687 (cmp_symbol_files): New.
7688 (lto_output): Copy sections in file order.
7689 * lto-streamer.h (lto_file_decl_data): Add field order.
7691 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7693 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7694 * ipa-reference.c (reference_vars_map_t): new type.
7695 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7696 (ipa_reference_var_uid): Implement.
7697 (varpool_node_hooks): New static var.
7698 (varpool_removal_hook): New function.
7699 (is_improper): Do not check bitmap for id==-1
7700 (get_static_name): Update.
7701 (ipa_init): Initialize new datastructures.
7702 (analyze_function): Do not recompute ids.
7703 (propagate): Free reference_vars_to_consider.
7704 (stream_out_bitmap): Update.
7705 (ipa_reference_read_optimization_summary): Update.
7707 2019-10-23 qing zhao <qing.zhao@oracle.com>
7709 PR gcov-profile/91971
7710 * coverage.c (coverage_init): Mangle the full path of filename when
7711 filename is a absolute path.
7713 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7715 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7716 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7717 (msp430_has_hwmult): New.
7718 (msp430_output_labelref):
7719 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7720 * config/msp430/msp430.md (mulhisi3): Likewise.
7721 (umulhisi3): Likewise.
7722 (mulsidi3): Likewise.
7723 (umulsidi3): Likewise.
7725 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7728 * params.def (inline-heuristics-hint-percent): Set to 600.
7730 2019-10-23 Richard Biener <rguenther@suse.de>
7732 PR tree-optimization/65930
7733 * tree-vect-loop.c (check_reduction_path): Allow conversions
7734 that only change the sign.
7735 (vectorizable_reduction): Relax latch def stmts we handle further.
7737 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7740 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7741 (remove_unused_ivs): Use it instead of get_computation_at. When
7742 choosing best candidate, only consider candidates where
7743 get_debug_computation_at actually returns non-NULL.
7745 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7747 PR tree-optimization/92131
7748 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7749 range would be symbolic, drop to varying for any explicit overflow
7750 in the constant part or if neither range is a singleton.
7752 2019-10-23 Martin Liska <mliska@suse.cz>
7755 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7758 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7760 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7761 int_mode_for_mode rather than mode_for_int_vector for scalars.
7763 2019-10-23 Richard Biener <rguenther@suse.de>
7765 PR tree-optimization/92179
7766 * tree-vect-stmts.c (vectorizable_shift): For shift args
7767 that are all the same remove type restriction in the SLP case.
7768 Adjust SLP code to handle converting of the shift arg to
7769 only apply in case the modes are different.
7771 2019-10-23 Martin Liska <mliska@suse.cz>
7774 * ipa-inline.c (recursive_inlining): Do not print
7775 when curr->count is not initialized.
7777 2019-10-23 Richard Biener <rguenther@suse.de>
7779 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7780 op from scalars in case there's a constant operand in its
7783 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7785 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7786 against out of range max skip or log values.
7788 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7790 * cgraph.c (dump_graphviz): Change name to dump_name
7792 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7794 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7795 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7796 subtraction from a carry operation.
7798 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7800 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7802 2019-10-22 Richard Biener <rguenther@suse.de>
7804 PR tree-optimization/92173
7805 * tree-vect-loop.c (vectorizable_reduction): If
7806 vect_transform_reduction cannot handle code-generation try without
7807 the single-def-use-cycle optimization. Pass optab_vector to
7808 optab_for_tree_code to get vector shifts as that's what we'd
7811 2019-10-22 Michael Matz <matz@suse.de>
7814 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7815 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7816 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7818 2019-10-22 Richard Biener <rguenther@suse.de>
7820 PR tree-optimization/92173
7821 * tree-vect-loop.c (vectorizable_reduction): If
7822 vect_transform_reduction cannot handle code-generation try without
7823 the single-def-use-cycle optimization. Pass optab_vector to
7824 optab_for_tree_code to get vector shifts as that's what we'd
7827 2019-10-22 Martin Liska <mliska@suse.cz>
7829 * diagnostic-format-json.cc (json_from_expanded_location):
7830 Use json::integer_number.
7831 * gcov.c (output_intermediate_json_line): Use new
7832 json::integer_number.
7833 (output_json_intermediate_file): Likewise.
7834 * json.cc (number::print): Move to ...
7835 (float_number::print): ... this.
7836 (integer_number::print): New.
7837 (test_writing_numbers): Move to ...
7838 (test_writing_float_numbers): ... this.
7839 (test_writing_integer_numbers): New.
7840 (json_cc_tests): Register test_writing_integer_numbers.
7841 * json.h (class value): Add forward declaration
7842 for float_number and integer_number.
7843 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7844 (class number): Move to ...
7845 (class float_number): ... this.
7846 (class integer_number): New.
7847 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7848 Use json::integer_number.
7849 (optrecord_json_writer::location_to_json): Likewise.
7850 (optrecord_json_writer::profile_count_to_json): Likewise.
7851 (optrecord_json_writer::pass_to_json): Likewise.
7853 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7855 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7856 autodetected_vector_size rather than vector_size is zero.
7857 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7858 Set autodetected_vector_size immediately after calling
7859 vect_analyze_loop_2. Check for a fatal error before advancing
7862 2019-10-21 Jason Merrill <jason@redhat.com>
7864 * lock-and-run.sh: Check for process existence rather than timeout.
7866 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7868 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7869 widening multiplication.
7871 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7873 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7874 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7876 (subsi3_carryin_shift): Separate into register and constant controlled
7877 alternatives. Use shift_amount_operand for operand 4. Set shift
7878 attribute and simplify type attribute.
7879 (subsi3_carryin_shift_alt): Likewise.
7880 (rsbsi3_carryin_shift): Likewise.
7881 (rsbsi3_carryin_shift_alt): Likewise.
7882 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7883 and register controlled shifts into distinct alternatives.
7884 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7885 (andsi_not_shiftsi_si_scc): Likewise.
7886 (arm_cmpsi_negshiftsi_si): Likewise.
7887 (not_shiftsi): Remove redundant M constraint from alternative 1.
7888 (not_shiftsi_compare0): Likewise.
7889 (arm_cmpsi_insn): Remove redundant alternative 2.
7890 (cmpsi_shift_swp): Likewise.
7891 (sub_shiftsi): Likewise.
7892 (sub_shiftsi_compare0_scratch): Likewise.
7893 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7894 (thumb2_cmpsi_neg_shiftsi): Likewise.
7896 2019-10-21 Richard Biener <rguenther@suse.de>
7898 PR tree-optimization/92162
7899 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7900 STMT_VINFO_REDUC_IDX in reduc_info.
7901 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7903 2019-10-21 Richard Biener <rguenther@suse.de>
7905 * tree-vectorizer.h (_slp_tree::ops): New member.
7906 (SLP_TREE_SCALAR_OPS): New.
7907 (vect_get_slp_defs): Adjust prototype.
7908 * tree-vect-slp.c (vect_free_slp_tree): Release
7909 SLP_TREE_SCALAR_OPS.
7910 (vect_create_new_slp_node): Initialize it. New overload for
7911 initializing by an operands array.
7912 (_slp_oprnd_info::ops): New member.
7913 (vect_create_oprnd_info): Initialize it.
7914 (vect_free_oprnd_info): Release it.
7915 (vect_get_and_check_slp_defs): Populate the operands array.
7916 Do not swap operands in the IL when not necessary.
7917 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7918 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7919 swap operands in the operands array. Do not swap operands in
7921 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7922 (vect_gather_slp_loads): Fix.
7923 (vect_detect_hybrid_slp_stmts): Likewise.
7924 (vect_slp_analyze_node_operations_1): Search for a internal
7925 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7926 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7927 the def-type push/pop dance.
7928 (vect_get_constant_vectors): Compute number_of_vectors here.
7929 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7930 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7931 (vect_get_slp_defs): Simplify greatly.
7932 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7933 (vect_transform_reduction): Likewise.
7934 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7935 (vectorizable_call): Likewise.
7936 (vectorizable_operation): Likewise.
7937 (vectorizable_load): Likewise.
7938 (vectorizable_condition): Likewise.
7939 (vectorizable_comparison): Likewise.
7941 2019-10-21 Richard Biener <rguenther@suse.de>
7943 PR tree-optimization/92161
7944 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7947 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7949 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7950 (aarch64_rndr): New define_insn.
7951 (aarch64_rndrrs): Likewise.
7952 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7953 (TARGET_RNG): Likewise.
7954 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7956 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7957 Add fourth argument in prototype.
7958 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7959 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7960 (aarch64_init_rng_builtins): Define.
7961 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7962 (aarch64_expand_rng_builtin): Define.
7963 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7965 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7966 __ARM_FEATURE_RNG when TARGET_RNG.
7967 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7969 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7971 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7972 alignment is more restrictive.
7974 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7976 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7977 (vect_update_max_nunits): Update comment.
7978 (current_vector_size): Delete.
7979 * tree-vect-stmts.c (current_vector_size): Likewise.
7980 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7981 of current_vector_size.
7982 (get_mask_type_for_scalar_type): Likewise.
7983 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7984 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7985 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7986 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7987 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7988 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7990 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7992 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7993 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7994 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7997 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7999 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
8000 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
8001 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
8003 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8005 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8007 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
8009 (vect_set_loop_condition_masked): Update call accordingly.
8011 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8013 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
8014 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
8015 (simple_integer_narrowing): Update call accordingly.
8016 (vectorizable_conversion): Likewise.
8018 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8020 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
8021 (vectorizable_call): Update call accordingly.
8023 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8025 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
8026 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
8027 (duplicate_and_interleave): Update call accordingly.
8028 * tree-vect-loop.c (vectorizable_reduction): Likewise.
8030 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8032 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
8033 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
8034 (vect_get_constant_vectors): Update call accordingly.
8035 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
8037 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8039 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
8040 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
8041 (vect_prologue_cost_for_slp_op): Update call accordingly.
8042 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
8043 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
8044 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
8045 (get_mask_type_for_scalar_type): Likewise.
8046 (vect_get_vector_types_for_stmt): Likewise.
8047 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
8048 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
8049 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
8050 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
8051 (vect_split_statement, vect_convert_input): Likewise.
8052 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
8053 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
8054 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
8055 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
8056 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
8057 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
8058 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
8059 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
8060 (vect_recog_mask_conversion_pattern): Likewise.
8061 (vect_add_conversion_to_pattern): Likewise.
8062 (vect_recog_gather_scatter_pattern): Likewise.
8063 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
8064 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
8066 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8068 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
8069 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
8070 (vect_check_load_store_mask): Update call accordingly.
8071 (vect_get_mask_type_for_stmt): Likewise.
8072 * tree-vect-patterns.c (check_bool_pattern): Likewise.
8073 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
8074 (vect_convert_mask_for_vectype): Likewise.
8076 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8078 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8080 (vect_recog_dot_prod_pattern): Update call accordingly.
8081 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8082 (vect_recog_widen_sum_pattern): Likewise.
8084 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8086 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8087 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8088 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8091 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8093 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8094 get_vectype_for_scalar_type_and_size instead of
8095 get_vectype_for_scalar_type.
8097 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8099 * common.opt (-fcommon): Fix description.
8101 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8103 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8104 * config/i386/i386.c (ix86_pre_reload_split): New function.
8105 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8106 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8107 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8108 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8109 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8110 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8111 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8112 *<shift_insn><dwi>3_doubleword_mask,
8113 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8114 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8115 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8116 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8117 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8118 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8119 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8120 *avx2_<code>v8qiv8si2<mask_name>_2,
8121 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8122 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8123 *avx512f_<code>v8qiv8di2<mask_name>_2,
8124 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8125 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8126 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8127 sse4_2_pcmpistr): Likewise.
8129 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8131 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8132 now defaults to https.
8134 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8136 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8137 skip non-zero array accesses.
8139 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8141 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8142 and return a boolean success value. Move the allocation and
8143 initialization of the bb_vec_info to...
8144 (vect_slp_bb_region): ...here. Update call accordingly.
8145 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8146 than in vect_slp_analyze_bb_1.
8148 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8150 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8151 when processing the given datarefs for the first time and
8152 check_datarefs subsequently.
8153 (vect_slp_bb_region): New function, split out of...
8154 (vect_slp_bb): ...here. Don't recompute the region bounds and
8155 dataref sets when retrying with a different vector size.
8157 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8158 Uroš Bizjak <ubizjak@gmail.com>
8161 * config/i386/predicates.md (int_nonimmediate_operand): New special
8163 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8164 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8165 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8166 define_insn_and_split patterns.
8168 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8170 * config/rs6000/rs6000.md: Delete out--of-date comment about
8171 special-casing integer loads.
8173 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8175 * escaped_string.h (escaped_string): New header.
8176 * tree.c (escaped_string): Remove escaped_string class.
8178 2019-10-18 Martin Sebor <msebor@redhat.com>
8180 PR tree-optimization/92157
8181 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8182 compute_string_length to return a negative result.
8184 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8186 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8187 (negvsi3, negvdi3): Delete.
8188 (negdi2_compare): Delete.
8190 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8192 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8194 (subdi3_compare1): Delete pattern.
8195 (subvsi3_borrow): New insn pattern.
8196 (subvsi3_borrow_imm): Likewise.
8198 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8200 * config/arm/arm.md (subv<mode>4): Delete.
8201 (subvdi4): New expander pattern.
8202 (subvsi4): Likewise. Handle some immediate values.
8203 (subvsi3_intmin): New insn pattern.
8204 (subvsi3): Likewise.
8205 (subvsi3_imm1): Likewise.
8206 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8209 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8211 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8212 incoming operands. Early split the calculation into SImode
8214 (usubvsi3_borrow): New insn pattern.
8215 (usubvsi3_borrow_imm): Likewise.
8217 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8219 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8220 (usubvsi4): New pattern. Allow some immediate values for inputs.
8221 (usubvdi4): New pattern.
8223 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8225 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8226 or second operand of the PLUS inside a DImode equality test to be
8227 sign-extend when selecting CC_Vmode.
8228 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8230 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8232 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8233 (addsi3_cin_vout_0): Likewise.
8234 (adddi3_compareV): Delete.
8236 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8238 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8239 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8240 to transform this back into the summation version when that leads
8243 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8245 * config/arm/arm.md (addv<mode>4): Delete.
8246 (addvsi4): New pattern. Handle immediate values that the architecture
8248 (addvdi4): New pattern.
8249 (addsi3_compareV): Rename to ...
8250 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8251 and use COMPARE rather than NE.
8252 (addsi3_compareV_imm): New pattern.
8253 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8254 a signed-overflow check.
8256 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8258 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8259 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8261 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8262 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8264 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8266 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8267 (addsi3_cin_cout_imm_insn): Likewise.
8268 (adddi3_compareC): Delete insn.
8269 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8271 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8273 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8274 * (uaddv<mode>4): Delete expansion pattern.
8275 (uaddvsi4): New pattern.
8276 (uaddvdi4): Likewise.
8277 (addsi3_compareC): Delete pattern, change callers to use
8279 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8280 reduce the number of alternatives and re-work type attribute handling.
8281 (addsi3_compare_op2): Clean up constraints to reduce the number of
8282 alternatives and re-work type attribute handling.
8283 (compare_addsi2_op0): Likewise.
8284 (compare_addsi2_op1): Likewise.
8286 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8288 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8289 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8290 for DImode operands.
8291 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8292 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8294 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8295 (arm_cmpdi_unsigned): Delete.
8297 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8299 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8300 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8301 unchanged only if that will be cheaper.
8302 (arm_select_cc_mode): Recognize a swapped comparison that will
8303 be regenerated using RSBS or RSCS. Relax restriction on selecting
8305 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8307 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8309 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8311 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8312 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8314 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8316 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8317 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8319 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8320 of EQ, NE, LT, GE, LTU and GEU.
8321 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8322 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8323 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8324 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8325 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8327 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8329 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8331 (cstoredi4): Similarly, but for operand 3.
8332 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8333 canonicalization of unsigned compares with a constant on Arm.
8334 Prefer using const+1 and adjusting the comparison over swapping the
8335 operands whenever the original constant was not valid.
8336 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8338 (arm_validize_comparison): Do not force invalid DImode operands to
8341 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8343 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8344 return CC_Zmode if comparing against a constant where one word is
8346 (arm_gen_compare_reg): Split DImode handling to ...
8347 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8348 against simple constants.
8349 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8351 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8353 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8354 (rsbsi3_carryin_shift_alt): Likewise.
8356 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8358 * config/arm/arm.md (negscc_borrow): New pattern.
8359 (mov_negscc): Don't split if the insn would match negscc_borrow.
8360 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8361 (thumb2_mov_negscc_strict_it): Likewise.
8363 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8365 * config/arm/arm.c (arm_insn_cost): New function.
8366 (TARGET_INSN_COST): Override default definition.
8368 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8370 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8373 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8375 * config/arm/arm.c (strip_carry_operation): New function.
8376 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8379 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8381 * config/arm/predicates.md (arm_carry_operation): New special
8383 * config/arm/iterators.md (LTUGEU): Delete iterator.
8384 (cnb): Delete code attribute.
8385 (optab): Delete ltu and geu elements.
8386 * config/arm/arm.md (addsi3_carryin): Renamed from
8387 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8388 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8389 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8390 (addsi3_carryin_clobercc): Similarly.
8391 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8394 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8396 * config/arm/arm.md (arm_subdi3): Delete insn.
8397 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8399 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8401 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8402 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8403 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8405 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8406 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8408 (subdi3): Rewrite to early-expand the sub-operations.
8409 (rsb_im_compare): New pattern.
8411 (negdi2_insn): Delete.
8412 (arm_negsi2): Correct type attribute to alu_imm.
8413 (negsi2_0compare): New insn pattern.
8414 (negsi2_carryin): New insn pattern.
8416 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8418 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8421 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8423 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8424 to match canonical form.
8426 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8428 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8429 (extend<mode>di2): Likewise.
8431 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8433 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8434 * config/arm/arm.c (arm_decompose_di_binop): New function.
8435 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8436 If not generating Thumb-1 code, decompose the operation into 32-bit
8438 * add0si_carryin_<optab>: New pattern.
8440 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8442 * arm.md (adddi3): Only accept register operands.
8443 (arm_adddi3): Convert to simple insn with no split. Do not accept
8445 (adddi_sesidi_di): Delete patern.
8446 (adddi_zesidi_di): Likewise.
8447 (uaddv<mode>4): Use LTU as condition for branch.
8448 (adddi3_compareV): Convert to simple insn with no split.
8449 (addsi3_compareV_upper): Delete pattern.
8450 (adddi3_compareC): Convert to simple insn with no split. Correct
8451 flags setting expression.
8452 (addsi3_compareC_upper): Delete pattern.
8453 (addsi3_compareC): Correct flags setting expression.
8454 (subdi3_compare1): Convert to simple insn with no split.
8455 (subsi3_carryin_compare): Delete pattern.
8456 (arm_subdi3): Convert to simple insn with no split.
8457 (subdi_zesidi): Delete pattern.
8458 (subdi_di_sesidi): Delete pattern.
8459 (subdi_zesidi_di): Delete pattern.
8460 (subdi_sesidi_di): Delete pattern.
8461 (subdi_zesidi_zesidi): Delete pattern.
8462 (negvdi3): Use s_register_operand.
8463 (negdi2_compare): Convert to simple insn with no split.
8464 (negdi2_insn): Likewise.
8465 (negsi2_carryin_compare): Delete pattern.
8466 (negdi_zero_extendsidi): Delete pattern.
8467 (arm_cmpdi_insn): Convert to simple insn with no split.
8468 (negdi2): Don't call gen_negdi2_neon.
8469 * config/arm/neon.md (adddi3_neon): Delete pattern.
8470 (subdi3_neon): Delete pattern.
8471 (negdi2_neon): Delete pattern.
8472 (splits for negdi2_neon): Delete splits.
8474 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8477 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8480 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8482 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8483 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8484 new multilib variants and new mappings.
8486 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8489 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8491 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8492 Richard Sandiford <richard.sandiford@arm.com>
8495 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8496 and define hashmap traits for it.
8497 (loop_vec_info::scalar_cond_masked_set): New member.
8498 (vect_record_loop_mask): Adjust prototype.
8499 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8501 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8502 vect_record_loop_mask.
8503 (vectorizable_live_operation): Likewise.
8504 (vect_record_loop_mask): New param scalar_mask. Add entry
8505 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8506 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8507 Pass it as last arg to vect_record_loop_mask.
8508 (vectorizable_call): Pass scalar_mask as last arg to
8509 vect_record_loop_mask.
8510 (vectorizable_store): Likewise.
8511 (vectorizable_load): Likewise.
8512 (vectorizable_condition): Check if another part of vectorized code
8513 applies loop_mask to condition or to it's inverse, and if yes,
8514 apply loop_mask to result of vector comparison.
8516 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8518 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8520 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8522 PR tree-optimization/92056
8523 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8524 before calling compute_builtin_object_size.
8526 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8529 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8530 (movdi_low_st): Delete.
8531 * config/rs6000/rs6000.c
8532 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8533 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8534 * config/rs6000/rs6000.md (movsi_low): Delete.
8536 2019-10-17 Jason Merrill <jason@redhat.com>
8538 * gimplify.h (get_initialized_tmp_var): Add default argument to
8540 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8541 NULL post_p argument.
8542 * targhooks (std_gimplify_va_arg_expr): Likewise.
8544 2019-10-17 Richard Biener <rguenther@suse.de>
8546 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8547 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8548 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8549 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8550 * tree-vect-loop.c (vect_is_simple_reduction): Set
8551 STMT_VINFO_REDUC_CODE.
8552 (vectorizable_reduction): Remove dead and redundant code, use
8553 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8555 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8557 Fix breakage introduced by r276985.
8559 * config/avr/avr.c (avr_option_override): Remove set of
8560 PARAM_ALLOW_STORE_DATA_RACES.
8561 * common/config/avr/avr-common.c (avr_option_optimization_table)
8562 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8564 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8566 * config/i386/i386.h (processor_costs): Add clear_ratio.
8567 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8568 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8569 of 6 and move_ratio in all cost models.
8571 2019-10-17 Richard Biener <rguenther@suse.de>
8573 * tree-vect-loop.c (check_reduction_path): Compute reduction
8575 (vect_is_simple_reduction): Remove special-case of single-stmt
8576 reduction path detection.
8578 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8580 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8582 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8584 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8585 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8586 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8587 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8588 New combine patterns.
8589 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8591 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8593 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8595 * tree-vrp.c (value_range_base::dump): Display +INF for both
8596 pointers and integers when appropriate.
8598 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8600 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8601 when to use versioning threshold.
8603 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8605 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8606 outlined code from ...
8607 (vect_analyze_loop_2): ... here.
8609 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8611 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8612 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8613 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8615 2019-10-17 Richard Biener <rguenther@suse.de>
8617 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8618 (vect_is_simple_reduction): Move all validity checks ...
8619 (vectorizable_reduction): ... here. Compute whether we
8620 need a fold-left reduction here.
8621 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8622 both overloads, check needs_fold_left_reduction_p directly.
8623 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8625 2019-10-17 Richard Biener <rguenther@suse.de>
8627 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8628 TARGET_MEM_REF creation.
8630 2019-10-17 Richard Biener <rguenther@suse.de>
8632 PR tree-optimization/92129
8633 * tree-vect-loop.c (vectorizable_reduction): Also fail
8634 on GIMPLE_SINGLE_RHS.
8636 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8638 PR tree-optimization/92056
8639 * tree-object-size.c (cond_expr_object_size): Return early if then_
8640 processing resulted in unknown size.
8642 PR tree-optimization/92115
8643 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8644 temporary if it could trap.
8646 2019-10-17 Richard Biener <rguenther@suse.de>
8649 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8650 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8652 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8654 * tree-ssa-strlen.c (maybe_invalidate): Use
8655 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8657 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8658 Jim Wilson <jimw@sifive.com>
8660 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8661 regs to SIBCALL_REGS.
8662 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8663 passing regs to SIBCALL_REGS.
8665 2019-10-16 Martin Sebor <msebor@redhat.com>
8667 PR tree-optimization/83821
8668 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8669 the length of a string when available.
8670 (handle_builtin_memset) Add argument.
8671 (handle_store, strlen_check_and_optimize_call): Same.
8672 (check_and_optimize_stmt): Same. Pass it to callees.
8674 2019-10-16 Martin Sebor <msebor@redhat.com>
8676 PR tree-optimization/91996
8677 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8679 (compare_nonzero_chars): Add an overload.
8680 (count_nonzero_bytes): Add an argument. Call overload above.
8681 Handle non-constant lengths in some range.
8682 (handle_store): Add an argument.
8683 (check_and_optimize_stmt): Pass an argument to handle_store.
8685 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8687 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8689 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8691 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8692 operands which correspond to the same input-output register to
8693 have the same pseudo assigned to them.
8695 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8697 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8699 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8701 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8702 Apply reasonable limit to symbol offsets.
8704 2019-10-16 Richard Biener <rguenther@suse.de>
8706 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8707 (vect_is_simple_reduction): Delay checking to
8708 vectorizable_reduction and relax the checking.
8709 (vectorizable_reduction): Check we have a simple use. Check
8710 for bogus condition reductions.
8711 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8712 are looking at the last stmt in a pattern sequence when
8713 filling in backedge PHI values.
8715 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8716 Jiufu Guo <guojiufu@linux.ibm.com>
8719 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8720 the callee explicitly disables some isa_flags the caller is using.
8722 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8724 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8726 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8728 * genmodes.c (mode_data::order): New field.
8729 (blank_mode): Update accordingly.
8730 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8731 (make_vector_modes): Likewise.
8732 (VECTOR_MODES): Update use accordingly.
8733 (cmp_modes): Sort by the new order field ahead of sorting by size.
8734 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8735 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8736 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8737 (aarch64_classify_vector_mode): Handle the new partial modes.
8738 (aarch64_vl_bytes): New function.
8739 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8740 when counting the number of registers in an SVE mode.
8741 (aarch64_class_max_nregs): Likewise.
8742 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8744 (aarch64_classify_address): Treat partial vectors analogously
8746 (aarch64_print_address_internal): Consolidate the printing of
8747 MUL VL addresses, using aarch64_vl_bytes as the number of
8748 bytes represented by "VL".
8749 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8751 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8753 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8754 rather than known_lt when choosing frame layouts.
8756 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8758 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8759 that all the adjustments add up to the full frame size.
8760 Use crtl->outgoing_args_size directly as the final adjustment
8763 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8765 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8766 "frame" reference instead of always referring directly to
8767 "cfun->machine->frame".
8769 2019-10-16 Richard Biener <rguenther@suse.de>
8771 PR tree-optimization/92119
8772 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8773 against missing bswap lhs.
8775 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8778 * poly-int.h (constant_lower_bound_with_limit): New function.
8779 (constant_upper_bound_with_limit): Likewise.
8780 * doc/poly-int.texi: Document them.
8781 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8782 into the worst-case INTEGER_CST bounds.
8784 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8787 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8788 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8789 * ipa-predicat.h (struct expr_eval_op): New struct.
8790 (expr_eval_ops): New typedef.
8791 (struct condition): Add type and param_ops fields, remove size field.
8792 (add_condition): Replace size parameter with type parameter, add
8793 param_ops parameter.
8794 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8795 (predicate::add_clause): Add comparisons on type and param_ops.
8796 (dump_condition): Add debug dump for param_ops.
8797 (remap_after_inlining): Adjust call arguments to add_condition.
8798 (add_condition): Replace size parameter with type parameter, add
8799 param_ops parameter. Unshare constant value used in conditions.
8800 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8801 parameter expressions using param_ops.
8802 (decompose_param_expr): New function.
8803 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8804 to replace call to unmodified_parm_or_parm_agg_item.
8805 (set_switch_stmt_execution_predicate): Likewise.
8806 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8808 (inline_read_section): Read param_ops from summary stream.
8809 (ipa_fn_summary_write): Write param_ops to summary stream.
8811 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8813 PR rtl-optimization/92107
8814 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8817 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8819 * config/darwin.c: Update description of fix and continue.
8821 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8823 * config/darwin.c (darwin_binds_local_p): Update to call
8824 default_binds_local_p_3 () directly. amend comments.
8826 2019-10-15 Richard Biener <rguenther@suse.de>
8828 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8829 (tree_is_indexable): Use it.
8830 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8831 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8832 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8834 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8836 * config/msp430/msp430.md (zero_extendqipsi2): New.
8837 (zero_extendqisi2): Optimize case where src register and base dst
8838 register are the same.
8839 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8840 (zero_extendpsisi2): Optimize r->m case.
8841 Add unnamed insn patterns to catch insns combine searches for when
8842 optimizing pointer manipulation.
8844 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8846 * config/msp430/msp430.md: Group zero_extend* insns together.
8848 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8850 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8852 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8854 (msp430_subreg): Likewise.
8855 (msp430_split_addsi): Likewise.
8856 (msp430_print_operand_addr): Likewise.
8857 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8858 (USE_STORE_POST_INCREMENT): Define.
8859 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8860 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8861 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8862 (msp430_general_dst_operand): New.
8863 (msp430_general_dst_nonv_operand): New.
8864 (msp430_nonsubreg_operand): Remove.
8865 (msp430_nonsubreg_dst_operand): New.
8866 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8867 of defunct msp430_nonsubreg_operand.
8868 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8870 2019-10-15 Richard Biener <rguenther@suse.de>
8872 PR tree-optimization/91929
8873 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8874 (get_or_alloc_expr_for_name): Initialize it.
8875 (get_or_alloc_expr_for_constant): Likewise.
8876 (phi_translate_1): Copy it.
8877 (create_expression_by_pieces): Use the original location
8878 of the expression for the inserted stmt.
8879 (compute_avail): Record the location of the stmt for the
8880 expressions created.
8882 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8884 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8885 before using tree_to_uhwi.
8887 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8889 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8891 2019-10-15 Richard Biener <rguenther@suse.de>
8893 PR tree-optimization/92094
8894 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8895 do not adjust the reduction definition def type.
8896 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8897 defines the latch argument of the PHI.
8899 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8902 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8903 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8904 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8905 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8906 _mm_maskz_roundscale_round_sd): New intrinsics.
8907 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8908 __builtin_ia32_rndscales?_mask_round builtins instead of
8909 __builtin_ia32_rndscales?_round.
8910 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8911 __builtin_ia32_rndscalesd_round): Remove.
8912 (__builtin_ia32_rndscaless_mask_round,
8913 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8914 * config/i386/sse.md
8915 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8916 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8917 ... this, adjust and add subst atrributes to make it maskable.
8919 2019-10-15 Richard Biener <rguenther@suse.de>
8922 * common.opt (fallow-store-data-races): New.
8923 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8924 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8925 * doc/invoke.texi (fallow-store-data-races): Document.
8926 (--param allow-store-data-races): Remove docs.
8927 * opts.c (default_options_table): Enable -fallow-store-data-races
8929 (default_options_optimization): Do not enable --param
8930 allow-store-data-races at -Ofast.
8931 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8932 instead of PARAM_ALLOW_STORE_DATA_RACES.
8933 * tree-ssa-loop-im.c (execute_sm): Likewise.
8935 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8937 PR tree-optimization/92085
8938 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8939 instead of calling it unconditionally after
8940 delete_dead_or_redundant_assignment and fix indentation.
8942 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8944 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8946 (*fmsub<SDF:mode>4): Likewise.
8947 *fnmsub<SDF:mode>4): Likewise.
8948 (*fnmadd<SDF:mode>4): Likewise.
8950 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8952 * doc/tree-ssa.texi: Update renamed macro name.
8954 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8956 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8959 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8961 * config/darwin.c: Use unsigned ints for the picbase label
8962 counters, initialise the vars explicitly.
8963 (update_pic_label_number_if_needed): Move a variable declaration
8964 to where it's needed.
8965 (machopic_output_function_base_name): Use a more strict checking
8966 assert, and and unsigned int for the picbase label counter.
8967 (machopic_get_function_picbase): Likewise.
8969 2019-10-14 Richard Biener <rguenther@suse.de>
8972 * dse.c (scan_insn): Use param max_active_local_stores.
8973 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8974 based on optimization level.
8975 * loop-invariant.c (move_loop_invariants): Adjust
8976 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8977 * opts.c (default_options_optimization): Do not adjust
8978 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8979 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8981 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8983 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8985 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8987 * config/arm/arm.c (arm_option_override): Don't override sched
8990 2019-10-14 Richard Biener <rguenther@suse.de>
8992 PR tree-optimization/92069
8993 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8994 cycles do not set vect_nested_cycle on the latch definition.
8996 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8998 * function-abi.h (expr_callee_abi): Declare.
8999 * function-abi.cc (expr_callee_abi): New function.
9001 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
9003 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
9005 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
9006 non-zero being represented as [1,MAX].
9008 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
9010 * tree-sra.c (dump_access): Add missing braces.
9012 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9014 * config/darwin.c (machopic_indirection_name): Rework the
9015 function to emit linker-visible symbols only for indirections
9016 in the data section. Clean up the code and update comments.
9018 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
9020 * config/darwin.c (machopic_indirect_data_reference): Remove
9023 2019-10-13 Nathan Sidwell <nathan@acm.org>
9025 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
9027 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9029 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
9032 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
9034 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
9035 so non-virutal are before virutals.
9036 (output_function): Avoid body modifications.
9038 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9040 * config/pa/pa.c (pa_output_call): Load descriptor address to register
9041 %r22. Load function address before global pointer.
9042 (pa_attr_length_indirect_call): Adjust length of inline versions of
9044 (pa_output_indirect_call): Remove fast inline version of $$dyncall
9045 before normal cases. Update inline $$dyncall sequences to preserve
9046 function descriptor address in register %r22.
9047 (TRAMPOLINE_CODE_SIZE): Adjust.
9048 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
9049 register %r22 contains trampoline address.
9050 (pa_trampoline_init): Adjust offsets.
9051 (pa_trampoline_adjust_address): Likewise.
9052 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
9054 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9057 * config/darwin.c (machopic_indirection): New field to flag
9058 non-lazy-symbol-pointers in the data section.
9059 (machopic_indirection_name): Compute if an indirection should
9060 appear in the data section.
9061 (machopic_output_data_section_indirection): New callback split
9062 from machopic_output_indirection.
9063 (machopic_output_stub_indirection): Likewise.
9064 (machopic_output_indirection): Retain the code for non-lazy
9065 symbol pointers in their regular section.
9066 (machopic_finish): Use the new callbacks to order the indirection
9069 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9071 * config/darwin-protos.h (machopic_finish): Delete.
9072 * config/darwin.c (machopic_finish): Make static.
9074 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
9076 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
9077 sections when building kernel extension code.
9079 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9081 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9084 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9086 * config/pa/pa.c (pa_option_override): Remove trailing comma
9089 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9092 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9093 <case VEC_COND_EXPR>: Return false with *handled = false.
9094 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9095 recursing on the first operand.
9096 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9097 instead of tree_could_trap_p.
9098 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9100 2019-10-11 Jim Wilson <jimw@sifive.com>
9102 PR rtl-optimization/91860
9103 * combine.c (subst): If new_rtx is a constant, also check for
9104 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9106 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9108 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9109 INTVAL when calling store_bit_field.
9111 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9113 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9116 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9118 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9119 vectorizable_live_operation.
9120 (vectorizable_live_operation): Adjust parameters.
9121 * tree-vect-stmts.c (vect_init_vector,
9122 vect_gen_widened_results_half): Fix typo in function comment.
9123 (can_vectorize_live_stmts): Adjust function comment.
9124 Adjust parameters. Adjust call to vectorizable_live_operation.
9125 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9126 (vect_transform_stmt): Adjust function comment. Adjust call to
9127 can_vectorize_live_stmts.
9128 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9130 2019-10-11 Richard Biener <rguenther@suse.de>
9132 PR tree-optimization/90883
9133 PR tree-optimization/91091
9134 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9135 alias-sets both for recording VN table entries and continuing
9136 walking after translating through copies. Handle same-sized
9137 reads from SSA names by returning the plain SSA name.
9138 (eliminate_dom_walker::eliminate_stmt): Properly handle
9139 non-size precision stores in redundant store elimination.
9141 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9143 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9144 (ggc_collect): Dump later to not interfere with release_page dump.
9145 (ggc_trim): New function.
9146 * ggc-none.c (ggc_trim): New.
9147 * ggc.h (ggc_trim): Declare.
9149 2019-10-11 Richard Biener <rguenther@suse.de>
9151 PR tree-optimization/92066
9152 PR tree-optimization/92046
9153 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9154 Fix bogus cost model check.
9156 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9158 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9159 (LANG_HOOKS_DECLS): Add it.
9160 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9161 update comment for omp_is_optional_argument.
9162 * omp-general.c (omp_is_allocatable_or_ptr): New.
9163 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9164 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9165 Fortran's optional arguments and allocatable/pointer scalars
9166 with use_device_addr.
9168 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9171 * config/s390/2827.md: Add new opcodes.
9172 * config/s390/2964.md: Likewise.
9173 * config/s390/3906.md: Likewise.
9174 * config/s390/8561.md: Likewise.
9175 * config/s390/s390-builtins.def (s390_vfchesb): Use
9176 the new vec_cmpgev4sf_quiet_nocc.
9177 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9178 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9179 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9180 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9181 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9182 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9183 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9184 * config/s390/s390-modes.def (CCSFPS): New mode.
9185 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9186 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9187 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9188 (s390_expand_vec_compare): Use non-signaling patterns where
9190 (s390_reverse_condition): Support CCSFPS.
9191 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9192 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9193 (asm_fcmp_op): Likewise.
9194 (*smaxv2df3_vx): Use pattern for quiet comparison.
9195 (*sminv2df3_vx): Likewise.
9196 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9197 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9198 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9199 (vec_cmplt<mode>_quiet_nocc): New expander.
9200 (vec_cmpge<mode>_quiet_nocc): New pattern.
9201 (vec_cmple<mode>_quiet_nocc): New expander.
9202 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9203 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9204 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9205 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9206 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9207 (vec_cmpungt<mode>): New expander.
9208 (vec_cmpunge<mode>): Likewise.
9209 (vec_cmpuneq<mode>): Use quiet patterns.
9210 (vec_cmpltgt<mode>): Allow only on z14+.
9211 (vec_cmpordered<mode>): Use quiet patterns.
9212 (vec_cmpunordered<mode>): Likewise.
9213 (VEC_CMP_EXPAND): Add ungt and unge.
9215 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9217 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9219 * lto-streamer-out.c: Include tree-dfa.h.
9220 (output_cfg): Do not use cfun.
9221 (lto_prepare_function_for_streaming): New.
9222 (output_function): Do not push cfun; do not initialize loop optimizer.
9223 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9224 * passes.c (ipa_write_summaries): Use it.
9225 (ipa_write_optimization_summaries): Do not modify bodies.
9226 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9227 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9228 * tree-ssa-dse.c (pass_dse::execute): Update use of
9229 renumber_gimple_stmt_uids.
9230 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9232 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9234 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9235 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9237 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9239 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9241 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9242 Also define DFP macros for these conditions.
9243 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9244 DEC128_SUBNORMAL_MIN): Do not define.
9245 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9246 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9248 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9249 Sandra Loosemore <sandra@codesourcery.com>
9252 * doc/lto.texi (IPA): Reference to the IPA passes.
9253 * doc/passes.texi (Pass manager): Add node IPA passes and
9254 description for each IPA pass.
9256 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9258 * ipa-reference.c: Do not include splay-tree.h
9259 (reference_vars_to_consider): Turn to hash map.
9260 (get_static_name, ipa_init, analyze_function, propagate,
9261 stream_out_bitmap, ipa_reference_write_optimization_summary,
9262 ipa_reference_write_optimization_summary): Update.
9264 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9266 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9268 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9270 * config/darwin.c: Lookup Objective C metadata and force indirection
9273 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9275 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9277 (mem_operand_gpr): Add check for prefixed addresses.
9278 (mem_operand_ds_form): Add check for prefixed addresses.
9279 (rs6000_legitimate_offset_address_p): If we support prefixed
9280 addresses, check for a 34-bit offset instead of 16-bit.
9281 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9282 Do not allow load/store with update if the address is prefixed.
9283 (rs6000_mode_dependent_address): If we support prefixed
9284 addresses, check for a 34-bit offset instead of 16-bit.
9286 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9289 * config/s390/vector.md (vcond_comparison_operator): New
9291 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9293 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9296 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9298 * configure.ac (--with-documentation-root-url): New option.
9299 * configure: Regenerate.
9300 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9301 option URL, add it as a new string field of the diagnostic option.
9302 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9303 (print_option_information): If get_option_url is non-NULL, call
9304 it, and if the result is non-NULL, potentially emit an escape
9305 sequence to markup the option text with the resulting URL.
9306 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9307 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9308 example of JSON output.
9309 * opts-diagnostic.h (get_option_url): New decl.
9310 * opts.c (get_option_url): New function.
9311 * toplev.c (general_init): Initialize the get_option_url callback.
9313 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9316 * common.opt (fdiagnostics-urls=): New option.
9317 (diagnostic-url.h): Add SourceInclude.
9318 (diagnostic_url_rule): New enum.
9319 * diagnostic-color.c: Include "diagnostic-url.h".
9320 (diagnostic_urls_enabled_p): New function.
9321 * diagnostic-url.h: New file.
9322 * diagnostic.c: Include "diagnostic-url.h".
9323 (diagnostic_urls_init): New function.
9324 * diagnostic.h (diagnostic_urls_init): New decl.
9325 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9326 -fdiagnostics-urls to the list.
9327 (-fdiagnostics-urls): New option.
9328 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9329 (driver::global_initializations): Call diagnostic_urls_init.
9330 * opts-global.c (init_options_once): Likewise.
9331 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9332 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9334 (pp_begin_url): New function.
9335 (pp_end_url): New function.
9336 (selftest::test_urls): New selftest.
9337 (selftest::pretty_print_c_tests): Call it.
9338 * pretty-print.h (pretty_printer::show_urls): New field.
9339 (pp_begin_url): New decl.
9340 (pp_end_url): New decl.
9342 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9345 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9347 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9350 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9351 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9352 also for TARGET_FPU_SH4_300.
9353 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9355 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9356 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9357 (*negsf2_i): Split into ...
9358 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9359 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9360 (**abssf2_i): Split into ...
9361 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9362 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9363 (*negdf2_i): Split into ...
9364 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9365 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9366 (**abssf2_i): Split into ...
9367 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9369 2019-10-10 Richard Biener <rguenther@suse.de>
9372 * opts.c (finish_options): Do not influence global --params
9373 from options that are adjustable per function.
9374 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9375 Apply --param adjustment based on active cost-model.
9376 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9377 further store-sinking when vectorization or if-conversion
9380 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9383 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9384 rather than ggc_alloc_cleared to alloc symbol table.
9385 * toplev.c (general_init): Likewise.
9386 * cgraph.h (symbol_table): Explicitly construct every field.
9388 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9390 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9392 * config.gcc: Add z15 as option for --with-arch and --with-tune
9394 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9395 error reporting for unsupported builtins.
9396 * config/s390/s390-opts.h (enum processor_type): Rename
9397 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9398 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9399 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9401 * config/s390/s390-builtins.def: Likewise.
9402 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9403 (s390_expand_builtin): Add missing check for unsupported builtins.
9404 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9405 (s390_rtx_costs): Likewise.
9406 (s390_get_sched_attrmask): Rename arch13 to z15.
9407 (s390_get_unit_mask): Likewise.
9408 (s390_is_fpd): Likewise.
9409 (s390_is_fxd): Likewise.
9410 * config/s390/s390.h (enum processor_flags): Likewise.
9411 * config/s390/s390.md: Likewise.
9412 * config/s390/vector.md: Likewise.
9413 * config/s390/vx-builtins.md: Likewise.
9414 * config/s390/s390.opt: Add z15 to processor_type value.
9416 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9419 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9421 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9422 ("split_stack_data", "split_stack_call")
9423 ("split_stack_call_<mode>", "split_stack_cond_call")
9424 ("split_stack_cond_call_<mode>"): Remove.
9425 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9427 * config/s390/s390.c (s390_output_split_stack_data): New function.
9428 (s390_expand_split_stack_prologue): Use the merged expander.
9430 2019-10-09 Martin Sebor <msebor@redhat.com>
9432 PR tree-optimization/90879
9433 * builtins.c (check_access): Avoid using maxbound when null.
9434 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9435 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9436 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9438 (get_range_strlen): Overwrite initial maxbound when non-null.
9439 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9441 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9442 (used_only_for_zero_equality): New function.
9443 (handle_builtin_memcmp): Call it.
9444 (determine_min_objsize): Return an integer instead of tree.
9445 (get_len_or_size, strxcmp_eqz_result): New functions.
9446 (maybe_warn_pointless_strcmp): New function.
9447 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9448 between a longer string and a smaller array.
9449 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9451 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9453 * config/darwin.c (darwin_override_options): Make the check for
9454 Objective-C ABI version more specific for 64bit code.
9456 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9458 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9459 indicate that the new symbol is an indirection.
9460 (machopic_indirect_call_target): Likewise.
9461 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9462 (MACHO_SYMBOL_INDIRECTION_P): New.
9463 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9465 2019-10-08 Jason Merrill <jason@redhat.com>
9467 * doc/invoke.texi: Document -fconcepts-ts.
9469 2019-10-09 Richard Biener <rguenther@suse.de>
9471 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9472 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9474 2019-10-08 Richard Biener <rguenther@suse.de>
9476 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9477 (_stmt_vec_info::force_single_cycle): Likewise.
9478 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9479 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9480 * tree-vect-loop.c (vectorizable_reduction): Set
9481 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9482 (vect_transform_reduction): Use them to remove redundant code.
9483 (vect_transform_cycle_phi): Likewise.
9485 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9487 PR tree-optimization/90836
9488 * match.pd (popcount): New pattern.
9490 2019-10-08 Martin Sebor <msebor@redhat.com>
9494 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9495 again once nbytes has been set. Set the access size when not yet set.
9497 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9499 * config/darwin.c (machopic_select_section): Remove dead code for
9500 old Objective-C section selection method, replace with unreachable.
9502 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9504 * config/darwin.c (machopic_indirect_data_reference): Check for
9505 required indirections before making direct access to defined
9507 (machopic_output_indirection): Place the indirected pointes for
9508 required indirections into the non-lazy symbol pointers section.
9509 (darwin_encode_section_info):
9510 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9511 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9513 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9516 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9517 instead of ALL_SSE_REG to check if function call preserves some
9518 256-bit SSE registers.
9520 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9522 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9523 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9524 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9526 2019-10-08 Richard Biener <rguenther@suse.de>
9528 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9529 (_stmt_vec_info::is_reduc_info): Add.
9530 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9531 (vectorizable_condition): Remove.
9532 (vectorizable_shift): Likewise.
9533 (vectorizable_reduction): Adjust.
9534 (info_for_reduction): New.
9535 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9536 (vect_analyze_scalar_cycles_1): ... here.
9537 (vect_analyze_loop_operations): Adjust.
9538 (needs_fold_left_reduction_p): Simplify for single caller.
9539 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9540 for nested cycles not part of double reductions.
9541 (vect_model_reduction_cost): Pass in the reduction type.
9542 (info_for_reduction): New function.
9543 (vect_create_epilog_for_reduction): Use it, access reduction
9544 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9545 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9546 (vectorize_fold_left_reduction): Remove pointless assert.
9547 (vectorizable_reduction): Analyze the full reduction when
9548 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9549 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9550 stmt code-generation to vectorizable_* in most cases. Verify
9551 code-generation only for cases handled by
9552 vect_transform_reductuon.
9553 (vect_transform_reduction): Use info_for_reduction to get at
9554 reduction meta. Simplify.
9555 (vect_transform_cycle_phi): Likewise.
9556 (vectorizable_live_operation): Likewise.
9557 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9558 at the PHI node for STMT_VINFO_REDUC_TYPE.
9559 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9560 longer necessary code.
9561 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9562 (vectorizable_condition): Likewise. Get at reduction related
9563 info via info_for_reduction.
9564 (vect_analyze_stmt): Adjust.
9565 (vect_transform_stmt): Likewise.
9566 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9567 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9569 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9571 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9572 -fno-fp-int-builtin-inexact default for C2X.
9574 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9575 Richard Biener <rguenther@suse.de>
9577 PR tree-optimization/91532
9578 * tree-if-conv.c: Include tree-ssa-dse.h.
9579 (ifcvt_local_dce): Change param from bb to loop,
9580 and call dse_classify_store.
9581 (tree_if_conversion): Pass loop instead of loop->header as arg
9583 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9584 (delete_dead_or_redundant_assignment): Remove static qualifier from
9585 declaration, and add prototype in tree-ssa-dse.h.
9586 (dse_store_status): Move to tree-ssa-dse.h.
9587 (dse_classify_store): Remove static qualifier and add new tree param
9588 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9589 * tree-ssa-dse.h: New header.
9591 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9593 * config/darwin.c (machopic_output_indirection): Don't put
9594 hidden symbol indirections into the .data section, use the
9595 non-lazy symbol pointers section as normal.
9596 (darwin_encode_section_info): Record if a symbol is hidden.
9597 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9598 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9600 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9602 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9603 predicates instead of accessing bits directly.
9604 (machopic_indirect_call_target): Likewise.
9605 (machopic_output_indirection): Likewise.
9606 (darwin_encode_section_info): Improve description. Use renamed
9607 symbol flags. Use predicate macros for variables and functions.
9609 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9610 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9611 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9612 (MACHO_SYMBOL_VARIABLE_P): New.
9613 (MACHO_SYMBOL_DEFINED_P):New.
9614 (MACHO_SYMBOL_STATIC_P): New.
9615 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9616 (SYMBOL_FLAG_SUBT_DEP): New.
9617 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9619 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9621 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9622 (msp430_expand_epilogue): Likewise.
9623 * config/msp430/predicates.md: Likewise.
9624 * config/msp430/msp430.md: Likewise.
9625 Replace blocks of 8 spaces with tabs.
9627 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9629 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9630 * config/msp430/msp430.c (msp430_split_addsi): New.
9631 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9632 a block of C code for splitting addsi.
9634 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9636 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9637 ix86_expand_rounddf_32): Reorder functions.
9638 * config/i386/i386-protos.h: Update.
9640 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9642 * config.in: Regenerate.
9643 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9644 Add new "Yx" constraint.
9645 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9647 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9649 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9650 code/data region to be selected in the small memory model.
9651 (msp430_section_attr): Don't warn if the "section" and "lower"
9652 attributes are used together.
9653 (msp430_handle_generic_attribute): Likewise.
9654 (msp430_var_in_low_mem): New function.
9655 (TARGET_ENCODE_SECTION_INFO): Define.
9656 (msp430_encode_section_info): New function.
9657 (gen_prefix): Return early in the small memory model.
9658 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9659 ".lower" prefix if -m{code,data}-region=lower have been passed.
9660 (msp430_output_aligned_decl_common): Emit common symbols when
9661 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9663 (TARGET_ASM_FILE_END): Define.
9664 (msp430_file_end): New function.
9665 (msp430_do_not_relax_short_jumps): Allow relaxation when
9666 function will be in the lower region.
9667 (msp430_op_not_in_high_mem): New function.
9668 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9669 the 'X' operand selector.
9670 Clarify comment for 'x' operand selector.
9671 * config/msp430/msp430.h (LINK_SPEC): Propagate
9672 -m{code,data}-region to the linker via spec function
9673 msp430_propagate_region_opt.
9674 (msp430_propagate_region_opt): New prototype.
9675 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9676 (SYMBOL_FLAG_LOW_MEM): Define.
9677 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9679 (zero_extendqihi2): Fix operand number used by "%X" selector.
9680 (zero_extendqisi2): Likewise.
9681 (zero_extendhisi2): Likewise.
9682 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9687 (addhi3_cy): Likewise.
9688 (addchi4_cy): Likewise.
9692 (bic<mode>3): Likewise.
9693 (and<mode>3): Likewise.
9694 (ior<mode>3): Likewise.
9695 (xor<mode>3): Likewise.
9696 (slli_1): Add missing "%X" operand selector.
9704 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9706 (cbranchhi4_real): Likewise.
9707 (cbranchqi4_reversed): Likewise.
9708 (cbranchhi4_reversed): Likewise.
9709 (*bitbranch<mode>4): Likewise.
9710 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9711 * config/msp430/msp430.opt (mcode-region=): Set default to
9712 MSP430_REGION_LOWER. Improve docstring.
9713 (mdata-region=): Likewise.
9714 (muse-lower-region-prefix): New option.
9715 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9716 mdata-region=none multilib.
9717 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9718 mdata-region=none multilib.
9719 MULTILIB_EXCEPTIONS: Remove.
9720 MULTILIB_REQUIRED: Define.
9721 * configure: Regenerate.
9722 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9723 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9724 * doc/extend.texi: Clarify comment for {upper,lower,either}
9725 function attributes.
9726 Add separate description for "lower" variable attribute.
9728 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9731 * optabs-tree.c (vcond_icode_p): New function.
9732 (vcond_eq_icode_p): Likewise.
9733 (expand_vec_cond_expr_p): Use vcond_icode_p and
9735 * optabs.c (can_vcond_compare_p): New function.
9736 * optabs.h (can_vcond_compare_p): Likewise.
9738 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9741 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9742 caller passes a non-trapping condition.
9743 (is_gimple_condexpr): Allow trapping conditions.
9744 (is_gimple_condexpr_1): New helper function.
9745 (is_gimple_condexpr_for_cond): New function, acts like old
9747 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9748 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9749 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9750 * gimplify.c (gimplify_cond_expr): Use
9751 is_gimple_condexpr_for_cond.
9752 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9753 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9755 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9756 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9757 is_gimple_condexpr_for_cond, remove pointless tmp check
9758 (forward_propagate_into_cond): Remove pointless tmp check.
9760 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9762 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9763 match that of other gsi_next_* functions. Adjust the comment.
9764 (gsi_start_nonvirtual_phis): New function.
9765 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9766 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9768 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9770 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9771 setjmp situation here. Fix a verb's ending: "the exact variables or
9772 elements for which there are warnings depends" -> "... depend".
9774 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9776 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9778 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9780 * ipa-prop.c (ipa_vr::nonzero_p): New.
9781 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9783 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9784 * tree-vrp.c (range_has_numeric_bounds_p): New.
9785 (range_int_cst_p): Use range_has_numeric_bounds_p.
9786 (get_range_op_handler): New.
9787 (supported_types_p): New.
9788 (defined_ranges_p): New.
9789 (drop_undefines_to_varying): New.
9790 (range_fold_binary_symbolics_p): New.
9791 (range_fold_unary_symbolics_p): New.
9792 (range_fold_unary_expr): Extract out into above functions.
9793 (range_fold_binary_expr): Same.
9794 (value_range_base::normalize_addresses): New.
9795 (value_range_base::normalize_symbolics): Normalize addresses.
9796 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9798 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9800 * tree-vrp.c (value_range_base::singleton_p): Use
9801 value_range_base::num_pairs instead of vrp_val_is* to check
9802 if a range has one sub-range.
9804 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9806 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9807 DEF is not a true earlyclobber but is tied to a specific input
9808 operand, and so is effectively earlyclobber wrt inputs that have
9810 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9812 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9814 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9815 (pod_mode): Mark operators likewise.
9816 (scalar_int_mode): Mark non-default constructors and
9817 operators with CONSTEXPR.
9818 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9819 (fixed_size_mode): Likewise.
9821 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9824 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9825 and wrap the unspec_volatile in a parallel.
9826 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9827 the unspec_volatile.
9828 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9829 unspec_volatile to be wrapped in a parallel.
9830 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9831 (ix86_add_reg_usage_to_vzerouppers): New functions.
9832 (rest_of_handle_insert_vzeroupper): Use them to add register
9833 usage information to the vzeroupper instructions.
9835 2019-10-07 Richard Biener <rguenther@suse.de>
9837 PR tree-optimization/91975
9838 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9841 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9843 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9844 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9846 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9848 * config/darwin.c (darwin_override_options): Adjust objective-c
9849 ABI version error messages to avoid punctuation and contracted
9852 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9854 * ipa-inline.c: Fix type; compute size rather than self_size
9855 for size of caller function.
9857 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9860 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9861 choose const_data section for constants with relocations.
9862 (machopic_select_section): Pass relocation flag to
9863 darwin_rodata_section ().
9865 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9867 PR tree-optimization/91734
9868 * generic-match-head.c: Include fold-const-call.h.
9869 * match.pd (sqrt(x) cmp c): Check the boundary value and
9870 in case inexact computation of c*c affects comparison of the boundary,
9871 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9872 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9873 for -frounding-math. For c2, try the next smaller or larger floating
9874 point constant depending on comparison code and if it has the same
9875 sqrt as c2, use it instead of c2.
9877 2019-10-04 Martin Sebor <msebor@redhat.com>
9880 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9881 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9882 uninitialized objects.
9884 2019-10-04 Martin Sebor <msebor@redhat.com>
9886 * builtins.c (compute_objsize): Add an argument.
9887 * tree-object-size.c (addr_object_size): Same.
9888 (compute_builtin_object_size): Same.
9889 * tree-object-size.h (compute_builtin_object): Same.
9891 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9893 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9895 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9897 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9899 2019-10-04 Martin Jambor <mjambor@suse.cz>
9901 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9902 fntype when switching to calling memcpy instead of memset.
9904 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9906 * hash-table.h (hash_table::empty_slow): Don't assign
9907 size_t values to int variables.
9909 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9911 * expr.c (convert_mode_scalar): Remove shadowing local var.
9912 (emit_block_move): Rename local vars.
9913 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9914 (emit_push_insn): Rename local vars.
9915 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9916 shadowing local vars.
9917 (store_constructor): Remove shadowing local vars. Rename local var.
9918 (store_field, expand_cond_expr_using_cmove,
9919 expand_expr_real_2): Remove shadowing local vars.
9920 (expand_expr_real_1,
9921 do_store_flag): Remove shadowing local vars. Rename local vars.
9923 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9925 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9927 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9929 * genmatch.c (commutate): Rename local var.
9930 (lower_cond): Reuse local var.
9931 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9932 dt_operand::gen, dt_operand::gen_gimple_expr,
9933 dt_simplify::gen): Add a param. Rename generated vars.
9934 (decision_tree::insert_operand,
9935 (capture_info::walk_match, capture_info::walk_result,
9936 capture_info::walk_c_expr): Rename local vars.
9937 (expr::gen_transform): Rename generated vars.
9938 Use snprintf. Rename local vars.
9939 (capture::gen_transform, dt_operand::get_name,
9940 dt_operand::gen_opname): Rename generated vars.
9941 (write_predicate): Adjust call to gen_kids.
9942 (parser::get_internal_capture_id): Rename generated vars.
9943 (parser::parse_expr): Rename local vars.
9944 (parser::parse_if): Remove local var.
9945 (parser::parse_pattern, add_operator): Rename local vars.
9947 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9949 * builtins.def (DEF_C2X_BUILTIN): New macro.
9950 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9951 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9952 (strndup): Use DEF_C2X_BUILTIN.
9953 * coretypes.h (enum function_class): Add function_c2x_misc.
9955 2019-10-04 Maya Rashish <coypu@sdf.org>
9957 * ira-color.c (update_costs_from_allocno): Call
9958 ira_init_register_move_cost_if_necessary.
9960 2019-10-04 Jeff Law <law@redhat.com>
9962 * config/h8300/h8300.md (cpymemsi): Disable.
9963 (movmd, movmd_internal_<mode>, movstr, movsd):
9964 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9965 (movmd splitter, movsd splitter): Likewise.
9967 * range-op.cc (range_tests): Avoid two tests when ints and
9968 shorts are the same size.
9970 2019-10-04 Richard Biener <rguenther@suse.de>
9973 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9976 2019-10-04 Richard Biener <rguenther@suse.de>
9978 PR tree-optimization/91982
9979 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9980 against EXTRACT_LAST_REDUCTION.
9981 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9983 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9985 * range-op.o (value_range_from_overflowed_bounds): Rename from
9986 adjust_overflow_bound.
9987 (value_range_with_overflow): Rename from
9988 create_range_with_overflow.
9989 (create_possibly_reversed_range): Adjusted for above renames.
9990 (operator_*::wi_fold): Same.
9991 (cross_product_operator::wi_cross_productor): Same.
9993 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9995 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9996 -Wshadow=compatible-local): Fix description.
9997 Add an example where -Wshadow=compatible-local does not
10000 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
10002 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
10004 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
10005 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
10007 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10009 * expr.c (emit_block_move_hints): Slightly cleaner fix to
10010 can_move_by_pieces issue.
10012 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
10015 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
10016 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
10017 is available and the user has not set one on the command line.
10019 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
10022 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
10023 instead of REGNO equality check on addr.reg.
10025 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
10027 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
10028 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
10029 * doc/invoke.texi (inline-heuristics-hint-percent,
10030 inline-heuristics-hint-percent-O2): Document.
10031 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
10033 (can_inline_edge_by_limits_p): Use it.
10035 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
10037 * config/arm/arm.c (arm_print_value): Use real_to_decimal
10038 to print CONST_DOUBLEs.
10040 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
10042 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
10043 * ipa-prop.c (ipcp_free_transformation_sum): New function.
10044 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
10046 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
10048 * Makefile.in (OBJS): Add range.o and range-op.o.
10049 Remove wide-int-range.o.
10050 * function-tests.c (test_ranges): New.
10051 (function_tests_c_tests): Call test_ranges.
10052 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
10053 range_fold_unary_expr instead of extract_range_from_unary_expr.
10054 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
10055 * range-op.cc: New file.
10056 * range-op.h: New file.
10057 * range.cc: New file.
10058 * range.h: New file.
10059 * selftest.h (range_tests): New prototype.
10060 * ssa.h: Include range.h.
10061 * tree-vrp.c (value_range_base::value_range_base): New
10063 (value_range_base::singleton_p): Do not call
10064 ranges_from_anti_range until sure we will need to.
10065 (value_range_base::type): Rename gcc_assert to
10066 gcc_checking_assert.
10067 (vrp_val_is_max): New argument.
10068 (vrp_val_is_min): Same.
10069 (wide_int_range_set_zero_nonzero_bits): Move from
10071 (extract_range_into_wide_ints): Remove.
10072 (extract_range_from_multiplicative_op): Remove.
10073 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
10074 from extract_range_from_binary_expr.
10075 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
10076 from extract_range_from_binary_expr.
10077 (extract_range_from_binary_expr): Remove.
10078 (normalize_for_range_ops): New.
10079 (range_fold_binary_expr): New.
10080 (range_fold_unary_expr): New.
10081 (value_range_base::num_pairs): New.
10082 (value_range_base::lower_bound): New.
10083 (value_range_base::upper_bound): New.
10084 (value_range_base::upper_bound): New.
10085 (value_range_base::contains_p): New.
10086 (value_range_base::invert): New.
10087 (value_range_base::union_): New.
10088 (value_range_base::intersect): New.
10089 (range_compatible_p): New.
10090 (value_range_base::operator==): New.
10091 (determine_value_range_1): Call range_fold_*expr instead of
10092 extract_range_from_*expr.
10093 * tree-vrp.h (class value_range_base): Add new constructors.
10094 Add methods for union_, intersect, operator==, contains_p,
10095 num_pairs, lower_bound, upper_bound, invert.
10096 (vrp_val_is_min): Add handle_pointers argument.
10097 (vrp_val_is_max): Same.
10098 (extract_range_from_unary_expr): Remove.
10099 (extract_range_from_binary_expr): Remove.
10100 (range_fold_unary_expr): New.
10101 (range_fold_binary_expr): New.
10102 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10103 range_fold_binary_expr instead of extract_range_from_binary_expr.
10104 (vr_values::extract_range_basic): Same.
10105 (vr_values::extract_range_from_unary_expr): Call
10106 range_fold_unary_expr instead of extract_range_from_unary_expr.
10107 * wide-int-range.cc: Remove.
10108 * wide-int-range.h: Remove.
10110 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10112 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10113 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10114 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10115 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10118 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10120 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10121 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10122 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10123 * glimits.h: Likewise.
10125 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10127 PR rtl-optimization/91976
10128 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10129 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10130 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10132 2019-10-02 Martin Sebor <msebor@redhat.com>
10134 PR tree-optimization/80936
10135 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10137 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10139 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10140 instead of reg_class_contents[ALL_REGS].
10142 2019-09-30 Jason Merrill <jason@redhat.com>
10144 Add some hash_map_safe_* functions like vec_safe_*.
10145 * hash-map.h (default_hash_map_size): New variable.
10146 (create_ggc): Use it as default argument.
10147 (hash_map_maybe_create, hash_map_safe_get)
10148 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10150 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10152 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10153 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10154 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10155 (can_inline_edge_by_limits_p): Use it.
10156 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10157 (want_inline_small_function_p): Use O2 bounds.
10158 (edge_badness): LIkewise.
10159 * opts.c (default_options): Add OPT_finline_functions.
10160 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10161 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10163 * doc/invoke.texi (-finline-functions): Update documentation.
10164 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10165 inline-min-speedup-O2): Document.
10166 (early-inlining-insns-O2): Simplify docs.
10168 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10170 PR rtl-optimization/87047
10171 * ifcvt.c (average_cost): New static function. Use it...
10172 (noce_process_if_block): ... here.
10174 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10176 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10177 * config/rs6000/rs6000-string.c (expand_block_move): Add
10178 might_overlap parm.
10179 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10180 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10182 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10184 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10185 (expand_builtin_memcpy): Use might_overlap parm.
10186 (expand_builtin_mempcpy_args): Use might_overlap parm.
10187 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10188 (expand_builtin_memory_copy_args): Add might_overlap parm.
10189 * expr.c (emit_block_move_via_cpymem): Rename to
10190 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10191 or movmem optab as appropriate.
10192 (emit_block_move_hints): Add might_overlap parm, do the right
10193 thing for might_overlap==true.
10194 * expr.h (emit_block_move_hints): Update prototype.
10196 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10198 * tree-eh.h (unsplit_eh_edges): Declare.
10199 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10200 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10201 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10202 (struct store_immediate_info): Add lp_nr field.
10203 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10204 initialize lp_nr with it.
10205 (struct merged_store_group): Add lp_nr and only_constants fields.
10206 (merged_store_group::merged_store_group): Initialize them.
10207 (merged_store_group::can_be_merged_into): Deal with them.
10208 (pass_store_merging): Rename terminate_and_release_chain into
10209 terminate_and_process_chain.
10210 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10211 renaming and remove useless assertions.
10212 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10213 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10214 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10215 instead of always recomputing it and compare lp_nr.
10216 (imm_store_chain_info::output_merged_store): If the group is in an
10217 active EH region, register new stores if they can throw. Moreover,
10218 if the insertion has created new basic blocks, adjust the PHI nodes
10219 of the post landing pad.
10220 (imm_store_chain_info::output_merged_stores): If the original stores
10221 are in an active EH region, deregister them.
10222 (lhs_valid_for_store_merging_p): Prettify.
10223 (adjust_bit_pos): New function extracted from...
10224 (mem_valid_for_store_merging): ...here. Use it for the base address
10225 and also for the offset if it is the addition of a constant.
10226 (lp_nr_for_store): New function.
10227 (pass_store_merging::process_store): Change return type to bool.
10228 Call lp_nr_for_store to initialize the store info. Propagate the
10229 return status of various called functions to the return value.
10230 (store_valid_for_store_merging_p): New predicate.
10231 (enum basic_block_status): New enumeration.
10232 (get_status_for_store_merging): New function.
10233 (pass_store_merging::execute): If the function can throw and catch
10234 non-call exceptions, unsplit the EH edges on entry and clean up the
10235 CFG on exit if something changed. Call get_status_for_store_merging
10236 for every basic block and keep the chains open across basic blocks
10237 when possible. Terminate and process open chains at the end, if any.
10239 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10241 * reginfo.c (globalize_reg): Fix shadowed variable in
10242 function_abis walk.
10244 2019-10-02 Martin Jambor <mjambor@suse.cz>
10246 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10247 do not compute some stuff when set.
10248 (cgraph_node::create_edge): Likewise.
10249 (cgraph_node::create_indirect_edge): Renamed last parameter to
10250 coning_p and flipped its meaning, don't even calculate
10251 inline_failed when set.
10252 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10253 (symbol_table::::create_edge): Likewise.
10254 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10256 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10257 call graph edge creating functions.
10259 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10262 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10265 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10267 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10269 2019-10-02 Richard Biener <rguenther@suse.de>
10271 * tree-vectorizer.h (vect_transform_reduction): Declare.
10272 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10273 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10274 stmt transform to ...
10275 (vect_transform_reduction): ... this.
10277 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10279 * omp-low.c (lower_omp_target): Dereference optional argument
10280 to work with the right pointer.
10282 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10284 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10286 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10287 * langhooks.h (omp_is_optional_argument): New hook.
10288 * omp-general.c (omp_is_optional_argument): New.
10289 * omp-general.h (omp_is_optional_argument): New declaration.
10290 * omp-low.c (lower_omp_target): Create temporary for received value
10291 and take the address for new_var if the original variable was a
10292 DECL_BY_REFERENCE. Use size of referenced object when a
10293 pass-by-reference optional argument used as argument to firstprivate.
10295 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10297 PR tree-optimization/91940
10298 * tree-vect-patterns.c: Include tree-vector-builder.h and
10299 vec-perm-indices.h.
10300 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10301 unpromoting the argument back to uint16_t, or by converting into a
10302 rotate, or into shifts plus ior.
10304 2019-10-02 Richard Biener <rguenther@suse.de>
10306 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10308 (vect_transform_cycle_phi): Declare.
10309 * tree-vect-stmts.c (vect_transform_stmt): Call
10310 vect_transform_cycle_phi.
10311 * tree-vect-loop.c (vectorizable_reduction): Split out
10312 PHI transformation stage to ...
10313 (vect_transform_cycle_phi): ... here.
10315 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10317 PR middle-end/91957
10318 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10319 eliminable registers.
10320 (make_hard_regno_live): Likewise, and don't make them live.
10322 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10324 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10325 Call pp_emit_prefix.
10326 (layout::print_source_line): Likewise.
10327 (layout::start_annotation_line): Likewise.
10328 (diagnostic_show_locus): Remove call to temporarily clear the
10330 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10331 interaction of pp_set_prefix with rulers and fix-it hints.
10332 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10333 prefix when calling diagnostic_show_locus, rather than destroying
10335 (print_parseable_fixits): Temporarily clear prefix.
10336 * pretty-print.c (pp_format): Save and restore line_length, rather
10337 than assuming it is zero.
10338 (pp_output_formatted_text): Remove assertion that line_length is
10341 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10343 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10345 (nonoverlapping_refs_since_match_p): ... this; handle also
10347 (alias_stats): Update stats.
10348 (dump_alias_stats): Likewise.
10349 (cheap_array_ref_low_bound): New function.
10350 (aliasing_matching_component_refs_p): Add partial_overlap
10352 pass it to nonoverlapping_refs_since_match_p.
10353 (aliasing_component_refs_walk): Update call of
10354 aliasing_matching_component_refs_p
10355 (nonoverlapping_array_refs_p): New function.
10356 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10357 indirect_refs_may_alias_p): Update calls of
10358 nonoverlapping_refs_since_match_p.
10360 2019-10-01 Maya Rashish <coypu@sdf.org>
10363 * ira-color.c (allocno_copy_cost_saving): Call
10364 ira_init_register_move_cost_if_necessary.
10366 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10368 * Makefile.in (gnat_install_lib): New variable.
10369 * configure.ac: Substitute it.
10370 * configure: Regenerate.
10372 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10375 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10376 is matched with non-C++ type
10378 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10380 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10383 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10385 * doc/invoke.texi (early-inlining-insns-O2): Document.
10386 (early-inlining-insns): Update.
10387 * params.def (early-inlining-insns-O2): New bound.
10388 (early-inlining-insns): Update docs.
10389 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10391 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10394 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10395 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10396 a memory access insn.
10398 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10400 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10403 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10406 * config/s390/s390.c (s390_expand_vec_compare): Use
10407 gen_vec_cmpordered and gen_vec_cmpunordered.
10408 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10409 vec_unordered): Delete.
10410 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10411 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10412 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10413 (vec_cmp<code>): Generic dispatcher.
10415 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10418 * config/s390/vector.md (V_HW): Add V1TI in order to make
10419 vcond$a$b generate vcondv1tiv1tf.
10421 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10423 PR rtl-optimization/91948
10424 * ira-build.c (ira_create_allocno): Initialize
10425 ALLOCNO_CROSSED_CALLS_ABIS.
10426 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10427 than regno to ira_need_caller_save_p.
10429 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10431 * config/i386/i386-options.c
10432 (ix86_recompute_optlev_based_flags): New, moved out of...
10433 (ix86_option_override_internal): ... this. Call it.
10434 (ix86_override_options_after_change): Call it here too.
10437 * dwarf2out.c (override_type_for_decl_p): New.
10438 (gen_variable_die): Use it.
10440 2019-10-01 Richard Biener <rguenther@suse.de>
10442 * tree-vect-loop.c (vectorizable_reduction): Move variables
10443 to where they are used.
10445 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10447 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10448 (build_def_use): Use PC instead of CC0 in a comment.
10450 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10452 * rtl.def (CLOBBER_HIGH): Delete.
10453 * doc/rtl.texi (clobber_high): Remove documentation.
10454 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10455 (reg_is_clobbered_by_clobber_high): Delete.
10456 (gen_hard_reg_clobber_high): Likewise.
10457 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10458 * cfgexpand.c (expand_gimple_stmt): Likewise.
10459 * combine-stack-adj.c (single_set_for_csa): Likewise.
10460 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10461 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10462 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10463 * cse.c (invalidate_reg): Remove clobber_high parameter.
10464 (invalidate): Update call accordingly.
10465 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10466 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10467 (count_reg_usage, insn_live_p): Likewise.
10468 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10469 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10470 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10471 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10472 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10473 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10474 (mark_nonreg_stores_2): Likewise.
10475 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10476 (df_get_call_refs): Likewise.
10477 * dwarf2out.c (mem_loc_descriptor): Likewise.
10478 * emit-rtl.c (verify_rtx_sharing): Likewise.
10479 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10480 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10481 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10482 * genemit.c (gen_exp, gen_insn): Likewise.
10483 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10484 * haifa-sched.c (haifa_classify_rtx): Likewise.
10485 * ira-build.c (create_insn_allocnos): Likewise.
10486 * ira-costs.c (scan_one_insn): Likewise.
10487 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10488 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10489 * jump.c (mark_jump_label_1): Likewise.
10490 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10491 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10493 (mark_not_eliminable): Likewise.
10494 * lra-lives.c (process_bb_lives): Likewise.
10495 * lra.c (new_insn_reg): Remove clobber_high parameter.
10496 (collect_non_operand_hard_regs): Likewise. Update call to new
10497 insn_reg. Remove CLOBBER_HIGH handling.
10498 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10499 to collect_non_operand_hard_regs.
10500 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10501 Update call to new_insn_reg.
10502 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10503 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10504 (move2add_note_store): Likewise.
10505 * print-rtl.c (print_pattern): Likewise.
10506 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10507 (if_test_bypass_p): Likewise.
10508 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10509 * reginfo.c (reg_scan_mark_refs): Likewise.
10510 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10511 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10512 (forget_old_reloads_1): Likewise.
10513 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10514 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10515 (dbr_schedule): Likewise.
10516 * resource.c (update_live_status, mark_referenced_resources)
10517 (mark_set_resources): Likewise.
10518 * rtl.c (copy_rtx): Likewise.
10519 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10520 (note_pattern_stores): Likewise.
10521 (reg_is_clobbered_by_clobber_high): Delete.
10522 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10523 CLOBBER_HIGH handling.
10525 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10528 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10529 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10530 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10531 Handle ARM_PCS_TLSDESC.
10532 (aarch64_tlsdesc_abi_id): New function.
10533 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10534 rtx instead of a list of clobbers and clobber_highs.
10535 (tlsdesc_small_<mode>): Update accordingly.
10537 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10539 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10540 extra callee_abi argument.
10541 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10542 Insert a CALLEE_ABI unspec into the call pattern as the second
10543 element in the PARALLEL.
10544 (aarch64_simd_call_p): Delete.
10545 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10546 the new CALLEE_ABI element of the PARALLEL.
10547 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10548 from the function type, if given.
10549 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10550 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10551 when passed the function_arg_info end marker.
10552 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10553 final argument of gen_sibcall.
10554 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10555 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10556 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10558 (call_value): Likewise operand 3.
10559 (sibcall): Likewise operand 2. Place the unspec before rather than
10561 (sibcall_value): Likewise operand 3.
10562 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10563 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10564 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10565 constraint strings.
10566 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10568 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10570 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10571 choose_hard_reg_mode.
10572 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10574 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10576 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10577 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10578 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10580 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10582 * diagnostic-show-locus.c (line_label::line_label): Initialize
10584 (line_label::comparator): Reverse the sort order by m_state_idx,
10585 so that when the list is walked backwards the labels appear in
10586 order of insertion into the rich_location.
10587 (line_label::m_has_vbar): New field.
10588 (layout::print_any_labels): When dealing with multiple labels at
10589 the same line and column, only print vertical bars for the one
10590 with the highest label_line.
10591 (selftest::test_one_liner_labels): Update test for multiple labels
10592 to expect the labels to be in the order of insertion into the
10593 rich_location. Add a test for many such labels, where the column
10594 numbers are out-of-order relative to the insertion order.
10596 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10598 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10599 (ix86_frame::expensive_count): Likewise.
10600 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10601 of use_fast_prologue_epilogue robust against incidental changes
10604 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10607 * config/s390/vector.md (vec_unordered<mode>): Call
10608 gen_vec_ordered<mode>.
10610 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10612 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10613 New pattern for ASRD.
10614 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10615 * internal-fn.def (IFN_DIV_POW2): New internal function.
10616 * optabs.def (sdiv_pow2_optab): New optab.
10617 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10618 Modify pattern to support new operation.
10619 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10620 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10621 Document new target selector.
10623 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10625 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10626 to test whether we're compiling a vector PCS function and to test
10627 whether the function needs to save a particular register.
10628 Remove the vector PCS handling of df_set_regs_ever_live.
10629 (aarch64_components_for_bb): Use crtl->abi to test whether
10630 the function needs to save a particular register.
10631 (aarch64_process_components): Use crtl->abi to test whether
10632 we're compiling a vector PCS function.
10633 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10634 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10636 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10638 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10640 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10641 whether the block calls a function that clobbers more registers
10642 than the current function is allowed to.
10643 (aarch64_use_simple_return_insn_p): Delete.
10644 * config/aarch64/aarch64.md (simple_return): Remove condition.
10646 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10648 * function-abi.h (function_abi_aggregator): New class.
10649 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10651 * ira.c (update_equiv_regs_prescan): New function. Call
10652 set_paradoxical_subreg here rather than...
10653 (update_equiv_regs): ...here.
10654 (ira): Call update_equiv_regs_prescan.
10656 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10658 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10660 (call_used_or_fixed_regs): Likewise.
10661 (call_used_or_fixed_reg_p): Likewise.
10662 * reginfo.c (regs_invalidated_by_call): New macro.
10664 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10666 * shrink-wrap.c: Include function-abi.h.
10667 (requires_stack_frame_p): Use crtl->abi to test whether the
10668 current function can use a register without saving it first.
10670 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10672 * sel-sched-ir.h (_def::crosses_call): Replace with...
10673 (_def::crossed_call_abis): ..this new field.
10674 (def_list_add): Take a mask of ABIs instead of a crosses_call
10676 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10677 of _def accordingly.
10678 * sel-sched.c: Include function-abi.h.
10679 (hard_regs_data::regs_for_call_clobbered): Delete.
10680 (reg_rename::crosses_call): Replace with...
10681 (reg_rename::crossed_call_abis): ...this new field.
10682 (fur_static_params::crosses_call): Replace with...
10683 (fur_static_params::crossed_call_abis): ...this new field.
10684 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10685 (init_hard_regs_data): Use crtl->abi to test which registers the
10686 current function would need to save before it uses them.
10687 (mark_unavailable_hard_regs): Update handling of call-clobbered
10688 registers, using call_clobbers_in_region to find out which registers
10689 might be call-clobbered (but without taking -fipa-ra into account
10690 for now). Remove separate handling of partially call-clobbered
10692 (verify_target_availability): Use crossed_call_abis instead of
10694 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10695 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10697 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10699 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10700 function to test whether a register is fully or partly clobbered.
10702 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10704 * rtlanal.c: Include function-abi.h.
10705 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10706 function and clobbers_reg_p to test whether the register
10708 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10709 to get the ABI of the called function and full_reg_clobbers to
10710 get the set of fully call-clobbered registers. Warn about the
10711 pitfalls of using this mode.
10713 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10715 * reload.c: Include function-abi.h.
10716 (find_equiv_reg): Use clobbers_reg_p to test whether either
10717 of the equivalent registers is clobbered by a call.
10718 * reload1.c: Include function-abi.h.
10719 (reg_reloaded_call_part_clobbered): Delete.
10720 (reload): Use crtl->abi to test which registers would need
10721 saving in the prologue before use.
10722 (find_reg): Likewise.
10723 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10724 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10725 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10727 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10729 * regrename.h (du_head::call_clobber_mask): New field.
10730 (du_head::need_caller_save_reg): Replace with...
10731 (du_head::call_abis): ...this new field.
10732 * regrename.c: Include function-abi.h.
10733 (call_clobbered_in_chain_p): New function.
10734 (check_new_reg_p): Use crtl->abi when deciding whether a register
10735 is free for use after RA. Use call_clobbered_in_chain_p to test
10736 whether a candidate register would be clobbered by a call.
10737 (find_rename_reg): Don't add call-clobber conflicts here.
10738 (rename_chains): Check call_abis instead of need_caller_save_reg.
10739 (merge_chains): Update for changes to du_head.
10740 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10741 target. Record the ABI identifier in call_abis and the set of
10742 fully or partially clobbered registers in call_clobber_mask.
10743 Add fully-clobbered registers to hard_conflicts here rather
10744 than in find_rename_reg.
10745 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10746 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10747 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10749 * config/c6x/c6x.c: Likewise.
10751 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10753 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10754 mode of the register when deciding whether it is no longer
10755 available after a call.
10757 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10759 * recog.c: Include function-abi.h.
10760 (peep2_find_free_register): Use crtl->abi when deciding whether
10761 a register is free for use after RA.
10763 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10765 * postreload-gcse.c: Include regs.h and function-abi.h.
10766 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10767 call insn target. Conservatively assume that partially-clobbered
10768 registers are altered.
10770 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10772 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10773 when deciding whether a register is free for use after RA.
10774 (reload_combine): Remove unnecessary use of fixed_reg_set.
10775 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10776 call insn target. Use reg_mode when testing whether a register
10777 is no longer available.
10779 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10781 * target.def (return_call_with_max_clobbers): Delete.
10782 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10783 * doc/tm.texi: Regenerate.
10784 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10785 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10786 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10787 (lra_reg::call_insn): Delete.
10788 * lra.c: Include function-abi.h.
10789 (initialize_lra_reg_info_element): Don't initialize the fields above.
10790 (lra): Use crtl->abi to test whether the current function needs to
10791 save a register in the prologue. Remove special pre-inheritance
10792 lra_create_live_ranges pass for flag_ipa_ra.
10793 * lra-assigns.c: Include function-abi.h
10794 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10795 function needs to save a register in the prologue.
10796 (lra_assign): Assert that registers aren't allocated to a
10797 conflicting register, rather than checking only for overlaps
10798 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10799 and for registers that are not live across a call.
10800 * lra-constraints.c (last_call_for_abi): New variable.
10801 (full_and_partial_call_clobbers): Likewise.
10802 (setup_next_usage_insn): Remove the register from
10803 full_and_partial_call_clobbers.
10804 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10805 whether the register needs a caller save.
10806 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10807 of call_used_or_fixed_regs.
10808 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10809 full_and_partial_call_clobbers.
10810 * lra-lives.c (check_pseudos_live_through_calls): Replace
10811 last_call_used_reg_set and call_insn arguments with an abi argument.
10812 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10813 as the set of conflicting registers.
10814 (calls_have_same_clobbers_p): Delete.
10815 (process_bb_lives): Track the ABI of the last call instead of an
10816 insn/HARD_REG_SET pair. Update calls to
10817 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10818 the set of registers that could be clobbered by an EH edge.
10819 Include partially-clobbered as well as fully-clobbered registers.
10820 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10821 * lra-remat.c: Include function-abi.h.
10822 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10823 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10824 registers and bitmap_view to combine them into dead_regs.
10825 (call_used_input_regno_present_p): Take a function_abi argument
10826 and use it to test whether a register is call-clobbered.
10827 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10828 call insn target. Update tje call to call_used_input_regno_present_p.
10829 (do_remat): Likewise.
10830 (lra_remat): Remove the initialization of call_used_regs_arr_len
10831 and call_used_regs_arr.
10833 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10835 * loop-iv.c: Include regs.h and function-abi.h.
10836 (simplify_using_initial_values): Use insn_callee_abi to get the
10837 ABI of the call insn target. Conservatively assume that
10838 partially-clobbered registers are altered.
10840 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10842 * function-abi.h (call_clobbers_in_region): Declare.
10843 (call_clobbered_in_region_p): New function.
10844 * function-abi.cc (call_clobbers_in_region): Likewise.
10845 * ira-int.h: Include function-abi.h.
10846 (ira_allocno::crossed_calls_abis): New field.
10847 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10848 (ira_need_caller_save_regs): New function.
10849 (ira_need_caller_save_p): Likewise.
10850 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10851 of call_used_or_fixed_regs.
10852 (do_reload): Use crtl->abi to test whether the current function
10853 needs to save a register in the prologue. Count registers that
10854 need to be saved rather than registers that don't.
10855 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10856 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10857 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10858 (propagate_some_info_from_allocno): Likewise.
10859 (copy_info_to_removed_store_destinations): Likewise.
10860 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10861 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10862 (ira_build): Use ira_need_caller_save_regs instead of
10863 call_used_or_fixed_regs.
10864 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10865 whether the current function would need to save a register
10867 (calculate_spill_cost): Likewise.
10868 (allocno_reload_assign): Use ira_need_caller_save_regs and
10869 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10870 * ira-conflicts.c (ira_build_conflicts): Use
10871 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10872 as the set of call-clobbered registers. Remove the
10873 call_used_or_fixed_regs mask from the calculation of
10874 temp_hard_reg_set and mask its use instead. Remove special
10875 handling of partially-clobbered registers.
10876 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10877 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10878 calculate the set of conflicting registers for calls that
10879 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10880 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10881 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10882 Use eh_edge_abi to calculate the set of registers that could
10883 be clobbered by an EH edge. Include partially-clobbered as
10884 well as fully-clobbered registers.
10886 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10888 * haifa-sched.c: Include function-abi.h.
10889 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10890 the function would need to save a register before using it.
10892 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10894 * gcse.c: Include function-abi.h.
10895 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10896 the call insn target. Invalidate partially call-clobbered
10897 registers as well as fully call-clobbered ones.
10899 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10901 * function.c (aggregate_value_p): Work out which ABI the
10902 function is using before testing which registers are at least
10903 partly preserved by a call.
10905 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10907 * early-remat.c: Include regs.h and function-abi.h.
10908 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10910 (early_remat::restrict_remat_for_unavail_regs): New function.
10911 (early_remat::restrict_remat_for_call): Likewise.
10912 (early_remat::process_block): Before calling emit_remat_insns
10913 for a previous call in the block, invalidate any candidates
10914 that would clobber call-preserved registers.
10915 (early_remat::emit_remat_insns_for_block): Likewise for the
10916 final call in a block. Do the same thing for live-in registers
10917 when calling emit_remat_insns at the head of a block.
10919 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10921 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10922 whether the current function needs to save at least part of a
10923 register before using it.
10924 (df_get_exit_block_use_set): Likewise for epilogue restores.
10926 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10928 * df-problems.c: Include regs.h and function-abi.h.
10929 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10930 sparse_invalidated_by_eh and dense_invalidated_by_call to
10931 dense_invalidated_by_eh.
10932 (df_print_bb_index): Update accordingly.
10933 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10934 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10935 that are clobbered by an EH edge. Clobber partially-clobbered
10936 registers as well as fully-clobbered ones.
10937 (df_md_confluence_n): Likewise.
10938 (df_rd_local_compute): Likewise. Update for changes to
10939 df_rd_problem_data.
10940 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10941 of registers that are clobbered by an EH edge. Includde partially-
10942 clobbered registers as well as fully-clobbered ones.
10944 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10946 * cselib.c (cselib_process_insn): If we know what mode a
10947 register was set in, check whether it is clobbered in that
10948 mode by a call. Only fall back to reg_raw_mode if that fails.
10950 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10952 * cse.c: Include regs.h and function-abi.h.
10953 (invalidate_for_call): Take the call insn as an argument.
10954 Use insn_callee_abi to get the ABI of the call and invalidate
10955 partially clobbered registers as well as fully clobbered ones.
10956 (cse_insn): Update call accordingly.
10958 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10960 * combine.c: Include function-abi.h.
10961 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10962 of the target of call insns. Invalidate partially-clobbered
10963 registers as well as fully-clobbered ones.
10965 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10967 * cfgloopanal.c: Include regs.h and function-abi.h.
10968 (init_set_costs): Use default_function_abi to test whether
10969 a general register is call-clobbered.
10971 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10973 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10974 instead of the call-clobbered sets.
10976 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10978 * caller-save.c (setup_save_areas): Remove redundant |s of
10980 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10981 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10984 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10986 * rtl.h (predefined_function_abi): Declare.
10987 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10988 instead of a boolean call_save flag.
10989 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10991 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10992 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10993 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10994 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10995 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10996 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10997 * reginfo.c (init_reg_modes_target): Likewise.
10998 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10999 instead of a boolean call_save flag.
11000 * targhooks.c: Include function-abi.h.
11001 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
11002 using eh_edge_abi to choose the mode.
11004 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11006 * target.def (hard_regno_call_part_clobbered): Take an ABI
11007 identifier instead of an rtx_insn.
11008 * doc/tm.texi: Regenerate.
11009 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
11010 (hook_bool_uint_uint_mode_false): New function.
11011 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
11012 (hook_bool_uint_uint_mode_false): New function.
11013 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11014 Take an ABI identifier instead of an rtx_insn.
11015 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
11016 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
11017 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
11018 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
11019 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
11021 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
11022 * cselib.c: Include function-abi.h.
11023 (cselib_process_insn): Update call to
11024 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11025 to get the appropriate ABI identifier.
11026 * function-abi.cc (predefined_function_abi::initialize): Update call
11027 to targetm.hard_regno_call_part_clobbered.
11028 * ira-conflicts.c (ira_build_conflicts): Likewise.
11029 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11030 * lra-constraints.c: Include function-abi.h.
11031 (need_for_call_save_p): Update call to
11032 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11033 to get the appropriate ABI identifier.
11034 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
11035 * regcprop.c (copyprop_hardreg_forward_1): Update call
11036 to targetm.hard_regno_call_part_clobbered.
11037 * reginfo.c (choose_hard_reg_mode): Likewise.
11038 * regrename.c (check_new_reg_p): Likewise.
11039 * reload.c (find_equiv_reg): Likewise.
11040 * reload1.c (emit_reload_insns): Likewise.
11041 * sched-deps.c: Include function-abi.h.
11042 (deps_analyze_insn): Update call to
11043 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
11044 to get the appropriate ABI identifier.
11045 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
11046 call to targetm.hard_regno_call_part_clobbered.
11047 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
11049 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11051 * config/i386/i386.c: Include function-abi.h.
11052 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
11053 if they preserve some 256-bit or 512-bit SSE registers.
11055 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11057 * target.def (insn_callee_abi): New hook.
11058 (remove_extra_call_preserved_regs): Delete.
11059 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
11060 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11061 * doc/tm.texi: Regenerate.
11062 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
11063 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
11064 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
11066 (aarch64_remove_extra_call_preserved_regs): Delete.
11067 (aarch64_insn_callee_abi): New function.
11068 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
11069 (TARGET_INSN_CALLEE_ABI): New macro.
11070 * rtl.h (get_call_fndecl): Declare.
11071 (cgraph_rtl_info): Fix formatting. Tweak comment for
11072 function_used_regs. Remove function_used_regs_valid.
11073 * rtlanal.c (get_call_fndecl): Moved from final.c
11074 * function-abi.h (insn_callee_abi): Declare.
11075 (target_function_abi_info): Mention insn_callee_abi.
11076 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
11077 way to get_call_reg_set_usage did.
11078 (insn_callee_abi): New function.
11079 * regs.h (get_call_reg_set_usage): Delete.
11080 * final.c: Include function-abi.h.
11081 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11082 function_used_regs before the main loop rather than afterwards.
11083 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11084 if function_used_regs ends up not being useful.
11085 (get_call_fndecl): Move to rtlanal.c
11086 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11087 * caller-save.c: Include function-abi.h.
11088 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11089 instead of get_call_reg_set_usage.
11090 * cfgcleanup.c: Include function-abi.h.
11091 (old_insns_match_p): Use insn_callee_abi instead of
11092 get_call_reg_set_usage.
11093 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11095 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11096 function_used_regs.
11097 * df-scan.c: Include function-abi.h.
11098 (df_get_call_refs): Use insn_callee_abi instead of
11099 get_call_reg_set_usage.
11100 * ira-lives.c: Include function-abi.h.
11101 (process_bb_node_lives): Use insn_callee_abi instead of
11102 get_call_reg_set_usage.
11103 * lra-lives.c: Include function-abi.h.
11104 (process_bb_lives): Use insn_callee_abi instead of
11105 get_call_reg_set_usage.
11106 * postreload.c: Include function-abi.h.
11107 (reload_combine): Use insn_callee_abi instead of
11108 get_call_reg_set_usage.
11109 * regcprop.c: Include function-abi.h.
11110 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11111 get_call_reg_set_usage.
11112 * resource.c: Include function-abi.h.
11113 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11114 instead of get_call_reg_set_usage.
11115 * var-tracking.c: Include function-abi.h.
11116 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11117 get_call_reg_set_usage.
11119 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11121 * target.def (fntype_abi): New target hook.
11122 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11123 * doc/tm.texi: Regenerate.
11124 * target.h (predefined_function_abi): Declare.
11125 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11127 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11128 * config/aarch64/aarch64.c: Include function-abi.h.
11129 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11130 (TARGET_FNTYPE_ABI): Define.
11132 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11134 * Makefile.in (OBJS): Add function-abi.o.
11135 (GTFILES): Add function-abi.h.
11136 * function-abi.cc: New file.
11137 * function-abi.h: Likewise.
11138 * emit-rtl.h (rtl_data::abi): New field.
11139 * function.c: Include function-abi.h.
11140 (prepare_function_start): Initialize crtl->abi.
11141 * read-rtl-function.c: Include regs.h and function-abi.h.
11142 (read_rtl_function_body): Initialize crtl->abi.
11143 (read_rtl_function_body_from_file_range): Likewise.
11144 * reginfo.c: Include function-abi.h.
11145 (init_reg_sets_1): Initialize default_function_abi.
11146 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11147 when making a register global.
11148 * target-globals.h (this_target_function_abi_info): Declare.
11149 (target_globals::function_abi_info): New field.
11150 (restore_target_globals): Copy it.
11151 * target-globals.c: Include function-abi.h.
11152 (default_target_globals): Initialize the function_abi_info field.
11153 (target_globals): Allocate it.
11154 (save_target_globals): Free it.
11156 2019-09-30 Nick Clifton <nickc@redhat.com>
11159 * config/frv/frv.c (frv_register_move_cost): Add break statements
11160 to avoid falling through to the wrong cases. Tidy code.
11162 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11164 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11165 For multi-registers modes, test how big each register part is.
11167 2019-09-30 Nick Clifton <nickc@redhat.com>
11170 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11171 (TARGET_ASM_SELECT_SECTION): Remove definition.
11172 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11174 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11176 * emit-rtl.c (init_raw_REG): New function.
11177 (gen_raw_REG): Use init_raw_REG.
11178 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11180 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11181 * rtl.h (rtx_init): New function.
11182 (rtx_alloca): New function.
11183 (init_raw_REG): New function.
11184 (alloca_raw_REG): New macro.
11186 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11188 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11189 (pcrel_local_address): Replace pcrel_address predicate, use the
11190 new function address_to_insn_form.
11191 (pcrel_external_address): Replace with new implementation using
11192 address_to_insn_form..
11193 (prefixed_mem_operand): Delete predicate which is now unused.
11194 (pcrel_external_mem_operand): Delete predicate which is now
11196 * config/rs6000/rs6000-protos.h (enum insn_form): New
11198 (enum non_prefixed_form): New enumeration.
11199 (address_to_insn_form): New declaration.
11200 (prefixed_load_p): New declaration.
11201 (prefixed_store_p): New declaration.
11202 (prefixed_paddi_p): New declaration.
11203 (rs6000_asm_output_opcode): New declaration.
11204 (rs6000_final_prescan_insn): Move declaration and update calling
11206 (address_is_prefixed): New helper inline function.
11207 * config/rs6000/rs6000.c(print_operand_address): Check for either
11208 PC-relative local symbols or PC-relative external symbols.
11209 (rs6000_emit_move): Support loading PC-relative addresses.
11210 (mode_supports_prefixed_address_p): Delete, no longer used.
11211 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11212 (address_to_insn_form): New function to decode an address format.
11213 (reg_to_non_prefixed): New function to identify what the
11214 non-prefixed memory instruction format is for a register.
11215 (prefixed_load_p): New function to identify prefixed loads.
11216 (prefixed_store_p): New function to identify prefixed stores.
11217 (prefixed_paddi_p): New function to identify prefixed load
11219 (next_insn_prefixed_p): New static state variable.
11220 (rs6000_final_prescan_insn): New function to determine if an insn
11221 uses a prefixed instruction.
11222 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11223 prefixed instruction.
11224 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11225 (ASM_OUTPUT_OPCODE): New target hook.
11226 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11227 prefixed instructions.
11228 (prefixed_length): New insn attribute for the size of prefixed
11230 (non_prefixed_length): New insn attribute for the size of
11231 non-prefixed instructions.
11232 (pcrel_local_addr): New insn to load up a local PC-relative
11234 (pcrel_extern_addr): New insn to load up an external PC-relative
11236 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11237 GPR and loading a 128-bit floating point type to a GPR.
11239 2019-09-30 Richard Biener <rguenther@suse.de>
11241 * gimple.c (gimple_get_lhs): For PHIs return the result.
11242 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11243 SLP instance as argument.
11244 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11245 double-reduction PHIs with vectorizable_lc_phi.
11246 (vect_analyze_loop_operations): Adjust.
11247 (vect_create_epilog_for_reduction): Remove all code not dealing
11248 with reduction LC PHI or epilogue generation.
11249 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11250 for live stmts of reductions.
11251 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11252 do not handle defs that are not vect_internal_def.
11253 (can_vectorize_live_stmts): Adjust.
11254 (vect_analyze_stmt): When the vectorized stmt defined a value
11255 used on backedges adjust the backedge uses of vectorized PHIs.
11257 2019-09-30 Martin Jambor <mjambor@suse.cz>
11260 * tree-inline.c (force_value_to_type): New function.
11261 (setup_one_parameter): Use force_value_to_type to convert type.
11262 * tree-inline.c (force_value_to_type): Declare.
11263 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11264 with register type mismatches.
11266 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11268 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11270 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11271 * config/rs6000/t-freebsd64: Make use of the above define and build
11272 the 32-bit libraries with secure-plt.
11274 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11277 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11278 gen_int_mode instead of GEN_INT.
11280 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11282 * config/darwin.c (gen_macho_low): Amend to include the mode
11284 (machopic_indirect_data_reference): Amend gen_macho_low call
11285 to include mode argument
11286 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11287 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11288 the macho_high expander and two define_insn entries.
11290 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11293 * optc-save-gen.awk: Fix up printing string option differences.
11295 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11297 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11298 vec_perm cost to 1 for non-Power7 VSX architectures.
11300 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11302 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11303 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11304 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11306 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11308 * config/darwin.c (gen_macho_high): Amend to include the mode
11310 (machopic_indirect_data_reference): Amend gen_macho_high call
11311 to include mode argument.
11312 (machopic_legitimize_pic_address): Likewise.
11313 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11314 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11315 the macho_high expander and two define_insn entries.
11317 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11320 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11322 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11325 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11326 std::string::compare instead of std::string::find.
11328 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11330 * configure: Regenerate.
11332 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11334 PR middle-end/91920
11335 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11336 variables as shared.
11338 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11340 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11341 replaces the expander and two define_insn entries.
11342 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11344 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11346 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11348 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11349 (fibonacci_heap::nodes): Likewise.
11350 (fibonacci_heap::min_key): Likewise.
11351 (fibonacci_heap::min): Likewise.
11353 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11355 * cgraph.c (cgraph_node::get_fun): Make const.
11356 * cgraph.h (cgraph_node::get_fun): Likewise.
11358 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11361 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11364 2019-09-27 Richard Biener <rguenther@suse.de>
11366 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11367 (STMT_VINFO_REDUC_FN): Likewise.
11368 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11369 STMT_VINFO_REDUC_FN.
11370 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11371 for condition reductions.
11372 (vect_create_epilog_for_reduction): Compute all required state
11373 from the stmt to be vectorized.
11374 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11375 invocation and remove then dead code. For single def-use chains
11376 record only a single vector stmt.
11378 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11380 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11381 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11382 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11383 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11384 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11385 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11386 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11387 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11388 (aarch64_general_builtin_rsqrt): Declare.
11389 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11391 (aarch64_mangle_builtin_type): Rename to...
11392 (aarch64_general_mangle_builtin_type): ...this.
11393 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11394 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11395 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11396 aarch64_general_add_builtin instead of add_builtin_function.
11397 (aarch64_init_builtins): Rename to...
11398 (aarch64_general_init_builtins): ...this. Use
11399 aarch64_general_add_builtin instead of add_builtin_function.
11400 (aarch64_builtin_decl): Rename to...
11401 (aarch64_general_builtin_decl): ...this and remove the unused
11403 (aarch64_expand_builtin): Rename to...
11404 (aarch64_general_expand_builtin): ...this and remove the unused
11406 (aarch64_builtin_rsqrt): Rename to...
11407 (aarch64_general_builtin_rsqrt): ...this.
11408 (aarch64_fold_builtin): Rename to...
11409 (aarch64_general_fold_builtin): ...this. Take the function subcode
11410 and return type as arguments. Remove the "ignored" argument.
11411 (aarch64_gimple_fold_builtin): Rename to...
11412 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11413 subcode and gcall as arguments, and return the new function call.
11414 * config/aarch64/aarch64.c (aarch64_init_builtins)
11415 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11416 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11417 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11418 instead of aarch64_builtin_rsqrt.
11419 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11420 instead of aarch64_mangle_builtin_type.
11422 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11424 * target.def (check_builtin_call): New target hook.
11425 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11426 * doc/tm.texi: Regenerate.
11428 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11430 PR tree-optimization/91909
11431 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11432 reduc_index parameter. When handling COND_REDUCTION, make sure
11433 that the reduction phi operand is in the correct arm of the
11435 (vectorizable_reduction): Pass reduc_index to the above.
11437 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11439 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11440 New combine pattern.
11442 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11444 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11445 loop instruction into new basic block before the loop when basic
11446 block that precedes the loop is empty.
11448 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11450 * function.c (gimplify_parameters): Use build_clobber function.
11451 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11452 * tree-inline.c (expand_call_inline): Likewise.
11453 * tree-sra.c (clobber_subtree): Likewise.
11454 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11455 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11456 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11457 lower_omp_target): Likewise.
11458 * omp-expand.c (expand_omp_for_generic): Likewise.
11459 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11461 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11463 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11464 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11465 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11466 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11467 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11468 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11469 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11470 LD_ELEMREV_V16QI): Use the PURE attribute.
11472 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11474 * config/rs6000/darwin.md: Replace the expanders for
11475 load_macho_picbase and reload_macho_picbase with use of '@'
11476 and <mode> in their respective define_insns.
11477 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11478 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11479 Pmode to gen_load_macho_picbase.
11480 * config/rs6000/rs6000.md: Likewise.
11482 2019-09-25 Richard Biener <rguenther@suse.de>
11484 PR tree-optimization/91896
11485 * tree-vect-loop.c (vectorizable_reduction): The single
11486 def-use cycle optimization cannot apply when there's more
11487 than one pattern stmt involved.
11489 2019-09-26 Richard Biener <rguenther@suse.de>
11491 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11492 loop-closed PHIs that are vect_internal_def.
11493 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11495 (vectorizable_lc_phi): New.
11496 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11497 (vect_transform_stmt): Likewise.
11498 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11499 (vectorizable_lc_phi): Declare.
11501 2019-09-26 Richard Biener <rguenther@suse.de>
11503 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11504 vectorizable_reduction for vect_double_reduction_def.
11505 (vect_transform_loop): Likewise.
11506 (vect_create_epilog_for_reduction): Move double-reduction
11507 PHI creation and preheader argument setting of PHIs ...
11508 (vectorizable_reduction): ... here. Also process
11509 vect_double_reduction_def PHIs, creating the vectorized
11510 PHI nodes, remembering the scalar adjustment computed for
11511 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11512 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11513 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11514 Initialize STMT_VINFO_REDUC_CODE.
11515 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11516 (_stmt_vec_info::reduc_code): Likewise.
11517 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11518 (STMT_VINFO_REDUC_CODE): Likewise.
11520 2019-09-26 Matt Turner <mattst88@gmail.com>
11523 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11524 (mtune=): Add Negative(mtune=).
11525 (mcpu=): Add Negative(mcpu=).
11526 * config/arm/arm.opt: Likewise.
11528 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11530 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11531 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11533 * config/arm/arm_acle.h: Define builtins for the above.
11534 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11535 (simd32_op): Handle the above.
11536 * config/arm/unspecs.md: Define unspecs for the above.
11538 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11540 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11541 (arm_<sup>xtb16): Likewise.
11542 (arm_usada8): Likewise.
11543 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11544 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11545 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11546 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11547 __sxtb16, __uxtab16, __uxtb16): Define.
11548 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11549 * config/arm/unspecs.md: Define unspecs for the above.
11550 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11551 (USXTB16): Likewise.
11552 (simd32_op): New int_attribute.
11553 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11554 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11556 2019-09-26 Martin Jambor <mjambor@suse.cz>
11558 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11561 2019-09-26 Martin Jambor <mjambor@suse.cz>
11563 * ipa-sra.c (process_scan_results): Fix continue condition.
11565 2019-09-26 Martin Liska <mliska@suse.cz>
11567 PR tree-optimization/91885
11568 * tree-vectorizer.c (try_vectorize_loop_1): Add
11569 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11571 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11573 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11574 aarch64_plus_immediate rather than aarch64_uimm12_shift
11575 to test for valid PLUS immediates.
11577 2019-09-25 Martin Jambor <mjambor@suse.cz>
11579 * tree-sra.c (no_accesses_p): Remove.
11580 (no_accesses_representant): Likewise.
11582 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11584 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11586 (vaba_s16): Likewise.
11587 (vaba_s32): Likewise.
11588 (vaba_u8): Likewise.
11589 (vaba_u16): Likewise.
11590 (vaba_u32): Likewise.
11591 (vabal_high_s8): Likewise.
11592 (vabal_high_s16): Likewise.
11593 (vabal_high_s32): Likewise.
11594 (vabal_high_u8): Likewise.
11595 (vabal_high_u16): Likewise.
11596 (vabal_high_u32): Likewise.
11597 (vabal_s8): Likewise.
11598 (vabal_s16): Likewise.
11599 (vabal_s32): Likewise.
11600 (vabal_u8): Likewise.
11601 (vabal_u16): Likewise.
11602 (vabal_u32): Likewise.
11603 (vabaq_s8): Likewise.
11604 (vabaq_s16): Likewise.
11605 (vabaq_s32): Likewise.
11606 (vabaq_u8): Likewise.
11607 (vabaq_u16): Likewise.
11608 (vabaq_u32): Likewise.
11609 (vabd_s8): Likewise.
11610 (vabd_s16): Likewise.
11611 (vabd_s32): Likewise.
11612 (vabd_u8): Likewise.
11613 (vabd_u16): Likewise.
11614 (vabd_u32): Likewise.
11615 (vabdl_high_s8): Likewise.
11616 (vabdl_high_s16): Likewise.
11617 (vabdl_high_s32): Likewise.
11618 (vabdl_high_u8): Likewise.
11619 (vabdl_high_u16): Likewise.
11620 (vabdl_high_u32): Likewise.
11621 (vabdl_s8): Likewise.
11622 (vabdl_s16): Likewise.
11623 (vabdl_s32): Likewise.
11624 (vabdl_u8): Likewise.
11625 (vabdl_u16): Likewise.
11626 (vabdl_u32): Likewise.
11627 (vabdq_s8): Likewise.
11628 (vabdq_s16): Likewise.
11629 (vabdq_s32): Likewise.
11630 (vabdq_u8): Likewise.
11631 (vabdq_u16): Likewise.
11632 (vabdq_u32): Likewise.
11633 (vaddlv_s8): Likewise.
11634 (vaddlv_s16): Likewise.
11635 (vaddlv_u8): Likewise.
11636 (vaddlv_u16): Likewise.
11637 (vaddlvq_s8): Likewise.
11638 (vaddlvq_s16): Likewise.
11639 (vaddlvq_s32): Likewise.
11640 (vaddlvq_u8): Likewise.
11641 (vaddlvq_u16): Likewise.
11642 (vaddlvq_u32): Likewise.
11643 (vcvtx_f32_f64): Likewise.
11644 (vcvtx_high_f32_f64): Likewise.
11645 (vcvtxd_f32_f64): Likewise.
11646 (vmla_n_f32): Likewise.
11647 (vmla_n_s16): Likewise.
11648 (vmla_n_s32): Likewise.
11649 (vmla_n_u16): Likewise.
11650 (vmla_n_u32): Likewise.
11651 (vmla_s8): Likewise.
11652 (vmla_s16): Likewise.
11653 (vmla_s32): Likewise.
11654 (vmla_u8): Likewise.
11655 (vmla_u16): Likewise.
11656 (vmla_u32): Likewise.
11657 (vmlal_high_n_s16): Likewise.
11658 (vmlal_high_n_s32): Likewise.
11659 (vmlal_high_n_u16): Likewise.
11660 (vmlal_high_n_u32): Likewise.
11661 (vmlal_high_s8): Likewise.
11662 (vmlal_high_s16): Likewise.
11663 (vmlal_high_s32): Likewise.
11664 (vmlal_high_u8): Likewise.
11665 (vmlal_high_u16): Likewise.
11666 (vmlal_high_u32): Likewise.
11667 (vmlal_n_s16): Likewise.
11668 (vmlal_n_s32): Likewise.
11669 (vmlal_n_u16): Likewise.
11670 (vmlal_n_u32): Likewise.
11671 (vmlal_s8): Likewise.
11672 (vmlal_s16): Likewise.
11673 (vmlal_s32): Likewise.
11674 (vmlal_u8): Likewise.
11675 (vmlal_u16): Likewise.
11676 (vmlal_u32): Likewise.
11677 (vmlaq_n_f32): Likewise.
11678 (vmlaq_n_s16): Likewise.
11679 (vmlaq_n_s32): Likewise.
11680 (vmlaq_n_u16): Likewise.
11681 (vmlaq_n_u32): Likewise.
11682 (vmlaq_s8): Likewise.
11683 (vmlaq_s16): Likewise.
11684 (vmlaq_s32): Likewise.
11685 (vmlaq_u8): Likewise.
11686 (vmlaq_u16): Likewise.
11687 (vmlaq_u32): Likewise.
11688 (vmls_n_f32): Likewise.
11689 (vmls_n_s16): Likewise.
11690 (vmls_n_s32): Likewise.
11691 (vmls_n_u16): Likewise.
11692 (vmls_n_u32): Likewise.
11693 (vmls_s8): Likewise.
11694 (vmls_s16): Likewise.
11695 (vmls_s32): Likewise.
11696 (vmls_u8): Likewise.
11697 (vmls_u16): Likewise.
11698 (vmls_u32): Likewise.
11699 (vmlsl_high_n_s16): Likewise.
11700 (vmlsl_high_n_s32): Likewise.
11701 (vmlsl_high_n_u16): Likewise.
11702 (vmlsl_high_n_u32): Likewise.
11703 (vmlsl_high_s8): Likewise.
11704 (vmlsl_high_s16): Likewise.
11705 (vmlsl_high_s32): Likewise.
11706 (vmlsl_high_u8): Likewise.
11707 (vmlsl_high_u16): Likewise.
11708 (vmlsl_high_u32): Likewise.
11709 (vmlsl_n_s16): Likewise.
11710 (vmlsl_n_s32): Likewise.
11711 (vmlsl_n_u16): Likewise.
11712 (vmlsl_n_u32): Likewise.
11713 (vmlsl_s8): Likewise.
11714 (vmlsl_s16): Likewise.
11715 (vmlsl_s32): Likewise.
11716 (vmlsl_u8): Likewise.
11717 (vmlsl_u16): Likewise.
11718 (vmlsl_u32): Likewise.
11719 (vmlsq_n_f32): Likewise.
11720 (vmlsq_n_s16): Likewise.
11721 (vmlsq_n_s32): Likewise.
11722 (vmlsq_n_u16): Likewise.
11723 (vmlsq_n_u32): Likewise.
11724 (vmlsq_s8): Likewise.
11725 (vmlsq_s16): Likewise.
11726 (vmlsq_s32): Likewise.
11727 (vmlsq_u8): Likewise.
11728 (vmlsq_u16): Likewise.
11729 (vmlsq_u32): Likewise.
11730 (vmovl_high_s8): Likewise.
11731 (vmovl_high_s16): Likewise.
11732 (vmovl_high_s32): Likewise.
11733 (vmovl_high_u8): Likewise.
11734 (vmovl_high_u16): Likewise.
11735 (vmovl_high_u32): Likewise.
11736 (vmovl_s8): Likewise.
11737 (vmovl_s16): Likewise.
11738 (vmovl_s32): Likewise.
11739 (vmovl_u8): Likewise.
11740 (vmovl_u16): Likewise.
11741 (vmovl_u32): Likewise.
11742 (vmovn_high_s16): Likewise.
11743 (vmovn_high_s32): Likewise.
11744 (vmovn_high_s64): Likewise.
11745 (vmovn_high_u16): Likewise.
11746 (vmovn_high_u32): Likewise.
11747 (vmovn_high_u64): Likewise.
11748 (vmovn_s16): Likewise.
11749 (vmovn_s32): Likewise.
11750 (vmovn_s64): Likewise.
11751 (vmovn_u16): Likewise.
11752 (vmovn_u32): Likewise.
11753 (vmovn_u64): Likewise.
11754 (vmull_high_n_s16): Likewise.
11755 (vmull_high_n_s32): Likewise.
11756 (vmull_high_n_u16): Likewise.
11757 (vmull_high_n_u32): Likewise.
11758 (vmull_high_p8): Likewise.
11759 (vmull_high_s8): Likewise.
11760 (vmull_high_s16): Likewise.
11761 (vmull_high_s32): Likewise.
11762 (vmull_high_u8): Likewise.
11763 (vmull_high_u16): Likewise.
11764 (vmull_high_u32): Likewise.
11765 (vmull_n_s16): Likewise.
11766 (vmull_n_s32): Likewise.
11767 (vmull_n_u16): Likewise.
11768 (vmull_n_u32): Likewise.
11769 (vmull_p8): Likewise.
11770 (vmull_s8): Likewise.
11771 (vmull_s16): Likewise.
11772 (vmull_s32): Likewise.
11773 (vmull_u8): Likewise.
11774 (vmull_u16): Likewise.
11775 (vmull_u32): Likewise.
11776 (vpadal_s8): Likewise.
11777 (vpadal_s16): Likewise.
11778 (vpadal_s32): Likewise.
11779 (vpadal_u8): Likewise.
11780 (vpadal_u16): Likewise.
11781 (vpadal_u32): Likewise.
11782 (vpadalq_s8): Likewise.
11783 (vpadalq_s16): Likewise.
11784 (vpadalq_s32): Likewise.
11785 (vpadalq_u8): Likewise.
11786 (vpadalq_u16): Likewise.
11787 (vpadalq_u32): Likewise.
11788 (vpaddl_s8): Likewise.
11789 (vpaddl_s16): Likewise.
11790 (vpaddl_s32): Likewise.
11791 (vpaddl_u8): Likewise.
11792 (vpaddl_u16): Likewise.
11793 (vpaddl_u32): Likewise.
11794 (vpaddlq_s8): Likewise.
11795 (vpaddlq_s16): Likewise.
11796 (vpaddlq_s32): Likewise.
11797 (vpaddlq_u8): Likewise.
11798 (vpaddlq_u16): Likewise.
11799 (vpaddlq_u32): Likewise.
11800 (vpaddq_s8): Likewise.
11801 (vpaddq_s16): Likewise.
11802 (vpaddq_s32): Likewise.
11803 (vpaddq_s64): Likewise.
11804 (vpaddq_u8): Likewise.
11805 (vpaddq_u16): Likewise.
11806 (vpaddq_u32): Likewise.
11807 (vpaddq_u64): Likewise.
11808 (vqdmulh_n_s16): Likewise.
11809 (vqdmulh_n_s32): Likewise.
11810 (vqdmulhq_n_s16): Likewise.
11811 (vqdmulhq_n_s32): Likewise.
11812 (vqmovn_high_s16): Likewise.
11813 (vqmovn_high_s32): Likewise.
11814 (vqmovn_high_s64): Likewise.
11815 (vqmovn_high_u16): Likewise.
11816 (vqmovn_high_u32): Likewise.
11817 (vqmovn_high_u64): Likewise.
11818 (vqmovun_high_s16): Likewise.
11819 (vqmovun_high_s32): Likewise.
11820 (vqmovun_high_s64): Likewise.
11821 (vqrdmulh_n_s16): Likewise.
11822 (vqrdmulh_n_s32): Likewise.
11823 (vqrdmulhq_n_s16): Likewise.
11824 (vqrdmulhq_n_s32): Likewise.
11825 (vrsqrte_u32): Likewise.
11826 (vrsqrteq_u32): Likewise.
11827 (vtst_p8): Likewise.
11828 (vtst_p16): Likewise.
11829 (vtst_p64): Likewise.
11830 (vtstq_p8): Likewise.
11831 (vtstq_p16): Likewise.
11832 (vtstq_p64): Likewise.
11833 (vaddlv_s32): Likewise.
11834 (vaddlv_u32): Likewise.
11835 (vqtbl1_p8): Likewise.
11836 (vqtbl1_s8): Likewise.
11837 (vqtbl1_u8): Likewise.
11838 (vqtbl1q_p8): Likewise.
11839 (vqtbl1q_s8): Likewise.
11840 (vqtbl1q_u8): Likewise.
11841 (vqtbx1_s8): Likewise.
11842 (vqtbx1_u8): Likewise.
11843 (vqtbx1_p8): Likewise.
11844 (vqtbx1q_s8): Likewise.
11845 (vqtbx1q_u8): Likewise.
11846 (vqtbx1q_p8): Likewise.
11847 (vtbl1_s8): Likewise.
11848 (vtbl1_u8): Likewise.
11849 (vtbl1_p8): Likewise.
11850 (vtbl2_s8): Likewise.
11851 (vtbl2_u8): Likewise.
11852 (vtbl2_p8): Likewise.
11853 (vtbl3_s8): Likewise.
11854 (vtbl3_u8): Likewise.
11855 (vtbl3_p8): Likewise.
11856 (vtbl4_s8): Likewise.
11857 (vtbl4_u8): Likewise.
11858 (vtbl4_p8): Likewise.
11859 (vtbx2_s8): Likewise.
11860 (vtbx2_u8): Likewise.
11861 (vtbx2_p8): Likewise.
11862 (vld1_f32): Likewise.
11863 (vld1_f64): Likewise.
11864 (vld1_p8): Likewise.
11865 (vld1_p16): Likewise.
11866 (vld1_p64): Likewise.
11867 (vld1_s8): Likewise.
11868 (vld1_s16): Likewise.
11869 (vld1_s32): Likewise.
11870 (vld1_s64): Likewise.
11871 (vld1_u8): Likewise.
11872 (vld1_u16): Likewise.
11873 (vld1_u32): Likewise.
11874 (vld1_u64): Likewise.
11875 (vld1q_f32): Likewise.
11876 (vld1q_f64): Likewise.
11877 (vld1q_p8): Likewise.
11878 (vld1q_p16): Likewise.
11879 (vld1q_p64): Likewise.
11880 (vld1q_s8): Likewise.
11881 (vld1q_s16): Likewise.
11882 (vld1q_s32): Likewise.
11883 (vld1q_s64): Likewise.
11884 (vld1q_u8): Likewise.
11885 (vld1q_u16): Likewise.
11886 (vld1q_u32): Likewise.
11887 (vld1q_u64): Likewise.
11888 (vpmax_s8): Likewise.
11889 (vpmax_s16): Likewise.
11890 (vpmax_s32): Likewise.
11891 (vpmax_u8): Likewise.
11892 (vpmax_u16): Likewise.
11893 (vpmax_u32): Likewise.
11894 (vpmaxq_s8): Likewise.
11895 (vpmaxq_s16): Likewise.
11896 (vpmaxq_s32): Likewise.
11897 (vpmaxq_u8): Likewise.
11898 (vpmaxq_u16): Likewise.
11899 (vpmaxq_u32): Likewise.
11900 (vpmax_f32): Likewise.
11901 (vpmaxq_f32): Likewise.
11902 (vpmaxq_f64): Likewise.
11903 (vpmaxqd_f64): Likewise.
11904 (vpmaxs_f32): Likewise.
11905 (vpmaxnm_f32): Likewise.
11906 (vpmaxnmq_f32): Likewise.
11907 (vpmaxnmq_f64): Likewise.
11908 (vpmaxnmqd_f64): Likewise.
11909 (vpmaxnms_f32): Likewise.
11910 (vpmin_s8): Likewise.
11911 (vpmin_s16): Likewise.
11912 (vpmin_s32): Likewise.
11913 (vpmin_u8): Likewise.
11914 (vpmin_u16): Likewise.
11915 (vpmin_u32): Likewise.
11916 (vpminq_s8): Likewise.
11917 (vpminq_s16): Likewise.
11918 (vpminq_s32): Likewise.
11919 (vpminq_u8): Likewise.
11920 (vpminq_u16): Likewise.
11921 (vpminq_u32): Likewise.
11922 (vpmin_f32): Likewise.
11923 (vpminq_f32): Likewise.
11924 (vpminq_f64): Likewise.
11925 (vpminqd_f64): Likewise.
11926 (vpmins_f32): Likewise.
11927 (vpminnm_f32): Likewise.
11928 (vpminnmq_f32): Likewise.
11929 (vpminnmq_f64): Likewise.
11930 (vpminnmqd_f64): Likewise.
11931 (vpminnms_f32): Likewise.
11932 (vmla_f32): Likewise.
11933 (vmlaq_f32): Likewise.
11934 (vmlaq_f64): Likewise.
11935 (vmls_f32): Likewise.
11936 (vmlsq_f32): Likewise.
11937 (vmlsq_f64): Likewise.
11938 (vqtbl2_s8): Likewise.
11939 (vqtbl2_u8): Likewise.
11940 (vqtbl2_p8): Likewise.
11941 (vqtbl2q_s8): Likewise.
11942 (vqtbl2q_u8): Likewise.
11943 (vqtbl2q_p8): Likewise.
11944 (vqtbl3_s8): Likewise.
11945 (vqtbl3_u8): Likewise.
11946 (vqtbl3_p8): Likewise.
11947 (vqtbl3q_s8): Likewise.
11948 (vqtbl3q_u8): Likewise.
11949 (vqtbl3q_p8): Likewise.
11950 (vqtbl4_s8): Likewise.
11951 (vqtbl4_u8): Likewise.
11952 (vqtbl4_p8): Likewise.
11953 (vqtbl4q_s8): Likewise.
11954 (vqtbl4q_u8): Likewise.
11955 (vqtbl4q_p8): Likewise.
11956 (vqtbx2_s8): Likewise.
11957 (vqtbx2_u8): Likewise.
11958 (vqtbx2_p8): Likewise.
11959 (vqtbx2q_s8): Likewise.
11960 (vqtbx2q_u8): Likewise.
11961 (vqtbx2q_p8): Likewise.
11962 (vqtbx3_s8): Likewise.
11963 (vqtbx3_u8): Likewise.
11964 (vqtbx3_p8): Likewise.
11965 (vqtbx3q_s8): Likewise.
11966 (vqtbx3q_u8): Likewise.
11967 (vqtbx3q_p8): Likewise.
11968 (vqtbx4_s8): Likewise.
11969 (vqtbx4_u8): Likewise.
11970 (vqtbx4_p8): Likewise.
11971 (vqtbx4q_s8): Likewise.
11972 (vqtbx4q_u8): Likewise.
11973 (vqtbx4q_p8): Likewise.
11974 (vrev16_p8): Likewise.
11975 (vrev16_s8): Likewise.
11976 (vrev16_u8): Likewise.
11977 (vrev16q_p8): Likewise.
11978 (vrev16q_s8): Likewise.
11979 (vrev16q_u8): Likewise.
11980 (vrev32_p8): Likewise.
11981 (vrev32_p16): Likewise.
11982 (vrev32_s8): Likewise.
11983 (vrev32_s16): Likewise.
11984 (vrev32_u8): Likewise.
11985 (vrev32_u16): Likewise.
11986 (vrev32q_p8): Likewise.
11987 (vrev32q_p16): Likewise.
11988 (vrev32q_s8): Likewise.
11989 (vrev32q_s16): Likewise.
11990 (vrev32q_u8): Likewise.
11991 (vrev32q_u16): Likewise.
11992 (vrev64_f32): Likewise.
11993 (vrev64_p8): Likewise.
11994 (vrev64_p16): Likewise.
11995 (vrev64_s8): Likewise.
11996 (vrev64_s16): Likewise.
11997 (vrev64_s32): Likewise.
11998 (vrev64_u8): Likewise.
11999 (vrev64_u16): Likewise.
12000 (vrev64_u32): Likewise.
12001 (vrev64q_f32): Likewise.
12002 (vrev64q_p8): Likewise.
12003 (vrev64q_p16): Likewise.
12004 (vrev64q_s8): Likewise.
12005 (vrev64q_s16): Likewise.
12006 (vrev64q_s32): Likewise.
12007 (vrev64q_u8): Likewise.
12008 (vrev64q_u16): Likewise.
12009 (vrev64q_u32): Likewise.
12010 (vsha1cq_u32): Likewise.
12011 (vsha1mq_u32): Likewise.
12012 (vsha1pq_u32): Likewise.
12013 (vsha1h_u32): Likewise.
12014 (vsha1su0q_u32): Likewise.
12015 (vsha1su1q_u32): Likewise.
12016 (vsha256hq_u32): Likewise.
12017 (vsha256h2q_u32): Likewise.
12018 (vsha256su0q_u32): Likewise.
12019 (vsha256su1q_u32): Likewise.
12020 (vmull_p64): Likewise.
12021 (vmull_high_p64): Likewise.
12022 (vsqrt_f32): Likewise.
12023 (vsqrtq_f32): Likewise.
12024 (vsqrt_f64): Likewise.
12025 (vsqrtq_f64): Likewise.
12026 (vst1_f32): Likewise.
12027 (vst1_f64): Likewise.
12028 (vst1_p8): Likewise.
12029 (vst1_p16): Likewise.
12030 (vst1_p64): Likewise.
12031 (vst1_s8): Likewise.
12032 (vst1_s16): Likewise.
12033 (vst1_s32): Likewise.
12034 (vst1_s64): Likewise.
12035 (vst1_u8): Likewise.
12036 (vst1_u16): Likewise.
12037 (vst1_u32): Likewise.
12038 (vst1_u64): Likewise.
12039 (vst1q_f32): Likewise.
12040 (vst1q_f64): Likewise.
12041 (vst1q_p8): Likewise.
12042 (vst1q_p16): Likewise.
12043 (vst1q_p64): Likewise.
12044 (vst1q_s8): Likewise.
12045 (vst1q_s16): Likewise.
12046 (vst1q_s32): Likewise.
12047 (vst1q_s64): Likewise.
12048 (vst1q_u8): Likewise.
12049 (vst1q_u16): Likewise.
12050 (vst1q_u32): Likewise.
12051 (vst1q_u64): Likewise.
12052 (vst1_s64_x2): Likewise.
12053 (vst1_u64_x2): Likewise.
12054 (vst1_f64_x2): Likewise.
12055 (vst1_s8_x2): Likewise.
12056 (vst1_p8_x2): Likewise.
12057 (vst1_s16_x2): Likewise.
12058 (vst1_p16_x2): Likewise.
12059 (vst1_s32_x2): Likewise.
12060 (vst1_u8_x2): Likewise.
12061 (vst1_u16_x2): Likewise.
12062 (vst1_u32_x2): Likewise.
12063 (vst1_f16_x2): Likewise.
12064 (vst1_f32_x2): Likewise.
12065 (vst1_p64_x2): Likewise.
12066 (vst1q_s8_x2): Likewise.
12067 (vst1q_p8_x2): Likewise.
12068 (vst1q_s16_x2): Likewise.
12069 (vst1q_p16_x2): Likewise.
12070 (vst1q_s32_x2): Likewise.
12071 (vst1q_s64_x2): Likewise.
12072 (vst1q_u8_x2): Likewise.
12073 (vst1q_u16_x2): Likewise.
12074 (vst1q_u32_x2): Likewise.
12075 (vst1q_u64_x2): Likewise.
12076 (vst1q_f16_x2): Likewise.
12077 (vst1q_f32_x2): Likewise.
12078 (vst1q_f64_x2): Likewise.
12079 (vst1q_p64_x2): Likewise.
12080 (vst1_s64_x3): Likewise.
12081 (vst1_u64_x3): Likewise.
12082 (vst1_f64_x3): Likewise.
12083 (vst1_s8_x3): Likewise.
12084 (vst1_p8_x3): Likewise.
12085 (vst1_s16_x3): Likewise.
12086 (vst1_p16_x3): Likewise.
12087 (vst1_s32_x3): Likewise.
12088 (vst1_u8_x3): Likewise.
12089 (vst1_u16_x3): Likewise.
12090 (vst1_u32_x3): Likewise.
12091 (vst1_f16_x3): Likewise.
12092 (vst1_f32_x3): Likewise.
12093 (vst1_p64_x3): Likewise.
12094 (vst1q_s8_x3): Likewise.
12095 (vst1q_p8_x3): Likewise.
12096 (vst1q_s16_x3): Likewise.
12097 (vst1q_p16_x3): Likewise.
12098 (vst1q_s32_x3): Likewise.
12099 (vst1q_s64_x3): Likewise.
12100 (vst1q_u8_x3): Likewise.
12101 (vst1q_u16_x3): Likewise.
12102 (vst1q_u32_x3): Likewise.
12103 (vst1q_u64_x3): Likewise.
12104 (vst1q_f16_x3): Likewise.
12105 (vst1q_f32_x3): Likewise.
12106 (vst1q_f64_x3): Likewise.
12107 (vst1q_p64_x3): Likewise.
12108 (vst2_s64): Likewise.
12109 (vst2_u64): Likewise.
12110 (vst2_f64): Likewise.
12111 (vst2_s8): Likewise.
12112 (vst2_p8): Likewise.
12113 (vst2_s16): Likewise.
12114 (vst2_p16): Likewise.
12115 (vst2_s32): Likewise.
12116 (vst2_u8): Likewise.
12117 (vst2_u16): Likewise.
12118 (vst2_u32): Likewise.
12119 (vst2_f16): Likewise.
12120 (vst2_f32): Likewise.
12121 (vst2_p64): Likewise.
12122 (vst2q_s8): Likewise.
12123 (vst2q_p8): Likewise.
12124 (vst2q_s16): Likewise.
12125 (vst2q_p16): Likewise.
12126 (vst2q_s32): Likewise.
12127 (vst2q_s64): Likewise.
12128 (vst2q_u8): Likewise.
12129 (vst2q_u16): Likewise.
12130 (vst2q_u32): Likewise.
12131 (vst2q_u64): Likewise.
12132 (vst2q_f16): Likewise.
12133 (vst2q_f32): Likewise.
12134 (vst2q_f64): Likewise.
12135 (vst2q_p64): Likewise.
12136 (vst3_s64): Likewise.
12137 (vst3_u64): Likewise.
12138 (vst3_f64): Likewise.
12139 (vst3_s8): Likewise.
12140 (vst3_p8): Likewise.
12141 (vst3_s16): Likewise.
12142 (vst3_p16): Likewise.
12143 (vst3_s32): Likewise.
12144 (vst3_u8): Likewise.
12145 (vst3_u16): Likewise.
12146 (vst3_u32): Likewise.
12147 (vst3_f16): Likewise.
12148 (vst3_f32): Likewise.
12149 (vst3_p64): Likewise.
12150 (vst3q_s8): Likewise.
12151 (vst3q_p8): Likewise.
12152 (vst3q_s16): Likewise.
12153 (vst3q_p16): Likewise.
12154 (vst3q_s32): Likewise.
12155 (vst3q_s64): Likewise.
12156 (vst3q_u8): Likewise.
12157 (vst3q_u16): Likewise.
12158 (vst3q_u32): Likewise.
12159 (vst3q_u64): Likewise.
12160 (vst3q_f16): Likewise.
12161 (vst3q_f32): Likewise.
12162 (vst3q_f64): Likewise.
12163 (vst3q_p64): Likewise.
12164 (vst4_s64): Likewise.
12165 (vst4_u64): Likewise.
12166 (vst4_f64): Likewise.
12167 (vst4_s8): Likewise.
12168 (vst4_p8): Likewise.
12169 (vst4_s16): Likewise.
12170 (vst4_p16): Likewise.
12171 (vst4_s32): Likewise.
12172 (vst4_u8): Likewise.
12173 (vst4_u16): Likewise.
12174 (vst4_u32): Likewise.
12175 (vst4_f16): Likewise.
12176 (vst4_f32): Likewise.
12177 (vst4_p64): Likewise.
12178 (vst4q_s8): Likewise.
12179 (vst4q_p8): Likewise.
12180 (vst4q_s16): Likewise.
12181 (vst4q_p16): Likewise.
12182 (vst4q_s32): Likewise.
12183 (vst4q_s64): Likewise.
12184 (vst4q_u8): Likewise.
12185 (vst4q_u16): Likewise.
12186 (vst4q_u32): Likewise.
12187 (vst4q_u64): Likewise.
12188 (vst4q_f16): Likewise.
12189 (vst4q_f32): Likewise.
12190 (vst4q_f64): Likewise.
12191 (vst4q_p64): Likewise.
12192 (vtbx4_s8): Likewise.
12193 (vtbx4_u8): Likewise.
12194 (vtbx4_p8): Likewise.
12195 (vtrn_f32): Likewise.
12196 (vtrn_p8): Likewise.
12197 (vtrn_p16): Likewise.
12198 (vtrn_s8): Likewise.
12199 (vtrn_s16): Likewise.
12200 (vtrn_s32): Likewise.
12201 (vtrn_u8): Likewise.
12202 (vtrn_u16): Likewise.
12203 (vtrn_u32): Likewise.
12204 (vtrnq_f32): Likewise.
12205 (vtrnq_p8): Likewise.
12206 (vtrnq_p16): Likewise.
12207 (vtrnq_s8): Likewise.
12208 (vtrnq_s16): Likewise.
12209 (vtrnq_s32): Likewise.
12210 (vtrnq_u8): Likewise.
12211 (vtrnq_u16): Likewise.
12212 (vtrnq_u32): Likewise.
12213 (vrsqrte_f16): Likewise.
12214 (vrsqrteq_f16): Likewise.
12215 (vsqrt_f16): Likewise.
12216 (vsqrtq_f16): Likewise.
12217 (vabd_f16): Likewise.
12218 (vabdq_f16): Likewise.
12219 (vpadd_f16): Likewise.
12220 (vpaddq_f16): Likewise.
12221 (vpmax_f16): Likewise.
12222 (vpmaxq_f16): Likewise.
12223 (vpmaxnm_f16): Likewise.
12224 (vpmaxnmq_f16): Likewise.
12225 (vpmin_f16): Likewise.
12226 (vpminq_f16): Likewise.
12227 (vpminnm_f16): Likewise.
12228 (vpminnmq_f16): Likewise.
12229 (vrsqrts_f16): Likewise.
12230 (vrsqrtsq_f16): Likewise.
12232 2019-09-25 Richard Biener <rguenther@suse.de>
12234 PR tree-optimization/91896
12235 * tree-vect-loop.c (vectorizable_reduction): The single
12236 def-use cycle optimization cannot apply when there's more
12237 than one pattern stmt involved.
12239 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12241 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12242 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12243 (reload_macho_picbase_<mode>): Likewise.
12245 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12247 * config/rs6000/rs6000.md: Move darwin.md include until
12248 after the definition of the mode iterators.
12250 2019-09-23 Martin Sebor <msebor@redhat.com>
12252 PR tree-optimization/91570
12253 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12254 non-constant minlen, maxlen and maxbound.
12256 2019-09-24 Richard Biener <rguenther@suse.de>
12258 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12260 (_stmt_vec_info::cond_reduc_code): ... this.
12261 (_stmt_vec_info::induc_cond_initial_val): Add.
12262 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12263 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12264 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12265 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12266 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12267 the reduction code.
12268 (vect_create_epilog_for_reduction): Drop special
12269 induction condition reduction params, pass in reduction code
12271 (vectorizable_reduction): Perform condition reduction kind
12272 selection only at analysis time. Adjust passing on state.
12274 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12276 * config/aarch64/aarch64.md (mov<mode>): Don't call
12277 aarch64_split_dimode_const_store on volatile MEM.
12279 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12281 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12282 Update hwcap string for fp16fml.
12284 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12286 PR middle-end/91866
12287 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12288 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12290 2019-09-24 Martin Liska <mliska@suse.cz>
12292 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12293 instead of if-elseif-elseif-...
12294 * gimple-expr.c (extract_ops_from_tree): Likewise.
12295 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12296 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12298 2019-09-24 Martin Jambor <mjambor@suse.cz>
12301 * ipa-param-manipulation.c (carry_over_param): Make a method of
12302 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12303 in case of a context mismatch.
12304 (ipa_param_body_adjustments::common_initialization): Adjust call to
12306 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12307 private method carry_over_param.
12309 2019-09-24 Martin Jambor <mjambor@suse.cz>
12312 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12314 2019-09-24 Richard Biener <rguenther@suse.de>
12316 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12319 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12321 * config/arm/t-arm (arm-builtins.o): Add dependency on
12322 arm_acle_builtins.def.
12324 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12327 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12328 canonical CONST_INTs. Use gen_rtvec.
12330 2019-09-23 Richard Biener <rguenther@suse.de>
12332 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12333 avoid adjusting by + 0 or * 1.
12334 (vect_create_epilog_for_reduction): Get reduction code only
12335 when necessary. Deal with adjustment_def only when necessary.
12337 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12339 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12342 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12345 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12348 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12350 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12351 code. Merge code blocks with common conditionals. Use declared
12352 macro instead of a magic number for PIC level.
12354 2019-09-21 Martin Sebor <msebor@redhat.com>
12356 PR middle-end/91830
12357 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12358 Simplify computation of the offset of the referenced subobject.
12360 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12362 * config/darwin.c (machopic_legitimize_pic_address): Check
12363 for lra not reload.
12365 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12367 * ira-conflicts.c (can_use_same_reg_p): New function.
12368 (process_reg_shuffles): Take an insn parameter. Ignore cases
12369 in which input operand op_num could seemingly never be allocated
12370 to the same register as the destination.
12371 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12373 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12375 * simplify-rtx.c (neg_const_int): Replace with...
12376 (neg_poly_int_rtx): ...this new function.
12377 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12378 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12379 (simplify_plus_minus): Likewise for constant terms here.
12381 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12383 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12384 HOST_WIDE_PRINT_UNSIGNED.
12386 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12388 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12391 2019-09-20 Maya Rashish <coypu@sdf.org>
12394 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12395 Define to speculation_safe_value_not_needed.
12397 2019-09-20 Richard Biener <rguenther@suse.de>
12398 Uros Bizjak <ubizjak@gmail.com>
12401 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12403 (general_scalar_chain::convert_op): Force not suitable memory
12404 operands to a register.
12406 2019-09-20 Richard Biener <rguenther@suse.de>
12408 PR tree-optimization/91821
12409 * tree-vect-loop.c (check_reduction_path): Check we can compute
12411 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12412 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12413 operands in canonical order.
12414 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12415 STMT_VINFO_REDUC_IDX.
12416 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12417 (STMT_VINFO_REDUC_IDX): Likewise.
12419 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12422 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12424 2019-09-20 Richard Biener <rguenther@suse.de>
12426 PR tree-optimization/91822
12427 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12429 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12430 for reduc_index in nested cycles, adjust vectorizable_condition
12432 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12434 (vect_analyze_stmt): Adjust.
12435 (vect_transform_stmt): Likewise.
12437 2019-09-20 Richard Biener <rguenther@suse.de>
12440 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12441 Ensure there's a sequence point between allocating the new register
12442 and passing a reference to a reg via regno_reg_rtx.
12444 2019-09-20 Martin Jambor <mjambor@suse.cz>
12446 * coretypes.h (cgraph_edge): Declare.
12447 * ipa-param-manipulation.c: Rewrite.
12448 * ipa-param-manipulation.h: Likewise.
12449 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12450 (OBJS): Added ipa-sra.o.
12451 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12452 and ref_p, added fields param_adjustments and performed_splits.
12453 (struct cgraph_clone_info): Remove ags_to_skip and
12454 combined_args_to_skip, new field param_adjustments.
12455 (cgraph_node::create_clone): Changed parameters to use
12456 ipa_param_adjustments.
12457 (cgraph_node::create_virtual_clone): Likewise.
12458 (cgraph_node::create_virtual_clone_with_body): Likewise.
12459 (tree_function_versioning): Likewise.
12460 (cgraph_build_function_type_skip_args): Removed.
12461 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12462 using ipa_param_adjustments.
12463 (clone_of_p): Likewise.
12464 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12465 (build_function_decl_skip_args): Likewise.
12466 (duplicate_thunk_for_node): Adjust parameters using
12467 ipa_param_body_adjustments, copy param_adjustments instead of
12469 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12470 (cgraph_node::create_virtual_clone): Likewise.
12471 (cgraph_node::create_version_clone_with_body): Likewise.
12472 (cgraph_materialize_clone): Likewise.
12473 (symbol_table::materialize_all_clones): Likewise.
12474 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12475 ipa_replace_map check.
12476 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12477 (initialize_node_lattices): Make aware that some parameters might have
12478 already been removed.
12479 (want_remove_some_param_p): New function.
12480 (create_specialized_node): Convert to using ipa_param_adjustments and
12481 deal with possibly pre-existing adjustments.
12482 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12483 (output_node_opt_summary): Do not stream removed fields. Stream
12484 parameter adjustments instead of argumetns to skip.
12485 (input_node_opt_summary): Likewise.
12486 (input_node_opt_summary): Likewise.
12487 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12488 * lto-streamer.h (lto_section_type): Likewise.
12489 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12491 (copy_decl_to_var): Declare.
12492 * tree-inline.c (update_clone_info): Do not remap old_tree.
12493 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12494 statements, walk all extra generated statements and remap their
12496 (redirect_all_calls): Add killed SSA names to a hash set.
12497 (remap_ssa_name): Do not remap killed SSA names.
12498 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12499 half of functionality moved to ipa_param_body_adjustments.
12500 (copy_decl_to_var): Make exported.
12501 (copy_body): Destroy killed_new_ssa_names hash set.
12502 (expand_call_inline): Remap performed splits.
12503 (update_clone_info): Likewise.
12504 (tree_function_versioning): Simplify tree_map processing. Updated to
12505 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12506 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12507 for the new interface.
12508 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12509 (simd_clone_compute_base_data_type): Likewise.
12510 (simd_clone_init_simd_arrays): Adjust for the new interface.
12511 (simd_clone_adjust_argument_types): Likewise.
12512 (struct modify_stmt_info): Likewise.
12513 (ipa_simd_modify_stmt_ops): Likewise.
12514 (ipa_simd_modify_function_body): Likewise.
12515 (simd_clone_adjust): Likewise.
12516 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12517 (type_internals_preclude_sra_p): Make public.
12518 * tree-sra.h: New file.
12519 * ipa-inline-transform.c (save_inline_function_body): Update to
12520 refelct new tree_function_versioning signature.
12521 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12522 ipa_param_adjustments to get current parameter indices.
12523 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12524 (ipcp_update_bits): Likewise.
12525 (ipcp_update_vr): Likewise.
12526 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12527 * ipa-sra.c: New file.
12528 * multiple_target.c (create_target_clone): Update to reflet new type
12529 of create_version_clone_with_body.
12530 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12531 tree_function_versioning.
12532 (modify_function): Update to reflect new type of
12533 tree_function_versioning.
12534 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12535 * passes.def: Remove old IPA-SRA and add new one.
12536 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12537 (make_pass_ipa_sra): Declare.
12538 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12540 * doc/invoke.texi (ipa-sra-max-replacements): New.
12542 2019-09-19 Martin Sebor <msebor@redhat.com>
12544 PR middle-end/91631
12545 * builtins.c (component_size): Correct trailing array computation,
12546 rename to component_ref_size and move...
12547 (compute_objsize): Adjust.
12548 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12549 (builtin_access::strict): Do not consider memmove.
12550 (builtin_access::write_off): New function.
12551 (builtin_memref::builtin_memref): Initialize refsize.
12552 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12554 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12556 (builtin_access::builtin_access): Initialize dstoff to destination
12557 refeence offset here instead of in maybe_diag_overlap. Adjust
12558 referencess even to unrelated objects. Adjust sizrange of bounded
12559 string functions to reflect bound. For strcat, adjust destination
12560 sizrange by that of source.
12561 (builtin_access::strcat_overlap): Adjust offsets and sizes
12562 to reflect the increase in destination sizrange above.
12563 (builtin_access::overlap): Do not set dstoff here but instead
12564 in builtin_access::builtin_access.
12565 (check_bounds_or_overlap): Use builtin_access::write_off.
12566 (maybe_diag_access_bounds): Add argument. Add informational notes.
12567 (dump_builtin_memref, dump_builtin_access): New functions.
12568 * tree.c (component_ref_size): ...to here.
12569 * tree.h (component_ref_size): Declare.
12570 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12571 nul in the size of the source string.
12573 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12576 * doc/cpp.texi: Document support for extended characters in
12578 * doc/cppopts.texi: Likewise.
12580 2019-09-19 Richard Biener <rguenther@suse.de>
12582 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12583 (check_reduction_path): New overload having the path as result.
12584 (vect_is_simple_reduction): From the detected reduction
12585 path build a SLP reduction chain if possible.
12587 2019-09-19 Richard Biener <rguenther@suse.de>
12590 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12591 Force operand to a register if it isn't nonimmediate_operand.
12593 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12595 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12596 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12597 (logical_op): Remove code attribute.
12598 (logical_OP): Likewise.
12600 2019-09-19 Martin Liska <mliska@suse.cz>
12602 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12603 Use proper casting.
12605 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12607 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12610 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12611 for NE comparison of TImode values.
12612 (aarch64_emit_load_exclusive): Add support for TImode.
12613 (aarch64_emit_store_exclusive): Likewise.
12614 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12615 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12616 Change iterator from ALLI to ALLI_TI.
12617 (@atomic_compare_and_swap<JUST_TI>): New.
12618 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12619 (aarch64_load_exclusive_pair): New.
12620 (aarch64_store_exclusive_pair): New.
12621 * config/aarch64/iterators.md (JUST_TI): New.
12623 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12624 strong_zero_p for aarch64_track_speculation; unify some code paths;
12625 use aarch64_gen_compare_reg instead of open-coding.
12627 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12628 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12629 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12630 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12631 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12632 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12633 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12634 (atomic_<atomic_op><ALLI>): Likewise.
12635 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12636 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12637 * doc/invoke.texi: Document -moutline-atomics.
12639 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12641 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12642 trivial predicate for condition branch.
12643 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12645 (compute_bb_predicates): Update predicate based on post-dominating
12647 (analyze_function_body): Calculate post-dominating information.
12649 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12651 * tree-vectorizer.h (vectorizable_condition): Take an int
12652 reduction index instead of a boolean flag.
12653 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12654 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12655 reductions if the reduction accumulator is the "then" rather
12656 than the "else" value.
12657 (vect_analyze_stmt): Update call accordingly.
12658 (vect_transform_stmt): Likewise.
12659 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12660 asserting that the index is > 0.
12662 2019-09-19 Martin Liska <mliska@suse.cz>
12664 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12665 (sort_congruence_classes_by_decl_uid): Likewise.
12666 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12668 (sem_item_optimizer::merge_classes): Likewise.
12670 2019-09-19 Richard Biener <rguenther@suse.de>
12672 PR tree-optimization/91812
12673 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12676 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12678 * defaults.h (TARGET_UNIT): New macro.
12679 (target_unit): New type.
12680 * rtl.h (native_encode_rtx, native_decode_rtx)
12681 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12682 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12683 * rtlanal.c (subreg_lsb_1): Delete.
12684 (subreg_size_lsb): New function.
12685 * simplify-rtx.c: Include rtx-vector-builder.h
12686 (simplify_immed_subreg): Delete.
12687 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12688 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12690 (simplify_subreg): Use them.
12691 (test_vector_subregs_modes, test_vector_subregs_repeating)
12692 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12693 (test_vector_subregs): New functions.
12694 (test_vector_ops): Call test_vector_subregs for integer vector
12695 modes with at least 2 elements.
12697 2019-09-19 Richard Biener <rguenther@suse.de>
12699 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12700 LOOP_VINFO_OPERANDS_SWAPPED.
12701 (parloops_is_simple_reduction): Likewise.
12702 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12703 initialize operands_swapped.
12704 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12705 (vect_is_slp_reduction): Do not swap operands.
12706 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12707 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12709 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12712 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12713 Add avx_partial_xmm_update.
12715 2019-09-18 Jim Wilson <jimw@sifive.com>
12718 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12719 (riscv_move_integer): Likewise.
12720 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12721 riscv_move_integer arg.
12722 (riscv_legitimize_move): Likewise.
12723 (riscv_force_temporary): New parameter in_splitter. Don't call
12725 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12727 (riscv_add_offset): Likewise.
12728 (riscv_split_symbol): New parameter in_splitter. Pass to
12729 riscv_force_temporary.
12730 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12732 (riscv_move_integer): New parameter in_splitter. New local
12733 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12735 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12736 riscv_split_symbol, and riscv_force_temporary args.
12737 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12738 riscv_move_integer arg.
12739 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12741 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12744 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12745 hard register store cost to 6.
12747 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12750 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12751 pseudo register store cost from 3 to 6 to make it the same as
12754 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12757 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12758 (one_cmpldi2): Likewise.
12759 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12760 of the constant parts is simple.
12761 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12762 (logical_op): Add new code attribute.
12763 (logical_OP): Likewise.
12764 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12765 (arm_iordi_operand): Add predicate.
12766 (arm_xordi_operand): Add predicate.
12768 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12770 * config/arm/arm.md (maddsidi4): Remove expander.
12771 (mulsidi3adddi): Remove pattern.
12772 (mulsidi3adddi_v6): Likewise.
12773 (mulsidi3_nov6): Likewise.
12774 (mulsidi3_v6): Likewise.
12775 (umulsidi3): Remove expander.
12776 (umulsidi3_nov6): Remove pattern.
12777 (umulsidi3_v6): Likewise.
12778 (umulsidi3adddi): Likewise.
12779 (umulsidi3adddi_v6): Likewise.
12780 (<Us>mulsidi3): Add combined expander.
12781 (<Us>maddsidi4): Likewise.
12782 (<US>mull): Add combined umull and smull pattern.
12783 (<US>mlal): Likewise.
12784 * config/arm/iterators.md (Us): Add new iterator.
12786 2019-09-18 Richard Biener <rguenther@suse.de>
12788 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12790 (vectorize_fold_left_reduction): Remove assert.
12791 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12792 operand in position 2. Remove assert.
12794 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12796 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12797 (smulsi3_highpart_nov6): Remove pattern.
12798 (smulsi3_highpart_v6): Likewise.
12799 (umulsi3_highpart): Likewise.
12800 (umulsi3_highpart_nov6): Likewise.
12801 (umulsi3_highpart_v6): Likewise.
12802 (<US>mull_high): Add new combined multiply pattern.
12804 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12806 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12807 (arm_mulsi3_v6): Likewise.
12808 (mulsi3addsi_v6): Likewise.
12809 (mulsi3subsi): Likewise.
12810 (mul): Add new multiply pattern.
12814 2019-09-18 Richard Biener <rguenther@suse.de>
12816 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12817 (parloops_valid_reduction_input_p): Copy from
12818 valid_reduction_input_p.
12819 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12820 (parloops_needs_fold_left_reduction_p): Copy from
12821 needs_fold_left_reduction_p.
12822 (parloops_is_simple_reduction): Copy from
12823 vect_is_simple_reduction.
12824 (parloops_force_simple_reduction): Copy from
12825 vect_force_simple_reduction.
12826 (gather_scalar_reductions): Adjust.
12827 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12828 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12830 2019-09-18 Richard Biener <rguenther@suse.de>
12832 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12833 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12835 (vect_create_epilog_for_reduction): Remove dead code.
12837 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12839 * varasm.c (assemble_real): Generate canonical const_ints.
12841 2019-09-18 Richard Biener <rguenther@suse.de>
12844 * lto-streamer-in.c (input_eh_regions): Move EH init to
12845 lto_materialize_function.
12846 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12849 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12851 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12854 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12856 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12857 of checking specifically for INTEGER_CST.
12859 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12861 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12862 sizes instead of uhwi sizes.
12864 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12866 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12867 (add_const_value_attribute): Handle CONST_POLY_INT.
12869 2019-09-18 Martin Liska <mliska@suse.cz>
12871 * dbgcnt.def (store_merging): New counter.
12872 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12873 Use it in store merging.
12875 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12877 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12879 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12880 * config/arm/arm.c (arm_sched_variable_issue): New function.
12881 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12883 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12885 * config/arm/types.md (no_reservation): New reservation.
12886 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12888 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12889 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12890 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12891 * config/arm/arm1020e.md (1020alu_op): Likewise.
12892 * config/arm/arm1026ejs.md (alu_op): Likewise.
12893 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12894 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12895 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12896 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12897 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12898 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12899 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12900 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12901 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12902 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12903 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12904 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12905 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12906 * config/arm/fa526.md (526_alu_op): Likewise.
12907 * config/arm/fa606te.md (606te_alu_op): Likewise.
12908 * config/arm/fa626te.md (626te_alu_op): Likewise.
12909 * config/arm/fa726te.md (726te_alu_op): Likewise.
12910 * config/arm/xgene1.md (xgene1_nop): Likewise.
12912 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12914 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12915 "no_insn" to "branch".
12917 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12919 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12921 2019-09-17 Richard Biener <rguenther@suse.de>
12924 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12925 was missing generate locations only once.
12927 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12930 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12932 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12933 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12934 for switch default case using range analysis information.
12936 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12939 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12940 mode attributed is supported by FDPIC.
12942 2019-09-17 Richard Biener <rguenther@suse.de>
12944 PR tree-optimization/91790
12945 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12946 use the correct DR for setting up realignment.
12948 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12951 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12952 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12953 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12954 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12956 2019-09-16 Jason Merrill <jason@redhat.com>
12958 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12960 2019-09-16 Martin Liska <mliska@suse.cz>
12962 * gimple-fold.c (or_comparisons_1): Remove rules moved
12964 * match.pd: ... here.
12966 2019-09-16 Martin Liska <mliska@suse.cz>
12968 * gimple-fold.c (or_comparisons_1): Remove rules
12970 * match.pd: ... here.
12972 2019-09-16 Martin Liska <mliska@suse.cz>
12974 * genmatch.c (dt_node::append_simplify): Do not print
12975 warning when we have duplicate patterns belonging
12976 to a same simplify rule.
12977 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12978 (maybe_fold_comparisons_from_match_pd): Handle
12979 tcc_comparison as a results.
12980 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12982 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12983 Qi Feng <ffengqi@linux.ibm.com>
12985 PR middle-end/88784
12986 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12987 (x > y && x == XXX_MIN): Optimize into 'false'.
12988 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12989 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12990 (x < y && x == XXX_MAX): Optimize into 'false'.
12991 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12992 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12993 (x <= y || x != XXX_MIN): Optimize into 'true'.
12994 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12995 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12996 (x >= y || x != XXX_MAX): Optimize into 'true'.
12997 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12999 2019-09-16 Li Jia He <helijia@linux.ibm.com>
13000 Martin Liska <mliska@suse.cz>
13002 * gimple-fold.c (and_comparisons_1): Add type as first
13004 (and_var_with_comparison): Likewise.
13005 (and_var_with_comparison_1): Likewise.
13006 (or_comparisons_1): Likewise.
13007 (or_var_with_comparison): Likewise.
13008 (or_var_with_comparison_1): Likewise.
13009 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
13010 (maybe_fold_or_comparisons): Likewise.
13011 (maybe_fold_comparisons_from_match_pd): New.
13012 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
13013 (maybe_fold_or_comparisons): Likewise.
13014 * gimple.c (gimple_size): Make it public and add num_ops argument.
13015 (gimple_init): New function.
13016 (gimple_alloc): Call gimple_init.
13017 * gimple.h (gimple_size): New.
13018 (gimple_init): Likewise.
13019 * tree-if-conv.c (fold_or_predicates): Pass type.
13020 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13021 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
13022 (optimize_vec_cond_expr): Likewise.
13023 (ovce_extract_ops): Return type of conditional expression.
13024 * tree-ssanames.c (init_ssa_name_imm_use): New.
13025 (make_ssa_name_fn): Use init_ssa_name_imm_use.
13026 * tree-ssanames.h (init_ssa_name_imm_use): New.
13028 2019-09-16 Richard Biener <rguenther@suse.de>
13030 PR tree-optimization/91756
13031 PR tree-optimization/87132
13032 * tree-ssa-alias.h (enum translate_flags): New.
13033 (get_continuation_for_phi): Use it instead of simple bool flag.
13034 (walk_non_aliased_vuses): Likewise.
13035 * tree-ssa-alias.c (maybe_skip_until): Adjust.
13036 (get_continuation_for_phi): When looking across backedges only
13037 disallow valueization.
13038 (walk_non_aliased_vuses): Adjust.
13039 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
13042 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
13044 PR middle-end/80791
13045 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
13046 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13047 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13048 * target.def (have_count_reg_decr_p): New hook.
13049 (doloop_cost_for_generic): Likewise.
13050 (doloop_cost_for_address): Likewise.
13051 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
13052 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
13053 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
13054 * doc/tm.texi: Regenerate.
13055 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
13057 (record_group): Init doloop_p.
13058 (add_candidate_1): Add optional argument doloop, change the handlings
13060 (add_candidate): Likewise.
13061 (generic_predict_doloop_p): Update attribute.
13062 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
13063 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
13064 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
13066 (get_computation_cost): Update for doloop IV cand extra cost.
13067 (determine_group_iv_cost_cond): Update for doloop IV cand.
13068 (determine_iv_cost): Likewise.
13069 (ivopts_estimate_reg_pressure): Likewise.
13070 (may_eliminate_iv): Update handlings for doloop IV cand.
13071 (add_iv_candidate_for_doloop): New function.
13072 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
13073 (iv_ca_set_no_cp): Update for doloop IV cand.
13074 (iv_ca_set_cp): Likewise.
13075 (iv_ca_dump): Dump register cost.
13076 (find_doloop_use): New function.
13077 (analyze_and_mark_doloop_use): Likewise.
13078 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13080 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13082 PR middle-end/91708
13083 * cse.c (cse_insn): Do not replace anything with a
13086 2019-09-13 Ian Lance Taylor <iant@golang.org>
13088 * doc/invoke.texi (Optimize Options): Fix typo.
13090 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13092 PR tree-optimization/89386
13093 * config/i386/sse.md (smulhrs<mode>3): New expander.
13094 (smulhrsv4hi3): Ditto.
13096 2019-09-12 Richard Biener <rguenther@suse.de>
13098 PR tree-optimization/91750
13099 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13100 in the type of the evolution.
13102 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13104 PR tree-optimization/89386
13105 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13106 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13107 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13108 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13109 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13110 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13111 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13112 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13113 (su, r): Handle the unspecs above.
13114 (bt): New int attribute.
13115 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13116 * internal-fn.c (first_commutative_argument): Commutativity info for
13118 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13119 (umulhrs_optab): New optabs.
13120 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13121 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13122 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13124 (vect_vect_recog_func_ptrs): Add it.
13126 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13128 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13131 2019-09-11 Nathan Sidwell <nathan@acm.org>
13133 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13134 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13136 2019-09-11 Richard Biener <rguenther@suse.de>
13138 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13139 * lto-wrapper.c (merge_and_complain): Pick up -g.
13140 (append_compiler_options): Likewise.
13141 (run_gcc): Re-instantiate handling -g0 at link-time.
13142 * doc/invoke.texi (flto): Document debug info generation.
13144 2019-09-11 Richard Biener <rguenther@suse.de>
13146 PR tree-optimization/90387
13147 * vr-values.c (vr_values::extract_range_basic): After inlining
13148 simplify non-constant __builtin_constant_p to false.
13150 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13152 PR rtl-optimization/89795
13153 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13154 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13156 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13158 PR tree-optimization/91723
13159 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13160 instead of pointer equality when checking if argument vectypes are
13163 PR middle-end/91725
13164 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13165 of get_nonzero_bits, only call it for integral types.
13167 2019-09-11 Richard Biener <rguenther@suse.de>
13170 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13172 * match.pd: Add flag_unsafe_math_optimizations check
13173 before deciding on the widest type in a binary math operation.
13175 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13177 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13178 and CALL_REALLY_USED_REGISTERS must be defined, and that
13179 CALL_REALLY_USED_REGISTERS is preferred.
13180 * doc/tm.texi: Regenerate.
13181 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13182 (call_really_used_regs): Likewise.
13183 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13184 CALL_REALLY_USED_REGISTERS are defined.
13185 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13186 initial value if defined.
13187 (initial_call_really_used_regs): Delete.
13188 (saved_call_really_used_regs): Likewise.
13189 (CALL_REALLY_USED_REGNO_P): Likewise.
13190 (init_reg_sets): Remove handling of call_really_used_regs.
13191 (save_register_info, restore_register_info, globalize_reg): Likewise.
13192 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13193 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13194 outside operand_reg_set.
13195 (fix_register): Don't change call_used_regs if
13196 CALL_REALLY_USED_REGISTERS is defined.
13197 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13198 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13199 instead of call_really_used_regs.
13200 (csky_conditional_register_usage): Remove the old handling of
13201 call_used_regs and change the handling of call_really_used_regs
13202 to use call_used_regs instead.
13203 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13204 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13205 making a register fixed.
13206 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13207 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13208 instead of call_really_used_regs.
13209 (m32r_conditional_register_usage): Don't set call_used_regs when
13210 making a register fixed.
13211 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13212 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13213 instead of call_really_used_regs.
13214 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13215 (mips_cfun_call_saved_reg_p): Likewise.
13216 (mips_swap_registers): Remove the old handling of call_used_regs
13217 and change the handling of call_really_used_regs to use call_used_regs
13219 (mips_conditional_register_usage): Likewise.
13220 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13221 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13222 instead of call_really_used_regs.
13223 (mn10300_get_live_callee_saved_regs): Likewise.
13224 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13225 (mn10300_conditional_register_usage): Don't set call_used_regs when
13226 making a register fixed.
13227 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13228 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13229 Remove the old handling of call_used_regs and change the handling
13230 of call_really_used_regs to use call_used_regs instead.
13231 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13232 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13233 instead of call_really_used_regs.
13234 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13235 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13236 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13237 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13238 (s390_conditional_register_usage): Remove the old handling of
13239 call_used_regs and change the handling of call_really_used_regs
13240 to use call_used_regs instead.
13241 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13242 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13243 (sh_fix_range, reg_unused_after): Likewise.
13244 (sh_conditional_register_usage): Remove the old handling of
13245 call_used_regs and change the handling of call_really_used_regs
13246 to use call_used_regs instead.
13247 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13248 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13249 call_used_regs when making a register fixed.
13250 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13251 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13252 call_used_regs when making a register fixed.
13253 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13254 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13255 set call_used_regs when making a register fixed.
13256 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13257 * config/visium/visium.c (visium_conditional_register_usage): Remove
13258 the old handling of call_used_regs and change the handling of
13259 call_really_used_regs to use call_used_regs instead.
13261 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13263 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13264 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13265 * reginfo.c (call_used_regs): New macro.
13267 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13269 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13271 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13272 (bpf_expand_epilogue): Likewise.
13273 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13274 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13275 (ft32_expand_epilogue): Likewise.
13276 * config/i386/i386.c (ix86_save_reg): Likewise.
13277 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13278 (moxie_expand_epilogue): Likewise.
13279 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13280 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13281 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13283 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13285 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13286 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13287 instead of testing call_used_regs directly.
13288 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13289 (aarch64_components_for_bb): Likewise.
13290 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13291 * config/arc/arc.c (arc_must_save_register): Likewise.
13292 (arc_epilogue_uses): Likewise.
13293 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13294 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13295 (arm_compute_save_reg0_reg12_mask): Likewise.
13296 (arm_compute_save_core_reg_mask): Likewise.
13297 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13298 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13299 (cmse_nonsecure_entry_clear_before_return): Likewise.
13300 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13301 (arm_expand_epilogue): Likewise.
13302 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13303 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13304 (_reg_unused_after): Likewise.
13305 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13306 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13307 (add_to_reg, hwloop_optimize): Likewise.
13308 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13309 (bpf_expand_epilogue): Likewise.
13310 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13311 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13312 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13313 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13314 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13315 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13316 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13317 * config/frv/frv.c (frv_stack_info): Likewise.
13318 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13319 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13320 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13321 (move_callee_saved_registers): Likewise.
13322 * config/h8300/h8300.c (byte_reg): Likewise.
13323 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13324 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13325 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13326 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13327 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13328 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13329 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13330 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13331 * config/m32c/m32c.c (need_to_save): Likewise.
13332 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13333 * config/mcore/mcore.c (calc_live_regs): Likewise.
13334 * config/microblaze/microblaze.c (microblaze_must_save_register):
13336 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13337 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13338 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13339 (mmix_expand_epilogue): Likewise.
13340 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13341 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13342 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13343 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13344 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13345 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13346 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13347 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13348 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13349 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13350 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13351 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13352 * config/rl78/rl78.c (need_to_save): Likewise.
13353 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13354 (rs6000_stack_info, generate_set_vrsave): Likewise.
13355 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13356 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13357 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13358 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13359 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13360 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13361 (save_local_or_in_reg_p): Likewise.
13362 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13363 (xstormy16_epilogue_uses): Likewise.
13364 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13365 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13366 * config/v850/v850.c (compute_register_save_size): Likewise.
13367 * config/vax/vax.c (vax_expand_prologue): Likewise.
13368 * config/visium/visium.c (visium_save_reg_p): Likewise.
13369 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13370 * cselib.c (cselib_process_insn): Likewise.
13371 * df-scan.c (df_get_entry_block_def_set): Likewise.
13372 * function.c (aggregate_value_p): Likewise.
13373 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13374 * ira-lives.c (process_bb_node_lives): Likewise.
13375 * ira.c (do_reload): Likewise.
13376 * lra-lives.c (process_bb_lives): Likewise.
13377 * lra-remat.c (lra_remat): Likewise.
13378 * lra.c (lra): Likewise.
13379 * postreload.c (reload_combine_recognize_pattern): Likewise.
13380 (reload_cse_move2add): Likewise.
13381 * recog.c (peep2_find_free_register): Likewise.
13382 * regrename.c (check_new_reg_p): Likewise.
13383 * reload.c (find_equiv_reg): Likewise.
13384 * reload1.c (reload, find_reg): Likewise.
13385 * sel-sched.c (init_hard_regs_data): Likewise.
13387 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13389 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13390 regs_invalidated_by_call & ~fixed_reg_set instead of
13391 call_used_or_fixed_regs & ~fixed_reg_set.
13392 * config/sh/sh.c (output_stack_adjust): Likewise.
13394 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13396 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13397 (call_used_reg_set): Delete.
13398 (call_used_or_fixed_regs): New macro.
13399 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13400 of call_used_reg_set.
13401 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13402 instead of call_used_regs.
13403 (save_call_clobbered_regs): Likewise.
13404 * cfgcleanup.c (old_insns_match_p): Likewise.
13405 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13406 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13408 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13409 * config/sh/sh.c (output_stack_adjust): Likewise.
13410 * final.c (collect_fn_hard_reg_usage): Likewise.
13411 * ira-build.c (ira_build): Likewise.
13412 * ira-color.c (calculate_saved_nregs): Likewise.
13413 (allocno_reload_assign, calculate_spill_cost): Likewise.
13414 * ira-conflicts.c (ira_build_conflicts): Likewise.
13415 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13416 * ira-lives.c (process_bb_node_lives): Likewise.
13417 * ira.c (setup_reg_renumber): Likewise.
13418 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13419 * lra-constraints.c (need_for_call_save_p): Likewise.
13420 (need_for_split_p, inherit_in_ebb): Likewise.
13421 * lra-lives.c (process_bb_lives): Likewise.
13422 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13423 * postreload.c (reload_combine): Likewise.
13424 * regrename.c (find_rename_reg): Likewise.
13425 * reload1.c (reload_as_needed): Likewise.
13426 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13427 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13428 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13430 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13432 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13433 (no_caller_save_reg_set): Delete.
13434 * caller-save.c (init_caller_save): Don't initialize it.
13435 * ira-conflicts.c (ira_build_conflicts): Calculate
13436 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13438 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13440 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13441 (target_hard_regs::x_savable_regs): New field.
13442 (call_fixed_reg_set): Delete.
13443 (savable_regs): New macro,
13444 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13445 (init_reg_sets_1): Likewise. Initialize savable_regs.
13446 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13447 for all registers. Set savable_regs instead of call_fixed_reg_set.
13448 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13449 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13450 * config/sh/sh.c (output_stack_adjust): Likewise.
13452 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13454 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13455 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13456 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13458 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13460 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13461 * rtlanal.c (get_call_rtx_from): Likewise.
13462 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13463 than the pattern to get_call_rtx_from.
13464 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13465 an rtx_insn * instead of an rtx.
13466 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13468 2019-09-10 Martin Liska <mliska@suse.cz>
13470 * common.opt: Use newly added WarnRemoved.
13471 * config/aarch64/aarch64.opt: Likewise.
13472 * config/arm/arm.opt: Likewise.
13473 * config/i386/i386.opt: Likewise.
13474 * config/ia64/ia64.opt: Likewise.
13475 * config/rs6000/rs6000.opt: Likewise.
13476 * doc/options.texi: Document WarnRemoved properly.
13477 * dwarf2out.c (gen_producer_string): Handle renamed
13478 OPT_SPECIAL_warn_removed.
13479 * lto-opts.c (lto_write_options): Likewise.
13480 * lto-wrapper.c (merge_and_complain): Likewise.
13481 * opts-common.c (decode_cmdline_option): Likewise.
13482 (prune_options): Likewise.
13483 (read_cmdline_option): Likewise.
13484 (control_warning_option): Likewise.
13485 * opts.c (print_filtered_help): Likewise.
13486 * optc-gen.awk: Parse for WarnRemoved and make usage
13487 of Deprecated an error.
13488 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13490 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13492 * doc/install.texi: Fix syntax for html generation.
13494 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13496 PR middle-end/91680
13497 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13498 the shift type to type.
13500 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13502 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13504 (stack_protect_combined_test_insn): Likewise.
13506 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13507 Mickaël Guêné <mickael.guene@st.com>
13509 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13510 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13511 (load_tp_soft_fdpic): New pattern.
13512 (load_tp_soft): Disable in FDPIC mode.
13514 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13515 Mickaël Guêné <mickael.guene@st.com>
13517 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13518 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13519 (arm_call_tls_get_addr): Add FDPIC support.
13520 (legitimize_tls_address): Likewise.
13521 (arm_emit_tls_decoration): Likewise.
13523 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13524 Mickaël Guêné <mickael.guene@st.com>
13526 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13528 (arm_trampoline_init): Likewise.
13529 (arm_trampoline_adjust_address): Likewise.
13530 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13532 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13533 Mickaël Guêné <mickael.guene@st.com>
13535 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13536 (legitimize_pic_address): Enforce binding rules on function
13537 pointers in FDPIC mode.
13538 (arm_assemble_integer): Likewise.
13540 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13541 Mickaël Guêné <mickael.guene@st.com>
13543 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13544 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13547 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13548 Mickaël Guêné <mickael.guene@st.com>
13550 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13553 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13554 Mickaël Guêné <mickael.guene@st.com>
13556 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13558 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13560 * config/arm/arm.c (arm_option_override): Define pic register to
13562 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13563 have no decl or go through PLT.
13564 (calculate_pic_address_constant): New function.
13565 (legitimize_pic_address): Call calculate_pic_address_constant.
13566 (arm_load_pic_register): Handle TARGET_FDPIC.
13567 (arm_is_segment_info_known): New function.
13568 (arm_pic_static_addr): Add support for FDPIC.
13569 (arm_load_function_descriptor): New function.
13570 (arm_emit_call_insn): Add support for FDPIC.
13571 (arm_assemble_integer): Add support for FDPIC.
13572 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13573 Define. (FDPIC_REGNUM): New define.
13574 * config/arm/arm.md (call): Add support for FDPIC.
13575 (call_value): Likewise.
13576 (restore_pic_register_after_call): New pattern.
13577 (untyped_call): Disable if FDPIC.
13578 (untyped_return): Likewise.
13579 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13581 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13582 Mickaël Guêné <mickael.guene@st.com>
13584 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13585 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13586 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13587 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13588 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13589 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13590 * config/arm/uclinuxfdpiceabi.h: New file.
13592 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13594 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13596 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13597 Mickaël Guêné <mickael.guene@st.com>
13599 * config/arm/arm.opt: Add -mfdpic option.
13600 * doc/invoke.texi: Add documentation for -mfdpic.
13602 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13604 * expmed.c (extract_bit_field): Update function comment
13606 * expr.c (expand_expr_real): Update function comment
13608 (expand_misaligned_mem_ref): New helper function.
13609 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13610 Remove duplicate assignment to "base" at case MEM_REF.
13611 Remove a shadowed variable "unsignedp" at case VCE.
13613 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13615 * regset.h (regs_invalidated_by_call_regset): Delete.
13616 (fixed_reg_set_regset): Likewise.
13617 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13618 (fixed_reg_set_regset, persistent_obstack): Likewise.
13619 (init_reg_sets_1, globalize_reg): Update accordingly.
13620 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13621 instead of a bitmap.
13622 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13623 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13624 instead of regs_invalidated_by_call_regset.
13625 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13626 * df-scan.c (df_scan_start_dump): Likewise.
13627 * dse.c (copy_fixed_regs): Likewise.
13628 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13630 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13632 * array-traits.h: New file.
13633 * coretypes.h (array_traits, bitmap_view): New types.
13634 * bitmap.h: Include "array-traits.h"
13635 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13636 (base_bitmap_view, bitmap_view): New classes.
13637 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13638 * hard-reg-set.h: Include array-traits.h.
13639 (array_traits<HARD_REG_SET>): New struct.
13640 * regset.h (IOR_REG_SET_HRS): New macro.
13641 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13642 rather than iterating over each hard register.
13643 * sched-deps.c (sched_analyze_insn): Likewise.
13644 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13646 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13648 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13649 instead of a HARD_REG_SET *.
13650 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13651 (ira_build): Update call accordingly.
13652 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13654 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13656 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13657 (HARD_REG_SET::operator!=): Likewise.
13658 (hard_reg_set_equal_p): Delete.
13659 * cfgcleanup.c (old_insns_match_p): Use == instead of
13660 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13661 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13662 (add_allocno_hard_regs_to_forest): Likewise.
13663 (setup_allocno_available_regs_num): Likewise.
13664 * ira.c (setup_pressure_classes): Likewise.
13665 (setup_allocno_and_important_classes): Likewise.
13666 (setup_reg_class_relations): Likewise.
13667 * lra-lives.c (process_bb_lives): Likewise.
13668 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13670 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13672 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13673 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13674 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13675 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13677 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13678 * ira.c (setup_reg_renumber): Likewise.
13679 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13680 * regrename.c (regrename_find_superclass): Likewise.
13681 * reload1.c (find_reg): Likewise.
13683 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13685 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13686 * caller-save.c (setup_save_areas): Use "&~" instead of
13687 AND_COMPL_HARD_REG_SET.
13688 (save_call_clobbered_regs): Likewise.
13689 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13691 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13692 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13693 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13694 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13695 (mips_conditional_register_usage): Likewise.
13696 * config/sh/sh.c (output_stack_adjust): Likewise.
13697 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13698 (setup_profitable_hard_regs): Likewise.
13699 (get_conflict_and_start_profitable_regs): Likewise.
13700 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13701 (ira_build_conflicts): Likewise.
13702 * ira-costs.c (restrict_cost_classes): Likewise.
13703 (setup_regno_cost_classes_by_aclass): Likewise.
13704 * ira-lives.c (process_bb_node_lives): Likewise.
13705 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13706 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13707 (setup_allocno_and_important_classes, setup_class_translate_array)
13708 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13710 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13711 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13712 (process_alt_operands, inherit_in_ebb): Likewise.
13713 * lra-eliminations.c (update_reg_eliminate): Likewise.
13714 * lra-lives.c (process_bb_lives): Likewise.
13715 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13716 * resource.c (find_dead_or_set_registers): Likewise.
13717 (mark_target_live_regs): Likewise.
13718 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13719 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13720 (implicit_clobber_conflict_p): Likewise.
13721 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13722 (try_shrink_wrapping): Likewise.
13724 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13726 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13727 (HARD_REG_SET::operator|=): Likewise.
13728 (IOR_HARD_REG_SET): Delete.
13729 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13731 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13732 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13733 * final.c (collect_fn_hard_reg_usage): Likewise.
13734 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13735 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13736 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13737 (propagate_some_info_from_allocno): Likewise.
13738 (copy_info_to_removed_store_destinations): Likewise.
13739 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13740 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13741 (fast_allocation): Likewise.
13742 * ira-conflicts.c (ira_build_conflicts): Likewise.
13743 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13744 (process_bb_node_lives): Likewise.
13745 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13746 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13747 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13748 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13749 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13750 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13751 (process_bb_lives): Likewise.
13752 * lra-spills.c (assign_spill_hard_regs): Likewise.
13753 * postreload.c (reload_combine): Likewise.
13754 * reginfo.c (init_reg_sets_1): Likewise.
13755 * regrename.c (merge_overlapping_regs, find_rename_reg)
13756 (merge_chains): Likewise.
13757 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13758 (find_reload_regs, finish_spills, choose_reload_regs_init)
13759 (emit_reload_insns): Likewise.
13760 * reorg.c (redundant_insn): Likewise.
13761 * resource.c (find_dead_or_set_registers, mark_set_resources)
13762 (mark_target_live_regs): Likewise.
13763 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13764 * sched-deps.c (sched_analyze_insn): Likewise.
13765 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13766 (find_best_reg_for_expr): Likewise.
13767 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13769 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13771 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13772 (HARD_REG_SET::operator&): Likewise.
13773 (AND_HARD_REG_SET): Delete.
13774 * caller-save.c (setup_save_areas): Use "&" instead of
13776 (save_call_clobbered_regs): Likewise.
13777 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13778 * config/m32c/m32c.c (reduce_class): Likewise.
13779 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13780 * final.c (get_call_reg_set_usage): Likewise.
13781 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13782 (setup_left_conflict_sizes_p): Likewise.
13783 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13784 (ira_build_conflicts): Likewise.
13785 * ira-costs.c (restrict_cost_classes): Likewise.
13786 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13787 (setup_reg_class_relations): Likewise.
13788 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13789 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13790 * resource.c (find_dead_or_set_registers): Likewise.
13791 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13793 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13795 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13796 (COMPL_HARD_REG_SET): Delete.
13797 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13798 of COMPL_HARD_REG_SET.
13799 (try_rename_operands): Likewise.
13800 * config/sh/sh.c (push_regs): Likewise.
13801 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13802 * lra-constraints.c (contains_reg_p): Likewise.
13803 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13805 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13807 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13808 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13809 of COPY_HARD_REG_SET.
13810 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13811 (epiphany_conditional_register_usage): Likewise.
13812 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13813 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13814 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13815 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13816 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13817 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13818 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13819 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13820 * config/sh/sh.c (output_stack_adjust): Likewise.
13821 * final.c (collect_fn_hard_reg_usage): Likewise.
13822 (get_call_reg_set_usage): Likewise.
13823 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13824 (ira_flattening): Likewise.
13825 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13826 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13827 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13828 (ira_reassign_pseudos): Likewise.
13829 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13830 (ira_build_conflicts): Likewise.
13831 * ira-costs.c (restrict_cost_classes): Likewise.
13832 (setup_regno_cost_classes_by_aclass): Likewise.
13833 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13834 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13835 (setup_stack_reg_pressure_class, setup_pressure_classes)
13836 (setup_allocno_and_important_classes, setup_class_translate_array)
13837 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13838 (ira_setup_eliminable_regset): Likewise.
13839 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13840 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13841 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13842 (process_alt_operands, inherit_in_ebb): Likewise.
13843 * lra-lives.c (process_bb_lives): Likewise.
13844 * lra-spills.c (assign_spill_hard_regs): Likewise.
13845 * lra.c (lra): Likewise.
13846 * mode-switching.c (new_seginfo): Likewise.
13847 * postreload.c (reload_combine): Likewise.
13848 * reg-stack.c (straighten_stack): Likewise.
13849 * reginfo.c (save_register_info, restore_register_info): Likewise.
13850 (init_reg_sets_1, record_subregs_of_mode): Likewise
13851 * regrename.c (create_new_chain, rename_chains): Likewise.
13852 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13853 (find_reload_regs): Likewise.
13854 * resource.c (find_dead_or_set_registers): Likewise.
13855 (mark_target_live_regs): Likewise.
13856 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13858 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13860 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13861 (note_pattern_stores): Declare.
13862 (note_stores): Take an rtx_insn *.
13863 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13864 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13865 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13866 (note_stores): Take an rtx_insn * as argument and process
13867 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13868 (note_pattern_stores): ...this.
13869 (find_first_parameter_load): Pass the insn rather than
13870 its pattern to note_stores.
13871 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13872 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13873 (insert_one_insn): Likewise.
13874 * combine.c (combine_instructions): Likewise.
13875 (likely_spilled_retval_p): Likewise.
13876 (try_combine): Use note_pattern_stores instead of note_stores.
13877 (record_dead_and_set_regs): Pass the insn rather than its pattern
13879 (reg_dead_at_p): Likewise.
13880 * config/bfin/bfin.c (workaround_speculation): Likewise.
13881 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13882 rather than an rtx.
13883 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13884 instead of note_stores.
13885 (frv_optimize_membar_local): Pass the insn rather than its pattern
13887 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13888 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13889 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13890 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13891 (mips_reorg_process_insns): Likewise.
13892 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13893 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13895 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13896 its pattern to note_stores.
13897 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13899 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13900 the insn to note_stores.
13901 (prescan_insns_for_dce): Update call accordingly.
13902 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13904 * df-problems.c (can_move_insns_across): Likewise.
13905 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13906 * function.c (assign_parm_setup_reg): Likewise.
13907 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13908 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13909 (single_set_gcse): Likewise.
13910 * ira.c (validate_equiv_mem): Likewise.
13911 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13913 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13914 pattern to note_stores.
13915 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13916 * loop-iv.c (simplify_using_initial_values): Likewise.
13917 * mode-switching.c (optimize_mode_switching): Likewise.
13918 * optabs.c (emit_libcall_block_1): Likewise.
13919 (expand_atomic_compare_and_swap): Likewise.
13920 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13921 (record_opr_changes): Likewise. Remove explicit handling of
13922 CALL_INSN_FUNCTION_USAGE.
13923 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13924 * regcprop.c (kill_clobbered_values): Likewise.
13925 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13927 * regrename.c (build_def_use): Likewise.
13928 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13929 for mark_not_eliminable.
13930 (reload_as_needed): Pass the insn rather than its pattern
13932 (emit_output_reload_insns): Likewise.
13933 * resource.c (mark_target_live_regs): Likewise.
13934 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13935 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13936 instead of note_stores.
13937 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13938 its pattern to note_stores.
13939 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13940 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13942 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13944 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13945 than a #define. Use a structure rather than an array as the
13946 fallback definition. Remove special cases for low array sizes.
13947 (const_hard_reg_set): New typedef.
13948 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13949 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13950 (hard_reg_set_empty_p): Likewise.
13951 (SET_HARD_REG_BIT): Use a function rather than a macro to
13952 handle the case in which HARD_REG_SET is a structure.
13953 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13954 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13955 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13956 (IOR_COMPL_HARD_REG_SET): Likewise.
13957 (hard_reg_set_iterator::pset): Constify the pointer target.
13958 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13959 of a "const HARD_REG_SET". Update the handling of non-integer
13961 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13962 * reload.h: Likewise.
13963 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13964 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13965 of a "const HARD_REG_SET".
13966 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13967 (range_in_hard_reg_set_p): Likewise.
13968 * ira-costs.c (restrict_cost_classes): Likewise.
13969 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13970 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13971 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13972 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13973 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13974 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13975 take an unsigned int and open-code the HARD_REG_SET operations.
13977 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13979 * Makefile.in (OBJS): Remove bt-load.o.
13980 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13981 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13982 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13983 document that the option no longer does anything.
13984 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13985 * target.def (branch_target_register_class): Delete.
13986 (branch_target_register_callee_saved): Likewise.
13987 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13988 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13989 * doc/tm.texi: Regenerate.
13990 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13991 (make_pass_branch_target_load_optimize2): Likewise.
13992 * passes.def (pass_branch_target_load_optimize1): Likewise.
13993 (pass_branch_target_load_optimize2): Likewise.
13994 * targhooks.h (default_branch_target_register_class): Likewise.
13995 * targhooks.c (default_branch_target_register_class): Likewise.
13996 * opt-suggestions.c (test_completion_valid_options): Remove
13997 -fbtr-bb-exclusive from the list of test options.
13998 * bt-load.c: Remove.
14000 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
14002 * match.pd: Add flag_unsafe_math_optimizations check
14003 before deciding on the widest type in a binary math operation.
14005 2019-09-09 Martin Liska <mliska@suse.cz>
14007 * config/i386/i386.opt: Update comment of removed
14008 options that are preserved only for backward
14011 2019-09-09 Jakub Jelinek <jakub@redhat.com>
14014 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
14015 instead of __v16qs.
14018 * config/i386/avxintrin.h (__v32qs): New typedef.
14019 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
14020 instead of __v32qi.
14022 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14024 * doc/invoke.texi (Option Summary): Cover eBPF.
14025 (eBPF Options): New section.
14026 * doc/extend.texi (BPF Built-in Functions): Likewise.
14027 (BPF Kernel Helpers): Likewise.
14029 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14031 * config.gcc: Support for bpf-*-* targets.
14032 * common/config/bpf/bpf-common.c: New file.
14033 * config/bpf/t-bpf: Likewise.
14034 * config/bpf/predicates.md: Likewise.
14035 * config/bpf/constraints.md: Likewise.
14036 * config/bpf/bpf.opt: Likewise.
14037 * config/bpf/bpf.md: Likewise.
14038 * config/bpf/bpf.h: Likewise.
14039 * config/bpf/bpf.c: Likewise.
14040 * config/bpf/bpf-protos.h: Likewise.
14041 * config/bpf/bpf-opts.h: Likewise.
14042 * config/bpf/bpf-helpers.h: Likewise.
14043 * config/bpf/bpf-helpers.def: Likewise.
14045 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14047 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14050 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
14052 * opt-functions.awk (integer_range_info): Make sure values are in
14053 numeric context before operating with them.
14055 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
14057 * genemit.c (gen_split): Print the filename and line number where the
14058 splitter (or peephole2) was defined, to the dump file.
14060 2019-09-07 Jakub Jelinek <jakub@redhat.com>
14062 PR tree-optimization/91665
14063 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
14064 incompatible with the type of PHI result.
14066 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14069 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
14070 gen_unaligned_storedi for 4-byte aligned addresses.
14072 2019-09-06 Jim Wilson <jimw@sifive.com>
14074 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
14077 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14079 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14081 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14083 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14084 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14086 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14089 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14090 cost of SSE->integer and integer->SSE moves from 2 to 6.
14091 (core_cost): Ditto.
14093 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14095 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14096 before testing TYPE_TRANSPARENT_AGGR.
14097 * calls.c (initialize_argument_information, load_register_parameters):
14100 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14102 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14104 (cmp_ior): Likewise.
14106 2019-09-06 Martin Liska <mliska@suse.cz>
14108 * doc/match-and-simplify.texi: Separate tuples with ;.
14110 2019-09-06 Martin Liska <mliska@suse.cz>
14113 * Makefile.in: Remove tlink.o.
14114 * collect2.c (do_link): New function isolated
14117 * collect2.h (do_tlink): Remove declaration of do_tlink.
14118 * doc/extend.texi: Remove documentation of -frepo.
14119 * doc/invoke.texi: Likewise.
14120 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14123 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14124 Jim Wilson <jimw@sifive.com>
14127 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14128 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14129 paradoxical_subreg_p (operands[0]).
14130 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14131 use as intermediate value.
14133 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14135 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14136 (sync_compare_and_swap<mode>_insn): Likewise.
14138 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14140 PR middle-end/91615
14141 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14142 without movmisalign optab.
14144 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14146 PR middle-end/91001
14147 PR middle-end/91105
14148 PR middle-end/91106
14149 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14150 types, use type of their first field instead of type of
14151 args[i].tree_value.
14153 2019-09-05 Richard Biener <rguenther@suse.de>
14155 PR rtl-optimization/91656
14156 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14159 2019-09-05 Richard Biener <rguenther@suse.de>
14161 PR middle-end/90501
14162 * tree-inline.c (declare_return_variable): Mark the return
14163 slot as addressable after building an address of it.
14165 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14167 * doc/install.texi: Update and clarify requirements to build GNAT.
14169 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14171 PR middle-end/91577
14172 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14173 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14174 call to be in memory.
14175 (pass_expand::execute): Call discover_nonconstant_array_refs before
14176 setting currently_expanding_to_rtl.
14178 2019-09-04 Caroline Tice <cmtice@google.com>
14180 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14181 specified together.
14183 2019-09-04 Marek Polacek <polacek@redhat.com>
14185 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14187 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14190 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14191 for QI and HImode moves between SSE and general registers.
14193 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14196 * doc/invoke.texi: Document -Wenum-conversion.
14198 2019-09-04 Richard Biener <rguenther@suse.de>
14200 PR rtl-optimization/36262
14201 * postreload-gcse.c: Include intl.h and gcse.h.
14202 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14203 to avoid linear list walk.
14204 (record_last_mem_set_info): Gate off if not computing transparentness.
14205 (get_bb_avail_insn): If transparentness isn't computed give up
14207 (gcse_after_reload_main): Skip compute_transp and extended PRE
14208 if gcse_or_cprop_is_too_expensive says so.
14210 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14212 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14214 (msp430_select_section): Handle decls with the "noinit" attribute with
14215 default_elf_select_section.
14216 Handle SECCAT_RODATA_MERGE_* section types with
14217 default_elf_select_section.
14218 Add comments about handling of unsupported section types.
14219 (msp430_section_type_flags): Remove handling of the noinit section.
14221 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14223 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14224 conflicting msp430-specific attributes.
14225 (msp430_section_attr): Likewise.
14226 Add warnings about conflicts with generic "noinit" and "section"
14228 Fix grammar in -mlarge error message.
14229 (msp430_data_attr): Rename to msp430_persist_attr.
14230 Add warnings about conflicts with generic "noinit" and "section"
14232 Add warning for when variable is not initialized.
14233 Chain conditionals which prevent the attribute being added.
14234 (ATTR_EXCL): New helper.
14235 (attr_reent_exclusions): New exclusion table.
14236 (attr_naked_exclusions): Likewise.
14237 (attr_crit_exclusions): Likewise.
14238 (attr_lower_exclusions): Likewise.
14239 (attr_upper_exclusions): Likewise.
14240 (attr_either_exclusions): Likewise.
14241 (attr_persist_exclusions): Likewise.
14242 (msp430_attribute_table): Update with exclusion rules.
14243 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14246 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14248 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14249 (msp430_handle_generic_attribute): New function.
14250 * doc/tm.texi: Regenerate.
14251 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14252 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14253 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14254 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14256 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14258 PR tree-optimization/91504
14259 * match.pd: Add ((~a & b) ^a) --> (a | b).
14261 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14264 * config/i386/i386-expand.c (split_double_mode): If there is more than
14265 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14266 already split matching MEM operand instead of calling adjust_address
14269 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14271 * config.gcc: Obsolete spu target. Remove references to spu.
14272 * configure.ac: Remove references to spu.
14273 * configure: Regenerate.
14274 * config/spu/: Remove directory.
14275 * common/config/spu/: Remove directory.
14277 * doc/extend.texi: Remove references to spu.
14278 * doc/invoke.texi: Likewise.
14279 * doc/md.texi: Likewise.
14280 * doc/sourcebuild.texi: Likewise.
14282 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14284 PR middle-end/91603
14285 PR middle-end/91612
14286 PR middle-end/91613
14287 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14288 and SSA_NAME referring to CONSTANT_P correctly.
14290 2019-09-03 Richard Biener <rguenther@suse.de>
14292 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14293 (vn_nary_op_insert): Likewise.
14294 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14295 (vn_nary_op_lookup): Likewise.
14296 (vn_nary_op_insert): Likewise.
14298 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14300 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14301 (*op0, 1) instead of XEXP (*op1, 0).
14303 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14305 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14306 (aarch64_fjcvtzs): New define_insn.
14307 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14308 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14310 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14311 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14312 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14313 __ARM_FEATURE_JCVT where appropriate.
14314 * config/aarch64/arm_acle.h (__jcvt): Define.
14316 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14318 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14319 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14320 (aarch64_<frintnzs_op><mode>): New define_insn.
14321 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14322 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14323 __ARM_FEATURE_FRINT when appropriate.
14324 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14325 frint32x, frint64z, frint64x.
14326 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14327 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14328 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14329 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14330 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14331 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14332 * config/aarch64/iterators.md (VSFDF): Define.
14333 (FRINTNZX): Likewise.
14334 (frintnzs_op): Likewise.
14336 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14338 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14339 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14341 * config/aarch64/aarch64-tune.md: Regenerated.
14342 * doc/invoke.texi: Document the new processors.
14344 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14346 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14350 (sve2-sm4): Likewise.
14351 (sveaes): Likewise.
14352 (svesha3): Likewise.
14353 (svebitperm): Likewise.
14355 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14356 Richard Biener <rguenther@suse.de>
14358 PR tree-optimization/91597
14359 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14360 BIT_AND_EXPR optimization for pointers, even if both operand
14361 ranges don't include NULL, the result can be NULL.
14363 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14365 PR middle-end/91605
14366 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14367 (non_mem_decl_p): ...this.
14368 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14369 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14370 unconditionally as before.
14372 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14375 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14376 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14377 * tree.def (LTGT_EXPR): Likewise.
14378 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14380 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14383 * fold-const.c (range_check_type): For enumeral and boolean
14384 type, pass 1 to type_for_size langhook instead of
14385 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14386 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14387 (build_range_check): Don't call unsigned_type_for for pointer types.
14388 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14389 range_check_type result.
14391 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14393 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14394 (replace_ref): Do not replace a chain of only two candidates which are
14395 valid memory references.
14397 2019-09-02 Martin Liska <mliska@suse.cz>
14399 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14400 Bail out when we'll end up with the same number of clusters as
14402 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14403 (jump_table_cluster::can_be_handled): Remove the guard
14404 as it's already handled in ::is_enabled. Allocate output
14405 after early bail out.
14407 2019-09-02 Martin Liska <mliska@suse.cz>
14409 PR gcov-profile/91601
14410 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14411 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14412 also negative edges.
14413 (circuit): Handle also negative edges as they can happen
14414 in some situations.
14416 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14419 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14420 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14421 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14423 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14425 PR middle-end/91623
14426 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14427 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14428 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14432 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14433 GIMPLE_ASM TREE_LIST operands.
14435 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14437 * doc/generic.texi (Unary and Binary Expressions): Mark up
14438 an instance of TYPE_MIN.
14440 2019-08-31 Stafford Horne <shorne@gmail.com>
14442 * config/or1k/constraints.md (t): New constraint.
14443 * config/or1k/or1k.h (GOT_REGS): New register class.
14444 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14446 2019-08-30 Jim Wilson <jimw@sifive.com>
14448 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14449 and -fpic and -mplt then disable -msave-restore and warn.
14451 2019-08-30 Martin Sebor <msebor@redhat.com>
14453 PR middle-end/91599
14454 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14455 the statement doesn't have one.
14456 * gimple-pretty-print.c (percent_G_format): Same.
14458 PR middle-end/91584
14459 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14460 before using them to validate MEM_REF offset.
14462 2019-08-30 Marek Polacek <polacek@redhat.com>
14464 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14466 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14468 * config/arm/arm.md (unaligned_loaddi,
14469 unaligned_storedi): New unspec insn patterns.
14470 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14471 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14472 and unaligned_storedi for 4-byte aligned memory.
14473 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14474 4-byte aligned memory.
14476 2019-08-30 Martin Jambor <mjambor@suse.cz>
14478 tree-optimization/91579
14479 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14480 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14482 (arg_needs_copy_p): Removed.
14483 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14485 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14487 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14489 * config/i386/i386-features.c
14490 (general_scalar_chain::compute_convert_gain):
14491 Correct cost for double-word shifts.
14492 (general_scalar_to_vector_candidate_p): Reject count operands
14493 greater or equal to mode bitsize.
14495 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14497 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14498 for moves between SSE and non-general registers and between
14499 mask and non-general registers.
14500 (ix86_register_move_cost): Remove stalled comment.
14502 2019-08-29 Richard Biener <rguenther@suse.de>
14504 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14505 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14507 2019-08-29 Richard Biener <rguenther@suse.de>
14510 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14511 Do not emit scalar copies for debug-insns, instead replace
14512 their uses with the reg copy used in the chain or reset them
14513 if there is a reaching definition outside of the chain as well.
14515 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14518 * config/i386/i386-expand.c (expand_vec_perm_movs,
14519 expand_vec_perm_blend, expand_vec_perm_vpermil,
14520 expand_vec_perm_pshufb, expand_vec_perm_1,
14521 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14522 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14523 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14524 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14525 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14526 comments - replace ix86_expand_vec_perm_builtin_1 with
14527 ix86_expand_vec_perm_const_1.
14528 (expand_vec_perm2_vperm2f128_vblend): New function.
14529 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14530 expand_vec_perm2_vperm2f128_vblend as last resort.
14531 (canonicalize_perm): Formatting fix.
14533 PR tree-optimization/91351
14534 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14536 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14537 range_check_type returns NULL.
14538 * tree-switch-conversion.c (switch_conversion::build_one_array):
14539 Use range_check_type instead of unsigned_type_for, don't perform
14540 linear opt if it returns NULL.
14541 (bit_test_cluster::find_bit_tests): Formatting fix.
14542 (bit_test_cluster::emit): Use range_check_type instead of
14544 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14547 2019-08-29 Richard Biener <rguenther@suse.de>
14549 PR tree-optimization/91568
14550 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14551 (vect_update_max_nunits): Add overload for poly_uint64.
14552 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14553 (vect_build_slp_tree): Record max_nunits into the subtree
14554 and merge it upwards.
14555 (vect_print_slp_tree): Print max_nunits.
14557 2019-08-28 Marek Polacek <polacek@redhat.com>
14559 Implement P1152R4: Deprecating some uses of volatile.
14561 * doc/invoke.texi: Document -Wvolatile.
14563 2019-08-28 Marek Polacek <polacek@redhat.com>
14565 PR c++/91360 - Implement C++20 P1143R2: constinit.
14566 * doc/invoke.texi: Document -Wc++20-compat.
14568 2019-08-28 Martin Sebor <msebor@redhat.com>
14570 PR tree-optimization/91457
14571 * builtins.c (component_size): New function.
14572 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14573 * builtins.h (compute_objsize): Add argument.
14574 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14575 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14576 (vrp_prop::check_mem_ref): Same.
14577 (vrp_prop::search_for_addr_array): Set no-warning bit.
14578 (check_array_bounds): Same.
14580 2019-08-28 Martin Sebor <msebor@redhat.com>
14583 * opts-common.c (option_enabled): Correct checking for language
14586 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14588 * config/i386/i386.c (ix86_register_move_cost): Do not
14589 limit the cost of moves to/from XMM register to minimum 8.
14591 2019-08-28 Martin Jambor <mjambor@suse.cz>
14594 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14595 checking assert a normal assert to test it really is redundant.
14596 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14598 (update_jump_functions_after_inlining): Removed combining unary
14599 arithmetic operations with an ancestor jump function.
14600 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14603 2019-08-28 Richard Biener <rguenther@suse.de>
14605 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14606 add the MD problem.
14608 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14609 Richard Biener <rguenther@suse.de>
14611 * expr.c (expand_assignment): Handle misaligned DECLs.
14612 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14613 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14615 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14616 * varasm.c (build_constant_desc): Align constants of misaligned types.
14617 * config/arm/predicates.md (aligned_operand): New predicate.
14618 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14619 aligned_operand to check restrictions on memory addresses.
14620 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14621 * config/arm/vec-common.md (mov<VALL>): Likewise.
14623 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14626 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14627 V_128 iterator instead of VI_128.
14629 2019-08-28 Martin Liska <mliska@suse.cz>
14631 PR tree-optimization/90970
14632 * builtins.c (check_access): Remove assignment to maxread
14633 as it hasn't been used since when it was introduced in r255755.
14635 2019-08-27 Martin Sebor <msebor@redhat.com>
14637 PR tree-optimization/91567
14638 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14639 of unknown strings.
14640 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14641 to PTRDIFF_MAX - 2.
14643 2019-08-27 Jeff Law <law@redhat.com>
14645 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14646 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14648 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14651 * config/i386/i386-features.c (convert_scalars_to_vector):
14652 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14653 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14654 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14655 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14657 2019-08-27 Richard Biener <rguenther@suse.de>
14659 * config/i386/i386-features.h
14660 (general_scalar_chain::~general_scalar_chain): Add.
14661 (general_scalar_chain::insns_conv): New bitmap.
14662 (general_scalar_chain::n_sse_to_integer): New.
14663 (general_scalar_chain::n_integer_to_sse): Likewise.
14664 (general_scalar_chain::make_vector_copies): Adjust signature.
14665 * config/i386/i386-features.c
14666 (general_scalar_chain::general_scalar_chain): Outline,
14667 initialize new members.
14668 (general_scalar_chain::~general_scalar_chain): New.
14669 (general_scalar_chain::mark_dual_mode_def): Record insns
14670 we need to insert conversions at and count them.
14671 (general_scalar_chain::compute_convert_gain): Account
14672 for conversion instructions at chain boundary.
14673 (general_scalar_chain::make_vector_copies): Generate a single
14674 copy for a def by a specific insn.
14675 (general_scalar_chain::convert_registers): First populate
14676 defs_map, then make copies at out-of chain insns.
14678 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14680 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14682 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14684 2019-08-27 Martin Liska <mliska@suse.cz>
14686 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14688 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14689 Enclose in anonymous namespace.
14690 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14691 hard_register initialization in braces.
14692 * tree-vrp.h (value_range_base::supports_type_p): Return false
14693 for function with boolean return type.
14695 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14697 * config/i386/i386.c (emit_i387_cw_initialization)
14698 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14700 2019-08-26 Martin Sebor <msebor@redhat.com>
14703 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14704 (sprintf_dom_walker): Remove class.
14705 (get_int_range): Make argument const.
14706 (directive::fmtfunc, directive::set_precision): Same.
14707 (format_none): Same.
14708 (build_intmax_type_nodes): Same.
14709 (adjust_range_for_overflow): Same.
14710 (format_floating): Same.
14711 (format_character): Same.
14712 (format_string): Same.
14713 (format_plain): Same.
14714 (get_int_range): Cast away constness.
14715 (format_integer): Same.
14716 (get_string_length): Call get_range_strlen_dynamic. Handle
14717 null lendata.maxbound.
14718 (should_warn_p): Adjust argument scope qualifier.
14719 (maybe_warn): Same.
14720 (format_directive): Same.
14721 (parse_directive): Same.
14722 (is_call_safe): Same.
14723 (try_substitute_return_value): Same.
14724 (sprintf_dom_walker::handle_printf_call): Rename...
14725 (handle_printf_call): ...to this. Initialize target to host charmap
14726 here instead of in pass_sprintf_length::execute.
14727 (struct call_info): Make global.
14728 (sprintf_dom_walker::compute_format_length): Make global.
14729 (sprintf_dom_walker::handle_gimple_call): Same.
14730 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14731 * print-rtl.c (print_pattern): Reduce the number of spaces to
14732 avoid -Wformat-truncation.
14733 * tree-pass.h (make_pass_warn_printf): New function.
14734 * tree-ssa-strlen.c (strlen_optimize): New variable.
14735 (get_string_length): Add comments.
14736 (get_range_strlen_dynamic): New function.
14737 (check_and_optimize_call): New function.
14738 (handle_integral_assign): New function.
14739 (strlen_check_and_optimize_stmt): Factor code out into
14740 strlen_check_and_optimize_call and handle_integral_assign.
14741 (strlen_dom_walker::evrp): New member.
14742 (strlen_dom_walker::before_dom_children): Use evrp member.
14743 (strlen_dom_walker::after_dom_children): Use evrp member.
14744 (printf_strlen_execute): New function.
14745 (pass_strlen::gate): Update to handle printf calls.
14746 (dump_strlen_info): New function.
14747 (pass_data_warn_printf): New variable.
14748 (pass_warn_printf): New class.
14749 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14750 (handle_printf_call): Same.
14751 * tree-vrp.c (value_range_base::type): Adjust assertion.
14752 * vr-values.c (vr_values::update_value_range): Use type of the first
14753 argument rather than the second.
14755 2019-08-26 Richard Biener <rguenther@suse.de>
14757 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14759 (convert_scalars_to_vector): Do not call it.
14761 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14762 Uros Bizjak <ubizjak@gmail.com>
14764 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14765 CASE_MATHFN_FLOATN for roundeven.
14766 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14768 (ix86_mode_needed): Likewise.
14769 (ix86_mode_after): Likewise.
14770 (ix86_mode_entry): Likewise.
14771 (ix86_mode_exit): Likewise.
14772 (ix86_emit_mode_set): Likewise.
14773 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14774 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14775 (ix86_entity): Add I387_ROUNDEVEN.
14776 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14777 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14778 (define_int_iterator): Likewise.
14779 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14780 (define_constant): Define ROUND_ROUNDEVEN mode.
14781 (define_attr): Add roundeven mode for i387_cw.
14782 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14783 * internal-fn.def (ROUNDEVEN): New builtin function.
14784 * optabs.def (roundeven_optab): New optab.
14786 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14788 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14790 * builtins.def: Added function definitions for roundeven function
14792 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14793 function call. Adjust condition for floor, ceil, trunc and round.
14794 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14795 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14796 (integer_valued_real_call_p): Added case for roundeven function.
14797 * real.c (is_even): New function. Returns true if real number is even,
14798 otherwise returns false.
14799 (is_halfway_below): New function. Returns true if real number is
14800 halfway between two integers, else return false.
14801 (real_roundeven): New function. Round real number to nearest integer,
14802 rounding halfway cases towards even.
14803 * real.h (real_value): Added descriptive comments. Added function
14804 declaration for roundeven function.
14805 * doc/extend.texi (Other Builtins): List roundeven variants among
14806 functions which can be handled as builtins.
14808 2019-08-26 Richard Biener <rguenther@suse.de>
14812 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14814 (general_scalar_chain::replace_with_subreg): Remove.
14815 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14816 (general_scalar_chain::convert_reg): Adjust signature.
14817 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14818 iterate over all defs of a reg.
14819 (general_scalar_chain::replace_with_subreg): Remove.
14820 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14821 (general_scalar_chain::make_vector_copies): Populate defs_map,
14822 place copy only after defs that are used as vectors in the chain.
14823 (general_scalar_chain::convert_reg): Emit a copy for a specific
14824 def in a specific instruction.
14825 (general_scalar_chain::convert_op): All reg uses are converted here.
14826 (general_scalar_chain::convert_insn): Emit copies for scalar
14827 uses of defs here. Replace uses with the copies we created.
14828 Replace and convert the def. Adjust REG_DEAD notes, remove
14829 REG_EQUIV/EQUAL notes.
14830 (general_scalar_chain::convert_registers): Only handle copies
14831 into the chain here.
14833 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14835 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14837 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14839 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14840 Add nop_convert case.
14841 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14842 Fold all statements if requested.
14843 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14844 Allow to fold all statements.
14845 * tree-vrp.c (class vrp_folder):
14846 Let substitute_and_fold_engine fold all statements.
14848 2019-08-26 Richard Biener <rguenther@suse.de>
14850 PR tree-optimization/91526
14851 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14852 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14853 TODO_update_address_taken.
14855 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14857 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14860 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14862 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14863 machine mode for unspec_volatile operand.
14865 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14867 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14868 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14869 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14870 (prefer_neon_for_64bits): Remove.
14871 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14872 (tune_params): Remove PREF_NEON_64_FALSE uses.
14873 (arm_option_override): Remove prefer_neon selection code.
14874 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14875 * config/arm/arm-protos.h (tune_params): Remove
14876 prefer_neon_for_64bits.
14877 (prefer_neon_for_64bits): Remove.
14879 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14882 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14883 and issue any diagnostics needed before collecting the pre-PCH
14886 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14888 PR middle-end/91283
14889 * common.opt (fexcess-precision=): Add Optimization flag. Use
14890 flag_excess_precision variable instead of
14891 flag_excess_precision_cmdline.
14892 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14894 (flag_excess_precision): Don't define.
14895 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14896 flag_excess_precision_cmdline. Remove comment.
14897 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14898 and x_flag_excess_precision instead of
14899 frontend_set_flag_excess_precision_cmdline and
14900 x_flag_excess_precision_cmdline.
14901 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14902 x_flag_excess_precision_cmdline.
14903 * toplev.c (init_excess_precision): Remove.
14904 (lang_dependent_init_target): Don't call it.
14906 2019-08-23 Martin Liska <mliska@suse.cz>
14908 * lto-wrapper.c (run_gcc): When setting jobserver
14909 set also parallel to 1. This was done so before r273908.
14911 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14913 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14914 (cortex-a76ae): Likewise.
14915 (cortex-a77): Likewise
14916 * config/arm/arm-tables.opt: Regenerate.
14917 * config/arm/arm-tune.md: Likewise.
14918 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14919 cortex-a77 CPU options.
14921 2019-08-23 Martin Liska <mliska@suse.cz>
14923 * profile.c (instrument_values): Do not set
14924 0 as last argument.
14925 * tree-profile.c (gimple_gen_interval_profiler): Remove
14927 (gimple_gen_pow2_profiler): Likewise.
14928 (gimple_gen_topn_values_profiler): Likewise.
14929 (gimple_gen_ic_profiler): Likewise.
14930 (gimple_gen_time_profiler): Likewise.
14931 (gimple_gen_average_profiler): Likewise.
14932 (gimple_gen_ior_profiler): Likewise.
14933 * value-prof.c (dump_histogram_value): Use default
14934 in switch statement instead of HIST_TYPE_MAX.
14935 (stream_in_histogram_value): Likewise.
14936 (gimple_duplicate_stmt_histograms): Do not
14937 use NULL for implicitly set arguments.
14938 (gimple_divmod_values_to_profile): Do not use
14939 reserve+quick_push.
14940 (gimple_indirect_call_to_profile): Likewise.
14941 (gimple_find_values_to_profile): Use implicit
14942 function call arguments.
14943 * value-prof.h (gimple_alloc_histogram_value):
14944 Set default values.
14945 (gimple_gen_interval_profiler): Remove last argument.
14946 (gimple_gen_pow2_profiler): Likewise.
14947 (gimple_gen_topn_values_profiler): Likewise.
14948 (gimple_gen_ic_profiler): Likewise.
14949 (gimple_gen_time_profiler): Likewise.
14950 (gimple_gen_average_profiler): Likewise.
14951 (gimple_gen_ior_profiler): Likewise.
14953 2019-08-22 Martin Sebor <msebor@redhat.com>
14955 PR middle-end/91490
14956 * builtins.c (c_strlen): Rename argument and introduce new local.
14957 Set no-warning bit on original argument.
14958 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14959 Fold empty and zero constructors into empty strings.
14960 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14961 for missing initializers.
14962 * tree.c (build_string_literal): Handle optional argument.
14963 * tree.h (build_string_literal): Add defaulted argument.
14964 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14965 no-warning bit on original expression.
14967 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14970 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14971 and UNSPEC_DARN_RAW.
14972 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14974 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14975 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14976 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14978 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14980 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14981 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14982 * config/rs6000/rs6000.md (unspec): ... here.
14983 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14984 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14985 cmpeqb, *cmpeqb_internal): Delete, move to...
14986 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14987 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14988 cmpeqb, *cmpeqb_internal): ... here.
14990 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14992 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14993 intrinsics if __ARM_FP.
14994 Use __ARM_FEATURE_CRC32 ifdef guard.
14996 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14998 * config/arm/arm.md (neon_for_64bits): Remove.
14999 (avoid_neon_for_64bits): Remove.
15000 (arm_adddi3): Always split early.
15001 (arm_subdi3): Always split early.
15002 (negdi2): Remove Neon expansion.
15003 (split zero_extend): Split before reload.
15004 (split sign_extend): Split before reload.
15006 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15008 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
15009 (qhs_extenddi_cstr): Likewise.
15010 * config/arm/arm.md (ashldi3): Always expand early.
15011 (ashlsi3): Likewise.
15012 (ashrsi3): Likewise.
15013 (zero_extend<mode>di2): Remove Neon variants.
15014 (extend<mode>di2): Likewise.
15015 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
15016 (signed_shift_di3_neon): Likewise.
15017 (unsigned_shift_di3_neon): Likewise.
15018 (ashrdi3_neon_imm_noclobber): Likewise.
15019 (lshrdi3_neon_imm_noclobber): Likewise.
15020 (<shift>di3_neon): Likewise.
15021 (split extend): Remove DI extend split patterns.
15023 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
15025 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
15026 (split not): Add DImode not splitter.
15027 (anddi3): Remove pattern.
15028 (anddi3_insn): Likewise.
15029 (anddi_zesidi_di): Likewise.
15030 (anddi_sesdi_di): Likewise.
15031 (anddi_notdi_di): Likewise.
15032 (anddi_notzesidi_di): Likewise.
15033 (anddi_notsesidi_di): Likewise.
15034 (iordi3): Likewise.
15035 (iordi3_insn): Likewise.
15036 (iordi_zesidi_di): Likewise.
15037 (iordi_sesidi_di): Likewise.
15038 (xordi3): Likewise.
15039 (xordi3_insn): Likewise.
15040 (xordi_sesidi_di): Likewise.
15041 (xordi_zesidi_di): Likewise.
15042 (one_cmpldi2): Likewise.
15043 (one_cmpldi2_insn): Likewise.
15044 * config/arm/constraints.md: Remove De, Df, Dg constraints.
15045 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
15047 (iwmmxt_xordi3): Likewise.
15048 (iwmmxt_anddi3): Likewise.
15049 * config/arm/neon.md (orndi3_neon): Remove pattern.
15050 (anddi_notdi_di): Likewise.
15051 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
15052 (arm_iordi_operand_neon): Likewise.
15053 (arm_xordi_operand_neon): Likewise.
15054 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
15055 (iordi_notzesidi_di): Likewise.
15056 (iordi_notdi_zesidi): Likewise.
15057 (iordi_notsesidi_di): Likewise.
15059 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
15061 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
15063 (iorsi3_compare0_scratch): Likewise.
15065 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
15067 * config/aarch64/aarch64-simd-builtins.def:
15070 * config/aarch64/aarch64-simd.md:
15071 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
15072 (aarch64_st1x4<VALLDIF:mode>): Likewise.
15073 (aarch64_ld1_x4_<mode>): Likewise.
15074 (aarch64_st1_x4_<mode>): Likewise.
15075 * config/aarch64/arm_neon.h:
15076 (vld1_s8_x4): New function.
15077 (vld1q_s8_x4): Likewise.
15078 (vld1_s16_x4): Likewise.
15079 (vld1q_s16_x4): Likewise.
15080 (vld1_s32_x4): Likewise.
15081 (vld1q_s32_x4): Likewise.
15082 (vld1_u8_x4): Likewise.
15083 (vld1q_u8_x4): Likewise.
15084 (vld1_u16_x4): Likewise.
15085 (vld1q_u16_x4): Likewise.
15086 (vld1_u32_x4): Likewise.
15087 (vld1q_u32_x4): Likewise.
15088 (vld1_f16_x4): Likewise.
15089 (vld1q_f16_x4): Likewise.
15090 (vld1_f32_x4): Likewise.
15091 (vld1q_f32_x4): Likewise.
15092 (vld1_p8_x4): Likewise.
15093 (vld1q_p8_x4): Likewise.
15094 (vld1_p16_x4): Likewise.
15095 (vld1q_p16_x4): Likewise.
15096 (vld1_s64_x4): Likewise.
15097 (vld1_u64_x4): Likewise.
15098 (vld1_p64_x4): Likewise.
15099 (vld1q_s64_x4): Likewise.
15100 (vld1q_u64_x4): Likewise.
15101 (vld1q_p64_x4): Likewise.
15102 (vld1_f64_x4): Likewise.
15103 (vld1q_f64_x4): Likewise.
15104 (vst1_s8_x4): Likewise.
15105 (vst1q_s8_x4): Likewise.
15106 (vst1_s16_x4): Likewise.
15107 (vst1q_s16_x4): Likewise.
15108 (vst1_s32_x4): Likewise.
15109 (vst1q_s32_x4): Likewise.
15110 (vst1_u8_x4): Likewise.
15111 (vst1q_u8_x4): Likewise.
15112 (vst1_u16_x4): Likewise.
15113 (vst1q_u16_x4): Likewise.
15114 (vst1_u32_x4): Likewise.
15115 (vst1q_u32_x4): Likewise.
15116 (vst1_f16_x4): Likewise.
15117 (vst1q_f16_x4): Likewise.
15118 (vst1_f32_x4): Likewise.
15119 (vst1q_f32_x4): Likewise.
15120 (vst1_p8_x4): Likewise.
15121 (vst1q_p8_x4): Likewise.
15122 (vst1_p16_x4): Likewise.
15123 (vst1q_p16_x4): Likewise.
15124 (vst1_s64_x4): Likewise.
15125 (vst1_u64_x4): Likewise.
15126 (vst1_p64_x4): Likewise.
15127 (vst1q_s64_x4): Likewise.
15128 (vst1q_u64_x4): Likewise.
15129 (vst1q_p64_x4): Likewise.
15130 (vst1_f64_x4): Likewise.
15131 (vst1q_f64_x4): Likewise.
15133 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15135 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15137 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15138 Richard Sandiford <richard.sandiford@arm.com>
15141 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15142 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15144 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15147 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15148 in reg if it fails aarch64_plus_operand predicate.
15150 2019-08-21 Richard Biener <rguenther@suse.de>
15152 PR tree-optimization/91482
15153 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15154 BUILT_IN_ASSUME_ALIGNED calls.
15156 2019-08-21 Richard Biener <rguenther@suse.de>
15160 * config/i386/i386-features.c
15161 (general_scalar_chain::make_vector_copies): Copy stack temporary
15162 rtx when using it multiple times.
15163 (general_scalar_chain::convert_reg): Likewise.
15165 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15167 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15169 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15171 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15172 catch more redundant zero initialization cases.
15173 (dse_dom_walker::dse_optimize_stmt): Likewise.
15175 2019-08-20 Richard Biener <rguenther@suse.de>
15178 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15179 by collect2 when targetm.have_ctors_dtors which avoids dragging
15180 in temporary filenames from LTO input objects.
15182 2019-08-20 Richard Biener <rguenther@suse.de>
15184 PR tree-optimization/37242
15185 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15186 to (T)a + (T)b if we know that a + b does not overflow.
15188 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15190 PR rtl-optimization/91347
15191 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15192 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15194 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15196 * calls.h (function_arg_info): Add a pass_by_reference field,
15197 defaulting to false.
15198 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15199 when applying pass-by-reference semantics.
15200 (initialize_argument_information): Likewise.
15201 (emit_library_call_value_1): Likewise.
15202 * function.c (assign_parm_data_one): Remove passed_pointer field.
15203 (assign_parm_find_data_types): Don't set it.
15204 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15205 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15206 arg.pass_by_reference instead of passed_pointer.
15208 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15210 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15211 into a single function_arg_info, updating its fields when we
15212 apply pass-by-reference and promotion semantics. Use the
15213 function_arg_info to track the mode rather than keeping it in
15214 a separate local variable.
15215 (initialize_argument_information): Likewise. Base the final
15216 arg_to_skip on this new function_arg_info rather than creating
15217 a new one from scratch.
15219 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15221 * function.c (assign_parm_data_one): Replace passed_type,
15222 promoted_mode and named_arg with a function_arg_info field.
15223 (assign_parm_find_data_types): Remove local variables and
15224 assign directly to "data". Make data->passed_mode shadow
15225 data->arg.mode until promotion, then assign the promoted
15226 mode to data->arg.mode.
15227 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15228 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15229 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15230 (assign_parm_setup_block, assign_parm_setup_reg)
15231 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15232 arg.mode instead of promoted_mode, arg.type instead of passed_type
15233 and arg.named instead of named_arg. Use data->arg for
15234 function_arg_info structures that had the field values passed_type,
15235 promoted_mode and named_arg. Base other function_arg_infos on
15236 data->arg, changing the necessary properties.
15238 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15240 * calls.h (apply_pass_by_reference_rules): Declare.
15241 * calls.c (apply_pass_by_reference_rules): New function.
15242 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15243 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15244 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15245 * function.c (assign_parm_find_data_types): Likewise.
15246 * var-tracking.c (prepare_call_arguments): Likewise.
15248 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15250 * target.def (must_pass_in_stack): Take a function_arg_info instead
15251 of a mode and a type.
15252 * doc/tm.texi: Regenerate.
15253 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15254 instead of a mode and a type.
15255 (must_pass_in_stack_var_size_or_pad): Likewise.
15256 * calls.c (must_pass_in_stack_var_size): Likewise.
15257 (must_pass_in_stack_var_size_or_pad): Likewise.
15258 (initialize_argument_information): Update call to
15259 targetm.calls.must_pass_in_stack.
15260 (must_pass_va_arg_on_stack): Likewise.
15261 * function.c (assign_parm_find_entry_rtl): Likewise.
15262 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15263 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15264 (alpha_function_arg_advance): Likewise.
15265 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15266 (cr16_function_arg_advance): Likewise.
15267 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15268 (cris_arg_partial_bytes): Likewise.
15269 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15270 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15271 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15272 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15273 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15274 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15275 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15276 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15277 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15278 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15279 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15280 instead of a mode and a type.
15281 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15282 (fr30_num_arg_regs): Likewise.
15283 (fr30_setup_incoming_varargs): Update calls accordingly.
15284 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15285 (fr30_function_arg_advance): Likewise.
15286 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15287 instead of a mode and a type.
15288 * config/gcn/gcn.c (num_arg_regs): Likewise.
15289 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15290 num_arg_regs and targetm.calls.must_pass_in_stack.
15291 (gcn_arg_partial_bytes): Likewise.
15292 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15293 function_arg_info instead of a mode and a type.
15294 (classify_argument): Update call accordingly.
15295 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15296 function_arg_info instead of a mode and a type.
15297 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15299 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15300 (rs6000_parm_needs_stack): Update call accordingly.
15301 (setup_incoming_varargs): Likewise.
15303 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15305 * target.def (callee_copies): Take a function_arg_info instead
15306 of a mode, type and named flag.
15307 * doc/tm.texi: Regenerate.
15308 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15309 instead of a mode, type and named flag.
15310 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15311 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15312 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15313 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15314 instead of a mode, type and named flag.
15315 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15316 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15317 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15318 * calls.h (reference_callee_copied): Take a function_arg_info
15319 instead of a mode, type and named flag.
15320 * calls.c (reference_callee_copied): Likewise.
15321 (initialize_argument_information): Update call accordingly.
15322 (emit_library_call_value_1): Likewise.
15323 * function.c (gimplify_parameters): Likewise.
15324 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15325 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15326 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15327 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15328 (TARGET_CALLEE_COPIES): Define to
15329 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15330 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15331 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15332 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15333 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15334 instead of a mode, type and named flag.
15335 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15336 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15337 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15338 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15339 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15340 (TARGET_CALLEE_COPIES): Define to
15341 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15342 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15343 instead of a mode, type and named flag.
15344 * config/sh/sh.c (sh_callee_copies): Likewise.
15345 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15346 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15347 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15349 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15351 * target.def (function_arg_advance): Take a function_arg_info instead
15352 of a mode, type and named flag.
15353 * doc/tm.texi: Regenerate.
15354 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15355 instead of a mode, type and named flag.
15356 * targhooks.c (default_function_arg_advance): Likewise.
15357 * calls.c (initialize_argument_information): Update call to
15358 targetm.calls.function_arg_advance.
15359 (emit_library_call_value_1): Likewise.
15360 * dse.c (get_call_args): Likewise.
15361 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15362 * function.c (assign_parms, gimplify_parameters): Likewise.
15363 * var-tracking.c (prepare_call_arguments): Likewise.
15364 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15365 function_arg_info instead of a mode, type and named flag.
15366 (aarch64_setup_incoming_varargs): Update call accordingly.
15367 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15368 function_arg_info instead of a mode, type and named flag.
15369 (alpha_setup_incoming_varargs): Update call accordingly.
15370 * config/arc/arc.c (arc_function_arg_advance): Take a
15371 function_arg_info instead of a mode, type and named flag.
15372 (arc_setup_incoming_varargs): Update call accordingly.
15373 * config/arm/arm.c (arm_function_arg_advance): Take a
15374 function_arg_info instead of a mode, type and named flag.
15375 (cmse_func_args_or_return_in_stack): Update call accordingly.
15376 (arm_function_ok_for_sibcall): Likewise.
15377 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15378 * config/avr/avr.c (avr_function_arg_advance): Take a
15379 function_arg_info instead of a mode, type and named flag.
15380 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15381 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15382 (c6x_call_saved_register_used): Update call accordingly.
15383 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15384 function_arg_info instead of a mode, type and named flag.
15385 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15386 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15387 (csky_setup_incoming_varargs): Update call accordingly.
15388 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15389 function_arg_info instead of a mode, type and named flag.
15390 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15391 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15392 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15393 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15394 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15395 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15396 (ix86_setup_incoming_varargs): Update call accordingly.
15397 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15398 function_arg_info instead of a mode, type and named flag.
15399 (ia64_setup_incoming_varargs): Update call accordingly.
15400 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15401 function_arg_info instead of a mode, type and named flag.
15402 (iq2000_expand_prologue): Update call accordingly.
15403 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15404 function_arg_info instead of a mode, type and named flag.
15405 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15406 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15407 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15408 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15409 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15411 (microblaze_expand_prologue): Update call accordingly.
15412 * config/mips/mips.c (mips_function_arg_advance): Take a
15413 function_arg_info instead of a mode, type and named flag.
15414 (mips_setup_incoming_varargs): Update call accordingly.
15415 (mips_output_args_xfer): Likewise.
15416 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15417 function_arg_info instead of a mode, type and named flag.
15418 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15419 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15420 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15421 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15422 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15423 (nios2_setup_incoming_varargs): Update call accordingly.
15424 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15425 function_arg_info instead of a mode, type and named flag.
15426 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15427 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15428 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15429 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15430 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15431 (riscv_setup_incoming_varargs): Update call accordingly.
15432 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15433 function_arg_info instead of a mode, type and named flag.
15434 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15436 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15437 (rs6000_parm_needs_stack): Update call accordingly.
15438 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15439 instead of a mode, type and named flag.
15440 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15441 (s390_call_saved_register_used): Update call accordingly.
15442 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15443 instead of a mode, type and named flag.
15444 (sh_output_mi_thunk): Update call accordingly.
15445 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15446 function_arg_info instead of a mode, type and named flag.
15447 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15448 (spu_setup_incoming_varargs): Update call accordingly.
15449 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15450 function_arg_info instead of a mode, type and named flag.
15451 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15452 (tilegx_setup_incoming_varargs): Update call accordingly.
15453 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15454 function_arg_info instead of a mode, type and named flag.
15455 (tilegx_setup_incoming_varargs): Update call accordingly.
15456 * config/v850/v850.c (v850_function_arg_advance): Take a
15457 function_arg_info instead of a mode, type and named flag.
15458 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15459 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15460 (visium_setup_incoming_varargs): Update call accordingly.
15461 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15462 function_arg_info instead of a mode, type and named flag.
15464 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15466 * target.def (function_arg, function_incoming_arg): Take a
15467 function_arg_info instead of a mode, tree and named flag.
15468 * doc/tm.texi: Regenerate.
15469 * targhooks.h (default_function_arg): Take a function_arg_info
15470 instead of a mode, tree and named flag.
15471 (default_function_incoming_arg): Likewise.
15472 * targhooks.c (default_function_arg): Likewise.
15473 (default_function_incoming_arg): Likewise.
15474 * calls.h (function_arg_info::end_marker_p): New function.
15475 (function_arg_info::end_marker): Likewise.
15476 * calls.c (prepare_call_address, initialize_argument_information)
15477 (expand_call, emit_library_call_value_1): Update calls to
15478 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15479 * dse.c: Include calls.h.
15480 (get_call_args): Update call to targetm.calls.function_arg.
15481 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15482 * var-tracking.c (prepare_call_arguments): Likewise.
15483 * function.c (assign_parm_find_entry_rtl): Update call to
15484 targetm.calls.function_incoming_arg.
15485 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15486 function_arg_info instead of a mode, tree and named flag.
15487 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15488 * config/arc/arc.c (arc_function_arg): Likewise.
15489 * config/arm/arm.c (arm_function_arg): Likewise.
15490 (cmse_func_args_or_return_in_stack): Update call accordingly.
15491 (arm_function_ok_for_sibcall): Likewise.
15492 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15493 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15494 instead of a mode, tree and named flag.
15495 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15496 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15497 (c6x_call_saved_register_used): Update call accordingly.
15498 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15499 instead of a mode, tree and named flag.
15500 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15501 (cris_function_arg_1): Likewise.
15502 * config/csky/csky.c (csky_function_arg): Likewise.
15503 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15504 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15505 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15506 (frv_function_arg_1): Likewise.
15507 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15508 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15509 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15510 * config/i386/i386.c (ix86_function_arg): Likewise.
15511 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15512 (ia64_function_arg_1): Likewise.
15513 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15514 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15516 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15517 instead of a mode, tree and named flag.
15518 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15519 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15520 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15521 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15522 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15523 (microblaze_expand_prologue): Update call accordingly.
15524 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15525 instead of a mode, tree and named flag.
15526 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15527 (mmix_function_arg_1): Likewise.
15528 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15529 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15530 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15531 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15532 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15533 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15534 (nvptx_function_incoming_arg): Likewise.
15535 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15536 * config/pa/pa.c (pa_function_arg): Likewise.
15537 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15538 * config/pru/pru.c (pru_function_arg): Likewise.
15539 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15540 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15541 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15542 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15543 (rs6000_parm_needs_stack): Update call accordingly.
15544 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15545 instead of a mode, tree and named flag.
15546 * config/s390/s390.c (s390_function_arg): Likewise.
15547 (s390_call_saved_register_used): Update call accordingly.
15548 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15549 instead of a mode, tree and named flag.
15550 (sh_output_mi_thunk): Update call accordingly.
15551 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15552 (sparc_function_incoming_arg): Take a function_arg_info instead of
15553 a mode, tree and named flag.
15554 * config/spu/spu.c (spu_function_arg): Likewise.
15555 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15556 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15557 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15558 * config/v850/v850.c (v850_function_arg): Likewise.
15559 * config/vax/vax.c (vax_function_arg): Likewise.
15560 * config/visium/visium.c (visium_function_arg): Likewise.
15561 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15562 (xtensa_function_incoming_arg): Likewise.
15564 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15566 * target.def (setup_incoming_varargs): Take a function_arg_info
15567 instead of a mode and tree.
15568 * doc/tm.texi: Regenerate.
15569 * targhooks.h (default_setup_incoming_varargs): Take a
15570 function_arg_info instead of a mode and tree.
15571 * targhooks.c (default_setup_incoming_varargs): Likewise.
15572 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15573 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15574 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15575 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15576 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15577 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15578 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15579 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15581 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15582 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15583 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15584 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15585 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15586 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15587 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15588 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15589 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15590 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15591 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15592 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15593 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15594 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15595 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15596 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15597 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15598 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15599 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15600 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15601 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15602 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15603 * function.c (assign_parms_setup_varargs): Update call to
15604 targetm.calls.setup_incoming_varargs.
15606 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15608 * target.def (pass_by_reference): Take a function_arg_info instead
15609 of a mode, type and named flag.
15610 * doc/tm.texi: Regenerate.
15611 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15613 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15614 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15615 function_arg_info instead of a mode, type and named flag.
15616 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15617 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15618 mode, type and named flag.
15619 * calls.c (pass_by_reference): Likewise.
15620 (pass_va_arg_by_reference): Update call accordingly.
15621 (initialize_argument_information): Likewise.
15622 (emit_library_call_value_1): Likewise.
15623 * function.c (assign_parm_find_data_types): Likewise.
15624 * var-tracking.c (prepare_call_arguments): Likewise.
15625 * stor-layout.c: Include calls.h.
15626 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15627 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15628 function_arg_info instead of a mode, type and named flag.
15629 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15630 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15631 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15632 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15633 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15634 (c6x_call_saved_register_used): Update call to pass_by_reference.
15635 * config/cris/cris.c (cris_pass_by_reference): Take a
15636 function_arg_info instead of a mode, type and named flag.
15637 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15638 function_arg_info instead of a mode, type and named flag.
15639 (epiphany_arg_partial_bytes): Update call accordingly.
15640 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15641 function_arg_info instead of a mode, type and named flag.
15642 (ft32_arg_partial_bytes): Update call accordingly.
15643 * config/i386/i386.c (ix86_pass_by_reference): Take a
15644 function_arg_info instead of a mode, type and named flag.
15645 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15646 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15647 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15648 (m32r_return_in_memory): Update call accordingly.
15649 * config/mips/mips.c (mips_pass_by_reference): Take a
15650 function_arg_info instead of a mode, type and named flag.
15651 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15652 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15653 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15654 (moxie_arg_partial_bytes): Update call accordingly.
15655 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15656 function_arg_info instead of a mode, type and named flag.
15657 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15658 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15659 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15660 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15661 (riscv_return_in_memory): Update call accordingly.
15662 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15663 function_arg_info instead of a mode, type and named flag.
15664 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15665 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15666 * config/s390/s390.c (s390_pass_by_reference): Take a
15667 function_arg_info instead of a mode, type and named flag.
15668 (s390_call_saved_register_used): Update call accordingly.
15669 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15670 instead of a mode, type and named flag.
15671 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15672 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15673 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15674 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15675 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15676 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15678 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15680 * target.def (arg_partial_bytes): Take a function_arg_info instead
15681 of a mode, type and named flag.
15682 * doc/tm.texi: Regenerate.
15683 * target.h (function_arg_info): Declare.
15684 * calls.h (function_arg_info): New class.
15685 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15686 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15687 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15688 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15689 * calls.c (initialize_argument_information): Update call to
15690 targetm.calls.partial_bytes.
15691 (emit_library_call_value_1): Likewise.
15692 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15693 * function.c (assign_parm_find_entry_rtl): Likewise.
15694 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15695 function_arg_info instead of a mode, type and named flag.
15696 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15697 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15698 (cmse_func_args_or_return_in_stack): Update accordingly.
15699 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15700 function_arg_info instead of a mode, type and named flag.
15701 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15702 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15703 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15704 * config/fr30/fr30.c: Include calls.h.
15705 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15706 type and named flag.
15707 * config/frv/frv.c: Include calls.h.
15708 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15709 type and named flag.
15710 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15711 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15712 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15713 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15714 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15715 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15716 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15718 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15719 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15720 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15721 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15722 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15723 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15724 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15725 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15726 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15727 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15728 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15729 (rs6000_parm_needs_stack): Update call accordingly.
15730 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15731 function_arg_info instead of a mode, type and named flag.
15732 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15733 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15735 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15737 * calls.h (must_pass_va_arg_in_stack): Declare.
15738 * calls.c (must_pass_va_arg_in_stack): New function.
15739 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15740 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15741 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15743 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15745 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15747 * calls.h (pass_va_arg_by_reference): Declare.
15748 * calls.c (pass_va_arg_by_reference): New function.
15749 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15750 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15751 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15752 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15753 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15754 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15755 (mips_gimplify_va_arg_expr): Likewise.
15756 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15757 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15758 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15759 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15760 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15761 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15762 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15763 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15764 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15765 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15766 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15768 2019-08-20 Richard Biener <rguenther@suse.de>
15771 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15772 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15773 (convert_scalars_to_vector): Add timode_p parameter and use it
15774 to guard TImode-only operation.
15775 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15776 (pass_stv::execute): Pass down timode_p.
15778 2019-08-20 Lili Cui <lili.cui@intel.com>
15780 * common/config/i386/i386-common.c
15781 (processor_names): Add tigerlake and cooperlake.
15782 (processor_alias_table): Add tigerlake and cooperlake.
15783 * config.gcc: Add -march=tigerlake and cooperlake.
15784 * config/i386/driver-i386.c
15785 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15786 Add "has_avx" to classify processor.
15787 * config/i386/i386-builtins.c (processor_model) :
15788 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15789 (arch_names_table): Add tigerlake and cooperlake.
15790 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15791 and PROCESSOR_COOPERLAKE.
15792 * config/i386/i386-c.c
15793 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15794 * config/i386/i386-options.c
15795 (m_TIGERLAKE): Define.
15796 (m_COOPERLAKE): Ditto.
15797 (m_CORE_AVX512): Ditto.
15798 (processor_cost_table): Add cascadelake.
15799 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15800 * config/i386/i386.h
15801 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15802 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15803 (PTA_MOVDIRI): Ditto.
15804 (PTA_MOVDIR64B): Ditto.
15805 (PTA_COOPERLAKE): Ditto.
15806 (PTA_TIGERLAKE): Ditto.
15807 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15808 * doc/extend.texi: Add tigerlake and cooperlake.
15809 * doc/invoke.texi: Add tigerlake and cooperlake.
15811 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15813 * doc/install.texi (Specific, alpha): Remove note to use
15814 binutils 2.11.2 or later.
15816 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15818 PR middle-end/89544
15819 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15822 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15824 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15825 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15826 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15827 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15828 * config/aarch64/constraints.md (Dt): New constraint
15829 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15831 2019-08-19 Richard Biener <rguenther@suse.de>
15833 PR tree-optimization/91403
15834 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15835 cases we can handle with tail-recursion...
15836 (follow_ssa_edge_expr): ... here. Do so.
15838 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15841 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15842 implemented for -fsanitize=kernel-address, and merge check logic
15843 with -fsanitize=address.
15845 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15847 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15848 for cpu and machine. Factor 64/32b builtins.
15850 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15852 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15853 gone, point to sourceforge.net.
15855 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15857 * doc/ux.texi (User Experience Guidelines): Update reference.
15859 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15861 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15864 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15866 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15867 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15869 2019-08-16 Martin Sebor <msebor@redhat.com>
15871 * tree.def (TYPE_SIZE): Clarify.
15872 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15874 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15876 PR tree-optimization/91109
15877 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15878 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15879 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15881 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15883 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15884 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15885 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15886 (uavg<mode>3_ceil): New expander.
15887 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15888 mode iterator when creating CONST1_RTX.
15889 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15890 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15891 mode iterator for const1_operand predicate.
15893 2019-08-16 Richard Biener <rguenther@suse.de>
15895 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15896 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15898 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15899 (analyze_evolution_in_loop): Likewise.
15900 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15901 (follow_ssa_edge_expr): ... here. Refactor code.
15903 2019-08-16 Richard Biener <rguenther@suse.de>
15906 * config/i386/i386-features.c
15907 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15909 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15912 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15913 only if subst_name matches curr_attr string.
15915 2019-08-16 Richard Biener <rguenther@suse.de>
15917 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15918 stmt at gsi_p, instead replace it with a NOP removed later.
15919 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15920 that became dead because of that.
15922 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15924 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15925 for which we can't represent a range.
15926 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15928 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15929 Set VR_UNDEFINED if type is not supported.
15930 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15931 * tree-vrp.c (value_range_base::check): Assert that a varying has
15933 (value_range_base::equal_p): Early bail for undefines.
15934 (value_range_base::set_varying): Accept a type.
15935 (value_range::set_varying): Same.
15936 (value_range_base::type): VARYING can have a type, while UNDEFINE
15938 (value_range_base::dump): Print type for VARYING nodes.
15939 (value_range_base::set): Add type to VARYING.
15940 (extract_range_from_multiplicative_op): Pass type to set_varying.
15941 (extract_range_from_binary_expr): Same.
15942 (value_range_base::intersect_helper): Same.
15943 (value_range_base::union_helper): Same.
15944 (value_range_base::normalize_symbolics): Same.
15945 (determine_value_range_1): Same.
15946 * tree-vrp.h (class value_range_base): Add type to set_varying.
15947 Add prototype for dump(void).
15948 Add prototype for supports_type_p.
15949 (class value_range): Add type to set_varying.
15950 Add prototype for dump(void).
15951 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15953 (vr_values::get_lattice_entry): Set varying even if propagation
15955 Pass type to set_varying.
15956 (vr_values::get_value_range): Remove vr_const_varying.
15957 Reallocate the lattice if needed.
15958 (vr_values::update_value_range): Pass type to set_varying.
15959 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15960 (vr_values::extract_range_from_binary_expr): Same.
15961 (vr_values::extract_range_from_unary_expr): Same.
15962 (vr_values::extract_range_from_cond_expr): Same.
15963 (vr_values::check_for_binary_op_overflow): Same.
15964 (vr_values::extract_range_basic): Same.
15965 (vr_values::extract_range_from_assignment): Same.
15966 (vr_values::vr_values): Increase size of num_vr_values.
15967 (vr_values::extract_range_from_phi_node): Pass type to
15970 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15973 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15974 for costs of hard register moves.
15975 (ix86_register_move_cost): Likewise.
15976 * config/i386/i386.h (processor_costs): Move costs of hard
15977 register moves to hard_register. Add int_load, int_store,
15978 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15979 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15980 for costs of RTL expressions.
15981 * config/i386/x86-tune-costs.h: Move costs of hard register
15982 moves to hard_register. Duplicate int_load, int_store,
15983 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15984 sse_load, sse_store for costs of RTL expressions.
15986 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15988 * target.def (setup_incoming_vararg_bounds): Remove.
15989 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15990 * doc/tm.texi: Regenerate.
15991 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15992 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15993 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15994 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15996 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15998 MSP430: Fix lines over 80 characters long in
15999 config/msp430/*.{c,h} files
16001 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
16002 specifier in string.
16003 (msp430_select_hwmult_lib): Split line more than 80 characters long.
16004 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
16005 redundant old comment.
16006 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
16007 Split line more than 80 characters long.
16008 * config/msp430/msp430.c (msp430_option_override): Likewise.
16009 (msp430_return_in_memory): Likewise.
16010 (msp430_gimplify_va_arg_expr): Likewise.
16011 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
16012 (msp430_legitimate_constant): Likewise.
16013 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
16014 (msp430_attr): Likewise.
16015 (msp430_data_attr): Likewise.
16016 (msp430_start_function): Likewise.
16017 (gen_prefix): Likewise.
16018 (msp430_init_sections): Likewise.
16019 (msp430_select_section): Likewise.
16020 (msp430_function_section): Likewise.
16021 (msp430_unique_section): Likewise.
16022 (msp430_output_aligned_decl_common): Likewise.
16023 (msp430_do_not_relax_short_jumps): Likewise.
16024 (msp430_init_builtins): Likewise.
16025 (msp430_expand_delay_cycles): Likewise.
16026 (msp430_expand_prologue): Likewise.
16027 (msp430_expand_epilogue): Likewise.
16028 (msp430_expand_helper): Likewise.
16029 (msp430_split_movsi): Likewise.
16030 (msp430_print_operand): Likewise.
16031 (msp430_return_addr_rtx): Likewise.
16032 (msp430x_extendhisi): Likewise.
16033 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
16034 (ASM_SPEC): Likewise.
16035 Remove very obvious comments.
16036 (LIB_SPEC): Split line more than 80 characters long.
16037 (EH_RETURN_HANDLER_RTX): Likewise.
16038 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16040 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16042 MSP430: Fix whitespace errors and incorrect indentation in
16043 config/msp430/*.{c,h} files
16045 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
16046 (msp430_select_hwmult_lib): Likewise.
16047 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
16048 (msp430_extract_mcu_data): Likewise.
16049 (struct t_msp430_mcu_data): Likewise.
16050 * config/msp430/msp430.c (struct machine_function): Remove whitespace
16051 before left square bracket.
16052 (msp430_option_override): Fix indentation.
16053 (msp430_hard_regno_nregs_with_padding): Likewise.
16054 (msp430_initial_elimination_offset): Likewise.
16055 (msp430_special_register_convention_p): Remove whitespace before left
16056 square bracket and after exclamation mark.
16057 (msp430_evaluate_arg): Likewise.
16058 (msp430_callee_copies): Fix indentation.
16059 (msp430_gimplify_va_arg_expr): Likewise.
16060 (msp430_function_arg_advance): Remove whitespace before left square
16062 (reg_ok_for_addr): Likewise.
16063 (msp430_preserve_reg_p): Likewise.
16064 (msp430_compute_frame_info): Likewise.
16065 (msp430_asm_output_addr_const_extra): Add space between function name
16066 and open parenthesis.
16067 (has_section_name): Fix indentation.
16068 (msp430_attr): Remove trailing whitespace.
16069 (msp430_section_attr): Likewise.
16070 (msp430_data_attr): Likewise.
16071 (struct msp430_attribute_table): Fix comment and whitespace.
16072 (msp430_start_function): Remove whitespace before left square bracket.
16073 Add space between function name and open parenthesis.
16074 (msp430_select_section): Remove trailing whitespace.
16075 (msp430_section_type_flags): Remove trailing whitespace.
16076 (msp430_unique_section): Remove space before closing parenthesis.
16077 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
16078 (msp430_builtins): Remove whitespace before left square bracket.
16079 (msp430_init_builtins): Fix indentation.
16080 (msp430_expand_prologue): Remove whitespace before left square bracket.
16081 Remove space before closing parenthesis.
16082 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16083 (msp430_split_movsi): Remove space before closing parenthesis.
16084 (helper_function_name_mappings): Fix indentation.
16085 (msp430_use_f5_series_hwmult): Fix whitespace.
16086 (use_32bit_hwmult): Likewise.
16087 (msp430_no_hwmult): Likewise.
16088 (msp430_output_labelref): Remove whitespace before left square bracket.
16089 (msp430_print_operand_raw): Likewise.
16090 (msp430_print_operand_addr): Likewise.
16091 (msp430_print_operand): Add two spaces after '.' in comment.
16092 Fix trailing whitespace.
16093 (msp430x_extendhisi): Fix indentation.
16094 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16096 (PC_REGNUM): Likewise.
16097 (STACK_POINTER_REGNUM): Likewise.
16098 (CC_REGNUM): Likewise.
16100 2019-08-15 Richard Biener <rguenther@suse.de>
16103 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16105 (general_scalar_chain::make_vector_copies): Use it.
16107 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16109 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16111 2019-08-15 Martin Liska <mliska@suse.cz>
16113 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16114 operators with no arguments.
16115 (eliminate_unnecessary_stmts): Likewise here.
16117 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16119 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16120 <case COMPARE>: Revert 2019-08-14 change.
16121 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16122 for (TARGET_64BIT || mode != DImode).
16124 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16126 * tree-vrp.c (value_range_base::set): Merge in code from
16127 value_range_base::set_and_canonicalize.
16128 Enforce canonicalization at set time.
16129 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16130 (value_range_base::set_undefined): Inline call to set().
16131 (value_range_base::set_varying): Same.
16132 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16133 (vrp_val_max): New argument handle_pointers.
16134 (vrp_val_min): Same.
16135 (ranges_from_anti_range): Same.
16136 (extract_range_into_wide_ints): Use tree argument instead of sign
16138 (extract_range_from_multiplicative_op): Take in tree type instead
16139 of precision and sign. Adapt function for canonicalized ranges.
16140 (extract_range_from_binary_expr): Pass type to
16141 extract_range_from_multiplicative_op.
16142 Adapt for canonicalized ranges.
16143 (extract_range_from_unary_expr): Same.
16144 (value_range_base::intersect_helper): Adjust for canonicalized
16146 (value_range_base::union_helper): Same.
16147 (value_range_base::normalize_symbolics): New.
16148 * tree-vrp.h (class value_range_base): Remove
16149 set_and_canonicalize.
16150 New prototype for normalize_symbolics.
16151 (class value_range): Remove set_and_canonicalize.
16152 (vrp_val_min): Adjust prototype.
16153 (vrp_val_max): Same.
16155 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16156 instead of set_and_canonicalize.
16158 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16160 PR middle-end/91444
16161 * tree-vect-stmts.c (vectorizable_call): Check that the function
16162 is a BUILT_IN_MD function before passing it to
16163 targetm.vectorize.builtin_md_vectorized_function.
16165 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16167 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16168 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16169 (aarch64_select_early_remat_modes): Use it.
16171 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16173 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16174 16 for SVE predicates even if they are fixed-length.
16176 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16178 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16179 operand order match the MOV /Z alias.
16181 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16183 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16184 the vector pattern as an aarch64_svpattern argument. Update the
16185 overloaded caller accordingly.
16186 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16187 (aarch64_output_sve_vector_inc_dec): Likewise.
16189 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16191 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16192 multiplication case, try to compute VG * (lowest set bit) directly
16193 rather than always basing the multiplication on VG. Use
16194 expand_mult for the multiplication if we can.
16196 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16198 * config/aarch64/aarch64-protos.h
16199 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16200 (aarch64_sve_inc_dec_immediate_p): Rename to...
16201 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16202 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16203 (aarch64_output_sve_scalar_inc_dec): Declare.
16204 (aarch64_output_sve_inc_dec_immediate): Rename to...
16205 (aarch64_output_sve_vector_inc_dec): ...this.
16206 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16207 (aarch64_output_sve_scalar_inc_dec): New functions.
16208 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16209 arguments. Only handle true ADDVL and ADDPL instructions;
16210 don't emit an INC or DEC.
16211 (aarch64_sve_inc_dec_immediate_p): Rename to...
16212 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16213 (aarch64_output_sve_inc_dec_immediate): Rename to...
16214 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16215 aarch64_sve_vector_inc_dec_immediate_p.
16216 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16217 (aarch64_sve_plus_immediate): New predicates.
16218 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16219 rather than aarch64_sve_addvl_addpl_immediate.
16220 (aarch64_sve_inc_dec_immediate): Rename to...
16221 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16222 aarch64_sve_vector_inc_dec_immediate_p.
16223 (aarch64_sve_add_operand): Update accordingly.
16224 * config/aarch64/constraints.md (Uai): New constraint.
16225 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16226 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16227 operand into a register if it satisfies aarch64_sve_plus_immediate.
16228 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16229 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16230 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16231 aarch64_output_sve_vector_inc_dec instead of
16232 aarch64_output_sve_inc_dec_immediate.
16234 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16236 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16237 (UNSPEC_REVW): New constants.
16238 (elem_bits): New mode attribute.
16239 (SVE_INT_UNARY): New int iterator.
16240 (optab): Handle UNSPEC_REV[BHW].
16241 (sve_int_op): New int attribute.
16242 (min_elem_bits): Handle VNx16QI and the predicate modes.
16243 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16244 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16245 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16246 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16247 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16248 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16249 unspecs based on the total width of the reversed data.
16250 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16251 reinterpret followed by a subreg on big-endian targets.
16253 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16254 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16256 * config/aarch64/aarch64-sve.md
16257 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16258 alternatives in which one of the inputs is in the same register
16261 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16263 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16264 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16266 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16268 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16269 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16271 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16272 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16274 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16275 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16276 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16278 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16279 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16281 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16282 Add an alternative that uses reversed shifts.
16284 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16286 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16289 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16291 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16292 a commutativity marker.
16294 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16295 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16297 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16298 (aarch64_prepare_sve_cond_int_fma): Declare.
16299 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16300 (aarch64_prepare_sve_int_fma): New functions.
16301 (aarch64_prepare_sve_cond_int_fma): Likewise.
16302 * config/aarch64/aarch64-sve.md
16303 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16304 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16305 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16306 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16307 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16308 (*madd<mode>): Rename to...
16309 (*fma<mode>4): ...this.
16310 (*msub<mode>): Rename to...
16311 (*fnma<mode>4): ...this.
16313 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16314 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16316 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16317 Print 2.0 naturally.
16318 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16319 * config/aarch64/predicates.md
16320 (aarch64_sve_float_negated_arith_immediate): New predicate,
16321 renamed from aarch64_sve_float_arith_with_sub_immediate.
16322 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16323 positive and negative constants.
16324 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16325 or an aarch64_sve_float_arith_with_sub_immediate.
16326 * config/aarch64/constraints.md (vsN): Use
16327 aarch64_sve_float_negated_arith_immediate.
16328 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16330 (sve_pred_fp_rhs2_immediate): New int attribute.
16331 * config/aarch64/aarch64-sve.md
16332 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16333 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16334 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16335 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16336 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16337 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16339 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16340 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16342 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16343 (*aarch64_cond_abd<SVE_F:mode>_3)
16344 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16346 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16347 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16349 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16350 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16352 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16353 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16355 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16356 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16357 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16358 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16360 * optabs.h (create_convert_operand_from): Expand comment.
16361 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16362 when mapping scalar rtxes to vector operands.
16363 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16364 ashiftrt and lshiftrt.
16365 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16366 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16367 (*cond_<optab><mode>_any_const): New patterns.
16369 2019-08-15 Martin Liska <mliska@suse.cz>
16372 * cgraph.c (cgraph_node::remove): When setting
16373 n->origin = NULL for all nested functions, reset
16376 2019-08-15 Martin Liska <mliska@suse.cz>
16378 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16381 2019-08-15 Martin Liska <mliska@suse.cz>
16384 * passes.c (order): Remove.
16385 (uid_hash_t): Likewise).
16386 (remove_cgraph_node_from_order): Remove from set
16387 of pointers (cgraph_node *).
16388 (insert_cgraph_node_to_order): New.
16389 (duplicate_cgraph_node_to_order): New.
16390 (do_per_function_toporder): Register all 3 cgraph hooks.
16391 Skip removed_nodes now as we know about all of them.
16393 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16395 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16396 <case E_V8QImode>: Use vector_set path for
16397 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16398 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16399 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16401 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16403 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16405 2019-08-14 Martin Sebor <msebor@redhat.com>
16407 PR tree-optimization/91294
16408 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16409 source length as exact.
16411 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16413 * doc/extend.texi: Add "noinit" attribute documentation.
16414 * doc/sourcebuild.texi: Add noinit effective target documentation.
16415 * varasm.c (default_section_type_flags): Add support for "noinit"
16417 (default_elf_select_section): Add support for "noinit" attribute.
16418 * config/msp430/msp430.c (msp430_attribute_table): Remove
16421 2019-08-14 Richard Biener <rguenther@suse.de>
16422 Uroš Bizjak <ubizjak@gmail.com>
16425 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16427 (scalar_chain::smode): New member.
16428 (scalar_chain::vmode): Likewise.
16429 (dimode_scalar_chain): Rename to...
16430 (general_scalar_chain): ... this.
16431 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16432 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16433 base with TImode and V1TImode.
16434 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16435 (general_scalar_chain::vector_const_cost): Adjust for SImode
16437 (general_scalar_chain::compute_convert_gain): Likewise. Add
16438 {S,U}{MIN,MAX} support.
16439 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16440 (general_scalar_chain::make_vector_copies): Likewise. Handle
16441 non-DImode chains appropriately.
16442 (general_scalar_chain::convert_reg): Likewise.
16443 (general_scalar_chain::convert_op): Likewise.
16444 (general_scalar_chain::convert_insn): Likewise. Add
16445 fatal_insn_not_found if the result is not recognized.
16446 (convertible_comparison_p): Pass in the scalar mode and use that.
16447 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16448 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16449 (scalar_to_vector_candidate_p): Remove by inlining into single
16451 (general_remove_non_convertible_regs): Rename from
16452 dimode_remove_non_convertible_regs.
16453 (remove_non_convertible_regs): Remove by inlining into single caller.
16454 (convert_scalars_to_vector): Handle SImode and DImode chains
16455 in addition to TImode chains.
16456 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16457 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16458 (*<maxmin>di3_doubleword): Likewise.
16460 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16461 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16463 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16464 (*cond_bic<mode>_any): New patterns.
16466 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16468 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16469 take the equivalent mask, as well as a bit count.
16470 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16471 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16472 (aarch64_sve_pred_and_operand): New predicates.
16473 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16475 * config/aarch64/aarch64-sve.md
16476 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16477 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16479 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16481 * config/aarch64/aarch64-sve.md
16482 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16483 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16486 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16487 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16489 * config/aarch64/aarch64-sve.md
16490 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16491 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16493 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16494 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16496 * config/aarch64/aarch64-sve.md
16497 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16498 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16500 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16502 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16503 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16506 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16507 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16509 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16511 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16512 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16514 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16515 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16516 (aarch64_print_operand): Add support for %I.
16517 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16518 Bitcast floating-point constants to the corresponding integer constant.
16519 (aarch64_float_const_representable_p): Handle vectors as well
16521 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16522 for the new vcond_mask_<mode><vpred> expander.
16523 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16524 test aarch64_float_const_representable_p.
16525 (aarch64_sve_reg_or_dup_imm): New predicate.
16526 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16527 gen_vcond_mask_<mode><vpred> instead of
16528 gen_aarch64_sve_dup<mode>_const.
16529 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16530 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16531 for operands 1 and 2 respectively. Force operand 2 into a
16532 register if operand 1 is a register. Fold old define_insn...
16533 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16534 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16535 floating-point constants that can be moved as integers. Add
16536 alternatives for MOV /M and FMOV /M.
16537 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16538 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16539 1 and 2 respectively.
16540 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16542 (vss): New constraint.
16544 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16546 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16547 (aarch64_sve_float_maxmin_operand): New predicates.
16548 * config/aarch64/constraints.md (vsB): New constraint.
16550 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16551 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16552 UNSPEC_COND_FMINNM.
16553 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16554 Use aarch64_sve_float_maxmin_operand for operand 2.
16555 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16556 Add alternatives for the constant forms.
16558 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16560 * config/aarch64/constraints.md (vsb): New constraint.
16561 (vsm): Generalize description.
16562 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16564 (sve_imm_con): Handle smax, smin, umax and umin.
16565 (sve_imm_prefix): New code attribute.
16566 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16567 (aarch64_sve_vsb_operand): New predicates.
16568 (aarch64_sve_mul_immediate): Rename to...
16569 (aarch64_sve_vsm_immediate): ...this.
16570 (aarch64_sve_mul_operand): Rename to...
16571 (aarch64_sve_vsm_operand): ...this.
16572 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16573 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16574 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16575 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16576 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16577 add movprfx support for the immediate alternatives.
16578 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16580 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16583 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16585 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16586 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16587 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16589 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16591 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16592 (optab, sve_int_op): Handle them.
16593 * config/aarch64/aarch64-sve.md: Expand comment.
16595 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16597 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16598 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16599 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16601 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16603 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16604 (aarch64_expand_sve_const_pred_trn): New functions.
16605 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16606 use the above functions when the parameter is true.
16607 (aarch64_expand_sve_const_pred): Update call accordingly.
16608 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16610 (@aarch64_sve_<perm_insn><mode>): ...this.
16612 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16614 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16616 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16617 (aarch64_sve_emit_int_cmp): New functions.
16618 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16619 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16620 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16621 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16622 (UNSPEC_PRED_Z): New unspec.
16623 (set_clobber_cc_nzc): Delete.
16624 * config/aarch64/aarch64-sve.md: Add a block comment about
16626 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16627 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16628 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16629 UNSPEC_MERGE_PTRUE.
16630 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16631 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16632 check for compatible predicates.
16633 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16634 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16635 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16638 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16640 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16641 * config/aarch64/aarch64-sve.md: Add a section describing it.
16642 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16643 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16644 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16645 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16646 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16647 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16648 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16649 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16650 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16651 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16652 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16653 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16654 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16655 (aarch64_evpc_rev_local): Update accordingly.
16657 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16659 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16661 (SVE_BHSI, SVE_SDI): Tweak comment.
16662 (SVE_HSDI): Likewise. Fix definition.
16663 (SVE_SDF): New mode iterator.
16664 (elem_bits): New mode attribute.
16665 (SVE_COND_FCVT): New int iterator.
16666 * config/aarch64/aarch64-sve.md
16667 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16668 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16669 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16670 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16671 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16672 ...these new patterns.
16673 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16674 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16675 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16677 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16678 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16679 ...these new patterns.
16680 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16681 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16682 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16683 ...this new pattern.
16684 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16685 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16686 ...this new pattern.
16687 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16689 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16691 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16692 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16693 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16695 (optab, su): Handle them.
16696 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16697 * config/aarch64/aarch64-sve.md
16698 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16699 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16700 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16701 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16702 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16703 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16704 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16705 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16706 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16708 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16709 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16710 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16711 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16712 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16713 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16714 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16715 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16716 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16717 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16718 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16719 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16720 of UNSPEC_FLOAT_CONVERT.
16721 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16722 aarch64_sve_extend<mode><Vwide>2.
16724 2019-08-14 Richard Biener <rguenther@suse.de>
16727 * config/i386/i386-features.c
16728 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16729 individual instruction gain. Fix reg-reg copy GRP cost. Use
16730 ix86_cost->sse_op for vector instruction costs.
16732 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16734 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16735 (cmp_op): Handle it.
16736 (SVE_COND_FP_CMP): Rename to...
16737 (SVE_COND_FP_CMP_I0): ...this.
16738 (SVE_FP_CMP): Remove.
16739 * config/aarch64/aarch64-sve.md
16740 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16741 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16742 using unspecs to represent the comparison.
16743 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16744 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16746 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16747 (aarch64_unspec_cond_code): Move after integer code. Handle
16749 (aarch64_emit_sve_predicated_cond): Replace with...
16750 (aarch64_emit_sve_fp_cond): ...this new function.
16751 (aarch64_emit_sve_or_conds): Replace with...
16752 (aarch64_emit_sve_or_fp_conds): ...this new function.
16753 (aarch64_emit_sve_inverted_cond): Replace with...
16754 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16755 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16757 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16759 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16760 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16761 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16762 SVE_HSD instead of SVE_SD.
16764 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16765 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16767 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16769 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16771 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16772 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16773 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16774 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16775 (*div<SVE_F:mode>3): Generalize to...
16776 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16778 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16779 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16781 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16783 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16785 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16787 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16789 * config/aarch64/aarch64-sve.md: Add a block comment about the
16790 handling of predicated FP operations.
16791 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16792 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16793 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16794 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16795 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16797 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16798 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16800 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16801 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16802 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16803 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16804 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16805 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16806 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16807 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16808 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16809 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16810 strictness operands. Use aarch64_sve_pred_dominates_p to check
16811 whether the predicate on the conditional operation is suitable
16812 for merging. Split patterns into the canonical equal-predicate form.
16813 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16814 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16816 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16817 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16819 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16820 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16821 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16823 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16824 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16827 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16828 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16830 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16831 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16832 actually has, rather than relying on REG_EQUAL notes.
16833 Make the insn operand order match the SVE operand order.
16834 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16835 the SVE operand order.
16837 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16839 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16840 (aarch64_emit_set_immediate): Likewise.
16841 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16842 (aarch64_pfalse_reg): Likewise.
16843 (aarch64_convert_sve_data_to_pred): New function.
16844 (aarch64_sve_move_pred_via_while): Take an optional target register
16845 and the required register mode.
16846 (aarch64_expand_sve_const_pred_1): New function.
16847 (aarch64_expand_sve_const_pred): Likewise.
16848 (aarch64_expand_mov_immediate): Build an all-true predicate
16849 if the significant bits of the immediate are all true. Use
16850 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16851 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16852 before register allocation.
16853 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16854 a VNx16BI PTRUE when splitting the memory alternative.
16855 (vec_duplicate<mode>): Update accordingly.
16856 (*pred_cmp<cmp_op><mode>): Rename to...
16857 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16859 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16861 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16862 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16863 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16864 (UNSPEC_PTEST): New unspec.
16865 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16866 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16867 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16868 * config/aarch64/aarch64-sve.md: Add a new section describing the
16869 handling of UNSPEC_PTEST.
16870 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16871 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16872 (ptest_ptrue<mode>): Replace with...
16873 (aarch64_ptest<mode>): ...this new pattern.
16874 (cbranch<mode>4): Update after above changes.
16875 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16876 UNSPEC_PTEST_PTRUE.
16877 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16878 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16879 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16881 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16884 * builtins.c (builtin_with_linkage_p): New function.
16885 * builtins.h (builtin_with_linkage_p): New function.
16886 * symtab.c (write_symbol): Remove redundant assert.
16887 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16888 Remove FIXME and use builtin_with_linkage_p.
16890 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16892 PR middle-end/91421
16893 * tree-core.h (function_decl::function_code): Change type to
16895 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16896 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16897 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16898 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16899 is BUILT_IN_NORMAL.
16900 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16901 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16902 (fndecl_built_in_p): Change the type of the "name" argument to
16904 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16905 after check for DECL_BUILT_IN_CLASS.
16906 * cgraphclones.c (build_function_decl_skip_args): Use
16907 set_decl_built_in_function.
16908 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16909 * ipa-split.c (split_function): Likewise.
16910 * langhooks.c (add_builtin_function_common): Likewise.
16911 * omp-simd-clone.c (simd_clone_create): Likewise.
16912 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16913 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16914 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16915 DECL_FUNCTION_CODE.
16916 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16917 instead of DECL_FUNCTION_CODE.
16918 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16919 instead of DECL_FUNCTION_CODE.
16920 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16921 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16922 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16923 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16924 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16925 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16926 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16927 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16928 (alpha_gimple_fold_builtin): Likewise.
16929 * config/arc/arc.c (arc_expand_builtin): Likewise.
16930 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16931 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16932 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16933 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16934 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16935 * config/frv/frv.c (frv_expand_builtin): Likewise.
16936 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16937 (gcn_expand_builtin): Likewise.
16938 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16939 (fold_builtin_cpu): Likewise.
16940 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16941 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16942 (ix86_gimple_fold_builtin): Likewise.
16943 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16944 (ia64_expand_builtin): Likewise.
16945 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16946 * config/mips/mips.c (mips_expand_builtin): Likewise.
16947 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16948 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16949 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16950 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16951 * config/pa/pa.c (pa_expand_builtin): Likewise.
16952 * config/pru/pru.c (pru_expand_builtin): Likewise.
16953 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16954 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16956 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16957 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16958 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16959 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16960 (rs6000_builtin_reciprocal): Likewise.
16961 * config/rx/rx.c (rx_expand_builtin): Likewise.
16962 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16963 * config/s390/s390.c (s390_expand_builtin): Likewise.
16964 * config/sh/sh.c (sh_expand_builtin): Likewise.
16965 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16966 (sparc_fold_builtin): Likewise.
16967 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16968 * config/spu/spu.c (spu_expand_builtin): Likewise.
16969 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16970 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16971 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16972 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16973 (xtensa_expand_builtin): Likewise.
16975 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16977 PR middle-end/91421
16978 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16979 before the DECL_FUNCTION_CODE.
16980 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16981 to check for a BUILT_IN_ALLOCA call.
16982 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16983 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16984 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16985 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16986 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16987 for BUILT_IN_NORMAL functions.
16988 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16989 test for BUILT_IN_TM_ABORT.
16990 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16991 to check for a BUILT_IN_STACK_RESTORE call.
16992 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16993 * tree-ssa-threadedge.c
16994 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16995 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16996 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16997 test for a BUILT_IN_NORMAL call instead of a negative test for
16998 an internal function call.
17000 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17002 * tree.h (build_vector_a_then_b): Declare.
17003 * tree.c (build_vector_a_then_b): New function.
17004 * fold-const-call.c (fold_while_ult): Likewise.
17005 (fold_const_call): Use it to handle IFN_WHILE_ULT.
17006 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
17007 (aarch64_svpattern): New enum.
17008 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
17009 constants through aarch64_expand_mov_immediate.
17010 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
17011 than general_operand as the predicate for operand 1.
17012 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
17013 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
17015 (simd_immediate_info::simd_immediate_info): New overload that
17016 takes a scalar_int_mode and an svpattern.
17017 (simd_immediate_info::u): Add a "pattern" field.
17018 (svpattern_token): New function.
17019 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
17020 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
17021 (aarch64_sve_move_pred_via_while): New functions.
17022 (aarch64_expand_mov_immediate): Try using
17023 aarch64_sve_move_pred_via_while for predicates that contain N ones
17024 followed by M zeros but that do not correspond to a VLnnn pattern.
17025 (aarch64_sve_pred_valid_immediate): New function.
17026 (aarch64_simd_valid_immediate): Use it instead of dealing directly
17027 with PTRUE and PFALSE.
17028 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
17031 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
17033 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
17035 (darwin_override_options): Likewise.
17036 * config/darwin.h: Likewise.
17037 * config/darwin.opt: Likewise.
17038 * config/i386/i386.c (output_pic_addr_const): Likewise.
17039 * config/rs6000/darwin.h: Likewise.
17040 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
17041 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
17042 ... this TARGET_MACHO_SYMBOL_STUBS.
17043 (FUNCTION_PROFILER):Likewise.
17044 * config/i386/i386.h: Likewise.
17046 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17048 * config/i386/i386-expand.c (ix86_expand_vector_extract)
17049 <case E_V2SImode>: Use vec_extr path for
17050 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17051 <case E_V8QImode>: Ditto.
17052 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
17053 Use SWI48 mode iterator. Use %k to output operand 0.
17054 (*mmx_pextrw): New insn pattern.
17055 (*mmx_pextrb): Ditto.
17056 (*mmx_pextrb_zext): Ditto.
17058 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
17060 * target.def (libc_has_function, libc_has_fast_function): Improve
17061 documentation strings.
17062 * doc/tm.texi: Regenerate.
17064 2019-08-13 Caroline Tice <cmtice@google.com>
17067 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
17068 vtv_end.o or vtv_end_preinit.o files if !static.
17070 2019-08-13 Olivier Hainque <hainque@adacore.com>
17072 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
17074 2019-08-13 Olivier Hainque <hainque@adacore.com>
17076 * rtlanal.c (tablejump_casesi_pattern): New function, to
17077 determine if a tablejump insn is a casesi dispatcher. Extracted
17078 from patch_jump_insn.
17079 * rtl.h (tablejump_casesi_pattern): Declare.
17080 * cfgrtl.c (patch_jump_insn): Use it.
17081 * dwarf2cfi.c (create_trace_edges): Use it.
17083 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17086 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17087 operand is larger than a long int.
17089 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17091 * machmode.h (opt_mode::else_mode): New function.
17092 (opt_mode::else_blk): Use it.
17093 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17094 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17095 (aarch64_gen_stepped_int_parallel): Likewise.
17096 (aarch64_stepped_int_parallel_p): Likewise.
17097 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17099 * config/aarch64/aarch64.c
17100 (aarch64_expand_sve_widened_duplicate): Delete.
17101 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17102 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17103 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17104 argument. Use early returns in the !CONST_INT_P handling.
17105 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17106 than handling some inline.
17107 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17109 (aarch64_simd_container_mode): ...here.
17110 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17111 (aarch64_sve_ld1rq_operand_p): New functions.
17112 * config/aarch64/predicates.md (descending_int_parallel)
17113 (aarch64_sve_ld1rq_operand): New predicates.
17114 * config/aarch64/constraints.md (UtQ): New constraint.
17115 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17116 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17117 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17118 (@aarch64_sve_reinterpret<mode>): New expander.
17119 (*aarch64_sve_reinterpret<mode>): New pattern.
17120 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17121 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17122 (*sve_ld1rq<Vesize>): Replace with...
17123 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17125 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17127 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17130 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17132 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17133 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17134 (msp430_check_path_for_devices): New.
17135 (parse_devices_csv_1): New.
17136 (parse_devices_csv): New.
17137 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17138 MCU data in devices.csv before using the hard-coded data.
17139 Warn if devices.csv isn't found and the MCU wasn't found in the
17140 hard-coded data either.
17141 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17142 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17143 Search for devices.csv on -I and -L paths.
17144 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17145 msp430_set_driver_var.
17146 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17147 -mdevices-csv-loc=.
17148 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17149 searched for devices.csv.
17150 (mwarn-devices-csv): Document option.
17152 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17154 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17155 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17156 Use a single Dn alternative instead of separate Dz and Dm
17157 alternatives. Use aarch64_output_sve_move_immediate.
17158 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17160 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17161 for predicates too.
17162 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17163 (aarch64_output_ptrue): Delete.
17165 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17167 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17169 (simd_immediate_info::value, simd_immediate_info::step)
17170 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17172 (simd_immediate_info::u): ...this new union.
17173 (simd_immediate_info::simd_immediate_info): Update accordingly.
17174 (aarch64_output_simd_mov_immediate): Likewise.
17175 (aarch64_output_sve_mov_immediate): Likewise.
17177 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17179 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17181 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17182 (msp430_select_cpu): New spec function.
17183 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17185 * config/msp430/msp430-devices.c: New file.
17186 * config/msp430/msp430-devices.h: New file.
17187 * config/msp430/msp430.c: Remove msp430_mcu_data.
17188 (msp430_option_override): Use msp430_extract_mcu_data to extract
17190 (msp430_use_f5_series_hwmult): Likewise.
17191 (use_32bit_hwmult): Likewise.
17192 (msp430_no_hwmult): Likewise.
17193 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17195 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17197 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17198 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17199 Remove hard-coded MCU multilib data.
17201 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17203 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17204 based on the mode instead of testing properties of it.
17206 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17208 * doc/md.texi: Document the x and y constraints for AArch64.
17209 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17210 (FP_LO8_REGS): New reg_class.
17211 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17212 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17213 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17214 * config/aarch64/predicates.md (aarch64_simd_register): Use
17215 FP_REGNUM_P instead of checking the classes manually.
17216 * config/aarch64/constraints.md (y): New constraint.
17218 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17220 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17221 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17222 * config/aarch64/aarch64-simd.md
17223 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17224 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17225 from the asm template.
17226 * config/aarch64/aarch64-sve.md
17227 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17228 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17229 from the asm template.
17230 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17231 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17232 from the asm template.
17233 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17235 2019-08-13 Martin Liska <mliska@suse.cz>
17237 * value-prof.c (gimple_ic_transform): Add new line.
17238 Print details with MSG_NOTE.
17240 2019-08-13 Martin Liska <mliska@suse.cz>
17242 * doc/invoke.texi: Document automatic detection of jobserver.
17243 * lto-wrapper.c (run_gcc): Detect jobserver always.
17245 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17247 * config/i386/i386-expand.c (ix86_expand_vector_set)
17248 <case E_V2SImode>: Use vec_merge path for
17249 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17250 <case E_V8QImode>: Ditto.
17251 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17252 (*mmx_pinsrb): Ditto.
17254 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17258 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17259 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17260 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17261 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17262 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17264 2019-08-12 Richard Biener <rguenther@suse.de>
17267 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17270 2019-08-12 Richard Biener <rguenther@suse.de>
17273 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17274 lang_mask option, always use CL_DRIVER.
17275 (get_options_from_collect_gcc_options): Adjust.
17276 (find_and_merge_options): Likewise.
17277 (run_gcc): Likewise.
17279 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17281 * ipa-predicate.c (add_condition): Restore inverted test.
17283 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17285 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17286 (enum omp_clause_device_type_kind): New enum.
17287 (struct tree_omp_clause): Add subcode.device_type_kind.
17288 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17289 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17290 for device_type clause.
17291 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17292 * tree-pretty-print.c (dump_omp_clause): Likewise.
17295 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17298 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17300 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17301 handling spilled pseudos.
17303 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17306 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17307 to preserve the contents of the original insns.
17309 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17311 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17312 (addsi3_compare_op2): Likewise.
17314 2019-08-09 Martin Liska <mliska@suse.cz>
17316 * alias.c (alias_ptr_types_compatible_p): Strengten
17317 type comparison in LTO mode.
17319 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17321 PR middle-end/90313
17322 * tree-tailcall.c (find_tail_calls): Reject calls that might
17323 read from an escaped RESULT_DECL.
17325 2019-08-09 Martin Liska <mliska@suse.cz>
17327 * doc/invoke.texi: Document the option value.
17328 * lto-wrapper.c (run_gcc): Set auto_parallel
17329 only with -flto=auto.
17331 2019-08-09 Martin Liska <mliska@suse.cz>
17333 * opts.c (common_handle_option): Error for an invalid argument
17336 2019-08-09 Martin Liska <mliska@suse.cz>
17338 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17339 use dump_printf to report optimization.
17340 (sem_variable::merge): Likwise.
17341 (sem_item_optimizer::merge_classes): Use dump_printf to report
17344 2019-08-09 Martin Liska <mliska@suse.cz>
17346 * value-prof.c (gimple_divmod_fixed_value_transform):
17347 Use dump_printf_loc.
17348 (gimple_mod_pow2_value_transform): Likewise.
17349 (gimple_mod_subtract_transform): Likewise.
17350 (init_node_map): Likewise.
17351 (gimple_ic_transform): Likewise.
17352 (gimple_stringops_transform): Likewise.
17354 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17356 * doc/extend.texi: Add const qualifier to ld intrinsics.
17358 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17360 * config/rs6000/dfp.md (D64_D128): Rename to ...
17361 (DDTD): ... this, throughout.
17362 (dfp_suffix): Rename to ...
17363 (q): ... this, throughout.
17365 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17367 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17368 (dfp_suffix): Ditto.
17369 (adddd3, addtd3): Merge to ...
17370 (add<mode>3 for D64_D128): ... this.
17371 (subdd3, subtd3): Merge to ...
17372 (sub<mode>3 for D64_D128): ... this.
17373 (muldd3, multd3): Merge to ...
17374 (mul<mode>3 for D64_D128): ... this.
17375 (divdd3, divtd3): Merge to ...
17376 (div<mode>3 for D64_D128): ... this.
17377 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17378 (*cmp<mode>_internal1 for D64_D128): ... this.
17379 (ftruncdd2, ftrunctd2): Merge to ...
17380 (ftrunc<mode>2 for D64_D128): ... this.
17381 (fixdddi2, fixtddi2): Merge to ...
17382 (fix<mode>di2 for D64_D128): ... this.
17384 2019-08-08 Jim Wilson <jimw@sifive.com>
17387 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17388 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17389 Pass into recursive call.
17390 (riscv_flatten_aggregate_argument): New arg. Pass to
17391 riscv_flatten_aggregate_field.
17392 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17393 riscv_flatten_aggregate_argument twice, with false and true as last
17394 arg. Process result twice. Compare results and warn if different.
17395 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17397 2019-08-08 Martin Liska <mliska@suse.cz>
17400 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17401 * lto-wrapper.c (jobserver_active_p): Likewise.
17403 2019-08-08 Martin Liska <mliska@suse.cz>
17405 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17406 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17407 (create_version_clone_with_body): Likewise.
17409 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17411 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17412 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17413 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17414 GOVD_EXPLICIT flags.
17415 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17416 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17417 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17418 call install_var_field with mask 11 instead of 3.
17419 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17420 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17422 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17424 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17425 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17427 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17429 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17430 MOVPRFX alternatives. Make the GPR alternatives more expensive
17433 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17435 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17436 Disparage the GPR alternative relative to the FPR one.
17437 Fix handling of 8-bit and 16-bit FPR values.
17439 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17441 * config/aarch64/iterators.md (BITWISEV): Delete.
17442 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17443 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17444 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17445 UNSPEC_FMINNMV, UNSPEC_FMINV.
17446 (bit_reduc_op): Delete.
17447 (sve_int_op): New int attribute.
17448 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17449 UNSPEC_FMINNMV, UNSPEC_FMINV.
17450 * config/aarch64/aarch64-sve.md
17451 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17452 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17453 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17454 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17455 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17456 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17458 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17459 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17460 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17461 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17462 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17465 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17467 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17468 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17469 (fms<mode>4, *fms<mode>4): Replace with...
17470 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17471 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17472 Use unspecs instead of rtx codes.
17473 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17474 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17476 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17478 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17480 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17481 * config/aarch64/aarch64-sve.md
17482 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17483 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17484 use a single unspec for the rhs.
17485 (*<su><maxmin><mode>3): Delete.
17486 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17488 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17490 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17491 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17492 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17493 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17494 (optab, sve_fp_op): Handle them.
17495 (SVE_FP_UNARY): Delete.
17496 (optab): Remove sqrt entry.
17497 (sve_fp_op): Remove neg, abs and sqrt entries.
17498 (SVE_COND_FP_UNARY): New int iterator.
17499 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17500 (*<frint_pattern><mode>2): Delete.
17501 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17502 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17503 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17504 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17506 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17508 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17510 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17512 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17513 (UNSPEC_COND_FADD): ...this.
17514 (UNSPEC_COND_SUB): Rename to...
17515 (UNSPEC_COND_FSUB): ...this.
17516 (UNSPEC_COND_MUL): Rename to...
17517 (UNSPEC_COND_FMUL): ...this.
17518 (UNSPEC_COND_DIV): Rename to...
17519 (UNSPEC_COND_FDIV): ...this.
17520 (UNSPEC_COND_MAX): Rename to...
17521 (UNSPEC_COND_FMAXNM): ...this.
17522 (UNSPEC_COND_MIN): Rename to...
17523 (UNSPEC_COND_FMINNM): ...this.
17524 (UNSPEC_COND_LT): Rename to...
17525 (UNSPEC_COND_FCMLT): ...this.
17526 (UNSPEC_COND_LE): Rename to...
17527 (UNSPEC_COND_FCMLE): ...this.
17528 (UNSPEC_COND_EQ): Rename to...
17529 (UNSPEC_COND_FCMEQ): ...this.
17530 (UNSPEC_COND_NE): Rename to...
17531 (UNSPEC_COND_FCMNE): ...this.
17532 (UNSPEC_COND_GE): Rename to...
17533 (UNSPEC_COND_FCMGE): ...this.
17534 (UNSPEC_COND_GT): Rename to...
17535 (UNSPEC_COND_FCMGT): ...this.
17536 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17537 (sve_fp_op_rev): Update accordingly.
17538 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17540 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17542 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17544 * config/aarch64/check-sve-md.awk: New file.
17545 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17546 (insn-conditions.md): Depend on it.
17548 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17551 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17552 (*negsi2_cmpz_zext): Ditto.
17554 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17556 * config/aarch64/iterators.md (commutative): Remove.
17558 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17561 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17562 processing COLLECT_GCC_OPTIONS.
17563 (run_gcc): Likewise.
17565 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17567 PR tree-optimization/91109
17568 * lra-remat.c (update_scratch_ops): Remove assignment of the
17571 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17573 * data-streamer.h (streamer_write_poly_uint64): Declare.
17574 (streamer_read_poly_uint64): Likewise.
17575 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17576 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17577 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17578 (add_condition): Take a poly_int64 size.
17579 * ipa-predicate.c (add_condition): Likewise.
17580 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17581 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17582 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17583 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17584 condition::size as a poly_int64.
17585 (unmodified_parm_1): Take a poly_int64 size pointer.
17586 (unmodified_parm): Likewise.
17587 (unmodified_parm_or_parm_agg_item): Likewise.
17588 (set_cond_stmt_execution_predicate): Update accordingly.
17589 (set_switch_stmt_execution_predicate): Likewise.
17590 (will_be_nonconstant_expr_predicate): Likewise.
17591 (will_be_nonconstant_predicate): Likewise.
17592 (inline_read_section): Stream condition::size as a poly_int.
17593 (ipa_fn_summary_write): Likewise.
17595 2019-08-07 Martin Liska <mliska@suse.cz>
17597 * fold-const.c (twoval_comparison_p): Replace int
17598 with bool as a return type.
17599 (simple_operand_p): Likewise.
17600 (operand_equal_p): Replace int with bool as a return type.
17601 * fold-const.h (operand_equal_p): Likewise.
17603 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17605 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17606 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17607 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17608 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17609 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17610 * tree-pretty-print.c (dump_omp_clause): Likewise.
17611 * tree-nested.c (convert_nonlocal_omp_clauses,
17612 convert_local_omp_clauses): Likewise.
17613 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17615 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17616 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17617 clause with array or reference to array types, no matter what type
17618 except for reference it has.
17620 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17622 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17624 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17626 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17627 (arch_canonicalize): Support rv32g and rv64g and fix error
17630 2019-08-06 Martin Liska <mliska@suse.cz>
17632 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17633 and DECL_IS_OPERATOR_DELETE_P.
17635 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17637 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17638 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17639 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17640 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17641 (gimplify_omp_for): Don't do C++ random access iterator clause
17642 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17643 don't predetermine the artificial iterator in case of C++ random
17644 access iterators as lastprivate, but private. For OMP_LOOP, force
17645 bind expr around simd body and force for_pre_body before the
17646 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17647 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17648 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17649 diff var of C++ random access iterators. Handle
17650 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17651 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17652 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17653 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17654 * omp-low.c (lower_rec_input_clauses): For
17655 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17656 variables instead of default constructing them.
17657 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17658 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17659 is_taskloop_ctx check from the assert to the guarding condition.
17661 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17663 * config/riscv/multilib-generator: (canonical_order): New.
17664 (arch_canonicalize): Dito.
17665 Apply arch_canonicalize for alts.
17667 2019-08-05 Martin Sebor <msebor@redhat.com>
17669 * doc/extend.texi (Common Variable Attributes): Document alias
17672 2019-08-05 Marek Polacek <polacek@redhat.com>
17674 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17675 * doc/invoke.texi: Document -Wcomma-subscript.
17677 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17679 * tree-core.h (tree_function_decl): Make function_code an
17680 independent field. Group the remaining bitfields into bytes
17681 and move decl_type so that it contines to be at a byte boundary.
17682 Leave 12 bits for future expansion.
17684 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17686 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17687 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17688 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17691 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17693 * gimple.h (gimple_move_vops): Declare.
17694 * gimple.c (gimple_move_vops): New function
17695 * gimple-fold.c (replace_call_with_call_and_fold)
17696 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17697 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17698 (gimple_fold_call): Use it.
17699 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17700 * tree-call-cdce.c (use_internal_fn): Likewise.
17701 * tree-if-conv.c (predicate_load_or_store): Likewise.
17702 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17703 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17704 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17705 (update_call_from_tree): Likewise.
17706 * tree-vect-stmts.c (vectorizable_load): Likewise.
17707 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17709 2019-08-05 Martin Liska <mliska@suse.cz>
17712 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17713 with not arguments.
17714 (eliminate_unnecessary_stmts): Likewise.
17716 2019-08-05 Richard Biener <rguenther@suse.de>
17718 PR middle-end/91169
17719 * fold-const.c (get_array_ctor_element_at_index): Create
17720 offset_ints according to the sign of the index type and treat
17721 that as signed if it is obviously so.
17723 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17726 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17727 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17728 _mm256_storeu2_m128i): New function.
17730 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17732 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17733 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17735 2019-08-05 Alan Modra <amodra@gmail.com>
17738 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17739 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17741 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17743 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17744 bug that was fixed in Tcl 8.6.1.
17746 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17748 * config/rs6000/future.md: New file.
17749 * config/rs6000/rs6000.md: Include future.md.
17750 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17752 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17754 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17755 check to use targetm.slow_unaligned_access instead.
17757 * function.c (assign_param_data_one): Remove unused data members.
17759 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17761 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17762 build_distinct_type_copy.
17763 (simd_clone_adjust_argument_types): Ditto.
17764 (simd_clone_adjust): Call build_distinct_type_copy here.
17765 (expand_simd_clones): Ditto.
17767 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17770 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17772 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17774 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17775 from 'const void *'.
17776 (sort_locs_in_loop_postorder_cmp): Likewise.
17778 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17780 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17781 (hot-bb-count-ws-permille): Likewise.
17782 (hot-bb-frequency-fraction): Likewise.
17783 (unlikely-bb-count-fraction): Likewise.
17784 * params.def (hot-bb-count-fraction): Rework description.
17785 (hot-bb-count-ws-permille): Likewise.
17786 (hot-bb-frequency-fraction): Likewise.
17787 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17788 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17790 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17793 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17796 2019-08-02 Richard Biener <rguenther@suse.de>
17798 * vec.h (vec::sort): Add gcc_qsort_r support.
17799 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17800 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17801 to gcc_qsort_r style callback.
17802 (sort_locs_in_loop_postorder_cmp): Likewise.
17803 (analyze_memory_references): Use gcc_sort_r interfaces.
17804 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17806 2019-08-02 Martin Liska <mliska@suse.cz>
17809 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17810 to detect working job server.
17811 (driver::detect_jobserver): Test whether jobserver
17812 is active from GCC driver. That will prevent situation where
17813 GCC is invoked from a LD plugin and the linker already uses
17814 file descriptors suggested by make. That leads to a wrong
17816 * gcc.h (driver): Add detect_jobserver.
17817 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17818 not scanning for --jobserver-auth prefix.
17820 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17822 PR tree-optimization/91201
17823 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17824 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17827 2019-08-01 Martin Sebor <msebor@redhat.com>
17830 * tree.c (type_initializer_zero_p): Define.
17831 * tree.h (type_initializer_zero_p): New function.
17833 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17835 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17837 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17839 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17840 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17841 * predict.c (maybe_hot_count_p): Likewise.
17842 (maybe_hot_bb_p): Tweak comment.
17843 (maybe_hot_edge_p): Likewise.
17844 (probably_never_executed): Likewise. Minor tweak.
17845 (probably_never_executed_bb_p): Likewise.
17846 (unlikely_executed_edge_p): Likewise.
17847 (probably_never_executed_edge_p): Likewise.
17848 (optimize_function_for_size_p): Likewise.
17849 (optimize_function_for_speed_p): Likewise.
17850 (function_optimization_type): Likewise.
17851 (optimize_bb_for_size_p): Likewise.
17852 (optimize_bb_for_speed_p): Likewise.
17853 (bb_optimization_type): Likewise.
17854 (optimize_edge_for_size_p): Likewise.
17855 (optimize_edge_for_speed_p): Likewise.
17856 (optimize_insn_for_size_p): Likewise.
17857 (optimize_insn_for_speed_p): Likewise.
17858 (optimize_loop_for_size_p): Likewise.
17859 (optimize_loop_for_speed_p): Likewise.
17860 (optimize_loop_nest_for_speed_p): Likewise.
17861 (optimize_loop_nest_for_size_p): Likewise.
17862 (predictable_edge_p): Likewise.
17863 (handle_missing_profiles): Minor tweak.
17865 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17867 * config/rs6000/predicates.md (pcrel_external_address): Update
17870 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17873 * config/i386/mmx.md (usadv8qi): New expander.
17875 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17878 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17879 with reserved names that are in a system header.
17881 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17883 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17884 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17885 (*vec_extractv2si_0_zext): Ditto.
17886 (*vec_extractv2si_1): Add (rm,x) alternative.
17887 (*vec_extractv2si_1_zext): New insn pattern.
17888 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17891 2019-08-01 Richard Biener <rguenther@suse.de>
17893 * domwalk.c (bb_postorder): Remove static variable.
17894 (cmp_bb_postorder): Adjust.
17895 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17896 (dom_walker::walk): Adjust.
17898 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17900 * sort.cc (sort_r_ctx): New struct.
17901 (reorder23): Make templated on context type.
17902 (reorder45): Ditto.
17903 (cmp1): Ditto. Adjust signature.
17905 (mergesort): Ditto.
17906 [CHECKING_P] (cmp2to3): New static function. Use it...
17907 (gcc_qsort) [CHECKING_P]: ...here.
17908 (gcc_sort_r): New function.
17909 * system.h (sort_r_cmp_fn): New function typedef.
17910 (qsort_chk): Adjust signature.
17911 (gcc_sort_r): Declare.
17912 * vec.c (qsort_chk_error): Adjust.
17913 (qsort_chk): Adjust.
17915 2019-08-01 Richard Biener <rguenther@suse.de>
17917 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17918 (compute_antic): Localize it here.
17920 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17922 * common/config/riscv/riscv-common.c: Check -march string ends
17925 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17927 * ipa-devirt.c (type_warning_cmp): Make static.
17928 (decl_warning_cmp): Ditto.
17930 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17933 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17934 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17935 use of deleted rs6000_dejagnu_cpu_index variable.
17936 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17937 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17938 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17939 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17940 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17941 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17943 2019-07-31 Richard Biener <rguenther@suse.de>
17945 PR tree-optimization/91280
17946 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17947 Decompose MEM_REF manually for offset handling.
17949 2019-07-31 Richard Biener <rguenther@suse.de>
17951 PR tree-optimization/91293
17952 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17953 of reduction stmts.
17955 2019-07-31 Matt Thomas <matt@3am-software.com>
17956 Nick Hudson <nick@nthcliff.demon.co.uk>
17957 Matthew Green <mrg@eterna.com.au>
17958 Maya Rashish <coypu@sdf.org>
17960 * config.gcc (hppa*-*-netbsd*): New target.
17961 * config/pa/pa-netbsd.h: New file.
17962 * config/pa/pa32-netbsd.h: New file.
17964 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17966 PR tree-optimization/91201
17967 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17969 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17971 * config/gcn/gcn-valu.md
17972 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17973 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17974 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17975 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17976 struct ilist. Add nops for delayeduse insns.
17977 * config/gcn/gcn.md (delayeduse): New attribute.
17978 (*movbi): Remove s_waitcnt from stores.
17979 (*mov<mode>_insn): Likewise.
17980 (*movti_insn): Likewise. Add delayeduse attribute.
17981 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17982 (atomic_store<mode>): Remove or adjust s_waitcnt.
17984 2019-07-31 Richard Biener <rguenther@suse.de>
17986 * vr-values.h (vr_values::swap_vr_value): New.
17987 (vr_values::free_value_range): likewise.
17988 * vr-values.c (vr_values::swap_vr_value): Implement.
17989 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17990 Do not return a range or take a var.
17991 (evrp_range_analyzer::stack): Change back to recording a non-const
17993 * gimple-ssa-evrp-analyze.c
17994 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17996 (evrp_range_analyzer::pop_to_marker): Adjust.
17997 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17998 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17999 no longer needed value-range.
18001 2019-07-31 Martin Liska <mliska@suse.cz>
18003 * tree-ssa-dce.c (propagate_necessity): Delete operator can
18004 have size and (or) alignment as 2nd and later arguments.
18005 Mark all of them as necessary.
18007 2019-07-31 Richard Biener <rguenther@suse.de>
18009 PR tree-optimization/91178
18010 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18011 Use tail-recursion.
18013 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18015 PR tree-optimization/91201
18016 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
18017 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
18019 (reduc_plus_scal_<mode>): Improve formatting by introducing
18022 2019-07-31 Sudakshina Das <sudi.das@arm.com>
18024 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
18025 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
18026 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
18027 (aarch64_init_tme_builtins): New.
18028 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
18029 (aarch64_expand_builtin_tme): New.
18030 (aarch64_expand_builtin): Handle TME builtins.
18031 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
18032 __ARM_FEATURE_TME when enabled.
18033 * config/aarch64/aarch64-option-extensions.def: Add "tme".
18034 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
18036 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
18037 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
18039 (tstart, ttest, tcommit, tcancel): New instructions.
18040 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
18041 (__tcancel, __ttest): New.
18042 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
18043 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
18044 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
18045 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
18046 * config/arm/types.md: Add new tme type attr.
18047 * doc/invoke.texi: Document "tme".
18049 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
18051 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
18052 warn_unused_result attribute.
18053 (cmse_check_address_range): Add warn_unused_result attribute.
18055 2019-07-31 Richard Biener <rguenther@suse.de>
18057 PR tree-optimization/91257
18058 * tree-vrp.c (union_ranges): Unify equality and less tests
18059 by using compare_values. Re-order cheap tests first.
18061 2019-07-31 Jakub Jelinek <jakub@redhat.com>
18063 PR middle-end/91301
18064 * gimplify.c (gimplify_omp_for): If for class iterator on
18065 distribute parallel for there is no data sharing clause
18066 on inner_for_stmt, look for private clause on combined
18067 parallel too and if found, move it to inner_for_stmt.
18069 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
18071 * lra-int.h (lra_operand_data): Remove early_clobber field.
18072 (lra_insn_reg): Likewise.
18073 * lra.c (debug_operand_data): Update accordingly.
18074 (setup_operand_alternative): Likewise.
18075 (new_insn_reg): Likewise. Remove early_clobber parameter.
18076 (collect_non_operand_hard_regs): Update call accordingly.
18077 Don't assign to lra_insn_reg::early_clobber.
18078 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18079 and update calls to new_insn_reg.
18080 (lra_update_insn_regno_info): Update calls accordingly.
18081 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18082 alternative number as a parameter and test whether the operand
18083 is earlyclobbered in that particular alternative.
18084 (process_alt_operands): Update call accordingly. Use per-alternative
18085 checks for earyclobber here too.
18086 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18087 against zero for IRA_UNKNOWN_ALT.
18089 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18091 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18093 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18095 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18096 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18098 2019-07-30 Martin Liska <mliska@suse.cz>
18101 * cgraph.c (cgraph_edge::make_direct): Use
18102 edge->indirect_unknown_callee as edge->resolve_speculation can
18103 deallocate edge which is this pointer.
18105 2019-07-30 Richard Biener <rguenther@suse.de>
18107 PR tree-optimization/91257
18108 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18110 2019-07-30 Martin Liska <mliska@suse.cz>
18112 * doc/invoke.texi: Document new behavior.
18113 * lto-wrapper.c (cpuset_popcount): New function
18114 is a copy of libgomp/config/linux/proc.c.
18115 (init_num_threads): Likewise.
18116 (run_gcc): Automatically detect core count for -flto.
18117 (jobserver_active_p): New function.
18119 2019-07-30 Richard Biener <rguenther@suse.de>
18121 PR tree-optimization/91257
18122 * bitmap.h (bitmap_ior_into_and_free): Declare.
18123 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18124 whether to add the unliked element to the freelist.
18125 (bitmap_list_insert_element_after): Add defaulted param for
18126 an already allocated element.
18127 (bitmap_ior_into_and_free): New function.
18128 * tree-ssa-structalias.c (condense_visit): Reduce the
18129 ponts-to and edge bitmaps of the SCC members in a
18130 logarithmic fashion rather than all to one.
18132 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18134 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18135 parameter. When nonnull, make sure that the addition or subtraction
18136 has the same condition.
18137 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18138 for CFN_COND_MUL too.
18140 2019-07-30 Richard Biener <rguenther@suse.de>
18142 PR tree-optimization/91291
18143 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18146 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18148 PR middle-end/91216
18149 * omp-low.c (global_nonaddressable_vars): New variable.
18150 (use_pointer_for_field): For global decls, if they are non-addressable,
18151 remember it in the global_nonaddressable_vars bitmap, if they are
18152 addressable and in the global_nonaddressable_vars bitmap, ignore their
18153 TREE_ADDRESSABLE bit.
18154 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18155 vars in global_nonaddressable_vars bitmap.
18156 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18159 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18160 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18161 comparison to unsigned HOST_WIDE_INT before shifting it left.
18163 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18165 * config/i386/i386.md (movstrict<mode>): Use register_operand
18166 predicate for operand 0. Add expander condition. Assert that
18167 operand 0 is a SUBREG RTX.
18168 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18169 Update operand constraints and insn condition.
18170 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18171 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18172 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18173 Update operand 0 constraints.
18174 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18176 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18178 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18179 when -m{code,data}-region are used without -mlarge.
18180 * config/msp430/msp430.c (msp430_option_override): Error when a
18181 non-default code or data region is used without -mlarge.
18182 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18183 attributes when they are used without -mlarge.
18185 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18188 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18190 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18192 PR middle-end/91242
18193 * wide-int.h (generic_wide_int::sext_elt): New function.
18194 * inchash.h (hash::add_wide_int): Use it instead of elt.
18196 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18198 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18200 * config/arm/arm.md (<crc_variant>): Rename to...
18201 (arm_<crc_variant>): ... This.
18202 (<cdp>): Rename to...
18203 (arm_<cdp>): ... This.
18204 (<ldc>): Rename to...
18205 (arm_<ldc>): ... This.
18206 (<stc>): Rename to...
18207 (arm_<stc>): ... This.
18208 (<mcr>): Rename to...
18209 (arm_<mcr>): ... This.
18210 (<mrc>): Rename to...
18211 (arm_<mrc>): ... This.
18212 (<mcrr>): Rename to...
18213 (arm_<mcrr>): ... This.
18214 (<mrrc>): Rename to...
18215 (arm_<mrrc>): ... This.
18217 2019-07-29 Richard Biener <rguenther@suse.de>
18219 PR tree-optimization/91257
18220 * tree-ssa-sccvn.h (struct vn_avail): New.
18221 (struct vn_ssa_aux): Add avail member.
18222 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18223 member, add m_avail_freelist one.
18224 (rpo_elim::~rpo_elim): Remove.
18225 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18227 (rpo_elim::eliminate_push_avail): Likewise.
18228 (do_unwind): Likewise.
18229 (do_rpo_vn): Likewise.
18231 2019-07-29 Richard Biener <rguenther@suse.de>
18233 PR tree-optimization/91257
18234 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18235 most cases, instead call compare_values which handles the
18236 symbolic ranges we handle specially.
18237 (compare_values_warnv): Do not call operand_less_p but open-code
18238 the effective fold calls. Avoid converting so much.
18240 2019-07-29 Martin Liska <mliska@suse.cz>
18242 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18243 remove LHS of operator new call. It's handled latter.
18245 2019-07-29 Richard Biener <rguenther@suse.de>
18247 PR tree-optimization/91267
18248 * vr-values.c (vr_values::update_value_range): Add early return
18249 for effectively VARYING lattice entry.
18251 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18254 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18255 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18256 necessary if keep_all_vdefs_p is true.
18257 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18258 that keep_all_vdefs_p is false.
18259 (mark_all_reaching_defs_necessary): Likewise.
18260 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18262 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18264 * common.opt (Og): Change the initial value of flag_dse to 0.
18265 * opts.c (default_options_table): Move OPT_ftree_dse from
18266 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18267 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18268 entry before the OPT_ftree_sra entry.
18269 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18270 of flags disabled by Og.
18272 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18274 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18277 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18279 * doc/sourcebuild.texi (check-function-bodies): Document.
18281 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18283 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18284 VEC_DUPLICATE of a fixed-length vector even if the result
18285 is variable-length. Likewise fold a duplicate of a
18286 variable-length vector if the variable-length vector is
18287 itself a duplicate of a fixed-length sequence.
18288 (test_vector_ops_duplicate): Test more cases.
18290 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18292 * vector-builder.h (vector_builder): Add a shape template parameter.
18293 (vector_builder::new_unary_operation): New function, generalizing
18294 the old tree_vector_builder function.
18295 (vector_builder::new_binary_operation): Likewise.
18296 (vector_builder::binary_encoded_nelts): Likewise.
18297 * int-vector-builder.h (int_vector_builder): Update template
18298 parameters to vector_builder.
18299 (int_vector_builder::shape_nelts): New function.
18300 * rtx-vector-builder.h (rtx_vector_builder): Update template
18301 parameters to vector_builder.
18302 (rtx_vector_builder::shape_nelts): New function.
18303 (rtx_vector_builder::nelts_of): Likewise.
18304 (rtx_vector_builder::npatterns_of): Likewise.
18305 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18306 * tree-vector-builder.h (tree_vector_builder): Update template
18307 parameters to vector_builder.
18308 (tree_vector_builder::shape_nelts): New function.
18309 (tree_vector_builder::nelts_of): Likewise.
18310 (tree_vector_builder::npatterns_of): Likewise.
18311 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18312 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18313 (tree_vector_builder::new_binary_operation): Delete.
18314 (tree_vector_builder::binary_encoded_nelts): Likewise.
18315 * simplify-rtx.c: Include rtx-vector-builder.h.
18316 (distributes_over_addition_p): New function.
18317 (simplify_const_unary_operation)
18318 (simplify_const_binary_operation): Generalize handling of vector
18319 constants to include variable-length vectors.
18320 (test_vector_ops_series): Add more tests.
18322 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18325 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18326 than INDENTIFIER_POINTER.
18328 2019-07-28 Martin Liska <mliska@suse.cz>
18331 * cgraph.c (symbol_table::create_edge): Always allocate
18333 (symbol_table::free_edge): Store summary_id to
18334 edge_released_summary_ids if != -1;
18335 * cgraph.h (NEXT_FREE_NODE): Remove.
18336 (SET_NEXT_FREE_NODE): Likewise.
18337 (NEXT_FREE_EDGE): Likewise.
18338 (symbol_table::release_symbol): Store summary_id to
18339 cgraph_released_summary_ids if != -1;
18340 (symbol_table::allocate_cgraph_symbol): Always allocate
18343 2019-07-28 Alan Modra <amodra@gmail.com>
18345 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18348 2019-07-28 Alan Modra <amodra@gmail.com>
18351 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18353 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18354 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18355 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18357 2019-07-28 Alan Modra <amodra@gmail.com>
18360 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18361 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18362 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18363 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18364 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18365 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18366 in asm_default spec.
18367 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18368 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18370 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18372 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18374 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18377 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18378 * config/aarch64/aarch64-option-extensions.def: Add new comments
18379 and restore easier to read options.
18381 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18383 * convert.c (convert_to_real_1): Move part of conversion code...
18384 * match.pd: ...To here.
18386 2019-07-26 Martin Jambor <mjambor@suse.cz>
18389 * ipa-inline-transform.c (check_speculations_1): New function.
18390 (push_all_edges_in_set_to_vec): Likewise.
18391 (check_speculations): Use check_speculations_1, new parameter
18393 (inline_call): Pass new_edges to check_speculations.
18394 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18396 (speculation_useful_p): Early return true if edge is inlined, remove
18397 later checks for inline_failed.
18399 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18401 PR rtl-optimization/91223
18402 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18403 matching with INOUT operand.
18405 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18407 * stmt.c (expand_case): Try to narrow the index type if it's larger
18408 than a word. Tidy up.
18410 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18412 * cif-code.def (NEVER_CALL): New code.
18413 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18414 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18416 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18418 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18419 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18421 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18423 * ipa-devirt.c (add_type_duplicate): Fix return value.
18425 2019-07-25 Richard Biener <rguenther@suse.de>
18427 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18428 type parameter and use it instead of guessing expression
18429 type from the first operand.
18430 (extract_range_from_binary_expr): Pass expr_type down.
18432 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18434 * config/arm/arm.md (SATrev): Change to code attribute.
18435 (*satsi_<SAT:code>): Adjust for the above.
18436 (*satsi_<SAT:code>_shift): Likewise.
18438 2019-07-25 Richard Biener <rguenther@suse.de>
18440 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18441 Make value_range * temporary const.
18442 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18444 (evrp_range_analyzer::record_ranges_from_): Likewise.
18445 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18446 deal with having recorded a const one.
18447 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18448 Return a const value_range *.
18449 (evrp_range_analyzer::pop_value_range): Likewise.
18450 (evrp_range_analyzer::stack): Record const value_range *s.
18451 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18453 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18454 (format_integer): Likewise.
18455 (sprintf_dom_walker::handle_gimple_call): Likewise.
18456 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18457 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18458 (vrp_prop::get_value_range): Adjust.
18459 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18460 modifying the lattice in-place.
18461 (vrp_prop::visit_stmt): Likewise.
18462 * vr-values.c (vr_values::get_lattice_entry): New private method.
18463 (vr_values::get_value_range): Wrap it and return a const
18465 (vr_values::set_def_to_varying): New.
18466 (vr_values::set_defs_to_varying): Use it.
18467 (vr_values::update_value_range): Likewise.
18468 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18469 (values::op_with_constant_singleton_va): Likewise.
18470 (vr_values::extract_range_for_var_from_co): Likewise.
18471 (vr_values::extract_range_from_ssa_name): Likewise.
18472 (vr_values::extract_range_from_cond_expr): Likewise.
18473 (vr_values::extract_range_basic): Likewise.
18474 (compare_ranges): Take const value_range *, adjust.
18475 (compare_range_with_value): Likewise.
18476 (vrp_valueize): Adjust.
18477 (vrp_valueize_1): Likewise.
18478 (vr_values::get_vr_for_comparison): Return a const value_range *.
18479 (vr_values::compare_name_with_value): Adjust.
18480 (vr_values::compare_names): Likewise.
18481 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18483 (vr_values::vrp_evaluate_conditional): Likewise.
18484 (find_case_label_ranges): Take a const value_range *.
18485 (vr_values::vrp_visit_switch_stmt): Adjust.
18486 (vr_values::extract_range_from_phi_node): Likewise.
18487 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18488 (vr_values::simplify_abs_using_ranges): Likewise.
18489 (test_for_singularity): Take a const value_range *.
18490 (range_fits_type_p): Likewise.
18491 (vr_values::simplify_cond_using_ranges_1): Adjust.
18492 (vr_values::simplify_cond_using_ranges_2): Likewise.
18493 (vr_values::simplify_switch_using_ranges): Likewise.
18494 (vr_values::simplify_float_conversion_usi): Likewise.
18495 (vr_values::two_valued_val_range_p): Likewise.
18496 * vr-values.h (vr_values::get_value_range): Return a const
18498 (vr_values::set_def_to_varying): New.
18499 (vr_values::get_lattice_entry): New private method.
18500 (vr_values::get_vr_for_comparison): Return a const value_range *.
18502 2019-07-25 Martin Liska <mliska@suse.cz>
18503 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18506 * common.opt: Add -fallocation-dce
18507 * gimple.c (gimple_call_operator_delete_p): New.
18508 * gimple.h (gimple_call_operator_delete_p): Likewise.
18509 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18510 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18511 DECL_IS_OPERATOR_DELETE_P.
18512 (mark_all_reaching_defs_necessary_1): Likewise.
18513 (propagate_necessity): Likewise.
18514 (eliminate_unnecessary_stmts): Handle
18515 gimple_call_operator_delete_p.
18516 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18517 Add packing of OPERATOR_DELETE.
18518 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18520 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18521 (DECL_SET_IS_OPERATOR_DELETE): New.
18522 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18524 2019-07-25 Martin Liska <mliska@suse.cz>
18526 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18527 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18528 * coverage.c (coverage_begin_function): Likewise.
18529 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18530 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18531 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18532 (sem_item::hash_referenced_symbol_properties): Likewise.
18533 * lto-streamer-out.c (hash_tree): Likewise.
18534 * predict.c (expr_expected_value_1): Likewise.
18535 * tree-inline.c (expand_call_inline): Likewise.
18536 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18537 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18538 * tree-core.h (enum function_decl_type): New enum.
18539 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18540 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18541 (set_function_decl_type): Likewise.
18542 (DECL_IS_OPERATOR_NEW_P): New.
18543 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18544 (DECL_LAMBDA_FUNCTION): Likewise.
18545 (DECL_LAMBDA_FUNCTION_P): Likewise.
18546 (DECL_IS_OPERATOR_NEW): Remove.
18547 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18549 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18551 * ipa-profile.c (get_most_common_single_value): Use
18552 get_nth_most_common_value.
18553 * profile.c (sort_hist_value): New function.
18554 (compute_value_histograms): Call sort_hist_value to sort the
18555 values after loading from disk.
18556 * value-prof.c (get_most_common_single_value): Rename to ...
18557 get_nth_most_common_value. Add input params n, return
18558 the n_th value and count.
18559 (gimple_divmod_fixed_value_transform): Use
18560 get_nth_most_common_value.
18561 (gimple_ic_transform): Likewise.
18562 (gimple_stringops_transform): Likewise.
18563 * value-prof.h (get_most_common_single_value): Add input params
18566 2019-07-25 Richard Biener <rguenther@suse.de>
18568 PR tree-optimization/91236
18569 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18570 size of CONSTRUCTOR write. Fix buffer size we pass to
18571 native_encode_expr.
18573 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18575 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18576 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18579 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18581 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18582 explicitly disabled with --disable-initfini-array.
18584 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18586 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18589 2019-07-24 Martin Sebor <msebor@redhat.com>
18591 PR tree-optimization/91183
18592 PR tree-optimization/86688
18593 * builtins.c (compute_objsize): Handle MEM_REF.
18594 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18595 (get_min_string_length): Remove.
18596 (count_nonzero_bytes): New function.
18597 (handle_char_store): Rename...
18598 (handle_store): to this. Handle multibyte stores via integer types.
18599 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18602 2019-07-24 Martin Sebor <msebor@redhat.com>
18605 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18606 (diagnostic_report_diagnostic): Same.
18607 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18608 (diagnostic_context::lang_mask): New data member.
18609 * ipa-pure-const.c (suggest_attribute): Use
18610 lang_hooks.option_lang_mask ().
18611 * opts-common.c (option_enabled): Handle new argument.
18612 (get_option_state): Pass an additional argument.
18613 * opts.c (print_filtered_help): Print supported languages for
18614 unsupported options. Adjust printing of current state.
18615 * opts.h (option_enabled): Add argument.
18616 * toplev.c (print_switch_values): Use lang_mask.
18617 (general_init): Set global_dc->lang_mask.
18619 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18622 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18624 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18626 * cgraphunit.c (symbol_table::compile): Start and stop
18627 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18628 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18630 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18632 * gimplify.c (flag_instrument_functions_exclude_p): Include
18633 namespace/class information in the printable name.
18634 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18635 to tokens entered into the vector.
18637 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18639 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18640 (get_static_chain): Call it instead of build_simple_mem_ref.
18641 (get_frame_field): Likewise.
18642 (get_nonlocal_debug_decl): Likewise.
18643 (convert_nonlocal_reference_op): Likewise.
18645 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18647 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18649 (arc_compute_frame_size): Millicode is disabled when compiling
18651 (arc_return_address_register): Likewise.
18652 (arc_compute_function_type): Likewise.
18653 (arc_compute_frame_size): Likewise.
18654 (secondary_reload_info): Likewise.
18655 (arc_get_unalign): Likewise.
18656 (arc_can_use_return_insn): Declare.
18657 * config/arc/arc.c (AUX_LP_START): Define
18658 (AUX_LP_END): Likewise.
18659 (arc_frame_info): Update gmask member to 64-bit datum.
18660 (GMASK_LEN): Update.
18661 (arc_compute_function_type): Make it static, move it forward.
18662 (arc_must_save_register): Update, consider the extra regs.
18663 (arc_compute_millicode_save_restore_regs): Update to use the 64
18665 (arc_compute_frame_size): Likewise.
18666 (arc_enter_leave_p): Likewise.
18667 (arc_save_callee_saves): Likewise.
18668 (arc_restore_callee_saves): Likewise.
18669 (arc_save_callee_enter): Likewise.
18670 (arc_restore_callee_leave): Likewise.
18671 (arc_save_callee_milli): Likewise.
18672 (arc_restore_callee_milli): Likewise.
18673 (arc_expand_prologue): Add new interrupt handling.
18674 (arc_return_address_register): Make it static, move it forward.
18675 (arc_expand_epilogue): Add new interrupt handling.
18676 (arc_get_unalign): Delete.
18677 (arc_epilogue_uses): Make sure we do not remove the extra
18678 saved/restored registers when interrupt.
18679 (arc_can_use_return_insn): New function.
18680 (push_reg): Likewise.
18681 (pop_reg): Likewise.
18682 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18684 (arc_restore_callee_saves): Likewise, but restoring.
18685 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18686 (R33_REG): Likewise.
18687 (R34_REG): Likewise.
18688 (R35_REG): Likewise.
18689 (R36_REG): Likewise.
18690 (R37_REG): Likewise.
18691 (R38_REG): Likewise.
18692 (R39_REG): Likewise.
18693 (R45_REG): Likewise.
18694 (R46_REG): Likewise.
18695 (R47_REG): Likewise.
18696 (R48_REG): Likewise.
18697 (R49_REG): Likewise.
18698 (R50_REG): Likewise.
18699 (R51_REG): Likewise.
18700 (R52_REG): Likewise.
18701 (R53_REG): Likewise.
18702 (R54_REG): Likewise.
18703 (R55_REG): Likewise.
18704 (R56_REG): Likewise.
18705 (R58_REG): Likewise.
18706 (type): Add rtie attribute.
18707 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18708 (movsi_insn): Accept moves to lp_count.
18709 (rtie): Update pattern.
18710 (simple_return): Simplify it, don't use this pattern as a return
18712 (arc600_rtie): New pattern.
18713 (p_return_i): Clean up.
18714 (return): Likewise.
18715 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18717 * config/arc/predicates.md (move_src_operand): Consider lp_count
18720 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18722 * config/s390/predicates.md (addv_const_operand): New predicate.
18723 * config/s390/s390-modes.def (CCO): New condition code mode.
18724 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18725 (s390_branch_condition_mask): Likewise.
18726 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18727 ("mulv<mode>4"): New expanders.
18728 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18729 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18730 pattern definitions.
18732 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18734 PR middle-end/91166
18735 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18736 (define_predicates): Add entry for uniform_vector_p.
18737 (vec_same_elem_p): New match pattern.
18739 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18742 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18743 * config/i386/darwin32-biarch.h .. to here.
18744 * config/i386/darwin64-biarch.h: Adjust comments.
18745 * config/rs6000/darwin32-biarch.h: Likewise.
18746 * config/rs6000/darwin64-biarch.h: Likewise.
18747 * config.gcc: Missed commit from r273746
18748 (*-*-darwin*): Don't include CPU t-darwin here.
18749 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18750 an error message if i686-darwin configuration is attempted for
18753 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18756 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18757 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18758 an error message if i686-darwin configuration is attempted for
18760 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18761 (powerpc-*-darwin*): Use biarch files where needed.
18762 (powerpc64-*-darwin*): Likewise.
18763 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18764 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18766 * config/i386/darwin32-biarch.h: New.
18767 * config/i386/darwin64.h: Rename.
18768 * config/i386/darwin64-biarch.h: To this.
18769 * config/i386/t-darwin: Rename.
18770 * config/i386/t-darwin32-biarch: To this.
18771 * config/i386/t-darwin64: Rename.
18772 * config/i386/t-darwin64-biarch: To this.
18773 * config/rs6000/darwin32-biarch.h: New.
18774 * config/rs6000/darwin64.h: Rename.
18775 * config/rs6000/darwin64-biarch.h: To this.
18776 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18778 * config/rs6000/t-darwin8: Rename.
18779 * config/rs6000/t-darwin32-biarch: To this.
18780 * config/rs6000/t-darwin64 Rename.
18781 * config/rs6000/t-darwin64-biarch: To this.
18783 2019-07-23 Martin Sebor <msebor@redhat.com>
18785 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18787 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18789 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18790 (rh): New alias for it.
18792 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18794 * gdbhooks.py: Pass replace=True to
18795 gdb.printing.register_pretty_printer.
18797 2019-07-23 Richard Biener <rguenther@suse.de>
18800 * lto-streamer-in.c (input_function): Drop inline-entry markers
18801 that ended up with an unknown location block.
18803 2019-07-23 Richard Biener <rguenther@suse.de>
18805 PR tree-optimization/83518
18806 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18807 init from a constant even when partial defs are already recorded.
18809 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18811 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18812 * config/i386/znver1.md: Enable patterns for znver2 and add store
18813 variants which use extra AGU unit.
18815 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18817 * config/i386/i386-options.c (ix86_option_override_internal): Default
18818 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18819 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18822 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18824 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18825 (znver2_costs): Update 256 bit SSE costs and multiplication.
18827 2019-07-23 Jan Beulich <jbeulich@suse.com>
18829 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18830 Require only AVX512F.
18831 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18832 alternative expanding to vpternlog.
18834 2019-07-23 Martin Liska <mliska@suse.cz>
18836 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18837 to -flto in dwarf producer string.
18839 2019-07-23 Richard Biener <rguenther@suse.de>
18841 * tree-cfg.c (label_for_bb): Remove global var.
18842 (main_block_label): Take label_for_bb as argument.
18843 (cleanup_dead_labels_eh): Likewise, adjust.
18844 (cleanup_dead_labels): Adjust.
18846 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18848 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18849 Configurations): Add documentation for __builtin_mtfsf.
18851 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18853 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18854 * config/riscv/riscv.c (riscv_constant_alignment): Use
18855 riscv_align_data_type.
18856 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18857 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18858 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18859 * config/riscv/riscv.opt (malign-data): New.
18860 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18862 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18864 * cgraph.c (dump_graphviz): New function.
18865 * cgraph.h (dump_graphviz): New function.
18866 * symtab.c (dump_graphviz): New function.
18868 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18870 * config/aarch64/aarch64-simd.md
18871 (*aarch64_simd_sra<mode>): New.
18872 * config/aarch64/iterators.md
18873 (SHIFTRT): New iterator.
18874 (sra_op): New attribute.
18876 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18878 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18879 callee-saved regs R4->R10 in an interrupt function that calls another
18882 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18884 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18885 (_mm_blendv_epi8): New.
18887 2019-07-22 Richard Biener <rguenther@suse.de>
18889 PR tree-optimization/91221
18890 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18891 restrict partial-def handling of empty constructors and
18892 memset to refs with known offset.
18894 2019-07-22 Jan Beulich <jbeulich@suse.com>
18896 * config/i386/sse.md (ternlogsuffix): New.
18897 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18899 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18901 2019-07-22 Martin Liska <mliska@suse.cz>
18903 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18905 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18907 2019-07-22 Martin Liska <mliska@suse.cz>
18909 * lto-section-in.c (lto_get_section_data):
18910 Use new function get_compression.
18911 * lto-streamer-out.c (produce_lto_section): Use
18912 set_compression to encode compression algorithm.
18913 * lto-streamer.h (struct lto_section): Do not
18914 use bitfields in the format.
18916 2019-07-22 Martin Liska <mliska@suse.cz>
18919 * opts-common.c (decode_cmdline_option): Decode
18920 argument of -Werror and check it for a wrong language.
18921 * opts-global.c (complain_wrong_lang): Remove such case.
18923 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18925 * config/arc/arc.c (prepare_move_operands): Always use an
18926 intermediate register when storing a TLS symbols.
18928 2019-07-22 Stafford Horne <shorne@gmail.com>
18930 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18933 2019-07-22 Stafford Horne <shorne@gmail.com>
18935 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18936 and munordered-float validations.
18937 * config/or1k/constraints.md (d): New register constraint.
18938 * config/or1k/predicates.md (fp_comparison_operator): New.
18939 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18941 (or1k_expand_compare): Normalize unordered comparisons.
18942 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18943 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18944 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18945 * config/or1k/or1k.md (type): Add fpu.
18946 (fpu): New instruction reservation.
18947 (F, f, fr, fi, FI, FOP, fop): New.
18948 (<fop><F:mode>3): New ALU instruction definition.
18949 (float<fi><F:mode>2): New conversion instruction definition.
18950 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18951 (fpcmpcc): New code iterator.
18952 (*sf_fp_insn): New instruction definition.
18953 (cstore<F:mode>4): New expand definition.
18954 (cbranch<F:mode>4): New expand definition.
18955 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18956 munordered-float): New options.
18957 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18960 2019-07-22 Stafford Horne <shorne@gmail.com>
18962 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18963 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18964 documenation to be more clear.
18965 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18967 * config/or1k/or1k.opt (mrori): New option.
18968 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18969 msfimm, mshftimm): Rewrite documentation to be more clear.
18970 * config/or1k/or1k.md (insn_support): Add ror and rori.
18971 (enabled): Add conditions for ror and rori.
18972 (rotrsi3): Replace condition for shftimm with ror and rori.
18974 2019-07-22 Stafford Horne <shorne@gmail.com>
18977 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18978 (extend<mode>si2): Update predicate.
18979 * config/or1k/predicates.md (volatile_mem_operand): New.
18980 (reg_or_mem_operand): New.
18982 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18984 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18985 * config/rs6000/rs6000-call.c: ... to here.
18987 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18989 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18992 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18994 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18996 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18998 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
19000 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
19002 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
19003 (any_memory_operand): New predicate.
19004 (reg_or_mem_operand): Use it.
19006 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19009 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
19011 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
19013 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
19014 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
19016 2019-07-20 Jakub Jelinek <jakub@redhat.com>
19018 * tree.def (OMP_LOOP): New tree code.
19019 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
19020 (enum omp_clause_bind_kind): New enum.
19021 (struct tree_omp_clause): Add subcode.bind_kind.
19022 * tree.h (OMP_LOOP_CHECK): Rename to ...
19023 (OMP_LOOPING_CHECK): ... this.
19024 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
19025 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
19026 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
19027 (OMP_CLAUSE_BIND_KIND): Define.
19028 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19029 bind clause entries.
19030 (walk_tree_1): Handle OMP_CLAUSE_BIND.
19031 * tree-pretty-print.c (dump_omp_clause): Likewise.
19032 (dump_generic_node): Handle OMP_LOOP.
19033 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
19034 (in_omp_construct): New variable.
19035 (is_gimple_stmt): Handle OMP_LOOP.
19036 (gimplify_scan_omp_clauses): For lastprivate don't set
19037 check_non_private if code == OMP_LOOP. For reduction clause
19038 on OMP_LOOP combined with parallel or teams propagate as shared
19039 on the combined construct. Handle OMP_CLAUSE_BIND.
19040 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
19041 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
19042 for constructs from a loop construct to gimplify_scan_omp_clauses.
19043 Don't predetermine iterator linear on OMP_SIMD from loop construct.
19044 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
19045 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
19046 to match the implicit ORT_TARGET construct around whole body.
19047 Temporarily clear in_omp_construct when processing body.
19048 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
19049 etc. temporarily set in_omp_construct when processing body.
19050 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
19051 * omp-low.c (struct omp_context): Add loop_p.
19052 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
19053 in that the original var might be private.
19054 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
19055 (check_omp_nesting_restrictions): Adjust nesting restrictions for
19056 addition of loop construct.
19057 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
19059 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
19060 lastprivate non-addressable iterator of a collapse(1) simd.
19062 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
19064 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
19067 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
19069 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
19070 refer to default conditions. Warn for the 'y' spec which is ignored
19071 by current linkers.
19073 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
19075 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
19076 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19077 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19078 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19079 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19080 init_cumulative_args, rs6000_promote_function_mode,
19081 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19082 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19083 rs6000_function_arg_boundary, rs6000_parm_offset,
19084 rs6000_parm_start, rs6000_arg_size,
19085 rs6000_darwin64_record_arg_advance_flush,
19086 rs6000_darwin64_record_arg_advance_recurse,
19087 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19088 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19089 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19090 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19091 rs6000_finish_function_arg, rs6000_function_arg,
19092 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19093 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19094 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19095 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19096 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19097 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19098 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19099 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19100 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19101 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19102 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19103 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19104 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19105 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19106 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19107 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19108 get_element_number, altivec_expand_vec_set_builtin,
19109 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19110 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19111 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19112 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19113 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19114 rs6000_expand_builtin, rs6000_vector_type,
19115 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19116 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19117 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19119 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19120 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19121 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19122 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19123 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19124 init_cumulative_args, rs6000_promote_function_mode,
19125 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19126 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19127 rs6000_function_arg_boundary, rs6000_parm_offset,
19128 rs6000_parm_start, rs6000_arg_size,
19129 rs6000_darwin64_record_arg_advance_flush,
19130 rs6000_darwin64_record_arg_advance_recurse,
19131 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19132 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19133 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19134 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19135 rs6000_finish_function_arg, rs6000_function_arg,
19136 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19137 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19138 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19139 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19140 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19141 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19142 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19143 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19144 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19145 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19146 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19147 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19148 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19149 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19150 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19151 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19152 get_element_number, altivec_expand_vec_set_builtin,
19153 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19154 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19155 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19156 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19157 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19158 rs6000_expand_builtin, rs6000_vector_type,
19159 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19160 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19161 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19162 to here from rs6000.c.
19163 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19164 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19165 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19166 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19167 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19168 rs6000_return_in_memory, rs6000_return_in_msb,
19169 rs6000_pass_by_reference, setup_incoming_varargs,
19170 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19171 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19172 rs6000_function_arg_padding, rs6000_function_arg,
19173 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19174 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19175 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19176 rs6000_passes_long_double, rs6000_passes_vector,
19177 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19178 altivec_builtin_mask_for_load) Add declarations.
19179 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19180 * config/config.gcc: Add new source file rs6000-call.c to garbage
19181 collector and extra_objs.
19183 2019-07-19 Jeff Law <law@redhat.com>
19185 PR tree-optimization/86061
19186 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19187 strncpy. Drop some trivial dead code.
19188 (maybe_trim_memstar_call): Handle strncpy.
19190 2019-07-19 Richard Biener <rguenther@suse.de>
19192 PR tree-optimization/91211
19193 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19194 memset encoding size.
19196 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19199 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19201 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19204 * ipa-inline.c (recursive_inlining): Fix limits check.
19206 2019-07-19 Richard Biener <rguenther@suse.de>
19208 PR tree-optimization/91200
19209 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19210 no PHI nodes in middle-bb.
19212 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19214 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19216 * config/aarch64/aarch64-option-extensions.def: Likewise.
19218 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19220 PR middle-end/91190
19221 * function.c (insert_temp_slot_address): Store into the hash table
19222 a copy of address to avoid RTL sharing issues.
19224 2019-07-19 Richard Biener <rguenther@suse.de>
19226 PR tree-optimization/91207
19228 2019-07-17 Richard Biener <rguenther@suse.de>
19230 PR tree-optimization/91178
19231 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19232 loads with a gap larger than the vector size always use
19234 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19235 avoid loading vectors that are only contained in the gap
19236 and thus are not needed.
19238 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19240 * config/i386/i386.md (*addqi_2_slp): Remove.
19241 (*<code>qi_2_slp): Ditto.
19243 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19245 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19246 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19247 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19248 Rename function from rs6000_prefixed_address.
19249 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19251 (TARGET_TOC): Likewise.
19252 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19254 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19256 (TARGET_TOC): Likewise.
19257 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19259 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19261 (TARGET_TOC): Likewise.
19262 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19263 check to require -mcmodel=medium for pc-relative addressing.
19264 (create_TOC_reference): Add assertion for TARGET_TOC.
19265 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19267 (rs6000_emit_move): Likewise.
19268 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19269 to 'TOC_alias_set'.
19270 (get_TOC_alias_set): Likewise.
19271 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19273 (rs6000_can_eliminate): Likewise.
19274 (rs6000_prefixed_address_mode_p): Rename function from
19275 rs6000_prefixed_address.
19276 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19277 TARGET_HAS_TOC and not pc-relative.
19278 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19279 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19281 (TARGET_TOC): Likewise.
19282 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19285 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19288 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19289 for operand 0. Do not use (match_dup) to match operand 1 with
19290 operand 0. Add check in insn constraint that either input operand
19291 matches operand 0. Use SWI12 mode iterator to also handle
19293 (*and<mode>_1_slp): Ditto.
19294 (*<code>qi_1_slp): Ditto.
19295 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19296 Do not use (match_dup) to match operand 1 with operand 0. Add
19297 check in insn constraint that operand 1 matches operand 0.
19298 Use SWI12 mode iterator to also handle HImode operands.
19299 (*ashl<mode>3_1_slp): Ditto.
19300 (*<shift_insn><mode>3_1_slp): Ditto.
19301 (*<rotate_insn><mode>3_1_slp): Ditto.
19303 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19305 * config/arm/arm-builtins.c
19306 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19307 (arm_expand_unop_builtin): Likewise.
19308 * config/arm/crypto.md
19309 (crypto_sha1h): Convert from define_insn to define_expand.
19310 (crypto_<crypto_pattern>): Likewise.
19311 (crypto_sha1h_lb): New define_insn.
19312 (crypto_<crypto_pattern>_lb): Likewise.
19314 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19317 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19318 (vsha1cq_u32): Likewise.
19319 (vsha1pq_u32): Likewise.
19320 (vsha1mq_u32): Likewise.
19321 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19323 (crypto_sha1c): Correct vec select.
19324 (crypto_sha1m): Likewise.
19325 (crypto_sha1p): Likewise.
19327 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19329 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19330 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19331 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19332 (subdi_zesidi_zesidi): Likewise.
19333 (negdi2_compare, negdi2_insn): Likewise.
19334 (negdi_extensidi): Likewise.
19335 (negdi_zero_extendsidi): Likewise.
19336 (arm_cmpdi_insn): Likewise.
19337 (subsi3_carryin): Use arm_borrow_operation.
19338 (subsi3_carryin_const): Likewise.
19339 (subsi3_carryin_const0): Likewise.
19340 (subsi3_carryin_compare): Likewise.
19341 (subsi3_carryin_compare_const): Likewise.
19342 (subsi3_carryin_compare_const0): Likewise.
19343 (subsi3_carryin_shift): Likewise.
19344 (rsbsi3_carryin_shift): Likewise.
19345 (negsi2_carryin_compare): Likewise.
19347 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19349 PR tree-optimization/91137
19350 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19351 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19352 Init, use and fini the above new field.
19353 (determine_base_object_1): New function.
19354 (determine_base_object): Reimplement using walk_tree.
19356 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19358 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19359 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19360 CLEANUP_FORCE_FAST_DCE is set.
19361 * ifcvt.c (rest_of_handle_if_conversion): Pass
19362 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19363 if-conversion succeeded.
19365 2019-07-18 Richard Biener <rguenther@suse.de>
19367 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19368 branches to make code less indented.
19370 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19372 PR middle-end/81824
19373 * attribs.c (decls_mismatched_attributes): Simplify the logic
19374 that avoids duplicates and false positives.
19376 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19378 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19379 data into data section when generating PIC code.
19380 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19381 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19382 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19383 return 2 for SOM and 0 for other targets.
19385 2019-07-17 Jeff Law <law@redhat.com>
19387 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19388 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19389 avoid unexpected switch statement fallthru.
19391 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19393 * config/i386/i386.md (*add<dwi>3_doubleword):
19394 Remove redundant constraints.
19395 (*add<mode>_1): Ditto.
19398 (*addqi_1_slp): Ditto.
19399 (*add<mode>_2): Ditto.
19400 (*addv<mode>4): Ditto.
19401 (*sub<dwi>3_doubleword): Ditto.
19402 (*sub<mode>_1): Ditto.
19403 (*subqi_1_slp): Ditto.
19404 (*sub<mode>_2): Ditto.
19405 (*subv<mode>4): Ditto.
19406 (*sub<mode>_3): Ditto.
19407 (@add<mode>3_carry): Ditto.
19408 (@sub<mode>3_carry): Ditto.
19409 (*add<mode>3_cc_overflow_1): Ditto.
19410 (*add<mode>3_zext_cc_overflow_2): Ditto.
19412 (*and<mode>_1): Ditto.
19414 (*andqi_1_slp): Ditto.
19416 (*andqi_2_maybe_si): Ditto.
19417 (*and<mode>_2): Ditto.
19418 (*andqi_2_slp): Ditto.
19419 (*<code><mode>_1): Ditto.
19420 (*<code>qi_1): Ditto.
19421 (*<code>qi_1_slp): Ditto.
19422 (*<code><mode>_2): Ditto.
19423 (*<code>qi_2_slp): Ditto.
19425 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19427 * alias.c (record_component_aliases): Do not simplify pointed-to
19428 types of ODR types.
19430 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19432 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19433 partial reg stall on alternative 2.
19435 2019-07-17 Richard Biener <rguenther@suse.de>
19437 PR tree-optimization/91178
19438 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19439 lower SSA names to avoid quadratic behavior in the common case.
19440 * tree-data-ref.c (split_constant_offset): Add limit argument
19441 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19442 (split_constant_offset_1): Add limit argument and use it to
19443 limit SSA def walking. Optimize the common plus/minus case.
19445 2019-07-17 Richard Biener <rguenther@suse.de>
19447 PR tree-optimization/91178
19448 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19449 loads with a gap larger than the vector size always use
19451 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19452 avoid loading vectors that are only contained in the gap
19453 and thus are not needed.
19455 2019-07-17 Richard Biener <rguenther@suse.de>
19457 PR tree-optimization/91180
19458 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19459 computation for memset partial defs.
19461 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19463 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19464 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19465 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19466 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19467 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19468 * omp-grid.c (grid_process_grid_body,
19469 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19470 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19471 == GF_OMP_FOR_KIND_SIMD.
19472 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19473 check_omp_nesting_restrictions, scan_omp_1_stmt,
19474 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19475 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19476 omp_find_scan): Likewise.
19477 * omp-expand.c (expand_omp_for): Likewise.
19478 * omp-general.c (omp_extract_for_data): Likewise.
19480 PR tree-optimization/91157
19481 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19482 a vector boolean with scalar mode.
19483 (expand_vector_condition): Handle first operand being a vector boolean
19485 (expand_vector_operations_1): For comparisons, don't bail out early
19486 if the return type is vector boolean with scalar mode, but comparison
19487 operand type is not.
19489 2019-07-17 Richard Biener <rguenther@suse.de>
19491 PR tree-optimization/91181
19492 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19493 IFN_LOADs as calls.
19495 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19497 * config/i386/i386.md (*testdi_1): Match CCZmode for
19498 constants that might have the SImode sign bit set.
19499 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19500 Use correct constraints for pentium pairing.
19501 (*test<mode>_1): Ditto.
19503 2019-07-16 Jeff Law <law@redhat.com>
19505 PR rtl-optimization/91173
19506 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19507 SSA_NAME with a constant value, fold its value into the offset
19508 and clear the base before calling gen_addr_rtx.
19510 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19512 PR rtl-optimization/91164
19513 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19514 invalidate dominance info.
19516 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19518 * read-md.h (md_reader::record_potential_iterator_use): Add a
19519 file_location parameter.
19520 * read-rtl.c (attribute_use::loc): New field.
19521 (map_attr_string): Take a file_location parameter. Report cases
19522 in which attributes map to multiple distinct values.
19523 (apply_attribute_uses): Update call accordingly.
19524 (md_reader::handle_overloaded_name): Likewise.
19525 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19527 (record_attribute_use): Take a file_location parameter.
19528 Initialize attribute_use::loc.
19529 (md_reader::record_potential_iterator_use): Take a file_location
19530 parameter. Update call to record_attribute_use.
19531 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19532 (rtx_reader::read_rtx_code): Likewise.
19533 (rtx_reader::read_rtx_operand): Likewise. Record a location
19534 for implicitly-expanded empty strings.
19536 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19538 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19539 Use file_location instead of separate fields.
19540 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19541 separate filename and line number.
19542 * read-md.c (ptr_loc): As above.
19543 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19544 (md_reader::fprint_md_ptr_loc): Likewise.
19545 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19546 instead of a separate filename and line number.
19547 (md_reader::read_string): Update call accordingly.
19549 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19551 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19552 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19553 leaving the choice between SFDF and P implicit.
19554 (*mov<mode>_update2): Likewise.
19555 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19556 rather than leaving the choice betweem IBM128 and GPR implicit.
19557 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19558 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19560 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19561 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19562 * config/rs6000/vsx.md
19563 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19564 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19565 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19566 and VSX_EXTRACT_I implicit.
19568 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19570 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19571 Explicitly use <MOVEP1:MODE> for the mode attribute.
19573 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19576 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19578 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19581 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19582 .machine directive.
19584 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19586 * config/i386/i386.md (@test<mode>_ccno_1):
19587 Rename from test<mode>_ccno_1.
19588 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19589 (*testqi_1_maybe_si): Remove modrm attribute.
19590 (*test<mode>_1): Ditto.
19591 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19592 gen_test_ccno_1 and gen_extend_insn.
19594 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19596 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19599 2019-07-15 Richard Biener <rguenther@suse.de>
19601 PR middle-end/91162
19602 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19603 node make sure to replace all uses with something valid.
19605 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19607 PR tree-optimization/88497
19608 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19609 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19610 function undistribute_bitref_for_vector.
19611 (undistribute_bitref_for_vector): New function.
19612 (cleanup_vinfo_map): Likewise.
19613 (sort_by_mach_mode): Likewise.
19615 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19617 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19618 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19619 and testdi_ccno_1 using SWI48 mode attribute.
19620 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19621 x86_64_szext_general_operand.
19622 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19623 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19624 instead of genera_operand mode attribute.
19626 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19628 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19629 fopen and fclose to their respective types.
19630 (DotFn.invoke): Ditto.
19632 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19634 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19635 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19636 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19637 (array_index_predicate): Remove.
19638 (analyze_function_body): Account cost for variable ofsetted array
19640 (estimate_node_size_and_time): Do not compute array index hint.
19641 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19642 (inline_read_section): Do not read array index hint.
19643 (ipa_fn_summary_write): Do not write array index hint.
19644 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19645 * ipa-cp.c (hint_time_bonus): Remove.
19646 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19647 (ipa_fnsummary): Remove array_index.
19648 * ipa-inline.c (want_inline_small_function_p): Do not use
19650 (edge_badness): Likewise.
19651 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19653 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19656 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19657 superfluous "builtin function" phrasing.
19659 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19661 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19663 (aliasing_component_refs_walk): Break out from ...
19664 (aliasing_component_refs_p): ... here.
19666 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19669 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19670 "builtin function" phrasing.
19672 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19675 * recog.h (temporary_volatile_ok): New class.
19676 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19677 volatile_ok temporarily to true using temporary_volatile_ok.
19678 * expr.c (emit_block_move_via_cpymem): Likewise.
19679 * optabs.c (maybe_legitimize_operand): Likewise.
19681 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19683 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19684 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19685 uses inside of order(concurrent) constructs.
19686 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19687 OMP_CLAUSE_ORDER is seen.
19688 * omp-low.c (struct omp_context): Add order_concurrent member.
19689 (scan_sharing_clauses): Set ctx->order_concurrent if
19690 OMP_CLAUSE_ORDER is seen.
19691 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19692 of simd order(concurrent). Diagnose constructs not allowed inside of
19693 for order(concurrent).
19694 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19695 complaining about static double setjmp (double); or class static
19696 methods or non-global namespace setjmps.
19697 (omp_runtime_api_call): New function.
19698 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19699 order(concurrent) loops.
19701 2019-07-12 Martin Sebor <msebor@redhat.com>
19703 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19704 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19705 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19706 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19708 2019-07-12 Jan Hubicka <jh@suse.cz>
19710 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19711 (indirect_refs_may_alias_p): ... here.
19712 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19713 mem refs in the access paths.
19715 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19717 PR tree-optimization/89430
19718 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19719 store elimination for local variable without address escape.
19721 2019-07-12 Jeff Law <law@redhat.com>
19723 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19724 for the ".far" section.
19726 2019-07-12 Richard Biener <rguenther@suse.de>
19728 PR tree-optimization/91145
19729 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19732 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19734 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19735 rather than this_state as the lowering context for the ELSE
19736 seq in a GIMPLE_EH_ELSE.
19738 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19740 * vector-builder.h (vector_builder::elt): Allow already-supplied
19741 elements to be read back before building is complete.
19743 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19745 PR rtl-optimization/91136
19746 * df-core.c (ACCESSING REFS): Fix typos in comment.
19747 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19748 the beginning of the block to the initial set of live registers.
19750 2019-07-12 Richard Biener <rguenther@suse.de>
19752 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19753 * fold-const.c (get_array_ctor_element_at_index): Add
19754 ctor_idx output parameter informing the caller where in
19755 the constructor the element was (not) found. Add early exit
19756 for when the ctor is sorted.
19757 * gimple-fold.c (fold_array_ctor_reference): Support constant
19758 folding across multiple array elements.
19760 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19762 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19763 doesn't have location, set the current location to the function's end.
19765 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19767 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19768 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19769 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19770 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19771 * config/aarch64/aarch64-simd.md
19772 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19773 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19774 * config/aarch64/aarch64-sve.md
19775 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19776 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19778 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19780 * doc/md.texi: Document that @ patterns can have different
19781 numbers of operands.
19782 * genemit.c (handle_overloaded_gen): Handle this case.
19783 * genopinit.c (handle_overloaded_gen): Likewise.
19784 * gensupport.c (replace_operands_with_dups): Iterate over
19785 the new rtx's format rather than the old one's.
19787 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19789 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19790 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19791 order clause entries.
19792 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19793 * tree-pretty-print.c (dump_omp_clause): Likewise.
19794 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19796 * omp-low.c (scan_sharing_clauses): Likewise.
19797 * tree-nested.c (convert_nonlocal_omp_clauses,
19798 convert_local_omp_clauses): Likewise.
19800 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19802 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19803 fallthrough target of current basic block isn't the placed
19806 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19809 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19810 (_mm512_storeu_epi64): Likewise.
19811 (_mm512_loadu_epi32): Likewise.
19812 (_mm512_storeu_epi32): Likewise.
19813 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19814 (_mm_storeu_epi64): Likewise.
19815 (_mm256_storeu_epi32): Likewise.
19816 (_mm_storeu_epi32): Likewise.
19818 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19820 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19822 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19824 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19827 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19830 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19831 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19832 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19833 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19834 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19835 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19837 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19838 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19839 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19841 (sse2_cvttpd2dq<mask_name>): Change into ...
19842 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19843 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19844 (*sse2_cvtpd2dq<mask_name>): Change into ...
19845 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19846 Add "C" constraint to const0_operand.
19847 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19848 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19852 * config/i386/i386-builtin-types.def
19853 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19854 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19855 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19856 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19857 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19858 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19859 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19860 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19861 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19862 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19863 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19864 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19865 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19866 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19867 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19868 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19869 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19870 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19871 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19872 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19873 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19874 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19875 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19876 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19877 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19878 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19879 __builtin_ia32_vpdpbusd_v4si_maskz,
19880 __builtin_ia32_vpdpbusds_v16si_mask,
19881 __builtin_ia32_vpdpbusds_v16si_maskz,
19882 __builtin_ia32_vpdpbusds_v8si_mask,
19883 __builtin_ia32_vpdpbusds_v8si_maskz,
19884 __builtin_ia32_vpdpbusds_v4si_mask,
19885 __builtin_ia32_vpdpbusds_v4si_maskz,
19886 __builtin_ia32_vpdpwssd_v16si_mask,
19887 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19888 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19889 __builtin_ia32_vpdpwssd_v4si_maskz,
19890 __builtin_ia32_vpdpwssds_v16si_mask,
19891 __builtin_ia32_vpdpwssds_v16si_maskz,
19892 __builtin_ia32_vpdpwssds_v8si_mask,
19893 __builtin_ia32_vpdpwssds_v8si_maskz,
19894 __builtin_ia32_vpdpwssds_v4si_mask,
19895 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19896 suffixed types rather than *_INT.
19897 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19898 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19899 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19900 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19901 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19902 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19904 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19906 * tree-vrp.c (intersect_ranges): If we know the intersection is
19907 empty, there is no need to conservatively add anything else to
19910 2019-07-11 Richard Biener <rguenther@suse.de>
19912 PR middle-end/91131
19913 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19914 when the object is volatile and we have not cleared it even though
19915 there are no nonzero elements.
19917 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19919 * config/rs6000/predicates.md (cint34_operand): Update
19920 SIGNED_34BIT_OFFSET_P call.
19921 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19922 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19923 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19924 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19925 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19927 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19928 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19929 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19930 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19931 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19933 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19935 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19936 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19937 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19938 (DEF_MIN_OSX_VERSION): New.
19940 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19942 * fold-const.c (fold_relational_const): Fix folding of
19943 vector-to-scalar NE_EXPRs.
19944 (test_vector_folding): Add more tests.
19946 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19949 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19950 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19951 (vec_setv2di_internal): Reexpress as...
19952 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19953 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19954 rather than gen_neon_vset_lane<mode>.
19956 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19959 * lra-constraints.c (process_alt_operands): Don't match user
19960 defined regs only if they are early clobbers.
19962 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19964 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19966 2019-07-10 Richard Biener <rguenther@suse.de>
19968 PR tree-optimization/91126
19969 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19970 native encoding offset for BYTES_BIG_ENDIAN.
19971 (vn_reference_lookup_3): Likewise.
19973 2019-07-10 Richard Biener <rguenther@suse.de>
19975 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19976 LHS whenever possible.
19978 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19980 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19981 from ...; work also on duplicated types.
19982 (nonoverlapping_component_refs_since_match): ... here
19983 (ncr_type_uid): Break out from ...
19984 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19986 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19987 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19989 2019-07-09 Martin Sebor <msebor@redhat.com>
19991 PR tree-optimization/90989
19992 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19993 optimization to just single character stores.
19995 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19997 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19998 Swap operands only once.
20000 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
20002 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
20003 for both call instructions.
20005 2019-07-09 John Darrington <john@darrington.wattle.id.au>
20007 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
20008 rather than GET_MODE_BITSIZE to better handle partial integer modes.
20010 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
20012 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
20013 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
20014 function from rs6000-logue.c back to rs6000.c.
20015 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
20017 2019-07-09 Martin Sebor <msebor@redhat.com>
20020 * auto-profile.c: Change class-key of PODs to struct and others
20022 * basic-block.h: Same.
20023 * bitmap.c (bitmap_alloc): Same.
20025 * builtins.c (expand_builtin_prefetch): Same.
20026 (expand_builtin_interclass_mathfn): Same.
20027 (expand_builtin_strlen): Same.
20028 (expand_builtin_mempcpy_args): Same.
20029 (expand_cmpstr): Same.
20030 (expand_builtin___clear_cache): Same.
20031 (expand_ifn_atomic_bit_test_and): Same.
20032 (expand_builtin_thread_pointer): Same.
20033 (expand_builtin_set_thread_pointer): Same.
20034 * caller-save.c (setup_save_areas): Same.
20035 (replace_reg_with_saved_mem): Same.
20036 (insert_restore): Same.
20037 (insert_save): Same.
20038 (add_used_regs): Same.
20039 * cfg.c (get_bb_copy): Same.
20040 (set_loop_copy): Same.
20043 * cfgexpand.c (alloc_stack_frame_space): Same.
20044 (add_stack_var): Same.
20045 (add_stack_var_conflict): Same.
20046 (add_scope_conflicts_1): Same.
20047 (update_alias_info_with_stack_vars): Same.
20048 (expand_used_vars): Same.
20049 * cfghooks.c (redirect_edge_and_branch_force): Same.
20050 (delete_basic_block): Same.
20051 (split_edge): Same.
20052 (make_forwarder_block): Same.
20053 (force_nonfallthru): Same.
20054 (duplicate_block): Same.
20055 (lv_flush_pending_stmts): Same.
20056 * cfghooks.h: Same.
20057 * cfgloop.c (flow_loops_cfg_dump): Same.
20058 (flow_loop_nested_p): Same.
20059 (superloop_at_depth): Same.
20060 (get_loop_latch_edges): Same.
20061 (flow_loop_dump): Same.
20062 (flow_loops_dump): Same.
20063 (flow_loops_free): Same.
20064 (flow_loop_nodes_find): Same.
20065 (establish_preds): Same.
20066 (flow_loop_tree_node_add): Same.
20067 (flow_loop_tree_node_remove): Same.
20068 (flow_loops_find): Same.
20069 (find_subloop_latch_edge_by_profile): Same.
20070 (find_subloop_latch_edge_by_ivs): Same.
20071 (mfb_redirect_edges_in_set): Same.
20072 (form_subloop): Same.
20073 (merge_latch_edges): Same.
20074 (disambiguate_multiple_latches): Same.
20075 (disambiguate_loops_with_multiple_latches): Same.
20076 (flow_bb_inside_loop_p): Same.
20077 (glb_enum_p): Same.
20078 (get_loop_body_with_size): Same.
20079 (get_loop_body): Same.
20080 (fill_sons_in_loop): Same.
20081 (get_loop_body_in_dom_order): Same.
20082 (get_loop_body_in_custom_order): Same.
20083 (release_recorded_exits): Same.
20084 (get_loop_exit_edges): Same.
20085 (num_loop_branches): Same.
20086 (remove_bb_from_loops): Same.
20087 (find_common_loop): Same.
20088 (delete_loop): Same.
20089 (cancel_loop): Same.
20090 (verify_loop_structure): Same.
20091 (loop_preheader_edge): Same.
20092 (loop_exit_edge_p): Same.
20093 (single_exit): Same.
20094 (loop_exits_to_bb_p): Same.
20095 (loop_exits_from_bb_p): Same.
20096 (get_loop_location): Same.
20097 (record_niter_bound): Same.
20098 (get_estimated_loop_iterations_int): Same.
20099 (max_stmt_executions_int): Same.
20100 (likely_max_stmt_executions_int): Same.
20101 (get_estimated_loop_iterations): Same.
20102 (get_max_loop_iterations): Same.
20103 (get_max_loop_iterations_int): Same.
20104 (get_likely_max_loop_iterations): Same.
20105 * cfgloop.h (simple_loop_desc): Same.
20107 (loop_depth): Same.
20108 (loop_outer): Same.
20109 (loop_iterator::next): Same.
20110 (loop_outermost): Same.
20111 * cfgloopanal.c (mark_irreducible_loops): Same.
20112 (num_loop_insns): Same.
20113 (average_num_loop_insns): Same.
20114 (expected_loop_iterations_unbounded): Same.
20115 (expected_loop_iterations): Same.
20116 (mark_loop_exit_edges): Same.
20117 (single_likely_exit): Same.
20118 * cfgloopmanip.c (fix_bb_placement): Same.
20119 (fix_bb_placements): Same.
20120 (remove_path): Same.
20121 (place_new_loop): Same.
20123 (scale_loop_frequencies): Same.
20124 (scale_loop_profile): Same.
20125 (create_empty_if_region_on_edge): Same.
20126 (create_empty_loop_on_edge): Same.
20129 (fix_loop_placements): Same.
20130 (copy_loop_info): Same.
20131 (duplicate_loop): Same.
20132 (duplicate_subloops): Same.
20133 (loop_redirect_edge): Same.
20134 (can_duplicate_loop_p): Same.
20135 (duplicate_loop_to_header_edge): Same.
20136 (mfb_keep_just): Same.
20137 (has_preds_from_loop): Same.
20138 (create_preheader): Same.
20139 (create_preheaders): Same.
20140 (lv_adjust_loop_entry_edge): Same.
20141 (loop_version): Same.
20142 * cfgloopmanip.h: Same.
20144 * cgraphbuild.c: Same.
20145 * combine.c (make_extraction): Same.
20146 * config/i386/i386-features.c: Same.
20147 * config/i386/i386-features.h: Same.
20148 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20149 (ix86_emit_outlined_ms2sysv_restore): Same.
20150 (ix86_noce_conversion_profitable_p): Same.
20151 (ix86_init_cost): Same.
20152 (ix86_simd_clone_usable): Same.
20153 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20155 * coretypes.h: Same.
20156 * data-streamer-in.c (string_for_index): Change class-key of PODs
20157 to struct and others to class.
20158 (streamer_read_indexed_string): Same.
20159 (streamer_read_string): Same.
20160 (bp_unpack_indexed_string): Same.
20161 (bp_unpack_string): Same.
20162 (streamer_read_uhwi): Same.
20163 (streamer_read_hwi): Same.
20164 (streamer_read_gcov_count): Same.
20165 (streamer_read_wide_int): Same.
20166 * data-streamer.h (streamer_write_bitpack): Same.
20167 (bp_unpack_value): Same.
20168 (streamer_write_char_stream): Same.
20169 (streamer_write_hwi_in_range): Same.
20170 (streamer_write_record_start): Same.
20171 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20172 (add_cross_iteration_register_deps): Same.
20173 (build_intra_loop_deps): Same.
20174 * df-core.c (df_analyze): Same.
20175 (loop_post_order_compute): Same.
20176 (loop_inverted_post_order_compute): Same.
20177 * df-problems.c (df_rd_alloc): Same.
20178 (df_rd_simulate_one_insn): Same.
20179 (df_rd_local_compute): Same.
20180 (df_rd_init_solution): Same.
20181 (df_rd_confluence_n): Same.
20182 (df_rd_transfer_function): Same.
20183 (df_rd_free): Same.
20184 (df_rd_dump_defs_set): Same.
20185 (df_rd_top_dump): Same.
20186 (df_lr_alloc): Same.
20187 (df_lr_reset): Same.
20188 (df_lr_local_compute): Same.
20189 (df_lr_init): Same.
20190 (df_lr_confluence_n): Same.
20191 (df_lr_free): Same.
20192 (df_lr_top_dump): Same.
20193 (df_lr_verify_transfer_functions): Same.
20194 (df_live_alloc): Same.
20195 (df_live_reset): Same.
20196 (df_live_init): Same.
20197 (df_live_confluence_n): Same.
20198 (df_live_finalize): Same.
20199 (df_live_free): Same.
20200 (df_live_top_dump): Same.
20201 (df_live_verify_transfer_functions): Same.
20202 (df_mir_alloc): Same.
20203 (df_mir_reset): Same.
20204 (df_mir_init): Same.
20205 (df_mir_confluence_n): Same.
20206 (df_mir_free): Same.
20207 (df_mir_top_dump): Same.
20208 (df_word_lr_alloc): Same.
20209 (df_word_lr_reset): Same.
20210 (df_word_lr_init): Same.
20211 (df_word_lr_confluence_n): Same.
20212 (df_word_lr_free): Same.
20213 (df_word_lr_top_dump): Same.
20214 (df_md_alloc): Same.
20215 (df_md_simulate_one_insn): Same.
20216 (df_md_reset): Same.
20217 (df_md_init): Same.
20218 (df_md_free): Same.
20219 (df_md_top_dump): Same.
20220 * df-scan.c (df_insn_delete): Same.
20221 (df_insn_rescan): Same.
20222 (df_notes_rescan): Same.
20223 (df_sort_and_compress_mws): Same.
20224 (df_install_mws): Same.
20225 (df_refs_add_to_chains): Same.
20226 (df_ref_create_structure): Same.
20227 (df_ref_record): Same.
20228 (df_def_record_1): Same.
20229 (df_find_hard_reg_defs): Same.
20230 (df_uses_record): Same.
20231 (df_get_conditional_uses): Same.
20232 (df_get_call_refs): Same.
20233 (df_recompute_luids): Same.
20234 (df_get_entry_block_def_set): Same.
20235 (df_entry_block_defs_collect): Same.
20236 (df_get_exit_block_use_set): Same.
20237 (df_exit_block_uses_collect): Same.
20238 (df_mws_verify): Same.
20239 (df_bb_verify): Same.
20240 * df.h (df_scan_get_bb_info): Same.
20241 * doc/tm.texi: Same.
20242 * dse.c (record_store): Same.
20243 * dumpfile.h: Same.
20244 * emit-rtl.c (const_fixed_hasher::equal): Same.
20245 (set_mem_attributes_minus_bitpos): Same.
20246 (change_address): Same.
20247 (adjust_address_1): Same.
20248 (offset_address): Same.
20249 * emit-rtl.h: Same.
20250 * except.c (dw2_build_landing_pads): Same.
20251 (sjlj_emit_dispatch_table): Same.
20252 * explow.c (allocate_dynamic_stack_space): Same.
20253 (emit_stack_probe): Same.
20254 (probe_stack_range): Same.
20255 * expmed.c (store_bit_field_using_insv): Same.
20256 (store_bit_field_1): Same.
20257 (store_integral_bit_field): Same.
20258 (extract_bit_field_using_extv): Same.
20259 (extract_bit_field_1): Same.
20260 (emit_cstore): Same.
20261 * expr.c (emit_block_move_via_cpymem): Same.
20262 (expand_cmpstrn_or_cmpmem): Same.
20263 (set_storage_via_setmem): Same.
20264 (emit_single_push_insn_1): Same.
20265 (expand_assignment): Same.
20266 (store_constructor): Same.
20267 (expand_expr_real_2): Same.
20268 (expand_expr_real_1): Same.
20269 (try_casesi): Same.
20271 * function.c (try_fit_stack_local): Same.
20272 (assign_stack_local_1): Same.
20273 (assign_stack_local): Same.
20274 (cut_slot_from_list): Same.
20275 (insert_slot_to_list): Same.
20276 (max_slot_level): Same.
20277 (move_slot_to_level): Same.
20278 (temp_address_hasher::equal): Same.
20279 (remove_unused_temp_slot_addresses): Same.
20280 (assign_temp): Same.
20281 (combine_temp_slots): Same.
20282 (update_temp_slot_address): Same.
20283 (preserve_temp_slots): Same.
20284 * function.h: Same.
20286 * gcc-rich-location.h: Same.
20288 * genattrtab.c (check_attr_test): Same.
20289 (check_attr_value): Same.
20290 (convert_set_attr_alternative): Same.
20291 (convert_set_attr): Same.
20292 (check_defs): Same.
20293 (copy_boolean): Same.
20294 (get_attr_value): Same.
20295 (expand_delays): Same.
20296 (make_length_attrs): Same.
20298 (make_alternative_compare): Same.
20299 (simplify_test_exp): Same.
20300 (tests_attr_p): Same.
20301 (get_attr_order): Same.
20302 (clear_struct_flag): Same.
20304 (compares_alternatives_p): Same.
20307 (find_attrs_to_cache): Same.
20308 (write_test_expr): Same.
20309 (walk_attr_value): Same.
20310 (write_attr_get): Same.
20311 (eliminate_known_true): Same.
20312 (write_insn_cases): Same.
20313 (write_attr_case): Same.
20314 (write_attr_valueq): Same.
20315 (write_attr_value): Same.
20316 (write_dummy_eligible_delay): Same.
20317 (next_comma_elt): Same.
20319 (make_internal_attr): Same.
20320 (copy_rtx_unchanging): Same.
20321 (gen_insn_reserv): Same.
20322 (check_tune_attr): Same.
20323 (make_automaton_attrs): Same.
20324 (handle_arg): Same.
20325 * genextract.c (gen_insn): Same.
20326 (VEC_char_to_string): Same.
20327 * genmatch.c (print_operand): Same.
20329 (parser::parse_operation): Same.
20330 (parser::parse_capture): Same.
20331 (parser::parse_c_expr): Same.
20332 (parser::parse_simplify): Same.
20334 * genoutput.c (output_operand_data): Same.
20335 (output_get_insn_name): Same.
20336 (compare_operands): Same.
20337 (place_operands): Same.
20338 (process_template): Same.
20339 (validate_insn_alternatives): Same.
20340 (validate_insn_operands): Same.
20341 (gen_expand): Same.
20342 (note_constraint): Same.
20343 * genpreds.c (write_one_predicate_function): Same.
20344 (add_constraint): Same.
20345 (process_define_register_constraint): Same.
20346 (write_lookup_constraint_1): Same.
20347 (write_lookup_constraint_array): Same.
20348 (write_insn_constraint_len): Same.
20349 (write_reg_class_for_constraint_1): Same.
20350 (write_constraint_satisfied_p_array): Same.
20351 * genrecog.c (optimize_subroutine_group): Same.
20352 * gensupport.c (process_define_predicate): Same.
20353 (queue_pattern): Same.
20354 (remove_from_queue): Same.
20355 (process_rtx): Same.
20356 (is_predicable): Same.
20357 (change_subst_attribute): Same.
20358 (subst_pattern_match): Same.
20359 (alter_constraints): Same.
20360 (alter_attrs_for_insn): Same.
20361 (shift_output_template): Same.
20362 (alter_output_for_subst_insn): Same.
20363 (process_one_cond_exec): Same.
20365 (process_define_cond_exec): Same.
20366 (mnemonic_htab_callback): Same.
20367 (gen_mnemonic_attr): Same.
20368 (read_md_rtx): Same.
20369 * ggc-page.c: Same.
20370 * gimple-loop-interchange.cc (dump_reduction): Same.
20371 (dump_induction): Same.
20372 (loop_cand::~loop_cand): Same.
20373 (free_data_refs_with_aux): Same.
20374 (tree_loop_interchange::interchange_loops): Same.
20375 (tree_loop_interchange::map_inductions_to_loop): Same.
20376 (tree_loop_interchange::move_code_to_inner_loop): Same.
20377 (compute_access_stride): Same.
20378 (compute_access_strides): Same.
20379 (proper_loop_form_for_interchange): Same.
20380 (tree_loop_interchange_compute_ddrs): Same.
20381 (prune_datarefs_not_in_loop): Same.
20382 (prepare_data_references): Same.
20383 (pass_linterchange::execute): Same.
20384 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20385 (unroll_jam_possible_p): Same.
20386 (fuse_loops): Same.
20387 (adjust_unroll_factor): Same.
20388 (tree_loop_unroll_and_jam): Same.
20389 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20390 (loop_versioning::expensive_stmt_p): Same.
20391 (loop_versioning::version_for_unity): Same.
20392 (loop_versioning::dump_inner_likelihood): Same.
20393 (loop_versioning::find_per_loop_multiplication): Same.
20394 (loop_versioning::analyze_term_using_scevs): Same.
20395 (loop_versioning::record_address_fragment): Same.
20396 (loop_versioning::analyze_expr): Same.
20397 (loop_versioning::analyze_blocks): Same.
20398 (loop_versioning::prune_conditions): Same.
20399 (loop_versioning::merge_loop_info): Same.
20400 (loop_versioning::add_loop_to_queue): Same.
20401 (loop_versioning::decide_whether_loop_is_versionable): Same.
20402 (loop_versioning::make_versioning_decisions): Same.
20403 (loop_versioning::implement_versioning_decisions): Same.
20404 * gimple-ssa-evrp-analyze.c
20405 (evrp_range_analyzer::record_ranges_from_phis): Same.
20406 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20407 (count_multiple_uses): Same.
20408 (split_group): Same.
20409 (imm_store_chain_info::output_merged_store): Same.
20410 (pass_store_merging::process_store): Same.
20411 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20412 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20414 (alloca_call_type): Same.
20415 (pass_walloca::execute): Same.
20416 * gimple-streamer-in.c (input_phi): Same.
20417 (input_gimple_stmt): Same.
20418 * gimple-streamer.h: Same.
20419 * godump.c (go_force_record_alignment): Same.
20420 (go_format_type): Same.
20421 (go_output_type): Same.
20422 (go_output_fndecl): Same.
20423 (go_output_typedef): Same.
20424 (keyword_hash_init): Same.
20425 (find_dummy_types): Same.
20426 * graph.c (draw_cfg_nodes_no_loops): Same.
20427 (draw_cfg_nodes_for_loop): Same.
20428 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20429 * hsa-brig.c: Same.
20430 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20431 * hsa-dump.c (dump_hsa_cfun): Same.
20432 * hsa-gen.c (gen_function_def_parameters): Same.
20433 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20434 * input.c (dump_line_table_statistics): Same.
20435 (test_lexer): Same.
20437 * internal-fn.c (get_multi_vector_move): Same.
20438 (expand_load_lanes_optab_fn): Same.
20439 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20440 (expand_GOMP_SIMT_EXIT): Same.
20441 (expand_GOMP_SIMT_LAST_LANE): Same.
20442 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20443 (expand_GOMP_SIMT_VOTE_ANY): Same.
20444 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20445 (expand_GOMP_SIMT_XCHG_IDX): Same.
20446 (expand_addsub_overflow): Same.
20447 (expand_neg_overflow): Same.
20448 (expand_mul_overflow): Same.
20449 (expand_call_mem_ref): Same.
20450 (expand_mask_load_optab_fn): Same.
20451 (expand_scatter_store_optab_fn): Same.
20452 (expand_gather_load_optab_fn): Same.
20453 * ipa-cp.c (ipa_get_parm_lattices): Same.
20454 (print_all_lattices): Same.
20455 (ignore_edge_p): Same.
20456 (build_toporder_info): Same.
20457 (free_toporder_info): Same.
20458 (push_node_to_stack): Same.
20459 (ipcp_lattice<valtype>::set_contains_variable): Same.
20460 (set_agg_lats_to_bottom): Same.
20461 (ipcp_bits_lattice::meet_with): Same.
20462 (set_single_call_flag): Same.
20463 (initialize_node_lattices): Same.
20464 (ipa_get_jf_ancestor_result): Same.
20465 (ipcp_verify_propagated_values): Same.
20466 (propagate_scalar_across_jump_function): Same.
20467 (propagate_context_across_jump_function): Same.
20468 (propagate_bits_across_jump_function): Same.
20469 (ipa_vr_operation_and_type_effects): Same.
20470 (propagate_vr_across_jump_function): Same.
20471 (set_check_aggs_by_ref): Same.
20472 (set_chain_of_aglats_contains_variable): Same.
20473 (merge_aggregate_lattices): Same.
20474 (agg_pass_through_permissible_p): Same.
20475 (propagate_aggs_across_jump_function): Same.
20476 (call_passes_through_thunk_p): Same.
20477 (propagate_constants_across_call): Same.
20478 (devirtualization_time_bonus): Same.
20479 (good_cloning_opportunity_p): Same.
20480 (context_independent_aggregate_values): Same.
20481 (gather_context_independent_values): Same.
20482 (perform_estimation_of_a_value): Same.
20483 (estimate_local_effects): Same.
20484 (value_topo_info<valtype>::add_val): Same.
20485 (add_all_node_vals_to_toposort): Same.
20486 (value_topo_info<valtype>::propagate_effects): Same.
20487 (ipcp_propagate_stage): Same.
20488 (ipcp_discover_new_direct_edges): Same.
20489 (same_node_or_its_all_contexts_clone_p): Same.
20490 (cgraph_edge_brings_value_p): Same.
20491 (gather_edges_for_value): Same.
20492 (create_specialized_node): Same.
20493 (find_more_scalar_values_for_callers_subset): Same.
20494 (find_more_contexts_for_caller_subset): Same.
20495 (copy_plats_to_inter): Same.
20496 (intersect_aggregates_with_edge): Same.
20497 (find_aggregate_values_for_callers_subset): Same.
20498 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20499 (decide_about_value): Same.
20500 (decide_whether_version_node): Same.
20501 (spread_undeadness): Same.
20502 (identify_dead_nodes): Same.
20503 (ipcp_store_vr_results): Same.
20504 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20505 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20506 (redirect_to_unreachable): Same.
20507 (edge_set_predicate): Same.
20508 (evaluate_conditions_for_known_args): Same.
20509 (evaluate_properties_for_edge): Same.
20510 (ipa_fn_summary_t::duplicate): Same.
20511 (ipa_call_summary_t::duplicate): Same.
20512 (dump_ipa_call_summary): Same.
20513 (ipa_dump_fn_summary): Same.
20514 (eliminated_by_inlining_prob): Same.
20515 (set_cond_stmt_execution_predicate): Same.
20516 (set_switch_stmt_execution_predicate): Same.
20517 (compute_bb_predicates): Same.
20518 (will_be_nonconstant_expr_predicate): Same.
20519 (phi_result_unknown_predicate): Same.
20520 (analyze_function_body): Same.
20521 (compute_fn_summary): Same.
20522 (estimate_edge_devirt_benefit): Same.
20523 (estimate_edge_size_and_time): Same.
20524 (estimate_calls_size_and_time): Same.
20525 (estimate_node_size_and_time): Same.
20526 (remap_edge_change_prob): Same.
20527 (remap_edge_summaries): Same.
20528 (ipa_merge_fn_summary_after_inlining): Same.
20529 (ipa_fn_summary_generate): Same.
20530 (inline_read_section): Same.
20531 (ipa_fn_summary_read): Same.
20532 (ipa_fn_summary_write): Same.
20533 * ipa-fnsummary.h: Same.
20534 * ipa-hsa.c (ipa_hsa_read_section): Same.
20535 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20536 * ipa-icf.c (sem_function::param_used_p): Same.
20537 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20538 * ipa-inline.c (edge_badness): Same.
20539 (inline_small_functions): Same.
20540 * ipa-polymorphic-call.c
20541 (ipa_polymorphic_call_context::stream_out): Same.
20542 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20543 (predicate::remap_after_inlining): Same.
20544 (predicate::stream_out): Same.
20545 * ipa-predicate.h: Same.
20546 * ipa-profile.c (ipa_profile_read_summary): Same.
20547 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20548 (count_formal_params): Same.
20549 (ipa_dump_param): Same.
20550 (ipa_alloc_node_params): Same.
20551 (ipa_print_node_jump_functions_for_edge): Same.
20552 (ipa_print_node_jump_functions): Same.
20553 (ipa_load_from_parm_agg): Same.
20554 (get_ancestor_addr_info): Same.
20555 (ipa_compute_jump_functions_for_edge): Same.
20556 (ipa_analyze_virtual_call_uses): Same.
20557 (ipa_analyze_stmt_uses): Same.
20558 (ipa_analyze_params_uses_in_bb): Same.
20559 (update_jump_functions_after_inlining): Same.
20560 (try_decrement_rdesc_refcount): Same.
20561 (ipa_impossible_devirt_target): Same.
20562 (update_indirect_edges_after_inlining): Same.
20563 (combine_controlled_uses_counters): Same.
20564 (ipa_edge_args_sum_t::duplicate): Same.
20565 (ipa_write_jump_function): Same.
20566 (ipa_write_indirect_edge_info): Same.
20567 (ipa_write_node_info): Same.
20568 (ipa_read_edge_info): Same.
20569 (ipa_prop_read_section): Same.
20570 (read_replacements_section): Same.
20571 * ipa-prop.h (ipa_get_param_count): Same.
20572 (ipa_get_param): Same.
20573 (ipa_get_type): Same.
20574 (ipa_get_param_move_cost): Same.
20575 (ipa_set_param_used): Same.
20576 (ipa_get_controlled_uses): Same.
20577 (ipa_set_controlled_uses): Same.
20578 (ipa_get_cs_argument_count): Same.
20579 * ipa-pure-const.c (analyze_function): Same.
20580 (pure_const_read_summary): Same.
20582 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20583 * ipa-split.c (test_nonssa_use): Same.
20584 (dump_split_point): Same.
20585 (dominated_by_forbidden): Same.
20586 (split_part_set_ssa_name_p): Same.
20587 (find_split_points): Same.
20588 * ira-build.c (finish_loop_tree_nodes): Same.
20589 (low_pressure_loop_node_p): Same.
20590 * ira-color.c (ira_reuse_stack_slot): Same.
20592 * ira.c (setup_reg_equiv): Same.
20593 (print_insn_chain): Same.
20595 * loop-doloop.c (doloop_condition_get): Same.
20597 (record_reg_sets): Same.
20598 (doloop_optimize): Same.
20599 * loop-init.c (loop_optimizer_init): Same.
20600 (fix_loop_structure): Same.
20601 * loop-invariant.c (merge_identical_invariants): Same.
20602 (compute_always_reached): Same.
20603 (find_exits): Same.
20604 (may_assign_reg_p): Same.
20605 (find_invariants_bb): Same.
20606 (find_invariants_body): Same.
20607 (replace_uses): Same.
20608 (can_move_invariant_reg): Same.
20609 (free_inv_motion_data): Same.
20610 (move_single_loop_invariants): Same.
20611 (change_pressure): Same.
20612 (mark_ref_regs): Same.
20613 (calculate_loop_reg_pressure): Same.
20614 * loop-iv.c (biv_entry_hasher::equal): Same.
20615 (iv_extend_to_rtx_code): Same.
20616 (check_iv_ref_table_size): Same.
20617 (clear_iv_info): Same.
20618 (latch_dominating_def): Same.
20619 (iv_get_reaching_def): Same.
20620 (iv_constant): Same.
20626 (get_biv_step): Same.
20628 (analyzed_for_bivness_p): Same.
20629 (record_biv): Same.
20630 (iv_analyze_biv): Same.
20631 (iv_analyze_expr): Same.
20632 (iv_analyze_def): Same.
20633 (iv_analyze_op): Same.
20634 (iv_analyze): Same.
20635 (iv_analyze_result): Same.
20637 (eliminate_implied_conditions): Same.
20638 (simplify_using_initial_values): Same.
20639 (shorten_into_mode): Same.
20640 (canonicalize_iv_subregs): Same.
20641 (determine_max_iter): Same.
20642 (check_simple_exit): Same.
20643 (find_simple_exit): Same.
20644 (get_simple_loop_desc): Same.
20645 * loop-unroll.c (report_unroll): Same.
20646 (decide_unrolling): Same.
20647 (unroll_loops): Same.
20648 (loop_exit_at_end_p): Same.
20649 (decide_unroll_constant_iterations): Same.
20650 (unroll_loop_constant_iterations): Same.
20651 (compare_and_jump_seq): Same.
20652 (unroll_loop_runtime_iterations): Same.
20653 (decide_unroll_stupid): Same.
20654 (unroll_loop_stupid): Same.
20655 (referenced_in_one_insn_in_loop_p): Same.
20656 (reset_debug_uses_in_loop): Same.
20657 (analyze_iv_to_split_insn): Same.
20658 * lra-eliminations.c (lra_debug_elim_table): Same.
20659 (setup_can_eliminate): Same.
20661 (lra_get_elimination_hard_regno): Same.
20662 (lra_eliminate_regs_1): Same.
20663 (eliminate_regs_in_insn): Same.
20664 (update_reg_eliminate): Same.
20665 (init_elimination): Same.
20666 (lra_eliminate): Same.
20668 * lra-lives.c (initiate_live_solver): Same.
20669 * lra-remat.c (create_remat_bb_data): Same.
20670 * lra-spills.c (lra_spill): Same.
20671 * lra.c (lra_set_insn_recog_data): Same.
20672 (lra_set_used_insn_alternative_by_uid): Same.
20673 (init_reg_info): Same.
20674 (expand_reg_info): Same.
20675 * lto-cgraph.c (output_symtab): Same.
20676 (read_identifier): Same.
20677 (get_alias_symbol): Same.
20678 (input_node): Same.
20679 (input_varpool_node): Same.
20681 (input_edge): Same.
20682 (input_cgraph_1): Same.
20683 (input_refs): Same.
20684 (input_symtab): Same.
20685 (input_offload_tables): Same.
20686 (output_cgraph_opt_summary): Same.
20687 (input_edge_opt_summary): Same.
20688 (input_cgraph_opt_section): Same.
20689 * lto-section-in.c (lto_free_raw_section_data): Same.
20690 (lto_create_simple_input_block): Same.
20691 (lto_free_function_in_decl_state_for_node): Same.
20692 * lto-streamer-in.c (lto_tag_check_set): Same.
20693 (lto_location_cache::revert_location_cache): Same.
20694 (lto_location_cache::input_location): Same.
20695 (lto_input_location): Same.
20696 (stream_input_location_now): Same.
20697 (lto_input_tree_ref): Same.
20698 (lto_input_eh_catch_list): Same.
20699 (input_eh_region): Same.
20700 (lto_init_eh): Same.
20701 (make_new_block): Same.
20703 (fixup_call_stmt_edges): Same.
20704 (input_struct_function_base): Same.
20705 (input_function): Same.
20706 (lto_read_body_or_constructor): Same.
20707 (lto_read_tree_1): Same.
20708 (lto_read_tree): Same.
20709 (lto_input_scc): Same.
20710 (lto_input_tree_1): Same.
20711 (lto_input_toplevel_asms): Same.
20712 (lto_input_mode_table): Same.
20713 (lto_reader_init): Same.
20714 (lto_data_in_create): Same.
20715 * lto-streamer-out.c (output_cfg): Same.
20716 * lto-streamer.h: Same.
20717 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20718 (generate_prolog_epilog): Same.
20719 (mark_loop_unsched): Same.
20720 (dump_insn_location): Same.
20721 (loop_canon_p): Same.
20722 (sms_schedule): Same.
20723 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20724 (expand_omp_for_generic): Same.
20725 (expand_omp_for_static_nochunk): Same.
20726 (expand_omp_for_static_chunk): Same.
20727 (expand_omp_simd): Same.
20728 (expand_omp_taskloop_for_inner): Same.
20729 (expand_oacc_for): Same.
20730 (expand_omp_atomic_pipeline): Same.
20731 (mark_loops_in_oacc_kernels_region): Same.
20732 * omp-offload.c (oacc_xform_loop): Same.
20733 * omp-simd-clone.c (simd_clone_adjust): Same.
20734 * optabs-query.c (get_traditional_extraction_insn): Same.
20735 * optabs.c (expand_vector_broadcast): Same.
20736 (expand_binop_directly): Same.
20737 (expand_twoval_unop): Same.
20738 (expand_twoval_binop): Same.
20739 (expand_unop_direct): Same.
20740 (emit_indirect_jump): Same.
20741 (emit_conditional_move): Same.
20742 (emit_conditional_neg_or_complement): Same.
20743 (emit_conditional_add): Same.
20744 (vector_compare_rtx): Same.
20745 (expand_vec_perm_1): Same.
20746 (expand_vec_perm_const): Same.
20747 (expand_vec_cond_expr): Same.
20748 (expand_vec_series_expr): Same.
20749 (maybe_emit_atomic_exchange): Same.
20750 (maybe_emit_sync_lock_test_and_set): Same.
20751 (expand_atomic_compare_and_swap): Same.
20752 (expand_atomic_load): Same.
20753 (expand_atomic_store): Same.
20754 (maybe_emit_op): Same.
20755 (valid_multiword_target_p): Same.
20756 (create_integer_operand): Same.
20757 (maybe_legitimize_operand_same_code): Same.
20758 (maybe_legitimize_operand): Same.
20759 (create_convert_operand_from_type): Same.
20760 (can_reuse_operands_p): Same.
20761 (maybe_legitimize_operands): Same.
20762 (maybe_gen_insn): Same.
20763 (maybe_expand_insn): Same.
20764 (maybe_expand_jump_insn): Same.
20765 (expand_insn): Same.
20766 * optabs.h (create_expand_operand): Same.
20767 (create_fixed_operand): Same.
20768 (create_output_operand): Same.
20769 (create_input_operand): Same.
20770 (create_convert_operand_to): Same.
20771 (create_convert_operand_from): Same.
20773 * poly-int.h: Same.
20774 * predict.c (optimize_insn_for_speed_p): Same.
20775 (optimize_loop_for_size_p): Same.
20776 (optimize_loop_for_speed_p): Same.
20777 (optimize_loop_nest_for_speed_p): Same.
20778 (get_base_value): Same.
20779 (predicted_by_loop_heuristics_p): Same.
20780 (predict_extra_loop_exits): Same.
20781 (predict_loops): Same.
20782 (predict_paths_for_bb): Same.
20783 (predict_paths_leading_to): Same.
20784 (propagate_freq): Same.
20785 (pass_profile::execute): Same.
20787 * profile-count.c (profile_count::differs_from_p): Same.
20788 (profile_probability::differs_lot_from_p): Same.
20789 * profile-count.h: Same.
20790 * profile.c (branch_prob): Same.
20791 * regrename.c (free_chain_data): Same.
20792 (mark_conflict): Same.
20793 (create_new_chain): Same.
20794 (merge_overlapping_regs): Same.
20795 (init_rename_info): Same.
20796 (merge_chains): Same.
20797 (regrename_analyze): Same.
20798 (regrename_do_replace): Same.
20799 (scan_rtx_reg): Same.
20800 (record_out_operands): Same.
20801 (build_def_use): Same.
20802 * regrename.h: Same.
20804 * reload1.c (init_reload): Same.
20805 (maybe_fix_stack_asms): Same.
20806 (copy_reloads): Same.
20807 (count_pseudo): Same.
20808 (count_spilled_pseudo): Same.
20810 (find_reload_regs): Same.
20811 (select_reload_regs): Same.
20812 (spill_hard_reg): Same.
20813 (fixup_eh_region_note): Same.
20814 (set_reload_reg): Same.
20815 (allocate_reload_reg): Same.
20816 (compute_reload_subreg_offset): Same.
20817 (reload_adjust_reg_for_icode): Same.
20818 (emit_input_reload_insns): Same.
20819 (emit_output_reload_insns): Same.
20820 (do_input_reload): Same.
20821 (inherit_piecemeal_p): Same.
20823 * sanopt.c (maybe_get_dominating_check): Same.
20824 (maybe_optimize_ubsan_ptr_ifn): Same.
20825 (can_remove_asan_check): Same.
20826 (maybe_optimize_asan_check_ifn): Same.
20827 (sanopt_optimize_walker): Same.
20828 * sched-deps.c (add_dependence_list): Same.
20829 (chain_to_prev_insn): Same.
20830 (add_insn_mem_dependence): Same.
20831 (create_insn_reg_set): Same.
20832 (maybe_extend_reg_info_p): Same.
20833 (sched_analyze_reg): Same.
20834 (sched_analyze_1): Same.
20835 (get_implicit_reg_pending_clobbers): Same.
20836 (chain_to_prev_insn_p): Same.
20837 (deps_analyze_insn): Same.
20838 (deps_start_bb): Same.
20839 (sched_free_deps): Same.
20841 (init_deps_reg_last): Same.
20843 * sched-ebb.c: Same.
20844 * sched-int.h: Same.
20845 * sched-rgn.c (add_branch_dependences): Same.
20846 (concat_insn_mem_list): Same.
20848 (sched_rgn_compute_dependencies): Same.
20849 * sel-sched-ir.c (reset_target_context): Same.
20850 (copy_deps_context): Same.
20851 (init_id_from_df): Same.
20852 (has_dependence_p): Same.
20853 (change_loops_latches): Same.
20854 (bb_top_order_comparator): Same.
20855 (make_region_from_loop_preheader): Same.
20856 (sel_init_pipelining): Same.
20857 (get_loop_nest_for_rgn): Same.
20858 (make_regions_from_the_rest): Same.
20859 (sel_is_loop_preheader_p): Same.
20860 * sel-sched-ir.h (inner_loop_header_p): Same.
20861 (get_all_loop_exits): Same.
20862 * selftest.h: Same.
20863 * sese.c (sese_build_liveouts): Same.
20864 (sese_insert_phis_for_liveouts): Same.
20865 * sese.h (defined_in_sese_p): Same.
20866 * sreal.c (sreal::stream_out): Same.
20868 * streamer-hooks.h: Same.
20869 * target-globals.c (save_target_globals): Same.
20870 * target-globals.h: Same.
20871 * target.def: Same.
20873 * targhooks.c (default_has_ifunc_p): Same.
20874 (default_empty_mask_is_expensive): Same.
20875 (default_init_cost): Same.
20876 * targhooks.h: Same.
20878 * tree-affine.c (aff_combination_mult): Same.
20879 (aff_combination_expand): Same.
20880 (aff_combination_constant_multiple_p): Same.
20881 * tree-affine.h: Same.
20882 * tree-cfg.c (build_gimple_cfg): Same.
20883 (replace_loop_annotate_in_block): Same.
20884 (replace_uses_by): Same.
20886 (dump_cfg_stats): Same.
20887 (gimple_duplicate_sese_region): Same.
20888 (gimple_duplicate_sese_tail): Same.
20889 (move_block_to_fn): Same.
20890 (replace_block_vars_by_duplicates): Same.
20891 (move_sese_region_to_fn): Same.
20892 (print_loops_bb): Same.
20893 (print_loop): Same.
20894 (print_loops): Same.
20896 (debug_loops): Same.
20897 * tree-cfg.h: Same.
20898 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20899 (chrec_fold_multiply_poly_poly): Same.
20900 (chrec_evaluate): Same.
20901 (chrec_component_in_loop_num): Same.
20902 (reset_evolution_in_loop): Same.
20903 (is_multivariate_chrec): Same.
20904 (chrec_contains_symbols): Same.
20905 (nb_vars_in_chrec): Same.
20906 (chrec_convert_1): Same.
20907 (chrec_convert_aggressive): Same.
20908 * tree-chrec.h: Same.
20909 * tree-core.h: Same.
20910 * tree-data-ref.c (dump_data_dependence_relation): Same.
20911 (canonicalize_base_object_address): Same.
20912 (data_ref_compare_tree): Same.
20913 (prune_runtime_alias_test_list): Same.
20914 (get_segment_min_max): Same.
20915 (create_intersect_range_checks): Same.
20916 (conflict_fn_no_dependence): Same.
20917 (object_address_invariant_in_loop_p): Same.
20918 (analyze_ziv_subscript): Same.
20919 (analyze_siv_subscript_cst_affine): Same.
20920 (analyze_miv_subscript): Same.
20921 (analyze_overlapping_iterations): Same.
20922 (build_classic_dist_vector_1): Same.
20923 (add_other_self_distances): Same.
20924 (same_access_functions): Same.
20925 (build_classic_dir_vector): Same.
20926 (subscript_dependence_tester_1): Same.
20927 (subscript_dependence_tester): Same.
20928 (access_functions_are_affine_or_constant_p): Same.
20929 (get_references_in_stmt): Same.
20930 (loop_nest_has_data_refs): Same.
20931 (graphite_find_data_references_in_stmt): Same.
20932 (find_data_references_in_bb): Same.
20933 (get_base_for_alignment): Same.
20934 (find_loop_nest_1): Same.
20935 (find_loop_nest): Same.
20936 * tree-data-ref.h (dr_alignment): Same.
20937 (ddr_dependence_level): Same.
20938 * tree-if-conv.c (fold_build_cond_expr): Same.
20939 (add_to_predicate_list): Same.
20940 (add_to_dst_predicate_list): Same.
20941 (phi_convertible_by_degenerating_args): Same.
20942 (idx_within_array_bound): Same.
20943 (all_preds_critical_p): Same.
20944 (pred_blocks_visited_p): Same.
20945 (predicate_bbs): Same.
20946 (build_region): Same.
20947 (if_convertible_loop_p_1): Same.
20948 (is_cond_scalar_reduction): Same.
20949 (predicate_scalar_phi): Same.
20950 (remove_conditions_and_labels): Same.
20951 (combine_blocks): Same.
20952 (version_loop_for_if_conversion): Same.
20953 (versionable_outer_loop_p): Same.
20954 (ifcvt_local_dce): Same.
20955 (tree_if_conversion): Same.
20956 (pass_if_conversion::gate): Same.
20957 * tree-if-conv.h: Same.
20958 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20959 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20961 (stmt_has_scalar_dependences_outside_loop): Same.
20962 (copy_loop_before): Same.
20963 (create_bb_after_loop): Same.
20964 (const_with_all_bytes_same): Same.
20965 (generate_memset_builtin): Same.
20966 (generate_memcpy_builtin): Same.
20967 (destroy_loop): Same.
20968 (build_rdg_partition_for_vertex): Same.
20969 (compute_access_range): Same.
20970 (data_ref_segment_size): Same.
20971 (latch_dominated_by_data_ref): Same.
20972 (compute_alias_check_pairs): Same.
20973 (fuse_memset_builtins): Same.
20974 (finalize_partitions): Same.
20975 (find_seed_stmts_for_distribution): Same.
20976 (prepare_perfect_loop_nest): Same.
20977 * tree-parloops.c (lambda_transform_legal_p): Same.
20978 (loop_parallel_p): Same.
20979 (reduc_stmt_res): Same.
20980 (add_field_for_name): Same.
20981 (create_call_for_reduction_1): Same.
20982 (replace_uses_in_bb_by): Same.
20983 (transform_to_exit_first_loop_alt): Same.
20984 (try_transform_to_exit_first_loop_alt): Same.
20985 (transform_to_exit_first_loop): Same.
20987 (gen_parallel_loop): Same.
20988 (gather_scalar_reductions): Same.
20989 (get_omp_data_i_param): Same.
20990 (try_create_reduction_list): Same.
20991 (oacc_entry_exit_single_gang): Same.
20992 (parallelize_loops): Same.
20993 * tree-pass.h: Same.
20994 * tree-predcom.c (determine_offset): Same.
20995 (last_always_executed_block): Same.
20996 (split_data_refs_to_components): Same.
20997 (suitable_component_p): Same.
20998 (valid_initializer_p): Same.
20999 (find_looparound_phi): Same.
21000 (insert_looparound_copy): Same.
21001 (add_looparound_copies): Same.
21002 (determine_roots_comp): Same.
21003 (predcom_tmp_var): Same.
21004 (initialize_root_vars): Same.
21005 (initialize_root_vars_store_elim_1): Same.
21006 (initialize_root_vars_store_elim_2): Same.
21007 (finalize_eliminated_stores): Same.
21008 (initialize_root_vars_lm): Same.
21009 (remove_stmt): Same.
21010 (determine_unroll_factor): Same.
21011 (execute_pred_commoning_cbck): Same.
21012 (base_names_in_chain_on): Same.
21013 (combine_chains): Same.
21014 (pcom_stmt_dominates_stmt_p): Same.
21015 (try_combine_chains): Same.
21016 (prepare_initializers_chain_store_elim): Same.
21017 (prepare_initializers_chain): Same.
21018 (prepare_initializers): Same.
21019 (prepare_finalizers_chain): Same.
21020 (prepare_finalizers): Same.
21021 (insert_init_seqs): Same.
21022 * tree-scalar-evolution.c (loop_phi_node_p): Same.
21023 (compute_overall_effect_of_inner_loop): Same.
21024 (add_to_evolution_1): Same.
21025 (add_to_evolution): Same.
21026 (follow_ssa_edge_binary): Same.
21027 (follow_ssa_edge_expr): Same.
21028 (backedge_phi_arg_p): Same.
21029 (follow_ssa_edge_in_condition_phi_branch): Same.
21030 (follow_ssa_edge_in_condition_phi): Same.
21031 (follow_ssa_edge_inner_loop_phi): Same.
21032 (follow_ssa_edge): Same.
21033 (analyze_evolution_in_loop): Same.
21034 (analyze_initial_condition): Same.
21035 (interpret_loop_phi): Same.
21036 (interpret_condition_phi): Same.
21037 (interpret_rhs_expr): Same.
21038 (interpret_expr): Same.
21039 (interpret_gimple_assign): Same.
21040 (analyze_scalar_evolution_1): Same.
21041 (analyze_scalar_evolution): Same.
21042 (analyze_scalar_evolution_for_address_of): Same.
21043 (get_instantiated_value_entry): Same.
21044 (loop_closed_phi_def): Same.
21045 (instantiate_scev_name): Same.
21046 (instantiate_scev_poly): Same.
21047 (instantiate_scev_binary): Same.
21048 (instantiate_scev_convert): Same.
21049 (instantiate_scev_not): Same.
21050 (instantiate_scev_r): Same.
21051 (instantiate_scev): Same.
21052 (resolve_mixers): Same.
21053 (initialize_scalar_evolutions_analyzer): Same.
21054 (scev_reset_htab): Same.
21055 (scev_reset): Same.
21056 (derive_simple_iv_with_niters): Same.
21057 (simple_iv_with_niters): Same.
21058 (expression_expensive_p): Same.
21059 (final_value_replacement_loop): Same.
21060 * tree-scalar-evolution.h (block_before_loop): Same.
21061 * tree-ssa-address.h: Same.
21062 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
21063 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
21064 (record_edge_info): Same.
21065 * tree-ssa-live.c (var_map_base_fini): Same.
21066 (remove_unused_locals): Same.
21067 * tree-ssa-live.h: Same.
21068 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
21069 (pass_ch_vect::execute): Same.
21070 (pass_ch::process_loop_p): Same.
21071 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
21072 (movement_possibility): Same.
21073 (outermost_invariant_loop): Same.
21075 (determine_max_movement): Same.
21076 (invariantness_dom_walker::before_dom_children): Same.
21077 (move_computations): Same.
21078 (may_move_till): Same.
21079 (force_move_till_op): Same.
21080 (force_move_till): Same.
21081 (memref_free): Same.
21082 (record_mem_ref_loc): Same.
21083 (set_ref_stored_in_loop): Same.
21084 (mark_ref_stored): Same.
21085 (sort_bbs_in_loop_postorder_cmp): Same.
21086 (sort_locs_in_loop_postorder_cmp): Same.
21087 (analyze_memory_references): Same.
21088 (mem_refs_may_alias_p): Same.
21089 (find_ref_loc_in_loop_cmp): Same.
21090 (rewrite_mem_ref_loc::operator): Same.
21091 (first_mem_ref_loc_1::operator): Same.
21092 (sm_set_flag_if_changed::operator): Same.
21093 (execute_sm_if_changed_flag_set): Same.
21094 (execute_sm): Same.
21095 (hoist_memory_references): Same.
21096 (ref_always_accessed::operator): Same.
21097 (refs_independent_p): Same.
21098 (record_dep_loop): Same.
21099 (ref_indep_loop_p_1): Same.
21100 (ref_indep_loop_p): Same.
21101 (can_sm_ref_p): Same.
21102 (find_refs_for_sm): Same.
21103 (loop_suitable_for_sm): Same.
21104 (store_motion_loop): Same.
21105 (store_motion): Same.
21106 (fill_always_executed_in): Same.
21107 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21108 (estimated_unrolled_size): Same.
21109 (loop_edge_to_cancel): Same.
21110 (remove_exits_and_undefined_stmts): Same.
21111 (remove_redundant_iv_tests): Same.
21112 (unloop_loops): Same.
21113 (estimated_peeled_sequence_size): Same.
21114 (try_peel_loop): Same.
21115 (canonicalize_loop_induction_variables): Same.
21116 (canonicalize_induction_variables): Same.
21117 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21119 (stmt_after_inc_pos): Same.
21120 (contains_abnormal_ssa_name_p): Same.
21121 (niter_for_exit): Same.
21124 (find_givs_in_bb): Same.
21125 (find_induction_variables): Same.
21126 (find_interesting_uses_cond): Same.
21127 (outermost_invariant_loop_for_expr): Same.
21128 (idx_find_step): Same.
21129 (add_candidate_1): Same.
21130 (add_iv_candidate_derived_from_uses): Same.
21131 (alloc_use_cost_map): Same.
21132 (prepare_decl_rtl): Same.
21133 (generic_predict_doloop_p): Same.
21134 (computation_cost): Same.
21135 (determine_common_wider_type): Same.
21136 (get_computation_aff_1): Same.
21137 (get_use_type): Same.
21138 (determine_group_iv_cost_address): Same.
21140 (difference_cannot_overflow_p): Same.
21141 (may_eliminate_iv): Same.
21142 (determine_set_costs): Same.
21143 (cheaper_cost_pair): Same.
21144 (compare_cost_pair): Same.
21145 (iv_ca_cand_for_group): Same.
21146 (iv_ca_recount_cost): Same.
21147 (iv_ca_set_remove_invs): Same.
21148 (iv_ca_set_no_cp): Same.
21149 (iv_ca_set_add_invs): Same.
21150 (iv_ca_set_cp): Same.
21151 (iv_ca_add_group): Same.
21152 (iv_ca_cost): Same.
21153 (iv_ca_compare_deps): Same.
21154 (iv_ca_delta_reverse): Same.
21155 (iv_ca_delta_commit): Same.
21156 (iv_ca_cand_used_p): Same.
21157 (iv_ca_delta_free): Same.
21159 (iv_ca_free): Same.
21160 (iv_ca_dump): Same.
21161 (iv_ca_extend): Same.
21162 (iv_ca_narrow): Same.
21163 (iv_ca_prune): Same.
21164 (cheaper_cost_with_cand): Same.
21165 (iv_ca_replace): Same.
21166 (try_add_cand_for): Same.
21167 (get_initial_solution): Same.
21168 (try_improve_iv_set): Same.
21169 (find_optimal_iv_set_1): Same.
21170 (create_new_iv): Same.
21171 (rewrite_use_compare): Same.
21172 (remove_unused_ivs): Same.
21173 (determine_scaling_factor): Same.
21174 * tree-ssa-loop-ivopts.h: Same.
21175 * tree-ssa-loop-manip.c (create_iv): Same.
21176 (compute_live_loop_exits): Same.
21177 (add_exit_phi): Same.
21178 (add_exit_phis): Same.
21179 (find_uses_to_rename_use): Same.
21180 (find_uses_to_rename_def): Same.
21181 (find_uses_to_rename_in_loop): Same.
21182 (rewrite_into_loop_closed_ssa): Same.
21183 (check_loop_closed_ssa_bb): Same.
21184 (split_loop_exit_edge): Same.
21185 (ip_end_pos): Same.
21186 (ip_normal_pos): Same.
21187 (copy_phi_node_args): Same.
21188 (gimple_duplicate_loop_to_header_edge): Same.
21189 (can_unroll_loop_p): Same.
21190 (determine_exit_conditions): Same.
21191 (scale_dominated_blocks_in_loop): Same.
21192 (niter_for_unrolled_loop): Same.
21193 (tree_transform_and_unroll_loop): Same.
21194 (rewrite_all_phi_nodes_with_iv): Same.
21195 * tree-ssa-loop-manip.h: Same.
21196 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21197 (number_of_iterations_ne): Same.
21198 (assert_no_overflow_lt): Same.
21199 (assert_loop_rolls_lt): Same.
21200 (number_of_iterations_lt): Same.
21201 (adjust_cond_for_loop_until_wrap): Same.
21202 (tree_simplify_using_condition): Same.
21203 (simplify_using_initial_conditions): Same.
21204 (simplify_using_outer_evolutions): Same.
21205 (loop_only_exit_p): Same.
21206 (ssa_defined_by_minus_one_stmt_p): Same.
21207 (number_of_iterations_popcount): Same.
21208 (number_of_iterations_exit): Same.
21209 (find_loop_niter): Same.
21210 (finite_loop_p): Same.
21211 (chain_of_csts_start): Same.
21212 (get_val_for): Same.
21213 (loop_niter_by_eval): Same.
21214 (derive_constant_upper_bound_ops): Same.
21215 (do_warn_aggressive_loop_optimizations): Same.
21216 (record_estimate): Same.
21217 (get_cst_init_from_scev): Same.
21218 (record_nonwrapping_iv): Same.
21219 (idx_infer_loop_bounds): Same.
21220 (infer_loop_bounds_from_ref): Same.
21221 (infer_loop_bounds_from_array): Same.
21222 (infer_loop_bounds_from_pointer_arith): Same.
21223 (infer_loop_bounds_from_signedness): Same.
21224 (bound_index): Same.
21225 (discover_iteration_bound_by_body_walk): Same.
21226 (maybe_lower_iteration_bound): Same.
21227 (estimate_numbers_of_iterations): Same.
21228 (estimated_loop_iterations): Same.
21229 (estimated_loop_iterations_int): Same.
21230 (max_loop_iterations): Same.
21231 (max_loop_iterations_int): Same.
21232 (likely_max_loop_iterations): Same.
21233 (likely_max_loop_iterations_int): Same.
21234 (estimated_stmt_executions_int): Same.
21235 (max_stmt_executions): Same.
21236 (likely_max_stmt_executions): Same.
21237 (estimated_stmt_executions): Same.
21238 (stmt_dominates_stmt_p): Same.
21239 (nowrap_type_p): Same.
21240 (loop_exits_before_overflow): Same.
21241 (scev_var_range_cant_overflow): Same.
21242 (scev_probably_wraps_p): Same.
21243 (free_numbers_of_iterations_estimates): Same.
21244 * tree-ssa-loop-niter.h: Same.
21245 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21246 (idx_analyze_ref): Same.
21247 (analyze_ref): Same.
21248 (gather_memory_references_ref): Same.
21249 (mark_nontemporal_store): Same.
21250 (emit_mfence_after_loop): Same.
21251 (may_use_storent_in_loop_p): Same.
21252 (mark_nontemporal_stores): Same.
21253 (should_unroll_loop_p): Same.
21254 (volume_of_dist_vector): Same.
21255 (add_subscript_strides): Same.
21256 (self_reuse_distance): Same.
21257 (insn_to_prefetch_ratio_too_small_p): Same.
21258 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21259 (patch_loop_exit): Same.
21260 (find_or_create_guard_phi): Same.
21261 (easy_exit_values): Same.
21262 (connect_loop_phis): Same.
21263 (connect_loops): Same.
21264 (compute_new_first_bound): Same.
21265 (split_loop): Same.
21266 (tree_ssa_split_loops): Same.
21267 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21268 (is_maybe_undefined): Same.
21269 (tree_may_unswitch_on): Same.
21270 (simplify_using_entry_checks): Same.
21271 (tree_unswitch_single_loop): Same.
21272 (tree_unswitch_loop): Same.
21273 (tree_unswitch_outer_loop): Same.
21274 (empty_bb_without_guard_p): Same.
21275 (used_outside_loop_p): Same.
21276 (get_vop_from_header): Same.
21277 (hoist_guard): Same.
21278 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21279 (get_lsm_tmp_name): Same.
21280 * tree-ssa-loop.h: Same.
21281 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21282 (build_and_add_sum): Same.
21283 (no_side_effect_bb): Same.
21285 (linearize_expr): Same.
21286 (should_break_up_subtract): Same.
21287 (linearize_expr_tree): Same.
21288 * tree-ssa-scopedtables.c: Same.
21289 * tree-ssa-scopedtables.h: Same.
21290 * tree-ssa-structalias.c (condense_visit): Same.
21291 (label_visit): Same.
21292 (dump_pred_graph): Same.
21293 (perform_var_substitution): Same.
21294 (move_complex_constraints): Same.
21295 (remove_preds_and_fake_succs): Same.
21296 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21297 (determine_bb_domination_status): Same.
21298 (duplicate_thread_path): Same.
21299 (thread_through_all_blocks): Same.
21300 * tree-ssa-threadupdate.h: Same.
21301 * tree-streamer-in.c (streamer_read_string_cst): Same.
21302 (input_identifier): Same.
21303 (unpack_ts_type_common_value_fields): Same.
21304 (unpack_ts_block_value_fields): Same.
21305 (unpack_ts_translation_unit_decl_value_fields): Same.
21306 (unpack_ts_omp_clause_value_fields): Same.
21307 (streamer_read_tree_bitfields): Same.
21308 (streamer_alloc_tree): Same.
21309 (lto_input_ts_common_tree_pointers): Same.
21310 (lto_input_ts_vector_tree_pointers): Same.
21311 (lto_input_ts_poly_tree_pointers): Same.
21312 (lto_input_ts_complex_tree_pointers): Same.
21313 (lto_input_ts_decl_minimal_tree_pointers): Same.
21314 (lto_input_ts_decl_common_tree_pointers): Same.
21315 (lto_input_ts_decl_non_common_tree_pointers): Same.
21316 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21317 (lto_input_ts_field_decl_tree_pointers): Same.
21318 (lto_input_ts_function_decl_tree_pointers): Same.
21319 (lto_input_ts_type_common_tree_pointers): Same.
21320 (lto_input_ts_type_non_common_tree_pointers): Same.
21321 (lto_input_ts_list_tree_pointers): Same.
21322 (lto_input_ts_vec_tree_pointers): Same.
21323 (lto_input_ts_exp_tree_pointers): Same.
21324 (lto_input_ts_block_tree_pointers): Same.
21325 (lto_input_ts_binfo_tree_pointers): Same.
21326 (lto_input_ts_constructor_tree_pointers): Same.
21327 (lto_input_ts_omp_clause_tree_pointers): Same.
21328 (streamer_read_tree_body): Same.
21329 * tree-streamer.h: Same.
21330 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21331 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21332 (vect_analyze_possibly_independent_ddr): Same.
21333 (vect_analyze_data_ref_dependence): Same.
21334 (vect_compute_data_ref_alignment): Same.
21335 (vect_enhance_data_refs_alignment): Same.
21336 (vect_analyze_data_ref_access): Same.
21337 (vect_check_gather_scatter): Same.
21338 (vect_find_stmt_data_reference): Same.
21339 (vect_create_addr_base_for_vector_ref): Same.
21340 (vect_setup_realignment): Same.
21341 (vect_supportable_dr_alignment): Same.
21342 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21343 (adjust_phi_and_debug_stmts): Same.
21344 (vect_set_loop_mask): Same.
21345 (add_preheader_seq): Same.
21346 (vect_maybe_permute_loop_masks): Same.
21347 (vect_set_loop_masks_directly): Same.
21348 (vect_set_loop_condition_masked): Same.
21349 (vect_set_loop_condition_unmasked): Same.
21350 (slpeel_duplicate_current_defs_from_edges): Same.
21351 (slpeel_add_loop_guard): Same.
21352 (slpeel_can_duplicate_loop_p): Same.
21353 (create_lcssa_for_virtual_phi): Same.
21355 (vect_update_ivs_after_vectorizer): Same.
21356 (vect_gen_vector_loop_niters_mult_vf): Same.
21357 (slpeel_update_phi_nodes_for_loops): Same.
21358 (slpeel_update_phi_nodes_for_guard1): Same.
21359 (find_guard_arg): Same.
21360 (slpeel_update_phi_nodes_for_guard2): Same.
21361 (slpeel_update_phi_nodes_for_lcssa): Same.
21362 (vect_do_peeling): Same.
21363 (vect_create_cond_for_alias_checks): Same.
21364 (vect_loop_versioning): Same.
21365 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21366 (vect_inner_phi_in_double_reduction_p): Same.
21367 (vect_analyze_scalar_cycles_1): Same.
21368 (vect_fixup_scalar_cycles_with_patterns): Same.
21369 (vect_get_loop_niters): Same.
21370 (bb_in_loop_p): Same.
21371 (vect_get_max_nscalars_per_iter): Same.
21372 (vect_verify_full_masking): Same.
21373 (vect_compute_single_scalar_iteration_cost): Same.
21374 (vect_analyze_loop_form_1): Same.
21375 (vect_analyze_loop_form): Same.
21376 (vect_active_double_reduction_p): Same.
21377 (vect_analyze_loop_operations): Same.
21378 (neutral_op_for_slp_reduction): Same.
21379 (vect_is_simple_reduction): Same.
21380 (vect_model_reduction_cost): Same.
21381 (get_initial_def_for_reduction): Same.
21382 (get_initial_defs_for_reduction): Same.
21383 (vect_create_epilog_for_reduction): Same.
21384 (vectorize_fold_left_reduction): Same.
21385 (vectorizable_reduction): Same.
21386 (vectorizable_induction): Same.
21387 (vectorizable_live_operation): Same.
21388 (loop_niters_no_overflow): Same.
21389 (vect_get_loop_mask): Same.
21390 (vect_transform_loop_stmt): Same.
21391 (vect_transform_loop): Same.
21392 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21393 (vect_determine_precisions): Same.
21394 (vect_pattern_recog_1): Same.
21395 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21396 * tree-vect-stmts.c (stmt_vectype): Same.
21397 (process_use): Same.
21398 (vect_init_vector_1): Same.
21399 (vect_truncate_gather_scatter_offset): Same.
21400 (get_group_load_store_type): Same.
21401 (vect_build_gather_load_calls): Same.
21402 (vect_get_strided_load_store_ops): Same.
21403 (vectorizable_simd_clone_call): Same.
21404 (vectorizable_store): Same.
21405 (permute_vec_elements): Same.
21406 (vectorizable_load): Same.
21407 (vect_transform_stmt): Same.
21408 (supportable_widening_operation): Same.
21409 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21410 (vec_info::free_stmt_vec_info): Same.
21411 (vect_free_loop_info_assumptions): Same.
21412 (vect_loop_vectorized_call): Same.
21413 (set_uid_loop_bbs): Same.
21414 (vectorize_loops): Same.
21415 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21416 * tree.c (add_tree_to_fld_list): Same.
21417 (fld_type_variant_equal_p): Same.
21418 (fld_decl_context): Same.
21419 (fld_incomplete_type_of): Same.
21420 (free_lang_data_in_binfo): Same.
21421 (need_assembler_name_p): Same.
21422 (find_decls_types_r): Same.
21423 (get_eh_types_for_runtime): Same.
21424 (find_decls_types_in_eh_region): Same.
21425 (find_decls_types_in_node): Same.
21426 (assign_assembler_name_if_needed): Same.
21427 * value-prof.c (stream_out_histogram_value): Same.
21428 * value-prof.h: Same.
21429 * var-tracking.c (use_narrower_mode): Same.
21430 (prepare_call_arguments): Same.
21431 (vt_expand_loc_callback): Same.
21432 (resolve_expansions_pending_recursion): Same.
21433 (vt_expand_loc): Same.
21434 * varasm.c (const_hash_1): Same.
21435 (compare_constant): Same.
21436 (tree_output_constant_def): Same.
21437 (simplify_subtraction): Same.
21438 (get_pool_constant): Same.
21439 (output_constant_pool_2): Same.
21440 (output_constant_pool_1): Same.
21441 (mark_constants_in_pattern): Same.
21442 (mark_constant_pool): Same.
21443 (get_section_anchor): Same.
21444 * vr-values.c (compare_range_with_value): Same.
21445 (vr_values::extract_range_from_phi_node): Same.
21446 * vr-values.h: Same.
21447 * web.c (unionfind_union): Same.
21448 * wide-int.h: Same.
21450 2019-07-09 Martin Sebor <msebor@redhat.com>
21453 * align.h: Change class-key from class to struct and vice versa
21454 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21455 * alloc-pool.h: Same.
21456 * asan.c (shadow_mem_size): Same.
21457 * auto-profile.c: Same.
21458 * basic-block.h: Same.
21460 * cfgexpand.c (set_rtl): Same.
21461 (expand_one_stack_var_at): Same.
21462 * cfghooks.h: Same.
21465 * config/i386/i386.h: Same.
21466 * df-problems.c (df_print_bb_index): Same.
21468 * df.h (df_single_use): Same.
21469 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21470 (layout::annotation_line_showed_range_p): Same.
21471 (get_printed_columns): Same.
21472 (correction::ensure_terminated): Same.
21473 (line_corrections::~line_corrections): Same.
21476 * dump-context.h: Same.
21477 * dumpfile.h: Same.
21478 * dwarf2out.c: Same.
21479 * edit-context.c: Same.
21480 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21482 * function.c (assign_stack_local): Same.
21483 * function.h: Same.
21485 * gcov.c (block_info::block_info): Same.
21486 * genattrtab.c: Same.
21487 * genextract.c: Same.
21488 * genmatch.c (comparison_code_p): Same.
21489 (id_base::id_base): Same.
21490 (decision_tree::print): Same.
21491 * genoutput.c: Same.
21492 * genpreds.c (write_one_predicate_function): Same.
21493 * genrecog.c (validate_pattern): Same.
21494 (find_operand_positions): Same.
21495 (optimize_subroutine_group): Same.
21496 (merge_pattern_transition::merge_pattern_transition): Same.
21497 (merge_pattern_info::merge_pattern_info): Same.
21498 (merge_state_result::merge_state_result): Same.
21499 (merge_into_state): Same.
21500 * gensupport.c: Same.
21501 * gensupport.h: Same.
21502 * ggc-common.c (init_ggc_heuristics): Same.
21503 * ggc-tests.c (test_union): Same.
21504 * gimple-loop-interchange.cc (dump_induction): Same.
21505 * gimple-loop-versioning.cc: Same.
21506 * gimple-match.h (gimple_match_cond::any_else): Same.
21507 * gimple-ssa-backprop.c: Same.
21508 * gimple-ssa-sprintf.c: Same.
21509 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21511 (store_immediate_info::store_immediate_info): Same.
21512 (merged_store_group::apply_stores): Same.
21513 (get_location_for_stmts): Same.
21514 * gimple-ssa-strength-reduction.c: Same.
21515 * gimple-ssa-warn-alloca.c: Same.
21516 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21517 * godump.c (go_type_decl): Same.
21518 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21519 * hash-map.h: Same.
21520 * hash-set-tests.c (test_set_of_strings): Same.
21521 * hsa-brig.c: Same.
21522 * hsa-common.h: Same.
21523 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21524 * input.c (assert_loceq): Same.
21527 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21528 * ipa-fnsummary.h: Same.
21529 * ipa-inline.h: Same.
21530 * ipa-prop.h: Same.
21531 * ipa-split.c (visit_bb): Same.
21532 * ira-int.h (minmax_set_iter_next): Same.
21533 * loop-invariant.c: Same.
21535 * lra-eliminations.c: Same.
21537 * lra-lives.c (mark_regno_dead): Same.
21538 * lra-remat.c: Same.
21539 * lra-spills.c: Same.
21540 * lto-streamer.h: Same.
21541 * mem-stats.h: Same.
21542 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21543 * omp-low.c (omp_clause_aligned_alignment): Same.
21544 * optabs-query.h (get_vcond_eq_icode): Same.
21546 * opts.c (wrap_help): Same.
21547 * poly-int.h: Same.
21548 * predict.c (predict_paths_leading_to_edge): Same.
21549 * pretty-print.h: Same.
21550 * profile-count.h: Same.
21552 * read-rtl-function.c: Same.
21555 * regrename.c: Same.
21556 * regrename.h: Same.
21558 * rtl-iter.h: Same.
21559 * rtl.h (costs_add_n_insns): Same.
21561 * sched-int.h: Same.
21562 * sel-sched-ir.h: Same.
21563 * selftest.h: Same.
21564 * sese.h (vec_find): Same.
21566 * target-globals.h: Same.
21567 * tree-affine.c (aff_combination_find_elt): Same.
21568 * tree-affine.h: Same.
21569 * tree-data-ref.h: Same.
21570 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21571 * tree-predcom.c: Same.
21572 * tree-scalar-evolution.c (find_var_scev_info): Same.
21573 * tree-ssa-alias.h: Same.
21574 * tree-ssa-ccp.c: Same.
21575 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21576 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21577 (rewrite_mem_refs): Same.
21578 (execute_sm_if_changed): Same.
21579 (hoist_memory_references): Same.
21580 * tree-ssa-loop-ivopts.c (operator<=): Same.
21581 * tree-ssa-loop.h: Same.
21582 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21583 * tree-ssa-structalias.c: Same.
21584 * tree-switch-conversion.h (cluster::cluster): Same.
21585 (simple_cluster::simple_cluster): Same.
21586 * tree-vect-patterns.c (type_conversion_p): Same.
21587 * tree-vectorizer.c (dump_stmt_cost): Same.
21588 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21589 * tree.c (protected_set_expr_location): Same.
21590 * tree.h (desired_pro_or_demotion_p): Same.
21591 (fndecl_built_in_p): Same.
21592 * unique-ptr-tests.cc: Same.
21593 * var-tracking.c (delete_variable_part): Same.
21594 * varasm.c (assemble_real): Same.
21595 (tree_output_constant_def): Same.
21597 * wide-int-bitmask.h: Same.
21598 * wide-int.h (decompose): Same.
21600 2019-07-09 Richard Biener <rguenther@suse.de>
21602 PR tree-optimization/91114
21603 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21604 find a vector type isn't fatal.
21606 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21608 * config/aarch64/aarch64-simd.md
21609 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21610 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21611 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21612 (*aarch64_crypto_aese_fused,
21613 *aarch64_crypto_aesd_fused): Update to new definition.
21614 * config/aarch64/aarch64.c
21615 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21617 2019-07-09 Richard Biener <rguenther@suse.de>
21619 * gimple-match.h (gimple_match_op::resimplify): New.
21620 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21621 gimple_resimplify4, gimple_resimplify5): Remove.
21622 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21623 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21625 (gimple_match_op::resimplify): New.
21626 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21627 according to availability. Use gimple_match_op::resimplify.
21629 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21631 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21633 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21635 * config/arm/crypto.md:
21636 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21637 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21638 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21639 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21641 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21642 * config/arm/aarch-common-protos.h
21643 (aarch_crypto_can_dual_issue): Remove.
21644 * config/arm/aarch-common.c
21645 (aarch_crypto_can_dual_issue): Likewise.
21646 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21647 * config/arm/cortex-a53.md: Likewise.
21648 * config/arm/cortex-a57.md: Likewise.
21649 * config/arm/iterators.md:
21650 (CRYPTO_BINARY): Redefine.
21651 (CRYPTO_UNARY): Removed.
21652 (CRYPTO_AES, CRYPTO_AESMC): New.
21654 2019-07-09 Richard Biener <rguenther@suse.de>
21656 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21657 (vn_reference_lookup_3): If the main ref has no access path recorded
21658 but orig_ref has use it to do access-path based disambiguation.
21659 (vn_reference_lookup_pieces): Adjust.
21660 (vn_reference_lookup): Pass down original ref if we valueized.
21662 2019-07-09 Martin Liska <mliska@suse.cz>
21664 * doc/extend.texi: Document influence on loop
21667 2019-07-09 Martin Liska <mliska@suse.cz>
21669 * lto-compress.c (lto_normalized_zstd_level): Do not use
21670 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21671 of libzstd. One can use 0 as a default compression level.
21673 2019-07-09 Martin Liska <mliska@suse.cz>
21675 * doc/invoke.texi: Add link from -fprofile-dir option.
21676 Use better wording for 'gcno filename'.
21678 2019-07-08 Martin Sebor <msebor@redhat.com>
21680 PR middle-end/71924
21681 PR middle-end/90549
21682 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21684 (args_loc_t): New type.
21685 (args_loc_t, locmap_t): same.
21686 (diag_returned_locals): New function.
21687 (is_addr_local): Same.
21688 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21689 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21690 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21692 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21694 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21695 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21696 and casts in offset when different, both through gimple stmts
21697 and through trees. Rewritten using loops to minimize code duplication
21700 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21702 * emit-rtl.c (set_insn_locations): New function moved from...
21703 * function.c (set_insn_locations): ...here.
21704 * ira-emit.c (emit_moves): Propagate location of the first instruction
21705 to the inserted move instructions.
21706 * reg-stack.c (compensate_edge): Set the location if the sequence is
21707 inserted on the edge.
21708 * rtl.h (set_insn_locations): Declare.
21710 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21712 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21713 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21716 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21718 PR rtl-optimization/88233
21719 * common.opt (fsplit-wide-types-early): New option.
21720 * common/config/rs6000/rs6000-common.c
21721 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21723 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21724 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21725 flag_split_wide_types_early.
21726 (pass_data_lower_subreg3): New.
21727 (pass_lower_subreg3): New.
21728 (make_pass_lower_subreg3): New.
21729 * passes.def (pass_lower_subreg2): Move after the loop passes.
21730 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21731 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21732 the pass pipeline; its previous place is taken by ...
21733 (make_pass_lower_subreg3): ... this.
21735 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21737 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21738 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21740 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21742 * config/s390/constraints.md: Add new jsc constraint.
21743 * config/s390/predicates.md: New predicates.
21744 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21745 * config/s390/s390.c (s390_valid_shift_count): New function.
21746 (print_shift_count_operand): Use s390_valid_shift_count.
21747 (print_operand): Likewise.
21748 * config/s390/s390.md: Use new predicate.
21749 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21750 * config/s390/vector.md: Use new predicate.
21752 2019-07-08 Andrew Waterman <andrew@sifive.com>
21753 Jim Wilson <jimw@sifive.com>
21755 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21756 bitsize instead of BITS_PER_WORD.
21758 2019-07-08 Martin Liska <mliska@suse.cz>
21760 * collect2.c (defined): Revert to before r254460.
21761 (scan_prog_file): Revert to before r254460.
21763 2019-07-08 Richard Biener <rguenther@suse.de>
21765 PR tree-optimization/83518
21766 * tree-ssa-sccvn.c: Include splay-tree.h.
21767 (struct pd_range, struct pd_data): New.
21768 (struct vn_walk_cb_data): Add data to track partial definitions.
21769 (vn_walk_cb_data::~vn_walk_cb_data): New.
21770 (vn_walk_cb_data::push_partial_def): New.
21771 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21772 (vn_reference_lookup_2): When partial defs are registered give up.
21773 (vn_reference_lookup_3): Track partial defs for memset and
21774 constructor zeroing and for defs from constants.
21776 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21778 * doc/install.texi (bootstrap-Og): Document.
21780 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21782 * config/riscv/pic.md (*local_pic_load_s<mode>)
21783 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21784 referenced by <mode>, giving...
21785 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21786 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21787 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21788 use <X:MODE> for the mode attribute.
21790 2019-07-07 Jeff Law <law@redhat.com>
21792 PR tree-optimization/91090
21793 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21794 in handling of ranges to simplify switch statements.
21796 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21798 * config/darwin.c (darwin_override_options): Make a final check on PIC
21801 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21803 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21804 on for kernel code.
21806 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21809 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21810 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21811 instead of matching them to "l" output operands.
21813 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21815 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21816 and check whether addr.reg is nonnull before using it.
21818 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21820 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21821 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21822 variable(s). For conditional lastprivate look through outer
21823 GIMPLE_OMP_SCAN context.
21824 (lower_omp_1): For conditional lastprivate look through outer
21825 GIMPLE_OMP_SCAN context.
21827 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21828 member to combined_into_simd_safelen1.
21829 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21830 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21831 clauses if ctx->combined_into_simd_safelen1 put statements after the
21832 predicate conditionalized block rather than into it.
21834 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21836 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21838 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21839 Make the choice of <mode> explicit, giving...
21840 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21842 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21844 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21845 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21847 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21848 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21849 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21850 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21851 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21852 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21853 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21854 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21855 (*avx512f_scatterdi<mode>): Likewise.
21856 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21858 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21860 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21861 specify the mode iterator referenced by <mode>, giving...
21862 (*push1_h8300hs_<QHI:mode>): ...this.
21864 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21866 * config/gcn/gcn-valu.md
21867 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21868 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21869 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21870 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21871 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21872 but using the _exec comparison patterns.
21873 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21874 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21875 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21876 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21877 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21878 but using the _exec comparison patterns.
21880 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21882 * config/arm/sync.md
21883 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21884 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21885 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21886 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21887 <SIDI:cas_cmp_str>.
21889 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21891 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21892 (maybe_lookup_ctx): Add forward declaration.
21893 (omp_find_scan): Likewise. Walk into body of simd if composited
21894 with worksharing loop.
21895 (scan_omp_simd_scan): New function.
21896 (scan_omp_1_stmt): Call it.
21897 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21898 ctx->for_simd_scan_phase.
21899 (lower_rec_input_clauses): Do much less work for inscan reductions
21900 in ctx->for_simd_scan_phase is_simd regions.
21901 (lower_omp_scan): Set is_simd also on simd constructs composited
21902 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21903 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21904 emit their body after in simd constructs composited with worksharing
21906 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21908 * omp-low.c (omp_find_scan): Make static.
21909 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21910 the second loop, var2 represents the first partial sum and so needs
21911 to go before rprivb[ivar].
21913 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21915 * config/rs6000/rs6000-logue.c: Remove unused code.
21917 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21919 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21921 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21924 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21925 check with a frame laid out check.
21927 2019-07-05 Richard Biener <rguenther@suse.de>
21929 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21930 when comparing against a store with possibly the same value.
21932 2019-07-05 Richard Biener <rguenther@suse.de>
21934 PR tree-optimization/91091
21935 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21936 (walk_non_aliased_vuses): Likewise.
21937 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21938 (get_continuation_for_phi): New tbaa_p parameter and pass
21940 (walk_non_aliased_vuses): Likewise.
21941 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21942 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21943 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21945 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21946 (adjust_offsets_for_equal_base_address): New function.
21947 (vn_reference_lookup_3): Use it to catch more base equivalences.
21948 Handle and pass down tbaa_p flag.
21949 (vn_reference_lookup_pieces): Adjust.
21950 (vn_reference_lookup): Remove alias-set altering, instead pass
21951 down false as tbaa_p.
21953 2019-07-05 Richard Biener <rguenther@suse.de>
21955 PR tree-optimization/91091
21956 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21957 accesses can happen with -fno-strict-aliasing.
21959 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21961 * tree-ssa-alias.c (alias_stats): Add
21962 nonoverlapping_component_refs_since_match_p_must_overlap.
21963 (dump_alias_stats): Print it.
21964 (nonoverlapping_component_refs_since_match_p): Add early exit.
21965 (nonoverlapping_component_refs_p): Do not account early exit.
21967 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21969 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21970 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21971 (emit_eh_dispatch): Delete.
21972 (lower_catch): Emit the eh_dispatch manually and set the location of
21973 the first catch statement onto it.
21974 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21975 (lower_eh_dispatch): Propagate location.
21976 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21977 (eliminate_build): Likewise.
21979 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21981 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21982 phi nodes if possible.
21983 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21984 location info on the newly created statement.
21985 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21986 newly created increment if needed.
21988 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21990 PR middle-end/78884
21991 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21992 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21993 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21994 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21995 ctx->add_safelen1 is set.
21997 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21998 GOMP_loop_start at the start of second worksharing loop in a scan.
21999 For nowait, don't emit GOMP_loop_end_nowait at the end of first
22000 worksharing loop in a scan even if there are conditional lastprivates,
22001 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
22003 2019-07-04 Jan Hubicka <jh@suse.cz>
22005 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
22006 Fix check for match in the ref walk.
22008 2019-07-04 Martin Liska <mliska@suse.cz>
22010 * tree-ssa-loop-niter.c
22011 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
22012 (estimate_numbers_of_iterations):
22013 Support __builtin_expect_with_probability for analysis
22014 of # of loop iterations.
22016 2019-07-04 Alexandre Oliva <oliva@adacore.com>
22018 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
22019 * except.c: Likewise.
22020 * expr.c (expand_expr_real_1): Reject it.
22021 * gimplify.c (gimplify_expr): Gimplify it, within
22023 * tree-dump.c (dequeue_and_dump): Dump it.
22024 * tree-pretty-print.c (dump_generic_node): Likewise.
22025 * tree.c (block_may_fallthru): Handle it.
22026 * tree.def (EH_ELSE_EXPR): Introduce it.
22027 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
22028 with GIMPLE_EH_ELSE as try/finally/else.
22030 2019-07-04 Richard Biener <rguenther@suse.de>
22033 * tree-pass.h (execute_all_ipa_transforms): Add a flag
22034 parameter whether to disable GC collection.
22035 * passes.c (execute_one_ipa_transform_pass): Likewise, and
22037 (execute_all_ipa_transforms): Likewise and pass it down.
22038 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
22039 collection from applying IPA transforms.
22040 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
22041 from applying IPA transforms.
22043 2019-07-04 Richard Biener <rguenther@suse.de>
22045 PR tree-optimization/90911
22046 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
22047 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
22048 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
22049 scalar_loop_scaling.
22050 (vect_transform_loop): Scale scalar loop profile if needed.
22051 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
22052 the loop copy from if-conversion adjust edge probabilities
22053 and scale the vectorized loop body profile, queue the scalar
22054 profile for updating after peeling.
22056 2019-07-04 Jan Hubicka <jh@suse.cz>
22058 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
22059 parameters; return early for must-alias.
22060 (indirect_ref_may_alias_decl_p): Likewise; when establishing
22061 outer types match, try nonoverlapping_component_refs
22062 if must-alias is not obvious.
22063 (indirect_refs_may_alias_p): Likewise.
22064 (refs_may_alias_p_2): Likewise.
22066 2019-07-04 Richard Biener <rguenther@suse.de>
22068 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
22070 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
22072 (struct vn_walk_cb_data): New callback data struct.
22073 (vn_reference_lookup_2): Adjust.
22074 (vn_reference_lookup_3): Likewise.
22075 (vn_reference_lookup_pieces): Likewise.
22076 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
22077 (visit_reference_op_load): Adjust.
22079 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22081 PR tree-optimization/91063
22082 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22083 stmt from stmts sequence before calling vect_init_vector_1.
22086 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22089 * fwprop.c (reg_single_def_p): New function.
22090 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22091 (forward_propagate_into): New parameter reg_prop_only
22092 with default value false.
22093 Propagate def's src into loop only if SET_SRC and SET_DEST
22094 of def_set have single definitions.
22095 Likewise if reg_prop_only is set to true.
22096 (fwprop): New param fwprop_addr_p.
22097 Integrate fwprop_addr into fwprop.
22098 (fwprop_addr): Remove.
22099 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22101 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22102 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22103 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22105 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22107 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22108 in worksharing loop scans.
22110 PR tree-optimization/91074
22111 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22114 PR rtl-optimization/90756
22115 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22118 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22120 * config/aarch64/aarch64.md: Remove redundant constraints from
22121 define_expand but keep some patterns untouched if they are
22122 specially selected by TARGET_SECONDARY_RELOAD hook.
22123 * config/aarch64/aarch64-sve.md: Likewise.
22124 * config/aarch64/atomics.md: Remove redundant constraints from
22126 * config/aarch64/aarch64-simd.md: Likewise.
22128 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22130 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22131 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22132 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22134 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22137 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22139 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22140 (STARTFILE_SPEC): Split crt3 into a separate spec.
22141 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22142 (DARWIN_CRT2_SPEC): New.
22143 (DARWIN_CRT3_SPEC): New.
22144 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22145 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22146 (DARWIN_CRT3_SPEC): New.
22148 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22150 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22151 Change the RTL attribute "length" from "4" to "*" to allow the
22152 length attribute to be adjusted automatically for prefixed load,
22153 store, and add immediate instructions.
22154 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22156 (extendsi<mode>2, EXTSI iterator): Likewise.
22157 (movsi_internal1): Likewise.
22158 (movsi_from_sf): Likewise.
22159 (movdi_from_sf_zero_ext): Likewise.
22160 (mov<mode>_internal): Likewise.
22161 (movcc_internal1, QHI iterator): Likewise.
22162 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22163 (movsf_from_si): Likewise.
22164 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22165 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22166 (mov<mode>, FMOVE128 iterator): Likewise.
22167 (movdi_internal64): Likewise.
22168 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22170 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22171 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22172 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22173 (vsx_splat_v4sf): Likewise.
22175 2019-07-03 Mark Wielaard <mark@klomp.org>
22178 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22179 DW_AT_addr_base if there is actually a .debug_addr section with
22181 (output_addr_table): Add DWARF5 table header generation here after
22182 checking there are actually any addresses from...
22183 (dwarf2out_finish): ...here.
22185 2019-07-03 Richard Biener <rguenther@suse.de>
22187 PR middle-end/91069
22188 * match.pd (vec_perm -> bit_insert): Fix element read from
22191 2019-07-03 Martin Liska <mliska@suse.cz>
22193 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22194 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22196 * generic-match-head.c: Include dbgcnt.h.
22197 * gimple-match-head.c: Likewise.
22199 2019-07-03 Martin Liska <mliska@suse.cz>
22201 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22202 (GCOV_COUNTER_V_TOPN): New.
22203 (GCOV_COUNTER_V_INDIR): Use _topn.
22204 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22205 (GCOV_TOPN_VALUES): New.
22206 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22207 (GCOV_TOPN_VALUES_COUNTERS): New.
22208 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22210 (gimple_init_gcov_profiler): Rename variables from one_value
22212 (gimple_gen_one_value_profiler): Remove.
22213 (gimple_gen_topn_values_profiler): New function.
22214 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22215 names instead of SINGLE_VALUE.
22216 (stream_out_histogram_value): Likewise.
22217 (stream_in_histogram_value): Likewise.
22218 (get_most_common_single_value): Likewise.
22219 (gimple_divmod_fixed_value_transform): Likewise.
22220 (gimple_stringops_transform): Likewise.
22221 (gimple_divmod_values_to_profile): Likewise.
22222 (gimple_stringops_values_to_profile): Likewise.
22223 (gimple_find_values_to_profile): Likewise.
22224 * value-prof.h (enum hist_type): Rename to TOPN.
22225 (gimple_gen_one_value_profiler): Remove.
22226 (gimple_gen_topn_values_profiler): New.
22228 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22230 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22231 if it has the DW_AT_data_member_location attribute.
22233 2019-07-03 Richard Biener <rguenther@suse.de>
22235 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22238 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22240 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22241 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22242 (tlsdesc_small_sve_<mode>): Likewise.
22244 2019-07-03 Martin Liska <mliska@suse.cz>
22246 * Makefile.in: Define ZSTD_LIB.
22247 * common.opt: Adjust compression level
22248 to support also zstd levels.
22249 * config.in: Regenerate.
22250 * configure: Likewise.
22251 * configure.ac: Add --with-zstd and --with-zstd-include options
22253 * doc/install.texi: Mention zstd dependency.
22254 * gcc.c: Print supported LTO compression algorithms.
22255 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22256 (lto_compression_zstd): Likewise.
22257 (lto_uncompression_zstd): Likewise.
22258 (lto_end_compression): Dispatch in between zlib and zstd.
22259 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22260 (lto_uncompression_zlib): Make it static.
22261 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22262 * lto-section-in.c (lto_get_section_data): Pass info
22263 about used compression.
22264 * lto-streamer-out.c: By default use zstd when possible.
22265 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22266 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22268 2019-07-03 Martin Liska <mliska@suse.cz>
22270 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22271 * lto-section-out.c (lto_destroy_simple_output_block): Never
22272 compress LTO_section_lto section.
22273 * lto-streamer-out.c (produce_asm): Do not set major_version
22275 (lto_output_toplevel_asms): Likewise.
22276 (produce_lto_section): New function.
22277 (lto_output): Call produce_lto_section.
22278 (lto_write_mode_table): Do not set major_version and
22280 (produce_asm_for_decls): Likewise.
22281 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22283 (struct lto_header): Remove.
22284 (struct lto_section): New struct.
22285 (struct lto_simple_header): Do not inherit from lto_header.
22286 (struct lto_file_decl_data): Add lto_section_header field.
22288 2019-07-03 Martin Liska <mliska@suse.cz>
22290 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22292 * reg-stack.c (check_asm_stack_operands): Likewise.
22293 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22294 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22295 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22296 force_expand_binop.
22298 2019-07-03 Martin Liska <mliska@suse.cz>
22300 PR tree-optimization/90892
22301 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22302 in string constants.
22304 2019-07-03 Martin Liska <mliska@suse.cz>
22306 PR middle-end/90899
22307 * multiple_target.c (create_dispatcher_calls): Add to comdat
22308 group only if set for ifunc.
22310 2019-07-03 Martin Liska <mliska@suse.cz>
22313 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22314 Define local_object_name in outer scope in order to handle
22315 use-after-scope issue.
22317 2019-07-03 Martin Liska <mliska@suse.cz>
22319 * common.opt: Add fprofile-note.
22320 * coverage.c (coverage_init): Append the option
22322 * doc/invoke.texi: Document -fprofile-note.
22324 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22326 PR tree-optimization/91033
22327 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22328 vect_analyze_data_refs): Add bool * arguments.
22329 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22330 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22331 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22332 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22333 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22334 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22335 vect_analyze_data_refs caller.
22337 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22339 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22340 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22341 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22342 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22343 OMP_CLAUSE__SCANTEMP_ entry.
22344 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22345 * tree-pretty-print.c (dump_omp_clause): Likewise.
22346 * tree-nested.c (convert_nonlocal_omp_clauses,
22347 convert_local_omp_clauses): Likewise.
22348 * omp-general.h (struct omp_for_data): Add have_scantemp and
22349 have_nonctrl_scantemp members.
22350 * omp-general.c (omp_extract_for_data): Initialize them.
22351 * omp-low.c (struct omp_context): Add scan_exclusive member.
22352 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22353 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22354 ctx->scan_exclusive.
22355 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22356 of !ctx->scan_inclusive.
22357 (lower_rec_input_clauses): Simplify gimplification of dtors using
22358 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22359 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22360 loops. Don't add barrier for reduction_omp_orig_ref if
22361 ctx->scan_??xclusive.
22362 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22363 (lower_omp_scan): Use ctx->scan_exclusive instead
22364 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22365 reductions. Use new_vard != new_var instead of repeated
22366 omp_is_reference calls.
22367 (omp_find_scan, lower_omp_for_scan): New functions.
22368 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22370 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22371 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22372 and fd->have_scantemp.
22374 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22375 on worksharing loop propagate it as shared clause to containing
22378 * omp-expand.c (expand_omp_for_static_nochunk,
22379 expand_omp_for_static_chunk): For nowait worksharing loop with
22380 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22383 2019-07-02 qing zhao <qing.zhao@oracle.com>
22385 PR preprocessor/90581
22386 * doc/cppopts.texi: Add document for -fmax-include-depth.
22387 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22389 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22391 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22392 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22393 (mmx_packssdw): Ditto.
22394 (mmx_punpckhbw): Ditto.
22395 (mmx_punpcklbw): Ditto.
22396 (mmx_punpckhwd): Ditto.
22397 (mmx_punpcklwd): Ditto.
22398 (mmx_punpckhdq): Ditto.
22399 (mmx_punpckldq): Ditto.
22400 (*vec_dupv4hi): Ditto.
22401 (*vec_dupv2si): Ditto.
22402 (mmx_pmovmskb): Ditto.
22403 * config/i386/sse.md (sse_cvtpi2ps): Use
22404 TARGET_SSE2 && SSE_REG_P in split condition.
22405 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22406 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22407 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22408 (ssse3_pshufbv8qi3): Ditto.
22409 (ssse3_palignrdi): Ditto.
22411 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22413 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22414 with inlined save and restore.
22416 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22418 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22419 to be inserted on single successor edge of the entry block. Then call
22420 commit_edge_insertions instead of inserting the instructions manually.
22421 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22422 RTL expansion and rebuild jump labels chain.
22424 2019-07-02 Richard Biener <rguenther@suse.de>
22426 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22428 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22430 * tree.c (build_common_tree_nodes): Initialize them.
22431 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22432 Make declarations comments.
22433 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22434 chrec_known): Remove definitions.
22435 (initialize_scalar_evolutions_analyzer): Remove.
22436 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22437 * tree-streamer.c (preload_common_nodes): Do not preload
22438 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22440 2019-07-02 Jan Hubicka <jh@suse.cz>
22442 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22445 2019-07-02 Jan Hubicka <jh@suse.cz>
22447 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22449 (nonoverlapping_component_refs_since_match_p): ... this one;
22450 handle also non-decl bases; return -1 if search gave up.
22451 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22452 nonoverlapping_component_refs_of_decl_p_no_alias to
22453 nonoverlapping_component_refs_since_match_p_may_alias,
22454 nonoverlapping_component_refs_since_match_p_no_alias.
22455 (dump_alias_stats): Update dumping.
22456 (aliasing_matching_component_refs_p): Break out from ...;
22457 dispatch to nonoverlapping_component_refs_for_decl_p
22458 and nonoverlapping_component_refs_since_match_p.
22459 (aliasing_component_refs_p): ... here; call
22460 nonoverlapping_component_refs_p in scenarios where we can not
22461 precisely determine base match.
22462 (decl_refs_may_alias_p): Use
22463 nonoverlapping_component_refs_since_match_p.
22464 (indirect_ref_may_alias_decl_p): Do not call
22465 nonoverlapping_component_refs_p.
22466 (indirect_refs_may_alias_p): Likewise.
22468 2019-07-02 Jan Hubicka <jh@suse.cz>
22470 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22471 to clobber of return value.
22473 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22475 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22476 for is_neon_type instructions that have not already been categorized.
22478 2019-07-02 Richard Biener <rguenther@suse.de>
22480 PR tree-optimization/58483
22481 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22482 for MEM_REF base hashing.
22483 (equal_mem_array_ref_p): Likewise for base comparison.
22485 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22487 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22488 parameterized name.
22489 (signbit<mode>2): Use that name. Simplify.
22491 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22493 PR middle-end/66726
22494 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22495 Tune heuristic from PR71016 to allow MIN / MAX.
22497 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22499 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22500 parameterized name.
22501 (abs<mode>2): Use that name. Simplify.
22503 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22505 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22506 parameterized name.
22507 (neg<mode>2): Use that name. Simplify.
22509 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22511 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22513 (abs<mode>2): Use that name. Simplify.
22515 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22517 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22519 (neg<mode>2): Use that name. Simplify.
22521 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22523 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22524 ("enabled" attribute): Handle sse_noavx isa attribute.
22525 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22526 Use TARGET_SSE && SSE_REGNO_P in split condition.
22527 (*vec_dupv2sf): Ditto.
22529 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22531 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22533 (floatsi<mode>2): Use that name. Simplify.
22535 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22537 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22538 parameterized name.
22539 (extenddf<mode>2_vsx): Make this a parameterized name.
22540 (extenddf<mode>2): Use those names. Simplify.
22542 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22544 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22546 (eh_return): Use that name. Simplify.
22548 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22550 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22551 (doloop_end): Use that name. Simplify.
22553 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22555 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22556 parameterized name.
22557 (indirect_jump): Use that name. Simplify.
22559 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22561 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22562 parameterized name.
22563 (abs<mode>2): Use that name. Simplify.
22565 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22567 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22568 parameterized name.
22569 (fix_trunc<mode>si2): Use that name. Simplify.
22571 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22573 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22574 (allocate_stack): Use that name. Simplify.
22576 2019-07-01 Martin Sebor <msebor@redhat.com>
22578 PR middle-end/90923
22579 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22580 (hash_map::get_or_insert): Same. Reformat comment.
22581 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22582 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22583 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22584 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22585 (hash_table::hash_table (const hash_table&)): Use copy ctor
22586 instead of assignment to copy elements.
22588 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22589 John David Anglin <danglin@gcc.gnu.org>
22592 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22593 using saved frame pointer.
22595 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22597 PR middle-end/64242
22598 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22599 Add frame clobber and schedule blockage.
22601 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22603 * doc/invoke.texi (Link Options): Further editorial changes to
22604 -flinker-output docs.
22606 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22608 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22609 Load both operands of a PLUS into registers separately.
22611 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22613 * config/s390/vector.md: Fix shift count operand printing.
22615 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22617 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22619 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22621 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22622 Use recog_data to test for an output operand.
22624 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22626 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22627 exclude any others that are disparaged or that are bound to need
22629 (ira_get_dup_out_num): Expand comment.
22631 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22633 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22634 constraint string for each operand/alternative combo. Only handle
22635 '%' at the start of constraint strings, and look for it outside
22638 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22640 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22641 alternative_mask instead of HARD_REG_SET to represent a
22642 bitmask of alternatives.
22643 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22644 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22646 2019-07-01 Martin Liska <mliska@suse.cz>
22648 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22649 use () for a constructor call.
22650 (test_applying_fixits_line_out_of_range): Likewise.
22651 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22653 (free_page): Likewise.
22655 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22657 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22658 parameter names to match usage (no functional change).
22659 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22661 2019-07-01 Richard Biener <rguenther@suse.de>
22663 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22665 (pass_fre::execute): Honor it.
22666 * passes.def: Adjust pass_fre invocations to allow iterating,
22667 add non-iterating pass_fre before late threading/dom.
22669 2019-07-01 Richard Biener <rguenther@suse.de>
22671 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22672 TARGET_MEM_REF handling to also handle address-taken ones.
22674 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22676 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22677 hardware attributes): Document avx512vp2intersect.
22679 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22681 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22682 (abs<mode>2): New expander.
22683 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22684 Use CODE_FOR_ssse3_absv8qi2.
22685 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22686 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22688 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22690 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22691 to sse, sse_noavx and avx. Update all uses.
22693 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22695 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22696 (*mmx_<plusminus_insn><mode>3): Ditto.
22697 (*mmx_mulv4hi3"): Ditto.
22698 (*mmx_smulv4hi3_highpart): Ditto.
22699 (*mmx_umulv4hi3_highpart): Ditto.
22700 (*mmx_pmaddwd): Ditto.
22701 (*sse2_umulv1siv1di3): Ditto.
22702 (*mmx_<code>v4hi3): Ditto.
22703 (*mmx_<code>v8qi3): Ditto.
22704 (mmx_ashr<mode>3): Ditto.
22705 ("mmx_<shift_insn><mode>3): Ditto.
22706 (*mmx_eq<mode>3): Ditto.
22707 (mmx_gt<mode>3): Ditto.
22708 (mmx_andnot<mode>3): Ditto.
22709 (*mmx_<code><mode>3): Ditto.
22710 (*mmx_pinsrw): Ditto.
22711 (*mmx_pextrw): Ditto.
22712 (mmx_pshufw_1): Ditto.
22713 (*mmx_uavgv8qi3): Ditto.
22714 (*mmx_uavgv4hi3): Ditto.
22715 ("mmx_psadbw): Ditto.
22716 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22717 (sse_cvttps2pi): Ditto.
22718 (ssse3_pmaddubsw): Ditto.
22719 (*ssse3_pmulhrswv4hi3): Ditto.
22720 (ssse3_psign<mode>3): Ditto.
22722 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22724 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22725 adjustment for bit-fields to all aggregate types.
22727 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22729 * config/rs6000/predicates.md (pcrel_address): Use
22730 SYMBOL_REF_LOCAL_P to determine if a label is local.
22731 (pcrel_external_address): New predicate.
22732 (non_prefixed_mem_operand): Delete, predicate not used.
22733 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22734 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22736 (SYMBOL_REF_PCREL_P): Likewise.
22739 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22741 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22742 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22743 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22745 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22747 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22748 override on extra_headers.
22750 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22752 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22753 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22755 (darwin_driver_init): Likewise.
22757 2019-06-28 Jan Beulich <jbeulich@suse.com>
22759 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22760 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22761 Eliminate redundant alternative.
22763 2019-06-28 Jan Beulich <jbeulich@suse.com>
22765 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22766 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22767 Use vector_operand.
22769 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22771 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22772 having a lower cost regardless of the speed option.
22774 2019-06-28 Jan Beulich <jbeulich@suse.com>
22776 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22777 vector_operand plus, on both alternatives, "Bm" constraint.
22779 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22781 * config/arm/arm.md: Remove redundant constraints from
22782 define_expand but leave reload_inm and reload_outm patterns
22783 untouched since they need special constraints to work.
22784 * config/arm/arm-fixed.md: Remove redundant constraints from
22786 * config/arm/iwmmxt.md: Likewise.
22787 * config/arm/neon.md: Likewise.
22788 * config/arm/sync.md: Likewise.
22789 * config/arm/thumb1.md: Likewise.
22790 * config/arm/vec-common.md: Likewise.
22792 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22794 * doc/install.texi: Document --disable-tm-clone-registry.
22796 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22799 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22802 PR tree-optimization/91010
22803 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22804 return true. Otherwise, don't call operand_equal_p if offset1 or
22805 offset2 is NULL and just return false.
22807 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22809 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22810 user-specified float mode choice for kernel mode code.
22812 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22814 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22817 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22819 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22820 use longcall for 64b code.
22822 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22824 * builtins.c (get_memory_rtx): Fix comment.
22825 * optabs.def (movmem_optab): Change to cpymem_optab.
22826 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22827 (emit_block_move_hints): Change movmem to cpymem.
22828 * defaults.h: Change movmem to cpymem.
22829 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22830 (default_use_by_pieces_infrastructure_p): Ditto.
22831 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22832 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22834 * config/aarch64/aarch64.h: Change movmem to cpymem.
22835 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22836 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22837 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22839 * config/arc/arc-protos.h: Change movmem to cpymem.
22840 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22841 * config/arc/arc.h: Change movmem to cpymem in comment.
22842 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22843 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22844 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22845 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22846 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22847 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22848 * config/avr/avr-protos.h: Change movmem to cpymem.
22849 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22850 avr_out_movmem): Change movmem to cpymem.
22851 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22852 Change movmem to cpymem.
22853 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22854 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22855 Change movmem to cpymem.
22856 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22857 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22858 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22859 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22860 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22861 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22862 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22863 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22864 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22865 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22866 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22867 expand_small_cpymem_or_setmem,
22868 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22869 expand_set_or_cpymem_constant_prologue,
22870 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22871 * config/i386/i386-protos.h: Change movmem to cpymem.
22872 * config/i386/i386.h: Change movmem to cpymem in comment.
22873 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22874 (setmem<mode>): Change expansion function name.
22875 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22876 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22877 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22878 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22879 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22880 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22881 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22883 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22884 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22885 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22886 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22887 Change movmem to cpymem.
22888 * config/mips/mips.h: Change movmem to cpymem.
22889 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22890 * config/nds32/nds32-memory-manipulation.c
22891 (nds32_expand_movmemsi_loop_unknown_size,
22892 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22893 nds32_expand_movmemsi_unroll,
22894 nds32_expand_movmemsi): Change movmem to cpymem.
22895 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22896 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22897 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22898 (pa_adjust_insn_length): Change call to compute_movmem_length.
22899 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22900 movmemdi, movmemdi_prereload,
22901 movmemdi_postreload): Change movmem to cpymem.
22902 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22903 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22904 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22905 * config/riscv/riscv.h: Change movmem to cpymem.
22906 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22907 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22908 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22910 * config/s390/s390-protos.h: Change movmem to cpymem.
22911 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22912 s390_expand_insv): Change movmem to cpymem.
22913 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22914 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22915 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22916 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22917 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22918 for nonexistent function.
22919 * config/vax/vax.h: Change movmem to cpymem in comment.
22920 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22921 * config/visium/visium.h: Change movmem to cpymem in comment.
22922 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22923 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22924 * doc/md.texi: Change movmem to cpymem and update description to match.
22925 * doc/rtl.texi: Change movmem to cpymem.
22926 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22927 * doc/tm.texi: Regenerate.
22929 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22931 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22932 -fvariable-expansion-in-unroller by default.
22933 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22936 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22939 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22940 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22942 * config.gcc(rs6000-*-*): Define target_gtfiles.
22944 2019-06-27 Jan Hubicka <jh@suse.cz>
22946 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22947 (add_type_duplicate): When odr hash is not allocated, to nothing.
22948 (odr_based_tbaa_p): New function.
22949 (set_type_canonical_for_odr_type): New function.
22950 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22951 set_type_canonical_for_odr_type): New.
22952 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22953 ODR based TBAA are not equivalent to non-ODR types.
22955 2019-06-27 Martin Liska <mliska@suse.cz>
22957 PR tree-optimization/90974
22958 PR rtl-optimization/90975
22959 PR rtl-optimization/90976
22961 PR tree-optimization/91017
22962 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22964 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22965 initial commit of IRA.
22966 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22968 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22969 Remove unused mode1.
22970 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22973 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22976 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22977 instead of register_operand for operands[1], add m to its constraints
22978 if operands[2] uses "C" constraint. Ensure in condition that if
22979 operands[2] is not 0, then operands[1] is not a MEM. For last two
22980 alternatives, use unaligned loads instead of aligned if operands[1] is
22981 misaligned_operand.
22983 2019-06-27 Martin Liska <mliska@suse.cz>
22985 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22987 * bt-load.c (move_btr_def): Likewise.
22988 * builtins.c (expand_builtin_apply_args_1): Likewise.
22989 (expand_builtin_apply): Likewise.
22990 * cfgexpand.c (expand_asm_stmt): Likewise.
22991 (construct_init_block): Likewise.
22992 * cfghooks.c (verify_flow_info): Likewise.
22993 * cfgloopmanip.c (remove_path): Likewise.
22994 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22995 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22996 * combine.c (simplify_if_then_else): Likewise.
22997 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22998 (choose_basereg): Likewise.
22999 (ix86_expand_prologue): Likewise.
23000 (ix86_preferred_output_reload_class): Likewise.
23001 * cselib.c (cselib_record_sets): Likewise.
23002 * df-scan.c (df_scan_alloc): Likewise.
23003 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
23004 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
23005 * emit-rtl.c (try_split): Likewise.
23006 * graphite-scop-detection.c (assign_parameter_index_in_region):
23008 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
23009 * ira-color.c (setup_profitable_hard_regs): Likewise.
23010 * ira.c (rtx_moveable_p): Likewise.
23011 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
23012 * read-rtl.c (read_subst_mapping): Likewise.
23013 * regrename.c (scan_rtx): Likewise.
23014 * reorg.c (fill_slots_from_thread): Likewise.
23015 * tree-inline.c (tree_function_versioning): Likewise.
23016 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
23017 * tree-ssa-sink.c (statement_sink_location): Likewise.
23018 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
23019 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
23020 (vect_create_epilog_for_reduction): Likewise.
23021 * tree.c (build_nonstandard_integer_type): Likewise.
23023 2019-06-27 Richard Biener <rguenther@suse.de>
23025 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
23027 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
23029 PR tree-optimization/89772
23030 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
23031 out-of-bound accesses checking.
23033 2019-06-27 Martin Liska <mliska@suse.cz>
23035 PR tree-optimization/91014
23036 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
23037 when LHS is NULL_TREE.
23039 2019-06-27 Martin Liska <mliska@suse.cz>
23041 * symbol-summary.h (traverse): Pass
23042 argument a to the call of callback.
23043 (gt_ggc_mx): Mark arguments as unused.
23044 (gt_pch_nx): Likewise.
23046 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
23049 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
23052 2019-06-26 Jeff Law <law@redhat.com>
23054 PR tree-optimization/90883
23055 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
23056 (delete_dead_or_redundant_assignment): Likewise.
23058 PR tree-optimization/90883
23059 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
23060 * tree-ssa-dse.c: Update various comments to distinguish between
23061 dead and redundant stores.
23062 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
23063 (dse_optimize_redundant_stores): New function.
23064 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
23065 Distinguish between dead and redundant calls in dump output. All
23067 (delete_dead_or_redundant_assignment): Similarly for assignments.
23068 (dse_optimize_stmt): Handle _CHK variants. For statements which
23069 store 0 into multiple memory locations, try to prove a subsequent
23070 store is redundant.
23072 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
23075 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
23076 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
23078 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23080 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23081 (branch_islands): New extern.
23082 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23083 * config/rs6000/rs6000.c: .. here.
23085 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23087 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23088 (powerpc*-*-*) ... to here.
23090 2019-06-26 Jeff Law <law@redhat.com>
23092 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23093 memcpy, memmove and memset builtins.
23094 (maybe_trim_memstar_call): Likewise.
23096 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23098 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23100 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23102 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23104 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23106 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23108 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23110 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23113 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23115 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23117 2019-06-26 Richard Biener <rguenther@suse.de>
23120 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23122 2019-06-26 Richard Biener <rguenther@suse.de>
23124 * lto-streamer.h (lto_bitmap_alloc): Remove.
23125 (lto_bitmap_free): Likewise.
23126 * lto-streamer.c (lto_bitmap_alloc): Remove.
23127 (lto_bitmap_free): Likewise.
23128 (lto_obstack): Likewise.
23129 (lto_obstack_initialized): Likewise.
23130 * lto-streamer-out.c (lto_output): Use own obstack for local
23131 bitmap, free it consistently.
23133 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23136 * config/i386/sse.md
23137 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23138 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23139 insns if operands[2] is misaligned_operand.
23141 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23143 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23145 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23148 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23150 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23152 2019-06-26 Martin Liska <mliska@suse.cz>
23154 PR tree-optimization/90973
23155 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23156 epilogue_cost_vec instead of prologue_cost_vec for
23159 2019-06-26 Martin Liska <mliska@suse.cz>
23161 * bb-reorder.c (connect_better_edge_p): Add missing else
23162 statement in the middle of if-else statements.
23164 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23165 H.J. Lu <hongjiu.lu@intel.com>
23166 Olga Makhotina <olga.makhotina@intel.com>
23168 * common/config/i386/i386-common.c
23169 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23170 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23171 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23172 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23173 (ix86_handle_option): Handle -mavx512vp2intersect.
23174 * config/i386/avx512vp2intersectintrin.h: New.
23175 * config/i386/avx512vp2intersectvlintrin.h: New.
23176 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23177 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23178 AVX512VP2INTERSECT.
23179 * config/i386/i386-builtin-types.def: Add new types.
23180 * config/i386/i386-builtin.def: Add new builtins.
23181 * config/i386/i386-builtins.c: (enum processor_features): Add
23182 F_AVX512VP2INTERSECT.
23183 (static const _isa_names_table isa_names_table): Ditto.
23184 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23185 __AVX512VP2INTERSECT__.
23186 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23187 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23188 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23189 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23190 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23191 * config/i386/i386-options.c (ix86_target_string): Add
23192 -mavx512vp2intersect.
23193 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23194 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23195 P2HImode and P2QImode.
23196 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23197 number for P2QImode and P2HImode.
23198 (ix86_regmode_natural_size): New function.
23199 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23200 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23201 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23202 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23203 * config/i386/i386.opt: Add -mavx512vp2intersect.
23204 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23205 avx512vp2intersectvlintrin.h.
23206 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23207 (define_mode_iterator VI48_AVX512VP2VL): New.
23208 (avx512vp2intersect_2intersect<mode>,
23209 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23210 * config.gcc: Add avx512vp2intersectvlintrin.h and
23211 avx512vp2intersectintrin.h to extra_headers.
23212 * doc/invoke.texi: Document -mavx512vp2intersect.
23214 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23216 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23218 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23220 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23221 savres_routine_syms, savres_routine_name, morestack_ref,
23222 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23223 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23224 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23225 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23226 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23227 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23228 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23229 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23230 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23231 get_stack_clash_protection_probe_interval,
23232 get_stack_clash_protection_guard_size,
23233 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23234 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23235 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23236 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23237 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23238 gen_frame_mem_offset, rs6000_savres_routine_name,
23239 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23240 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23241 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23242 rs6000_global_entry_point_prologue_needed_p,
23243 rs6000_get_separate_components, rs6000_components_for_bb,
23244 rs6000_disqualify_components, rs6000_emit_prologue_components,
23245 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23246 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23247 rs6000_output_savres_externs, rs6000_output_function_prologue,
23248 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23249 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23250 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23251 rs6000_output_function_epilogue, gen_add3_const,
23252 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23253 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23255 (machine_function): Moved to rs6000.h.
23256 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23258 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23259 savres_routine_syms, savres_routine_name, morestack_ref,
23260 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23261 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23262 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23263 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23264 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23265 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23266 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23267 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23268 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23269 get_stack_clash_protection_probe_interval,
23270 get_stack_clash_protection_guard_size,
23271 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23272 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23273 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23274 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23275 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23276 gen_frame_mem_offset, rs6000_savres_routine_name,
23277 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23278 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23279 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23280 rs6000_global_entry_point_prologue_needed_p,
23281 rs6000_get_separate_components, rs6000_components_for_bb,
23282 rs6000_disqualify_components, rs6000_emit_prologue_components,
23283 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23284 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23285 rs6000_output_savres_externs, rs6000_output_function_prologue,
23286 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23287 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23288 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23289 rs6000_output_function_epilogue, gen_add3_const,
23290 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23291 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23292 to here from rs6000.c.
23293 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23294 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23295 quad_address_offset_p) Moved to here from rs6000.c.
23296 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23297 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23300 2019-06-25 Martin Liska <mliska@suse.cz>
23302 * hash-table.c (hashtab_chk_error): Move here from ...
23303 * hash-table.h (hashtab_chk_error): ... here.
23305 2019-06-25 Martin Liska <mliska@suse.cz>
23307 PR tree-optimization/90978
23308 * df-scan.c (df_update_entry_block_defs): Remove dead else
23310 (df_update_exit_block_uses): Likewise.
23312 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23313 Andrew Stubbs <ams@codesourcery.com>
23315 * config.gcc (thread_file): Set to gcn for AMD GCN.
23316 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23317 (TARGET_EMUTLS_VAR_INIT): New hook.
23319 2019-06-25 Martin Jambor <mjambor@suse.cz>
23322 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23324 2019-06-25 Richard Biener <rguenther@suse.de>
23326 PR tree-optimization/90930
23327 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23328 into parallel form in the last pass instance.
23330 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23332 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23333 (arc_legitimize_pic_address): Simplify and cleanup the function.
23334 (SYMBOLIC_CONST): Remove.
23335 (prepare_pic_move): Likewise.
23336 (prepare_move_operands): Handle complex mov cases here.
23337 (arc_legitimize_address_0): Remove call to
23338 arc_legitimize_pic_address.
23339 (arc_legitimize_address): Remove call to
23340 arc_legitimize_tls_address.
23341 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23342 (movhi_insn): Likewise.
23344 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23346 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23348 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23349 format of "__intN" types for UINTMAX_TYPE.
23350 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23351 format of "__intN" types for SIZETYPE.
23352 * tree.c (build_common_tree_nodes): Accept "__intN__"
23353 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23354 * doc/invoke.texi: Document that __intN__ disables pedantic
23357 2019-06-25 Jan Hubicka <jh@suse.cz>
23359 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23360 base2_alias_set is non-zero before doing TBAA based disambiguation.
23362 2019-06-25 Martin Liska <mliska@suse.cz>
23364 PR tree-optimization/90973
23365 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23366 of prologue and epilogue.
23368 2019-06-24 Jan Hubicka <jh@suse.cz>
23370 * ipa-utils.h (type_with_linkage_p): Verify that type is
23372 (odr_type_p): Remove extra return.
23373 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23374 hash STRING_FLAG only for arrays and integers.
23375 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23376 Update analogously.
23377 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23379 * print-tree.c (print_node): Print cxx-odr-p
23381 * tree.c (need_assembler_name_p): Also check that type
23383 (verify_type_variant): Update verification of SRING_FLAG;
23384 also check CXX_ODR_P.
23385 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23386 (TYPE_STRING_FLAG): Use it.
23387 (TYPE_CXX_ODR_P): New macro.
23388 * dwarf2out.c (gen_array_type_die): First check that type
23389 is an array and then test string flag.
23391 2019-06-24 Richard Biener <rguenther@suse.de>
23393 PR tree-optimization/90972
23394 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23395 in common code, dealing with STRING_CST properly.
23397 2019-06-24 Richard Biener <rguenther@suse.de>
23399 PR tree-optimization/90930
23400 PR tree-optimization/90316
23401 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23402 decrement of limit.
23404 2019-06-24 Martin Sebor <msebor@redhat.com>
23406 * tree-pretty-print.h: Remove unnecessary punctuation characters
23408 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23410 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23412 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23413 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23414 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23416 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23418 * config/rs6000/darwin.h: Handle GCC target pragma.
23420 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23422 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23424 2019-06-22 Jeff Law <law@redhat.com>
23426 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23428 2019-06-22 Jan Hubicka <jh@suse.cz>
23430 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23431 give up on bitfields; continue searching for different refs
23434 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23436 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23437 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23438 containing the offset as possible simd lane access. Look through
23439 widening conversion. Move the
23440 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23442 2019-06-21 Richard Biener <rguenther@suse.de>
23444 PR tree-optimization/90930
23445 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23446 flag on new stmts to avoid re-processing them.
23448 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23450 PR c++/90875 - added -Wswitch-outside-range option
23451 * doc/invoke.texi (Wswitch-outside-range): Document.
23453 2019-06-21 Jeff Law <law@redhat.com>
23455 PR tree-optimization/90949
23456 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23457 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23459 2019-06-21 Richard Biener <rguenther@suse.de>
23462 * dwarf2out.c (prune_unused_types_walk): Always consider
23463 function-local extern declarations as used.
23465 2019-06-21 Richard Biener <rguenther@suse.de>
23467 PR tree-optimization/90913
23468 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23469 the scalar variant of if-conversion versioning.
23471 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23473 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23474 create another "omp scan inscan exclusive" array if
23475 !ctx->scan_inclusive.
23476 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23477 (lower_omp_scan): Likewise.
23478 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23479 2-bit bitfield for simd_lane_access_p member.
23480 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23481 aux == (void *)-4 as simd lane access.
23482 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23483 comment with permutations to show the canonical permutation order.
23484 (vectorizable_scan_store): Handle exclusive scan.
23485 (vectorizable_store): Call vectorizable_scan_store even for
23486 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23488 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23489 "omp simd array" arrays with one byte elements.
23491 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23493 * config/alpha/alpha.md (@unaligned_store<mode>):
23494 Rename from unaligned_store<mode>.
23495 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23496 * config/alpha/sync.md (@load_locked_<mode>): Rename
23497 from load_locked_<mode>.
23498 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23499 (@atomic_compare_and_swap<mode>_1): Rename
23500 from atomic_compare_and_swap<mode>_1.
23501 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23502 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23503 Use gen_reload_in_aligned and gen_unaligned_store.
23504 (emit_load_locked): Remove.
23505 (emit_store_conditional): Ditto.
23506 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23507 (alpha_split_compare_and_swap): Ditto.
23508 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23509 (alpha_split_compare_and_swap_12): Use gen_load_locked
23510 and gen_store_conditional.
23511 (alpha_split_atomic_exchange): Ditto.
23512 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23513 (alpha_split_atomic_exchange_12): Use gen_load_locked
23514 and gen_store_conditional.
23516 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23518 * config/aarch64/aarch64-errata.h: New file.
23519 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23520 (CA53_ERR_843419_SPEC): Delete.
23521 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23522 * config/aarch64/aarch64-linux.h: Likewise.
23523 * config/aarch64/aarch64-netbsd.h: Likewise.
23524 * config/aarch64/aarch64-freebsd.h: Likewise.
23526 2019-06-20 Marek Polacek <polacek@redhat.com>
23528 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23530 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23532 * config/rs6000/rs6000.md (isa attribute): Add support for
23533 for a future processor.
23535 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23538 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23539 standard scalar operation pattern for V2DF.
23540 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23541 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23542 (*ieee_<ieee_maxmin><mode>3): Likewise.
23543 (vec_setv2df_0): Likewise.
23545 2019-06-20 Jan Hubicka <jh@suse.cz>
23547 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23548 parameter; it has no use in gimple memory model.
23549 (indirect_ref_may_alias_decl_p): Update.
23551 2019-06-20 Martin Liska <mliska@suse.cz>
23553 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23556 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23558 * tree-vect-stmts.c (enum scan_store_kind): New type.
23559 (scan_store_can_perm_p): Change last argument from int * to
23560 vec<enum scan_store_kind> *, record precisely which permutations
23561 need whole vector left shift or that plus VEC_COND_EXPR.
23562 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23563 and additional VEC_COND_EXPR only for those iterations that need it.
23565 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23567 * config.gcc: Fix ARM --with-fpu checking and error message.
23569 2019-06-19 Marek Polacek <polacek@redhat.com>
23571 PR c++/60364 - noreturn after first decl not diagnosed.
23572 * attribs.c (get_attribute_namespace): No longer static.
23573 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23575 (attr_noreturn_exclusions): Make it extern.
23576 * attribs.h (get_attribute_namespace): Declare.
23577 * tree-inline.c (function_attribute_inlinable_p): Use
23578 get_attribute_name.
23580 2019-06-19 Martin Sebor <msebor@redhat.com>
23582 PR tree-optimization/90626
23583 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23585 PR tree-optimization/90626
23586 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23587 (handle_builtin_string_cmp): Call it.
23589 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23591 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23592 and DARWIN_NOPIE_SPEC.
23593 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23594 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23595 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23596 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23597 (DARWIN_EXPORT_DYNAMIC): Delete.
23598 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23599 and pie options processing to darwin.h.
23600 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23602 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23604 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23605 in computing the number of options to be moved.
23607 2019-06-19 Maya Rashish <coypu@sdf.org>
23609 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23610 (CLEAR_INSN_CACHE) Use it.
23612 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23614 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23616 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23618 PR middle-end/84521
23619 * builtins.c (expand_builtin_setjmp_setup): Save
23620 hard_frame_pointer_rtx.
23621 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23623 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23625 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23627 (remove_reg_equal_offset_note): Remove unused function.
23628 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23630 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23631 (arc_builtin_setjmp_frame_value): Remove function.
23632 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23633 (avr_builtin_setjmp_frame_value): Remove function.
23634 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23635 (ix86_builtin_setjmp_frame_value): Remove function.
23636 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23637 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23638 (sparc_builtin_setjmp_frame_value): Remove function.
23639 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23640 (vax_builtin_setjmp_frame_value): Remove function.
23641 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23642 pointer if has_nonlocal_label.
23644 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23646 * doc/md.texi: Document vec_shl_<mode> pattern.
23647 * optabs.def (vec_shl_optab): New optab.
23648 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23649 argument, if == vec_shl_optab, check for left whole vector shift
23650 pattern rather than right shift.
23651 (expand_vec_perm_const): Add vec_shl_optab support.
23652 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23654 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23655 can be handled by vec_shl_optab.
23656 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23657 (check_scan_store): Use it.
23658 (vectorizable_scan_store): If target can't do normal permutations,
23659 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23661 * config/i386/sse.md (vec_shl_<mode>): New expander.
23663 * omp-low.c (lower_rec_input_clauses): Handle references properly
23665 (lower_omp_scan): Likewise.
23667 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23669 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23670 mem_mode is BLKmode.
23672 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23675 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23676 pointer adjustment for the case of no callee-saved registers and
23677 stack frame bigger than 128 bytes.
23679 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23681 PR middle-end/90862
23682 * omp-low.c (check_omp_nesting_restrictions): Handle
23683 GF_OMP_TARGET_KIND_OACC_DECLARE.
23685 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23687 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23688 (@add<mode>3_carry): Rename from add<mode>3_carry.
23689 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23690 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23691 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23692 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23693 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23694 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23695 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23696 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23697 (cmpstrnsi): Use gen_cmp_1.
23698 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23699 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23700 (@umonitor_<mode>): Rename from umonitor_<mode>.
23701 * config/i386/i386-expand.c (ix86_expand_copysign):
23702 Use gen_copysign3_const and gen_copysign3_var.
23703 (ix86_expand_xorsign): Use gen_xorsign3_1.
23704 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23705 gen_sub3_carry_ccgz and gen_cmp1.
23706 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23707 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23708 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23709 (ix86_split_lshr): Ditto.
23710 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23712 2019-06-18 Jason Merrill <jason@redhat.com>
23714 * tree.c (build_constructor): Add MEM_STAT_DECL.
23716 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23718 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23719 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23720 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23721 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23722 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23723 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23724 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23725 Use CC_NZC instead of CC.
23726 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23727 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23728 (aarch64_print_operand): Handle E_CC_NZCmode.
23729 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23730 of gen_set_clobber_cc.
23732 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23734 * config/aarch64/aarch64-sve.md: Tabify file.
23736 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23738 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23739 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23740 * config/aarch64/aarch64-sve.md: Use it.
23742 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23744 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23745 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23746 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23747 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23748 (aarch64_expand_sve_vec_cmp_int): Use it.
23749 (aarch64_expand_sve_vec_cmp_float): Likewise.
23750 * config/aarch64/aarch64-sve.md: Likewise throughout.
23752 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23753 Kugan Vivekanandarajah <kuganv@linaro.org>
23755 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23756 (*cond_<optab><mode>_z): Fold into...
23757 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23758 operand 4 can be tied to operand 0 (either inherently or via RA).
23760 2019-06-18 Richard Biener <rguenther@suse.de>
23763 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23764 as if optimized away.
23766 2019-06-18 Tom de Vries <tdevries@suse.de>
23768 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23769 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23770 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23772 (define_insn "@set_softstack_<mode>"): ... this.
23773 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23774 (define_insn "@omp_simt_enter_<mode>"): ... this.
23775 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23776 (define_insn "@omp_simt_exit_<mode>"): ... this.
23778 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23780 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23781 vf parameter. Restore the previous iv step of nscalars_step,
23782 but give it iv_type rather than compare_type. Tweak code order
23783 to match the comments.
23784 (vect_set_loop_condition_masked): Update accordingly.
23785 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23786 for iv_precision. Tweak comment formatting.
23788 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23790 * config/darwin.c: Strip trailing whitespace.
23792 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23794 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23795 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23797 2019-06-18 Martin Jambor <mjambor@suse.cz>
23800 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23801 caller does not have flag_ipa_cp set.
23803 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23805 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23806 from "*fold_left_plus_<mode>", updated operands order.
23807 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23808 * internal-fn.c (mask_fold_left_direct): New define.
23809 (expand_mask_fold_left_optab_fn): Likewise.
23810 (direct_mask_fold_left_optab_supported_p): Likewise.
23811 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23812 * optabs.def (mask_fold_left_plus_optab): New optab.
23813 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23814 masked internal_fn for a reduction ifn.
23815 (vectorize_fold_left_reduction): Add support for masking reductions.
23817 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23819 PR middle-end/80791
23820 * target.def (predict_doloop_p): New hook.
23821 * targhooks.h (default_predict_doloop_p): New declaration.
23822 * targhooks.c (default_predict_doloop_p): New function.
23823 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23824 * doc/tm.texi: Regenerate.
23825 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23826 (TARGET_PREDICT_DOLOOP_P): New macro.
23827 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23829 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23831 * omp-low.c (struct omp_context): Add scan_inclusive field.
23832 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23834 (struct omplow_simd_context): Add lastlane member.
23835 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23836 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23838 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23839 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23840 (lower_omp_scan): New function.
23841 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23842 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23843 check 3rd argument if present rather than 2nd.
23844 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23845 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23847 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23848 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23850 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23851 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23852 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23854 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23855 IFN_GOMP_SIMD_LANE argument.
23856 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23857 encoded ->aux value.
23858 * tree-vect-stmts.c: Include attribs.h.
23859 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23860 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23862 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23863 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23865 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23868 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23869 (*nabs<mode>2_1): Ditto.
23870 (nabs sse-reg splitter): New splitter.
23871 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23873 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23875 PR bootstrap/90873.
23876 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23879 2019-06-17 Tom de Vries <tdevries@suse.de>
23881 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23882 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23883 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23885 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23887 (define_insn "omp_simt_enter_insn"): Rename to ...
23888 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23889 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23890 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23891 gen_omp_simt_enter_si.
23892 (define_expand "omp_simt_exit"): New.
23893 (define_insn "omp_simt_exit"): Rename to ...
23894 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23897 2019-06-17 Matthew Green <mrg@eterna.com.au>
23898 Maya Rashish <coypu@sdf.org>
23900 * config.gcc (aarch64*-*-netbsd*): New target.
23901 * config/aarch64/aarch64-netbsd.h: New file.
23902 * config/aarch64/t-aarch64-netbsd: Likewise.
23904 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23906 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23907 the access path from base to first VIEW_CONVERT_EXPR or
23910 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23912 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23913 access path on BIT_FIELD_REFs.
23915 2019-06-17 Martin Liska <mliska@suse.cz>
23918 * ipa-utils.h (odr_type_p): Remove dead code.
23920 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23922 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23923 alternative Solaris 11.4 format.
23924 * configure: Regenerate.
23926 2019-06-17 Tom de Vries <tdevries@suse.de>
23928 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23929 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23931 (define_insn "call_value_insn"): Rename to ...
23932 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23934 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23937 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23939 PR middle-end/64242
23940 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23941 frame clobbers and schedule block.
23942 (builtin_longjmp): Likewise.
23944 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23946 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23947 describe how to perform MSPABI compliant 64-bit shift.
23948 * config/msp430/msp430.md (ashldi3): New define_expand.
23949 (ashrdi3): New define_expand.
23950 (lshrdi3): New define_expand.
23952 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23954 * doc/sourcebuild.texi: Document new effective target keyword
23957 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23959 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23960 indirect_refs_may_alias_p): Revert accidental commits.
23962 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23963 at the end of structures.
23965 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23967 * config/darwin.c (machopic_indirect_call_target): Use renamed
23968 darwin_picsymbol_stubs to decide on output.
23969 (darwin_override_options): Handle darwin_picsymbol_stubs.
23970 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23971 (LD64_VERSION): Revise default.
23972 * config/darwin.opt: (mpic-symbol-stubs): New option.
23973 (darwin_picsymbol_stubs): New variable.
23974 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23975 rename to TARGET_MACHO_PICSYM_STUBS.
23976 * config/i386/i386.c (output_pic_addr_const): Likewise.
23977 * config/i386/i386.h Likewise.
23978 * config/rs6000/darwin.h: Likewise.
23979 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23980 darwin_picsymbol_stubs.
23982 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23984 * config/darwin.opt (prebind, noprebind, seglinkedit,
23985 noseglinkedit): Add RejectNegative.
23987 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23989 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23990 in my previous patch.
23992 2019-06-16 Tom de Vries <tdevries@suse.de>
23994 PR tree-optimization/89376
23995 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23997 2019-06-15 Maya Rashish <coypu@sdf.org>
23999 * doc/invoke.texi (Spec Files): Update location of the
24002 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
24004 * doc/extend.texi (Common Function Attributes): Clarify
24005 no_sanitize. Fix grammar.
24007 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
24009 * tree-ssa-alias.c (alias_stats): Add
24010 nonoverlapping_component_refs_p_may_alias,
24011 nonoverlapping_component_refs_p_no_alias,
24012 nonoverlapping_component_refs_of_decl_p_may_alias,
24013 nonoverlapping_component_refs_of_decl_p_no_alias.
24014 (dump_alias_stats): Dump them.
24015 (nonoverlapping_component_refs_of_decl_p): Add stats.
24016 (nonoverlapping_component_refs_p): Add stats; do not stop on first
24019 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
24021 * config/i386/i386.md (and<mode>3): Generate zero-extends for
24022 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
24024 (*anddi3_doubleword): Split before reload. Merge with
24025 anddi->zext pre-reload splitter.
24026 (*andndi3_doubleword): Split before reload.
24027 (*<code>di3_doubleword): Ditto.
24028 (*one_cmpldi2_doubleword): Ditto.
24030 2019-06-15 Jakub Jelinek <jakub@redhat.com>
24032 PR middle-end/90779
24033 * gimplify.c: Include omp-offload.h and context.h.
24034 (gimplify_bind_expr): Add "omp declare target" attributes
24035 to static block scope variables inside of target region or target
24038 2019-06-15 Tom de Vries <tdevries@suse.de>
24040 PR tree-optimization/90009
24041 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
24042 Return NULL if bb contains IFN_UNIQUE.
24044 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
24046 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
24047 (un): New define_mode_attr.
24048 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
24049 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
24050 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
24052 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
24054 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
24056 * config/darwin.opt: Add RejectNegative where needed, reorder
24057 and add minimal functional descriptions.
24059 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24061 PR rtl-optimization/90765
24062 * calls.c (update_stack_alignment_for_call): New function.
24063 (expand_call): Call update_stack_alignment_for_call when
24064 outgoing parameter is passed in the stack.
24065 (emit_library_call_value_1): Likewise.
24066 * function.c (locate_and_pad_parm): Don't update
24067 stack_alignment_needed and preferred_stack_boundary.
24069 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
24072 * config/i386/i386-features.c
24073 (dimode_scalar_chain::compute_convert_gain): Replace
24074 mmxsse_to_integer with sse_to_integer.
24075 * config/i386/i386.c (ix86_register_move_cost): Verify that
24076 moves between MMX and non-MMX units require secondary memory.
24077 Correct costs of moves between SSE and integer units.
24078 * config/i386/i386.h (processor_costs): Rename cost of moving
24079 SSE register to integer to sse_to_integer. Rename cost of
24081 2019-06-14 Matt Thomas <matt@3am-software.com>
24082 Matthew Green <mrg@eterna.com.au>
24083 Nick Hudson <skrll@netbsd.org>
24084 Maya Rashish <coypu@sdf.org>
24085 Richard Earnshaw <rearnsha@arm.com>
24087 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24088 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24089 * config/arm/netbsd-eabi.h: New file.
24090 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24092 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24093 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24094 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24095 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24097 2019-06-14 Richard Biener <rguenther@suse.de>
24099 * tree-loop-distribution.c (classify_partition): Return
24100 whether a reduction appeared in all partitions and do not
24101 stop builtin detection because of this.
24102 (distribute_loop): Sort a non-builtin partition last if
24103 there's a reduction in all partitions and make sure the
24104 partition prevailing as last is not a builtin.
24106 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24109 * ipa-prop.c (add_to_agg_contents_list): New function.
24110 (clobber_by_agg_contents_list_p): Likewise.
24111 (extract_mem_content): Likewise.
24112 (get_place_in_agg_contents_list): Delete.
24113 (determine_known_aggregate_parts): Renamed from
24114 determine_locally_known_aggregate_parts. New parameter
24117 2019-06-13 Martin Sebor <msebor@redhat.com>
24119 PR tree-optimization/90662
24120 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24123 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24126 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24127 dbase is not TARGET_MEM_REF.
24129 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24131 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24133 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24134 Do not generate DImode extends for 32bit targets.
24135 (and->zext post-reload splitter): Use gen_extend_insn
24136 instead of indirect functions.
24137 (anddi->zext pre-reload splitter): New.
24138 (*zext<mode>_doubleword_and): Remove.
24139 (*zext<mode>_doubleword): Ditto.
24140 (*zextsi_doubleword): Dittto.
24142 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24144 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24145 Use gen_sub3_insn instead of indirect function.
24146 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24148 (ix86_adjust_counter): Ditto.
24150 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24151 Lijia He <helijia@linux.ibm.com>
24153 PR tree-optimization/77820
24154 * tree-ssa-threadedge.c
24155 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24157 (thread_across_edge): Add call to
24158 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24160 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24162 * config/darwin-driver.c (validate_macosx_version_min): New.
24163 (darwin_default_min_version): Cleanup and validate supplied version.
24164 (darwin_driver_init): Likewise and push cleaned version into opts.
24166 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24168 PR tree-optimization/90869
24169 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24170 converts in MEM_REF referencing decl rather than view converts
24171 from decl type to MEM_REF type.
24173 2019-06-13 Richard Biener <rguenther@suse.de>
24175 PR tree-optimization/90856
24176 * tree-sra.c (build_ref_for_model): Only use
24177 build_reconstructed_reference when address-spaces are the same.
24179 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24181 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24182 wrap ei variable name in the declaration in ()s.
24183 (nvptx_single): Actually use mode_label variable. Formatting fix.
24185 2019-06-13 Richard Biener <rguenther@suse.de>
24187 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24188 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24189 also return the condition stmt.
24190 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24191 loop we can version and version that, reusing the loop version
24192 created by if-conversion instead of versioning again.
24194 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24196 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24198 * tree-vrp (value_range_base::may_contain_p): Call into
24199 value_inside_range.
24200 (value_inside_range): Make private inside value_range_base class.
24201 Take min/max from *this.
24202 (range_includes_p): Remove.
24203 * tree-vrp.h (value_range_base): Add value_inside_range.
24204 (range_includes_p): Remove.
24205 (range_includes_zero_p): Call may_contain_p.
24206 * vr-values.c (compare_range_with_value): Same.
24208 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24210 * doc/extend.texi (ARC Function Attributes): Update info.
24212 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24214 PR tree-optimization/89713
24215 * doc/invoke.texi (-ffinite-loops): Document new option.
24216 * common.opt (-ffinite-loops): New option.
24217 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24218 IFN_GOACC_LOOP calls as necessary.
24219 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24221 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24222 IFN_GOACC_LOOP call is not used.
24223 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24225 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24228 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24229 compare_type is not with Pmode size, we will create an IV with
24230 Pmode size with truncated use (i.e. converted to the correct type).
24231 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24232 (vect_iv_limit_for_full_masking): New. Factored out of
24233 vect_set_loop_condition_masked.
24234 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24235 (vect_iv_limit_for_full_masking): Declare.
24237 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24240 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24241 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24242 (get_alias_ptr_type_for_ptr_address): Likewise.
24243 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24244 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24245 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24248 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24250 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24252 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24254 * common/config/pru/pru-common.c: New file.
24255 * config.gcc: Add PRU target.
24256 * config/pru/alu-zext.md: New file.
24257 * config/pru/constraints.md: New file.
24258 * config/pru/predicates.md: New file.
24259 * config/pru/pru-opts.h: New file.
24260 * config/pru/pru-passes.c: New file.
24261 * config/pru/pru-pragma.c: New file.
24262 * config/pru/pru-protos.h: New file.
24263 * config/pru/pru.c: New file.
24264 * config/pru/pru.h: New file.
24265 * config/pru/pru.md: New file.
24266 * config/pru/pru.opt: New file.
24267 * config/pru/t-pru: New file.
24268 * doc/extend.texi: Document PRU pragmas.
24269 * doc/invoke.texi: Document PRU-specific options.
24270 * doc/md.texi: Document PRU asm constraints.
24272 2019-06-12 Martin Sebor <msebor@redhat.com>
24274 PR middle-end/90676
24275 * tree-pretty-print.c (dump_mem_ref): New function. Include
24276 MEM_REF type in output when different size than operand.
24277 (dump_generic_node): Move code to dump_mem_ref and call it.
24279 2019-06-12 Martin Sebor <msebor@redhat.com>
24281 PR tree-optimization/90662
24282 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24285 2019-06-12 Tom de Vries <tdevries@suse.de>
24287 PR tree-optimization/90009
24288 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24290 2019-06-12 Martin Liska <mliska@suse.cz>
24292 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24294 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24295 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24296 Do not sanitize created maps.
24298 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24300 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24301 value_range::singleton_p.
24302 * tree-vrp.c (value_range_constant_singleton): Remove.
24303 * tree-vrp.h (value_range_constant_singleton): Remove.
24304 * vr-values.c (vr_values::singleton): Use
24305 value_range::singleton_p.
24307 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24310 * cfgexpand.c (align_local_variable): Add really_expand argument,
24311 don't SET_DECL_ALIGN if it is false.
24312 (add_stack_var): Add really_expand argument, pass it through to
24313 align_local_variable.
24314 (expand_one_stack_var_1): Pass true as really_expand to
24315 align_local_variable.
24316 (expand_one_ssa_partition): Pass true as really_expand to
24318 (expand_one_var): Pass really_expand through to add_stack_var.
24320 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24322 * config/arm/iterators.md (VABAL): New int iterator.
24323 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24324 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24325 UNSPEC_VABAL_U values.
24327 2019-06-12 Martin Liska <mliska@suse.cz>
24329 * value-prof.c (stream_out_histogram_value): Only first value
24332 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24335 * symtab.c (symtab_node::set_section): Allow being called on aliases
24336 as long as they aren't analyzed yet.
24338 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24340 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24341 to `mips_set_text_contents_type' to indicate whether a
24342 non-debug insn follows.
24344 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24346 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24347 enabling -mpcrel by default.
24348 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24349 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24350 that the test against -mcpu=future is done first. Then test if
24351 -mprefixed-addr is on for -mpcrel.
24352 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24354 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24357 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24358 instead of and.u%d.
24360 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24362 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24364 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24366 PR c++/90449 - add -Winaccessible-base option.
24367 * doc/invoke.texi (Winaccessible-base): Document.
24369 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24371 PR tree-optimization/62041
24372 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24374 2019-06-11 Jason Merrill <jason@redhat.com>
24376 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24377 * tree.c (get_tree_code_name): Likewise.
24378 * print-tree.c (print_node): Only briefly print a node with an
24381 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24384 * trans-mem.c (tm_memopt_compute_available): Add assertion
24385 that blocks is not empty. Formatting fix.
24387 2019-06-11 Martin Liska <mliska@suse.cz>
24390 * hash-table.h: Extend create_gcc, add one parameter
24391 that is passed into hash_table::hash_table.
24393 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24395 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24397 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24398 Emit clobber also for non-sse operations.
24399 (ix86_split_fp_absneg_operator): New function.
24400 * config/i386/i386.md (SSEMODEF): New mode iterator.
24401 (ssevecmodef): New mode attribute.
24402 (<code>tf2): Use absneg code iterator.
24403 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24404 Add three-operand AVX alternatives.
24405 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24406 Use absneg code iterator and X87MODEF mode iterator.
24407 (absneg fp_reg non-sse splitter): Call absneg code iterator
24408 and X87MODEF mode iterator.
24409 (absneg general_reg non-sse splitter): Use absneg code iterator
24410 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24411 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24412 code iterator. Add three-operand AVX alternative.
24413 (absneg sse_reg splitter): Use absneg code iterator
24414 and SSEMODEF mode iterator. Handle AVX operands.
24415 (absneg fp_reg splitter): Use absneg code iterator
24416 and MODEF mode iterator.
24417 (absneg general_reg splitter): Merge splitters using MODEF mode
24418 iterator. Use absneg code iterator. Call
24419 ix86_split_fp_absneg_operator.
24420 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24421 Do not enable for non-sse modes before reload.
24422 (CSGNMODE): Remove.
24423 (CSGNVMODE): Ditto.
24424 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24425 ssevecmodef mode attribute instaed of CSGNVMODE.
24426 (copysign<mode>3_const): Ditto.
24427 (copysign<mode>3_var): Ditto.
24428 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24429 Use absneg code iterator. Simplify code using std::swap.
24430 * config/i386/predicates.md (absneg_operator): Remove.
24432 2019-06-10 Martin Sebor <msebor@redhat.com>
24434 * gimple-fold.c (get_range_strlen): Update comment that didn't
24435 make it into r267503 or related commits.
24437 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24439 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24440 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24442 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24444 * tree.def (OMP_SCAN): New tree code.
24445 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24446 OMP_CLAUSE_EXCLUSIVE.
24447 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24448 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24449 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24450 OMP_CLAUSE_{IN,EX}CLUSIVE.
24451 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24452 * tree-nested.c (convert_nonlocal_reference_stmt,
24453 convert_local_reference_stmt, convert_gimple_call): Handle
24455 * tree-pretty-print.c (dump_omp_clause): Handle
24456 OMP_CLAUSE_{IN,EX}CLUSIVE.
24457 (dump_generic_node): Handle OMP_SCAN.
24458 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24459 * gimple.h (gomp_scan): New type.
24460 (is_a_helper <gomp_scan *>::test,
24461 is_a_helper <const gomp_scan *>::test): New templates.
24462 (gimple_build_omp_scan): Declare.
24463 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24464 gimple_omp_scan_set_clauses): New inline functions.
24465 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24466 * gimple.c (gimple_build_omp_scan): New function.
24467 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24468 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24469 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24470 GIMPLE_OMP_TASKGROUP.
24471 (dump_gimple_omp_scan): New function.
24472 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24473 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24474 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24475 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24476 (is_gimple_stmt): Handle OMP_SCAN.
24477 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24478 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24479 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24480 mentioned in nested #pragma omp scan. Handle
24481 OMP_CLAUSE_{IN,EX}CLUSIVE.
24482 (gimplify_expr): Handle OMP_SCAN.
24483 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24484 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24486 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24489 2019-06-10 Martin Liska <mliska@suse.cz>
24491 * ipa-cp.c (ignore_edge_p): New function.
24492 (build_toporder_info): Use it.
24493 * ipa-inline.c (ignore_edge_p): New function.
24494 (inline_small_functions): Use it.
24495 * ipa-pure-const.c (ignore_edge_for_nothrow):
24496 Verify opt_for_fn for caller and callee.
24497 (ignore_edge_for_pure_const): Likewise.
24498 * ipa-reference.c (ignore_edge_p): Extend to check
24500 * ipa-utils.c (searchc): Refactor.
24501 * ipa-utils.h: Fix coding style.
24503 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24505 * config/arc/arc.c (arc_rtx_costs): Update costs.
24507 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24509 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24510 (arc_split_ior): Likewise.
24511 (arc_check_mov_const): Likewise.
24512 (arc_split_mov_const): Likewise.
24513 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24514 (arc_rtx_costs): Replace check Crr with Cax constraint.
24515 (prepare_move_operands): Cleanup, remove unused code.
24516 (arc_split_ior): New function.
24517 (arc_check_ior_const): Likewise.
24518 (arc_split_mov_const): Likewise.
24519 (arc_check_mov_const): Likewise.
24520 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24521 in define_insn_and_split pattern.
24522 (iorsi3): Likewise.
24523 (mulsi3_v2): Add new matching variant.
24524 (andsi3_i): Cleanup pattern.
24525 (rotrsi3_cnt1): Update pattern.
24526 (rotrsi3_cnt8): New pattern.
24527 (ashlsi2_cnt8): Likewise.
24528 (ashlsi2_cnt16): Likewise.
24529 * config/arc/constraints.md (C0p): Update constraint.
24531 (C0x): New pattern.
24532 (Cax): New pattern.
24534 2019-06-10 Martin Liska <mliska@suse.cz>
24536 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24537 Update coding style.
24538 (sem_item_optimizer::dump_cong_classes):
24539 Print how many items are in a non-singular class. Improve
24542 2019-06-10 Martin Liska <mliska@suse.cz>
24544 * value-prof.c (dump_histogram_value): Change dump format.
24545 (gimple_mod_subtract_transform): Remove legacy comment.
24547 2019-06-10 Martin Liska <mliska@suse.cz>
24549 * value-prof.c (dump_histogram_value): Print histogram values
24552 2019-06-10 Martin Liska <mliska@suse.cz>
24554 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24555 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24556 * ipa-profile.c (ipa_profile_generate_summary):
24557 Use get_most_common_single_value.
24558 * tree-profile.c (gimple_init_gcov_profiler):
24559 Instrument with __gcov_one_value_profiler_v2
24560 and __gcov_indirect_call_profiler_v4.
24561 * value-prof.c (dump_histogram_value):
24562 Print all values for HIST_TYPE_SINGLE_VALUE.
24563 (stream_out_histogram_value): Update assert for
24565 (stream_in_histogram_value): Set number of
24566 counters for HIST_TYPE_SINGLE_VALUE.
24567 (get_most_common_single_value): New.
24568 (gimple_divmod_fixed_value_transform):
24569 Use get_most_common_single_value.
24570 (gimple_ic_transform): Likewise.
24571 (gimple_stringops_transform): Likewise.
24572 (gimple_find_values_to_profile): Set number
24573 of counters for HIST_TYPE_SINGLE_VALUE.
24574 * value-prof.h (get_most_common_single_value): New.
24576 2019-06-10 Martin Liska <mliska@suse.cz>
24578 * hash-map.h: Pass default value to hash_table ctor.
24579 * hash-table.h: Add default value to call of a ctor.
24581 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24583 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24584 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24586 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24589 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24590 Call pa_output_function_label.
24591 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24592 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24593 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24595 (pa_linux_output_function_prologue): Declare.
24596 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24597 (pa_output_function_label): New.
24598 (pa_output_function_prologue): Revise to use pa_output_function_label.
24599 (pa_linux_output_function_prologue): New.
24600 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24602 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24604 * tree-vrp.h (value_range_base::intersect): New.
24605 (value_range::intersect_helper): Move from here...
24606 (value_range_base::intersect_helper): ...to here.
24607 * tree-vrp.c (value_range::intersect_helper): Rename to...
24608 (value_range_base::intersect_helper): ...this, and rewrite to
24609 return a value instead of modifying THIS in place.
24610 Also, move equivalence handling...
24611 (value_range::intersect): ...here, while calling intersect_helper.
24612 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24614 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24616 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24618 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24620 * Makefile.in (genprogerr): Add condmd.
24621 (genprog): Remove it here.
24623 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24625 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24627 2019-06-07 Richard Biener <rguenther@suse.de>
24630 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24631 that appear after user labels.
24633 2019-06-07 Martin Liska <mliska@suse.cz>
24635 * cselib.c (cselib_init): Disable hash table
24637 * hash-set.h: Pass new default argument to m_table.
24638 * hash-table.c: Add global variable with hash table
24639 sanitization limit.
24640 * hash-table.h (Allocator>::hash_table): Add new argument
24642 (hashtab_chk_error): New.
24643 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24644 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24645 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24647 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24649 * common.opt (flto-odr-type-merging): Ignore.
24650 * invoke.texi (-flto-odr-type-merging): Remove.
24651 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24652 (can_be_vtable_hashed_p): Remove.
24653 (hash_odr_vtable): Remove.
24654 (odr_vtable_hasher::hash): Remove.
24655 (types_same_for_odr): Remove.
24656 (types_odr_comparable): Remove.
24657 (odr_vtable_hasher::equal): Remove.
24658 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24659 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24660 (get_odr_type): Do not use vtable hash.
24661 (dump_odr_type): Remove commented out code.
24662 (build_type_inheritance_graph): Do not allocate vtable hash.
24663 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24664 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24665 (odr_type_p): Likewise.
24666 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24669 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24671 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24672 immediately after same_types_for_tbaa_p returns -1 and continue
24673 looking for possible exact match; if matching types are arrays
24674 watch for partial overlaps.
24675 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24676 (indirect_refs_may_alias_p): Do type based disambiguation first;
24679 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24681 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24683 2019-06-07 Martin Liska <mliska@suse.cz>
24685 * doc/invoke.texi: Remove param.
24686 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24688 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24689 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24690 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24691 * profile.c (instrument_values): Remove
24692 HIST_TYPE_INDIR_CALL_TOPN.
24693 * tree-profile.c (init_ic_make_global_vars):
24694 Always build __gcov_indirect_call only.
24695 (gimple_init_gcov_profiler): Remove usage
24696 of PARAM_INDIR_CALL_TOPN_PROFILE.
24697 (gimple_gen_ic_profiler): Likewise.
24698 * value-prof.c (dump_histogram_value): Likewise.
24699 (stream_in_histogram_value): Likewise.
24700 (gimple_indirect_call_to_profile): Likewise.
24701 (gimple_find_values_to_profile): Likewise.
24702 * value-prof.h (enum hist_type): Likewise.
24704 2019-06-07 Martin Liska <mliska@suse.cz>
24706 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24709 2019-06-07 Martin Liska <mliska@suse.cz>
24711 PR tree-optimization/78902
24712 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24713 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24714 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24715 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24716 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24717 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24718 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24719 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24720 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24721 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24722 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24723 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24724 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24726 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24727 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24728 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24729 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24730 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24731 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24732 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24733 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24734 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24735 warn_unused_result attribute.
24736 (BUILT_IN_STRDUP): Likewise.
24737 (BUILT_IN_STRNDUP): Likewise.
24738 (BUILT_IN_ALLOCA): Likewise.
24739 (BUILT_IN_CALLOC): Likewise.
24740 (BUILT_IN_MALLOC): Likewise.
24741 (BUILT_IN_REALLOC): Likewise.
24743 2019-06-06 Jim Wilson <jimw@sifive.com>
24746 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24747 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24748 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24750 2019-06-06 Martin Sebor <msebor@redhat.com>
24752 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24753 (handle_builtin_malloc): Remove trailing spaces.
24754 (handle_builtin_memset): Same.
24755 (handle_builtin_memcmp): Same.
24756 (compute_string_length): Same.
24757 (determine_min_objsize): Same.
24758 (handle_builtin_string_cmp): Same.
24759 (handle_char_store): Same. Break up excessively long line.
24761 2019-06-06 Martin Jambor <mjambor@suse.cz>
24763 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24766 2019-06-06 Martin Jambor <mjambor@suse.cz>
24768 * tree-sra.c (struct access): New field grp_same_access_path.
24769 (dump_access): Dump it.
24770 (build_reconstructed_reference): New function.
24771 (build_ref_for_model): Use it if possible.
24772 (path_comparable_for_same_access): New function.
24773 (same_access_path_p): Likewise.
24774 (sort_and_splice_var_accesses): Set the new flag.
24775 (analyze_access_subtree): Likewise.
24776 (propagate_subaccesses_across_link): Propagate zero value of the new
24777 flag down the access tree.
24779 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24781 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24782 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24783 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24784 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24787 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24789 PR tree-optimization/90332
24790 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24791 Handle VALS containing two vectors.
24792 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24794 (@aarch64_combinez<mode>): ... This.
24795 (*aarch64_combinez_be<mode>): Rename to...
24796 (@aarch64_combinez_be<mode>): ... This.
24797 (vec_init<mode><Vhalf>): New define_expand.
24798 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24800 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24802 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24803 library functions only when not optimizing for size.
24804 (ashlsi3): Likewise.
24805 (ashrhi3): Likewise.
24806 (ashrsi3): Likewise.
24807 (lshrhi3): Likewise.
24808 (lshrsi3): Likewise.
24810 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24812 PR rtl-optimization/88751
24813 * ira.c (ira): Use the number of the actually referenced registers
24814 when calculating the threshold.
24816 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24818 * configure: Regenerate.
24820 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24822 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24823 register if it is in memory, so the shift can be emulated with a rotate
24825 (ashrhi3): Likewise.
24826 (lshrhi3): Likewise.
24828 2019-06-06 Martin Liska <mliska@suse.cz>
24830 PR tree-optimization/87954
24831 * match.pd: Simplify mult where both arguments are 0 or 1.
24833 2019-06-06 Richard Biener <rguenther@suse.de>
24835 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24836 put equivalences on UNDEFINED ranges.
24837 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24838 Make sure to drop defs of stmts added during simplification
24841 2019-06-06 Richard Biener <rguenther@suse.de>
24843 * tree-ssa-structalias.c: Include tree-cfg.h.
24844 (make_heapvar): Do not make heap vars artificial.
24845 (find_func_aliases_for_builtin_call): Handle stack allocation
24847 (find_func_aliases): Delay processing of simple enough returns
24849 (set_uids_in_ptset): Adjust.
24850 (find_what_var_points_to): Likewise.
24851 (solve_constraints): Do not dump points-to sets here.
24852 (compute_points_to_sets): Post-process return statements,
24853 amending the escaped solution. Dump points-to sets afterwards.
24854 (ipa_pta_execute): Dump points-to sets.
24856 2019-06-06 Martin Liska <mliska@suse.cz>
24859 * doc/install.texi: Fix HTML headers and
24860 titles for 'Installing GCC' pages.
24862 2019-06-06 Martin Liska <mliska@suse.cz>
24864 * ipa-icf-gimple.h (dump_message_1): Remove.
24865 (dump_message): Likewise.
24866 (return_false_with_message_1): Print also file.
24867 (return_false_with_msg): Likewise.
24868 (return_with_result): Likewise.
24869 (return_with_debug): Likewise.
24870 * ipa-icf.c (sem_function::equals_private): Remove call
24873 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24875 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24876 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24877 memory operand for it.
24878 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24880 2019-06-05 Martin Sebor <msebor@redhat.com>
24882 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24883 Adjust quoting and hyphenation.
24884 * convert.c (convert_to_real_1): Same.
24885 * gcc.c (driver_wrong_lang_callback): Same.
24886 (driver::handle_unrecognized_options): Same.
24887 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24888 * opts-common.c (cmdline_handle_error): Same.
24889 (read_cmdline_option): Same.
24890 * opts-global.c (complain_wrong_lang): Same.
24891 (print_ignored_options): Same.
24892 (handle_common_deferred_options): Same.
24893 * pretty-print.h: Same.
24894 * print-rtl.c (debug_bb_n_slim): Same.
24895 * sched-rgn.c (make_pass_sched_fusion): Same.
24896 * tree-cfg.c (verify_gimple_assign_unary): Same.
24897 (verify_gimple_label): Same.
24898 * tree-ssa-operands.c (verify_ssa_operands): Same.
24899 * varasm.c (do_assemble_alias): Same.
24900 (assemble_alias): Same.
24902 2019-06-05 Richard Henderson <rth@twiddle.net>
24904 * config/alpha/alpha.c (direct_return): Move down after
24905 struct machine_function definition; use saved frame_size;
24907 (struct machine_function): Add sa_mask, sa_size, frame_size.
24908 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24909 (alpha_compute_frame_layout): ... new function.
24910 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24911 (alpha_initial_elimination_offset): Use saved sa_size.
24912 (alpha_vms_initial_elimination_offset): Likewise.
24913 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24914 (alpha_expand_prologue): Use saved frame data. Merge integer
24915 and fp register save loops.
24916 (alpha_expand_epilogue): Likewise.
24917 (alpha_start_function): Use saved frame data.
24918 * config/alpha/alpha-protos.h (direct_return): Update.
24919 (alpha_sa_size): Remove.
24921 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24923 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24924 multiplication by a power-of-two value.
24925 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24926 and turn the modulo operation into a masking operation.
24928 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24931 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24932 with VOIDmode inner operands.
24934 2019-06-05 Richard Biener <rguenther@suse.de>
24936 PR middle-end/90726
24937 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24938 turn an expression graph into a tree.
24940 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24942 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24944 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24945 treat it like explicit monotonic schedule modifier.
24946 (expand_omp_for): Initialize has_lastprivate_conditional.
24947 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24950 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24951 references, lookup in in hash map MEM_REF operand instead of the
24953 (lower_omp_1): When looking for lastprivate conditional assignments,
24954 handle MEM_REFs with REFERENCE_TYPE operands.
24956 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24957 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24958 and references a VLA. Handle references to non-VLAs if is_simd
24959 all privatization clauses like reductions.
24960 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24961 If omp_is_reference, use always omp simd arrays and set
24962 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24963 fails, emit reference initialization.
24965 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24968 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24969 _mm_mask_fpclass_sd_mask): New intrinsics.
24970 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24971 * config/i386/i386-builtin.def
24972 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24974 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24975 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24976 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24977 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24978 case QI_FTYPE_V2SF_INT): Ditto.
24979 * config/i386/sse.md
24980 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24981 Extended to insnstructions with mask operands.
24983 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24985 * config/rs6000/constraints.md (define_register_constraint "wp"):
24987 (define_register_constraint "wq"): Delete.
24988 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24989 (rs6000_init_hard_regno_mode_ok): Adjust.
24990 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24991 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24992 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24993 (define_mode_attr VSa): Delete.
24994 (define_mode_attr VSisa): New.
24995 (rest of file): Adjust.
24996 * doc/md.texi (Machine Constraints): Adjust.
24998 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25000 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
25001 (define_attr "enabled"): Handle those new isa values.
25003 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25005 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
25006 (define_mode_attr VSr5): Delete.
25007 (define_mode_attr VStype_sqrt): Delete.
25008 (define_mode_iterator VSX_SPDP): Delete.
25009 (define_mode_attr VS_spdp_res): Delete.
25010 (define_mode_attr VS_spdp_insn): Delete.
25011 (define_mode_attr VS_spdp_type): Delete.
25012 (*vsx_sqrt<mode>2): Adjust.
25013 (vsx_<VS_spdp_insn>): Delete, split to...
25014 (vsx_xscvdpsp): ... this. New. And...
25015 (vsx_xvcvspdp): ... this. New. And...
25016 (vsx_xvcvdpsp): ... this. New.
25018 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25020 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
25022 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
25023 (rest of file): Adjust.
25025 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25027 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
25028 (vsx_extract_<mode>_var): Ditto.
25030 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25032 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
25035 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25037 * config/rs6000/constraints.md (define_register_constraint "ww"):
25039 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25040 (rs6000_init_hard_regno_mode_ok): Adjust.
25041 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25042 RS6000_CONSTRAINT_ww.
25043 * config/rs6000/rs6000.md: Adjust.
25044 * config/rs6000/vsx.md: Adjust.
25045 * doc/md.texi (Machine Constraints): Adjust.
25047 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25049 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
25050 (define_mode_attr sd): New.
25051 (define_mode_attr s): New.
25052 (define_mode_attr Ftrad): Delete.
25053 (define_mode_attr Fvsx): Delete.
25054 (define_mode_attr Fs): Delete.
25055 (rest of file): Use the new mode attributes.
25056 * config.rs6000/vsx.md: Use the new mode attributes.
25058 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25060 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
25063 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25065 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
25066 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
25067 used with VSX_B, VSX_D, or VSX_F, with just "wa".
25069 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
25072 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
25073 C++ with strict ANSI requirements.
25075 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
25077 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
25078 computations when step is 1.
25080 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25082 * config/rs6000/constraints.md (define_register_constraint "wf"):
25084 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25085 (rs6000_init_hard_regno_mode_ok): Adjust.
25086 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25087 RS6000_CONSTRAINT_wf.
25088 * config/rs6000/rs6000.md: Adjust.
25089 * config/rs6000/vsx.md: Adjust.
25090 * doc/md.texi (Machine Constraints): Adjust.
25092 2019-06-04 Andrew Pinski <apinski@marvell.com>
25094 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25097 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25099 * config/rs6000/constraints.md (define_register_constraint "wd"):
25101 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25102 (rs6000_init_hard_regno_mode_ok): Adjust.
25103 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25104 RS6000_CONSTRAINT_wd.
25105 * config/rs6000/rs6000.md: Adjust.
25106 * config/rs6000/vsx.md: Adjust.
25107 * doc/md.texi (Machine Constraints): Adjust.
25109 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25111 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25112 (rest of file): Adjust.
25114 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25116 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25117 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25118 (vsx_splat_<mode>_reg): Adjust.
25120 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25122 * config/rs6000/constraints.md (define_register_constraint "ws"):
25124 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25125 (rs6000_init_hard_regno_mode_ok): Adjust.
25126 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25127 RS6000_CONSTRAINT_ws.
25128 * config/rs6000/rs6000.md: Adjust.
25129 * config/rs6000/vsx.md: Adjust.
25130 * doc/md.texi (Machine Constraints): Adjust.
25132 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25134 * config/rs6000/constraints.md (define_register_constraint "wv"):
25136 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25137 (rs6000_init_hard_regno_mode_ok): Adjust.
25138 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25139 RS6000_CONSTRAINT_wv.
25140 * config/rs6000/rs6000.md: Adjust.
25141 * config/rs6000/vsx.md: Adjust.
25142 * doc/md.texi (Machine Constraints): Adjust.
25144 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25146 * config/rs6000/constraints.md (define_register_constraint "wi"):
25148 (define_register_constraint "wt"): Delete.
25149 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25150 (rs6000_init_hard_regno_mode_ok): Adjust.
25151 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25152 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25153 * config/rs6000/rs6000.md: Adjust.
25154 * config/rs6000/vsx.md: Adjust.
25155 * doc/md.texi (Machine Constraints): Adjust.
25157 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25159 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25161 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25162 default_elf_asm_output_external.
25164 2019-06-04 Martin Liska <mliska@suse.cz>
25166 * ipa-icf.c (INCLUDE_LIST): Remove.
25167 (sem_item_optimizer::execute): Remove call to init_wpa.
25168 * ipa-icf.h (init_wpa): Remove.
25170 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25172 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25173 conditional on combined for simd.
25174 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25176 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25177 constructs, don't remove lastprivate_conditional_map, but instead set
25178 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25179 to parent construct temporaries.
25180 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25181 like !ctx->lastprivate_conditional_map.
25182 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25183 use up->outer context instead of up.
25184 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25185 gimple_omp_for_combined_p.
25186 (expand_omp_for_static_nochunk): Likewise.
25187 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25188 probably moved over into expand_omp_for_generic rather than being copied
25191 2019-06-04 Martin Liska <mliska@suse.cz>
25193 * value-prof.c (dump_histogram_value): Fix typo.
25194 (gimple_mod_subtract_transform): Likewise.
25196 2019-06-04 Richard Biener <rguenther@suse.de>
25198 PR middle-end/90726
25199 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25200 (tree_contains_chrecs): Likewise.
25201 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25202 exponential behaivor from ...
25203 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25205 (expression_expensive_p): Avoid exponential behavior and compute
25206 expanded size, rejecting any expansion.
25207 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25208 (idx_contains_abnormal_ssa_name_p): Likewise.
25209 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25210 (contains_abnormal_ssa_name_p): Simplify and use
25211 walk_tree_without_duplicates.
25213 2019-06-04 Richard Biener <rguenther@suse.de>
25215 PR tree-optimization/90738
25217 2019-06-03 Richard Biener <rguenther@suse.de>
25219 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25220 full reference tree and record in ref->ref.
25221 (vn_reference_lookup_3): Pass in original ref to
25222 ao_ref_init_from_vn_reference.
25223 (vn_reference_lookup): Likewise.
25224 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25225 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25226 Handle non-decl bases in the original reference.
25228 2019-06-04 Martin Liska <mliska@suse.cz>
25230 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25231 number of references.
25232 (sem_item_optimizer::do_congruence_step):
25233 (sem_item_optimizer::worklist_push): Dump how references
25235 (sem_item_optimizer::worklist_pop): Use heap.
25236 (sem_item_optimizer::process_cong_reduction): Likewise.
25237 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25239 2019-06-04 Martin Liska <mliska@suse.cz>
25241 * ipa-icf.h (struct sem_usage_pair_hash): New.
25242 (sem_usage_pair_hash::hash): Likewise.
25243 (sem_usage_pair_hash::equal): Likewise.
25244 (struct sem_usage_hash): Likewise.
25245 * ipa-icf.c (sem_item::sem_item): Initialize
25246 referenced_by_count.
25247 (sem_item::add_reference): Register a reference
25248 in ref_map and not in target->usages.
25249 (sem_item::setup): Remove initialization of
25251 (sem_item::~sem_item): Remove usage of dead vectors.
25252 (sem_item::dump): Remove dump of references.
25253 (sem_item_optimizer::sem_item_optimizer): Initialize
25255 (sem_item_optimizer::read_section): Remove useless
25257 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25258 (sem_item_optimizer::build_graph): Pass m_references
25259 to ::add_reference.
25260 (sem_item_optimizer::verify_classes): Remove usage of dead
25262 (sem_item_optimizer::traverse_congruence_split): Return true
25263 when a class is split.
25264 (sem_item_optimizer::do_congruence_step_for_index): Use
25265 hash_map for look up of (sem_item *, index). That brings
25266 significant speed up.
25267 (sem_item_optimizer::do_congruence_step): Return true
25268 when a split is done.
25269 (congruence_class::is_class_used): Use referenced_by_count.
25271 2019-06-04 Alan Modra <amodra@gmail.com>
25274 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25277 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25279 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25280 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25281 (rs6000_secondary_reload_simple_move): Adjust.
25282 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25283 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25284 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25287 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25288 (floatunssi<mode>2_lfiwzx): Adjust.
25289 (fix_trunc<mode>si2_stfiwx): Adjust.
25290 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25291 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25292 (mfpgpr): Mark as deprecated.
25293 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25294 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25295 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25297 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25299 * config/rs6000/constraints.md (define_register_constraint "wg"):
25301 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25302 RS6000_CONSTRAINT_wg.
25303 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25304 (rs6000_init_hard_regno_mode_ok): Adjust.
25305 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25306 Delete "wg" alternatives.
25307 * doc/md.texi (Machine Constraints): Adjust.
25309 2019-06-03 Alan Modra <amodra@gmail.com>
25311 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25312 (get_uncond_jump_length): Assert length less than INT_MAX and
25315 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25317 PR middle-end/64242
25318 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25320 (expand_builtin_nonlocal_goto): Likewise.
25322 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25324 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25325 (aarch64_asm_output_external): Declare.
25326 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25327 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25328 (aarch64_asm_output_alias): New.
25329 (aarch64_asm_output_external): New.
25330 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25331 (ASM_OUTPUT_EXTERNAL): Define.
25333 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25334 * tree-vrp.h (value_range_base::nonzero_p): New.
25335 (value_range_base::set_nonnull): Rename to...
25336 (value_range_base::set_nonzero): ...this.
25337 (value_range_base::set_null): Rename to...
25338 (value_range_base::set_zero): ...this.
25339 (value_range::set_nonnull): Remove.
25340 (value_range::set_null): Remove.
25341 * tree-vrp.c (range_is_null): Remove.
25342 (range_is_nonnull): Remove.
25343 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25344 instead of range_is_*null.
25345 (extract_range_from_unary_expr): Same.
25346 (value_range_base::set_nonnull): Rename to...
25347 (value_range_base::set_nonzero): ...this.
25348 (value_range::set_nonnull): Remove.
25349 (value_range_base::set_null): Rename to...
25350 (value_range_base::set_zero): ...this.
25351 (value_range::set_null): Remove.
25352 (extract_range_from_binary_expr): Rename set_*null uses to
25354 (extract_range_from_unary_expr): Same.
25355 (union_helper): Same.
25356 * vr-values.c (get_value_range): Use set_*zero instead of
25358 (vr_values::extract_range_from_binary_expr): Same.
25359 (vr_values::extract_range_basic): Same.
25361 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25364 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25366 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25368 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25369 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25371 (aarch64_<su>abd<mode>_3): ... This.
25372 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25374 2019-06-03 Richard Biener <rguenther@suse.de>
25376 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25377 full reference tree and record in ref->ref.
25378 (vn_reference_lookup_3): Pass in original ref to
25379 ao_ref_init_from_vn_reference.
25380 (vn_reference_lookup): Likewise.
25381 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25382 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25383 Handle non-decl bases in the original reference.
25385 2019-06-03 Martin Liska <mliska@suse.cz>
25387 * doc/generic.texi: Remove Java Trees.
25389 2019-06-03 Martin Liska <mliska@suse.cz>
25391 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25392 returns 0 when operands are equal.
25394 2019-06-03 Richard Biener <rguenther@suse.de>
25396 PR tree-optimization/90716
25397 * tree-loop-distribution.c (destroy_loop): Process blocks in
25400 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25403 * vector-builder.h (vector_builder::count_dups): New method.
25404 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25406 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25407 (vec_init<mode><Vel>): New pattern.
25408 * config/aarch64/aarch64.c (emit_insr): New function.
25409 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25410 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25411 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25412 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25414 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25416 PR tree-optimization/90681
25417 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25418 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25419 special case for SLP, but fail on non-groupped loads.
25421 2019-06-03 Martin Liska <mliska@suse.cz>
25423 * cfg.c (debug): Use TDF_DETAILS for debug and
25424 print edge info only once.
25426 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25429 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25431 2019-06-01 Martin Sebor <msebor@redhat.com>
25433 PR middle-end/90694
25434 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25436 2019-05-31 Jan Hubicka <jh@suse.cz>
25438 * alias.c: Include ipa-utils.h.
25439 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25440 * ipa-devirt.c (prevailing_odr_type): New.
25441 * ipa-utils.h (previaling_odr_type): Declare.
25443 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25444 Hongtao Liu <hongtao.liu@intel.com>
25447 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25448 NOTE_INSN_DELETED_LABEL check.
25450 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25451 Robert Suchanek <robert.suchanek@mips.com>
25453 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25454 and 3rd operands of the fmadd/fmsub/maddv builtin.
25456 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25458 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25459 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25460 on OMP_SIMD if not nested inside of worksharing loop that also has
25461 lastprivate conditional clause for the same decl.
25462 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25463 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25465 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25467 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25469 (lower_lastprivate_clauses): Likewise.
25470 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25471 calling lower_rec_input_clauses.
25472 (lower_omp_for): Likewise.
25473 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25474 clause on simd construct.
25475 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25476 OMP_CLAUSE__CONDTEMP_ clause is present.
25478 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25481 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25484 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25485 TEX_D32, TEX_D64 or TEX_D128.
25487 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25489 * match.pd (~(vec?cst1:cst2)): New transformation.
25491 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25493 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25494 ((size_t)(A /[ex] B) CMP C): New transformation.
25496 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25498 * doc/md.texi: Document define_insn_and_rewrite.
25499 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25500 * gensupport.c (queue_elem): Update comment.
25501 (replace_operands_with_dups): New function.
25502 (gen_rewrite_sequence): Likewise.
25503 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25504 * read-rtl.c (apply_subst_iterator): Likewise.
25505 (add_condition_to_rtx, named_rtx_p): Likewise.
25506 (rtx_reader::read_rtx_operand): Likewise.
25507 * config/aarch64/aarch64-sve.md
25508 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25509 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25510 define_insn_and_rewrite.
25511 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25512 Remove separate define_split.
25514 2019-05-31 Jan Hubicka <jh@suse.cz>
25516 * tree-ssa-alias.c (type_has_components_p): New function.
25517 (aliasing_component_refs_p): Use it.
25519 2019-05-31 Martin Liska <mliska@suse.cz>
25521 * gdbhooks.py: Add const_tree to TreePrinter.
25523 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25526 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25527 * doc/invoke.texi (Debugging Options): Document new default of
25528 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25530 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25532 PR tree-optimization/90671
25533 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25534 template_block used to be empty on the first call, don't use
25535 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25536 seq with bb_seq and set it with set_bb_seq.
25538 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25540 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25542 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25543 Michael Meissner <meissner@linux.ibm.com>
25545 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25546 (prefixed_mem_operand): Likewise.
25547 (non_prefixed_mem_operand): Likewise.
25548 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25550 * config/rs6000/rs6000.c (print_operand_address): Handle
25551 PC-relative addresses.
25552 (mode_supports_prefixed_address_p): New function.
25553 (rs6000_prefixed_address): New function.
25554 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25555 (SYMBOL_REF_PCREL_P): Likewise.
25557 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25559 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25560 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25561 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25562 is nested inside of parallel region, add _condtemp_ clause to both.
25563 * tree-nested.c (convert_nonlocal_omp_clauses,
25564 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25566 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25568 * omp-general.c (omp_extract_for_data): Compute it.
25569 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25570 (lower_rec_input_clauses): Likewise.
25571 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25572 clause is already present, just add one further one after it.
25573 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25574 (lower_send_shared_vars): Clear _condtemp_ vars.
25575 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25576 or section or taskgroup.
25577 * omp-expand.c (determine_parallel_type): Disallow combining only if
25578 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25579 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25580 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25581 expand_omp_for_static_chunk, expand_omp_for): Use
25582 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25583 determine if a special set of API routines are needed and if condtemp
25584 needs to be initialized, while always initialize cond_var if
25585 fd->lastprivate_conditional is non-zero.
25587 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25588 Michael Meissner <meissner@linux.ibm.com>
25590 * config/rs6000/constraints.md (eI): New constraint.
25591 * config/rs6000/predicates.md (cint34_operand): New predicate.
25592 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25593 (SIGNED_34BIT_OFFSET_P): Likewise.
25594 * doc/md.texi (eI): Document constraint.
25596 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25598 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25600 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25601 Michael Meissner <meissner@linux.ibm.com>
25603 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25604 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25605 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25606 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25607 (OTHER_FUTURE_MASKS): Likewise.
25608 (POWERPC_MASKS): Likewise.
25609 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25610 specified without -mprefixed-addr or -mcpu=future. Error if
25611 -mprefixed-addr is specified without -mcpu=future.
25612 (rs6000_opt_masks): Add entry for prefixed-addr.
25613 * rs6000.opt (mprefixed-addr): New option.
25615 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25617 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25618 cfun->is_thunk check.
25620 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25622 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25625 2019-05-30 Martin Liska <mliska@suse.cz>
25627 * gdbinit.in: Fix 'ptc' command. Add trt
25628 that prints TREE_TYPE($).
25630 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25631 Alan Modra <amodra@gmail.com>
25633 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25635 (rs6000_indirect_call_template_1): ...and here.
25636 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25637 plt16_ha, plt16_lo, mtctr indirect calls. Use
25638 rs6000_pltseq_enum.
25639 (rs6000_decl_ok_for_sibcall): New function.
25640 (rs6000_function_ok_for_sibcall): Refactor.
25641 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25642 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25643 when pcrel. Reorganize.
25644 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25645 * rs6000.h (rs6000_pltseq_enum): New enum.
25646 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25647 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25648 (*pltseq_plt16_ha): Likewise.
25649 (*pltseq_plt16_lo): Likewise.
25650 (*pltseq_mtctr): Likewise.
25651 (*pltseq_plt_pcrel): New insn.
25652 (*call_local_aix): Handle @notoc calls.
25653 (*call_value_local_aix): Likewise.
25654 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25655 (*call_value_nonlocal_aix): Likewise.
25656 (*call_indirect_pcrel): New insn.
25657 (*call_value_indirect_pcrel): Likewise.
25659 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25661 * config/i386/sse.md (*save_multiple<mode>): Rename from
25662 save_multiple<mode>.
25663 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25664 (*restore_multiple_and_return<mode>): Rename from
25665 restore_multiple_and_return<mode>.
25666 (*restore_multiple_leave_return<mode>): Rename from
25667 restore_multiple_leave_return<mode>.
25669 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25671 * config.gcc (rx-*-linux*): New target.
25672 * config/rx/elf.opt: New file.
25673 * config/rx/linux.h: Likewise.
25674 * config/rx/t-linux: Likewise.
25675 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25677 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25678 (ASM_APP_OFF): Likewise.
25679 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25682 2019-05-29 Jan Hubicka <jh@suse.cz>
25684 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25685 variants are pointer equivalent.
25687 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25689 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25690 * config/aarch64/aarch64-sve2.md: New file.
25691 (<u>avg<mode>3_floor): New pattern.
25692 (<u>avg<mode>3_ceil): Likewise.
25693 (*<sur>h<addsub><mode>): Likewise.
25694 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25695 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25697 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25700 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25701 for var_opt_string printing. In cl_optimization_print_diff, print
25702 (null) instead of invoking undefined behavior if one of the
25703 var_opt_string pointers is NULL and use && instead of first || in the
25704 guarding condition. For var_target_other options, handle const char *
25705 target variables similarly to const char * optimize node variables.
25707 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25709 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25710 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25711 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25712 Add autib1716 and pacib1716 initialisation.
25713 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25714 for autib1716 and pacib1716.
25715 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25716 aarch64_post_cfi_startproc): Define.
25717 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25718 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25719 aarch64_handle_pac_ret_protection): Set default sign key to A.
25720 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25721 aarch64_expand_prologue): Add check for b-key.
25722 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25723 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25724 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25725 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25726 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25727 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25728 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25729 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25730 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25731 pauth_hint_num_a with pauth_hint_num.
25732 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25733 pauth_hint_num_a with pauth_hint_num.
25734 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25735 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25736 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25737 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25738 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25739 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25740 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25741 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25742 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25743 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25744 UNSPEC_AUTIA1716 respectively.
25745 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25746 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25747 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25748 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25749 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25750 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25752 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25754 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25755 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25756 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25757 explicit clause on combined parallel into implicit shared clause.
25758 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25759 and firstprivate if the decl has one too from combined parallel to
25760 the worksharing construct.
25762 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25763 Michael Meissner <meissner@linux.ibm.com>
25765 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25767 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25769 * rtl.h (LABEL_REF_P): New #define.
25771 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25773 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25775 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25777 * internal-fn.c: Marked mask_load_direct as vectorizable.
25778 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25779 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25780 combined even if masks different with allow_slp_p param.
25781 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25782 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25783 dissolve SLP-only vectorizable groups when SLP has been discarded.
25784 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25785 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25787 (vect_build_slp_tree_1): Fixed comment typo.
25788 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25789 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25790 loads for SLP only.
25791 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25793 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25795 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25797 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25798 Remove obsolete use_thunk reference.
25799 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25800 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25801 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25802 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25803 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25804 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25805 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25806 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25807 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25809 2019-05-28 Nathan Sidwell <nathan@acm.org>
25811 * tree.h (IDENTIFIER_ANON_P): New.
25812 (anon_aggrname_format, anon_aggname_p): Don't declare.
25813 (make_anon_name): Declare.
25814 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25815 (hash_tree): Likewise.
25816 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25817 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25818 (anon_cnt, make_anon_name): New.
25820 2019-05-28 Martin Liska <mliska@suse.cz>
25823 * opts-global.c (decode_options): Print help for all
25824 help_option_arguments.
25825 * opts.c (print_help): Add new argument.
25826 (common_handle_option): Remember all values into
25827 help_option_arguments.
25828 * opts.h (print_help): Add new argument.
25830 2019-05-28 Martin Liska <mliska@suse.cz>
25833 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25834 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25835 (func_checker::compare_bb): Call compare_loops.
25837 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25839 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25840 on sections construct.
25841 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25843 (lower_omp_sections): Handle lastprivate conditional.
25844 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25845 lastprivate_conditional_map.
25846 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25848 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25849 critical, taskgroup and section regions when looking for a region
25850 with non-NULL lastprivate_conditional_map.
25852 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25854 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25855 (*ix86_gen_sub3): Ditto.
25856 (*ix86_gen_sub3_carry): Ditto.
25857 (*ix86_gen_one_cmpl2): Ditto.
25858 (*ix86_gen_andsp): Ditto.
25859 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25860 (gen_and2_insn): New static function.
25861 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25862 Use gen_add3_insn instead of ix86_gen_add3.
25863 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25864 instead of ix86_gen_add3.
25865 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25866 Use gen_sub3_insn instead of ix86_gen_sub3.
25867 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25868 instead of ix86_gen_add3.
25869 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25870 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25871 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25872 * config/i386/i386-options.c (ix86_option_override_internal):
25873 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25874 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25876 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25878 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25879 and DW_OP_GNU_const_index opcodes.
25881 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25883 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25885 2019-05-27 Richard Biener <rguenther@suse.de>
25887 PR tree-optimization/90637
25888 * tree-ssa-sink.c (statement_sink_location): Honor the
25889 computed sink location for single-uses.
25891 2019-05-27 Richard Biener <rguenther@suse.de>
25893 PR middle-end/90610
25894 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25897 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25899 * config/i386/i386.md (@sub<mode>3_carry): Rename
25900 from sub<mode>3_carry.
25901 (@leave_<mode>): New expander.
25902 (*leave): Rename from leave.
25903 (*leave_rex64): Rename from leave_rex64.
25904 (@monitorx_<mode>): Rename from monitorx_<mode>.
25905 (@clzero_<mode>): Rename from clzero_<mode>.
25906 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25907 from sse3_monitor_<mode>.
25908 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25909 (*ix86_gen_leave): Ditto.
25910 (*ix86_gen_monitor): Ditto.
25911 (*ix86_gen_monitorx): Ditto.
25912 (*ix86_gen_clzero): Ditto.
25913 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25914 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25915 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25916 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25917 Use gen_sse3_monitor instead of ix86_gen_monitor.
25918 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25919 instead of ix86_gen_monitorx.
25920 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25921 instead of ix86_gen_clzero.
25922 * config/i386/i386-options.c (ix86_option_override_internal):
25923 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25924 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25926 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25928 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25929 Rename from tls_global_dynamic_64_<mode>.
25930 (@tls_local_dynamic_base_64_<mode>): Rename from
25931 tls_local_dynamic_base_64_<mode>.
25932 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25933 Remove indirect function.
25934 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25935 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25936 instead of ix86_gen_tls_global_dynamic_64.
25937 Use gen_tls_local_dynamic_base_64 instead of
25938 ix86_gen_tls_local_dynamic_base_64.
25939 * config/i386/i386-options.c (ix86_option_override_internal):
25940 Do not initialize ix86_gen_tls_global_dynamic_64 and
25941 ix86_gen_tls_local_dynamic_base_64.
25943 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25945 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25946 Rename from pro_epilogue_adjust_stack_<mode>_add.
25947 (@pro_epilogue_adjust_stack_sub_<mode>)
25948 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25949 (@allocate_stack_worker_probe_<mode>):
25950 Rename from allocate_stack_worker_probe_<mode>.
25951 (allocate_stack): Use gen_allocate_stack_worker_probe.
25952 (probe_stack): Use gen_probe_stack_1.
25953 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25954 (@adjust_stack_and_probe_<mode>): Rename from
25955 adjust_stack_and_probe<mode>.
25956 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25957 (stack_protect_set): Use gen_stack_protect_set_1.
25958 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25959 (stack_protect_test): Use gen_stack_protect_test_1.
25960 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25961 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25962 Remove indirect function.
25963 (*ix86_gen_adjust_stack_and_probe): Ditto.
25964 (*ix86_gen_probe_stack_range): Ditto.
25965 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25966 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25967 (ix86_adjust_stack_and_probe_stack_clash): Use
25968 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25969 (ix86_adjust_stack_and_probe): Ditto.
25970 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25971 of ix86_gen_probe_stack_range.
25972 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25973 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25974 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25975 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25976 CODE_FOR_stack_protect_test_{si,di}.
25977 * config/i386/i386-options.c (ix86_option_override_internal):
25978 Do not initialize ix86_gen_allocate_stack_worker,
25979 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25981 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25983 * doc/invoke.texi (Link Options): Many editorial changes around
25986 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25988 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25989 pre-Solaris 11 referene and most Studio compiler details.
25991 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25994 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25995 DImode to SImode in floating-point registers on 64-bit target.
25996 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25997 register_operand in xmpyu patterns.
25999 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26001 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
26002 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
26003 OMP_CLAUSE__REDUCTEMP_.
26004 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
26005 OMP_CLAUSE__CONDTEMP_.
26006 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
26007 * tree-pretty-print.c (dump_omp_clause): Likewise.
26008 * tree-nested.c (convert_nonlocal_omp_clauses,
26009 convert_local_omp_clauses): Likewise.
26010 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
26011 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
26012 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
26014 (gimplify_omp_for): Warn and disable conditional modifier from
26015 lastprivate on loop iterators.
26016 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
26018 * omp-general.c (omp_extract_for_data): Initialize it.
26019 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
26021 (delete_omp_context): Delete it.
26022 (lower_lastprivate_conditional_clauses): New function.
26023 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
26024 handle lastprivate conditional clauses.
26025 (lower_reduction_clauses): Add CLIST argument, emit it into
26026 the critical section if any.
26027 (lower_omp_sections): Adjust lower_lastprivate_clauses and
26028 lower_reduction_clauses callers.
26029 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
26030 to lower_lastprivate_clauses.
26031 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
26032 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
26033 clist into a critical section if not emitted there already by
26034 lower_reduction_clauses.
26035 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
26037 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
26038 conditional variables.
26039 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
26041 (expand_omp_for_generic, expand_omp_for_static_nochunk,
26042 expand_omp_for_static_chunk): Handle lastprivate conditional.
26043 (expand_omp_for): Handle fd.lastprivate_conditional like
26046 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26048 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
26049 kernel does not exit cleanly.
26050 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
26052 2019-05-24 Jason Merrill <jason@redhat.com>
26055 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26057 2019-05-24 Richard Biener <rguenther@suse.de>
26060 * tree-loop-distribution.c (struct partition): Add location
26062 (partition_alloc): Initialize all fields.
26063 (generate_memset_builtin): Use the location recorded in the
26064 partition for the generated call.
26065 (generate_memcpy_builtin): Likewise.
26066 (classify_partition): Record the location of a single store
26067 as location for the partition.
26069 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
26071 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
26074 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
26077 * common/config/aarch64/aarch64-common.c
26078 (aarch64_rewrite_selected_cpu): Change local temporary variable
26079 type from unsigned long to uint64_t.
26080 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26081 aarch64_get_extension_string_for_isa_flags): Change declaration to
26082 match new definition by replacing unsigned long with uint64_t.
26084 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26087 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26088 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26089 Handle stack_protect_test_<mode> codegen similarly to corresponding
26092 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26094 * config/i386/darwin.h: Reject -mfentry*.
26095 * doc/sourcebuild.texi: Document mfentry target support.
26097 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26099 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26100 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26101 false for PC-relative functions.
26102 (rs6000_output_function_prologue): Change called function name to
26103 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26104 name,1" for PC-relative functions.
26105 (rs6000_elf_declare_function_name): Change called function name to
26106 rs6000_global_entry_point_prologue_needed_p.
26108 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26111 * config/i386/i386.c (gen_rtx_cost):
26112 Use ix86_tune_cost instead of ix86_cost.
26114 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26115 Michael Meissner <meissner@linux.ibm.com>
26116 Segher Boessenkool <segher@kernel.crashing.org>
26118 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26120 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26121 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26122 (rs6000_fndecl_pcrel_p): Likewise.
26123 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26124 error if -mpcrel is requested without -mcpu=future.
26125 (rs6000_opt_masks): Add entry for pcrel.
26126 (rs6000_fndecl_pcrel_p): New function.
26127 (rs6000_pcrel_p): Likewise.
26128 * config/rs6000/rs6000.opt (mpcrel): New option.
26129 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26131 2019-05-23 Jan Hubicka <jh@suse.cz>
26132 Martin Liska <mliska@suse.cz>
26134 PR tree-optimization/90576
26135 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26137 (aliasing_component_refs_p): Fix three way size compare conditional;
26138 give up earlier in case we can not decide on equivalence.
26140 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26141 Michael Meissner <meissner@linux.ibm.com>
26142 Segher Boessenkool <segher@kernel.crashing.org>
26144 * config.gcc: Add future cpu.
26145 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26146 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26148 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26149 (RS6000_CPU): New instantiation for future cpu.
26150 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26152 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26153 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26154 * config/rs6000/rs6000-tables.opt: Regenerate.
26155 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26156 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26157 (rs6000_machine_from_flags): Handle future cpu.
26158 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26159 PROCESSOR_POWER9 for now.
26160 (rs6000_adjust_cost): Likewise.
26161 (rs6000_issue_rate): Likewise.
26162 (rs6000_register_move_cost): Likewise.
26163 (rs6000_opt_masks): Add entry for future.
26164 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26165 (MASK_FUTURE): New #define.
26166 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26167 * config/rs6000/rs6000.opt (mfuture): New target option.
26168 * doc/invoke.texi (mcpu): Add future cpu.
26170 2019-05-23 Martin Liska <mliska@suse.cz>
26173 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26174 operation points to a temporary (pointed via tree_to_wide_ref)
26175 that is out of scope after the &.
26177 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26180 * doc/extend.texi (Function Names): Add missing word.
26182 2019-05-23 Richard Biener <rguenther@suse.de>
26184 PR tree-optimization/88440
26185 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26187 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26189 (generate_memcpy_builtin): Likewise.
26190 (distribute_loop): Pass in whether to only distribute patterns.
26191 (prepare_perfect_loop_nest): Also allow size optimization.
26192 (pass_loop_distribution::execute): When optimizing a loop
26193 nest for size allow pattern replacement.
26195 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26198 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26201 2019-05-23 Martin Liska <mliska@suse.cz>
26204 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26205 expression similarly to gimplify_decl_expr.
26207 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26209 * cse.c (cse_dump_path): s/dump_file/f.
26211 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26214 * diagnostic-format-json.cc: Include "selftest.h".
26215 (json_from_expanded_location): Only add "file" key for non-NULL
26217 (json_from_location_range): Don't add "start" and "finish"
26218 children if they are UNKNOWN_LOCATION.
26219 (selftest::test_unknown_location): New selftest.
26220 (selftest::test_bad_endpoints): New selftest.
26221 (selftest::diagnostic_format_json_cc_tests): New function.
26222 * json.cc (json::object::get): New function.
26223 (selftest::test_object_get): New selftest.
26224 (selftest::json_cc_tests): Call it.
26225 * json.h (json::object::get): New decl.
26226 * selftest-run-tests.c (selftest::run_tests): Call
26227 selftest::diagnostic_format_json_cc_tests.
26228 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26231 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26232 Andrew Stubbs <amd@codesourcery.com>
26234 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26235 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26236 (kernel): Rename to...
26237 (main_kernel): ... this.
26238 (load_image): Load _init_array and _fini_array kernels.
26239 (run): Add argument for kernel to run.
26240 (main): Run init_array_kernel before main_kernel, and
26241 fini_array_kernel after.
26242 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26243 amdgpu_hsa_kernel attribute on functions.
26244 (gcn_disable_constructors): Delete.
26245 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26246 * config/gcn/crt0.c (size_t): Define.
26247 (_init_array, _fini_array): New.
26248 (__preinit_array_start, __preinit_array_end,
26249 __init_array_start, __init_array_end,
26250 __fini_array_start, __fini_array_end): Declare weak references.
26252 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26254 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26256 2019-05-22 Jason Merrill <jason@redhat.com>
26258 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26260 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26263 * config/i386/i386-options.c (ix86_init_machine_status): Set
26264 stack_frame_required to true.
26265 * config/i386/i386.c (ix86_get_frame_size): New function.
26266 (ix86_frame_pointer_required): Replace get_frame_size with
26267 ix86_get_frame_size.
26268 (ix86_compute_frame_layout): Likewise.
26269 (ix86_find_max_used_stack_alignment): Changed to void. Set
26270 stack_frame_required.
26271 (ix86_finalize_stack_frame_flags): Always call
26272 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26273 ix86_get_frame_size.
26274 * config/i386/i386.h (machine_function): Add stack_frame_required.
26276 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26278 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26280 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26282 * common/config/aarch64/aarch64-common.c
26283 (struct aarch64_option_extension, struct processor_name_to_arch,
26284 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26285 aarch64_contains_opt,
26286 aarch64_get_extension_string_for_isa_flags): Change type of
26287 variables storing flags to uint64_t.
26288 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26289 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26290 * config/aarch64/aarch64.c (struct processor,
26291 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26292 aarch64_validate_march, aarch64_override_options,
26293 aarch64_option_print, aarch64_handle_attr_isa_flags,
26294 aarch64_declare_function_name, aarch64_start_file): Make flag
26295 variables uint64_t.
26296 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26297 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26298 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26299 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26300 * config/aarch64/driver-aarch64.c
26301 (struct aarch64_arch_extension, struct aarch64_core_data,
26302 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26303 flag variables uint64_t.
26304 * doc/invoke.texi: Add documentation for new arguments.
26306 2019-05-22 Richard Biener <rguenther@suse.de>
26308 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26310 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26312 2019-05-22 Martin Liska <mliska@suse.cz>
26315 * doc/extend.texi: Document the change.
26317 2019-05-22 Richard Biener <rguenther@suse.de>
26319 PR tree-optimization/90450
26320 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26321 (mem_ref_hasher::equal): Check it.
26322 (mem_ref_alloc): Initialize it.
26323 (gather_mem_refs_stmt): Set it.
26325 2019-05-22 Richard Biener <rguenther@suse.de>
26327 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26329 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26332 2019-05-22 Alan Modra <amodra@gmail.com>
26334 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26335 (ASM_CPU_SPEC): Conditionally add -many.
26336 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26337 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26338 (rs6000_file_start): ..extracted from here, and modified to
26340 (rs6000_output_function_prologue): Emit .machine as necessary.
26342 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26344 PR middle-end/90553
26345 * ira-lives.c (process_bb_node_lives): Consider defs
26346 for a call insn to be die before the call, not after.
26348 * function.c (assign_parm_setup_block): Raise alignment of
26349 stacked parameter only for STRICT_ALIGNMENT targets.
26351 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26353 * config/rs6000/constraints.md (define_register_constraint "wz"):
26355 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26356 RS6000_CONSTRAINT_wz.
26357 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26358 (rs6000_init_hard_regno_mode_ok): Adjust.
26359 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26360 * doc/md.texi (Machine Constraints): Adjust.
26362 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26364 * config/rs6000/constraints.md (define_register_constraint "wl"):
26366 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26367 RS6000_CONSTRAINT_wl.
26368 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26369 (rs6000_init_hard_regno_mode_ok): Adjust.
26370 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26371 * doc/md.texi (Machine Constraints): Adjust.
26373 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26375 * config/rs6000/constraints.md (define_register_constraint "wm"):
26377 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26378 RS6000_CONSTRAINT_wm.
26379 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26380 (rs6000_init_hard_regno_mode_ok): Adjust.
26381 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26382 * doc/md.texi (Machine Constraints): Adjust.
26384 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26386 * config/rs6000/constraints.md (define_register_constraint "wk"):
26388 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26389 RS6000_CONSTRAINT_wk.
26390 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26391 (rs6000_init_hard_regno_mode_ok): Adjust.
26392 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26393 * doc/md.texi (Machine Constraints): Adjust.
26395 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26397 * config/rs6000/constraints.md (define_register_constraint "wj"):
26399 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26400 RS6000_CONSTRAINT_wj.
26401 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26402 (rs6000_init_hard_regno_mode_ok): Adjust.
26403 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26405 * config/rs6000/vsx.md: Ditto.
26406 * doc/md.texi (Machine Constraints): Adjust.
26408 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26410 * config/rs6000/constraints.md (define_register_constraint "wh"):
26412 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26413 RS6000_CONSTRAINT_wh.
26414 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26415 (rs6000_init_hard_regno_mode_ok): Adjust.
26416 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26417 * doc/md.texi (Machine Constraints): Adjust.
26419 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26422 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26423 Avoid calling gen_lowpart with CONST operand.
26425 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26427 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26428 field template_last_to_copy.
26429 (ssa_create_duplicates): Set it, and use it. Attempt to
26430 preserve more debug stmts.
26432 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26434 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26435 (signbit<mode>2): New expander
26437 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26440 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26441 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26443 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26445 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26446 %ebx and %ecx bafore calling cpuid with leaf 1 or
26447 non-constant leaf argument.
26449 2019-05-21 Alan Modra <amodra@gmail.com>
26452 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26453 power9 direct move cost.
26455 2019-05-21 Richard Biener <rguenther@suse.de>
26457 PR middle-end/90510
26458 * fold-const.c (fold_read_from_vector): New function.
26459 * fold-const.h (fold_read_from_vector): Declare.
26460 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26461 single-element insert permutations. Canonicalize selector
26462 further and fix issue with last commit.
26464 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26466 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26467 parameter with default value false to declaration.
26468 (split_edges_for_insertion): New inline function. Wrapper for
26469 split_critical_edges with for_edge_insertion_p = true.
26470 * tree-cfg.c (split_critical_edges): Don't split non-critical
26471 edges if for_edge_insertion_p is false. Fix whitespace.
26472 * tree-ssa-pre.c (pass_pre::execute): Call
26473 split_edges_for_insertion instead of split_critical_edges.
26474 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26475 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26476 (pass_data_sink_code): Update function name in the comment.
26478 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26480 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26481 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26482 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26483 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26486 2019-05-21 Martin Liska <mliska@suse.cz>
26488 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26490 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26491 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26493 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26495 (rs6000_function_arg): Likewise.
26496 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26497 (rs6000_expand_ternop_builtin): Use interval syntax.
26498 (get_element_number): Likewise.
26499 (altivec_expand_builtin): Likewise.
26500 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26502 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26506 * function.h (struct function): Add calls_eh_return member.
26507 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26508 gimplifying __builtin_eh_return call.
26509 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26511 (expand_call_inline): Or in src_cfun->calls_eh_return into
26512 dst_cfun->calls_eh_return.
26513 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26514 cfun->calls_eh_return.
26515 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26516 * lto-streamer-out.c (output_struct_function_base): Write
26519 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26521 PR rtl-optimization/43147
26522 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26523 IX86_BUILTIN_SHUFPD.
26525 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26527 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26528 (refs_may_alias_p_1): ... here; update stats.
26529 (refs_may_alias_p): Do not update stats here.
26531 2019-05-20 Richard Biener <rguenther@suse.de>
26533 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26534 doesn't produce pointers.
26535 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26536 the first operand points to.
26538 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26540 * tree-ssa-alias.c (compare_sizes): New function.
26541 (sompare_type_sizes): New function
26542 (aliasing_component_refs_p): Use it.
26543 (indirect_ref_may_alias_decl_p): Likewise.
26545 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26547 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26549 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26551 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26552 (LIBLSAN_EARLY_SPEC): Likewise.
26553 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26555 2019-05-20 Martin Liska <mliska@suse.cz>
26557 * config/i386/i386.c (ix86_libc_has_fast_function):
26558 Add ATTRIBUTE_UNUSED for the argument.
26560 2019-05-20 Richard Biener <rguenther@suse.de>
26562 * gimple-match-head.c: Include vec-perm-indices.h.
26563 * generic-match-head.c: Likewise.
26564 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26566 * fold-const.c (fold_vec_perm): Export.
26567 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26568 (match.pd): ...here.
26570 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26572 * cfgloop.h (struct loop): Add simdlen member.
26573 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26574 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26575 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26576 as new argument to autovectorize_vector_sizes target hook. If
26577 loop->simdlen, pick up vector size where the vectorization factor
26578 is equal to loop->simd, and if there is none, fall back to the first
26580 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26582 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26583 * omp-general.c (omp_max_vf): Likewise.
26584 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26585 * tree-vect-slp.c (vect_slp_bb): Likewise.
26586 * target.def (autovectorize_vector_sizes): Add ALL argument and
26588 * doc/tm.texi: Adjust documentation.
26589 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26590 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26591 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26593 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26594 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26595 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26596 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26597 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26598 preferred vector size is not 512-bit or 256-bit, just put those
26599 unpreferred ones last.
26601 2019-05-20 Martin Liska <mliska@suse.cz>
26603 * targhooks.c (default_libc_has_fast_function): New function.
26604 * targhooks.h (default_libc_has_fast_function): Likewise.
26606 2019-05-20 Martin Liska <mliska@suse.cz>
26608 PR middle-end/90263
26609 * builtins.c (expand_builtin_memory_copy_args): When having a
26610 target with fast mempcpy implementation do now use memcpy.
26611 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26612 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26613 * doc/tm.texi: Likewise.
26614 * doc/tm.texi.in: Likewise.
26616 * expr.c (emit_block_move_hints): Add 2 new arguments.
26617 * expr.h (emit_block_move_hints): Bail out when libcall
26618 to memcpy would be used.
26620 2019-05-20 Martin Liska <mliska@suse.cz>
26622 * profile-count.c: Add vertical spacing in order
26623 to separate functions.
26624 * profile-count.h: Likewise.
26626 2019-05-20 Martin Liska <mliska@suse.cz>
26628 * profile-count.h: Do not use full qualified
26630 * profile-count.c (profile_count::to_frequency): Likewise.
26632 2019-05-20 Martin Liska <mliska@suse.cz>
26634 * profile-count.h (enum profile_quality): Use capital letters
26635 for enum value names. Use the adjusted names.
26636 * profile-count.c: Use the adjusted names.
26638 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26640 * config/rs6000/constraints.md (define_register_constraint "wH"):
26642 (define_register_constraint "wI"): Delete.
26643 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26644 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26645 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26646 (rs6000_init_hard_regno_mode_ok): Adjust.
26647 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26648 resp. "d", or with "wa" as appropriate, all with "p8v".
26649 * config/rs6000/vsx.md: Ditto.
26650 * doc/md.texi (Machine Constraints): Adjust.
26652 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26654 * config/rs6000/constraints.md (define_register_constraint "wy"):
26656 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26657 RS6000_CONSTRAINT_wy.
26658 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26659 (rs6000_init_hard_regno_mode_ok): Adjust.
26660 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26661 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26662 (define_mode_attr Fisa): New.
26663 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26664 * doc/md.texi (Machine Constraints): Adjust.
26666 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26668 * config/rs6000/constraints.md (define_register_constraint "wu"):
26670 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26671 RS6000_CONSTRAINT_wu.
26672 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26673 (rs6000_init_hard_regno_mode_ok): Adjust.
26674 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26676 (define_mode_attr Fa): Delete.
26677 * config/rs6000/vsx.md: Ditto.
26678 * doc/md.texi (Machine Constraints): Adjust.
26680 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26682 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26684 (define_register_constraint "wK"): Delete.
26685 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26686 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26687 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26688 (rs6000_init_hard_regno_mode_ok): Adjust.
26689 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26690 Replace "wK" constraint by "wH" with "p9v".
26691 * config/rs6000/vsx.md: Ditto.
26692 * doc/md.texi (Machine Constraints): Adjust.
26694 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26696 * config/rs6000/constraints.md (define_register_constraint "wb"):
26698 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26699 RS6000_CONSTRAINT_wb.
26700 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26701 (rs6000_init_hard_regno_mode_ok): Adjust.
26702 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26703 * config/rs6000/vsx.md: Ditto.
26704 * doc/md.texi (Machine Constraints): Adjust.
26706 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26708 * config/rs6000/constraints.md (define_register_constraint "wo"):
26710 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26711 RS6000_CONSTRAINT_wo.
26712 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26713 (rs6000_init_hard_regno_mode_ok): Adjust.
26714 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26715 * config/rs6000/altivec.md: Ditto.
26716 * doc/md.texi (Machine Constraints): Adjust.
26718 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26720 * config/darwin-c.c (darwin_register_objc_includes): Do not
26721 prepend the sysroot when building gnu-runtime header search
26724 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26726 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26727 instead of direct output of the asm.
26729 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26731 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26732 argument to be type bool (was int before).
26733 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26734 at first use. Use type bool for some variables. Fix a theoretical
26735 eh_return bug for svr4.
26737 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26739 * config/rs6000/rs6000.md (isa): New attribute.
26740 (enabled): New attribute.
26742 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26744 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26745 assemble_start_function and assemble_end_function.
26747 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26749 PR middle-end/89433
26750 * omp-general.c (oacc_verify_routine_clauses): Change formal
26751 parameters. Add checking if already marked with an OpenACC
26752 'routine' directive. Adjust all users.
26754 PR middle-end/89433
26755 * omp-general.c (oacc_build_routine_dims): Move some of its
26757 (oacc_verify_routine_clauses): ... this new function.
26758 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26760 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26762 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26763 formating of picbase labels to match other ports.
26765 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26767 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26768 in the generated code.
26770 2019-05-16 Martin Sebor <msebor@redhat.com>
26772 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26773 identifiers, keywords, operators, and types in diagnostics. Correct
26774 quoting, spelling, and sentence capitalization issues.
26775 (expand_builtin_atomic_is_lock_free): Same.
26776 (fold_builtin_next_arg): Same.
26777 * cfgexpand.c (expand_one_var): Same.
26778 (tree_conflicts_with_clobbers_p): Same.
26779 (expand_asm_stmt): Same.
26780 (verify_loop_structure): Same.
26781 * cgraphunit.c (process_function_and_variable_attributes): Same.
26782 * collect-utils.c (collect_execute): Same.
26783 * collect2.c (maybe_run_lto_and_relink): Same.
26784 (is_lto_object_file): Same.
26785 (scan_prog_file): Same.
26786 * convert.c (convert_to_real_1): Same.
26787 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26788 * except.c (verify_eh_tree): Same.
26789 * gcc.c (execute): Same.
26790 (eval_spec_function): Same.
26791 (run_attempt): Same.
26792 (driver::set_up_specs): Same.
26793 (compare_debug_auxbase_opt_spec_function): Same.
26794 * gcov-tool.c (unlink_gcda_file): Same.
26796 (do_rewrite): Same.
26797 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26798 * gimplify.c (gimplify_asm_expr): Same.
26799 (gimplify_adjust_omp_clauses): Same.
26800 * hsa-gen.c (gen_hsa_addr_insns): Same.
26801 (gen_hsa_insns_for_load): Same.
26802 (gen_hsa_cmp_insn_from_gimple): Same.
26803 (gen_hsa_insns_for_operation_assignment): Same.
26804 (gen_get_level): Same.
26805 (gen_hsa_alloca): Same.
26806 (omp_simple_builtin::generate): Same.
26807 (gen_hsa_atomic_for_builtin): Same.
26808 (gen_hsa_insns_for_call): Same.
26809 * input.c (dump_location_info): Same.
26810 * ipa-devirt.c (compare_virtual_tables): Same.
26811 * ira.c (ira_setup_eliminable_regset): Same.
26812 * lra-assigns.c (lra_assign): Same.
26813 * lra-constraints.c (lra_constraints): Same.
26814 * lto-streamer-in.c (lto_input_mode_table): Same.
26815 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26816 (merge_and_complain): Same.
26817 (compile_offload_image): Same.
26818 (compile_images_for_offload_targets): Same.
26819 (debug_objcopy): Same.
26822 * opts.c (print_specific_help): Same.
26823 (parse_no_sanitize_attribute): Same.
26824 (print_help): Same.
26825 (handle_param): Same.
26826 * plugin.c (add_new_plugin): Same.
26827 (parse_plugin_arg_opt): Same.
26828 (try_init_one_plugin): Same.
26829 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26830 operators, and types in diagnostics. Correct quoting and spelling
26832 * read-rtl-function.c (parse_edge_flag_token): Same.
26833 (function_reader::parse_enum_value): Same.
26834 * reg-stack.c (check_asm_stack_operands): Same.
26835 * regcprop.c (validate_value_data): Same.
26836 * sched-rgn.c (make_pass_sched_fusion): Same.
26837 * stmt.c (check_unique_operand_names): Same.
26838 * targhooks.c (default_target_option_pragma_parse): Same.
26839 * tlink.c (recompile_files): Same.
26840 * toplev.c (process_options): Same.
26841 (do_compile): Same.
26842 * trans-mem.c (diagnose_tm_1): Same.
26843 (ipa_tm_scan_irr_block): Same.
26844 (ipa_tm_diagnose_transaction): Same.
26845 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26846 format a tree code name in a diagnostic.
26847 (verify_types_in_gimple_min_lval): Same.
26848 (verify_types_in_gimple_reference): Same.
26849 (verify_gimple_call): Same.
26850 (verify_gimple_assign_unary): Same.
26851 (verify_gimple_assign_binary): Same.
26852 (verify_gimple_assign_ternary): Same.
26853 (verify_gimple_assign_single): Same.
26854 (verify_gimple_switch): Same.
26855 (verify_gimple_label): Same.
26856 (verify_gimple_phi): Same.
26857 (verify_gimple_in_seq): Same.
26858 (verify_eh_throw_stmt_node): Same.
26859 (collect_subblocks): Same.
26860 (gimple_verify_flow_info): Same.
26861 (do_warn_unused_result): Same.
26862 * tree-inline.c (expand_call_inline): Same.
26863 * tree-into-ssa.c (update_ssa): Same.
26864 * tree.c (tree_int_cst_elt_check_failed): Same.
26865 (tree_vec_elt_check_failed): Same.
26866 (omp_clause_operand_check_failed): Same.
26867 (verify_type_variant): Same.
26868 (verify_type): Same.
26869 * value-prof.c (verify_histograms): Same.
26870 * varasm.c (assemble_start_function): Same.
26872 2019-05-16 Martin Sebor <msebor@redhat.com>
26874 * config/i386/i386-expand.c (get_element_number): Quote keywords
26875 and other internal names in diagnostics. Adjust other diagnostic
26876 formatting issues noted by -Wformat-diag.
26877 * config/i386/i386-features.c
26878 (ix86_mangle_function_version_assembler_name): Same.
26879 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26880 * config/i386/i386.c (ix86_function_type_abi): Same.
26881 (ix86_function_ms_hook_prologue): Same.
26882 (classify_argument): Same.
26883 (ix86_expand_prologue): Same.
26884 (ix86_md_asm_adjust): Same.
26885 (ix86_memmodel_check): Same.
26887 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26889 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26890 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26893 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26896 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26897 intrinsics without SSE/SSE2/SSSE3.
26898 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26900 (*mmx_uavgv8qi3): Likewise.
26902 2019-05-17 Richard Biener <rguenther@suse.de>
26904 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26905 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26907 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26909 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26910 vec_sldw insn pattern.
26912 2019-05-17 Richard Biener <rguenther@suse.de>
26914 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26916 2019-05-17 Martin Liska <mliska@suse.cz>
26919 * toplev.c (output_stack_usage): With LTO and sanitizer it
26920 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26921 has no file location.
26923 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26926 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26927 sz0 is equal to sz1, instead return false in that case.
26929 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26930 has non-constant expression, force sctx.lane and use two
26931 argument IFN_GOMP_SIMD_LANE instead of single argument.
26932 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26933 two argument IFN_GOMP_SIMD_LANE without lhs.
26934 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26936 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26938 (LOOP_REQUIRES_VERSIONING): Or in
26939 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26940 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26942 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26943 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26944 from simd if clause if needed.
26946 2019-05-16 Richard Biener <rguenther@suse.de>
26948 * tree-affine.c (expr_to_aff_combination): New function split
26950 (tree_to_aff_combination): ... here.
26951 (aff_combination_expand): Avoid building a GENERIC tree.
26953 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26955 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26956 assemble_start_function and assemble_end_function calls.
26957 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26958 assemble_start_function and assemble_end_function.
26959 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26960 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26961 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26962 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26963 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26964 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26965 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26966 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26967 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26968 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26969 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26970 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26972 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26973 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26974 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26975 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26976 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26977 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26978 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26979 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26980 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26981 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26982 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26983 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26984 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26985 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26987 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26988 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26989 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26991 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26993 * tree-ssa-alias.c (alias_stats): Add
26994 aliasing_component_refs_p_may_alias and
26995 aliasing_component_refs_p_no_alias.
26996 (dump_alias_stats): Print aliasing_component_refs_p stats.
26997 (aliasing_component_refs_p): Update stats.
26999 2019-05-16 Martin Liska <mliska@suse.cz>
27002 * multiple_target.c (expand_target_clones): Do not allow
27003 target_clones being used with a symbol that is an alias.
27005 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
27007 PR tree-optimization/90394
27008 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
27009 positives rather than ICE for cases where (code2 == NE_EXPR
27010 && code1 == BIT_AND_EXPR).
27012 2019-05-16 Jakub Jelinek <jakub@redhat.com>
27015 * tree-core.h (struct tree_decl_common): Document
27016 decl_nonshareable_flag for PARM_DECLs.
27017 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
27018 * calls.c (expand_call): Don't try tail call if caller
27019 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
27020 passed on the stack and callee needs to pass any arguments on the
27022 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
27023 else if instead of series of mutually exclusive ifs. Handle
27024 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
27025 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
27027 * lto-streamer.h (LTO_major_version): Bump to 9.
27029 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
27031 PR tree-optimization/90106
27032 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
27033 new parameter as new internal function call, also move it to new
27035 (use_internal_fn): Pass internal function call to
27036 shrink_wrap_one_built_in_call_with_conds.
27038 2019-05-15 Jakub Jelinek <jakub@redhat.com>
27040 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
27042 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
27043 safelen_int and set loop->dont_vectorize.
27045 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27048 * config/i386/i386-builtin.def: Enable MMX intrinsics with
27050 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
27052 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
27053 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
27054 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
27057 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27060 * config/i386/mmx.md (*vec_dupv2sf): Changed to
27061 define_insn_and_split to support SSE emulation.
27062 (*vec_extractv2sf_0): Likewise.
27063 (*vec_extractv2sf_1): Likewise.
27064 (*vec_extractv2si_0): Likewise.
27065 (*vec_extractv2si_1): Likewise.
27066 (*vec_extractv2si_zext_mem): Likewise.
27067 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
27068 (vec_extractv2sf_1 splitter): Likewise.
27069 (vec_extractv2sfsf): Likewise.
27070 (vec_setv2si): Likewise.
27071 (vec_extractv2si_1 splitter): Likewise.
27072 (vec_extractv2sisi): Likewise.
27073 (vec_setv4hi): Likewise.
27074 (vec_extractv4hihi): Likewise.
27075 (vec_setv8qi): Likewise.
27076 (vec_extractv8qiqi): Likewise.
27077 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27078 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27079 (vec_extractv2sisi): Likewise.
27080 (vec_extractv4hihi): Likewise.
27081 (vec_extractv8qiqi): Likewise.
27082 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27083 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27084 (vec_initv2sisi): Likewise.
27085 (vec_initv4hihi): Likewise.
27086 (vec_initv8qiqi): Likewise.
27087 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27088 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27089 (vec_setv4hi): Likewise.
27090 (vec_setv8qi): Likewise.
27092 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27095 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27096 TARGET_MMX_WITH_SSE.
27097 (MMXMODE:*mov<mode>_internal): Likewise.
27098 (MMXMODE:movmisalign<mode>): Likewise.
27100 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27103 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27104 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27105 (sse2_cvtpd2pi): Ditto.
27106 (sse2_cvttpd2pi): Ditto.
27107 (*vec_concatv2sf_sse4_1): Ditto.
27108 (*vec_concatv2sf_sse): Ditto.
27109 (*vec_concatv2si_sse4_1): Ditto.
27110 (*vec_concatv2si): Ditto.
27111 (*vec_concatv4si_0): Ditto.
27112 (*vec_concatv2di_0): Ditto.
27114 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27117 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27119 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27122 * config/i386/sse.md (ssse3_palignrdi): Changed to
27123 define_insn_and_split to support SSE emulation.
27125 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27128 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27130 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27133 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27134 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27137 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27140 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27141 or TARGET_MMX_WITH_SSE.
27142 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27144 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27147 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27149 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27152 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27153 Changed to define_insn_and_split to support SSE emulation.
27155 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27158 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27159 Changed to define_insn_and_split to support SSE emulation.
27161 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27164 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27165 (*mmx_<emms>): This.
27166 (mmx_<emms>): New expander.
27168 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27171 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27173 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27175 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27178 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27180 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27183 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27185 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27188 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27189 TARGET_MMX_WITH_SSE.
27190 (*mmx_uavgv4hi3): Add SSE emulation.
27192 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27195 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27196 and TARGET_MMX_WITH_SSE.
27197 (*mmx_uavgv8qi3): Add SSE emulation.
27199 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27202 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27203 maskmovdqu for __MMX_WITH_SSE__.
27205 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27208 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27209 TARGET_MMX and TARGET_MMX_WITH_SSE.
27210 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27212 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27215 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27216 define_insn_and_split to support SSE emulation.
27218 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27221 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27222 and TARGET_MMX_WITH_SSE.
27223 (mmx_<code>v8qi3): Likewise.
27224 (smaxmin:<code>v4hi3): New.
27225 (umaxmin:<code>v8qi3): Likewise.
27226 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27227 (umaxmin:*mmx_<code>v8qi3): Likewise.
27229 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27232 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27233 TARGET_MMX_WITH_SSE.
27234 (*mmx_pinsrw): Add SSE emulation.
27236 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27239 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27241 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27244 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27245 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27248 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27251 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27252 (sse_cvttps2pi): Likewise.
27254 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27257 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27258 TARGET_MMX_WITH_SSE.
27259 (mmx_pshufw_1): Add SSE emulation.
27260 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27261 TARGET_MMX_WITH_SSE to support SSE emulation.
27263 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27266 * config/i386/constraints.md (Yw): New constraint.
27267 * config/i386/mmx.md (*vec_dupv2si): Changed to
27268 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27269 support SSE emulation.
27271 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27274 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27275 TARGET_MMX_WITH_SSE.
27276 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27278 (mmx_gt<mode>3): Likewise.
27280 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27283 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27284 TARGET_MMX_WITH_SSE. Add SSE support.
27286 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27289 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27290 TARGET_MMX_WITH_SSE.
27291 (any_logic:<code><mode>3): New.
27292 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27295 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27298 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27299 TARGET_MMX_WITH_SSE. Add SSE emulation.
27300 (mmx_<shift_insn><mode>3): Likewise.
27301 (ashr<mode>3): New.
27302 (<shift_insn><mode>3): Likewise.
27304 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27307 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27308 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27310 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27313 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27314 TARGET_MMX_WITH_SSE.
27315 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27318 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27321 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27322 TARGET_MMX_WITH_SSE.
27324 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27327 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27330 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27331 (plusminus:mmx_<plusminus_insn><mode>3): Check
27332 TARGET_MMX_WITH_SSE.
27333 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27334 (<plusminus_insn><mode>3): New.
27335 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27336 (*mmx_<plusminus_insn><mode>3): Likewise.
27338 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27341 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27342 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27344 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27345 define_insn_and_split to support SSE emulation.
27346 (mmx_punpcklbw): Likewise.
27347 (mmx_punpckhwd): Likewise.
27348 (mmx_punpcklwd): Likewise.
27349 (mmx_punpckhdq): Likewise.
27350 (mmx_punpckldq): Likewise.
27352 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27353 Uros Bizjak <ubizjak@gmail.com>
27356 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27358 (ix86_split_mmx_pack): Likewise.
27359 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27361 (ix86_split_mmx_pack): Likewise.
27362 * config/i386/i386.md (mmx_isa): New.
27363 (enabled): Also check mmx_isa.
27364 * config/i386/mmx.md (any_s_truncate): New code iterator.
27365 (s_trunsuffix): New code attr.
27366 (mmx_packsswb): Removed.
27367 (mmx_packssdw): Likewise.
27368 (mmx_packuswb): Likewise.
27369 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27370 MMX packsswb/packuswb with SSE2.
27371 (mmx_packssdw): Likewise.
27372 * config/i386/predicates.md (register_mmxmem_operand): New.
27374 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27377 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27378 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27379 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27380 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27381 (ix86_vector_mode_supported_p): Likewise.
27382 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27384 2019-05-15 Martin Liska <mliska@suse.cz>
27386 PR middle-end/90478
27387 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27388 Check for overflow.
27390 2019-05-15 Richard Biener <rguenther@suse.de>
27392 * tree-into-ssa.c (pass_build_ssa::execute): Run
27393 update_address_taken before going into SSA.
27395 2019-05-15 Richard Biener <rguenther@suse.de>
27397 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27398 as __BIT_FIELD_REF with type with -gimple.
27400 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27402 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27403 semantically equivalent branches (left over after prior refactorings).
27405 2019-05-15 Richard Biener <rguenther@suse.de>
27407 PR tree-optimization/88828
27408 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27411 2019-05-14 Richard Biener <rguenther@suse.de>
27413 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27414 as __VIEW_CONVERT with -gimple.
27416 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27419 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27422 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27424 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27425 define_split to become a define_insn_and_split.
27427 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27429 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27431 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27432 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27433 (sibcall_epilogue): Adjust.
27434 (epilogue): Adjust.
27436 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27438 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27439 to unsupported ones.
27440 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27441 * config.host: Likewise.
27442 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27443 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27444 __svr4__]: Remove "brand" fallback.
27445 [!KSTAT_DATA_STRING]: Remove.
27446 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27448 (comdat_group): Likewise.
27449 (set_have_as_tls): Likewise.
27450 (gcc_cv_target_dl_iterate_phdr): Likewise.
27451 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27452 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27453 * configure: Regenerate.
27454 * doc/install.texi: Simplify Solaris target triplets.
27455 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27456 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27457 Remove Solaris 10 references.
27458 Remove obsolete Solaris bug reference.
27459 (Specific, sparc-sun-solaris2.10): Remove.
27461 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27463 * config/i386/i386.md (any_div): New code iterator.
27464 (paired_mod): New code attribute.
27465 (sgnprefix): Handle DIV and UDIV RTXes.
27467 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27468 and udivmod<mode>4 patterns using any_div code iterator.
27469 (divmod splitters): Macroize splitters using any_div code iterator.
27470 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27471 (*udivmodsi4_pow2_zext_2): Ditto.
27472 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27473 and *udivmod<mode>4_noext patterns using any_div code iterator.
27474 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27475 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27476 patterns using any_div code iterator.
27477 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27478 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27479 patterns using any_div code iterator.
27480 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27481 udivmodhiqi3 patterns using any_extend code iterator.
27483 2019-05-14 Richard Biener <rguenther@suse.de>
27484 H.J. Lu <hongjiu.lu@intel.com>
27486 PR tree-optimization/88828
27487 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27488 permuting in a single non-constant element not extracted
27491 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27493 * internal-fn.def (SIGNBIT): New.
27494 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27496 (signbitv4sf2): Likewise.
27498 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27501 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27502 next insn when the SRC reg is dead.
27504 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27506 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27507 (alloc_cand_and_find_basis): Ditto.
27508 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27509 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27510 (create_add_imm_cand, slsr_process_cast): Ditto.
27511 (slsr_process_copy, replace_mult_candidate): Ditto.
27512 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27513 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27514 (pass_strength_reduction::execute): Init the first NULL element.
27516 2019-05-13 Nathan Sidwell <nathan@acm.org>
27518 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27519 (run_attempt): Reformat line break.
27521 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27524 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27525 data registers in sibcall epilogues.
27526 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27528 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27531 * configure.ac (--enable-frame-pointer):
27532 Disable by default for cygwin and mingw.
27533 * configure: Regenerate.
27535 2019-05-13 Nathan Sidwell <nathan@acm.org>
27537 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27539 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27540 (gen_member_die): Move abstract origin check earlier. Only VARs
27541 can be static_inline_p. Simplify splicing control flow.
27543 2019-05-13 Richard Biener <rguenther@suse.de>
27545 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27547 (vect_build_slp_tree_1): Likewise.
27549 2019-05-13 Richard Biener <rguenther@suse.de>
27551 PR tree-optimization/90402
27552 * tree-if-conv.c (tree_if_conversion): Value number only
27553 the loop body by making the latch an exit of the region
27555 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27557 (do_rpo_vn): Deal with multiple edges into the entry block
27558 that are not backedges inside the region by skipping PHIs
27559 of the entry block.
27561 2019-05-13 Richard Biener <rguenther@suse.de>
27563 PR tree-optimization/90316
27564 * tree-ssa-pre.c (insert_aux): Fold into ...
27565 (insert): ... this function. Use a RPO walk to reduce the
27566 number of required iterations.
27568 2019-05-13 Martin Liska <mliska@suse.cz>
27570 PR tree-optimization/90416
27571 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27572 string instead of passing the second part as va_arg argument.
27574 2019-05-13 Martin Liska <mliska@suse.cz>
27576 PR gcov-profile/90380
27577 * gcov.c (handle_cycle): Do not support zero cycle count,
27578 it should not be possible.
27579 (path_contains_zero_cycle_arc): New function.
27580 (circuit): Ignore zero cycle arc counts.
27582 2019-05-13 Martin Liska <mliska@suse.cz>
27584 PR gcov-profile/90380
27585 * gcov.c (enum loop_type): Remove the enum and
27587 (handle_cycle): Assert that we should not reach
27589 (circuit): Use loop_found instead of a tri-state loop_type.
27590 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27593 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27596 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27597 (ix86_output_indirect_branch_via_reg): Use output mechanism
27598 accounting for __USER_LABEL_PREFIX__.
27599 (ix86_output_indirect_branch_via_push): Likewise.
27600 (ix86_output_function_return): Likewise.
27601 (ix86_output_indirect_function_return): Likewise.
27603 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27605 * doc/md.texi: Document use of code attributes in rtx patterns.
27606 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27607 * read-rtl.c (find_code): Split out search loops into...
27608 (maybe_find_code): ...this new function.
27609 (check_code_iterator): Make the error message more informative.
27610 (check_code_attribute): New function.
27611 (rtx_reader::rtx_alloc_for_name): Likewise.
27612 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27613 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27614 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27615 <max_opp> directly as an rtx code instead of via a match_operator.
27616 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27617 (<su>abd<mode>_3): Update accordingly.
27619 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27621 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27622 is given, print the state of the EH "save world" computation for
27625 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27628 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27629 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27631 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27633 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27634 Use pinsrd for TARGET_SSE4_1.
27635 * config/i386/sse.md (movdi_to_sse): Ditto.
27637 2019-05-10 Richard Biener <rguenther@suse.de>
27639 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27640 (do_rpo_vn): Initialize next_value_id.
27642 2019-05-10 Martin Liska <mliska@suse.cz>
27644 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27647 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27649 PR tree-optimization/90385
27650 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27651 arguments of the exit phis.
27654 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27655 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27657 (copy_tree_body_r): Likewise.
27658 (copy_fn): Set id.do_not_fold to true.
27660 2019-05-10 Martin Liska <mliska@suse.cz>
27662 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27663 Reapply changes from r269790.
27665 2019-05-10 Martin Liska <mliska@suse.cz>
27667 PR middle-end/90340
27668 * doc/invoke.texi: New params.
27669 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27670 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27671 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27673 * tree-switch-conversion.h (struct jump_table_cluster):
27676 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27678 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27680 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27682 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27684 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27686 PR rtl-optimization/88879
27687 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27689 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27692 * config/arm/arm.c (callee_saved_reg_p): Move before
27693 thumb_find_work_register.
27694 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27695 thumb_find_work_register. Only call df_get_live_out once.
27696 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27697 (thumb_find_work_register): Use
27698 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27699 algorithms to locate a spare call clobbered reg.
27701 2019-05-09 Martin Liska <mliska@suse.cz>
27703 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27704 and MAX_EXPR in GIMPLE FE format.
27706 2019-05-09 Martin Liska <mliska@suse.cz>
27708 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27709 * gimple-pretty-print.c (dump_gimple_bb_header):
27711 (pp_cfg_jump): Dump edge probability.
27712 * profile-count.c (profile_quality_as_string): Simplify
27713 with a static array.
27714 (parse_profile_quality): New function.
27715 (profile_count::dump): Simplify with a static array.
27716 (profile_count::from_gcov_type): Add new argument.
27717 * profile-count.h (parse_profile_quality): Likewise.
27718 * predict.h (set_hot_bb_threshold): New.
27719 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27721 * predict.c (get_hot_bb_threshold): Set from the new param.
27722 (set_hot_bb_threshold): New.
27724 2019-05-09 Richard Biener <rguenther@suse.de>
27726 PR tree-optimization/90395
27727 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27728 rewrite vector stores that throw internally.
27730 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27732 * cif-code.def (CHKP): Remove.
27735 * configure.ac (--enable-frame-pointer): Disable by default for
27737 * configure: Regenerate.
27739 2019-05-09 Alan Modra <amodra@gmail.com>
27742 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27743 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27744 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27745 cost for general <-> vsx when direct moves are available.
27746 Cost union classes at minimal cost for any reg in the class.
27747 Correct calculation for moves between vsx, float, and altivec.
27748 Don't return a low cost for moves between special regs. Don't
27749 use hard coded register numbers.
27750 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27751 (rs6000_ira_change_pseudo_allocno_class): New function.
27752 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27753 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27755 (movsi_internal1): Don't disparage vector alternatives.
27756 (mov<mode>_internal): Likewise, excepting alternative that
27758 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27759 we <- b alternative.
27761 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27764 PR tree-optimization/89060
27765 * tree-ssa-live.h (live_vars_map): New typedef.
27766 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27767 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27768 (struct compute_live_vars_data): New type.
27769 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27770 live_vars_at_stmt, destroy_live_vars): New functions.
27771 * tree-tailcall.c: Include tree-ssa-live.h.
27772 (live_vars, live_vars_vec): New global variables.
27773 (find_tail_calls): Perform variable life analysis before punting.
27774 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27775 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27777 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27778 Perform variable life analysis to select variables that really need
27780 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27781 instead set id->eh_landing_pad_dest and assert it is the same.
27782 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27784 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27785 Richard Earnshaw <rearnsha@arm.com>
27788 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27790 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27791 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27792 register if both the epilogue and prologue can use call-clobbered
27794 (thumb1_unexpanded_epilogue): Use
27795 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27796 picking temporaries for restoring high regs to match that of the
27797 prologue where possible.
27798 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27799 the list of work registers. Detect if the return address is still live
27800 at the end of the prologue and avoid using it for a work register if so.
27801 If the return address is not live, add LR to the list of pushable regs
27802 after the first pass.
27804 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27806 PR tree-optimization/90078
27807 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27808 (INFTY): Increase the value for infinite cost.
27809 (struct comp_cost): Promote type of members to int64_t.
27810 (infinite_cost): Don't set complexity in initialization.
27811 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27812 overflows to infinite_cost.
27813 (adjust_setup_cost): Promote type of parameter and cost computation
27815 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27817 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27818 cost computation to int64_t.
27819 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27820 int64_t's format specifier in dump.
27822 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27824 PR tree-optimization/90240
27825 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27826 with respect to scaling factor pre-computed for each basic block.
27827 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27828 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27829 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27830 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27831 live range for array of loop's basic blocks. Cleanup aux field of
27832 loop's basic blocks.
27834 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27836 PR tree-optimization/90356
27837 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27839 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27841 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27842 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27843 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27844 (ix86_handle_option): Handle -mavx512bf16.
27845 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27847 * config/i386/avx512bf16vlintrin.h: New.
27848 * config/i386/avx512bf16intrin.h: New.
27849 * config/i386/cpuid.h (bit_AVX512BF16): New.
27850 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27851 * config/i386/i386-builtin-types.def: Add new types.
27852 * config/i386/i386-builtin.def: Add new builtins.
27853 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27855 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27856 (ix86_option_override_internal): Handle BF16.
27857 (ix86_valid_target_attribute_inner_p): Ditto.
27858 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27859 * config/i386/i386-builtin.c (enum processor_features): Add
27861 (static const _isa_names_table isa_names_table): Ditto.
27862 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27863 (PTA_AVX512BF16): Ditto.
27864 * config/i386/i386.opt: Add -mavx512bf16.
27865 * config/i386/immintrin.h: Include avx512bf16intrin.h
27866 and avx512bf16vlintrin.h.
27867 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27868 avx512f_cvtneps2bf16_<mode><mask_name>,
27869 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27870 * config/i386/subst.md (mask_half): Add new subst.
27871 * doc/invoke.texi: Document -mavx512bf16.
27873 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27875 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27876 Delete declaration.
27877 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27878 (rs6000_debug_legitimize_reload_address): Delete.
27879 (rs6000_legitimize_reload_address_ptr): Delete.
27880 (rs6000_option_override_internal): Adjust.
27881 (mem_operand_gpr): Adjust comment.
27882 (legitimate_lo_sum_address_p): Ditto.
27883 (rs6000_legitimize_reload_address): Delete.
27884 (rs6000_debug_legitimize_reload_address): Delete.
27885 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27887 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27890 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27891 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27892 to compute vector element selector for both constant and variable
27895 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27897 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27898 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27899 ashrdi3_cvt using SWI48 mode iterator.
27901 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27903 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27904 (aarch64_<su>abd<mode>_3): Likewise.
27905 (*aarch64_<su>abd<mode>_3): New define_insn.
27906 (<sur>sad<vsi2qi>): New define_expand.
27907 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27908 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27909 (build_vect_cond_expr): Likewise.
27911 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27913 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27914 clobbers outside of accessible_reg_set.
27915 * config/i386/i386.c (ix86_conditional_register_usage):
27916 Disable register sets by clearing corresponding bits in
27917 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27918 call_used_regs and don't clear corresponding reg_names array members.
27920 2019-05-07 Richard Biener <rguenther@suse.de>
27922 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27923 not specified still compute a comp_vectype for invariant
27926 2019-05-07 Richard Biener <rguenther@suse.de>
27928 PR tree-optimization/90316
27929 * tree-ssa-pre.c (translate_vuse_through_block): When
27930 same_valid is NULL do not bother to search for a virtual
27932 (phi_translate_1): When operands changed we cannot keep
27933 the same value-number so do not bother to ask whether
27934 that's possible from translate_vuse_through_block.
27936 2019-05-07 Martin Liska <mliska@suse.cz>
27938 * bitmap.c (bitmap_register): Come up with
27939 alloc_descriptor_max_uid and assign it for
27941 (register_overhead): Use get_descriptor as
27943 (release_overhead): New.
27944 (bitmap_elem_to_freelist): Call it.
27945 (bitmap_elt_clear_from): Likewise.
27946 (bitmap_obstack_free): Likewise.
27947 (bitmap_move): Sensitively release memory.
27948 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27949 (bitmap_initialize): Initialize alloc_descriptor to zero.
27950 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27952 2019-05-07 Richard Biener <rguenther@suse.de>
27954 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27955 we build a SLP node. Remove max_size and limiting.
27956 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27958 2019-05-07 Richard Biener <rguenther@suse.de>
27960 PR tree-optimization/90316
27961 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27962 limit by reference.
27963 (walk_non_aliased_vuses): Take walking limit argument.
27964 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27965 walking if it is reached instead of just counting.
27966 (get_continuation_for_phi): Likewise.
27967 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27968 limiting to the callback.
27969 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27970 (vn_reference_lookup_3): Likewise.
27971 (vn_reference_lookup_pieces): Likewise.
27972 (vn_reference_lookup): Likewise.
27973 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27974 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27975 (avail_exprs_stack::lookup_avail_expr): Likewise.
27977 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27979 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27980 for comparaible types in the second direction even if first one
27981 hits incomparable type.
27983 2019-05-07 Richard Biener <rguenther@suse.de>
27986 * lto-wrapper.c (debug_objcopy): Use the original filename
27987 including archive offset for the filename used for -save-temps.
27989 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27991 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27994 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27995 Hongtao Liu <hongtao.liu@intel.com>
27999 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
28000 Modified, original implementation isn't correct.
28002 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28004 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
28005 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
28006 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
28007 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
28008 (FRAME_POINTER_REGNUM): Change numbering.
28009 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
28010 (alt_reg_names): Adjust.
28011 (rs6000_conditional_register_usage): Don't mark hard register 64 as
28013 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28014 (DWARF_FRAME_REGISTERS): Delete.
28015 (DWARF2_FRAME_REG_OUT): Fix whitespace.
28016 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28018 (REG_ALLOC_ORDER): Adjust.
28019 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
28020 (REG_CLASS_CONTENTS): Adjust.
28021 (RETURN_ADDR_RTX): Change comment.
28022 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
28024 (REGISTER_NAMES): Adjust.
28025 (ADDITIONAL_REGISTER_NAMES): Adjust.
28026 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28028 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28030 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
28032 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
28033 (DWARF_FRAME_REGISTERS): Adjust.
28034 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
28036 (REG_ALLOC_ORDER): Adjust.
28037 (enum reg_class): Delete SPR_REGS.
28038 (REG_CLASS_NAMES): Delete SPR_REGS.
28039 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
28040 (REGISTER_NAMES): Adjust.
28041 (ADDITIONAL_REGISTER_NAMES): Adjust.
28042 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
28043 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
28044 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
28045 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
28046 (htm_spr_regno): Delete.
28047 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
28049 (rs6000_dbx_register_number): Adjust.
28051 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28053 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
28055 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28057 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
28058 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
28060 2019-05-06 Jakub Jelinek <jakub@redhat.com>
28062 PR tree-optimization/88709
28063 PR tree-optimization/90271
28064 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
28065 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
28066 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
28068 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
28069 of the store merging group is larger than
28070 PARAM_STORE_MERGING_MAX_SIZE parameter.
28071 (split_group): Add bzero_first argument. If set, always emit first
28072 the first store which must be = {} of the whole area and then for the
28073 rest of the stores consider all zero bytes as paddings.
28074 (imm_store_chain_info::output_merged_store): Check if first store
28075 is = {} of the whole area and if yes, determine which setting of
28076 bzero_first for split_group gives smaller number of stores. Adjust
28077 split_group callers.
28078 (lhs_valid_for_store_merging_p): Allow decls.
28079 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28081 (pass_store_merging::process_store): Likewise.
28083 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28086 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28087 handling of V1TImode.
28089 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28092 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28093 and enable_frame_pointer ...
28094 * configure.ac: ... here. Update help strings for
28095 --enable-frame-pointer.
28096 * configure: Regenerate.
28097 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28098 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28099 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28100 (USE_X86_64_FRAME_POINTER): Ditto.
28102 2019-05-06 Martin Liska <mliska@suse.cz>
28104 * config.gcc: Append to target_gtfiles and fix indentation.
28106 2019-05-06 Richard Biener <rguenther@suse.de>
28108 PR tree-optimization/90358
28109 * tree-vect-stmts.c (get_group_load_store_type): Properly
28110 detect unused upper half of load.
28111 (vectorizable_load): Likewise.
28113 2019-05-06 Richard Biener <rguenther@suse.de>
28115 PR tree-optimization/88828
28116 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28117 (simplify_vector_constructor): ...here. Handle constants in
28120 2019-05-06 Richard Biener <rguenther@suse.de>
28122 PR tree-optimization/90328
28123 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28124 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28125 is valid in the loop nest before using it.
28126 (initialize_data_dependence_relation): Adjust.
28127 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28128 loop as loop-nest to dr_may_alias_p.
28130 2019-05-06 Richard Biener <rguenther@suse.de>
28132 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28134 2019-05-06 Richard Biener <rguenther@suse.de>
28136 PR tree-optimization/90316
28137 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28138 compute target on demand.
28139 (get_continuation_for_phi): Remove code walking stmts to
28140 get to a target virtual operand which could end up being
28143 2019-05-06 Martin Liska <mliska@suse.cz>
28146 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28147 when -mabi is selected to a non-default version.
28149 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28150 Martin Liska <mliska@suse.cz>
28152 * Makefile.in: Add lto-dump.texi.
28153 * cgraph.h: Add new functions get_visibility_string and
28154 get_symtab_type_string.
28155 * doc/gcc.texi: Include lto-dump section.
28156 * doc/lto-dump.texi: New file.
28157 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28158 (parse_dump_option): Factor out this function.
28159 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28160 (parse_dump_option): Export the function.
28161 * symtab.c (symtab_node::get_visibility_string): New function.
28162 (symtab_node::get_symtab_type_string): Likewise.
28164 2019-05-06 Martin Liska <mliska@suse.cz>
28166 * config/i386/i386-builtins.c: New file.
28167 * config/i386/i386-builtins.h: New file.
28168 * config/i386/i386-expand.c: New file.
28169 * config/i386/i386-expand.h: New file.
28170 * config/i386/i386-features.c: New file.
28171 * config/i386/i386-features.h: New file.
28172 * config/i386/i386-options.c: New file.
28173 * config/i386/i386-options.h: New file.
28174 * config.gcc: Add new files into extra_objs and
28176 * config/i386/i386.c: Split content of the file
28177 into newly introduced files.
28178 * config/i386/i386.h: Declare common variables
28180 * config/i386/t-i386: Define dependencies for new files.
28182 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28185 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28186 Restrict 'all' variant to 32-bit configurations.
28187 (unaligned_loadhiu): Likewise.
28188 (unaligned_storehi): Likewise.
28189 (unaligned_storesi): Likewise.
28190 (unaligned_loadhis): Disable when compiling for thumb1.
28192 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28194 PR tree-optimization/90269
28195 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28198 2019-05-03 Martin Liska <mliska@suse.cz>
28200 * hash-map.h: Add is_empty function.
28201 * hash-set.h: Likewise.
28202 * hash-table.h: Likewise.
28203 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28204 elements () == 0 (and similar usages).
28205 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28206 * gimplify.c (gimplify_bind_expr): Likewise.
28207 (gimplify_switch_expr): Likewise.
28208 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28209 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28210 * postreload-gcse.c (dump_hash_table): Likewise.
28211 (gcse_after_reload_main): Likewise.
28212 * predict.c (combine_predictions_for_bb): Likewise.
28213 * tree-parloops.c (reduction_phi): Likewise.
28214 (separate_decls_in_region): Likewise.
28215 (transform_to_exit_first_loop): Likewise.
28216 (gen_parallel_loop): Likewise.
28217 (gather_scalar_reductions): Likewise.
28218 (try_create_reduction_list): Likewise.
28219 * var-tracking.c (dump_vars): Likewise.
28220 (emit_notes_for_changes): Likewise.
28221 (vt_emit_notes): Likewise.
28223 2019-05-03 Richard Biener <rguenther@suse.de>
28225 PR tree-optimization/90316
28226 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28229 2019-05-03 Richard Biener <rguenther@suse.de>
28231 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28232 peeling for gaps by loading only lower halves of vectors
28234 (vectorizable_load): Likewise.
28236 2019-05-03 Richard Biener <rguenther@suse.de>
28238 PR middle-end/89518
28239 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28241 2019-05-03 Richard Biener <rguenther@suse.de>
28243 PR middle-end/87314
28244 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28245 Handle STRING_CST vs DECL or STRING_CST.
28247 2019-05-03 Richard Biener <rguenther@suse.de>
28249 PR tree-optimization/88963
28250 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28251 vector loads feeding only BIT_FIELD_REFs to component
28252 loads. Rewrite stores fed by CONSTRUCTORs to component
28255 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28257 * opts.h (finish_options): Remove lang_mask argument.
28258 (print_help, help_option_argument): Declare.
28259 * opts.c (print_help): Remove forward declaration, no longer static.
28260 (finish_options): Remove lang_mask argument, don't call print_help
28262 * opts-global.c (decode_options): Adjust finish_option caller, call
28265 PR tree-optimization/90303
28266 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28267 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28269 2019-05-03 Richard Biener <rguenther@suse.de>
28271 PR tree-optimization/89698
28272 * gimple-fold.c (canonicalize_constructor_val): Early out
28273 for constants, handle unfolded INTEGER_CSTs as they appear in
28274 C++ virtual table ctors.
28276 2019-05-03 Richard Biener <rguenther@suse.de>
28278 * passes.c (execute_function_todo): Remove dead code.
28280 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28282 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28283 the internal register number, for any "real" register.
28285 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28287 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28288 correct numbers for TFHAR, TFIAR, TEXASR.
28290 2019-05-02 Richard Biener <rguenther@suse.de>
28292 PR tree-optimization/89653
28293 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28294 update-address-taken before the pass.
28295 * passes.def (pass_tree_loop_init): Put comment before it.
28297 2019-05-02 Richard Biener <rguenther@suse.de>
28299 PR tree-optimization/89509
28300 * tree-ssa-structalias.c (compute_dependence_clique): Look
28301 at the first subvar when determining whether it is restrict.
28303 2019-05-02 Richard Biener <rguenther@suse.de>
28305 PR tree-optimization/90273
28306 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28307 useless debug stmts.
28309 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28311 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28313 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28315 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28316 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28317 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28318 (vectorizable_reduction): Use the functions above to vectorize in a
28319 fully masked loop codes that don't have a conditional internal
28322 2019-05-02 Martin Liska <mliska@suse.cz>
28324 * cgraphclones.c: Call valid_attribute_p with 1 for
28326 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28327 it's for target attribute.
28328 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28329 Add new boolean argument.
28330 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28332 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28333 to ix86_valid_target_attribute_inner_p.
28334 (ix86_valid_target_attribute_p): Pass flags argument to
28335 ix86_valid_target_attribute_inner_p.
28336 (get_builtin_code_for_version): Use 0 as it's target attribute.
28338 2019-05-02 Martin Liska <mliska@suse.cz>
28340 * gcc.c (process_command): Add dummy file only
28342 * opts-global.c (decode_options): Pass lang_mask.
28343 * opts.c (print_help): New function.
28344 (finish_options): Print --help if help_option_argument
28346 (common_handle_option): Factor out content of OPT__help_
28348 * opts.h (finish_options): Add new argument.
28350 2019-05-02 Martin Liska <mliska@suse.cz>
28353 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28354 With -minline-all-stringops use inline expansion using 4B loop.
28355 * doc/invoke.texi: Document the change of
28356 -minline-all-stringops.
28358 2019-05-01 Jeff Law <law@redhat.com>
28360 PR tree-optimization/88797
28361 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28362 PHI feeds a conditional on the RHS of an assignment.
28364 2019-04-30 Andrew Waterman <andrew@sifive.com>
28365 Jim Wilson <jimw@sifive.com>
28367 * config/riscv/constraints.md (L): New.
28368 * config/riscv/predicates.md (lui_operand): New.
28369 (sfb_alu_operand): New.
28370 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28371 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28372 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28373 * config/riscv/risc.md (type): Add sfb_alu.
28374 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28375 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28376 (branch_zero<mode>): Delete.
28377 (mov<mode>cc): New.
28378 (mov<GPR:mode><X:mode>cc): Likewise.
28379 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28381 2019-04-30 Nathan Sidwell <nathan@acm.org>
28383 * tree.h (MARK_TS_EXP): New.
28385 2019-04-30 Martin Liska <mliska@suse.cz>
28387 * opts.c (enable_warning_as_error): Provide hints
28388 for unknown options.
28390 2019-04-30 Martin Liska <mliska@suse.cz>
28393 * doc/invoke.texi: Add missing dash for gas-locview-support
28394 and gno-as-locview-support.
28396 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28399 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28400 whitespace at the start of target attribute string.
28402 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28405 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28406 Define __ARM_FEATURE_ATOMICS.
28408 2019-04-30 Martin Liska <mliska@suse.cz>
28410 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28411 into built_in_function enum. Remove code for endp == 2 and
28412 use BUILT_IN_* constants.
28413 (gimple_fold_builtin): Call the function with fcode.
28415 2019-04-30 Martin Liska <mliska@suse.cz>
28417 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28418 DECL_FUNCTION_CODE into ix86_builtins enum before
28419 the switch statement.
28421 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28423 PR tree-optimization/89475
28424 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28427 2019-04-30 Martin Liska <mliska@suse.cz>
28429 PR translation/90274
28430 * opts.c (print_filtered_help): Wrap string in _(...).
28432 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28434 PR tree-optimization/90240
28436 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28438 PR tree-optimization/90078
28439 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28440 checks for infinite_cost overflow.
28442 2019-04-29 Jeff Law <law@redhat.com>
28444 * passes.def: Move -Wrestrict pass after copy propagation.
28446 2019-04-29 Maya Rashish <coypu@sdf.org>
28448 * config.gcc (default_gnu_indirect_function): Default to yes
28449 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28450 sparc*-*-netbsd*, x86_64-*-netbsd*.
28452 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28454 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28455 where cond2 is NE_EXPR.
28456 (is_value_included_in): Update comment.
28458 2019-04-29 Richard Biener <rguenther@suse.de>
28460 PR tree-optimization/90278
28461 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28462 EH on comparison simplification.
28464 2019-04-29 Jason Merrill <jason@redhat.com>
28466 PR c++/82081 - tail call optimization breaks noexcept
28467 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28468 nothrow function to a might-throw function into a tail call.
28470 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28472 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28473 (DDR_INNER_LOOP): Likewise.
28474 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28475 (initialize_data_dependence_relation): Likewise.
28476 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28478 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28480 PR rtl-optimization/90257
28481 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28485 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28489 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28492 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28495 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28497 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28499 2019-04-29 Richard Biener <rguenther@suse.de>
28501 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28504 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28506 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28507 varasm.h, and netbsd-protos.h.
28509 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28512 * config/i386/i386-protos.h (ix86_data_alignment): Change
28513 the second argument type to unsigned int.
28514 * config/i386/i386.c (ix86_data_alignment): Change "align"
28515 argument type to unsigned int.
28517 2019-04-27 Martin Liska <mliska@suse.cz>
28519 PR middle-end/90258
28520 * opt-suggestions.c (option_proposer::build_option_suggestions):
28521 When get_valid_option_values returns empty values, add the
28522 misspelling candidate.
28524 2019-04-26 Jim Wilson <jimw@sifive.com>
28526 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28528 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28529 Pass orig_mode to riscv_build_integer.
28530 (riscv_split_integer): Pass mode to riscv_move_integer.
28531 (riscv_legitimize_const_move): Likewise.
28532 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28533 promoted_mode. Replace force_reg call with code to load constant into
28534 promoted reg and then subreg it for the store.
28535 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28536 riscv_move_integer.
28538 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28540 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28543 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28545 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28546 commentary about the encoding of precision.
28548 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28550 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28551 * config/i386/t-freebsd64: New file.
28552 * config.gcc: Add the t-freebsd64 for multilib support.
28554 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28556 * doc/extend.texi (vector_size): Add missing comma after @xref.
28558 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28560 * BASE-VER: Set to 10.0.0.
28562 2019-04-25 Richard Biener <rguenther@suse.de>
28564 PR middle-end/89765
28565 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28566 VIEW_CONVERT_EXPR into one operating on an rvalue.
28568 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28571 * config/i386/i386.c (feature_priority): Moved to file scope.
28572 (processor_features): Likewise.
28573 (processor_model): Likewise.
28574 (_arch_names_table): Likewise.
28575 (arch_names_table): Likewise.
28576 (_feature_list): Removed.
28577 (feature_list): Likewise.
28578 (_isa_names_table): Moved to file scope. Add priority.
28579 (isa_names_table): Likewise.
28580 (get_builtin_code_for_version): Replace feature_list with
28581 isa_names_table. Update error message for P_ZERO priority.
28583 2019-04-25 Richard Biener <rguenther@suse.de>
28585 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28586 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28588 2019-04-24 Jeff Law <law@redhat.com>
28590 PR tree-optimization/90037
28591 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28592 * passes.def: Replace all instance of phi-only cprop with the
28593 lattice propagator. Move propagation pass from after erroneous
28594 path isolation to before erroneous path isolation.
28595 * tree-ssa-phionlycprop.c: Remove.
28597 2019-04-24 Richard Biener <rguenther@suse.de>
28599 PR middle-end/90213
28600 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28601 by size and BITS_PER_UNIT on poly-wide-ints.
28603 2019-04-25 Richard Biener <rguenther@suse.de>
28605 PR middle-end/90194
28606 * match.pd: Add pattern to simplify view-conversion of an
28609 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28611 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28612 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28613 for Go on 32 bit AIX.
28614 * config/rs6000/aix72.h: Likewise.
28616 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28619 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28620 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28622 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28625 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28626 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28627 for restored hard frame pointer.
28628 (s390_sched_dependencies_evaluation): Implement new target hook.
28629 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28631 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28633 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28634 * config/arc/arc.c (arc_init): Cleanup warning message.
28635 (arc_override_options): Likewise.
28637 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28640 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28641 a register if both if_true and if_false are MEMs.
28643 PR tree-optimization/90208
28644 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28645 after labels of new_bb, not before them.
28647 PR tree-optimization/90211
28648 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28649 which are not SSA_NAMEs.
28651 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28653 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28655 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28657 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28659 PR rtl-optimization/87979
28660 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28663 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28665 PR rtl-optimization/84032
28666 * modulo-sched.c (ps_insn_find_column): Change condition so that
28667 branch will always be the last insn in a row inside partial
28670 2019-04-23 Richard Biener <rguenther@suse.de>
28673 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28674 dest_single_pred_p argument.
28675 (remove_forwarder_block): Adjust.
28676 (remove_forwarder_block_with_phi): Likewise.
28678 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28679 Bernd Edlinger <bernd.edlinger@hotmail.de>
28680 Jakub Jelinek <jakub@redhat.com>
28683 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28684 if used with general-regs-only.
28685 (arm_conditional_register_usage): Don't add non-general regs if
28687 (arm_valid_target_attribute_rec): Handle general-regs-only.
28688 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28690 (TARGET_HARD_FLOAT_SUB): Define.
28691 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28692 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28693 (TARGET_REALLY_IWMMXT2): Likewise.
28694 * config/arm/arm.opt: Add -mgeneral-regs-only.
28695 * doc/extend.texi: Document ARM general-regs-only target.
28696 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28698 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28700 PR tree-optimization/90078
28701 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28702 checks for infinite_cost overflow.
28704 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28706 PR tree-optimization/90021
28707 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28708 and check univariate against it.
28709 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28710 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28712 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28716 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28719 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28722 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28724 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28726 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28728 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28729 names using operand format, rather than hard-wired.
28730 (speculation_barrier): Likewise.
28732 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28734 PR tree-optimization/88055
28735 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28736 (gen_one_condition): Use it if !HONOR_NANS.
28738 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28740 PR middle-end/90139
28741 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28742 assign_temp instead of gen_reg_rtx.
28744 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28746 PR translation/90118
28747 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28748 Add missing space before %<.
28750 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28752 PR rtl-optimization/87871
28753 * ira-lives.c (make_object_dead): Don't add conflicts to
28754 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28756 2019-04-18 Martin Sebor <msebor@redhat.com>
28758 PR middle-end/89797
28759 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28760 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28761 assuming type size fits in SHWI.
28763 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28766 * ipa-inline.c (flatten_function): New parameter UPDATE.
28767 (ipa_inline, early_inliner): Use it.
28769 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28771 * fold-const.c (int_const_binop): Return early on failure.
28773 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28775 PR middle-end/85164
28776 * combine.c (force_int_to_mode): Cast the argument rather than
28777 the result of known_alignment.
28778 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28780 2019-04-18 Richard Biener <rguenther@suse.de>
28783 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28785 (remove_forwarder_block): ... here.
28786 (remove_forwarder_block_with_phi): Also move debug stmts here.
28788 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28790 PR translation/79183
28791 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28792 inform where appropriate.
28794 2019-04-18 Richard Biener <rguenther@suse.de>
28796 * tree.c (get_qualified_type): Put found type variants at the
28797 head of the variant list.
28799 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28801 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28803 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28806 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28807 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28808 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28809 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28810 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28812 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28814 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28815 even for allocno's with no conflicts.
28816 (print_conflicts): Print an extra newline.
28818 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28820 * auto-inc-dec.c (attempt_change): Set the alignment of the
28821 temporary memory to that of the original.
28823 2019-04-17 Joao Moreira <jmoreira@suse.de>
28825 * targhooks.c (default_print_patchable_function_entry): Emit
28826 __patchable_function_entries section with writable flags to allow
28827 relocation resolution.
28829 2019-04-17 Jonny Grant <jg@jguk.org>
28831 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28833 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28835 PR middle-end/90095
28836 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28837 on lowpart SUBREGs.
28839 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28841 * config/arc/arc.c (arc_init): Format diagnostic string.
28842 (arc_override_options): Likewise.
28843 (check_if_valid_regno_const): Likewise.
28844 (arc_reorg): Likewise.
28846 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28849 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28851 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28853 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28854 (*movdi_update1): Use Pmode.
28855 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28856 (movdi_<mode>_update_stack): Rename to ...
28857 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28859 (*movsi_update1): Use Pmode.
28860 (*movsi_update2): Use Pmode.
28861 (movsi_update): Rename to ...
28862 (movsi_<mode>_update): ... this. Use Pmode.
28863 (movsi_update_stack): Fix condition.
28864 (*movhi_update1): Use Pmode. Fix argument to
28865 avoiding_indexed_address_p.
28866 (*movhi_update2): Ditto.
28867 (*movhi_update3): Ditto.
28868 (*movhi_update4): Ditto.
28869 (*movqi_update1): Ditto.
28870 (*movqi_update2): Ditto.
28871 (*movqi_update3): Ditto.
28872 (*movsf_update1, *movdf_update1): Merge, rename to...
28873 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28874 avoiding_indexed_address_p. Add "size" attribute.
28875 (*movsf_update2, *movdf_update2): Merge, rename to...
28876 (*mov<mode>_update2): This. Ditto.
28877 (*movsf_update3): Use Pmode. Fix argument to
28878 avoiding_indexed_address_p.
28879 (*movsf_update4): Ditto.
28880 (allocate_stack): Simplify condition. Adjust pattern names.
28882 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28885 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28886 whitespace at the start of target attribute string.
28888 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28891 * config/rs6000/power9.md: Add store forwarding bypass.
28893 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28896 * valtrack.c (dead_debug_insert_temp): Reset debug references
28897 to the return value of a call being removed.
28899 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28901 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28902 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28903 implement target hook.
28904 (arc_memory_move_cost): New function.
28905 (TARGET_REGISTER_MOVE_COST): Define.
28906 (TARGET_MEMORY_MOVE_COST): Likewise.
28907 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28908 (MEMORY_MOVE_COST): Likewise.
28910 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28912 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28913 (sibcall_value_insn): Likewise.
28914 * config/arc/constraints.md (Rs5): Remove.
28916 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28918 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28919 for last two fake registers.
28920 (arc_conditional_register_usage): Make sure fake frame and arg
28921 pointer regs are in general regs class.
28922 (FRAME_POINTER_MASK): Remove.
28923 (RETURN_ADDR_MASK): Remove.
28924 (arc_must_save_register): Use hard frame regnum.
28925 (frame_restore_reg): Use hard_frame_pointer_rtx.
28926 (arc_save_callee_saves): Likewise.
28927 (arc_restore_callee_saves): Likewise.
28928 (arc_save_callee_enter): Likewise.
28929 (arc_restore_callee_leave): Likewise.
28930 (arc_save_callee_milli): Likewise.
28931 (arc_eh_return_address_location): Likewise.
28932 (arc_check_multi): Use hard frame regnum.
28933 (arc_can_eliminate): Likewise.
28934 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28935 for register allocator.
28936 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28937 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28938 (FRAME_POINTER_REGNUM): Change it to a fake register.
28939 (HARD_FRAME_POINTER_REGNUM): Defined.
28940 (ARG_POINTER_REGNUM): Change it to a new fake register.
28941 (ELIMINABLE_REGS): Update.
28942 (REGISTER_NAMES): Update names.
28943 * config/arc/arc.md (LP_START): Remove.
28944 (LP_END): Likewise.
28945 (shift_si3_loop): Update pattern.
28947 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28949 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28950 to avoid delay slot scheduling.
28951 (arc_must_save_register): Don't save SP.
28952 * config/arc/arc.md (stack_tie): Remove.
28953 (UNSPEC_ARC_STKTIE): Likewise.
28955 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28956 Shiva Chen <shiva0217@gmail.com>
28958 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28959 code gen with large shift amount.
28961 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28963 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28966 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28969 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28970 print -m64/-mx32/-m32 if it is true.
28971 (ix86_debug_options, ix86_function_specific_print): Pass true as
28972 ADD_ABI_P to ix86_target_string.
28973 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28974 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28975 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28977 PR rtl-optimization/90082
28978 * dce.c (can_delete_call): New function.
28979 (deletable_insn_p, mark_insn): Use it.
28981 PR tree-optimization/90090
28982 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28984 (is_division_by_square): Likewise. Formatting fix.
28986 2019-04-16 Richard Biener <rguenther@suse.de>
28988 PR tree-optimization/56049
28989 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28990 equality check if alias-set zero will prevail.
28992 2019-04-15 Jeff Law <law@redhat.com>
28994 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28995 size and alignment as unsigned.
28997 2019-04-15 Richard Biener <rguenther@suse.de>
29000 * tree-loop-distribution.c (destroy_loop): Preserve correct
29003 2019-04-15 Richard Biener <rguenther@suse.de>
29005 PR tree-optimization/90071
29006 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
29007 abnormal operands from def stmts.
29009 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
29011 PR rtl-optimization/89794
29012 * combine.c (count_auto_inc): New function.
29013 (try_combine): Count how many auto_inc expressions there were in the
29014 original instructions. Ensure we have the same number in the new
29015 instructions. Remove the code that tried to ensure auto_inc side
29016 effects on i1 and i0 are not lost.
29018 2019-04-15 Richard Biener <rguenther@suse.de>
29021 * tree.h (auto_var_p): Declare.
29022 * tree.c (auto_var_p): New function, split out from ...
29023 (auto_var_in_fn_p): ... here.
29024 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
29026 (new_var_info): Initialize it.
29027 (set_uids_in_ptset): Also set the shadow variable uid if required.
29028 (ipa_pta_execute): Postprocess points-to solutions assigning
29029 shadow variable uids for locals that may reach their containing
29030 function recursively.
29031 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
29032 assert but instead check whether the points-to solution is
29035 2019-04-15 Martin Jambor <mjambor@suse.cz>
29038 * cgraph.c (clone_of_p): Loop over clone chain for each step in
29041 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29043 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
29045 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
29046 Kito Cheng <kito.cheng@gmail.com>
29047 Shiva Chen <shiva0217@gmail.com>
29049 * config/nds32/nds32-md-auxiliary.c
29050 (nds32_legitimize_pic_address): Use new PIC pattern.
29051 (nds32_legitimize_tls_address): Use new TLS pattern.
29052 (nds32_output_symrel): New.
29053 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
29054 (nds32_alloc_relax_group_id): Ditto.
29055 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
29056 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
29058 (nds32_group_tls_insn): Ditto.
29059 (nds32_group_float_insns): Ditto.
29060 * config/nds32/nds32.md (tls_le): New.
29063 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
29065 * configure: Add nds32 target for dwarf2 debug_line checking.
29066 * configure.ac: Regenerated.
29068 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
29071 * ipa-devirt.c (skip_in_fields_list_p): New.
29072 (odr_types_equivalent_p): Use it.
29074 2019-04-13 Jakub Jelinek <jakub@redhat.com>
29077 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
29078 instead of strncmp when checking for thumb and arm. Formatting fixes.
29080 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29082 * doc/install.texi: Document --with-target-system-zlib.
29084 2019-04-12 Martin Sebor <msebor@redhat.com>
29090 * targhooks.c (default_vector_alignment): Avoid assuming
29091 argument fits in SHWI.
29092 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29093 a shift expression.
29094 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29096 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29098 PR rtl-optimization/89965
29099 * dce.c: Include rtl-iter.h.
29100 (struct check_argument_load_data): New type.
29101 (check_argument_load): New function.
29102 (find_call_stack_args): Check for loads from stack slots still tracked
29103 in sp_bytes and punt if any is found.
29105 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29107 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29109 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29110 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29112 2019-04-12 Martin Liska <mliska@suse.cz>
29114 PR middle-end/89970
29115 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29117 (separate_attrs): Handle multiple 'default's.
29118 (expand_target_clones): Rework error handling code.
29120 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29123 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29124 mode of vector rather than mode of destination for move instruction.
29125 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29126 Use QI inner mode with V16QI vector mode.
29128 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29131 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29132 "invalid %%t operand" in output_operand_lossage message.
29134 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29136 * config/s390/predicates.md (permute_pattern_operand): New
29138 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29139 operand for the permute pattern.
29140 ("*vec_perm<mode>"): New insn definition.
29141 ("bswap<mode>"): Generate the permute pattern operand in the
29142 expander and perform the operand reloads for pre arch13 level
29144 ("*bswap<mode>_emu"): Rename to ...
29145 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29146 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29147 Add the USE operand for the permute pattern.
29148 ("*vec_set_bswap_vec<mode>"): Likewise.
29150 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29153 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29154 and gcc_unreachable if it fails, just call tree_to_uhwi which
29155 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29156 Start warning message with a lower-case letter. Formatting fixes.
29158 PR rtl-optimization/90026
29159 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29160 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29161 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29162 in cfglayout mode, use emit_barrier_after_bb.
29164 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29166 PR rtl-optimization/87763
29167 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29170 2019-04-11 Tom de Vries <tdevries@suse.de>
29172 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29173 max macro using statement expression.
29175 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29177 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29178 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29179 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29180 read_only_private_data_section using xcoff_private_rodata_section_name.
29181 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29183 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29186 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29188 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29190 PR rtl-optimization/89965
29191 * dce.c (sp_based_mem_offset): New function.
29192 (find_call_stack_args): Use sp_based_mem_offset.
29194 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29196 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29198 2019-04-11 Richard Biener <rguenther@suse.de>
29200 PR tree-optimization/90020
29201 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29202 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29203 * tree-ssa-pre.c (compute_avail): Use it to not put
29204 possibly trapping references after a call that might not
29205 return into EXP_GEN.
29206 * gcse.c (compute_hash_table_work): Do not elide
29207 marking a block containing a call if the call might not
29210 2019-04-11 Richard Biener <rguenther@suse.de>
29212 PR tree-optimization/90018
29213 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29214 Test both SLP and interleaving variants.
29216 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29218 * config/s390/8561.md: New file.
29219 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29220 Add arch13 cpu model.
29221 * config/s390/s390-opts.h (enum processor_type): Likewise.
29222 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29223 (s390_get_unit_mask): Likewise.
29224 (s390_is_fpd): Likewise.
29225 (s390_is_fxd): Likewise.
29226 * config/s390/s390.h (s390_tune_attr): Likewise.
29227 * config/s390/s390.md: Include arch13 pipeline description.
29228 * config/s390/s390.opt: Add arch13.
29230 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29232 PR rtl-optimization/87763
29233 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29235 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29237 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29239 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29240 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29241 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29242 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29244 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29246 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29247 "Although" in -fipa-icf documentation.
29249 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29250 of using multiple -g options.
29252 2019-04-10 Martin Liska <mliska@suse.cz>
29254 PR gcov-profile/89959
29255 * doc/gcov.texi: Make documentation of -x option
29258 2019-04-10 Richard Biener <rguenther@suse.de>
29260 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29262 (DR_GROUP_SAME_DR_STMT): Remove.
29263 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29264 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29265 replace with assert.
29266 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29267 (vect_record_grouped_load_vectors): Remove unreachable code.
29269 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29272 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29273 obsolete reference to N.
29275 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29277 PR middle-end/90025
29278 * expr.c (store_expr): Set properly size on the MEM passed to
29282 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29283 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29284 translation is needed, and when translation is needed, only append
29285 ... if the string length is hostsz or more bytes long. Avoid using
29288 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29291 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29292 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29294 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29295 differences directly.
29296 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29298 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29300 PR translation/90011
29301 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29303 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29305 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29306 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29307 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29308 trailing space from -gsplit-dwarf diagnostics.
29310 PR tree-optimization/89998
29311 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29312 instead of integer_type_node if possible, don't add ranges if return
29313 type is not compatible with int.
29314 * gimple-fold.c (gimple_fold_builtin_sprintf,
29315 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29318 2019-04-09 Martin Liska <mliska@suse.cz>
29320 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29321 * doc/install.texi: Document the new config.
29323 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29325 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29326 use gimple_expr_type for load and store calls. Skip over the
29327 condition argument in a conditional internal function.
29328 Protect use of TREE_INT_CST_LOW.
29330 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29333 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29334 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29335 trailing period from it too.
29337 2019-04-08 wu yuan <wuyuan5@huawei.com>
29339 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29340 * config/aarch64/aarch64.md: Add "tsv110.md".
29341 * config/aarch64/tsv110.md: New file.
29343 2019-04-08 Richard Biener <rguenther@suse.de>
29345 PR tree-optimization/90006
29346 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29349 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29352 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29354 (fma_root_node): Likewise.
29355 (func_fma_steering): Likewise.
29357 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29359 PR rtl-optimization/89865
29360 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29362 PR rtl-optimization/89865
29363 * config/i386/i386.md
29364 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29365 numbers not to clash with the additional operands[4].
29366 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29367 with extra register copy in the middle.
29369 2019-04-08 Martin Liska <mliska@suse.cz>
29371 PR gcov-profile/89961
29372 * doc/gcov.texi: Document data_file.
29373 * gcov.c (generate_results): Add data_info into JSON output.
29375 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29377 PR tree-optimization/89725
29378 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29379 loop's chrec as invariant symbol.
29380 * tree-chrec.h (chrec_contains_symbols): New parameter.
29381 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29382 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29383 function of loops not in DDR's loop_nest.
29384 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29386 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29389 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29392 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29395 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29396 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29398 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29400 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29401 targetm.fixed_condition_code_regs.
29403 2019-04-05 Richard Biener <rguenther@suse.de>
29407 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29408 debug bind stmts but reset them if they are not valid at the
29411 2019-04-05 Martin Liska <mliska@suse.cz>
29413 PR translation/89936
29414 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29415 order to wrap keywords or arguments.
29416 * collect2.c (main): Likewise.
29417 (scan_prog_file): Likewise.
29418 (scan_libraries): Likewise.
29419 * common/config/riscv/riscv-common.c
29420 (riscv_subset_list::parsing_subset_version): Likewise.
29421 (riscv_subset_list::parse_std_ext): Likewise.
29422 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29424 * config/arm/arm.c (arm_option_override): Likewise.
29425 * config/cris/cris.c (cris_print_operand): Likewise.
29426 * config/darwin-c.c (darwin_pragma_options): Likewise.
29427 (darwin_pragma_unused): Likewise.
29428 (darwin_pragma_ms_struct): Likewise.
29429 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29430 * config/i386/i386.c (print_reg): Likewise.
29431 (ix86_print_operand): Likewise.
29432 * config/i386/xm-djgpp.h: Likewise.
29433 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29434 * config/m32c/m32c.c (m32c_option_override): Likewise.
29435 * config/msp430/msp430.c (msp430_option_override): Likewise.
29436 * config/nds32/nds32.c (nds32_option_override): Likewise.
29437 * config/nvptx/mkoffload.c (main): Likewise.
29438 * config/rx/rx.c (rx_print_operand): Likewise.
29439 (valid_psw_flag): Likewise.
29440 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29441 (vms_pragma_nomember_alignment): Likewise.
29442 (vms_pragma_extern_model): Likewise.
29443 * lto-wrapper.c (compile_offload_image): Likewise.
29444 * omp-offload.c (oacc_parse_default_dims): Likewise.
29445 * symtab.c (symtab_node::verify_base): Likewise.
29446 * tlink.c (recompile_files): Likewise.
29447 (start_tweaking): Likewise.
29448 * tree-profile.c (parse_profile_filter): Likewise.
29450 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29452 PR tree-optimization/89956
29453 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29454 multiple negates of the same value.
29456 2019-04-04 Martin Sebor <msebor@redhat.com>
29458 PR middle-end/89957
29459 PR middle-end/89911
29460 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29461 have the same precision since the function crashes otherwise.
29462 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29463 has non-zero arguments.
29465 2019-04-04 Martin Sebor <msebor@redhat.com>
29467 PR middle-end/89934
29468 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29469 out if the number of arguments is less than expected.
29471 2019-04-04 Jeff Law <law@redhat.com>
29473 PR rtl-optimization/89399
29474 * ree.c (combine_set_extension): Use single_set rather than
29475 digging into PATTERN for items on the candidate list.
29476 (combine_reaching_defs): Likewise.
29478 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29480 PR rtl-optimization/46590
29481 * loop-invariant.c (find_defs): Move df_remove_problem and
29482 df_process_deferred_rescans to move_invariants.
29483 Move df_live_add_problem and df_live_set_all_dirty calls
29484 to move_invariants.
29485 (move_invariants): Likewise.
29486 (move_loop_invariants): Likewise, making the df_live calls
29487 conditional on -O. Remove the problem again if we added it
29490 2019-04-03 qing zhao <qing.zhao@oracle.com>
29492 PR tree-optimization/89730
29493 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29494 -flive-patching=inline-only-static.
29495 (can_inline_edge_by_limits_p): Add the checking for
29496 -flive-patching=inline-only-static and grant always_inline
29497 even when -flive-patching=inline-only-static is specified.
29499 2019-04-03 Jeff Law <law@redhat.com>
29501 PR rtl-optimization/81025
29502 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29504 2019-04-03 Richard Biener <rguenther@suse.de>
29506 PR tree-optimization/84101
29507 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29508 regs.h for hard_regno_nregs.
29509 (cfun_returns): New helper.
29510 (vect_model_store_cost): When vectorizing a store to a decl
29511 we return and the function ABI returns in a multi-reg location
29512 account for the possible spilling that will happen.
29514 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29516 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29517 displacement addresses for vector mode operands.
29519 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29521 * config/arc/arc.c (GMASK_LEN): Define.
29522 (arc_restore_callee_saves): Restore first blink when
29525 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29527 * doc/extend.texi: Add deprecated comment on sign-return-address
29528 function attribute and add mbranch-protection.
29529 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29531 2019-04-03 Richard Biener <rguenther@suse.de>
29534 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29535 the all target phony.
29537 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29541 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29542 Return false for variable DImode shifts.
29543 (dimode_scalar_chain::compute_convert_gain): Do not handle
29544 register count operand in variable DImode shifts.
29545 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29546 count argument of a variable shift instruction to a vector register.
29547 (dimode_scalar_chain::convert_reg): Remove support to convert
29548 count argument of a variable shift instruction.
29550 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29552 PR rtl-optimization/84206
29553 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29554 iterating over loop headers.
29556 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29558 PR rtl-optimization/85876
29559 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29560 beyond the original fence.
29562 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29564 * config.gcc: Mark spu* targets as deprecated/obsolete.
29566 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29568 * config/s390/s390-builtin-types.def: New builtin function type
29569 definitions. Remove unused types.
29570 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29571 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29572 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29573 overloaded builtins.
29574 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29575 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29576 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29577 (vec_double, vec_signed, vec_unsigned): Define to use the new
29578 overloaded builtins.
29579 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29582 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29584 * config/s390/s390-builtin-types.def: New builtin function type
29586 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29587 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29588 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29589 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29590 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29591 constant definitions.
29592 * config/s390/vecintrin.h (vec_search_string_cc)
29593 (vec_search_string_until_zero_cc): New builtin name definitions.
29594 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29596 ("vec_vstrs<mode>"): New insn definition.
29598 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29600 * config/s390/s390-builtin-types.def: Add new builtin function
29602 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29603 New overloaded builtins.
29604 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29606 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29607 (UNSPEC_VEC_SLDBYTE): ... this.
29608 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29609 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29611 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29612 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29613 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29615 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29617 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29618 New insn definition.
29619 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29620 * config/s390/vector.md (V_HW_HSD): ... here.
29622 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29624 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29625 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29626 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29627 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29628 New insn definitions.
29630 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29632 * config/s390/s390-builtin-types.def: Add new builtin function type.
29633 * config/s390/s390-builtins.def: Add overloaded builtin
29634 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29635 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29636 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29637 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29638 ("eltswap<mode>"): New expander.
29639 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29642 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29644 * config/s390/s390-builtin-types.def: Add new builtin function types.
29645 * config/s390/s390-builtins.def: Add overloaded builtin
29646 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29648 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29649 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29650 ("bswap<mode>"): New expander.
29651 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29653 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29655 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29656 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29657 vector builtin version number in __VEC__.
29659 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29661 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29663 (SFSI): New mode attribute.
29664 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29665 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29667 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29668 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29669 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29670 ("floatsi<mode>2"): Add wcefb instruction.
29672 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29674 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29675 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29677 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29678 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29679 support 32 bit fp-int conversions. Rename to ...
29680 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29681 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29682 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29683 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29686 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29688 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29689 if-then-else constructs if we can use the select instruction.
29690 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29692 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29694 * config/s390/s390.md ("*popcountdi_arch13_cc")
29695 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29697 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29698 Append _z196 to make it ...
29699 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29700 ("popcounthi2_z196"): ... this.
29701 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29702 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29704 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29706 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29707 certain compares for arch13 in order to make use of the condition
29708 code result produced by the new instructions.
29709 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29710 nxrk, and nxgrk instruction patterns.
29711 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29712 (inv_no): Add new code iterator together with some attributes.
29713 ("*andc_split_<mode>"): Disable splitter for arch13.
29714 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29715 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29716 ("*<ANDOR:bitops_name>c<GPR:mode>")
29717 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29718 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29719 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29720 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29722 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29724 * common/config/s390/s390-common.c (processor_flags_table): New
29726 * config.gcc: Support arch13 with the --with-arch= configure flag.
29727 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29728 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29729 * config/s390/s390.c (s390_get_sched_attrmask)
29730 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29731 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29732 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29733 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29734 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29736 * config/s390/s390.opt: Support arch13 as processor type in
29737 command line options.
29739 2019-04-02 Martin Liska <mliska@suse.cz>
29741 PR translation/89912
29742 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29743 Fix param description of graphite-max-arrays-per-scop.
29745 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29747 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29748 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29749 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29751 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29753 PR rtl-optimization/85412
29754 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29755 sel_sched_region_1, not after.
29757 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29759 PR rtl-optimization/86928
29760 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29761 compute_live if necessary.
29762 (sel_redirect_edge_and_branch): Likewise.
29764 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29766 PR rtl-optimization/89865
29767 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29768 register if it is a part of small class.
29770 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29772 PR rtl-optimization/87273
29773 * sel-sched-ir.c (merge_fences): Remove assert.
29775 2019-04-01 Richard Biener <rguenther@suse.de>
29777 PR tree-optimization/46590
29778 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29779 (dom_walker::m_reachability): Add in place of...
29780 (dom_walker::m_skip_unreachable_blocks): ...this.
29781 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29782 Move complex initialization ...
29783 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29784 lazily and initialize edge flags on each invocation.
29785 (dom_walker::bb_reachable): Use m_reachability.
29787 2019-04-01 Martin Liska <mliska@suse.cz>
29790 * opt-suggestions.c (option_proposer::build_option_suggestions):
29791 Add variant without any argument in order to provide better
29794 2019-04-01 Richard Biener <rguenther@suse.de>
29797 * gimple.c: Include langhooks.h.
29798 (gimple_get_alias_set): Treat enumeral types as the underlying
29801 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29802 Eric Botcazou <ebotcazou@adacore.com>
29804 PR rtl-optimization/89862
29805 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29806 that operates on the full registers for WORD_REGISTER_OPERATIONS
29809 2019-03-29 Jim Wilson <jimw@sifive.com>
29811 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29812 Clear MASK_RVC and then set if C subset supported.
29814 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29817 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29818 non-addressable complit into its initializer if it is volatile.
29820 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29822 * opts-common.c (integral_argument): Set errno properly in one case.
29824 2019-03-29 Martin Liska <mliska@suse.cz>
29826 * doc/invoke.texi: Remove -Wchkp from documentation.
29828 2019-03-29 Martin Liska <mliska@suse.cz>
29830 * dbgcnt.c (print_limit_reach): New function.
29833 2019-03-29 Martin Liska <mliska@suse.cz>
29835 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29836 (dbg_cnt_process_opt): Parse first tokens aas
29837 dbg_cnt_process_single_pair is also using strtok.
29839 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29841 PR rtl-optimization/87485
29842 * function.c (expand_function_end): Move stack_protect_epilogue
29843 before loading of return value into hard register(s).
29845 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29847 PR middle-end/89621
29848 * tree-inline.h (struct copy_body_data): Add
29849 dont_remap_vla_if_no_change flag.
29850 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29851 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29852 and remap_type_2 returns false.
29853 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29854 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29855 only from where it is copied to nested contexts.
29857 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29860 * config/i386/i386.md (RMW operation with LEA peephole):
29861 Use LEAMODE mode attribute instead of SWI mode iterator for
29864 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29867 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29868 Also process XEXP (src, 0) of a shift insn.
29870 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29872 PR middle-end/89725
29873 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29874 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29876 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29878 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29880 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29881 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29882 immediately after first one with df_analyze in between, but rather
29883 process all bbs, queueing ones that need second pass in a worklist,
29884 df_analyze, process queued debug insn changes and if second pass is
29885 needed, process bbs from worklist, df_analyze, process queued debug
29888 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29889 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29890 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29892 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29895 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29898 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29901 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29902 function for 32-bit MS_ABI.
29903 (function_value_ms_32): New function.
29905 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29907 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29908 (movdi): Call gen_movdi_symbol_save_scc.
29909 (gen_movdi_symbol_save_scc): New insn and split.
29911 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29913 PR rtl-optimization/89313
29914 * function.c (matching_constraint_num): New static function.
29915 (match_asm_constraints_1): Use it. Fixup white space and comment.
29916 Don't replace inputs with non-matching constraints which conflict
29917 with early clobber outputs.
29919 2019-03-27 Jeff Law <law@redhat.com>
29921 PR rtl-optimization/87761
29922 PR rtl-optimization/89826
29923 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29925 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29926 note problem to get REG_DEAD/REG_UNUSED notes updated.
29928 2019-03-27 Richard Biener <rguenther@suse.de>
29930 PR tree-optimization/89463
29931 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29932 queue edges to remove.
29933 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29934 dead stmts. Delay edge removal until PHIs are removed to
29935 make debug-stmt creation not confused by seemingly degenerate
29938 2019-03-27 Alan Modra <amodra@gmail.com>
29940 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29942 * config/rs6000/darwin.h: Likewise.
29943 * config/rs6000/rs6000.c: Likewise.
29945 2019-03-27 Alan Modra <amodra@gmail.com>
29947 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29948 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29950 2019-03-26 Andrew Waterman <andrew@sifive.com>
29951 Jim Wilson <jimw@sifive.com>
29953 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29954 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29955 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29956 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29957 (generic_alu): Add auipc to type list.
29958 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29959 (riscv_microarchitecture): Declare.
29960 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29961 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29963 (riscv_microarchitecture): New.
29964 (sifive_7_tune_info): New.
29965 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29966 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29968 (riscv_store_data_bypass_p): New.
29969 (riscv_option_override): Set riscv_microarchitecture from
29970 cpu->microarchitecture.
29971 * config/riscv/riscv.md: Include sifive-7.md.
29974 (auipc<mode>): Change type to auipc.
29975 (restore_stack_nonlocal): New.
29976 * config/riscv/sifive-7.md: New.
29977 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29979 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29982 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29983 Also process XEXP (src, 0) of a shift insn.
29985 2019-03-26 Richard Biener <rguenther@suse.de>
29987 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29988 (copy_debug_stmt): Likewise.
29989 (expand_call_inline): Likewise.
29990 (copy_bb): Avoid redundant lookup & set of gimple_block.
29991 * gimple-low.c (lower_gimple_return): Likewise.
29992 (lower_builtin_setjmp): Likewise.
29994 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29996 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29997 is constant 0, turn into static const data member initialized to false.
29998 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29999 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
30001 2019-03-26 Jason Merrill <jason@redhat.com>
30002 Jakub Jelinek <jakub@redhat.com>
30004 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
30006 (mem_alloc_description::release_object_overhead): Fix comment typos.
30007 * hash-table.h (hash_table::~hash_table): Call
30008 release_instance_overhead only if m_entries is non-NULL, otherwise
30009 call unregister_descriptor.
30011 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
30013 PR tree-optimization/81740
30014 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30015 In case of outer loop vectorization, check for backward dependence
30016 at the inner loop if outer loop dependence is reversed.
30018 2019-03-26 Alan Modra <amodra@gmail.com>
30020 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
30021 rs6000_vector_mem init. Correct wI and wJ comment.
30023 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
30025 PR rtl-optimization/88347
30026 PR rtl-optimization/88423
30027 * sched-deps.c (sched_analyze_insn): Take into account that for
30028 tablejumps the barrier appears after a label and a jump_table_data.
30030 2019-03-25 Martin Sebor <msebor@redhat.com>
30033 * c-common.c (check_user_alignment): Rename local. Correct maximum
30034 alignment in diagnostic. Avoid assuming argument fits in SHWI,
30035 convert it to UHWI when it fits.
30037 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
30040 * dwarf2out.c (premark_used_variables): New function.
30041 (prune_unused_types_walk): Do not mark not premarked external
30043 (prune_unused_types): Call premark_used_variables.
30045 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
30047 PR rtl-optimization/89676
30048 * lra-constraints.c (curr_insn_transform): Do match reload for
30049 early clobbers when the match was successful only for different
30052 2019-03-25 Martin Sebor <msebor@redhat.com>
30054 * doc/extend.texi (Common Type Attributes): Document vector_size.
30055 (Common Variable Attributes): Mention size constraint. Correct
30057 (Vector Extensions): Use @dfn when defining bas type. Clarify
30058 base type and size constraints.
30060 2019-03-25 Richard Biener <rguenther@suse.de>
30062 PR tree-optimization/89789
30063 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
30064 changes from non-undefined back to undefined.
30066 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
30068 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
30069 heap string and a gc string, but since this variable is unknown to
30070 ggc the gc string might get reused and corrupted. Fixed by always
30071 using a heap string.
30073 2019-03-25 Richard Biener <rguenther@suse.de>
30075 PR tree-optimization/89779
30076 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
30077 to remove IV defs, delay actual removal.
30078 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30079 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30080 very end, properly also reset loop control IV information.
30082 2019-03-25 Richard Biener <rguenther@suse.de>
30084 PR tree-optimization/89802
30085 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30086 move EH data to folded stmt.
30088 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30090 * config/s390/s390-builtin-types.def: Remove few unused types and
30091 fix sort order for others.
30093 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30095 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30096 expected and found types with -mdebug during builtin matching.
30098 2019-03-25 Richard Biener <rguenther@suse.de>
30100 PR middle-end/89790
30101 * fold-const.c (operand_equal_p): Revert last change with
30104 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30106 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30107 notes for the result of the __tls_get_addr calls.
30108 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30110 2019-03-24 Jeff Law <law@redhat.com>
30112 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30114 PR rtl-optimization/87761
30115 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30116 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30118 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30119 rescans. Reprocess blocks as needed, calling df_analyze before
30120 reprocessing. Always call df_analyze before fixing up debug bind
30123 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30125 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30128 2019-03-22 Andrew Pinski <apinski@marvell.com>
30130 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30131 attrribute for uxtw.
30133 2019-03-26 Jeff Law <law@redhat.com>
30135 PR rtl-optimization/87761
30136 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30137 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30138 (mips_split_move): Accept new INSN argument. Try to forward SRC
30139 into the next instruction.
30140 (mips_split_move_insn): Pass INSN through to mips_split_move.
30142 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30144 PR rtl-optimization/89676
30145 * lra-constraints.c (curr_insn_transform): Do match reload for
30146 early clobbers even if the match was successful.
30148 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30151 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30153 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30155 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30157 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30159 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30160 <avx512>_fmsub_<mode>_mask3<round_name>,
30161 <avx512>_fnmadd_<mode>_mask3<round_name>,
30162 <avx512>_fnmsub_<mode>_mask3<round_name>,
30163 avx512f_vmfmadd_<mode>_mask3<round_name>,
30164 avx512f_vmfmsub_<mode>_mask3<round_name>,
30165 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30166 instead of register_operand and %v instead of v for match_operand 1.
30167 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30168 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30169 <round_nimm_predicate> instead of register_operand and %v instead of v
30170 for match_operand 1.
30172 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30173 <avx512>_fmadd_<mode>_mask3<round_name>,
30174 <avx512>_fmsub_<mode>_mask<round_name>,
30175 <avx512>_fmsub_<mode>_mask3<round_name>,
30176 <avx512>_fnmadd_<mode>_mask<round_name>,
30177 <avx512>_fnmadd_<mode>_mask3<round_name>,
30178 <avx512>_fnmsub_<mode>_mask<round_name>,
30179 <avx512>_fnmsub_<mode>_mask3<round_name>,
30180 <avx512>_fmaddsub_<mode>_mask<round_name>,
30181 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30182 <avx512>_fmsubadd_<mode>_mask<round_name>,
30183 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30184 <round_nimm_predicate> instead of nonimmediate_operand.
30185 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30186 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30187 Use register_operand instead of <round_nimm_predicate> for the
30188 operand that needs to match output.
30189 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30190 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30191 Likewise. Formatting fixes.
30194 * config/i386/i386.c (enum ix86_builtins): Remove
30195 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30196 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30197 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30198 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30199 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30200 __builtin_ia32_vfmsubss3_mask3): New builtins.
30201 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30202 avx512f_vmfmadd_<mode>_mask3<round_name>,
30203 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30204 *avx512f_vmfmsub_<mode>_mask<round_name>,
30205 avx512f_vmfmsub_<mode>_mask3<round_name>,
30206 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30207 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30208 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30209 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30210 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30211 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30212 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30213 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30214 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30215 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30216 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30217 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30218 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30219 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30220 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30221 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30222 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30223 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30224 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30225 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30226 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30227 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30228 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30229 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30230 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30231 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30232 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30233 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30235 2019-03-21 Martin Sebor <msebor@redhat.com>
30237 PR tree-optimization/89350
30238 * builtins.c (compute_objsize): Also ignore offsets whose upper
30240 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30241 (builtin_memref::builtin_memref): Initialize new member.
30242 Allow EXPR to be null.
30243 (builtin_memref::extend_offset_range): Replace local with a member.
30244 Avoid assuming pointer offsets are unsigned.
30245 (builtin_memref::set_base_and_offset): Determine base object
30246 before computing offset range.
30247 (builtin_access::builtin_access): Handle memset.
30248 (builtin_access::generic_overlap): Replace local with a member.
30249 (builtin_access::strcat_overlap): Same.
30250 (builtin_access::overlap): Same.
30251 (maybe_diag_overlap): Same.
30252 (maybe_diag_access_bounds): Same.
30253 (wrestrict_dom_walker::check_call): Handle memset.
30254 (check_bounds_or_overlap): Same.
30256 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30257 Jakub Jelinek <jakub@redhat.com>
30260 * tree.c (fld_type_variant, fld_incomplete_type_of,
30261 fld_process_array_type): Call fld->pset.add and don't call
30262 add_tree_to_fld_list if it returns true.
30263 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30264 non-marked types from TYPE_NEXT_VARIANT list.
30265 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30267 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30269 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30270 to false, if true, don't alloc_entries during construction, but defer
30271 it to the first method that needs m_entries allocated.
30272 (hash_table::hash_table, hash_table::~hash_table,
30273 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30274 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30275 hash_table::clear_slot, hash_table::traverse_noresize,
30276 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30277 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30279 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30280 NO_INSERT instead of find_with_hash.
30281 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30282 hash_set::m_table): Add Lazy to template params of hash_table.
30283 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30284 * attribs.c (test_attribute_exclusions): Likewise.
30285 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30286 hash_set. Add tests for hash_set with Lazy = true.
30288 2019-03-21 Richard Biener <rguenther@suse.de>
30290 PR tree-optimization/89779
30291 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30292 checks with respect to released SSA names now having error_mark_node
30294 * fold-const.c (operand_equal_p): Likewise.
30296 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30299 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30301 (s390_optimize_register_info): Use global_not_special_regno_p to
30302 check for global regs.
30304 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30307 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30308 update this_alternative nor this_alternative_set.
30310 2019-03-19 Jim Wilson <jimw@sifive.com>
30313 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30314 align, size, offset. Use them to handle a BLKmode reference. Update
30316 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30318 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30320 PR rtl-optimization/89768
30321 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30322 instead of GEN_INT.
30323 (unroll_loop_runtime_iterations): Likewise.
30325 2019-03-19 Martin Sebor <msebor@redhat.com>
30327 PR tree-optimization/89644
30328 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30329 rather than endptr as an indicator of nul-termination.
30331 PR tree-optimization/89644
30332 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30333 arrays in determining sequence sizes in strncpy and stpncpy.
30335 2019-03-19 Martin Liska <mliska@suse.cz>
30337 PR middle-end/89737
30338 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30339 unlikely_edges if there's an edge that belongs to both these sets.
30341 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30344 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30345 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30346 go via a stack temporary.
30348 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30351 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30352 instead of gen_rtx_SUBREG.
30353 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30355 2019-03-19 Richard Biener <rguenther@suse.de>
30358 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30360 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30364 * tree.c (free_lang_data_in_decl): Do not free context of C++
30367 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30370 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30371 subs for the first alternative except when operands[3] is 1.
30374 * gimplify.c (gimplify_asm_expr): For output argument with
30375 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30378 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30380 PR rtl-optimization/89753
30381 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30382 explicit unrolling factor even more robust.
30384 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30387 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30388 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30389 signed zeros, do another copysign after the compensation.
30391 2019-03-18 Martin Sebor <msebor@redhat.com>
30393 PR tree-optimization/89720
30394 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30395 more conservatively, the same as anti-range.
30397 2019-03-18 Richard Biener <rguenther@suse.de>
30399 PR middle-end/88945
30400 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30401 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30402 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30403 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30405 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30407 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30408 Extend queue to 1024 entries.
30409 Add "consumed" field.
30410 (gomp_print_output): Remove print_index parameter.
30411 Add final parameter.
30412 Change limit to unsigned.
30413 Use consumed field to implement circular buffer.
30414 Detect interrupted print in final pass.
30415 Flush output at the end.
30416 (run): Update gomp_print_output usage.
30417 (main): Initialize kernargs->output_data.consumed.
30419 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30421 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30422 calculation of the minimum number of scalar iterations for
30423 fully-predicated loops.
30425 2019-03-18 Martin Jambor <mjambor@suse.cz>
30427 PR tree-optimization/89546
30428 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30429 any propagation to its children took place.
30431 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30434 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30435 parameter, and make use of it.
30436 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30438 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30440 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30441 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30442 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30443 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30444 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30445 match what the ops is doing.
30446 (push_multi_fp_blink): Likewise.
30447 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30448 compiling for size and elf target.
30449 (arc_save_callee_enter): Adjust note to match what enter/leave
30452 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30454 * config/arc/arc.md (tst_movb): Fix constraint.
30456 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30458 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30460 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30462 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30463 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30464 reg_alloc_order references.
30465 (size_alloc_order): Define.
30466 (arc_adjust_reg_alloc_order): New function.
30467 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30469 (ADJUST_REG_ALLOC_ORDER): Define.
30470 (HONOR_REG_ALLOC_ORDER): Likewise.
30472 2019-03-18 Richard Biener <rguenther@suse.de>
30475 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30476 loads and stores a bit more.
30478 2019-03-18 Richard Biener <rguenther@suse.de>
30481 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30482 load pessimization to stores as well.
30484 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30486 PR middle-end/86979
30487 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30488 successor, use NULL as its av set.
30490 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30492 PR rtl-optimization/89721
30493 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30495 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30498 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30499 When handling vec_extract, use modular arithmetic to allow
30500 constant selectors greater than vector length.
30501 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30502 V1TImode vectors to have constant selector values greater than 0.
30503 Use modular arithmetic to compute vector index.
30504 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30505 index for in-memory vectors. Correct code generation for
30506 in-register vectors.
30507 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30510 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30514 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30517 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30520 * tree.c (inchash::add_expr): Strip any location wrappers.
30521 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30522 after hash verification.
30525 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30526 SIGN_EXTEND and ZERO_EXTEND.
30528 2019-03-14 Jason Merrill <jason@redhat.com>
30529 Jakub Jelinek <jakub@redhat.com>
30531 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30532 than if is_empty (*slot).
30533 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30534 existing elt and for elt removal.
30535 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30536 of already removed elt.
30538 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30541 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30542 REG_EH_REGION note.
30544 2019-03-14 Martin Liska <mliska@suse.cz>
30547 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30549 2019-03-14 Richard Biener <rguenther@suse.de>
30552 * config/i386/i386.c (make_resolver_func): Properly set
30553 DECL_CONTEXT on the RESULT_DECL.
30554 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30556 2019-03-14 Richard Biener <rguenther@suse.de>
30558 * gimple-pretty-print.c: Include cfgloop.h.
30559 (dump_gimple_phi): Adjust.
30560 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30561 (pp_cfg_jump): Adjust.
30562 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30563 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30564 (lower_phi_internal_fn): Remove.
30565 (verify_gimple_call): Remove IFN_PHI special-casing.
30566 (dump_function_to_file): Dump IL state.
30567 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30568 done to deal with PHI nodes being present in non-SSA state.
30570 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30573 * multiple_target.c (create_dispatcher_calls): Change
30574 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30575 In the node->iterate_referring loop, push *ref rather than ref, call
30576 ref->remove_reference () and always pass 0 to iterate_referring.
30578 PR rtl-optimization/89679
30579 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30580 would contain a paradoxical SUBREG.
30582 2019-03-14 Richard Biener <rguenther@suse.de>
30584 PR tree-optimization/89710
30585 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30588 2019-03-14 Martin Liska <mliska@suse.cz>
30590 * coverage.c (coverage_begin_function): Stream also
30592 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30593 documentation about function declaration location.
30594 * gcov-dump.c (tag_function): Print whole range
30595 of function declaration.
30596 * gcov.c (struct function_info): Add end_column field.
30597 (function_info::function_info): Initialize it.
30598 (output_json_intermediate_file): Output {start,end}_column
30600 (read_graph_file): Read end_column.
30602 2019-03-14 Richard Biener <rguenther@suse.de>
30604 PR middle-end/89698
30605 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30606 that the access types are similar.
30608 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30610 PR tree-optimization/89703
30611 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30612 aren't compatible also with builtin_decl_explicit. Check pure
30613 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30614 and BUILT_IN_STPNCPY{,_CHK}.
30616 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30619 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30620 addr32 prefix to VSIB address for X32.
30621 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30623 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30624 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30625 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30626 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30627 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30628 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30629 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30630 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30631 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30632 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30633 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30634 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30635 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30636 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30637 (*avx512f_scatterdi<mode>): Likewise.
30639 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30642 * lra-constraints.c (inherit_in_ebb): Update
30643 potential_reload_hard_regs along with live_hard_regs.
30645 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30648 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30650 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30652 2019-03-13 Martin Sebor <msebor@redhat.com>
30654 PR tree-optimization/89662
30655 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30658 2019-03-13 Richard Biener <rguenther@suse.de>
30660 PR middle-end/89677
30661 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30662 throw FP expressions at tree-affine.
30664 2019-03-14 Richard Biener <rguenther@suse.de>
30666 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30667 dump negative integer constants using _Literal (type) -num.
30669 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30671 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30672 nonlocal_value member.
30674 PR middle-end/88588
30675 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30676 (ipa_simd_modify_function_body): Handle PHIs.
30678 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30680 * config/s390/s390.c (s390_option_override_internal): Use more
30681 aggressive inlining parameters.
30683 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30685 * config/s390/3906.md: New file.
30686 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30687 (LONGRUNNING_THRESHOLD): Remove.
30688 (MAX_SCHED_MIX_SCORE): Decrease.
30689 (MAX_SCHED_MIX_DISTANCE): Decrease.
30690 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30691 (struct s390_sched_state): New struct to hold scheduling state.
30692 (S390_SCHED_STATE_NORMAL): Remove.
30693 (S390_SCHED_STATE_CRACKED): Remove.
30694 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30695 (s390_get_sched_attrmask): Use new attribute.
30696 (s390_get_unit_mask): Use new units.
30697 (s390_is_fpd): New function.
30698 (s390_is_fxd): New function.
30699 (s390_is_longrunning): New function.
30700 (s390_sched_score): Use new functions.
30701 (s390_sched_reorder): Likewise.
30702 (s390_sched_variable_issue): Rework and use new functions.
30703 (s390_sched_init): Use new functions.
30704 * config/s390/s390.h (s390_tune_attr): Add z14.
30705 * config/s390/s390.md: Add z14.
30707 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30709 * config/s390/2964.md: Update pipeline description.
30710 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30711 (LONGRUNNING_THRESHOLD): Remove.
30712 (LATENCY_FACTOR): Remove.
30713 (s390_get_unit_mask): Add unit.
30714 (s390_sched_score): Use fxd/fpd.
30715 (s390_sched_variable_issue): Use fxd/fpd.
30717 2019-03-12 Martin Liska <mliska@suse.cz>
30719 * config/i386/i386.c: Reword an error message.
30721 2019-03-12 Martin Jambor <mjambor@suse.cz>
30723 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30724 terminate with newline.
30726 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30729 * config/s390/s390.md (tabort): Use %wd instead of
30730 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30731 letters and periods.
30732 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30733 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30736 PR middle-end/89663
30737 * builtins.c (expand_builtin_int_roundingfn,
30738 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30739 gcc_unreachable if validate_arglist fails.
30741 2019-03-12 Richard Biener <rguenther@suse.de>
30743 PR tree-optimization/89664
30744 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30745 free the occurance tree after the early out.
30747 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30749 PR middle-end/89655
30751 * vr-values.c (vr_values::update_value_range): If
30752 old_vr->varying_p (), don't update it, make new_vr also VARYING
30755 2019-03-11 Martin Liska <mliska@suse.cz>
30757 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30758 Fix double string quoting.
30760 2019-03-11 Martin Liska <mliska@suse.cz>
30762 * collect-utils.c (collect_wait): Wrap apostrophes
30763 in gcc internal format with %'.
30764 * collect2.c (main): Likewise.
30765 (scan_prog_file): Likewise.
30766 (scan_libraries): Likewise.
30767 * config/i386/i386.c (ix86_expand_call): Likewise.
30768 (ix86_handle_interrupt_attribute): Likewise.
30769 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30770 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30771 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30772 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30773 * symtab.c (symtab_node::verify_base): Likewise.
30774 * tree-cfg.c (verify_gimple_label): Likewise.
30775 * tree.c (verify_type_variant): Likewise.
30777 2019-03-11 Martin Liska <mliska@suse.cz>
30779 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30780 in a string format message and fix GNU coding style.
30781 (expand_builtin_set_thread_pointer): Likewise.
30782 * common/config/aarch64/aarch64-common.c
30783 (aarch64_rewrite_selected_cpu): Likewise.
30784 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30785 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30786 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30787 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30788 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30789 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30790 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30791 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30792 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30793 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30795 * common/config/riscv/riscv-common.c
30796 (riscv_subset_list::parsing_subset_version): Likewise.
30797 (riscv_subset_list::parse_std_ext): Likewise.
30798 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30799 (riscv_subset_list::parse): Likewise.
30800 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30801 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30802 (aarch64_override_options_internal): Likewise.
30803 (aarch64_validate_mcpu): Likewise.
30804 (aarch64_validate_march): Likewise.
30805 (aarch64_validate_mtune): Likewise.
30806 (aarch64_override_options): Likewise.
30807 * config/alpha/alpha.c (alpha_option_override): Likewise.
30808 * config/arc/arc.c (arc_init): Likewise.
30809 (parse_mrgf_banked_regs_option): Likewise.
30810 (arc_override_options): Likewise.
30811 (arc_expand_builtin_aligned): Likewise.
30812 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30813 (arm_expand_builtin): Likewise.
30814 * config/arm/arm.c (arm_option_check_internal): Likewise.
30815 (arm_configure_build_target): Likewise.
30816 (arm_option_override): Likewise.
30817 (arm_options_perform_arch_sanity_checks): Likewise.
30818 (arm_handle_cmse_nonsecure_entry): Likewise.
30819 (arm_handle_cmse_nonsecure_call): Likewise.
30820 (arm_tls_referenced_p): Likewise.
30821 (thumb1_expand_prologue): Likewise.
30822 * config/avr/avr.c (avr_option_override): Likewise.
30823 * config/bfin/bfin.c (bfin_option_override): Likewise.
30824 * config/c6x/c6x.c (c6x_option_override): Likewise.
30825 * config/cr16/cr16.c (cr16_override_options): Likewise.
30826 * config/cris/cris.c (cris_option_override): Likewise.
30827 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30828 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30829 * config/darwin.c (darwin_override_options): Likewise.
30830 * config/frv/frv.c (frv_expand_builtin): Likewise.
30831 * config/h8300/h8300.c (h8300_option_override): Likewise.
30832 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30833 (ix86_option_override_internal): Likewise.
30834 (warn_once_call_ms2sysv_xlogues): Likewise.
30835 (ix86_expand_prologue): Likewise.
30836 (split_stack_prologue_scratch_regno): Likewise.
30837 (ix86_warn_parameter_passing_abi): Likewise.
30838 * config/ia64/ia64.c (fix_range): Likewise.
30839 * config/m68k/m68k.c (m68k_option_override): Likewise.
30840 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30841 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30842 (mips_set_compression_mode): Likewise.
30843 * config/mmix/mmix.c (mmix_option_override): Likewise.
30844 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30845 * config/msp430/msp430.c (msp430_option_override): Likewise.
30846 * config/nds32/nds32.c (nds32_option_override): Likewise.
30847 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30848 (nios2_option_override): Likewise.
30849 (nios2_expand_custom_builtin): Likewise.
30850 * config/nvptx/mkoffload.c (main): Likewise.
30851 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30852 * config/pa/pa.c (fix_range): Likewise.
30853 (pa_option_override): Likewise.
30854 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30855 (riscv_option_override): Likewise.
30856 * config/rl78/rl78.c (rl78_option_override): Likewise.
30857 * config/rs6000/aix61.h: Likewise.
30858 * config/rs6000/aix71.h: Likewise.
30859 * config/rs6000/aix72.h: Likewise.
30860 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30861 * config/rs6000/freebsd64.h: Likewise.
30862 * config/rs6000/linux64.h: Likewise.
30863 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30864 (rs6000_expand_zeroop_builtin): Likewise.
30865 (rs6000_expand_mtfsb_builtin): Likewise.
30866 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30867 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30868 (rs6000_invalid_builtin): Likewise.
30869 (rs6000_expand_split_stack_prologue): Likewise.
30870 * config/rs6000/rtems.h: Likewise.
30871 * config/rx/rx.c (valid_psw_flag): Likewise.
30872 (rx_expand_builtin): Likewise.
30873 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30874 * config/s390/s390.c (s390_expand_builtin): Likewise.
30875 (s390_function_profiler): Likewise.
30876 (s390_option_override_internal): Likewise.
30877 (s390_option_override): Likewise.
30878 * config/sh/sh.c (sh_option_override): Likewise.
30879 (sh_builtin_saveregs): Likewise.
30880 (sh_fix_range): Likewise.
30881 * config/sh/vxworks.h: Likewise.
30882 * config/sparc/sparc.c (sparc_option_override): Likewise.
30883 * config/spu/spu.c (spu_option_override): Likewise.
30884 (fix_range): Likewise.
30885 * config/visium/visium.c (visium_option_override): Likewise.
30886 (visium_handle_interrupt_attr): Likewise.
30887 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30888 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30889 (dbg_cnt_process_opt): Likewise.
30890 * dwarf2out.c (output_dwarf_version): Likewise.
30891 * except.c (expand_eh_return): Likewise.
30892 * gcc.c (defined): Likewise.
30893 (driver_handle_option): Likewise.
30894 (process_command): Likewise.
30895 (compare_files): Likewise.
30896 (driver::prepare_infiles): Likewise.
30897 (driver::do_spec_on_infiles): Likewise.
30898 (driver::maybe_run_linker): Likewise.
30899 * omp-offload.c (oacc_parse_default_dims): Likewise.
30900 * opts-global.c (handle_common_deferred_options): Likewise.
30901 * opts.c (parse_sanitizer_options): Likewise.
30902 (common_handle_option): Likewise.
30903 (enable_warning_as_error): Likewise.
30904 * passes.c (enable_disable_pass): Likewise.
30905 * plugin.c (parse_plugin_arg_opt): Likewise.
30906 (default_plugin_dir_name): Likewise.
30907 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30908 (default_pch_valid_p): Likewise.
30909 * toplev.c (init_asm_output): Likewise.
30910 (process_options): Likewise.
30911 (toplev::run_self_tests): Likewise.
30912 * tree-cfg.c (verify_gimple_call): Likewise.
30913 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30914 (tree_inlinable_function_p): Likewise.
30915 * var-tracking.c (vt_find_locations): Likewise.
30917 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30919 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30920 only on the else branch.
30922 2019-03-11 Martin Liska <mliska@suse.cz>
30924 * gcov.c (output_intermediate_json_line): Print function
30926 (output_json_intermediate_file): Add new argument.
30927 * doc/gcov.texi: Document the change.
30929 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30931 PR rtl-optimization/89588
30932 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30933 explicit unrolling factor more robust.
30935 2019-03-11 Richard Biener <rguenther@suse.de>
30937 PR tree-optimization/89649
30938 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30939 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30940 on the prolog and epilog loops.
30941 (vect_loop_versioning): Return copy of loop.
30942 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30943 on the non-vectorized version of the loop.
30945 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30948 * config/i386/sse.md (*vec_extractv2di_0_sse):
30949 Add (=r,x) alternative and corresponding splitter.
30951 2019-03-10 Martin Jambor <mjambor@suse.cz>
30953 PR tree-optimization/85762
30954 PR tree-optimization/87008
30955 PR tree-optimization/85459
30956 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30957 it points to if there is a type changing MEM_REF. Adjust all callers.
30958 (build_accesses_from_assign): Disable total scalarization if
30959 contains_vce_or_bfcref_p returns true through the new parameter, for
30962 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30965 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30966 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30969 * common.opt (fdiagnostics-show-labels,
30970 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30971 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30972 gas-locview-support, ginline-points, ginternal-reset-location-views):
30973 Terminate description text with a dot.
30974 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30975 * config/mcore/mcore.opt (m210, m340): Likewise.
30976 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30977 mnops=): Start description text with a capital letter.
30978 * config/arc/arc.opt (msize-level=): Likewise.
30979 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30980 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30981 mnewlib): Likewise.
30982 * config/ft32/ft32.opt (msim): Likewise.
30983 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30984 (mnodiv, mnopm): Terminate description text with a dot.
30985 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30987 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30989 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30992 PR rtl-optimization/89634
30993 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30994 are modified in BB_END (e->src) instruction.
30996 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30999 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
31000 messages more amenable to translation, and improve wording.
31002 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
31004 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
31005 ud- and du-chains between phases.
31007 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
31010 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
31011 instead of POLY_INT_CST.
31013 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
31015 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
31018 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
31023 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
31024 (_mm_storeu_si64): Ditto.
31026 2019-03-08 Martin Liska <mliska@suse.cz>
31029 * config/i386/i386.c (ix86_option_override_internal): Disable
31030 jump tables when retpolines are used.
31032 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
31035 * ipa-split.c (execute_split_functions): Do not split
31036 'noinline' or 'section' function.
31038 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31041 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
31042 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
31043 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
31046 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
31047 from diagnostics. Formatting fixes.
31050 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
31051 warn_odr diagnostics.
31054 * lra-constraints.c (process_alt_operands): Avoid one space before
31055 " at the end of line and another after " on another line in a string
31057 * attribs.c (handle_dll_attribute): Likewise.
31058 * config/avr/avr-devices.c (avr_texinfo): Likewise.
31060 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
31061 warning_at or inform messages in G_() if there is no ?:.
31063 PR tree-optimization/89550
31064 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
31065 returned true. Formatting fixes.
31066 (expand_builtin_strnlen): Formatting fixes.
31067 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
31068 if warning_at returned true.
31069 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
31071 2019-03-08 Richard Biener <rguenther@suse.de>
31073 PR middle-end/89578
31074 * cfgloop.h (struct loop): Add owned_clique field.
31075 * cfgloopmanip.c (copy_loop_info): Copy it.
31076 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
31078 * tree-inline.c (copy_loops): Remap owned_clique.
31079 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31080 * lto-streamer-out.c (output_cfg): Likewise.
31082 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31085 * config/darwin.c: Include intl.h.
31086 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31087 composing the message out of two separate parts.
31089 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31092 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31093 doesn't start with a capital letter and doesn't end with a dot.
31094 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31095 with a capital letter.
31096 (ix86_mangle_function_version_assembler_name): Likewise.
31097 (ix86_generate_version_dispatcher_body): Likewise.
31098 (fold_builtin_cpu): Likewise.
31099 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31100 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31101 translators, wrap full type name in %qs.
31103 PR translation/79999
31104 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31105 depend clause with source (or sink) modifier.
31106 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31109 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31110 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31111 (avx512f_load<mode>_mask): New define_expand.
31112 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31113 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31114 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31115 __builtin_ia32_movess_mask): New builtins.
31116 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31117 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31118 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31119 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31121 2019-03-07 Martin Jambor <mjambor@suse.cz>
31124 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31125 for extern inline functions.
31127 2019-03-07 Martin Jambor <mjambor@suse.cz>
31130 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31131 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31132 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31133 have multiple callees. At the end check if declarations match as
31134 opposed to cgraph_nodes.
31136 2019-03-07 Martin Liska <mliska@suse.cz>
31138 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31139 which is equivalent to searching for this in clones chain.
31140 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31141 names with a neighbour and special case first node in a chain.
31143 2019-01-25 Jason Merrill <jason@redhat.com>
31145 PR c++/80916 - spurious "static but not defined" warning.
31146 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31147 for an internal symbol with DECL_EXTERNAL.
31149 2019-04-07 Richard Biener <rguenther@suse.de>
31151 PR middle-end/89618
31152 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31153 * tree-inline.c (copy_loops): Simplify.
31155 2019-03-07 Martin Liska <mliska@suse.cz>
31157 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31159 2019-03-07 Richard Biener <rguenther@suse.de>
31161 PR tree-optimization/89595
31162 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31163 stmt iterator as reference, take boolean output parameter to
31164 indicate whether the stmt was removed and thus the iterator
31166 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31167 stmts created by folding.
31169 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31172 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31175 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31177 PR rtl-optimization/88845
31178 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31180 * lra.c (remove_scratches_1): New function.
31181 (remove_scratches): Use it.
31182 (lra_emit_move): Likewise.
31184 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31186 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31187 unaligned_access variable.
31188 * config/arc/arc.c (arc_override_options): Set unaligned access
31189 default on for HS CPUs.
31190 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31192 2019-03-06 Martin Liska <mliska@suse.cz>
31194 PR gcov-profile/89577
31195 * doc/gcov.texi: Prefer to use --coverage.
31196 * doc/sourcebuild.texi: Likewise.
31198 2019-03-02 Jason Merrill <jason@redhat.com>
31200 PR c++/86485 - -Wmaybe-unused with empty class ?:
31201 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31203 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31206 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31209 PR middle-end/89590
31210 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31211 exactly one argument.
31213 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31214 Richard Sandiford <richard.sandiford@arm.com>
31216 PR tree-optimization/89570
31217 * match.pd (vec_cond into cond_op simplification): Don't use
31218 get_conditional_internal_fn, use as_internal_fn (cond_op).
31220 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31223 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31224 to decide when to split off a non-zero offset from a symbol.
31225 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31226 in function symbols.
31228 2019-03-05 Richard Biener <rguenther@suse.de>
31230 PR tree-optimization/89594
31231 * tree-if-conv.c (pass_if_conversion::execute): Handle
31232 case where .LOOP_VECTORIZED_FUNCTION was removed.
31234 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31237 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31238 instead alloca it only when needed with the needed size.
31240 PR tree-optimization/89570
31241 * match.pd (vec_cond into cond_op simplification): Guard with
31242 vectorized_internal_fn_supported_p test and #if GIMPLE.
31244 PR tree-optimization/89566
31245 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31246 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31247 Punt if get_user_idx_format succeeds, but idx_format argument is
31248 not provided or doesn't have pointer type, or if idx_args is above
31249 number of provided arguments.
31251 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31253 PR tree-optimization/89437
31254 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31256 2019-03-04 Richard Biener <rguenther@suse.de>
31258 PR middle-end/89572
31259 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31262 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31264 PR tree-optimization/89487
31265 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31266 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31267 (distribute_loop): Don't do runtime alias check if there is non-
31268 addressable data reference.
31269 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31270 is a register variable.
31272 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31275 * config/arm/arm.md (cmpsi2_addneg): Use
31276 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31277 If operands[2] is 0 or INT_MIN, force use of subs.
31278 (*compare_scc splitter): Use gen_int_mode.
31279 (*negscc): Likewise.
31280 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31282 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31283 Monk Chiang <sh.chiang04@gmail.com>
31285 * common/config/riscv/riscv-common.c: Include sstream.
31286 (riscv_subset_list::to_string): New.
31287 (riscv_arch_str): Likewise.
31288 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31289 * config.in: Regen.
31290 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31291 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31292 (riscv_emit_attribute): New.
31293 (riscv_file_start): Emit attribute if needed.
31294 (riscv_option_override): Init riscv_emit_attribute_p.
31295 * config/riscv/riscv.opt (mriscv-attribute): New option.
31296 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31297 * configure: Regen.
31298 * doc/install.texi: Document --with-riscv-attribute.
31299 * doc/invoke.texi: Document -mriscv-attribute.
31301 * common/config/riscv/riscv-common.c:
31302 Include config/riscv/riscv-protos.h.
31303 (INCLUDE_STRING): Defined.
31304 (RISCV_DONT_CARE_VERSION): Defined.
31305 (riscv_subset_t): Declare.
31306 (riscv_subset_t::riscv_subset_t): New.
31307 (riscv_subset_list): Declare.
31308 (riscv_subset_list::riscv_subset_list): New.
31309 (riscv_subset_list::~riscv_subset_list): Likewise.
31310 (riscv_subset_list::parsing_subset_version): Likewise.
31311 (riscv_subset_list::parse_std_ext): Likewise.
31312 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31313 (riscv_subset_list::add): Likewise.
31314 (riscv_subset_list::lookup): Likewise.
31315 (riscv_subset_list::xlen): Likewise.
31316 (riscv_subset_list::parse): Likewise.
31317 (riscv_supported_std_ext): Likewise.
31318 (current_subset_list): Likewise.
31319 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31322 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31324 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31325 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31326 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31328 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31330 PR rtl-optimization/85899
31331 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31332 fallthru edges leading to the exit block.
31334 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31337 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31338 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31340 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31342 PR tree-optimization/89535
31343 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31344 for each operand. Calculate the fallback choice for mask operands
31345 and pass it to vect_get_vec_def_for_operand.
31347 2019-03-01 Richard Biener <rguenther@suse.de>
31349 PR middle-end/89541
31350 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31351 get virtual operands.
31352 (get_expr_operands): Handle CONST_DECL like other decls.
31354 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31356 PR middle-end/89503
31357 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31358 on DECL_P and EXPR_P.
31360 2019-03-01 Richard Biener <rguenther@suse.de>
31362 PR middle-end/89497
31363 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31364 argument, defaulted to zero.
31365 * passes.c (execute_function_todo): Pass down SSA update flags
31366 to cleanup_tree_cfg.
31367 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31368 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31370 (cleanup_tree_cfg): Get and pass down SSA update flags.
31372 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31375 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31376 early_lto_debug argument.
31378 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31380 PR tree-optimization/89536
31381 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31382 only whether bit #0 of the value is 0 instead of the entire value.
31384 2019-02-28 Marek Polacek <polacek@redhat.com>
31386 PR c++/87068 - missing diagnostic with fallthrough statement.
31387 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31388 at the end of a seq, save its location to walk_stmt_info.
31389 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31392 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31395 * tree.c (find_atomic_core_type): Move ahead in file.
31396 (check_base_type): Correctly compare alignments of atomic types.
31398 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31401 * config/i386/i386.c (get_builtin_code_for_version): Identify
31402 Westmere from PCLMUL, instead of AES.
31404 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31407 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31408 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31411 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31414 * config/aarch64/aarch64-option-extensions.def: Document it.
31415 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31418 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31421 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31422 builtins if they don't have a single scalar floating point argument.
31425 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31427 PR rtl-optimization/89490
31428 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31429 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31430 block section is not mergeable.
31432 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31435 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31436 old define_insn to ...
31437 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31438 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31439 Rename old define_insn to ...
31440 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31441 (thumb2_casesi_internal_pic): New define_expand. Rename old
31443 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31444 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31445 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31447 2019-02-27 Richard Biener <rguenther@suse.de>
31450 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31452 2019-02-27 Richard Biener <rguenther@suse.de>
31454 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31457 2019-02-27 Richard Biener <rguenther@suse.de>
31460 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31461 parameter, prefix section name with .gnu.debuglto_ if true.
31462 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31463 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31465 2019-02-27 Richard Biener <rguenther@suse.de>
31468 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31469 rather than on use_debug_types, doing what output_die does.
31470 (value_format): Likewise.
31472 2019-02-27 Martin Jambor <mjambor@suse.cz>
31473 Martin Sebor <msebor@redhat.com>
31475 * doc/invoke.texi (Warning Options): Reword description of
31476 -Wno-absolute-value.
31478 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31480 PR tree-optimization/89280
31481 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31482 builtin_setjmp_setup_bb): New functions.
31483 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31484 When visiting __builtin_setjmp_setup block, queue in special
31485 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31486 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31487 from visited after the loop if they don't have any visited successor
31490 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31492 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31494 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31496 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31499 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31500 with types other than sizetype/ssizetype.
31502 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31504 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31505 (enum sparc_processor_type): ...this.
31506 (enum sparc_code_model_type): New enumeration type.
31507 (enum sparc_memory_model_type): Tweak comments.
31508 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31510 (mcmodel): Use sparc_code_model enumeration and variable.
31511 (sparc_code_model): New enumeration.
31512 (mdebug): Add Undocumented marker.
31513 * config/sparc/sparc.h (enum cmodel): Delete.
31514 (sparc_cmodel): Likewise.
31515 (TARGET_CM_MEDLOW): Adjust to above renaming.
31516 (TARGET_CM_MEDMID): Likewise.
31517 (TARGET_CM_MEDANY): Likewise.
31518 (TARGET_CM_EMBMEDANY): Likewise.
31519 * config/sparc/sparc.c (sparc_cmodel): Delete.
31520 (sparc_option_override): Remove string/value mapping support for the
31521 code model. Move code and memory model support to after the handling
31522 of target flags. Do private machine setup last.
31523 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31524 (sparc_legitimize_reload_address): Likewise.
31525 (sparc_output_mi_thunk): Likewise.
31526 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31528 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31530 PR tree-optimization/89500
31531 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31532 (handle_builtin_strlen): Remove noncst_bound variable. Always
31533 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31534 cst if the first cst bytes starting at x are known to be non-zero,
31535 even if the string is not zero terminated. Don't try to modify
31536 *si for strnlen. Update strlen_to_stridx only for strlen or if
31537 we can prove strnlen returns the same value as strlen would.
31539 2019-02-26 Martin Liska <mliska@suse.cz>
31541 * alloc-pool.h (struct pool_usage): Remove extra
31543 * bitmap.h (struct bitmap_usage): Likewise.
31544 * ggc-common.c (struct ggc_usage): Likewise.
31545 * mem-stats.h (struct mem_usage): Likewise.
31546 (mem_alloc_description::dump): Print dash lines
31547 here and repeat header at the end of a table report.
31548 It's then more readable.
31549 * tree-phinodes.c (phinodes_print_statistics): Make
31550 horizontal alignment.
31551 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31552 * vec.c (struct vec_usage): Remove extra print_dash_line.
31553 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31555 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31557 * doc/extend.texi (__builtin_object_size):
31558 Use @pxref instead of @xref inside parenthesis.
31559 (__builtin_has_attribute): Add missing comma after @xref.
31560 (__builtin_object_size): Ditto.
31561 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31563 2019-02-26 Jeff Law <law@redhat.com>
31565 PR rtl-optimization/87761
31566 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31567 detect obviously dead insns and delete them.
31569 2019-02-26 Richard Biener <rguenther@suse.de>
31571 PR tree-optimization/89505
31572 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31573 to handle restrict pointed-to vars with multiple subvars
31576 2019-02-26 Richard Biener <rguenther@suse.de>
31578 PR tree-optimization/89489
31579 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31581 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31583 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31584 and move around comment.
31585 <BIT_AND_EXPR>: Likewise.
31586 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31588 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31591 * config/i386/i386.c (remove_partial_avx_dependency): Call
31592 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31593 after changing possibly many instructions to use that pseudo. Fix up
31594 insertion of v4sf_const0 setter at the start of bb.
31596 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31599 * doc/extend.texi (Variadic Pointer Args): New section.
31601 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31602 Martin Sebor <msebor@gmail.com>
31604 * common.opt (Wattribute-alias): Likewise.
31605 * doc/invoke.texi (Option Summary): List general form of
31606 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31607 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31608 Add cross-references.
31609 (-Wattribute-alias): Rewrite and correct default. Mention
31610 considered attributes (same as for -Wmissing-attributes).
31612 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31614 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31615 (_mm_cvtpd_ps): Likewise.
31616 (_mm_cvttpd_epi32): Likewise.
31619 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31620 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31623 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31625 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31628 * common/config/aarch64/aarch64-common.c
31629 (struct aarch64_option_extension): Add is_synthetic.
31630 (all_extensions): Use it.
31631 (TARGET_OPTION_INIT_STRUCT): Define hook.
31632 (struct gcc_targetm_common): Moved to end.
31633 (all_extensions_by_on): New.
31634 (opt_ext_cmp, typedef opt_ext): New.
31635 (aarch64_option_init_struct): New.
31636 (aarch64_contains_opt): New.
31637 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31638 * config/aarch64/aarch64-option-extensions.def
31639 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31640 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31641 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31642 Set is_synthetic to false.
31643 (crypto): Set is_synthetic to true.
31644 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31647 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31649 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31650 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31651 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31652 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31653 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31654 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31655 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31656 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31658 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31659 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31660 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31661 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31662 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31663 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31664 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31665 vfmlsl_laneq_high_f16): ... To this.
31666 * config/arm/neon.md: Update comments.
31668 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31670 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31671 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31672 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31673 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31674 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31675 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31676 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31677 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31679 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31680 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31681 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31682 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31683 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31684 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31685 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31686 vfmlslq_laneq_high_f16): ... To this.
31688 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31690 PR rtl-optimization/86096
31691 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31692 comparing mw_order values.
31694 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31697 * config/arm/arm.md (*subsi3_carryin_const): Use
31698 arm_neg_immediate_operand predicate instead of
31699 arm_not_immediate_operand, "L" constraint instead of "K" and
31700 print it using %n2 instead of %B2.
31701 (*subsi3_carryin_const0): New define_insn.
31702 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31703 instead of arm_not_operand and "I" constraint instead of "K" and
31704 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31705 another match_operand and in the condition check that it is negation
31707 (*subsi3_carryin_compare_const0): New define_ins.
31708 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31709 *subsi3_carryin_const.
31710 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31711 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31714 * config/arm.vfp.md (*negdf2_vfp): Use
31715 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31716 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31718 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31720 PR rtl-optimization/89445
31721 * simplify-rtx.c (simplify_ternary_operation): Don't use
31722 simplify_merge_mask on operands that may trap.
31723 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31724 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31725 second operand is CONST_VECTOR, check if any element could be zero.
31726 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31727 their operands can trap.
31729 2019-02-23 Martin Sebor <msebor@redhat.com>
31731 * gimple-ssa-sprintf.c (target_strtol): Rename...
31732 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31733 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31734 check for range error.
31736 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31739 * opts-common.c (prune_options): Also prune joined switches
31740 with Negative and RejectNegative.
31741 * config/i386/i386.opt (march=): Add Negative(march=).
31742 (mtune=): Add Negative(mtune=).
31743 * doc/options.texi: Document Negative used together with Joined
31744 and RejectNegative.
31746 2019-02-22 Martin Sebor <msebor@redhat.com>
31748 * doc/extend.texi (Other Builtins): Add
31749 __builtin_is_constant_evaluated.
31751 2019-02-22 Richard Biener <rguenther@suse.de>
31753 PR tree-optimization/87609
31754 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31756 2019-02-22 Jeff Law <law@redhat.com>
31758 PR rtl-optimization/87761
31759 * config/mips/mips.md: Add new combiner pattern to recognize
31760 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31762 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31765 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31766 destination register in peepholes generating patterns for ADDS/SUBS.
31767 (add<mode>3_compare0,
31768 *addsi3_compare0_uxtw, add<mode>3_compareC,
31769 add<mode>3_compareV_imm, add<mode>3_compareV,
31770 *adds_<optab><ALLX:mode>_<GPI:mode>,
31771 *subs_<optab><ALLX:mode>_<GPI:mode>,
31772 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31773 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31774 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31775 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31776 sub<mode>3_compare1): Allow stack pointer for source register.
31777 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31779 2019-02-22 Martin Sebor <msebor@redhat.com>
31781 PR tree-optimization/88993
31782 PR tree-optimization/88853
31783 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31785 (sprintf_dom_walker::call_info::is_string_func): New helper.
31786 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31787 for formatted string functions.
31788 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31790 2019-02-22 Martin Sebor <msebor@redhat.com>
31793 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31794 unreachable subexpressions.
31796 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31797 Hongtao Liu <hongtao.liu@intel.com>
31798 Sunil K Pandey <sunil.k.pandey@intel.com>
31801 * config/i386/i386-passes.def: Add
31802 pass_remove_partial_avx_dependency.
31803 * config/i386/i386-protos.h
31804 (make_pass_remove_partial_avx_dependency): New.
31805 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31807 (pass_data_remove_partial_avx_dependency): New.
31808 (pass_remove_partial_avx_dependency): Likewise.
31809 (make_pass_remove_partial_avx_dependency): Likewise.
31810 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31811 (*extendsfdf2): Add avx_partial_xmm_update.
31812 (truncdfsf2): Likewise.
31813 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31814 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31816 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31818 PR middle-end/85598
31819 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31822 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31825 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31826 (PTA_SKYLAKE): Add PTA_AES.
31827 (PTA_GOLDMONT): Likewise.
31829 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31831 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31832 instruction if enabled.
31833 (aarch64_override_options): Remove reference to return address key.
31835 2019-02-22 Richard Biener <rguenther@suse.de>
31837 PR tree-optimization/89440
31838 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31839 not necessary assert.
31841 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31844 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31845 (oacc_replace_fn_attrib_attr): ... this new function.
31846 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31847 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31849 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31851 * config/arm/arm-cpus.in (ares): Rename to...
31852 (neoverse-n1): ... This. Add ares as alias.
31853 * config/arm/arm-tables.opt: Regenerate.
31854 * config/arm/arm-tune.md: Likewise.
31855 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31857 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31859 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31860 * config/aarch64/aarch64-tune.md: Regenerate.
31861 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31863 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31865 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31866 (neoversen1_tunings): ... This.
31867 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31868 (neoverse-n1): New CPU.
31869 * config/aarch64/aarch64-tune.md: Regenerate.
31870 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31872 2019-02-22 Richard Biener <rguenther@suse.de>
31874 PR middle-end/87609
31875 * cfghooks.h (dependence_hash): New typedef.
31876 (struct copy_bb_data): New type.
31877 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31878 (duplicate_block): Likewise.
31879 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31880 (copy_bbs): Create and pass down copy_bb_data.
31881 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31882 (rtl_duplicate_bb): Likewise.
31883 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31884 remap dependence info.
31886 2019-02-22 Richard Biener <rguenther@suse.de>
31888 PR tree-optimization/87609
31889 * tree-core.h (tree_base): Document special clique values.
31890 * tree-inline.c (remap_dependence_clique): Do not use the
31891 special clique value of one.
31892 (maybe_set_dependence_info): Use clique one.
31893 (clear_dependence_clique): New callback.
31894 (compute_dependence_clique): Clear clique one from all refs
31895 before assigning it (again).
31897 2019-02-21 Martin Sebor <msebor@redhat.com>
31899 * doc/extend.texi (__clear_cache): Correct signature.
31901 2019-02-21 Ian Lance Taylor <iant@golang.org>
31904 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31905 than output_constant_def.
31906 (add_constant_to_table): New static function.
31907 (output_constant_def): Call add_constant_to_table.
31908 (tree_output_constant_def): Likewise.
31910 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31913 * builtins.c (fold_builtin_arith_overflow): If first two args are
31914 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31917 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31920 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31921 error for -mindirect-branch/-mfunction-return with incompatible
31924 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31927 * constraints.md (q): Remove.
31928 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31931 2019-02-21 Martin Jambor <mjambor@suse.cz>
31934 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31935 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31936 (omp_adjust_for_condition): ...here. Added necessary parameters.
31937 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31938 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31939 proper values to new parameters of omp_adjust_for_condition.
31941 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31943 PR middle-end/89412
31944 * expr.c (expand_assignment): If result is a MEM, use change_address
31945 instead of simplify_gen_subreg.
31947 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31948 David Malcolm <dmalcolm@redhat.com>
31950 PR middle-end/89091
31951 * fold-const.c (decode_field_reference): Return NULL_TREE if
31952 lang_hooks.types.type_for_size returns NULL. Check it before
31953 overwriting *exp_. Use return NULL_TREE instead of return 0.
31955 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31957 PR middle-end/88074
31958 PR middle-end/89415
31959 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31962 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31965 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31966 TARGET_SSE in addition to TARGET_SSE_MATH.
31968 (ix86_excess_precision): Ditto.
31969 (ix86_float_exceptions_rounding_supported_p): Ditto.
31970 (use_rsqrt_p): Ditto.
31971 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31973 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31976 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31977 linenum_arith_t when determining if two adjacent line spans are
31978 close enough to merge.
31979 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31980 lines within each line_span.
31982 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31985 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31986 paradoxical SUBREGS.
31988 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31991 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31992 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31993 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31996 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31998 * config/gcn/gcn.c (print_operand): Fix typo.
32000 2019-02-19 Richard Biener <rguenther@suse.de>
32002 PR middle-end/88074
32003 * toplev.c (do_compile): Initialize mpfr's exponent range
32004 based on available float modes.
32006 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
32008 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
32009 as long as the epilogue isn't completed.
32011 2019-02-18 Martin Sebor <msebor@redhat.com>
32013 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
32014 __has_cpp_attribute, and __has_include.
32016 2019-02-18 Martin Sebor <msebor@redhat.com>
32018 * doc/invoke.texi (-Wreturn-type): Correct and expand.
32020 2019-02-18 Martin Sebor <msebor@redhat.com>
32022 PR middle-end/89294
32023 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
32025 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
32027 2019-02-18 Richard Biener <rguenther@suse.de>
32029 PR tree-optimization/89296
32030 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
32031 of no-warning flag to cases that might emit the bogus warning.
32033 2019-02-18 Jakub Jelinek <jakub@redhat.com>
32036 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
32038 * config/arm/vfp.md (*movdi_vfp): Likewise.
32039 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
32040 "q" constraint for operands[0].
32043 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
32044 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
32045 pattern in a temporary buffer.
32046 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
32047 than 64-operands[2].
32050 * config/s390/s390.c (s390_indirect_branch_attrvalue,
32051 s390_indirect_branch_settings): Define unconditionally.
32052 (s390_set_current_function): Likewise, but guard the whole body except
32053 the s390_indirect_branch_settings call with
32054 #if S390_USE_TARGET_ATTRIBUTE.
32055 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
32057 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
32058 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
32059 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
32060 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
32061 HOST_WIDE_INT_1U instead of 1ULL.
32062 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
32063 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
32064 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
32065 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
32067 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
32070 2019-02-18 Martin Jambor <mjambor@suse.cz>
32072 PR tree-optimization/89209
32073 * tree-sra.c (create_access_replacement): New optional parameter
32074 reg_tree. Use it as a type if non-NULL and access type is not of
32076 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
32077 to create_access_replacement.
32078 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32079 Check lacc is non-NULL before attempting to re-create it on the RHS.
32081 2019-02-18 Martin Liska <mliska@suse.cz>
32084 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32086 (symbol_table::free_edge): Recycle m_summary_id.
32087 * cgraph.h (get_summary_id): New.
32088 (symbol_table::release_symbol): Set m_summary_id to -1
32090 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32091 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32092 function_summary to fast_function_summary.
32093 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32094 * ipa-pure-const.c (class funct_state_summary_t):
32095 Switch from function_summary to fast_function_summary.
32096 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32097 (class ipa_ref_opt_summary_t): Switch from function_summary
32098 to fast_function_summary.
32099 * symbol-summary.h (class function_summary_base): New class
32100 that is created from base of former function_summary.
32101 (function_summary_base::unregister_hooks): New.
32102 (class function_summary): Inherit from function_summary_base.
32103 (class call_summary_base): New class
32104 that is created from base of former call_summary.
32105 (class call_summary): Inherit from call_summary_base.
32106 (struct is_same): New.
32107 (class fast_function_summary): New summary class.
32108 (class fast_call_summary): New summary class.
32109 * vec.h (vec_safe_grow_cleared): New function.
32111 2019-02-18 Martin Liska <mliska@suse.cz>
32113 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32114 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32115 * doc/tm.texi: Document new target hook.
32116 * doc/tm.texi.in: Likewise.
32117 * target.def: Add new target macro.
32118 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32121 2019-02-17 Alan Modra <amodra@gmail.com>
32124 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32125 output reg on add insn.
32126 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32128 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32131 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32132 (PMULHRSW): Likewise.
32133 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32135 (ssse3_pmulhrswv4hi3): New expander.
32137 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32139 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32140 MMX. Add isa attribute.
32142 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32144 PR rtl-optimization/66152
32145 * builtins.h (c_readstr): Declare.
32146 * builtins.c (c_readstr): Remove forward declaration. Add
32147 null_terminated_p argument, if false, read all bytes from the
32148 string instead of stopping after '\0'.
32149 * expr.c (string_cst_read_str): New function.
32150 (store_expr): Use string_cst_read_str instead of
32151 builtin_strncpy_read_str. Try to store by pieces the whole
32152 exp_len first, and only if that fails, split it up into
32153 store by pieces followed by clear_storage. Formatting fix.
32155 * config/i386/i386.md (*movqi_internal): Remove static from
32156 buf variable. Use output_asm_insn (buf, operands); return "";
32157 instead of return buf;.
32158 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32159 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32160 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32162 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32164 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32165 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32166 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32167 (CC1_SPEC): Likewise.
32168 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32170 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32172 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32173 the base address on 64-bit strict-alignment platforms.
32175 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32177 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32179 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32181 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32183 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32185 PR rtl-optimization/88308
32186 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32187 on copied instruction.
32189 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32191 * final.c (insn_current_reference_address): Replace test on JUMP_P
32192 with test on jump_to_label_p.
32193 * config/visium/visium-passes.def: New file.
32194 * config/visium/t-visium (PASSES_EXTRA): Define.
32195 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32196 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32197 (TRAMPOLINE_ALIGNMENT): Define.
32198 * config/visium/visium.c (visium_option_override): Do not register
32199 the machine-specific reorg pass here.
32200 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32202 (output_branch): Adjust threshold for long branch instruction.
32203 * config/visium/visium.md (cpu): Move around.
32204 (length): Adjust for the GR6.
32206 2019-02-15 Richard Biener <rguenther@suse.de>
32207 Jakub Jelinek <jakub@redhat.com>
32209 PR tree-optimization/89278
32210 * tree-loop-distribution.c: Include tree-eh.h.
32211 (generate_memset_builtin, generate_memcpy_builtin): Call
32212 rewrite_to_non_trapping_overflow on builtin->size before passing it
32213 to force_gimple_operand_gsi.
32215 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32218 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32220 * opth-gen.awk: Likewise.
32222 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32224 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32225 Enable MMX, SSE and SSE2 by default.
32226 * config/i386/i386.c (ix86_option_override_internal): Do not
32227 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32229 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32231 PR rtl-optimization/89354
32232 * combine.c (make_extraction): Punt if extraction_mode is narrower
32235 2019-02-14 Maya Rashish <coypu@sdf.org>
32237 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32238 * config/netbsd-d.c: New file.
32239 * config/t-netbsd: Add netbsd-d.o
32241 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32243 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32244 affects_type_identity to true for aarch64_vector_pcs.
32245 (aarch64_comp_type_attributes): New function.
32246 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32248 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32251 * config/arm/iterators.md (ANY64): Add V4HF.
32253 2019-02-14 Martin Liska <mliska@suse.cz>
32255 PR rtl-optimization/89242
32256 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32257 process a transformation.
32259 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32261 PR tree-optimization/89314
32262 * fold-const.c (fold_binary_loc): Cast strlen argument to
32263 const char * before dereferencing it. Formatting fixes.
32265 PR middle-end/89284
32266 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32268 2019-02-13 Ian Lance Taylor <iant@golang.org>
32270 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32271 and set current index for other optimizations.
32273 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32275 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32276 nonimmediate_operand as operand 2 predicate.
32277 (vec_set<VF2_512_256:mode>_0): Ditto.
32278 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32279 (*vec_concatv2si): Remove alternative 2.
32280 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32281 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32282 (vec_concatv2di): Split alternatives 4,5,6 to ...
32283 (*vec_concatv2di_0) ... new pattern.
32285 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32288 * config/arm/arm.c (ldm_stm_operation_p) Set
32289 addr_reg_in_reglist correctly for first register.
32290 (load_multiple_sequence): Remove dead base check.
32291 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32293 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32296 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32297 Expose as @aarch64_pred_mov.
32298 * config/aarch64/aarch64.c (aarch64_classify_address):
32299 Use expand_insn which legitimizes operands.
32301 2019-02-13 Martin Liska <mliska@suse.cz>
32303 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32304 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32305 and pointer_offset fields.
32306 (initialize_argument_information): Remove usage of dead
32308 * cgraph.h (struct cgraph_thunk_info): Remove
32309 add_pointer_bounds_args.
32310 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32312 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32314 * config/i386/i386.c (ix86_function_arg_advance): Remove
32316 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32317 (def_builtin): Remove usage of dead fields.
32318 (ix86_add_new_builtins): Likewise.
32319 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32320 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32321 (sem_function::init): Likewise.
32322 (sem_variable::merge): Likewise.
32323 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32324 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32325 * lto-cgraph.c (lto_output_node): Likewise.
32326 (lto_output_varpool_node): Likewise.
32327 (input_node): Likewise.
32328 (input_varpool_node): Likewise.
32329 * lto-streamer-out.c (lto_output): Likewise.
32330 * tree-inline.c (expand_call_inline): Remove usage of
32332 * tree-inline.h (struct copy_body_data): Likewise.
32333 * varpool.c (varpool_node::dump): Likewise.
32335 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32337 PR middle-end/89303
32338 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32339 into pt->vars_contains_escaped_heap instead of setting
32340 pt->vars_contains_escaped_heap to it.
32342 PR middle-end/89281
32343 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32344 INTVAL (size), compare it to GET_MODE_MASK instead of
32345 1 << GET_MODE_BITSIZE.
32348 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32349 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32352 2019-02-13 Martin Liska <mliska@suse.cz>
32355 * cfgrtl.c (remove_barriers_from_footer): New function.
32356 (try_redirect_by_replacing_jump): Use it.
32357 (cfg_layout_redirect_edge_and_branch): Likewise.
32359 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32361 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32362 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32363 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32364 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32365 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32366 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32368 * config/rs6000/rs6000.c (builtin_function_type)
32369 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32370 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32371 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32372 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32373 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32375 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32377 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32378 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32380 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32383 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32384 268678 and revision 268657.
32385 (*movti_internal): Likewise.
32387 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32390 * config/s390/s390.c (s390_decompose_address): Update comment.
32391 (s390_check_qrst_address): Reject invalid address forms after
32394 2019-02-12 Martin Liska <mliska@suse.cz>
32397 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32398 we need default values of funct_state for a function that
32401 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32403 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32404 the object to pick the size of stores on strict-alignment platforms.
32406 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32407 (*movdi_insn_sp32): Likewise.
32408 (*movdi_insn_sp64): Likewise.
32410 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32413 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32414 types that needs constructiong.
32415 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32417 2019-02-12 Richard Biener <rguenther@suse.de>
32419 PR tree-optimization/89253
32420 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32421 duplicate the loop.
32423 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32426 * input.c (selftest::test_line_offset_overflow): New selftest.
32427 (selftest::input_c_tests): Call it.
32429 2019-02-11 Martin Sebor <msebor@redhat.com>
32431 PR tree-optimization/88771
32432 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32433 when -Wstringop-overflow is set.
32434 (builtin_memref::builtin_memref): Adjust excessive upper bound
32435 only when lower bound is not excessive.
32436 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32437 -Wstringop-ovefflow.
32438 (maybe_diag_offset_bounds): Rename...
32439 (maybe_diag_access_bounds): ...to this.
32440 (check_bounds_or_overlap): Adjust for name change above.
32442 2019-02-11 Martin Sebor <msebor@redhat.com>
32445 * builtins.c (max_object_size): Move from here...
32446 * builtins.h (max_object_size): ...and here...
32447 * tree.c (max_object_size): ...to here...
32448 * tree.h (max_object_size): ...and here.
32450 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32452 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32453 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32454 for correct semantics.
32456 2019-02-11 Alan Modra <amodra@gmail.com>
32458 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32459 -mlongcall and -mpltseq.
32460 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32461 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32462 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32463 * config/rs6000/sysv4.opt (mpltseq): New option.
32464 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32465 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32466 support is lacking. Don't allow -mpltseq with -mbss-plt.
32467 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32468 -mpltseq given for ELFv1.
32469 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32470 Only use UNSPEC_PLTSEQ for inline PLT calls.
32471 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32472 use UNSPEC_PLTSEQ for inline PLT calls.
32473 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32474 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32475 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32476 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32477 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32478 (pltseq_mtctr_<mode>): Likewise.
32480 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32482 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32484 * configure: Regenerate.
32486 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32489 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32492 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32494 * function.c (assign_parm_setup_block): Use the stored
32495 size, not the passed size, when allocating stack-space,
32496 also for a parameter with alignment larger than
32497 MAX_SUPPORTED_STACK_ALIGNMENT.
32499 2019-02-11 Martin Liska <mliska@suse.cz>
32502 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32503 * ipa-inline.c (inline_small_functions): Likewise.
32504 * ipa-pure-const.c (propagate_pure_const): Likewise.
32505 (propagate_nothrow): Likewise.
32506 * ipa-reference.c (propagate): Likewise.
32507 * ipa-utils.c (struct searchc_env): Remove unused field.
32508 (searchc): Always search across AVAIL_INTERPOSABLE.
32509 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32510 the only called IPA pure const can properly not propagate
32511 across interposable boundary.
32512 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32514 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32516 * config/nds32/nds32.md (call_internal, call_value_internal,
32517 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32519 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32521 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32524 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32526 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32529 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32531 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32533 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32535 PR tree-optimization/89268
32536 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32537 if preds is non-NULL.
32539 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32542 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32545 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32547 * config/nds32/nds32.md (trap): New pattern.
32549 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32551 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32554 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32556 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32559 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32561 * ipa-visibility.c (localize_node): Also do not localize
32562 LDPR_PREVAILING_DEF_IRONLY_EXP.
32564 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32567 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32568 instead of type_with_linkage.
32570 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32573 * params.def (uninlined-function-insns, uninlined-function-time,
32574 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32575 bound so we don't get overflows.
32577 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32579 * config/rs6000/rs6000-string.c (expand_compare_loop,
32580 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32583 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32585 PR middle-end/89246
32586 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32587 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32588 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32590 2019-02-09 Alan Modra <amodra@gmail.com>
32593 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32594 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32597 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32599 PR middle-end/88560
32600 * lra-constraints.c (process_alt_operands): Don't increase reject
32601 for memory when offset memory is required.
32603 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32605 * config/s390/vector.md: Implement vector copysign.
32607 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32609 * expr.c (expand_constructor): Correct indentations.
32611 2019-02-08 Richard Biener <rguenther@suse.de>
32613 PR tree-optimization/89247
32614 * tree-if-conv.c: Include tree-cfgcleanup.h.
32615 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32616 (tree_if_conversion): Pass through predicate vector.
32617 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32618 inline, see if any if-converted loops we refrece in
32619 LOOP_VECTORIZED calls vanished and fixup.
32620 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32622 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32624 * config/s390/constraints.md (jdd): New constraint.
32626 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32629 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32630 upper 16 vector registers without TARGET_AVX512VL.
32631 (*movti_internal): Likewise.
32633 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32635 PR rtl-optimization/89234
32636 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32637 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32638 (copy_reg_eh_region_note_backward): Likewise.
32640 2019-02-08 Richard Biener <rguenther@suse.de>
32642 PR middle-end/89223
32643 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32644 doesn't fit in HWI.
32645 (analyze_subscript_affine_affine): Handle failure from
32646 initialize_matrix_A.
32648 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32650 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32653 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32655 PR tree-optimization/86637
32656 PR tree-optimization/89235
32657 * tree-vect-loop.c (optimize_mask_stores): Add an
32658 auto_purge_vect_location sentinel to ensure that vect_location is
32660 * tree-vectorizer.c
32661 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32662 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32663 to ensure that vect_location is purged on exit.
32664 (pass_slp_vectorize::execute): Likewise, replacing the manual
32666 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32668 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32670 * config/aarch64/iterators.md (max_opp): New code_attr.
32671 (USMAX): New code iterator.
32672 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32673 (aarch64_smax): Likewise.
32674 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32675 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32678 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32681 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32682 for TARGET_AVX512VL.
32683 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32685 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32687 * config/s390/s390-builtin-types.def: Add new types.
32688 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32689 (s390_vec_xlw4): Make the memory operand into a const pointer.
32690 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32692 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32693 a new vector type with the alignment of the scalar memory operand.
32695 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32696 Jakub Jelinek <jakub@redhat.com>
32699 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32700 arm_count_ldrdstrd_insns): New declarations.
32701 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32703 (valid_operands_ldrd_strd): New function.
32704 (arm_count_ldrdstrd_insns): New function.
32705 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32706 sets instead of single DImode set and define new insns to match this.
32708 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32710 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32711 Make it a C initializer.
32713 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32716 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32718 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32720 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32721 Use neon_dot<q> for type.
32722 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32724 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32726 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32727 Use neon_dot<q> for type.
32728 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32729 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32731 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32733 PR rtl-optimization/89225
32734 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32737 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32739 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32740 after restoring registers saved to allocate the frame on Windows.
32742 2019-02-06 Richard Biener <rguenther@suse.de>
32744 PR tree-optimization/89182
32745 * graphite.h (cached_scalar_evolution_in_region): Declare.
32746 * graphite.c (struct seir_cache_key): New.
32747 (struct sese_scev_hash): Likewise.
32748 (seir_cache): New global.
32749 (cached_scalar_evolution_in_region): New function.
32750 (graphite_transform_loops): Allocate and release seir_cache.
32751 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32752 cached_scalar_evolution_in_region.
32753 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32755 (scop_detection::graphite_can_represent_expr: Use
32756 cached_scalar_evolution_in_region.
32757 (scop_detection::stmt_simple_for_scop_p): Likewise.
32758 (find_params_in_bb): Likewise.
32759 (gather_bbs::before_dom_children): Likewise.
32760 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32761 (add_loop_constraints): Likewise.
32763 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32765 PR middle-end/89210
32766 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32767 operand to new_unary_operation only if both element types are integral
32768 and it isn't a widening conversion. Return NULL_TREE if
32769 new_unary_operation failed.
32771 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32774 * config/s390/s390.md: Remove load and test FP splitter.
32776 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32779 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32780 expand_compare_loop, expand_block_compare_gpr,
32781 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32782 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32783 #include "profile-count.h" and "predict.h" for types and functions
32784 needed to work with REG_BR_PROB notes.
32786 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32789 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32790 for the long branch case.
32792 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32795 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32796 can throw, non-call exceptions are enabled and we can't delete
32797 dead exceptions or alter cfg. Set must_clean if
32798 delete_insn_and_edges returns true, don't set it blindly for calls.
32799 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32801 PR rtl-optimization/89195
32802 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32803 of the original MEM.
32805 2019-02-05 Martin Liska <mliska@suse.cz>
32807 PR gcov-profile/89000
32808 * gcov.c (function_summary): Remove argument.
32809 (file_summary): New function.
32810 (print_usage): Replace tabs with spaces.
32811 (generate_results): Use new function file_summary.
32813 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32816 * optabs.c (prepare_cmp_insn): Pass x and y to
32817 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32819 2019-02-05 Richard Biener <rguenther@suse.de>
32821 PR middle-end/89150
32822 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32823 (struct bitmap_element): Drop chain_prev so we properly recurse on
32824 the prev member, supporting tree views.
32825 (struct bitmap_head): GTY skip the obstack member.
32827 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32830 * doc/extend.texi (Vector Extensions): Add an example of using vector
32831 types together with x86 intrinsics.
32833 2019-02-04 Alan Modra <amodra@gmail.com>
32835 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32836 str[] size to 160, and comment.
32838 2019-02-04 Alan Modra <amodra@gmail.com>
32840 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32841 (rs6000_pltseq_template): Guard output of TLS markers with
32842 TARGET_TLS_MARKERS.
32843 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32844 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32845 to use inline PLT sequences.
32846 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32847 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32848 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32850 2019-02-04 Martin Liska <mliska@suse.cz>
32853 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32854 out when ipa_fn_summaries does not contain entry for callee.
32856 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32858 * config/sparc/sparc.h: Remove superfluous blank lines.
32859 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32860 (got_register_rtx): ...this.
32861 (sparc_got): Adjust to above renaming.
32862 (sparc_tls_got): Likewise.
32863 (sparc_delegitimize_address): Likewise.
32864 (sparc_output_mi_thunk): Likewise.
32865 (sparc_init_pic_reg): Likewise.
32866 (save_local_or_in_reg_p): Fix test on the GOT register.
32867 (USE_HIDDEN_LINKONCE): Move around.
32868 (get_pc_thunk_name): Likewise.
32869 (gen_load_pcrel_sym): Likewise.
32870 (load_got_register): Likewise.
32872 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32874 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32875 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32877 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32879 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32880 into consideration.
32882 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32884 * config.gcc (with_nds32_lib, glibc):
32885 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32886 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32887 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32889 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32892 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32893 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32894 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32895 (*rcpsf2_sse): Ditto.
32896 (*rsqrtsf2_sse): Ditto.
32897 (sse4_1_round<mode<2): Ditto.
32899 2019-02-03 Richard Biener <rguenther@suse.de>
32902 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32905 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32907 PR middle-end/87887
32908 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32909 Punt with warning on aggregate return or argument types. Ignore
32910 type/mode checking for uniform arguments.
32912 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32914 * combine.c (try_combine): Do not print "Can't combine" messages unless
32915 printing failed combination attempts.
32917 2019-02-01 Martin Jambor <mjambor@suse.cz>
32920 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32921 segment and global segment variables before making them static.
32923 2019-02-01 Martin Jambor <mjambor@suse.cz>
32925 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32926 missed optimization dump with dump_enabled_p.
32928 2019-02-01 Richard Biener <rguenther@suse.de>
32930 PR middle-end/88597
32931 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32932 the instantiate cache.
32933 (instantiate_scev_binary): Elide second operand procesing
32934 if equal to the first.
32935 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32936 (chrec_contains_undetermined): Likewise.
32937 (tree_contains_chrecs): Likewise.
32939 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32941 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32943 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32945 PR tree-optimization/89143
32946 * wide-int-range.h (wide_int_range_absu): Declare.
32947 * wide-int-range.cc (wide_int_range_absu): New function.
32948 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32950 PR tree-optimization/88107
32951 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32952 instead of assertion that eh_region_outermost is non-NULL, if it
32953 is NULL, set *ALL to true and return NULL.
32954 (move_sese_region_to_fn): Adjust caller, if all is set, call
32955 duplicate_eh_regions with NULL region.
32957 2019-02-01 Richard Biener <rguenth@suse.de>
32959 PR rtl-optimization/88593
32960 * mode-switching.c (optimize_mode_switching): Free dominators before
32961 calling cleanup_cfg.
32963 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32965 PR tree-optimization/88932
32966 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32968 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32970 PR middle-end/89137
32971 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32972 bogus clang warning.
32974 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32977 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32978 alternative to avoid partial SSE register stall for TARGET_AVX.
32979 (truncdfsf2): Ditto.
32980 (sse4_1_round<mode>2): Ditto.
32982 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32984 PR tree-optimization/89008
32985 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32986 process anything of the form X * 0.
32988 2019-01-31 Richard Biener <rguenther@suse.de>
32990 PR tree-optimization/89135
32991 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32992 with abnormal preds.
32994 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32997 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32998 always_inline callees into no_sanitize_address callers.
33000 2019-01-31 Richard Biener <rguenther@suse.de>
33002 PR rtl-optimization/89115
33003 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
33005 2019-01-30 Martin Sebor <msebor@redhat.com>
33008 * doc/extend.texi (cast to a union): Correct and expand.
33010 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
33012 PR rtl-optimization/87246
33013 * lra-constraints.c (simplify_operand_subreg): Reload memory
33014 in subreg if the address became invalid.
33016 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
33019 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
33020 Disable for little-endian.
33022 2019-01-30 Richard Biener <rguenther@suse.de>
33024 PR rtl-optimization/89115
33025 * opts.c (default_options_optimization): Reduce
33026 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
33027 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
33030 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
33032 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
33033 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
33034 type of vector element when vec_extract is implemented by direct
33037 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
33039 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
33041 2019-01-30 Richard Biener <rguenther@suse.de>
33043 PR tree-optimization/89111
33044 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
33045 canonicalization to appropriately sized access types.
33047 2019-01-30 Jakub Jelinek <jakub@redhat.com>
33050 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
33051 for arguments to functions that are TU-local and shouldn't be
33052 referenced by assembly.
33054 2019-01-30 Ulrich Drepper <drepper@redhat.com>
33056 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
33059 2019-01-29 Martin Sebor <msebor@redhat.com>
33062 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
33064 2019-01-29 Jakub Jelinek <jakub@redhat.com>
33068 * omp-simd-clone.c (simd_clone_clauses_extract)
33069 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
33070 OMP_CLAUSE_ALIGNED_ALIGNMENT.
33072 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
33074 * config.gcc: Force .init_array for ARC.
33076 2019-01-29 Richard Biener <rguenther@suse.de>
33079 * dwarf2out.c (collect_skeleton_dies): New helper.
33080 (copy_decls_for_unworthy_types): Call it.
33081 (build_abbrev_table): Assert we do not try to replace
33082 DW_AT_signature refs with local refs.
33084 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33086 PR middle-end/89002
33087 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33088 for lastprivate/linear IV, push gimplify context around gimplify_assign
33089 and, if it needed any temporaries, pop it into a gimple bind around the
33092 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33094 * common.opt (-Wattribute-alias): Remove "no-" from name.
33095 Make -Wattribute-alias command line option and
33096 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33098 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33101 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33102 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33104 (bmi2): Add missing @opindex.
33105 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33106 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33107 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33108 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33109 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33110 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33111 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33112 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33113 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33114 xsavec, xsaveopt and xsaves options.
33116 2019-01-28 Richard Biener <rguenther@suse.de>
33119 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33122 2019-01-28 Richard Biener <rguenther@suse.de>
33124 PR tree-optimization/88739
33125 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33126 BIT_FIELD_REFs only are applied to mode-precision operands
33127 when they are integral.
33128 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33129 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33130 BIT_FIELD_REFs of non-mode-precision integral operands.
33132 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33135 * config/i386/sse.md
33136 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33137 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33138 first constants in pairs are multiples of 2. Formatting fixes.
33139 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33140 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33141 first constants in each quadruple are multiples of 4. Formatting fixes.
33143 2019-01-26 Martin Jambor <mjambor@suse.cz>
33146 * tree-inline.c: Include tree-cfgcleanup.h.
33147 (delete_unreachable_blocks_update_callgraph): Move...
33148 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33149 ...here, make externally visible, make second argument bool, adjust
33151 * tree-cfgcleanup.c: Include cgraph.h.
33152 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33154 * ipa-prop.c: Include tree-cfgcleanup.h.
33155 (ipcp_transform_function): Call
33156 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33158 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33160 PR rtl-optimization/88846
33161 * ira.c (process_set_for_memref_referenced_p): New.
33162 (memref_referenced_p): Add new param. Use
33163 process_set_for_memref_referenced_p. Add new switch cases.
33164 (memref_used_between_p): Pass new arg to memref_referenced_p.
33166 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33169 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33170 argument ABI_BREAK. Set to true if the calculated alignment has
33171 changed in gcc-9. Check bit-fields for their base type alignment.
33172 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33173 (aarch64_function_arg_boundary): Likewise.
33174 (aarch64_gimplify_va_arg_expr): Likewise.
33176 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33178 PR middle-end/89037
33179 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33180 instead of accessing TREE_INT_CST_ELT directly.
33182 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33184 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33185 fenv_exceptions description.
33187 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33189 PR rtl-optimization/87763
33190 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33191 Allow SUBREG when matching CC_NZmode compare.
33193 2019-01-25 Richard Biener <rguenther@suse.de>
33195 PR tree-optimization/89049
33196 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33197 Look at the pattern stmt to determine if the stmt is vectorized.
33199 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33201 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33202 (pred_mov<mode>): Handle all-register forms using both a new
33203 alternative and a split.
33205 2019-01-25 Richard Biener <rguenther@suse.de>
33207 PR tree-optimization/86865
33208 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33209 Reject non-do-while loops.
33211 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33213 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33214 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33215 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33216 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33217 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33218 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33219 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33220 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33221 vlogical_operand, gpc_reg_operand, int_reg_operand,
33222 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33223 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33224 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33225 (save_world_operation, restore_world_operation, lmw_operation,
33226 stmw_operation): Use MEM_P and REG_P.
33227 (tie_operand): Use MEM_P.
33228 (vrsave_operation, crsave_operation): Use REG_P.
33229 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33230 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33231 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33232 (call_operand): Use HARD_REGISTER_P.
33233 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33235 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33236 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33237 quad_aligned_load_p, replace_swapped_aligned_store,
33238 recombine_lvx_pattern, replace_swapped_aligned_load,
33239 recombine_stvx_pattern): Use MEM_P.
33240 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33241 Use MEM_P and SYMBOL_REF_P.
33242 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33243 (insn_is_swappable_p): Use REG_P and MEM_P.
33244 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33245 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33247 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33248 Use CONST_DOUBLE_P.
33249 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33251 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33252 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33253 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33254 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33256 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33257 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33258 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33259 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33260 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33261 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33262 rs6000_split_logical_di): Use CONST_INT_P.
33263 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33264 REG_P and SYMBOL_REF_P.
33265 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33266 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33267 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33268 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33269 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33270 (small_data_operand, print_operand_address): Use CONST_INT_P and
33272 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33273 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33274 Use HARD_REGISTER_NUM_P.
33275 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33276 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33277 SUBREG_P and SYMBOL_REF_P.
33278 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33279 and HARD_REGISTER_NUM_P.
33280 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33282 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33283 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33285 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33286 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33287 find_addr_reg): Use REG_P.
33288 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33289 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33290 (offsettable_ok_by_alignment, constant_pool_expr_p,
33291 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33292 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33293 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33294 rs6000_assemble_integer, create_TOC_reference,
33295 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33296 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33297 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33298 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33299 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33300 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33301 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33302 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33303 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33304 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33305 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33306 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33307 and cbranch<mode>4): Use CONST_INT_P.
33308 (multiple define_splits): Use REG_P and SUBREG_P.
33309 (define_expands call, call_value): Use MEM_P.
33310 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33311 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33312 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33313 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33314 and HARD_REGISTER_NUM_P.
33315 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33317 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33319 PR rtl-optimization/88948
33320 * rtl.h (prepare_copy_insn): New prototype.
33321 * gcse.c (prepare_copy_insn): New function, split out from
33322 process_insert_insn.
33323 (process_insert_insn): Use prepare_copy_insn.
33324 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33325 instead of gen_move_insn.
33327 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33330 * config/i386/i386.c (ix86_pic_register_p): Return true for
33331 UNSPEC_SET_GOT too.
33333 PR tree-optimization/88964
33334 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33335 punt if HONOR_SNANS (chrec).
33337 PR middle-end/89015
33338 * tree-nested.c (convert_nonlocal_reference_stmt,
33339 convert_local_reference_stmt, convert_tramp_reference_stmt,
33340 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33341 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33342 or GIMPLE_OMP_TASK.
33344 PR tree-optimization/89027
33345 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33346 for "omp simd array" variables.
33348 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33351 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33352 force the alignment of m_val.
33354 2019-01-24 Richard Biener <rguenther@suse.de>
33357 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33358 When in "legacy" debug mode make sure to reset self-origins.
33360 2019-01-24 Martin Liska <mliska@suse.cz>
33362 PR gcov-profile/88994
33363 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33364 result will be always smaller or equal to the original.
33365 * gcov.c (mangle_name): Fix else branch where we should
33366 also copy to PTR and shift the pointer.
33368 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33370 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33371 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33373 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33375 * common/config/i386/i386-common.c
33376 (OPTION_MASK_ISA_ENQCMD_SET,
33377 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33378 (ix86_handle_option): Handle -menqcmd.
33379 * config.gcc (enqcmdintrin.h): New header file.
33380 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33381 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33383 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33385 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33386 __builtin_ia32_enqcmds): New builtins.
33387 * config/i386/i386-c.c (__ENQCMD__): New macro.
33388 * config/i386/i386-option.c (ix86_target_string): Add
33390 (ix86_valid_target_attribute_inner_p): Likewise.
33391 * config/i386/i386-expand.c
33392 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33393 IX86_BUILTIN_ENQCMDS.
33394 * config/i386/i386.h (TARGET_ENQCMD): New.
33395 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33396 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33397 (movdir64b_<mode>): Parameterize to enable share expansion code
33398 with ENQCMD in function ix86_expand_builtin.
33399 * config/i386/i386.opt: Add -menqcmd.
33400 * config/i386/immintrin.h: Include enqcmdintrin.h.
33401 * config/i386/enqcmdintrin.h: New intrinsic file.
33402 * doc/invoke.texi: Add -menqcmd.
33404 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33405 Steve Ellcey <sellcey@marvell.com>
33408 * recog.c (address_operand): Return false on wrong mode for address.
33409 (constrain_operands): Check for mode with 'p' constraint.
33411 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33414 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33415 Disparage MMX alternative.
33416 (sse2_cvtpd2pi): Ditto.
33417 (sse2_cvttpd2pi): Ditto.
33419 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33422 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33423 use-after-free of the result of
33424 aarch64_get_extension_string_for_isa_flags.
33426 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33429 * doc/extend.texi: Document break and continue behavior in
33430 statement expressions.
33432 2019-01-23 Richard Biener <rguenther@suse.de>
33434 PR tree-optimization/89008
33435 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33436 not leave another stray operand.
33438 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33440 * BASE-VER: Bump to 9.0.1.
33442 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33444 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33445 thunk that returns by reference, use the type of the return object
33446 of the thunk instead of that of the alias to build the dereference.
33448 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33450 * config/arc/atomic.md: Add operand to DMB instruction.
33452 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33454 PR tree-optimization/88964
33455 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33456 build_zero_cst instead of build_int_cst. Return false for loop
33457 invariants which honor signed zeros.
33459 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33461 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33463 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33466 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33467 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33468 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33470 PR middle-end/88968
33471 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33472 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33475 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33476 Disable for little endian.
33478 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33481 * config/arm/arm.c (arm_needs_double_word_align): Check
33482 DECL_BIT_FIELD_TYPE.
33484 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33485 H.J. Lu <hongjiu.lu@intel.com>
33488 * config/i386/i386-builtin.def: Add mask2 to all builtin
33489 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33491 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33492 (BDESC_FIRST): Likewise.
33493 (define_builtin): Add an argument for mask2. Updated to handle
33494 both ix86_isa_flags and ix86_isa_flags2.
33495 (define_builtin_const): Likewise.
33496 (define_builtin_pure): Likewise.
33497 (define_builtin2): Deleted.
33498 (define_builtin_const2): Likewise.
33499 (builtin_description): Add a member, mask2.
33500 (bdesc_*): Add mask2 to builtin initializations.
33501 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33502 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33504 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33506 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33509 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33512 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33515 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33516 alignment is dominated by a bitfield with 64-bit aligned base type.
33517 (arm_function_arg): Emit a warning if the alignment has changed since
33518 earlier GCC releases.
33519 (arm_function_arg_boundary): Likewise.
33520 (arm_setup_incoming_varargs): Likewise.
33522 2019-01-22 Richard Biener <rguenther@suse.de>
33524 PR tree-optimization/88862
33525 * graphite-scop-detection.c
33526 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33528 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33530 * doc/extend.tex (AMD GCN Function Attributes): New section.
33531 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33532 * doc/invoke.texi (AMD GCN Options): New section.
33533 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33535 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33537 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33538 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33540 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33542 PR tree-optimization/88044
33543 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33544 is false in the first iteration, but !every_iteration, return false
33545 instead of true with niter->niter zero.
33547 PR rtl-optimization/88904
33548 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33549 any nonequal registers before processing BB_END (b).
33552 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33554 (expand_binop_directly, expand_doubleword_clz,
33555 expand_doubleword_popcount, expand_ctz, expand_ffs,
33556 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33558 PR rtl-optimization/49429
33560 PR rtl-optimization/86334
33562 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33563 addressable from here...
33564 (emit_block_op_via_libcall): ... to here.
33566 2019-01-22 Richard Biener <rguenther@suse.de>
33568 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33569 auto_vec for cost vector to fix memleak.
33570 (vectorize_fold_left_reduction): Properly gather SLP defs.
33571 (vectorizable_comparison): Do not swap operands to properly
33574 2019-01-22 Alan Modra <amodra@gmail.com>
33577 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33578 stays a reg. Allow a const_int.
33579 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33580 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33581 (IS_NOMARK_TLSGETADDR): Define.
33582 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33583 (rs6000_output_tlsargs): New function.
33584 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33585 __tls_get_addr call takes an arg.
33586 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33587 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33589 (call_value_nonlocal_sysv): ..or here, delete split.
33590 (tls_gdld_nomark): Delete.
33591 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33592 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33593 (call_value_nonlocal_sysv): Likewise.
33594 (call_value_nonlocal_sysv_secure): Likewise.
33595 (call_value_nonlocal_aix): Likewise.
33596 (call_value_indirect_aix): Likewise.
33597 (call_value_indirect_elfv2): Likewise.
33598 (call_value_local32, call_value_local64): Disable for no-mark tls.
33599 (call_value_local_aix): Likewise.
33601 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33604 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33605 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33607 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33609 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33610 string contents as hash_map keys.
33612 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33615 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33616 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33617 instead of TYPE_ALIGN.
33618 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33619 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33620 pointer from TYPE_STUB_DECL.
33622 2019-01-21 Richard Biener <rguenther@suse.de>
33624 PR tree-optimization/88934
33625 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33626 at the possibly non-constant operand.
33627 (vect_get_constant_vectors): Adjust.
33629 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33632 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33633 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33634 instead of _X86INTRIN_H_INCLUDED.
33635 * onfig/i386/clwbintrin.h: Likewise.
33636 * config/i386/pkuintrin.h: Likewise.
33637 * config/i386/prfchwintrin.h: Likewise.
33638 * config/i386/rdseedintrin.h: Likewise.
33639 * config/i386/wbnoinvdintrin.h: Likewise.
33640 * config/i386/xsavecintrin.h: Likewise.
33641 * config/i386/xsavesintrin.h: Likewise.
33642 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33643 * config/i386/xsaveintrin.h: Likewise.
33644 * config/i386/xsaveoptintrin.h: Likewise.
33645 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33646 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33647 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33648 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33649 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33650 * config/i386/immintrin.h: Here.
33652 2019-01-20 Martin Jambor <mjambor@suse.cz>
33655 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33656 with aa_walk_budget.
33657 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33658 aa_walk_budget_p parameter.
33659 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33660 walk. Updated all callers.
33661 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33662 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33664 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33665 parameter info. Extract info from fbi. Pass fbi to recursive calls
33666 and to unmodified_parm.
33667 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33668 info, updated call to will_be_nonconstant_expr_predicate.
33669 (param_change_prob): New parameter fbi, limit AA walking.
33670 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33671 calls to various above functions.
33672 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33673 parameter. Use it to limit AA walking.
33674 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33675 fbi, limit AA walk.
33676 (detect_type_change): New parameter fbi, pass it on to
33677 detect_type_change_from_memory_writes.
33678 (detect_type_change_ssa): Likewise.
33679 (aa_overwalked): Removed.
33680 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33681 accordingly, adjust to the neew AA limiting scheme.
33682 (parm_ref_data_preserved_p): Likewise.
33683 (ipa_compute_jump_functions_for_edge): Adjust call to
33685 (ipa_analyze_call_uses): Likewise.
33686 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33687 (ipa_analyze_node): Initialize aa_walk_budget.
33688 (ipcp_transform_function): Likewise.
33689 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33690 to get_dynamic_type.
33692 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33694 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33695 outside of #if CHECKING_P code.
33697 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33699 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33700 New function, split out from...
33701 (loop_versioning::analyze_stride): ...here.
33702 (loop_versioning::find_per_loop_multiplication): Use gassign.
33703 (loop_versioning::analyze_term_using_scevs): Return a success code.
33704 (loop_versioning::analyze_arbitrary_term): New function.
33705 (loop_versioning::analyze_address_fragment): Use
33706 analyze_arbitrary_term if all else fails.
33708 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33711 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33714 2019-01-18 Richard Biener <rguenther@suse.de>
33716 PR tree-optimization/88903
33717 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33718 scalar stmts a SLP shift amount is composed of when detecting
33721 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33724 * config/arm/arm-cpus.in (mp): New feature.
33725 (sec): New feature.
33726 (fgroup ARMv7ve): Add mp and sec features.
33727 (arch armv7-a): Add options to allow mp and sec extensions.
33728 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33729 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33730 extenstions to the base architecture.
33731 (cpu cortex-a8): Add sec extension to the base architecture.
33732 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33733 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33734 variants down to the base v7-a varaint.
33735 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33736 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33737 of permitted extensions for -march=armv7-a and for
33738 -mcpu=generic-armv7-a.
33740 2019-01-18 Martin Liska <mliska@suse.cz>
33742 * params.def: Fix comment.
33743 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33745 (gimple_gen_ic_func_profiler): Likewise.
33747 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33749 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33750 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33751 and put in error checks for stack protector guard options.
33752 (aarch64_stack_protect_guard): New.
33753 (TARGET_STACK_PROTECT_GUARD): Define.
33754 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33755 (reg_stack_protect_address<mode>): New.
33756 (stack_protect_set): Adjust for SSP_GLOBAL.
33757 (stack_protect_test): Likewise.
33758 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33759 (-mstack-protector-guard): Likewise.
33760 (-mstack-protector-guard-offset): Likewise.
33762 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33764 PR tree-optimization/86214
33765 * tree-inline.h (struct copy_body_data): Add
33766 add_clobbers_to_eh_landing_pads member.
33767 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33768 (copy_edges_for_bb): Call it if EH edge destination is <
33769 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33770 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33771 if flag_stack_reuse != SR_NONE and clear it afterwards.
33773 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33776 * doc/install.texi (with-multilib-list): Document for aarch64.
33778 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33781 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33782 (("..."))) with ("...").
33784 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33786 * doc/extend.texi (Built-in Functions for Memory Model Aware
33787 Atomic Operations): Document atomic fetch and nand.
33789 2019-01-18 Martin Liska <mliska@suse.cz>
33790 Richard Biener <rguenther@suse.de>
33792 PR middle-end/88587
33793 * cgraph.h (create_version_clone_with_body): Add new argument
33795 * cgraphclones.c (cgraph_node::create_version_clone): Add
33796 DECL_ATTRIBUTES to a newly created decl. And call
33797 valid_attribute_p so that proper cl_target_optimization_node
33798 is set for the newly created declaration.
33799 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33801 (expand_target_clones): Do not call valid_attribute_p, it must
33803 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33806 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33809 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33810 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33811 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33813 2019-01-17 Martin Sebor <msebor@redhat.com>
33815 PR middle-end/88273
33816 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33817 Handle anti-ranges the same as no range at all.
33819 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33821 * config/aarch64/aarch64.c (cgraph.h): New include.
33822 (intl.h): New include.
33823 (supported_simd_type): New function.
33824 (currently_supported_simd_type): Ditto.
33825 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33826 (aarch64_simd_clone_adjust): Ditto.
33827 (aarch64_simd_clone_usable): Ditto.
33828 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33829 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33830 (TARGET_SIMD_CLONE_USABLE): Ditto.
33831 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33832 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33835 2019-01-17 Martin Sebor <msebor@redhat.com>
33837 PR tree-optimization/88800
33838 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33839 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33840 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33841 redundant argument. Add new argument and issue diagnostics under
33842 its control. Detect out-of-bounds access even with warnings
33844 (check_bounds_or_overlap): Change return type. Add argument.
33845 (wrestrict_dom_walker::check_call): Adjust.
33846 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33847 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33848 check_bounds_or_overlap's return value.
33849 (handle_builtin_stxncpy): Same.
33850 (handle_builtin_strcat): Same.
33852 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33853 Kwok Cheung Yeung <kcy@codesourcery.com>
33854 Julian Brown <julian@codesourcery.com>
33855 Tom de Vries <tom@codesourcery.com>
33857 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33859 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33861 * doc/sourcebuild.texi: Document dg-require-effective-target
33862 llvm_binutils and offload_gcn.
33864 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33865 Kwok Cheung Yeung <kcy@codesourcery.com>
33866 Julian Brown <julian@codesourcery.com>
33867 Tom de Vries <tom@codesourcery.com>
33869 * doc/sourcebuild.texi: Document dg-required-effective-target
33872 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33873 Kwok Cheung Yeung <kcy@codesourcery.com>
33874 Julian Brown <julian@codesourcery.com>
33875 Tom de Vries <tom@codesourcery.com>
33876 Jan Hubicka <hubicka@ucw.cz>
33877 Martin Jambor <mjambor@suse.cz>
33879 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33880 * configure.ac: Check for dlopen.
33881 * configure: Regenerate.
33883 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33884 Kwok Cheung Yeung <kcy@codesourcery.com>
33885 Julian Brown <julian@codesourcery.com>
33886 Tom de Vries <tom@codesourcery.com>
33887 Jan Hubicka <hubicka@ucw.cz>
33888 Martin Jambor <mjambor@suse.cz>
33890 * common/config/gcn/gcn-common.c: New file.
33891 * config/gcn/driver-gcn.c: New file.
33892 * config/gcn/gcn-builtins.def: New file.
33893 * config/gcn/gcn-hsa.h: New file.
33894 * config/gcn/gcn-modes.def: New file.
33895 * config/gcn/gcn-opts.h: New file.
33896 * config/gcn/gcn-passes.def: New file.
33897 * config/gcn/gcn-protos.h: New file.
33898 * config/gcn/gcn-run.c: New file.
33899 * config/gcn/gcn-tree.c: New file.
33900 * config/gcn/gcn.c: New file.
33901 * config/gcn/gcn.h: New file.
33902 * config/gcn/gcn.opt: New file.
33903 * config/gcn/t-gcn-hsa: New file.
33905 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33906 Kwok Cheung Yeung <kcy@codesourcery.com>
33907 Julian Brown <julian@codesourcery.com>
33908 Tom de Vries <tom@codesourcery.com>
33909 Jan Hubicka <hubicka@ucw.cz>
33910 Martin Jambor <mjambor@suse.cz>
33912 * config/gcn/constraints.md: New file.
33913 * config/gcn/gcn-valu.md: New file.
33914 * config/gcn/gcn.md: New file.
33915 * config/gcn/predicates.md: New file.
33917 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33919 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33920 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33921 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33922 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33924 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33927 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33928 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33929 it and document registers.
33931 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33933 * config/aarch64/aarch64.c (ares_tunings): Define.
33934 * config/aarch64/aarch64-cores.def (ares): Use the above.
33936 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33940 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33942 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33943 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33944 (_mm512_maskz_fixupimm_round_pd): Ditto.
33945 (_mm512_fixupimm_round_ps): Ditto.
33946 (_mm512_maskz_fixupimm_round_ps): Ditto.
33947 (_mm_fixupimm_round_sd): Ditto.
33948 (_mm_maskz_fixupimm_round_sd): Ditto.
33949 (_mm_fixupimm_round_ss): Ditto.
33950 (_mm_maskz_fixupimm_round_ss): Ditto.
33951 (_mm512_fixupimm_pd): Ditto.
33952 (_mm512_maskz_fixupimm_pd): Ditto.
33953 (_mm512_fixupimm_ps): Ditto.
33954 (_mm512_maskz_fixupimm_ps): Ditto.
33955 (_mm_fixupimm_sd): Ditto.
33956 (_mm_maskz_fixupimm_sd): Ditto.
33957 (_mm_fixupimm_ss): Ditto.
33958 (_mm_maskz_fixupimm_ss): Ditto.
33959 (_mm512_mask_fixupimm_round_pd): Update builtin.
33960 (_mm512_mask_fixupimm_round_ps): Ditto.
33961 (_mm_mask_fixupimm_round_sd): Ditto.
33962 (_mm_mask_fixupimm_round_ss): Ditto.
33963 (_mm512_mask_fixupimm_pd): Ditto.
33964 (_mm512_mask_fixupimm_ps): Ditto.
33965 (_mm_mask_fixupimm_sd): Ditto.
33966 (_mm_mask_fixupimm_ss): Ditto.
33967 * config/i386/avx512vlintrin.h:
33968 (_mm256_fixupimm_pd): Update parameters and builtin.
33969 (_mm256_maskz_fixupimm_pd): Ditto.
33970 (_mm256_fixupimm_ps): Ditto.
33971 (_mm256_maskz_fixupimm_ps): Ditto.
33972 (_mm_fixupimm_pd): Ditto.
33973 (_mm_maskz_fixupimm_pd): Ditto.
33974 (_mm_fixupimm_ps): Ditto.
33975 (_mm_maskz_fixupimm_ps): Ditto.
33976 (_mm256_mask_fixupimm_pd): Update builtin.
33977 (_mm256_mask_fixupimm_ps): Ditto.
33978 (_mm_mask_fixupimm_pd): Ditto.
33979 (_mm_mask_fixupimm_ps): Ditto.
33980 * config/i386/i386-builtin-types.def: Add new types and remove
33982 * config/i386/i386-builtin.def: Update builtin definitions.
33983 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33984 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33985 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33986 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33987 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33988 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33989 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33990 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33991 * config/i386/subst.md:
33992 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33993 (round_saeonly_sd_mask_op4): Ditto.
33994 (round_saeonly_expand_operand5): Ditto.
33995 (round_saeonly_expand): Update.
33997 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34001 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
34003 * config/i386/sse.md: Combine VFIXUPIMM* patterns
34004 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34005 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34006 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
34007 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
34008 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
34009 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
34011 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
34015 2018-12-15 Jakub Jelinek <jakub@redhat.com>
34018 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
34019 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
34020 instead of UNSPEC_FIXUPIMM.
34022 2019-01-17 Richard Biener <rguenther@suse.de>
34025 * dwarf2out.c (want_pubnames): Never generate pubnames sections
34026 and friends for the LTO part of debug info.
34028 2019-01-17 Jakub Jelinek <jakub@redhat.com>
34030 PR tree-optimization/86214
34031 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
34034 PR rtl-optimization/88870
34035 * dce.c (deletable_insn_p): Never delete const/pure calls that can
34036 throw if we can't alter the cfg or delete dead exceptions.
34037 (mark_insn): Don't call find_call_stack_args for such calls.
34039 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
34041 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
34042 prototypes for vec_st.
34043 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
34044 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
34045 mainly on signed/unsigned long long and double.
34047 2019-01-16 David Malcolm <dmalcolm@redhat.com>
34050 * combine.c (delete_noop_moves): Convert to "bool" return,
34051 returning true if any edges are eliminated.
34052 (combine_instructions): Also return true if delete_noop_moves
34055 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34057 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
34058 correct max nunits for endian swap.
34059 (aarch64_expand_fcmla_builtin): Correct subreg code.
34060 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34061 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
34064 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
34066 * config/alpha/alpha.c (alpha_gimplify_va_arg):
34067 Handle split indirect COMPLEX_TYPE arguments.
34069 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
34072 * config/aarch64/aarch64-modes.def: Add comment about how the carry
34073 bit is set by add and compare.
34074 (CC_ADC): New CC_MODE.
34075 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
34076 to cache the code and mode of X. Adjust the shape of a CC_Cmode
34077 comparison. Add detection for CC_ADCmode.
34078 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34080 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34081 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34082 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34083 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34084 to eliminate the need for zero-extending the operands.
34085 (add<mode>3_compareC_imm): Delete. Merge into ...
34086 (add<mode>3_compareC): ... this. Restructure the comparison to
34087 eliminate the need for zero-extending the operands.
34088 (add<mode>3_carryin): Use LTU for the overflow detection.
34089 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34090 Reexpress comparison for overflow.
34091 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34092 (add<mode>3_carryinC): Likewise.
34093 (add<mode>3_carryinV): Use LTU for carry between partials.
34094 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34095 handling of CC_Cmode and add CC_ADCmode.
34096 (aarch64_borrow_operation): Likewise.
34098 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34100 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34101 Remove patternmode.
34102 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34103 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34104 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34105 Remove endianness conversion.
34107 2019-01-16 Martin Liska <mliska@suse.cz>
34109 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34111 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34113 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34114 (path_prefix_reset): Move up in the source file.
34115 (find_fortran_preinclude_file): Make complex search for the
34116 fortran header files.
34118 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34120 * godump.c (go_output_typedef): When outputting a typedef, refer
34121 to the underlying type by its name and not its structure.
34123 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34126 * tree.c (build_function_type): Assert that arg_types is not
34129 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34131 PR inline-asm/52813
34132 * doc/extend.texi: Document that listing the stack pointer in the
34133 clobber list of an asm is a deprecated feature.
34134 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34135 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34136 warning instead of an error for clobbers of the stack pointer.
34137 Add a note explaining why.
34139 2019-01-15 Richard Biener <rguenther@suse.de>
34142 * dwarf2out.c (gen_member_die): Do not generate inheritance
34145 2019-01-15 Richard Biener <rguenther@suse.de>
34147 PR tree-optimization/88855
34148 * tree-if-conv.c (combine_blocks): Collect
34149 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34151 2019-01-15 Tom de Vries <tdevries@suse.de>
34154 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34155 lhs == NULL_TREE for gang-level reduction.
34157 2019-01-15 Richard Biener <rguenther@suse.de>
34158 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34161 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34162 return true if SSA_NAME is already marked in visited bitmap.
34163 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34165 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34167 PR tree-optimization/88775
34168 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34169 equal == 0 equality pointer comparisons some more if compared in
34170 integral types and either one points to an automatic var and the
34171 other to a global, or we can prove at least one points to the middle
34172 or both point to start or both point to end.
34174 2019-01-14 Andi Kleen <ak@linux.intel.com>
34176 * Makefile.in: Lower autofdo sampling rate by 10x.
34177 * Makefile.tpl: Dito.
34179 2019-01-14 Tom Honermann <tom@honermann.net>
34181 * defaults.h: Define CHAR8_TYPE.
34183 2019-01-14 Martin Sebor <msebor@redhat.com>
34186 * doc/extend.texi (Darwin Format Checks): Clarify.
34188 2019-01-14 Richard Biener <rguenther@suse.de>
34190 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34191 whether we are in (simplify ...) or (match ...) context.
34193 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34195 PR rtl-optimization/88796
34196 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34197 * cfgexpand.c (stack_protect_prologue): Initialize
34198 crtl->stack_protect_guard_decl.
34199 * function.c (stack_protect_epilogue): Use it instead of calling
34200 targetm.stack_protect_guard again.
34201 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34202 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34203 crtl->stack_protect_guard_decl.
34204 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34205 on the returned MEM_EXPR.
34207 2019-01-12 Tom de Vries <tdevries@suse.de>
34209 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34210 vector length using -fopenacc-dim.
34212 2019-01-12 Tom de Vries <tdevries@suse.de>
34214 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34215 lengths into account.
34217 2019-01-12 Svante Signell <svante.signell@gmail.com>
34219 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34220 (TARGET_CAN_SPLIT_STACK): Define.
34221 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34223 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34225 * params.def (inline-unit-growth): Set to 40.
34227 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34229 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34231 2019-01-12 Tom de Vries <tdevries@suse.de>
34233 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34234 region calling vector-partitionable routine, set default_vector_length
34237 2019-01-12 Tom de Vries <tdevries@suse.de>
34239 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34240 variable default_vector_length.
34242 2019-01-12 Tom de Vries <tdevries@suse.de>
34244 PR middle-end/88703
34245 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34246 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34249 2019-01-12 Tom de Vries <tdevries@suse.de>
34251 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34252 (nvptx_goacc_validate_dims): Add used parameter.
34253 * doc/tm.texi: Regenerate.
34254 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34255 argument to call to targetm.goacc.validate_dims.
34256 (default_goacc_validate_dims): Add used
34258 * target.def (validate_dims): Add used parameter in DEFHOOK.
34259 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34261 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34263 PR middle-end/85956
34265 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34267 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34268 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34269 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34270 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34272 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34274 PR rtl-optimization/87305
34276 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34277 for little endian pseudos used as paradoxical subreg.
34279 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34281 PR tree-optimization/88693
34282 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34283 for STRING_CSTs that don't contain any NUL characters in the first
34284 TREE_STRING_LENGTH bytes.
34286 2019-01-11 Alan Modra <amodra@gmail.com>
34290 * genattrtab.c (min_fn): Don't translate values.
34291 (min_attr_value): Return INT_MAX when the value can't be calculated.
34292 Return minimum among any values that can be calculated.
34293 (max_attr_value): Adjust.
34295 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34297 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34299 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34301 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34302 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34303 (aarch64_return_call_with_max_clobbers): New function.
34304 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34305 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34307 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34308 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34309 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34310 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34311 * cselib.c (cselib_process_insn): Add argument to
34312 targetm.hard_regno_call_part_clobbered call.
34313 * ira-conflicts.c (ira_build_conflicts): Ditto.
34314 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34315 * lra-constraints.c (inherit_reload_reg): Ditto.
34316 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34317 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34318 argument. Call targetm.return_call_with_max_clobbers.
34319 Add argument to targetm.hard_regno_call_part_clobbered call.
34320 (calls_have_same_clobbers_p): New function.
34321 (process_bb_lives): Add call_insn and last_call_insn variables.
34322 Pass call_insn to check_pseudos_live_through_calls.
34323 Modify if stmt to check targetm.return_call_with_max_clobbers.
34324 Update setting of flush variable.
34325 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34327 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34328 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34329 targetm.hard_regno_call_part_clobbered call.
34330 * reginfo.c (choose_hard_reg_mode): Ditto.
34331 * regrename.c (check_new_reg_p): Ditto.
34332 * reload.c (find_equiv_reg): Ditto.
34333 * reload1.c (emit_reload_insns): Ditto.
34334 * sched-deps.c (deps_analyze_insn): Ditto.
34335 * sel-sched.c (init_regs_for_mode): Ditto.
34336 (mark_unavailable_hard_regs): Ditto.
34337 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34338 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34339 (return_call_with_max_clobbers): New target function.
34340 * doc/tm.texi: Regenerate.
34341 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34342 * hooks.c (hook_bool_uint_mode_false): Change to
34343 hook_bool_insn_uint_mode_false.
34344 * hooks.h (hook_bool_uint_mode_false): Ditto.
34346 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34348 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34349 (aarch64_remove_extra_call_preserved_regs): New function.
34350 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34351 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34352 * doc/tm.texi: Regenerate.
34353 * final.c (get_call_reg_set_usage): Call new hook.
34354 * target.def (remove_extra_call_preserved_regs): New hook.
34355 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34356 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34358 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34361 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34362 inside of pass_combine_1 dump rather than pass_profile_1.
34364 2019-01-11 Tom de Vries <tdevries@suse.de>
34366 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34367 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34368 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34369 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34372 2019-01-11 Tom de Vries <tdevries@suse.de>
34374 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34376 2019-01-11 Jan Beulich <jbeulich@suse.com>
34378 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34379 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34380 sse2_cvtsi2sd): Add {l}.
34381 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34384 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34387 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34389 (*float<floatunssuffix>v2div2sf2): New define_insn.
34390 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34391 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34392 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34393 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34394 match_operands with "const0_operand" "C".
34396 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34398 * config/aarch64/aarch64-builtins.c
34399 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34400 (aarch64_init_simd_builtins): ...Here
34402 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34404 PR rtl-optimization/87305
34406 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34407 allocation for big endian pseudos used as paradoxical subregs and
34408 spill them if it is wrong.
34409 * lra-constraints.c (lra_constraints): Add a comment.
34411 2019-01-10 Richard Biener <rguenther@suse.de>
34413 PR tree-optimization/88792
34414 * tree-ssa-pre.c (get_representative_for): Do not return a
34417 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34419 PR middle-end/84877
34421 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34422 (assign_parm_setup_block): Do the argument slot realignment here
34425 2019-01-10 Stefan Agner <stefan@agner.ch>
34428 * config/arm/arm.c (arm_option_override_internal): Force
34429 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34431 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34434 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34437 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34439 * config/arm/arm-builtins.c
34440 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34441 (MAC_LANE_PAIR_QUALIFIERS): New.
34442 (arm_expand_builtin_args): Use it.
34443 (arm_expand_builtin_1): Likewise.
34444 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34445 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34446 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34447 * config/arm/arm_neon.h:
34448 (vcadd_rot90_f16): New.
34449 (vcaddq_rot90_f16): New.
34450 (vcadd_rot270_f16): New.
34451 (vcaddq_rot270_f16): New.
34454 (vcmla_lane_f16): New.
34455 (vcmla_laneq_f16): New.
34456 (vcmlaq_lane_f16): New.
34457 (vcmlaq_laneq_f16): New.
34458 (vcmla_rot90_f16): New.
34459 (vcmlaq_rot90_f16): New.
34460 (vcmla_rot90_lane_f16): New.
34461 (vcmla_rot90_laneq_f16): New.
34462 (vcmlaq_rot90_lane_f16): New.
34463 (vcmlaq_rot90_laneq_f16): New.
34464 (vcmla_rot180_f16): New.
34465 (vcmlaq_rot180_f16): New.
34466 (vcmla_rot180_lane_f16): New.
34467 (vcmla_rot180_laneq_f16): New.
34468 (vcmlaq_rot180_lane_f16): New.
34469 (vcmlaq_rot180_laneq_f16): New.
34470 (vcmla_rot270_f16): New.
34471 (vcmlaq_rot270_f16): New.
34472 (vcmla_rot270_lane_f16): New.
34473 (vcmla_rot270_laneq_f16): New.
34474 (vcmlaq_rot270_lane_f16): New.
34475 (vcmlaq_rot270_laneq_f16): New.
34476 (vcadd_rot90_f32): New.
34477 (vcaddq_rot90_f32): New.
34478 (vcadd_rot270_f32): New.
34479 (vcaddq_rot270_f32): New.
34482 (vcmla_lane_f32): New.
34483 (vcmla_laneq_f32): New.
34484 (vcmlaq_lane_f32): New.
34485 (vcmlaq_laneq_f32): New.
34486 (vcmla_rot90_f32): New.
34487 (vcmlaq_rot90_f32): New.
34488 (vcmla_rot90_lane_f32): New.
34489 (vcmla_rot90_laneq_f32): New.
34490 (vcmlaq_rot90_lane_f32): New.
34491 (vcmlaq_rot90_laneq_f32): New.
34492 (vcmla_rot180_f32): New.
34493 (vcmlaq_rot180_f32): New.
34494 (vcmla_rot180_lane_f32): New.
34495 (vcmla_rot180_laneq_f32): New.
34496 (vcmlaq_rot180_lane_f32): New.
34497 (vcmlaq_rot180_laneq_f32): New.
34498 (vcmla_rot270_f32): New.
34499 (vcmlaq_rot270_f32): New.
34500 (vcmla_rot270_lane_f32): New.
34501 (vcmla_rot270_laneq_f32): New.
34502 (vcmlaq_rot270_lane_f32): New.
34503 (vcmlaq_rot270_laneq_f32): New.
34504 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34505 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34506 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34507 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34508 vcmlaq_lane270): New.
34509 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34510 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34511 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34512 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34513 (arm_option_reconfigure_globals): Use them.
34514 * config/arm/iterators.md (VDF, VQ_HSF): New.
34515 (VCADD, VCMLA): New.
34516 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34517 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34519 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34520 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34522 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34524 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34525 Add qualifier_lane_pair_index.
34526 (emit-rtl.h): Include.
34527 (TYPES_QUADOP_LANE_PAIR): New.
34528 (aarch64_simd_expand_args): Use it.
34529 (aarch64_simd_expand_builtin): Likewise.
34530 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34532 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34533 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34534 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34535 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34536 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34537 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34538 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34539 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34540 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34541 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34542 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34543 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34544 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34545 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34546 Add __ARM_FEATURE_COMPLEX.
34547 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34548 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34549 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34550 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34551 fcmlaq_lane270): New.
34552 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34553 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34554 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34555 * config/aarch64/arm_neon.h:
34556 (vcadd_rot90_f16): New.
34557 (vcaddq_rot90_f16): New.
34558 (vcadd_rot270_f16): New.
34559 (vcaddq_rot270_f16): New.
34562 (vcmla_lane_f16): New.
34563 (vcmla_laneq_f16): New.
34564 (vcmlaq_lane_f16): New.
34565 (vcmlaq_rot90_lane_f16): New.
34566 (vcmla_rot90_laneq_f16): New.
34567 (vcmla_rot90_lane_f16): New.
34568 (vcmlaq_rot90_f16): New.
34569 (vcmla_rot90_f16): New.
34570 (vcmlaq_laneq_f16): New.
34571 (vcmla_rot180_laneq_f16): New.
34572 (vcmla_rot180_lane_f16): New.
34573 (vcmlaq_rot180_f16): New.
34574 (vcmla_rot180_f16): New.
34575 (vcmlaq_rot90_laneq_f16): New.
34576 (vcmlaq_rot270_laneq_f16): New.
34577 (vcmlaq_rot270_lane_f16): New.
34578 (vcmla_rot270_laneq_f16): New.
34579 (vcmlaq_rot270_f16): New.
34580 (vcmla_rot270_f16): New.
34581 (vcmlaq_rot180_laneq_f16): New.
34582 (vcmlaq_rot180_lane_f16): New.
34583 (vcmla_rot270_lane_f16): New.
34584 (vcadd_rot90_f32): New.
34585 (vcaddq_rot90_f32): New.
34586 (vcaddq_rot90_f64): New.
34587 (vcadd_rot270_f32): New.
34588 (vcaddq_rot270_f32): New.
34589 (vcaddq_rot270_f64): New.
34593 (vcmla_lane_f32): New.
34594 (vcmla_laneq_f32): New.
34595 (vcmlaq_lane_f32): New.
34596 (vcmlaq_laneq_f32): New.
34597 (vcmla_rot90_f32): New.
34598 (vcmlaq_rot90_f32): New.
34599 (vcmlaq_rot90_f64): New.
34600 (vcmla_rot90_lane_f32): New.
34601 (vcmla_rot90_laneq_f32): New.
34602 (vcmlaq_rot90_lane_f32): New.
34603 (vcmlaq_rot90_laneq_f32): New.
34604 (vcmla_rot180_f32): New.
34605 (vcmlaq_rot180_f32): New.
34606 (vcmlaq_rot180_f64): New.
34607 (vcmla_rot180_lane_f32): New.
34608 (vcmla_rot180_laneq_f32): New.
34609 (vcmlaq_rot180_lane_f32): New.
34610 (vcmlaq_rot180_laneq_f32): New.
34611 (vcmla_rot270_f32): New.
34612 (vcmlaq_rot270_f32): New.
34613 (vcmlaq_rot270_f64): New.
34614 (vcmla_rot270_lane_f32): New.
34615 (vcmla_rot270_laneq_f32): New.
34616 (vcmlaq_rot270_lane_f32): New.
34617 (vcmlaq_rot270_laneq_f32): New.
34618 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34619 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34620 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34621 (FCADD, FCMLA): New.
34623 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34625 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34629 * config/pa/pa.c: Change "can not" to "cannot".
34630 * gimple-ssa-evrp-analyze.c: Likewise.
34631 * ipa-icf.c: Likewise.
34632 * ipa-polymorphic-call.c: Likewise.
34633 * ipa-pure-const.c: Likewise.
34634 * lra-constraints.c: Likewise.
34635 * lra-remat.c: Likewise.
34636 * reload1.c: Likewise.
34637 * reorg.c: Likewise.
34638 * tree-ssa-uninit.c: Likewise.
34640 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34644 * Makefile.in: Mechanically replace "can not" with "cannot".
34645 * alias.c: Likewise.
34646 * builtins.c: Likewise.
34647 * calls.c: Likewise.
34648 * cgraph.c: Likewise.
34649 * cgraph.h: Likewise.
34650 * cgraphclones.c: Likewise.
34651 * cgraphunit.c: Likewise.
34652 * combine-stack-adj.c: Likewise.
34653 * combine.c: Likewise.
34654 * common/config/i386/i386-common.c: Likewise.
34655 * config/aarch64/aarch64.c: Likewise.
34656 * config/alpha/sync.md: Likewise.
34657 * config/arc/arc.c: Likewise.
34658 * config/arc/predicates.md: Likewise.
34659 * config/arm/arm-c.c: Likewise.
34660 * config/arm/arm.c: Likewise.
34661 * config/arm/arm.h: Likewise.
34662 * config/arm/arm.md: Likewise.
34663 * config/arm/cortex-r4f.md: Likewise.
34664 * config/csky/csky.c: Likewise.
34665 * config/csky/csky.h: Likewise.
34666 * config/darwin-f.c: Likewise.
34667 * config/epiphany/epiphany.md: Likewise.
34668 * config/i386/i386.c: Likewise.
34669 * config/i386/sol2.h: Likewise.
34670 * config/m68k/m68k.c: Likewise.
34671 * config/mcore/mcore.h: Likewise.
34672 * config/microblaze/microblaze.md: Likewise.
34673 * config/mips/20kc.md: Likewise.
34674 * config/mips/sb1.md: Likewise.
34675 * config/nds32/nds32.c: Likewise.
34676 * config/nds32/predicates.md: Likewise.
34677 * config/pa/pa.c: Likewise.
34678 * config/rs6000/e300c2c3.md: Likewise.
34679 * config/rs6000/rs6000.c: Likewise.
34680 * config/s390/s390.h: Likewise.
34681 * config/sh/sh.c: Likewise.
34682 * config/sh/sh.md: Likewise.
34683 * config/spu/vmx2spu.h: Likewise.
34684 * cprop.c: Likewise.
34685 * dbxout.c: Likewise.
34686 * df-scan.c: Likewise.
34687 * doc/cfg.texi: Likewise.
34688 * doc/extend.texi: Likewise.
34689 * doc/fragments.texi: Likewise.
34690 * doc/gty.texi: Likewise.
34691 * doc/invoke.texi: Likewise.
34692 * doc/lto.texi: Likewise.
34693 * doc/md.texi: Likewise.
34694 * doc/objc.texi: Likewise.
34695 * doc/rtl.texi: Likewise.
34696 * doc/tm.texi: Likewise.
34698 * emit-rtl.c: Likewise.
34699 * emit-rtl.h: Likewise.
34700 * except.c: Likewise.
34701 * expmed.c: Likewise.
34702 * expr.c: Likewise.
34703 * fold-const.c: Likewise.
34704 * genautomata.c: Likewise.
34705 * gimple-fold.c: Likewise.
34706 * hard-reg-set.h: Likewise.
34707 * ifcvt.c: Likewise.
34708 * ipa-comdats.c: Likewise.
34709 * ipa-cp.c: Likewise.
34710 * ipa-devirt.c: Likewise.
34711 * ipa-fnsummary.c: Likewise.
34712 * ipa-icf.c: Likewise.
34713 * ipa-inline-transform.c: Likewise.
34714 * ipa-inline.c: Likewise.
34715 * ipa-polymorphic-call.c: Likewise.
34716 * ipa-profile.c: Likewise.
34717 * ipa-prop.c: Likewise.
34718 * ipa-pure-const.c: Likewise.
34719 * ipa-reference.c: Likewise.
34720 * ipa-split.c: Likewise.
34721 * ipa-visibility.c: Likewise.
34723 * ira-build.c: Likewise.
34724 * ira-color.c: Likewise.
34725 * ira-conflicts.c: Likewise.
34726 * ira-costs.c: Likewise.
34727 * ira-int.h: Likewise.
34728 * ira-lives.c: Likewise.
34731 * loop-invariant.c: Likewise.
34732 * loop-unroll.c: Likewise.
34733 * lower-subreg.c: Likewise.
34734 * lra-assigns.c: Likewise.
34735 * lra-constraints.c: Likewise.
34736 * lra-eliminations.c: Likewise.
34737 * lra-lives.c: Likewise.
34738 * lra-remat.c: Likewise.
34739 * lra-spills.c: Likewise.
34741 * lto-cgraph.c: Likewise.
34742 * lto-streamer-out.c: Likewise.
34743 * postreload-gcse.c: Likewise.
34744 * predict.c: Likewise.
34745 * profile-count.h: Likewise.
34746 * profile.c: Likewise.
34747 * recog.c: Likewise.
34749 * reload.c: Likewise.
34750 * reload1.c: Likewise.
34751 * reorg.c: Likewise.
34752 * resource.c: Likewise.
34753 * rtl.def: Likewise.
34755 * rtlanal.c: Likewise.
34756 * sched-deps.c: Likewise.
34757 * sched-ebb.c: Likewise.
34758 * sched-rgn.c: Likewise.
34759 * sel-sched-ir.c: Likewise.
34760 * sel-sched.c: Likewise.
34761 * shrink-wrap.c: Likewise.
34762 * simplify-rtx.c: Likewise.
34763 * symtab.c: Likewise.
34764 * target.def: Likewise.
34765 * toplev.c: Likewise.
34766 * tree-call-cdce.c: Likewise.
34767 * tree-cfg.c: Likewise.
34768 * tree-complex.c: Likewise.
34769 * tree-core.h: Likewise.
34770 * tree-eh.c: Likewise.
34771 * tree-inline.c: Likewise.
34772 * tree-loop-distribution.c: Likewise.
34773 * tree-nrv.c: Likewise.
34774 * tree-profile.c: Likewise.
34775 * tree-sra.c: Likewise.
34776 * tree-ssa-alias.c: Likewise.
34777 * tree-ssa-dce.c: Likewise.
34778 * tree-ssa-dom.c: Likewise.
34779 * tree-ssa-forwprop.c: Likewise.
34780 * tree-ssa-loop-im.c: Likewise.
34781 * tree-ssa-loop-ivcanon.c: Likewise.
34782 * tree-ssa-loop-ivopts.c: Likewise.
34783 * tree-ssa-loop-niter.c: Likewise.
34784 * tree-ssa-phionlycprop.c: Likewise.
34785 * tree-ssa-phiopt.c: Likewise.
34786 * tree-ssa-propagate.c: Likewise.
34787 * tree-ssa-threadedge.c: Likewise.
34788 * tree-ssa-threadupdate.c: Likewise.
34789 * tree-ssa-uninit.c: Likewise.
34790 * tree-ssanames.c: Likewise.
34791 * tree-streamer-out.c: Likewise.
34792 * tree.c: Likewise.
34793 * tree.h: Likewise.
34794 * vr-values.c: Likewise.
34796 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34798 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34799 (ix86_split_xorsign): Ditto.
34800 * config/i386/i386.c (ix86_expand_xorsign): New function.
34801 (ix86_split_xorsign): Ditto.
34802 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34803 (xorsign<mode>3): New expander.
34804 (xorsign<mode>3_1): New insn_and_split pattern.
34805 * config/i386/sse.md (xorsign<mode>3): New expander.
34807 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34809 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34810 (*tablejump_sp64): Likewise.
34811 (*tablejump<P:mode>): ...this.
34812 (*call_address_sp32): Merge into...
34813 (*call_address_sp64): Likewise.
34814 (*call_address<P:mode>): ...this.
34815 (*call_symbolic_sp32): Merge into...
34816 (*call_symbolic_sp64): Likewise.
34817 (*call_symbolic<P:mode>): ...this.
34818 (call_value): Remove constraint and add predicate.
34819 (*call_value_address_sp32): Merge into...
34820 (*call_value_address_sp64): Likewise.
34821 (*call_value_address<P:mode>): ...this.
34822 (*call_value_symbolic_sp32): Merge into...
34823 (*call_value_symbolic_sp64): Likewise.
34824 (*call_value_symbolic<P:mode>): ...this.
34825 (*sibcall_symbolic_sp32): Merge into...
34826 (*sibcall_symbolic_sp64): Likewise.
34827 (*sibcall_symbolic<P:mode>): ...this.
34828 (sibcall_value): Remove constraint and add predicate.
34829 (*sibcall_value_symbolic_sp32): Merge into...
34830 (*sibcall_value_symbolic_sp64): Likewise.
34831 (*sibcall_value_symbolic<P:mode>): ...this.
34832 (window_save): Minor tweak.
34833 (*branch_sp32): Merge into...
34834 (*branch_sp64): Likewise.
34835 (*branch<P:mode>): ...this.
34837 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34838 James Clarke <jrtc27@jrtc27.com>
34841 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34842 consistently in TLS address generation and adjust code to the renaming
34843 of patterns. Mark calls to __tls_get_addr as const.
34844 * config/sparc/sparc.md (tgd_hi22): Turn into...
34845 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34846 (tgd_lo10): Turn into...
34847 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34848 (tgd_add32): Merge into...
34849 (tgd_add64): Likewise.
34850 (tgd_add<P:mode>): ...this and use Pmode throughout.
34851 (tldm_hi22): Turn into...
34852 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34853 (tldm_lo10): Turn into...
34854 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34855 (tldm_add32): Merge into...
34856 (tldm_add64): Likewise.
34857 (tldm_add<P:mode>): ...this and use Pmode throughout.
34858 (tldm_call32): Merge into...
34859 (tldm_call64): Likewise.
34860 (tldm_call<P:mode>): ...this and use Pmode throughout.
34861 (tldo_hix22): Turn into...
34862 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34863 (tldo_lox10): Turn into...
34864 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34865 (tldo_add32): Merge into...
34866 (tldo_add64): Likewise.
34867 (tldo_add<P:mode>): ...this and use Pmode throughout.
34868 (tie_hi22): Turn into...
34869 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34870 (tie_lo10): Turn into...
34871 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34872 (tie_ld64): Use DImode throughout.
34873 (tie_add32): Merge into...
34874 (tie_add64): Likewise.
34875 (tie_add<P:mode>): ...this and use Pmode throughout.
34876 (tle_hix22_sp32): Merge into...
34877 (tle_hix22_sp64): Likewise.
34878 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34879 (tle_lox22_sp32): Merge into...
34880 (tle_lox22_sp64): Likewise.
34881 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34882 (*tldo_ldub_sp32): Merge into...
34883 (*tldo_ldub_sp64): Likewise.
34884 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34885 (*tldo_ldub1_sp32): Merge into...
34886 (*tldo_ldub1_sp64): Likewise.
34887 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34888 (*tldo_ldub2_sp32): Merge into...
34889 (*tldo_ldub2_sp64): Likewise.
34890 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34891 (*tldo_ldsb1_sp32): Merge into...
34892 (*tldo_ldsb1_sp64): Likewise.
34893 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34894 (*tldo_ldsb2_sp32): Merge into...
34895 (*tldo_ldsb2_sp64): Likewise.
34896 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34897 (*tldo_ldub3_sp64): Use DImode throughout.
34898 (*tldo_ldsb3_sp64): Likewise.
34899 (*tldo_lduh_sp32): Merge into...
34900 (*tldo_lduh_sp64): Likewise.
34901 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34902 (*tldo_lduh1_sp32): Merge into...
34903 (*tldo_lduh1_sp64): Likewise.
34904 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34905 (*tldo_ldsh1_sp32): Merge into...
34906 (*tldo_ldsh1_sp64): Likewise.
34907 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34908 (*tldo_lduh2_sp64): Use DImode throughout.
34909 (*tldo_ldsh2_sp64): Likewise.
34910 (*tldo_lduw_sp32): Merge into...
34911 (*tldo_lduw_sp64): Likewise.
34912 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34913 (*tldo_lduw1_sp64): Use DImode throughout.
34914 (*tldo_ldsw1_sp64): Likewise.
34915 (*tldo_ldx_sp64): Likewise.
34916 (*tldo_stb_sp32): Merge into...
34917 (*tldo_stb_sp64): Likewise.
34918 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34919 (*tldo_sth_sp32): Merge into...
34920 (*tldo_sth_sp64): Likewise.
34921 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34922 (*tldo_stw_sp32): Merge into...
34923 (*tldo_stw_sp64): Likewise.
34924 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34925 (*tldo_stx_sp64): Use DImode throughout.
34927 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34929 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34930 check configure option to set BTI and Return Address Signing.
34931 * configure.ac: Add --enable-standard-branch-protection and
34932 --disable-standard-branch-protection.
34933 * configure: Regenerated.
34934 * doc/install.texi: Document the same.
34936 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34937 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34939 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34940 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34941 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34943 * config/aarch64/aarch64-bti-insert.c: New file.
34944 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34946 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34948 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34949 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34950 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34951 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34953 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34955 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34956 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34957 Disable bti for -mbranch-protection=none.
34958 (aarch64_handle_standard_branch_protection): Enable bti for
34959 -mbranch-protection=standard.
34960 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34961 -mbranch-protection.
34962 (aarch64_bti_enabled): Check if bti is enabled.
34963 * config/aarch64/aarch64.opt: Declare target variable.
34964 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34966 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34968 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34969 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34970 (aarch64_expand_epilogue): Likewise.
34971 (aarch64_output_mi_thunk): Likewise.
34972 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34973 TAILCALL_ADDR_REGS to x16 and x17.
34974 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34976 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34978 * config/aarch64/aarch64-option-extensions.def: Define
34979 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34980 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34981 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34982 (AARCH64_FL_PREDRES): New.
34983 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34984 AARCH64_FL_PREDRES by default.
34985 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34987 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34989 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34991 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34992 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34993 * doc/invoke.texi: Document ARMv8.5-A.
34995 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34997 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34998 (xorsign<mode>3): Likewise.
35000 2019-01-09 Jelinek <jakub@redhat.com>
35002 PR middle-end/88758
35003 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
35004 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
35006 PR rtl-optimization/88331
35007 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
35008 not currently_expanding_to_rtl.
35010 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
35012 * doc/invoke.texi (-Os): Remove trailing spaces.
35013 (-finline-functions): Remove reference to -O2.
35015 2019-01-08 Jakub Jelinek <jakub@redhat.com>
35017 PR rtl-optimization/79593
35018 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
35020 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
35021 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
35023 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
35026 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
35030 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
35031 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
35033 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
35036 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
35037 ix86_avx_u128_mode_entry.
35039 2019-01-08 Martin Liska <mliska@suse.cz>
35041 PR tree-optimization/88753
35042 * tree-switch-conversion.c (switch_conversion::build_one_array):
35043 Come up with local variable constructor. Convert first to
35044 type of constructor values.
35046 2019-01-08 Richard Biener <rguenther@suse.de>
35048 PR tree-optimization/86554
35049 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
35050 rpo_avail): Move earlier.
35051 (visit_nary_op): When value-numbering to expressions
35052 with different overflow behavior make sure there's an
35053 available expression on the path.
35055 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
35057 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
35058 aarch64_parse_branch_protection,
35059 struct aarch64_branch_protect_type,
35060 aarch64_handle_no_branch_protection,
35061 aarch64_handle_standard_branch_protection,
35062 aarch64_validate_mbranch_protection,
35063 aarch64_handle_pac_ret_protection,
35064 aarch64_handle_attr_branch_protection,
35065 accepted_branch_protection_string,
35066 aarch64_pac_ret_subtypes,
35067 aarch64_branch_protect_types,
35068 aarch64_handle_pac_ret_leaf): Define.
35069 (aarch64_override_options_after_change_1, aarch64_override_options):
35070 Add check for accepted_branch_protection_string.
35071 (aarch64_option_save): Save accepted_branch_protection_string.
35072 (aarch64_option_restore): Save accepted_branch_protection_string.
35073 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
35074 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
35075 msign-return-address.
35076 * doc/invoke.texi: Add mbranch-protection.
35078 2019-01-08 Alan Modra <amodra@gmail.com>
35081 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35082 Delete "unknownp" parameter. Adjust callers. Handle
35083 CONST_INT, PLUS, MINUS, and MULT.
35084 (attr_value_aligned): Renamed from or_attr_value.
35085 (min_attr_value): Return INT_MIN for unhandled rtl case..
35086 (min_fn): ..and translate to INT_MAX here.
35087 (write_length_unit_log): Modify to cope without "unknown".
35088 (write_attr_value): Handle IF_THEN_ELSE.
35090 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35092 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35093 optimization for masked stores.
35095 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35097 PR middle-end/88567
35098 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35099 output vector directly to duplicate_and_interleave instead of
35100 going through a temporary. Postpone insertion of ctor_seq to
35101 the end of the loop.
35103 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35106 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35107 unsigned_p. Handle signed and unsigned overflow correction as
35109 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35111 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35113 (add<mode>3_compareV_imm): Make this callable for expanding.
35114 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35115 aarch64_plus_operand for operand 2.
35116 (subv<GPI:mode>_insn): New insn pattern.
35117 (subv<GPI:mode>_imm): Likewise.
35118 (negv<GPI:mode>3): New expand pattern.
35119 (negv<GPI:mode>_insn): New insn pattern.
35120 (negv<GPI:mode>_cmp_only): Likewise.
35121 (cmpv<GPI:mode>_insn): Likewise.
35122 (subvti4): Use register_operand for operand 1. Update call to
35123 aarch64_expand_subvti.
35124 (usubvti4): Likewise.
35125 (negvti3): New expand pattern.
35126 (negdi_carryout): New insn pattern.
35127 (negvdi_carryinV): New insn pattern.
35128 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35129 version the named version.
35130 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35132 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35134 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35136 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35137 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35138 (sub<mode>3_carryinCV): Delete.
35139 (sub<GPI:mode>3_carryinV): New expand pattern.
35140 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35142 2019-01-07 Richard Biener <rguenther@suse.de>
35144 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35145 of tree_operand_hash.
35147 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35149 PR tree-optimization/88598
35150 * tree.h (single_nonzero_element): Declare.
35151 * tree.c (single_nonzero_element): New function.
35152 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35153 if I is the only nonzero element of CST.
35155 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35157 PR tree-optimization/88598
35158 * tree.h (initializer_each_zero_or_onep): Declare.
35159 * tree.c (initializer_each_zero_or_onep): New function.
35160 (signed_or_unsigned_type_for): Handle float types too.
35161 (unsigned_type_for, signed_type_for): Update comments accordingly.
35162 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35163 x & { 0 or -1, 0 or -1, ... }.
35165 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35167 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35168 with x86_64-pc-linux-gnu.
35170 2019-01-07 Tom de Vries <tdevries@suse.de>
35173 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35175 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35178 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35180 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35181 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35182 TARGET_AVX512F as condition.
35185 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35186 const_not_ok_for_debug_p target hook.
35187 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35188 on UNSPEC and subexpressions thereof if all subexpressions of the
35189 UNSPEC are CONSTANT_P.
35191 PR tree-optimization/88676
35192 * tree-ssa-phiopt.c (two_value_replacement): New function.
35193 (tree_ssa_phiopt_worker): Call it.
35196 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35197 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35200 * tree-vect-generic.c: Include insn-config.h and recog.h.
35201 (expand_vector_piecewise): Add defaulted ret_type argument,
35202 if non-NULL, use that in preference to type for the result type.
35203 (expand_vector_parallel): Formatting fix.
35204 (do_vec_conversion, do_vec_narrowing_conversion,
35205 expand_vector_conversion): New functions.
35206 (expand_vector_operations_1): Call expand_vector_conversion
35207 for VEC_CONVERT ifn calls.
35208 * internal-fn.def (VEC_CONVERT): New internal function.
35209 * internal-fn.c (expand_VEC_CONVERT): New function.
35210 * fold-const-call.c (fold_const_vec_convert): New function.
35211 (fold_const_call): Use it for CFN_VEC_CONVERT.
35212 * doc/extend.texi (__builtin_convertvector): Document.
35214 2019-01-07 Tom de Vries <tdevries@suse.de>
35216 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35217 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35218 vector_red_partition, vector_red_sym): New global variables.
35219 (nvptx_option_override): Initialize vector_red_sym.
35220 (nvptx_declare_function_name): Restore red_partition register.
35221 (nvptx_file_end): Emit code to declare the vector reduction variables.
35222 (nvptx_output_red_partition): New function.
35223 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35224 large vector reductions.
35225 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35226 (nvptx_init_builtins): Add VECTOR_ADDR.
35227 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35228 Handle nvptx_expand_shared_addr.
35229 (nvptx_get_shared_red_addr): Add vector argument and handle large
35231 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35233 (nvptx_goacc_reduction_init): Likewise.
35234 (nvptx_goacc_reduction_fini): Likewise.
35235 (nvptx_goacc_reduction_teardown): Likewise.
35236 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35237 init,fini,teardown}.
35238 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35239 (nvptx_set_current_function): Init vector_red_partition.
35240 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35241 (nvptx_red_partition): New insn.
35242 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35244 2019-01-07 Tom de Vries <tdevries@suse.de>
35247 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35250 2019-01-07 Tom de Vries <tdevries@suse.de>
35252 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35253 (nvptx_option_override): Init oacc_bcast_partition.
35254 (nvptx_init_oacc_workers): New function.
35255 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35256 (nvptx_needs_shared_bcast): New function.
35257 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35258 to propagate state.
35259 (nvptx_shared_propagate): Initialize vector bcast partition and
35260 synchronization state.
35261 (nvptx_single): Generalize to enable vectors to use shared-memory
35262 to propagate state.
35263 (nvptx_process_pars): Likewise.
35264 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35265 * config/nvptx/nvptx.h (struct machine_function): Add
35266 bcast_partition and sync_bar members.
35268 2019-01-07 Tom de Vries <tdevries@suse.de>
35270 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35271 (nvptx_apply_dim_limits): New function.
35272 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35275 2019-01-07 Tom de Vries <tdevries@suse.de>
35277 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35278 as late as possible.
35280 2019-01-07 Tom de Vries <tdevries@suse.de>
35282 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35283 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35284 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35285 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35286 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35288 2019-01-07 Tom de Vries <tdevries@suse.de>
35290 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35292 2019-01-07 Tom de Vries <tdevries@suse.de>
35294 * omp-offload.c (oacc_get_min_dim): New function.
35295 * omp-offload.h (oacc_get_min_dim): Declare.
35297 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35300 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35301 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35303 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35307 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35309 * ipa-inline.c (edge_badness): Use inlined_time instead of
35310 inline_summaries->get.
35312 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35314 * opts.c (enable_fdo_optimizations): Enable
35315 version-loops-for-strides, loop-interchange, unrol-and-jam
35316 and tree-loop-distribution.
35317 * invoke.texi: Document newly enabled options.
35319 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35321 * doc/invoke.texi (max-inline-insns-small): New parameters.
35322 * ipa-inline.c (want_early_inline_function_p): simplify.
35323 (want_inline_small_function_p): Fix pasto from previous patch;
35324 use max-inline-insns-small bound.
35325 * params.def (max-inline-insns-small): New param.
35326 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35327 variables correctly.
35329 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35331 * doc/invoke.texi: Document max-inline-insns-size,
35332 uninlined-function-insns, uninlined-function-time,
35333 uninlined-thunk-insns and uninlined-thunk-time.
35334 * params.def: Add max-inline-insns-size,
35335 uninlined-function-insns, uninlined-function-time,
35336 uninlined-thunk-insns and uninlined-thunk-time.
35337 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35339 * ipa-inline.c (can_inline_edge_by_limits_p,
35340 want_inline_small_function_p): Use new parameters.
35342 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35344 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35346 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35348 PR middle-end/82564
35350 * expr.c (expand_assignment): For calls returning VLA structures
35351 if to_rtx is not a MEM, force it into a stack temporary.
35354 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35355 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35356 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35357 subexpressions of both operands.
35358 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35359 subrtxes are CONSTANT_P.
35360 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35361 2018-11-09 changes.
35363 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35365 * params.def (hot-bb-count-ws-permille): Set to 990.
35367 2019-01-04 Martin Sebor <msebor@redhat.com>
35370 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35373 2019-01-04 Martin Sebor <msebor@redhat.com>
35376 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35378 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35380 * gdbinit.in: Turn off pagination for the skip commands, restore
35381 it to previous state afterwards.
35383 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35386 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35387 of GET_MODE (opN) as modes of the libcall arguments.
35389 2019-01-04 Jan Beulich <jbeulich@suse.com>
35391 * config/i386/sse.md
35392 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35393 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35394 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35395 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35396 avx512f_vmcmp<mode>3<round_saeonly_name>,
35397 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35398 avx512f_maskcmp<mode>3,
35399 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35400 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35401 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35402 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35403 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35404 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35405 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35406 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35407 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35408 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35409 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35410 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35411 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35412 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35413 avx512cd_maskb_vec_dup<mode>,
35414 avx512cd_maskw_vec_dup<mode>,
35415 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35416 avx512dq_vmfpclass<mode>,
35417 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35420 2019-01-03 Martin Sebor <msebor@redhat.com>
35422 PR tree-optimization/88659
35423 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35425 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35427 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35428 unaligned vsx and avoid lxvd2x/stxvd2x.
35429 (gen_lvx_v4si_move): New function.
35431 2019-01-03 Tom de Vries <tdevries@suse.de>
35433 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35434 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35436 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35438 2019-01-03 Tom de Vries <tdevries@suse.de>
35440 * config/nvptx/nvptx.c (struct offload_attrs): New.
35441 (populate_offload_attrs): New function. Factor mask extraction out of
35442 nvptx_reorg. Add extraction of dimensions.
35443 (nvptx_reorg): Use populate_offload_attrs.
35445 2019-01-03 Tom de Vries <tdevries@suse.de>
35447 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35448 cases for oacc_min_dims_p and routine_p. Add asserts for
35449 oacc_default_dims_p and offload_region_p.
35451 2019-01-03 Tom de Vries <tdevries@suse.de>
35453 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35454 factored out of ...
35455 (nvptx_goacc_validate_dims): ... here.
35457 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35459 PR tree-optimization/85574
35460 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35462 (struct ssa_equip_hash_traits): Declare.
35463 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35465 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35468 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35469 change it to qualified_type.
35471 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35473 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35474 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35476 2019-01-02 Martin Sebor <msebor@redhat.com>
35477 Jeff Law <law@redhat.com>
35479 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35480 (get_range_strlen_tree): Update appropriately.
35482 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35484 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35485 rather than set_range_info.
35486 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35487 maybe_set_strlen_range. Handle potentially boundary crossing
35488 cases more conservatively.
35489 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35490 Call set_strlen_range.
35491 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35493 PR middle-end/88663
35494 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35495 need the flexp argument.
35496 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35497 from calls to get_range_strlen. Update comments. Just update
35498 VAL for an unterminated const char array and let the reset of the
35499 code handle it normally. No longer try to set *flexp. Adjust
35501 (get_range_strlen): Update for the new get_range_strlen API.
35502 (get_maxval_strlen): Similarly.
35503 (gimple_fold_builtin_strlen): Handle update meaning of return value
35504 from get_range_strlen.
35505 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35506 get_range_strlen API.
35508 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35511 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35512 false at WPA time when body was removed.
35514 2019-01-02 Martin Liska <mliska@suse.cz>
35516 PR tree-optimization/88650
35517 * predict.c (set_even_probabilities): Calculate probability
35518 remainer only when really used.
35520 2019-01-02 Richard Biener <rguenther@suse.de>
35522 PR middle-end/88651
35523 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35524 widest_ints when mangling max_stmt_execution results.
35526 2019-01-02 Richard Biener <rguenther@suse.de>
35528 PR tree-optimization/88621
35529 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35530 bitfields when canoncalizing.
35532 2019-01-02 Richard Biener <rguenther@suse.de>
35535 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35536 cost of cheap SSE instruction.
35538 2019-01-02 Richard Biener <rguenther@suse.de>
35541 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35542 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35544 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35545 set after UIDs before splitting them.
35547 2019-01-01 Martin Sebor <msebor@redhat.com>
35548 Jeff Law <law@redhat.com>
35550 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35551 length is optimistic. If it is, then arrange to compute the
35552 conservative length as well.
35554 * gimple-fold.h (get_range_strlen): Update prototype.
35555 * builtins.c (check_access): Update call to get_range_strlen to use
35556 c_strlen_data pointer. Change various variable accesses to instead
35557 pull data from the c_strlen_data structure.
35558 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35559 * calls.c (maybe_warn_nonstring_arg): Likewise.
35560 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35561 minimum length if maximum lengh is unknown.
35562 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35563 that used c_strlen, it's no longer needed. Restructure slightly.
35564 (format_string): Set unlikely range appropriately.
35565 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35567 (get_range_strlen): Accept c_strlen_data pointer for external
35568 call sites as well. Pass through to call to internal get_range_strlen.
35569 Adjust minlen, maxlen and maxbound as needed.
35570 (get_maxval_strlen): Update comments.
35571 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35572 to use c_strlen_data pointer. Change variable accesses to instead
35573 use c_strlen_data data members.
35575 * gimple-fold.c (get_range_strlen): Update prototype.
35576 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35577 local variables. Use pdata to return information to caller.
35578 Update calls to get_range_strlen. Update pdata->maxbound.
35579 (get_range_strlen -- static version): Similarly.
35580 (get_range_strlen -- extern version): Update for internal
35581 get_range_strlen API change. Convert to external data format.
35582 (get_maxval_strlen): Similarly.
35584 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35586 * coverage.c (get_coverage_counts): Use current_function_decl.
35587 * profile.c (read_thunk_profile): New function.
35588 (branch_prob): Add THUNK parameter.
35589 * tree-profile.c (tree_profiling): Handle thunks.
35590 * value-prof.c (init_node_map): Handle thunks.
35591 * value-prof.h (branch_prob): Upate prototype.
35592 (read_thunk_profile): Declare.
35594 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35596 Update copyright years.
35598 * gcc.c (process_command): Update copyright notice dates.
35599 * gcov-dump.c (print_version): Ditto.
35600 * gcov.c (print_version): Ditto.
35601 * gcov-tool.c (print_version): Ditto.
35602 * gengtype.c (create_file): Ditto.
35603 * doc/cpp.texi: Bump @copying's copyright year.
35604 * doc/cppinternals.texi: Ditto.
35605 * doc/gcc.texi: Ditto.
35606 * doc/gccint.texi: Ditto.
35607 * doc/gcov.texi: Ditto.
35608 * doc/install.texi: Ditto.
35609 * doc/invoke.texi: Ditto.
35611 Copyright (C) 2019 Free Software Foundation, Inc.
35613 Copying and distribution of this file, with or without modification,
35614 are permitted in any medium without royalty provided the copyright
35615 notice and this notice are preserved.