1 2019-12-06 Andreas Krebbel <krebbel@linux.ibm.com>
2 Vladimir Makarov <vmakarov@redhat.com>
4 PR rtl-optimization/92176
5 * lra.c (simplify_subreg_regno): Don't permit unconditional
6 changing mode for LRA too.
8 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
10 * target.h (TCTX_ALLOCATION, TCTX_DEALLOCATION, TCTX_EXCEPTIONS)
11 (TCTX_CAPTURE_BY_COPY): New type_context_kinds.
12 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
15 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
17 * config/gcn/gcn-valu.md (gather<mode>_insn_1offset<exec>): Use %o
20 2019-12-06 Andrew Stubbs <ams@codesourcery.com>
22 * config/gcn/gcn-valu.md (VEC_1REG_MODE): Remove V64QI and V64HI.
23 (VEC_1REG_ALT): Likewise.
24 (VEC_ALL1REG_MODE): New mode iterator.
25 (VEC_1REG_INT_MODE): Remove V64QI and V64HI.
26 (VEC_1REG_INT_ALT): Likewise.
27 (VEC_ALL1REG_INT_MODE): New mode interator.
28 (VEC_ALL1REG_INT_ALT): Likewise.
29 (VEC_REG_MODE): Remove V64QI and V64HI.
30 (VEC_ALLREG_MODE): New mode interator.
31 (vec_merge): Change to VEC_ALLREG_MODE.
32 (vec_merge_with_clobber): Likewise.
33 (vec_merge_with_vcc): Likewise.
34 (mov<mode>): Likewise.
35 (mov<mode>_unspec): Likewise.
36 (*mov<mode>): Change to VEC_ALL1REG_MODE.
37 (mov<mode>_exec): Likewise.
38 (*mov<mode>_exec_match): Likewise.
39 (mov<mode>_sgprbase): Likewise.
40 (reload_in<mode>): Change to VEC_ALLREG_MODE.
41 (reload_out<mode>): Likewise.
42 (scalar address splits): Likewise.
43 (*vec_set<mode>): Change to VEC_ALL1REG_MODE.
44 (vec_set<mode>): Change to VEC_ALLREG_MODE.
45 (*vec_set<mode>_1): Change to VEC_ALL1REG_MODE.
46 (vec_duplicate<mode><exec>): Likewise.
47 (vec_extract<mode><scalar_mode>): Likewise.
48 (vec_init<mode><scalar_mode>): Change to VEC_ALLREG_MODE.
49 (gather_load<mode>): Likewise.
50 (gather<mode>_exec): Likewise.
51 (gather<mode>_expr<exec>): Likewise.
52 (gather<mode>_insn_1offset<exec>): Likewise.
53 (gather<mode>_insn_1offset_ds<exec>): Likewise.
54 (gather<mode>_insn_2offsets<exec>): Likewise.
55 (ds_bpermute<mode>): Change to VEC_ALL1REG_MODE.
56 (VEC_INT_MODE): Remove V64QI and V64HI.
57 (vcond_mask_<mode>di): Change to VEC_ALLREG_MODE.
58 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Change to
60 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise.
61 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>): Likewise.
62 (vcondu<VEC_1REG_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise.
63 (maskload<mode>di): Change to VEC_ALL1REG_MODE.
64 (maskstore<mode>di): Likewise.
65 (mask_gather_load<mode>): Likewise.
66 (mov_from_lane63_<mode>): Likewise.
67 * config/gcn/gcn.c (gcn_vector_mode_supported_p): Renable V64QImode
68 and V64HImode vectorization.
69 (gcn_related_vector_mode): New function.
70 (TARGET_VECTORIZE_RELATED_MODE): New define.
72 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
73 Kwok Cheung Yeung <kcy@codesourcery.com>
75 * omp-low.c (lower_omp_target): For optional arguments, deref once
76 more to obtain the type.
78 2019-12-06 Richard Biener <rguenther@suse.de>
80 * match.pd (nop_convert): Remove empty match. Use nop_convert?
83 2019-12-06 Richard Sandiford <richard.sandiford@arm.com>
85 * tree-data-ref.c (prune_runtime_alias_test_list): Exit early
86 for empty vectors. Avoid using ordered_remove and instead
87 shuffle the vector as we go.
89 2019-12-06 Richard Biener <rguenther@suse.de>
91 * genmatch.c (enum tree_code): Remove CONVERT{0,1,2} and
93 (expr::opt_grp): Add and initialize.
94 (lower_opt_convert): Rename to ...
95 (lower_opt): ... and work on opt_grp, simply switching operations
96 from being optional to being present or not.
97 (has_opt_convert): Rename to ...
98 (has_opt): ... and adjust.
99 (parser::parse_operation): Return the optional opt_grp,
100 remove special-casing of conditional operations and more generally
102 (parser::parse_expr): Stick on the parsed opt_grp and perform
104 (parser::parse_for): Remove now unnecessary code.
106 * doc/match-and-simplify.texi: Mention ? now works on all
107 unary operations and also match predicates.
109 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
111 * cgraphclones.c (cgraph_node::create_clone): Only localize toplevel
112 functions, not inline clones.
114 2019-12-06 Jan Hubicka <hubicka@ucw.cz>
116 * cfgexpand.c (expand_debug_expr): Do not ICE on SAD_EXPR.
118 2019-12-06 Richard Biener <rguenther@suse.de>
120 * genmatch.c (c_expr::gen_transform): Emit newlines from line
121 number changes rather than after every semicolon.
123 2019-12-06 Richard Biener <rguenther@suse.de>
125 PR tree-optimization/92819
126 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Handle inserts
127 into the last lane. For two-element vectors try inserting
128 into the last lane when inserting into the first fails.
130 2019-12-06 Jakub Jelinek <jakub@redhat.com>
132 * common.opt (fprofile-partial-training): Terminate description with
135 2019-12-05 Martin Sebor <msebor@redhat.com>
138 * tree-vrp.c (vrp_prop::check_array_ref): Avoid using a variable
139 left uninitialized by get_addr_base_and_unit_offset on failure.
141 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
143 * ipa-prop.c (ipa_set_jf_unknown): Do not clear bits and m_vr.
144 (detect_type_change_from_memory_writes): Remoe parameter JFUNC.
145 (detect_type_change): Likewise.
146 (detect_type_change_ssa): Likewise.
147 (ipa_analyze_virtual_call_uses): Update.
149 2019-12-05 Sandra Loosemore <sandra@codesourcery.com>
151 * config/nios2/linux.h (LINK_EH_SPEC): Define.
153 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
155 * ipa-inline-transform.c (inline_call): Fix maintenatnce of comdat_local
157 2019-12-05 Jan Hubicka <hubicka@ucw.cz>
159 * cgraphclones.c (localize_profile): New function.
160 (cgraph_node::create_clone): Use it for partial profiles.
161 * common.opt (fprofile-partial-training): New flag.
162 * doc/invoke.texi (-fprofile-partial-training): Document.
163 * ipa-cp.c (update_profiling_info): For partial profiles do not
164 set function profile to zero.
165 * profile.c (compute_branch_probabilities): With partial profile
166 watch if edge count is zero and turn all probabilities to guessed.
167 (compute_branch_probabilities): For partial profiles do not apply
168 profile when entry count is zero.
169 * tree-profile.c (tree_profiling): Only do value_profile_transformations
170 when profile is read.
172 2019-12-05 Sudakshina Das <sudi.das@arm.com>
174 * tree-vect-loop.c (vect_model_reduction_cost): Remove reduction_type
175 check from if condition.
177 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
179 * omp-low.c (lower_omp_target): For use_device_ptr/use_derice_addr
180 and Fortran's optional arguments, unconditionally add the is-present
181 condition before the libgomp call.
183 2019-12-05 Richard Sandiford <richard.sandiford@arm.com>
186 * tree-core.h (OEP_BITWISE): New flag.
187 * fold-const.c (operand_compare::operand_equal_p): Handle it.
188 * tree-vector-builder.h (tree_vector_builder::equal_p): Pass it.
190 2019-12-05 Richard Biener <rguenther@suse.de>
193 * tree-ssa-forwprop.c (simplify_vector_constructor): Improve
194 heuristics on what don't care element to choose.
195 * match.pd (VEC_PERM_EXPR -> BIT_INSERT_EXPR): Fix typo.
197 2019-12-05 Martin Liska <mliska@suse.cz>
199 PR gcov-profile/92817
200 * coverage.c (build_gcov_exit_decl): Remove superfluous
203 2019-12-05 Jozef Lawrynowicz <jozef.l@mittosystems.com>
205 * config/msp430/msp430.md (cbranch<mode>4): Use
206 msp430_general_dst_nonv_operand instead of nonimmediate_operand for
207 dest operand of CMP instruction.
208 (cbranchpsi4_real): Likewise.
209 (cbranchqi4_real): Likewise.
210 (cbranchhi4_real): Likewise.
211 (cbranchpsi4_reversed): Likewise.
212 (cbranchqi4_reversed): Likewise.
213 (cbranchhi4_reversed): Likewise.
215 2019-12-05 Richard Biener <rguenther@suse.de>
217 PR tree-optimization/92803
218 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
219 invariant vector construction.
221 2019-12-05 Martin Liska <mliska@suse.cz>
223 PR gcov-profile/91971
224 * coverage.c (coverage_init): Mangle full path
225 only when -fprofile-dir is used.
227 2019-12-05 Jakub Jelinek <jakub@redhat.com>
230 * config/i386/i386.md (movstrict<mode>): Move test for
231 TARGET_PARTIAL_REG_STALL and not optimizing for size from
232 expander's condition to the body - FAIL; in that case.
234 2019-12-03 Martin Sebor <msebor@redhat.com>
237 * builtins.c (gimple_call_alloc_size): New function.
238 (compute_objsize): Add argument. Call gimple_call_alloc_size.
239 Handle variable offsets and indices.
240 * builtins.h (gimple_call_alloc_size): Declare.
241 (compute_objsize): Add argument.
242 * gcc/gimple-ssa-warn-restrict.c: Remove assertions.
243 * tree-ssa-strlen.c (handle_store): Handle calls to allocated objects.
245 2019-12-04 Julian Brown <julian@codesourcery.com>
247 * config/gcn/gcn.h (FIXED_REGISTERS): Make s6/s7 fixed registers.
249 2019-12-04 Peter Bergner <bergner@linux.ibm.com>
252 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Move to
254 (altivec_overloaded_builtins): Move to rs6000-call.c.
255 * config/rs6000/rs6000.h (struct altivec_builtin_types): Moved from
257 * config/rs6000/rs6000-call.c (rs6000_builtin_info): Make static.
258 (altivec_overloaded_builtins): Moved from rs6000-c.c.
259 (rs6000_common_init_builtins): Do no define builtins that overload
260 builtins that have been disabled.
262 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
264 * config/arm/arm.c (arm_option_override_internal):
265 Use max_cond_insns from CPU tuning unless -mrestrict-it is used.
267 2019-12-04 Wilco Dijkstra <wdijkstr@arm.com>
269 * config/aarch64/aarch64.c
270 (thunderxt88_tunings): Use AARCH64_FUSE_ALU_BRANCH.
271 (thunderx_tunings): Likewise.
272 (tsv110_tunings): Use AARCH64_FUSE_ALU_BRANCH and AARCH64_FUSE_ALU_CBZ.
273 (thunderx2t99_tunings): Likewise.
274 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_CMP_BRANCH.
275 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_CBZ fusion.
277 2019-12-04 Richard Biener <rguenther@suse.de>
279 * tree-ssa-sccvn.c (vn_reference_lookup_3): Properly guard
280 empty CTOR and memset partial-def registering. Take advantage
281 of fancy offset analysis in memset handling.
283 2019-12-04 Richard Sandiford <richard.sandiford@arm.com>
285 * fold-const.c (native_encode_vector_part): Handle
286 VECTOR_BOOLEAN_TYPE_Ps that have subbyte precision.
287 (native_decode_vector_tree): Delete, moving the bulk of the code to...
288 (native_interpret_vector_part): ...this new function. Use a pointer
289 and length instead of a vec<> and start index.
290 (native_interpret_vector): Use native_interpret_vector_part.
291 (fold_view_convert_vector_encoding): Likewise.
293 2019-12-04 Richard Biener <rguenther@suse.de>
295 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Handle
296 non-constant defs in the most trivial way.
297 (vn_reference_lookup_3): Also push down SSA partial defs.
299 2019-12-04 Martin Liska <mliska@suse.cz>
301 * tree-switch-conversion.c (switch_decision_tree::try_switch_expansion):
302 Initialize count of newly created BB.
304 2019-12-04 Jakub Jelinek <jakub@redhat.com>
306 PR tree-optimization/92734
307 * match.pd ((A +- B) - A -> +- B, (A +- B) -+ B -> A,
308 A - (A +- B) -> -+ B, A +- (B -+ A) -> +- B): Handle nop_convert.
310 2019-12-04 Kewen Lin <linkw@gcc.gnu.org>
313 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Use
314 VECTOR_MEM_NONE_P instead of VECTOR_UNIT_NONE_P.
316 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
318 * ipa-fnsummary.c: Include tree-into-ssa.h.
319 (compute_fn_summary): Call update_ssa.
321 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
323 * cgraph.c (cgraph_node::verify_node): Check that calls_comdat_local
324 is set only for symbol in comdat group.
325 * symtab.c (symtab_node::dissolve_same_comdat_group_1): Clear it.
327 2019-12-03 Jan Hubicka <hubicka@ucw.cz>
329 * cgraph.c: Include tree-into-ssa.h
330 (cgraph_node::get_body): Call update_ssa.
331 * cgraphunit.c (cgraph_node::expand): Likewise.
332 * lto-streamer-in.c (input_function): Do not call update_ssa.
334 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
336 * gimplify.c (gimplify_compound_lval): Don't gimplify and install
337 an array element size if array_element_size is already an invariant.
338 Similarly don't gimplify and install a field offset if
339 component_ref_field_offset is already an invariant.
341 2019-12-03 Richard Sandiford <richard.sandiford@arm.com>
343 * cfgexpand.c (discover_nonconstant_array_refs_r): If an access
344 with POLY_INT_CST size is made to a fixed-size object, force the
345 object to live in memory.
347 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
349 * config/gcn/gcn-valu.md: Change "vcondu" patterns to use VEC_1REG_MODE
352 2019-12-03 Richard Biener <rguenther@suse.de>
354 PR tree-optimization/92758
355 * tree-ssa-forwprop.c (simplify_vector_constructor): Restore
356 operation on uniform vectors.
358 2019-12-03 Richard Biener <rguenther@suse.de>
360 PR tree-optimization/92645
361 * gimple-fold.c (gimple_fold_builtin_memory_op): Fold memcpy
362 from or to a properly aligned register variable.
364 2019-12-03 Matthias Klose <doko@ubuntu.com>
366 * Makefile.in (SOURCES): Add doc/lto-dump.1.
367 (install-man): Add $(LTO_DUMP_INSTALL_NAME)$(man1ext).
368 ($(LTO_DUMP_INSTALL_NAME)$(man1ext): New.
370 2019-12-03 Richard Biener <rguenther@suse.de>
372 PR tree-optimization/92751
373 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fail
374 when a clobber ends up in the partial-def vector.
375 (vn_reference_lookup_3): Let clobbers be handled by the
376 assignment from CTOR handling.
378 2019-12-03 Jakub Jelinek <jakub@redhat.com>
380 PR tree-optimization/92734
381 * match.pd ((CST1 - A) +- CST2 -> CST3 - A,
382 CST1 - (CST2 - A) -> CST3 + A): Handle nop casts around
385 2019-12-03 Uroš Bizjak <ubizjak@gmail.com>
386 Jakub Jelinek <jakub@redhat.com>
389 * config/i386/i386.md (peephole2 for *swap<mode>): Use
390 general_reg_operand predicates instead of register_operand.
392 2019-12-03 Richard Biener <rguenther@suse.de>
394 PR tree-optimization/92645
395 * tree-ssa.c (execute_update_addresses_taken): Avoid representing
396 a full def of a vector via a BIT_INSERT_EXPR.
398 2019-12-02 Bill Schmidt <wschmidt@linux.ibm.com>
400 * config/rs6000/rs6000-call.c (rs6000_invalid_builtin): Make
402 * config/rs6000/rs6000-internal.h (rs6000_invalid_builtin): Remove
405 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
408 * fold-const.c (fold_convertible_p): Check vector types more
411 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
413 * config/aarch64/aarch64.c (aarch64_report_sve_required): New function.
414 (aarch64_expand_mov_immediate): Use it when attempting to measure
415 the length of an SVE vector.
416 (aarch64_mov_operand_p): Only allow SVE CNT immediates when
419 2019-12-02 Richard Sandiford <richard.sandiford@arm.com>
421 * config/aarch64/aarch64-sve-builtins.h
422 (gimple_folder::force_vector): Declare.
423 * config/aarch64/aarch64-sve-builtins.cc
424 (gimple_folder::force_vector): New function.
425 * config/aarch64/aarch64-sve-builtins-base.cc
426 (svcmp_impl::fold): Likewise.
427 (svdup_impl::fold): Handle svdup_z too.
429 2019-12-02 Martin Liska <mliska@suse.cz>
431 * ipa-devirt.c (warn_types_mismatch): Use get_odr_name_for_type
433 (debug_tree_odr_name): New.
434 * ipa-utils.h (get_odr_name_for_type): New.
436 2019-12-02 Richard Biener <rguenther@suse.de>
438 PR tree-optimization/92742
439 * tree-vect-loop.c (vect_fixup_reduc_chain): Do not
440 touch the def-type but verify it is consistent with the
443 2019-12-02 Jakub Jelinek <jakub@redhat.com>
445 PR tree-optimization/92712
446 * match.pd ((A * B) +- A -> (B +- 1) * A,
447 A +- (A * B) -> (1 +- B) * A): Allow optimizing signed integers
448 even when we don't know anything about range of A, but do know
449 something about range of B and the simplification won't introduce
452 2019-12-02 Feng Xue <fxue@os.amperecomputing.com>
455 * doc/invoke.texi (ipa-cp-max-recursive-depth): Document new option.
456 (ipa-cp-min-recursive-probability): Likewise.
457 * params.opt (ipa-cp-max-recursive-depth): New.
458 (ipa-cp-min-recursive-probability): Likewise.
459 * ipa-cp.c (ipcp_lattice<valtype>::add_value): Add two new parameters
461 (self_recursively_generated_p): New function.
462 (get_val_across_arith_op): Likewise.
463 (propagate_vals_across_arith_jfunc): Add constant propagation for
464 self-recursive function.
465 (incorporate_penalties): Do not penalize pure self-recursive function.
466 (good_cloning_opportunity_p): Dump node_is_self_scc flag.
467 (propagate_constants_topo): Set node_is_self_scc flag for cgraph node.
468 (get_info_about_necessary_edges): Relax hotness check for edge to
469 self-recursive function.
470 * ipa-prop.h (ipa_node_params): Add new field node_is_self_scc.
472 2019-12-01 Sandra Loosemore <sandra@codesourcery.com>
476 * config/nios2/nios2.c (nios2_in_small_data_p): Do not consider
477 objects of flexible types to be small if they have internal linkage
478 or are declared extern.
479 * config/nios2/nios2.h (ASM_OUTPUT_ALIGNED_LOCAL): Replace with...
480 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ...this. Use targetm.in_small_data_p
481 instead of the size of the object initializer.
482 * tree.c (flexible_array_type_p): Move from C front end, and
483 generalize to handle fields in non-C structures.
484 * tree.h (flexible_array_type_p): Declare.
486 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
488 * profile-count.h (profile_count::operator<): Use IPA value for
490 (profile_count::operator>): Likewise.
491 (profile_count::operator<=): Likewise.
492 (profile_count::operator>=): Likewise.
493 * predict.c (maybe_hot_count_p): Do not convert to gcov_type.
495 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
497 * ipa-inline.c (compute_max_insns): Return int64_t.
498 (inline_small_functions): Simplify.
500 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
502 * tree-cfg.c (execute_fixup_cfg): Update also max_bb_count when
505 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
507 * cgraph.h (symtab_node): Add symver flag.
508 * cgraphunit.c (process_symver_attribute): New.
509 (process_common_attributes): Use process_symver_attribute.
510 * lto-cgraph.c (lto_output_node): Stream symver.
511 (lto_output_varpool_node): Stream symver.
512 (input_overwrite_node): Stream symver.
513 (input_varpool_node): Stream symver.
514 * output.h (do_assemble_symver): Decalre.
515 * symtab.c (symtab_node::dump_base): Dump symver.
516 (symtab_node::verify_base): Verify symver.
517 (symtab_node::resolve_alias): Handle symver.
518 * varasm.c (do_assemble_symver): New function.
519 * varpool.c (varpool_node::assemble_aliases): Use it.
520 * doc/extend.texi: (symver attribute): Document.
521 * config/elfos.h (ASM_OUTPUT_SYMVER_DIRECTIVE): New.
523 2019-11-30 Richard Sandiford <richard.sandiford@arm.com>
525 * target.h (type_context_kind): New enum.
526 (verify_type_context): Declare.
527 * target.def (verify_type_context): New target hook.
528 * doc/tm.texi.in (TARGET_VERIFY_TYPE_CONTEXT): Likewise.
529 * doc/tm.texi: Regenerate.
530 * tree.c (verify_type_context): New function.
531 * config/aarch64/aarch64-protos.h (aarch64_sve::verify_type_context):
533 * config/aarch64/aarch64-sve-builtins.cc (verify_type_context):
535 * config/aarch64/aarch64.c (aarch64_verify_type_context): Likewise.
536 (TARGET_VERIFY_TYPE_CONTEXT): Define.
538 2019-11-30 Jan Hubicka <hubicka@ucw.cz>
540 * cgraph.c (cgraph_node::dump): Dump unit_id and merged_extern_inline.
541 * cgraph.h (cgraph_node): Add unit_id and
542 merged_extern_inline.
543 (symbol_table): Add max_unit.
544 (symbol_table::symbol_table): Initialize it.
545 * cgraphclones.c (duplicate_thunk_for_node): Copy unit_id.
546 merged_comdat, merged_extern_inline.
547 (cgraph_node::create_clone): Likewise.
548 (cgraph_node::create_version_clone): Likewise.
549 * ipa-fnsummary.c (dump_ipa_call_summary): Dump info about cross module
551 * ipa-fnsummary.h (cross_module_call_p): New inline function.
552 * ipa-inline-analyssi.c (simple_edge_hints): Use it.
553 * ipa-inline.c (inline_small_functions): Likewise.
554 * lto-symtab.c (lto_cgraph_replace_node): Record merged_extern_inline;
555 copy merged_comdat and merged_extern_inline.
556 * lto-cgraph.c (lto_output_node): Stream out merged_comdat,
557 merged_extern_inline and unit_id.
558 (input_overwrite_node): Stream in these.
559 (input_cgraph_1): Set unit_base.
560 * lto-streamer.h (lto_file_decl_data): Add unit_base.
561 * symtab.c (symtab_node::make_decl_local): Record former_comdat.
563 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
565 * gcc.c (process_command): Only warn about an ineffective `-x'
566 option if any input files have actually been supplied.
568 2019-11-30 Maciej W. Rozycki <macro@wdc.com>
570 * doc/install.texi (Options specification): Remove the list of
571 target library subdirectories supporting
572 `--enable-version-specific-runtime-libs'. Document defaults for
575 2019-11-29 Vladimir Makarov <vmakarov@redhat.com>
577 PR rtl-optimization/92283
578 * lra.c (lra): Update reg notes after inheritance sub-pass and
579 before constraint sub-pass.
581 2019-11-29 Richard Biener <rguenther@suse.de>
583 PR tree-optimization/91003
584 * tree-vect-slp.c (vect_mask_constant_operand_p): Pass in the
585 operand number, avoid handling the non-condition operands of
586 COND_EXPRs as comparisons.
587 (vect_get_constant_vectors): Pass down the operand number.
588 (vect_get_slp_defs): Likewise.
590 2019-11-29 Frederik Harwath <frederik@codesourcery.com>
592 * gimple-match-head.c (maybe_resimplify_conditional_op): Use
593 generic_expr_could_trap_p to check if the condition of COND_EXPR or
594 VEC_COND_EXPR can trap.
596 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
598 PR tree-optimization/92677
599 * tree-vect-loop.c (vect_dissolve_slp_only_groups): Set the gap
600 to zero when dissolving a group of strided accesses.
602 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
604 PR tree-optimization/92596
605 * tree-vect-stmts.c (vectorizable_call): Punt on hybrid mask/nonmask
607 (vectorizable_operation): Likewise, instead of relying on
608 vect_get_mask_type_for_stmt to do this.
609 (vect_get_vector_types_for_stmt): Always return a vector type
610 immediately, rather than deferring the choice for boolean results.
611 Use a vector mask type instead of a normal vector if
612 vect_use_mask_type_p.
613 (vect_get_mask_type_for_stmt): Delete.
614 * tree-vect-loop.c (vect_determine_vf_for_stmt_1): Remove
615 mask_producers argument and special boolean_type_node handling.
616 (vect_determine_vf_for_stmt): Remove mask_producers argument and
617 update calls to vect_determine_vf_for_stmt_1. Remove doubled call.
618 (vect_determine_vectorization_factor): Update call accordingly.
619 * tree-vect-slp.c (vect_build_slp_tree_1): Remove special
620 boolean_type_node handling.
621 (vect_slp_analyze_node_operations_1): Likewise.
623 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
625 * tree-vectorizer.h (stmt_vec_info::mask_precision): New field.
626 (vect_use_mask_type_p): New function.
627 * tree-vect-patterns.c (vect_init_pattern_stmt): Copy the
628 mask precision to the pattern statement.
629 (append_pattern_def_seq): Add a scalar_type_for_mask parameter
630 and use it to initialize the new stmt's mask precision.
631 (search_type_for_mask_1): Delete.
632 (search_type_for_mask): Replace with...
633 (integer_type_for_mask): ...this new function. Use the information
634 cached in the stmt_vec_info.
635 (vect_recog_bool_pattern): Update accordingly.
636 (build_mask_conversion): Pass the scalar type associated with the
637 mask type to append_pattern_def_seq.
638 (vect_recog_mask_conversion_pattern): Likewise. Call
639 integer_type_for_mask instead of search_type_for_mask.
640 (vect_convert_mask_for_vectype): Call integer_type_for_mask instead
641 of search_type_for_mask.
642 (possible_vector_mask_operation_p): New function.
643 (vect_determine_mask_precision): Likewise.
644 (vect_determine_stmt_precisions): Call it.
646 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
648 * tree-vectorizer.h (get_mask_type_for_scalar_type): Replace
649 the slp_tree parameter with a group size parameter.
650 (vect_get_mask_type_for_stmt): Likewise.
651 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
652 (vect_get_mask_type_for_stmt): Likewise.
653 * tree-vect-slp.c (vect_slp_analyze_node_operations_1): Update
656 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
658 * tree-vect-stmts.c (vectorizable_operation): Punt early
659 on codes that are handled elsewhere.
661 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
663 * doc/sourcebuild.texi (vect_bool_cmp): Document.
664 * tree-vect-patterns.c (search_type_for_mask_1): If neither
665 operand to a boolean comparison is a natural vector mask,
666 handle both operands like normal integers instead.
668 2019-11-29 Richard Biener <rguenther@suse.de>
670 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Bail
671 out early for too large objects.
673 2019-11-29 Martin Jambor <mjambor@suse.cz>
676 * ipa-cp.c (set_single_call_flag): Set node_calling_single_call in
677 the summary only if the summary exists.
678 (find_more_scalar_values_for_callers_subset): Check node_dead in
679 the summary only if the summary exists.
680 (ipcp_store_bits_results): Ignore nodes without lattices.
681 (ipcp_store_vr_results): Likewise.
682 * cgraphclones.c: Include ipa-fnsummary.h and ipa-prop.h and the
683 header files required by them.
684 (cgraph_node::expand_all_artificial_thunks): Analyze expanded thunks.
686 2019-11-29 Richard Sandiford <richard.sandiford@arm.com>
688 PR tree-optimization/92710
689 * tree-vect-stmts.c (vectorizable_simd_clone_call): Reject
690 vector mask arguments.
692 2019-11-29 Jan Hubicka <hubicka@ucw.cz>
694 * profile-count.c (profile_count::to_cgraph_frequency,
695 profile_count::to_sreal_scale): Check for compaibility of counts.
696 * profile-count.h (compatible_p): Make public; add checking for
697 global0 versus global types.
698 * cgraph.c (cgraph_node::verify_node): Verify count compatibility.
700 2019-11-29 Richard Biener <rguenther@suse.de>
702 PR tree-optimization/92715
703 * tree-ssa-forwprop.c (simplify_vector_constructor): Bail
704 out for uniform vectors and source vectors with less elements
705 than the destination.
707 2019-11-29 Martin Liska <mliska@suse.cz>
710 * ipa-devirt.c (types_same_for_odr): Check for existence
713 2019-11-29 Richard Biener <rguenther@suse.de>
715 PR tree-optimization/92704
716 * tree-if-conv.c (combine_blocks): Deal with virtual PHIs
717 in loops performing only loads.
719 2019-11-29 Julian Brown <julian@codesourcery.com>
721 * builtin-types.def (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR,
722 BT_DFLOAT128_PTR) Remove.
723 * tree-core.h (TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE,
724 TI_DFLOAT128_PTR_TYPE): Remove.
725 * tree.c (build_common_type_nodes): Remove dfloat32_ptr_type_node,
726 dfloat64_ptr_type_node and dfloat128_ptr_type_node initialisation.
727 * tree.h (dfloat32_ptr_type_node, dfloat64_ptr_type_node,
728 dfloat128_ptr_type_node): Remove macros.
730 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
732 * config/rs6000/rs6000.md (*movsi_internal1): Fix formatting. Improve
734 (*movdi_internal64): Ditto.
736 2019-11-28 Segher Boessenkool <segher@kernel.crashing.org>
739 * config/rs6000/rs6000.md (bswap<mode>2_load for HSI): Change the
740 indexed_or_indirect_operand to be memory_operand.
741 (bswap<mode>2_store for HSI): Ditto.
742 (bswapdi2_load): Ditto.
743 (bswapdi2_store): Ditto.
745 2019-11-28 Martin Liska <mliska@suse.cz>
748 * dbgcnt.c (dbg_cnt_list_all_counters): Mark table
749 headers for translation.
751 2019-11-28 Martin Liska <mliska@suse.cz>
754 * ipa-devirt.c (warn_types_mismatch): Use TYPE_MAIN_VARIANT
757 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
759 * ipa-inline.c (want_early_inline_function_p): Remove leftover optimize
762 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
764 * profile-count.c (profile_count::combine_with_ipa_count): Return
765 uninitialized count if called on ininitialized count.
767 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
769 * ipa-inline-transform.c (inline_transform): Scale profile before
772 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
774 * profile-count.h (profile_count::max): Work on profiles of different
776 (profile_count::apply_scale): Be sure that ret is not local or global0
777 type if num is global.
779 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
781 * profile-count.h (profile_count::max): Work on profiles of different
783 (profile_count::apply_scale): Be sure that ret is not local or global0
784 type if num is global.
786 2019-11-28 Martin Jambor <mjambor@suse.cz>
789 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for
791 * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag.
792 Removed trailig whitespace.
794 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
796 * profile-count.h (profile_count::combine_with_ipa_count_within):
798 * profile-count.c (profile_count::combine_with_ipa_count_within):
800 * cgraphclones.c (cgraph_edge::clone, cgraph_node::create_clone): Use
803 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
805 * ipa-utils.c (ipa_merge_profiles): Be sure that all type transtions
806 of counters are done same way.
808 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
810 * ipa-cp.c (update_profiling_info): Fix scaling.
812 2019-11-28 Richard Biener <rguenther@suse.de>
814 PR tree-optimization/92645
815 * tree-inline.c (remap_gimple_stmt): When the return value
816 is not wanted, elide GIMPLE_RETURN.
818 2019-11-28 Richard Biener <rguenther@suse.de>
820 PR tree-optimization/92645
821 * tree-ssa-forwprop.c (get_bit_field_ref_def): Also handle
822 conversions inside a mode class. Remove restriction on
823 preserving the element size.
824 (simplify_vector_constructor): Deal with the above and for
825 identity permutes also try using VEC_UNPACK_[FLOAT_]LO_EXPR
826 and VEC_PACK_TRUNC_EXPR.
828 2019-11-28 Georg-Johann Lay <avr@gjlay.de>
830 Must use push insn to pass varargs arguments of DFmode because
831 otherwise the middle-end generates wrong code.
834 * config/avr/avr.md (MPUSH) [DF, DC]: Add modes to mode iterator.
836 2019-11-28 Jakub Jelinek <jakub@redhat.com>
838 PR tree-optimization/92691
839 * tree-ssa-strlen.c (handle_store): Clarify return value meaning
841 (strlen_check_and_optimize_call): Likewise. For handle_printf_call
842 calls, return !handle_printf_call rather than always returning true.
843 (check_and_optimize_stmt): Describe return value meaning in function
844 comment. Formatting fix.
846 2019-11-28 Jan Hubicka <hubicka@ucw.cz>
848 * profile-count.c (profile_count::to_sreal_scale): Handle correctly
849 combination of globa0 and global counters..
851 2019-11-28 Kewen Lin <linkw@gcc.gnu.org>
854 * gcc/config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Check
855 by VECTOR_UNIT_NONE_P instead.
857 2019-11-28 Hongtao Liu <hongtao.liu@inte.com>
859 * gcc/config/i386/sse.md (avx512f_maskcmp<mode>3):
860 Refine VF to VF_AVX512VL.
862 2019-11-27 Michael Meissner <meissner@linux.ibm.com>
864 * config/rs6000/rs6000.md (movsi_internal): Reformat.
865 (movdi_internal64): Reformat.
867 2019-11-27 Peter Bergner <bergner@linux.ibm.com>
870 * config/rs6000/rs6000-call.c: (def_builtin): Do not define the
871 builtin if we don't have an actual type.
872 (builtin_function_type): If the builtin function uses a DFP type
873 and decimal float has been disabled, then return NULL_TREE.
875 2019-11-27 Jakub Jelinek <jakub@redhat.com>
877 PR rtl-optimization/92510
878 * combine.c (gen_lowpart_for_combine): Only transform lowpart subreg
879 of comparison into a comparison with different mode if both imode and
880 omode are scalar integral modes.
882 2019-11-27 Vladimir Makarov <vmakarov@redhat.com>
884 PR rtl-optimization/90007
885 * recog.c (constrain_operands): Permit hard registers too for
886 memory when LRA is used.
888 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
890 * config/m68k/m68k.c (m68k_output_compare_fp): Restore differences
891 between Coldfire and regular m68k.
892 * config/m68k/m68k.md (cmp1_cf_constraints): Disallow constants.
894 2019-11-27 Richard Biener <rguenther@suse.de>
896 * target.def (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
897 * targhooks.c (default_builtin_vectorized_conversion): Likewise.
898 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
899 * optabs-tree.c (supportable_convert_operation): Do not call
900 targetm.vectorize.builtin_conversion. Remove unused decl parameter.
901 * optabs-tree.h (supportable_convert_operation): Adjust.
902 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_CONVERSION): Remove.
903 * doc/tm.texi: Regenerate.
904 * tree-ssa-forwprop.c (simplify_vector_constructor): Adjust.
905 * tree-vect-generic.c (expand_vector_conversion): Likewise.
906 * tree-vect-stmts.c (vect_gen_widened_results_half): Remove
907 unused decl parameter and adjust.
908 (vect_create_vectorized_promotion_stmts): Likewise.
909 (vectorizable_conversion): Adjust.
911 2019-11-27 Richard Biener <rguenther@suse.de>
913 PR tree-optimization/92690
914 * tree-ssa-forwprop.c (simplify_vector_constructor): Avoid
915 converting elements not originally converted.
917 2019-11-27 Tobias Burnus <tobias@codesourcery.com>
920 * builtins.c (do_mpfr_ckconv, do_mpc_ckconv, do_mpfr_remquo,
921 do_mpfr_lgamma_r, do_mpc_arg2): Use MPFR_RNDx instead of GMP_RNDx,
922 mpfr_rnd_t instead of mp_rnd_t.
923 * fold-const-call.c (do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_sincos,
924 do_mpfr_arg2, do_mpfr_arg3, do_mpc_arg1, do_mpc_arg2): Likewise.
925 * gimple-ssa-sprintf.c (format_floating_max, format_floating):
926 Use mpfr_exp_t instead of mp_exp_t.
927 * real.c (real_from_string, dconst_e_ptr, dconst_sqrt2_ptr): Use
928 MPFR_RNDx instead of GMP_RNDx.
929 * realmpfr.c (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t and
930 mpfr_exp_t instead mp_rnd_t and mp_exp_t, respectively.
931 * realmpfr.h (real_from_mpfr, mpfr_from_real): Use mpfr_rnd_t instead
932 of mp_rnd_t and remove MPFR_RNDx poisoning.
933 * ubsan.c (ubsan_instrument_float_cast): MPFR_RNDx instead of GMP_RNDx.
935 2019-11-27 Kewen Lin <linkw@gcc.gnu.org>
937 PR tree-optimization/91790
938 * gcc/tree-vect-stmts.c (vectorizable_load): Use the adjusted
939 DR for vect_setup_realignment when first_stmt_info is different
940 from first_stmt_info_for_drptr.
942 2019-11-27 Richard Biener <rguenther@suse.de>
944 PR tree-optimization/92645
945 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
946 CTORs with just a subset of the original vectors.
948 2019-11-27 Richard Biener <rguenther@suse.de>
951 * tree-inline.c (expand_call_inline): Delay purging EH/abnormal
952 edges and instead record blocks in bitmap.
953 (gimple_expand_calls_inline): Adjust.
954 (fold_marked_statements): Delay EH cleanup until all folding is
956 (optimize_inline_calls): Do EH/abnormal cleanup for calls after
959 2019-11-27 Bernd Schmidt <bernds_cb1@t-online.de>
961 * auto-inc-dec.c (merge_in_block): Allow autoinc in jumps unless
963 * combine.c (can_combine_p): Disallow autoinc in jumps unless LRA is
966 2019-11-27 Jakub Jelinek <jakub@redhat.com>
969 * dwarf2out.c (lookup_filename): Use "<stdin>" instead of "".
971 2019-11-26 Martin Sebor <msebor@redhat.com>
973 PR tree-optimization/92683
974 * gimple-fold.c (gimple_fold_builtin_string_compare): Restore a test
975 inadvertently removed in a previous change. Rename local variable
978 2019-11-26 Richard Biener <rguenther@suse.de>
981 * cfganal.c (pre_and_rev_post_order_compute_fn): Deal with
984 2019-11-26 Robin Dapp <rdapp@linux.ibm.com>
986 * config/s390/linux.h: Add undef for MUSL_DYNAMIC_LINKERxx.
988 2019-11-26 Jakub Jelinek <jakub@redhat.com>
990 PR tree-optimization/92644
991 * tree-ssa-phiopt.c (minmax_replacement): Add INTEGRAL_TYPE_P check
992 next to INTEGER_CST checks.
994 2019-11-26 Richard Biener <rguenther@suse.de>
996 PR tree-optimization/92645
997 * tree-vect-slp.c (vect_build_slp_tree_2): For unary ops
998 do not build the operation from scalars if the operand is.
1000 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1002 * config/gcn/mkoffload.c (COMMENT_PREFIX, struct id_map,
1003 func_ids, funcs_tail, var_ids, vars_tail) Remove unused
1006 2019-11-25 Martin Liska <mliska@suse.cz>
1008 * ipa-icf.c (sem_item_optimizer::dump_cong_classes): Clean
1009 up used dump message.
1011 2019-11-25 Martin Liska <mliska@suse.cz>
1014 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Comment out
1015 too strict checking assert.
1017 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1020 * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128)
1021 (BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR): Define to
1022 error_mark_node if corresponding global tree node is NULL.
1023 * tree.c (build_common_tree_nodes): Do not initialize
1024 dfloat32_type_node, dfloat64_type_node or dfloat128_type_node if
1025 decimal floating-point not supported.
1027 2019-11-25 Joseph Myers <joseph@codesourcery.com>
1029 * attribs.c (decl_attributes): Do not ignore C++11 attributes on
1032 2019-11-25 Bernd Schmidt <bernds_cb1@t-online.de>
1034 * config/m68k/m68k.c (output_move_himode, output_move_qimode):
1035 Replace code for non-CONST_INT constants with gcc_unreachable.
1036 * config/m68k/m68k.md (cbranchdi): Don't generate individual
1038 (CMPMODE): New mode_iterator.
1039 (cbranchsi4, cbranchqi4, cbranchhi4): Replace expanders with
1041 (cstoresi4, cstoreqi4, cstorehi4): Replace expanders with
1043 (cmp<mode>_68881): Remove 'F' constraint from first comparison
1045 (bit test insns patterns): Use nonimmediate_operand, not
1046 register_operand, for source operands that allow memory in
1048 (divmodsi4, udivmodsi4, divmodhi4 and related unnamed patterns):
1049 Use register_operand, not nonimmediate_operand, for the
1051 (DBCC): New mode_iterator.
1052 (dbcc peepholes): Use it to reduce duplication.
1053 (trap): Use const_true_rtx, not const1_rtx.
1054 * config/m68k/predicates.md (m68k_comparison_operand): Renamed
1055 from m68k_subword_comparison_operand and changed to handle
1059 * config/m68k/m68k-protos.h (output-dbcc_and_branch): Adjust
1061 (m68k_init_cc): New declaration.
1062 (m68k_output_compare_di, m68k_output_compare_si)
1063 (m68k_output_compare_hi, m68k_output_compare_qi)
1064 (m68k_output_compare_fp, m68k_output_btst, m68k_output_bftst)
1065 (m68k_find_flags_value, m68k_output_scc, m68k_output_scc_float)
1066 (m68k_output_branch_integer, m68k_output_branch_integer_rev.
1067 m68k_output_branch_float, m68k_output_branch_float_rev):
1069 (valid_dbcc_comparison_p_2, flags_in_68881)
1070 (output_btst): Remove declaration.
1071 * config/m68k/m68k.c (INCLDUE_STRING): Define.
1072 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define.
1073 (valid_dbcc_comparison_p_2, flags_in_68881): Delete functions.
1074 (flags_compare_op0, flags_compare_op1, flags_operand1,
1075 flags_operand2, flags_valid): New static variables.
1076 (m68k_find_flags_value, m68k_init_cc): New functions.
1077 (handle_flags_for_move, m68k_asm_final_postscan_insn,
1078 remember_compare_flags): New static functions.
1079 (output_dbcc_and_branch): New argument CODE. Use it, and add
1080 PLUS and MINUS to the possible codes. All callers changed.
1081 (m68k_output_btst): Renamed from output_btst. Remove OPERANDS
1082 and INSN arguments, add CODE arg. Return the comparison code
1083 to use. All callers changed. Use CODE instead of
1084 next_insn_tests_no_inequality, and replace cc_status management
1085 with changing the return code.
1086 (m68k_rtx_costs): Instead of testing for COMPARE, test for
1087 RTX_COMPARE or RTX_COMM_COMPARE.
1088 (output_move_simode, output_move_qimode): Call
1089 handle_flags_for_move.
1090 (notice_update_cc): Delete function.
1091 (m68k_output_bftst, m68k_output_compare_di, m68k_output_compare_si,
1092 m68k_output_compare_hi, m68k_output_compare_qi,
1093 m68k_output_compare_fp, m68k_output_branch_integer,
1094 m68k_output_branch_integer_rev, m68k_output_scc,
1095 m68k_output_branch_float, m68k_output_branch_float_rev,
1096 m68k_output_scc_float): New functions.
1097 (output_andsi3, output_iorsi3, output_xorsi3): Call CC_STATUS_INIT
1098 once at the start, and set flags_valid and flags_operand1 if the
1100 * config/m68k/m68k.h (CC_IN_68881, NOTICE_UPDATE_CC,
1101 CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, OUTPUT_JUMP): Remove
1103 (CC_STATUS_INIT): Define.
1104 * config/m68k/m68k.md (flags_valid): New define_attr.
1105 (tstdi, tstsi_internal_68020_cf, tstsi_internal, tsthi_internal,
1106 tstqi_internal, tst<mode>_68881, tst<mode>_cf, cmpdi_internal,
1107 cmpdi, unnamed cmpsi/cmphi/cmpqi patterns, cmpsi_cf,
1108 cmp<mode>_68881, cmp<mode>_cf, unnamed btst patterns,
1109 tst_bftst_reg, tst_bftst_reg, unnamed scc patterns, scc,
1110 sls, sordered_1, sunordered_1, suneq_1, sunge_1, sungt_1,
1111 sunle_1, sunlt_1, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
1112 bge0_di, blt0_di, beq, bne, bgt, bgtu, blt, bltu, bge, bgeu,
1113 ble, bleu, bordered, bunordered, buneq, bunge, bungt, bunle,
1114 bunlt, bltgt, beq_rev, bne_rev, bgt_rev, bgtu_rev,
1115 blt_rev, bltu_rev, bge_rev, bgeu_rev, ble_rev, bleu_rev,
1116 bordered_rev, bunordered_rev, buneq_rev, bunge_rv, bungt_rev,
1117 bunle_rev, bunlt_rev, bltgt_rev, ctrapdi4, ctrapsi4, ctraphi4,
1118 ctrapqi4, conditional_trap): Delete patterns.
1119 (cbranchdi4_insn): New pattern.
1120 (cbranchdi4): Don't generate cc0 patterns. When testing LT or GE,
1121 test high part only. When testing EQ or NE, generate beq0_di
1122 and bne0_di patterns directly.
1123 (cstoredi4): When testing LT or GE, test high part only.
1124 (both sets of cbranch<mode>4, cstore<mode>4): Don't generate cc0
1126 (scc0_constraints, cmp1_constraints, cmp2_constraints,
1127 scc0_cf_constraints, cmp1_cf_constraints, cmp2_cf_constraints,
1128 cmp2_cf_predicate): New define_mode_attrs.
1129 (cbranch<mode>4_insn, cbranch<mode>4_insn_rev,
1130 cbranch<mode>4_insn_cf, cbranch<mode>4_insn_cf_rev,
1131 cstore<mode>4_insn, cstore<mode>4_insn_cf for integer modes)
1133 (cbranch<mode>4_insn_68881, cbranch<mode>4_insn_rev_68881):
1134 (cbranch<mode>4_insn_cf, cbranch<mode>4_insn_rev_cf,
1135 cstore<mode>4_insn_68881, cstore<mode>4_insn_cf for FP):
1137 (cbranchsi4_btst_mem_insn, cbranchsi4_btst_reg_insn,
1138 cbranchsi4_btst_mem_insn_1, cbranchsi4_btst_reg_insn_1):
1140 (BTST): New define_mode_iterator.
1141 (btst_predicate, btst_constraint, btst_range): New
1143 (cbranch_bftst<mode>_insn, cstore_bftst<mode>_insn): New
1145 (movsi_m68k_movsi_m68k2, movsi_cf, unnamed movstrict patterns,
1146 unnamed movhi and movqi patterns, unnamed movsf, movdf and movxf
1147 patterns): Set attr "flags_valid".
1148 (truncsiqi2, trunchiqi2, truncsihi2): Remove manual CC_STATUS
1149 management. Set attr "flags_valid".
1150 (extendsidi2, extendplussidi, unnamed float_extendsfdf pattern,
1151 extendsfdf2_cf, fix_truncdfsi2, fix_truncdfhi2, fix_truncdfqi2,
1152 addi_sexthishl32, adddi_dilshr32, adddi_dilshr32_cf,
1153 addi_dishl32, subdi_sexthishl32, subdi_dishl32, subdi3): Remove
1154 manual CC_STATUS management.
1155 (addsi3_internal, addhi3, addqi3, subsi3, subhi3, subqi3,
1156 unnamed strict_lowpart subhi and subqi patterns): Set attr
1158 (unnamed strict_lowpart addhi3 and addqi3 patterns): Likewise.
1159 Remove code to operate on address regs and assert the case
1161 (unnamed mulsidi patterns, divmodhi4, udivmodhi4): Remove
1162 manual CC_STATUS_INIT.
1163 (andsi3_internal, andhi3, andqi3, iorsi3_internal, iorhi3, iorqi3,
1164 xorsi3_internal, xorhi3, xorqi3, negsi2_internal,
1165 negsi2_5200, neghi2, negqi2, one_cmplsi2_internal, one_cmplhi2,
1166 one_cmplqi2, unnamed strict_lowpart patterns
1167 for andhi, andqi, iorhi, iorqi, xorhi, xorqi, neghi, negqi,
1168 one_cmplhi and one_cmplqi): Set attr "flags_valid".
1169 (iorsi_zext_ashl16, iorsi_zext): Remove manual CC_STATUS_INIT.
1170 (ashldi_sexthi, ashlsi_16, ashlsi_17_24): Remove manual
1172 (ashlsi3, ashlhi3, ashlqi3, ashrsi3, ashrhi3, ashrqi3, lshrsi3,
1173 lshrhi3, shrqi3, rotlsi3, rotlhi3, rotlhi3_lowpart, rotlqi3,
1174 rotlqi3_lowpart, rotrsi3, rotrhi3, rotrhi_lowpart, rotrqi3,
1175 unnamed strict_low_part patterns for HI and
1176 QI versions): Set attr "flags_valid".
1177 (bsetmemqi, bsetmemqi_ext, bsetdreg, bchgdreg, bclrdreg,
1178 bclrmemqi, extzv_8_16_reg, extzv_bfextu_mem, insv_bfchg_mem,
1179 insv_bfclr_mem, insv_bfset_mem, extv_bfextu_reg,
1180 insv_bfclr_reg, insv_bfset_reg, dbne_hi, dbne_si, dbge_hi,
1181 dbge_si, extendsfxf2, extenddfxf2, ): Remove manual cc_status management.
1182 (various unnamed peepholes): Adjust compare/branch sequences
1183 for new cbranch patterns.
1184 (dbcc peepholes): Likewise, and output the comparison here
1186 * config/m68k/predicates.md (valid_dbcc_comparison_p): Delete.
1187 (fp_src_operand): Allow constant zero.
1188 (address_reg_operand): New predicate.
1190 * rtl.h (inequality_comparisons_p): Remove declaration.
1191 * recog.h (next_insn_tests_no_inequality): Likewise.
1192 * rtlanal.c (inequality_comparisons_p): Delete function.
1193 * recog.c (next_insn_tests_no_inequality): Likewise.
1195 2019-11-25 Richard Biener <rguenther@suse.de>
1197 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Add assertion.
1198 (vect_detect_hybrid_slp): Swap lane and instance iteration,
1199 properly re-building the visited hash-map for each lane.
1201 2019-11-25 Tobias Burnus <tobias@codesourcery.com>
1203 * config/gcn/gcn.c (gcn_expand_scalar_to_vector_address,
1204 gcn_md_reorg): Remove unused variables.
1205 (gcn_emutls_var_init): Add missing (but unreachable) return
1207 (gcn_hsa_declare_function_name): Add gcc_unreachable to ensure
1208 target != TARGET_GCN3 or TARGET_GCN3 will fail instead of use
1209 an uninitialized variable.
1211 2019-11-25 Martin Jambor <mjambor@suse.cz>
1214 * cgraph.h (cgraph_node::remove_from_clone_tree): Declare.
1215 * cgraphclones.c (cgraph_node::remove_from_clone_tree): New method.
1216 (cgraph_materialize_clone): Move removel from clone tree to the
1217 the new method and use it instead.
1218 * ipa.c (symbol_table::remove_unreachable_nodes): When removing
1219 bodies of clones, also remove it from the clone tree.
1221 2019-11-25 Martin Jambor <mjambor@suse.cz>
1224 * ipa-sra.c (process_isra_node_results): Put the new node to the
1225 same comdat group as the original node.
1227 2019-11-25 Georg-Johann Lay <avr@gjlay.de>
1229 Build double32 / long-double32 multilibs if needed.
1233 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): Remove vars.
1234 (HAVE_DOUBLE32, HAVE_LONG_DOUBLE32, WITH_LONG_DOUBLE)
1235 (HAVE_DOUBLE64, HAVE_LONG_DOUBLE64, WITH_DOUBLE): Set from
1236 tm_defines and pass to genmultilib.awk.
1237 * config/avr/genmultilib.awk: Use these variables to add double32
1238 and / or long-double32 multilib(s) as needed.
1239 * config/avr/driver-avr.c (avr_double_lib): Adjust comment.
1241 2019-11-25 Richard Biener <rguenther@suse.de>
1243 * cfgloop.h (get_loop_exit_edges): Add extra parameter denoting
1244 loop body, defaulted to NULL.
1245 (single_likely_exit): Add exit vector argument
1246 * tree-ssa-loop-niter.h (loop_only_exit_p): Add loop body argument.
1247 (number_of_iterations_exit): Likewise.
1248 (number_of_iterations_exit_assumptions): Likewise.
1249 * cfgloop.c (get_loop_exit_edges): Use passed in loop body
1251 * cfgloopanal.c (single_likely_exit): Use passed in exit vector.
1252 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
1253 Compute exit vector around call to single_likely_exit.
1254 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_loop): Pass down
1255 loop body to loop_only_exit_p.
1256 * tree-ssa-loop-niter.c (loop_only_exit_p): Get loop body from
1258 (number_of_iterations_exit_assumptions): Get loop body from caller
1260 (number_of_iterations_exit): Pass through new loop body arg.
1261 (infer_loop_bounds_from_undefined): Get loop body from caller.
1262 (estimate_numbers_of_iterations): Compute loop body once.
1264 2019-11-25 Richard Biener <rguenther@suse.de>
1266 * cfganal.c (pre_and_rev_post_order_compute_fn): Use an
1267 auto_bb_flag instead of an sbitmap for visited handling.
1269 2019-11-25 Kewen Lin <linkw@gcc.gnu.org>
1271 * config/rs6000/vector.md (vector_fp_comparison_simple): New code
1273 (vector_fp_comparison_complex): Likewise.
1274 (vector_<code><mode> for VEC_F and vector_fp_comparison_simple): New
1276 (vector_<code><mode> for VEC_F and vector_fp_comparison_complex):
1278 (vector_lt<mode> for VEC_F): Refactor with
1279 vector_fp_comparison_simple.
1280 (vector_le<mode> for VEC_F): Likewise.
1281 (vector_unge<mode> for VEC_F): Likewise.
1282 (vector_unle<mode> for VEC_F): Likewise.
1283 (vector_ne<mode> for VEC_F): Likewise.
1284 (vector_ungt<mode> for VEC_F): Likewise.
1285 (vector_unlt<mode> for VEC_F): Likewise.
1286 (vector_ltgt<mode> for VEC_F): Refactor with
1287 vector_fp_comparison_complex.
1288 (vector_ordered<mode> for VEC_F): Likewise.
1289 (vector_uneq<mode> for VEC_F): Likewise.
1290 (vector_unordered<mode> for VEC_F): Likewise.
1292 2019-11-24 Bernd Schmidt <bernds_cb1@t-online.de>
1294 * config/i386/i386.c (ix86_rtx_costs): Handle care of a PLUS in a
1295 COMPARE, representing an overflow detection.
1297 * combine.c (combine_instructions): Record costs for jumps.
1299 * combine.c (can_combine_p): Allow autoinc in jumps.
1301 2019-11-23 Jan Hubicka <hubicka@ucw.cz>
1303 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT): Remove.
1304 * doc/invoke.texi (max-inline-insns-single-O2,
1305 inline-heuristics-hint-percent-O2, inline-min-speedup-O2,
1306 early-inlining-insns-O2): Remove documentation.
1307 * ipa-fnsummary.c (analyze_function_body,
1308 compute_fn_summary): Use opt_for_fn when accessing parameters.
1309 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
1310 inline_insns_auto, can_inline_edge_by_limits_p,
1311 want_early_inline_function_p, big_speedup_p,
1312 want_inline_small_function_p, want_inline_self_recursive_call_p,
1313 recursive_inlining, compute_max_insns, inline_small_functions):
1315 * opts.c (default_options): Add -O3 defaults for
1316 OPT__param_early_inlining_insns_,
1317 OPT__param_inline_heuristics_hint_percent_,
1318 OPT__param_inline_min_speedup_, OPT__param_max_inline_insns_single_.
1319 * params.opt (-param=early-inlining-insns-O2=,
1320 -param=inline-heuristics-hint-percent-O2=,
1321 -param=inline-min-speedup-O2=, -param=max-inline-insns-single-O2=
1322 -param=early-inlining-insns=, -param=inline-heuristics-hint-percent=,
1323 -param=inline-min-speedup=, -param=inline-unit-growth=,
1324 -param=large-function-growth=, -param=large-stack-frame=,
1325 -param=large-stack-frame-growth=, -param=large-unit-insns=,
1326 -param=max-inline-insns-recursive=,
1327 -param=max-inline-insns-recursive-auto=,
1328 -param=max-inline-insns-single=,
1329 -param=max-inline-insns-size=, -param=max-inline-insns-small=,
1330 -param=max-inline-recursive-depth=,
1331 -param=max-inline-recursive-depth-auto=,
1332 -param=min-inline-recursive-probability=,
1333 -param=partial-inlining-entry-probability=,
1334 -param=uninlined-function-insns=, -param=uninlined-function-time=,
1335 -param=uninlined-thunk-insns=, -param=uninlined-thunk-time=): Add
1338 2019-11-23 Jakub Jelinek <jakub@redhat.com>
1340 * ipa-fnsummary.c: Fix comment typos.
1341 * ipa-ref.h: Likewise.
1342 * ipa-predicate.h: Likewise.
1343 * ipa-split.c: Likewise.
1344 * ipa-inline-analysis.c: Likewise.
1345 * ipa-predicate.c: Likewise.
1346 * ipa-devirt.c: Likewise.
1347 * ipa-icf.h: Likewise.
1348 * profile-count.c: Likewise.
1349 * ipa-icf.c: Likewise.
1350 (sem_function::equals_wpa): Fix typos in dump messages.
1351 * ipa-icf-gimple.h: Fix comment typos.
1352 * ipa-inline-transform.c: Likewise.
1353 * ipa-polymorphic-call.c: Likewise.
1354 * ipa-fnsummary.h: Likewise.
1355 * ipa-inline.c: Likewise.
1356 (dump_inline_stats): Fix typo in debug dump message.
1357 * profile-count.h: Fix comment typos.
1360 * config/i386/i386.c (ix86_md_asm_adjust): If dest_mode is
1361 GET_MODE (dest), is not QImode, using ZERO_EXTEND and dest is not
1362 register_operand, force x into register before storing it into dest.
1366 * doc/extend.texi (attribute access): Fix a typo.
1368 PR rtl-optimization/92610
1369 * cse.c (rest_of_handle_cse2): Call cleanup_cfg (0) also if
1370 cse_cfg_altered is set, even when tem is 0.
1371 (rest_of_handle_cse_after_global_opts): Likewise.
1373 2019-11-22 Jakub Jelinek <jakub@redhat.com>
1376 * tree-hash-traits.h (tree_decl_hash, tree_ssa_name_hash,
1377 tree_hash): Move to ...
1378 * tree.h (tree_decl_hash, tree_ssa_name_hash, tree_hash): ... here.
1379 (struct decl_tree_cache_traits, struct type_tree_cache_traits): New
1381 (decl_tree_cache_map, tree_tree_cache_map): New typedefs.
1383 PR tree-optimization/92618
1384 * tree-ssa-reassoc.c (v_info): Change from auto_vec to a struct
1385 containing the auto_vec and a tree.
1386 (undistribute_bitref_for_vector): Handle the case when element type
1387 of vec is not the same as type of the BIT_FIELD_REF. Formatting
1390 2019-11-22 Martin Sebor <msebor@redhat.com>
1393 * attribs.h (struct attr_access): New.
1394 * attribs.c (decl_attributes): Add an informational note.
1395 * builtins.c (check_access): Make extern. Consistently set no-warning
1396 after issuing a warning. Handle calls through function pointers. Set
1398 * builtins.h (check_access): Declare.
1399 * calls.c (rdwr_access_hash): New type.
1401 (init_attr_rdwr_indices): New function.
1402 (maybe_warn_rdwr_sizes): Same.
1403 (initialize_argument_information): Call init_attr_rdwr_indices.
1404 Call maybe_warn_rdwr_sizes.
1405 (get_size_range): Avoid null argument.
1406 * doc/extend.texi (attribute access): Document new attribute.
1408 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1410 * config/gcn/gcn.c (OMP_LDS_SIZE): Define.
1411 (ACC_LDS_SIZE): Define.
1412 (OTHER_LDS_SIZE): Define.
1413 (LDS_SIZE): Redefine using above.
1414 (gcn_expand_prologue): Initialize m0 with LDS_SIZE-1.
1416 2019-11-22 Martin Sebor <msebor@redhat.com>
1419 * builtins.c (check_nul_terminated_array): New function.
1420 (fold_builtin_0): Remove declaration.
1421 (fold_builtin_1): Same.
1422 (fold_builtin_2): Same.
1423 (fold_builtin_3): Same.
1424 (fold_builtin_strpbrk): Add argument.
1425 (fold_builtin_strspn): Same.
1426 (fold_builtin_strcspn): Same.
1427 (expand_builtin_strcat): Call it. Remove unused argument.
1428 (expand_builtin_stpncpy): Same.
1429 (expand_builtin_strncat): Same.
1430 (expand_builtin_strncpy): Same. Adjust indentation.
1431 (expand_builtin_strcmp): Same.
1432 (expand_builtin_strncmp): Same.
1433 (expand_builtin_fork_or_exec): Same.
1434 (expand_builtin): Handle more built-ins.
1435 (fold_builtin_2): Add argument.
1436 (fold_builtin_n): Make static. Add argument.
1437 (fold_call_expr): Pass new argument to fold_builtin_n and fold_builtin_2.
1438 (fold_builtin_call_array): Pass new argument to fold_builtin_n.
1439 (fold_builtin_strpbrk): Add argument. Call check_nul_terminated_array.
1440 (fold_call_stmt): Pass new argument to fold_builtin_n.
1441 * builtins.h: Correct a comment.
1442 * gimple-fold.c (gimple_fold_builtin_strchr): Call
1443 check_nul_terminated_array.
1444 * tree-ssa-strlen.c (handle_builtin_strlen): Call
1445 check_nul_terminated_array.
1446 (handle_builtin_strchr): Same.
1447 (handle_builtin_string_cmp): Same.
1449 2019-11-22 Martin Sebor <msebor@redhat.com>
1451 PR tree-optimization/92501
1452 * gimple-fold.c ((gimple_fold_builtin_string_compare): Let strncmp
1453 handle unterminated arrays. Rename local variables for clarity.
1455 2019-11-22 Andrew Stubbs <ams@codesourcery.com>
1457 * config/gcn/gcn.c (gcn_hsa_declare_function_name): Calculate
1458 granulated_sgprs according to architecture.
1460 2019-11-22 Jan Hubicka <jh@suse.cz>
1462 * ggc-page.c (ggc_collect): Call memory_block_pool::trim.
1463 * memory-block.cc (memory_block_pool::clear_free_list): Rename to ...
1464 (memory_block_pool::reduce_free_list): ... this one.
1465 (memory_block_pool::trim): New static function.
1466 * memory-block.h (memory_block_pool::freelist_size): New constant
1467 (memory_block_pool::clear_free_list): Rename to ...
1468 (memory_block_pool::reduce_free_list): ... this one.
1469 (memory_block_pool::trim): Declare.
1471 2019-11-22 Richard Sandiford <richard.sandiford@arm.com>
1473 * tree-vect-stmts.c (vect_model_simple_cost): Take an optional
1475 (vectorizable_condition): Calculate the cost of EXTRACT_LAST_REDUCTION
1477 * tree-vect-loop.c (vect_model_reduction_cost): ...here.
1479 2019-11-22 Claudiu Zissulescu <claziss@synopsys.com>
1481 * config/arc/arc.md (bic_f): Use cc_set_register predicate.
1482 (bic_cmp0_noout): New pattern.
1483 (bic_cmp0): Likewise.
1484 (neg_scc_insn): Remove pattern.
1485 (not_scc_insn): Likewise.
1487 2019-11-21 Harald van Dijk <harald@gigawatt.nl>
1489 * doc/invoke.texi (-fcommon): Remove claim about ISO C.
1491 2019-11-21 Joseph Myers <joseph@codesourcery.com>
1493 * gimplify.c (expand_FALLTHROUGH_r, expand_FALLTHROUGH): Use
1494 pedwarn instead of warning_at for fallthrough not preceding a case
1497 2019-11-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1499 PR tree-optimization/92608
1500 * tree-ssa-loop-unswitch.c (find_loop_guard): Use safe_dyn_cast instead
1503 2019-11-21 Segher Boessenkool <segher@kernel.crashing.org>
1505 * config/rs6000/predicates.md (extra_insn_branch_comparison_operator):
1507 * config/rs6000/rs6000-protos.h (rs6000_emit_fp_cror): New declaration.
1508 * config/rs6000/rs6000.c (rs6000_generate_compare): Don't do anything
1509 special for FP comparisons that need a cror instruction eventually.
1510 (rs6000_emit_fp_cror): New function.
1511 (rs6000_emit_sCOND): Expand all floating point comparisons to one
1512 instruction, for normal FP modes, with HONOR_NANS.
1513 (rs6000_emit_cbranch): Reformat.
1514 * config/rs6000/rs6000.md (fp_rev): New iterator.
1515 (fp_two): New iterator.
1516 *<code><mode>_cc for fp_rev and GPR: New define_insn_and_split.
1517 *<code><mode>_cc for fp_two and GPR: New define_insn_and_split.
1518 *cbranch_2insn: New define_insn_and_split.
1520 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1522 PR tree-optimization/92526
1523 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Reject
1524 versioning for alignment if the accesses do not have a consistent
1525 mask, rather than asserting that the masks are consistent.
1527 2019-11-21 Richard Sandiford <richard.sandiford@arm.com>
1529 PR tree-optimization/92595
1530 * tree-vect-stmts.c (get_group_load_store_type): Add a VECTOR_MODE_P
1532 (vectorizable_store, vectorizable_load): Likewise.
1534 2019-11-21 Jan Hubicka <jh@suse.cz>
1536 * ipa-inline.c (update_callee_keys): Add parameter UPDATE_SINCE.
1537 (resolve_noninline_speculation, inline_small_functions): Avoid
1540 2019-11-21 Richard Biener <rguenther@suse.de>
1542 * lra.c (lra_insn_recog_data_pool): New.
1543 (free_insn_recog_data): Adjust.
1544 (finish_insn_recog_data): Release lra_insn_recog_data_pool.
1545 (lra_set_insn_recog_data): Allocate from lra_insn_recog_data_pool.
1547 2019-11-21 Richard Biener <rguenther@suse.de>
1549 PR tree-optimization/92596
1550 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto.
1552 2019-11-21 Jan Hubicka <jh@suse.cz>
1554 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Be
1555 ready for some vectors to not be allocated.
1556 (evaluate_properties_for_edge): Document better; make
1557 known_vals and known_aggs caller allocated; avoid determining
1558 values of parameters which are not used.
1559 (ipa_merge_fn_summary_after_inlining): Pre allocate known_vals and
1561 * ipa-inline-analysis.c (do_estimate_edge_time): Likewise.
1562 (do_estimate_edge_size): Likewise.
1563 (do_estimate_edge_hints): Likewise.
1564 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do not early exit when
1565 values are not known.
1566 (ipa_release_agg_values): Add option to not release vector itself.
1567 * ipa-prop.h (ipa_release_agg_values): Add parameter RELEASE_VECTOR.
1569 2019-11-21 Richard Biener <rguenther@suse.de>
1571 * cfgloop.h (loop_iterator::~loop_iterator): Remove.
1572 (loop_iterator::to_visit): Use an auto_vec with internal storage.
1573 (loop_iterator::loop_iterator): Adjust.
1574 * cfganal.c (compute_dominance_frontiers_1): Fold into...
1575 (compute_dominance_frontiers): ... this. Hoist invariant
1576 get_immediate_dominator call.
1577 (compute_idf): Use a work-set instead of a work-list for more
1578 optimal iteration order and duplicate avoidance.
1579 * tree-into-ssa.c (mark_phi_for_rewrite): Avoid re-allocating
1580 the vector all the time, instead pre-allocate the vector only
1582 (delete_update_ssa): Simplify.
1583 * vec.h (va_heap::release): Disable -Wfree-nonheap-object around it.
1585 2019-11-21 Jakub Jelinek <jakub@redhat.com>
1587 PR tree-optimization/91355
1588 * tree-ssa-sink.c (select_best_block): Use >= rather than >
1589 for early_bb scaled count with best_bb count comparison.
1591 * ipa-fnsummary.h (enum ipa_hints_vals): Fix comment typo,
1593 * ipa-inline.c (edge_badness): Likewise.
1594 * lto-streamer.h (class lto_location_cache): Likewise.
1595 * tree-ssa-sink.c (select_best_block): Likewise. Fix comment typos,
1596 gratutious -> gratuitous.
1598 2019-11-21 Richard Biener <rguenther@suse.de>
1601 2019-09-17 Richard Biener <rguenther@suse.de>
1603 PR tree-optimization/91790
1604 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1605 use the correct DR for setting up realignment.
1607 2019-11-21 Richard Biener <rguenther@suse.de>
1609 * tree-ssa-structalias.c (equiv_class_hasher): Change to nofree.
1610 (equiv_class_obstack): New.
1611 (equiv_class_lookup_or_add): Allocate from equiv_class_obstack.
1612 (perform_var_substitution): Initialize equiv_class_obstack.
1613 (free_var_substitution_info): Free equiv_class_obstack.
1615 2019-11-20 Jan Hubicka <jh@suse.cz>
1617 * ipa-inline.c (want_early_inline_function_p): Do not estimate
1618 edge growth when callee function is very large.
1619 * ipa-inline.h (estimate_min_edge_growth): New.
1621 2019-11-20 Jan Hubicka <jh@suse.cz>
1623 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Allow
1624 negative time in calls summary; correct roundoff errors
1625 leading to negative times.
1626 (ipa_merge_fn_summary_after_inlining): Update calls size time table
1628 (ipa_update_overall_fn_summary): Add RESET parameter.
1629 * ipa-fnsummary.h (ipa_update_overall_fn_summary): Update prototype.
1630 * ipa-inline-transform.c (inline_call): Enable incremental updates.
1632 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1634 * tree-vect-slp.c (vect_schedule_slp_instance): Restore stmt
1635 def types for two-operation SLP.
1637 2019-11-20 Richard Sandiford <richard.sandiford@arm.com>
1640 * doc/sourcebuild.texi (vect_char_add): Document.
1642 2019-11-20 Alexandre Oliva <oliva@adacore.com>
1644 * function.h (CALLEE_FROM_CGRAPH_P): Remove.
1645 * function.c (record_final_call): Record even calls that might
1646 have been in the cgraph.
1647 * toplev.c (dump_final_node_vcg): Skip iteration over cgraph
1650 2019-11-20 Janne Blomqvist <jb@gcc.gnu.org>
1652 * configure.ac: Use https for gcc.gnu.org
1653 * configure: Regenerated.
1654 * doc/install.texi: Use https for gcc.gnu.org.
1655 * doc/sourcebuild.texi: Likewise.
1657 2019-11-20 Julian Brown <julian@codesourcery.com>
1659 * config/gcn/gcn.c (gcn_asm_output_symbol_ref): Handle null cfun.
1661 2019-11-20 Jan Hubicka <jh@suse.cz>
1663 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Add CALL
1664 parameter and update call_size_time_table.
1665 (ipa_fn_summary::max_size_time_table_size): New constant.
1666 (estimate_calls_size_and_time_1): Break out from ...
1667 (estimate_calls_size_and_time): ... here; implement summary production.
1668 (summarize_calls_size_and_time): New function.
1669 (ipa_call_context::estimate_size_and_time): Bypass
1670 estimate_calls_size_and_time for leaf functions.
1671 (ipa_update_overall_fn_summary): Likewise.
1672 * ipa-fnsummary.h (call_size_time_table): New.
1673 (ipa_fn_summary::account_size_time): Update prototype.
1675 2019-11-20 Joseph Myers <joseph@codesourcery.com>
1677 * doc/invoke.texi (-Wc11-c2x-compat): Document.
1679 2019-11-20 Wilco Dijkstra <wdijkstr@arm.com>
1682 * common.opt (fcommon): Change init to 1.
1683 * doc/invoke.texi (-fcommon): Update documentation.
1685 2019-11-20 Jan Hubicka <jh@suse.cz>
1687 * fibonacci_heap.h (fibonacci_heap<K,V>::consolidate): Turn auto_vec
1690 2019-11-20 Jan Hubicka <jh@suse.cz>
1692 * fibonacci_heap.h (fibonacci_heap<K,V>::fibonacci_heap):
1693 Add allocator parameter.
1694 (fibonacci_heap<K,V>::~fibonacci_heap): Optimize destruction.
1695 (fibonacci_heap<K,V>::m_allocator): New.
1696 (fibonacci_heap<K,V>::m_own_allocator): New.
1697 (fibonacci_heap<K,V>::insert): Use allocator.
1698 (fibonacci_heap<K,V>::extract_min): Likewise.
1699 (fibonacci_heap<K,V>::union_with): Assert that both heaps share
1701 (fibonacci_heap<K,V>::consolidate): Allocate constant sized vector
1703 * fibonacci_heap.c: Include alloc-pool
1704 (test_empty_heap): Initialize allocator.
1705 (test_union): Likewise.
1706 * bb-reorder.c: Include alloc-pool.h.
1707 * tracer.c: Inlclude alloc-pool.h.
1709 2019-11-20 Jan Hubicka <jh@suse.cz>
1711 * lto-streamer-out.c (DFS::sccstack): Turn into auto-vec.
1712 Preallocate for 32 entries.
1713 (DFS::worklist): Likewise.
1714 (DFS::DFS): Do not initialize sccstack and worklist.
1715 (DFS::~DFS): Do not release sccstack.
1717 2019-11-20 Segher Boessenkool <segher@kernel.crashing.org>
1720 * config/rs6000/dfp.md (dfptstsfi_<code>_<mode> for DFP_TEST and DDTD):
1721 Handle UNORDERED if !HONOR_NANS.
1723 2019-11-20 Jan Hubicka <jh@suse.cz>
1725 * ipa-inline.c (wrapper_heuristics_may_apply): Break out from ...
1726 (edge_badness): ... here.
1727 (inline_small_functions): Use monotonicity of badness calculation
1728 to avoid redundant updates.
1730 2019-11-20 Richard Biener <rguenther@suse.de>
1732 * tree-vect-slp.c (vect_analyze_slp_instance): Dump
1733 constructors we are actually analyzing.
1734 (vect_slp_check_for_constructors): Do not vectorize uniform
1735 constuctors, do not dump here.
1737 2019-11-20 Richard Biener <rguenther@suse.de>
1739 PR tree-optimization/92537
1740 * tree-vect-slp.c (vect_analyze_slp_instance): Move CTOR
1741 vectorization validity check...
1742 (vect_slp_analyze_operations): ... here.
1744 2019-11-20 Claudiu Zissulescu <claziss@synopsys.com>
1746 * config/arc/arc-protos.h (make_pass_arc_ifcvt): Declare.
1747 (make_pass_arc_predicate_delay_insns): Likewise.
1748 * config/arc/arc.c (class pass_arc_ifcvt): Reformat text, add gate
1749 method, remove clone.
1750 (class pass_arc_predicate_delay_insns): Likewise.
1751 (arc_init): Remove registering of ARC specific passes.
1752 * config/arc/t-arc (PASSES_EXTRA): Add arc-passes.def.
1753 * config/arc/arc-passes.def: New file.
1755 2019-11-20 Jakub Jelinek <jakub@redhat.com>
1758 * expmed.c (store_bit_field_1): Handle the case where op0 is not a MEM
1759 and has a mode that doesn't have corresponding integral type.
1762 * config/i386/i386-options.c (ix86_valid_target_attribute_tree): Don't
1763 clear opts->x_ix86_isa_flags{,2} here...
1764 (ix86_valid_target_attribute_inner_p): ... but here when seeing
1765 arch=. Also clear opts->x_ix86_isa_flags{,2}_explicit.
1768 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Remove
1770 (insert_clobbers_for_var): Fix a typo in function comment.
1772 2019-11-20 Jiangning Liu <jiangning.liu@amperecomputing.com>
1773 Jakub Jelinek <jakub@redhat.com>
1776 * tree-ssa-phiopt.c (cond_store_replacement): Move lhs unsharing
1777 earlier. Set TREE_NO_WARNING on the rhs1 of the artificially added
1780 2019-11-20 Georg-Johann Lay <avr@gjlay.de>
1782 Make 0-series device specs work with older versions of avr-gcc.
1785 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Remove.
1786 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
1787 <*link_pm_base_address>: Don't write spec.
1788 <*link_arch>: Add --defsym=__RODATA_PM_OFFSET__= as needed.
1790 2019-11-20 Richard Biener <rguenther@suse.de>
1793 * builtins.c (compute_objsize): Deal with VLAs.
1795 2019-11-19 Pat Haugen <pthaugen@us.ibm.com>
1797 * config/rs6000/rs6000.c (move_to_end_of_ready): New, factored out
1799 (power6_sched_reorder2): Factored out from rs6000_sched_reorder2,
1801 (power9_sched_reorder2): Call new function.
1802 (rs6000_sched_reorder2): Likewise.
1804 2019-11-18 Jan Hubicka <jh@suse.cz>
1806 * ipa-fnsummary.c (estimate_edge_size_and_time): Drop parameter PROB.
1807 (estimate_calls_size_and_time): Update.
1809 2019-11-18 Jan Hubicka <jh@suse.cz>
1811 * ipa-inline.c (inlining_speedup): New function.
1812 (edge_badness): Use it.
1814 2019-11-19 Zoran Jovanovic <zoran.jovanovic@mips.com>
1815 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1817 * config/mips/mips-msa.md (msa_<msabr>_<msafmt_f>, msa_<msabr>_v_<msafmt_f>):
1818 Mark as not having "likely" version.
1819 * config/mips/mips.md (insn_count): The simd_div instruction with
1820 TARGET_CHECK_ZERO_DIV consists of 3 instructions.
1821 (can_delay): Exclude simd_branch.
1822 (defile_delay *): Add simd_branch instructions.
1823 They have one regular delay slot.
1825 2019-11-19 Richard Sandiford <richard.sandiford@arm.com>
1828 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1830 * cse.c (cse_insn): Delete no-op register moves too.
1831 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
1832 Take a second comparison to control the value for NE.
1833 (mask_to_comparison): Handle unsigned comparisons.
1834 (simplify_logical_relational_operation): Likewise. Update call
1835 to comparison_to_mask. Handle AND if !HONOR_NANs.
1836 (simplify_binary_operation_1): Call the above for AND too.
1838 2019-11-19 Martin Liska <mliska@suse.cz>
1840 * toplev.c (general_init): Move the call...
1841 (toplev::main): ... here as we need init_options_struct
1844 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1847 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
1850 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
1852 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
1853 (armv7-a): Likewise.
1854 (armv7ve): Likewise.
1856 2019-11-19 Richard Biener <rguenther@suse.de>
1858 PR tree-optimization/92581
1859 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
1860 condition reduction chains gather all conditions involved
1861 for computing the index reduction vector.
1863 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
1865 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
1866 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
1867 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
1868 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
1869 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
1870 (aarch64_init_memtag_builtins): New.
1871 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
1872 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
1873 (aarch64_expand_builtin_memtag): New.
1874 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
1875 (AARCH64_BUILTIN_SUBCODE): New macro.
1876 (aarch64_resolve_overloaded_memtag): New.
1877 (aarch64_resolve_overloaded_builtin_general): New. Call
1878 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
1879 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
1880 __ARM_FEATURE_MEMORY_TAGGING when enabled.
1881 (aarch64_resolve_overloaded_builtin): Call
1882 aarch64_resolve_overloaded_builtin_general.
1883 * config/aarch64/aarch64-protos.h
1884 (aarch64_resolve_overloaded_builtin_general): New declaration.
1885 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
1886 (TARGET_MEMTAG): Likewise.
1887 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
1888 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
1889 (irg, gmi, subp, addg, ldg, stg): New instructions.
1890 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
1891 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
1892 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
1893 (__arm_mte_get_tag): Likewise.
1894 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
1895 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
1896 * config/arm/types.md (memtag): New.
1897 * doc/invoke.texi (-memtag): Update description.
1899 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
1901 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
1902 to define __GCC_ASM_FLAG_OUTPUTS__.
1903 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
1904 (arm_option_params_internal): Swap out targetm.md_asm_adjust
1905 depending on TARGET_THUMB1.
1906 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
1908 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1911 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
1914 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
1915 operand is negative and one non-negative, compare the non-negative
1916 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
1917 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
1918 and s2 == 0, unless one of them is known to be negative. Remove
1919 tem2 variable, use tem where tem2 has been used before.
1921 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
1923 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
1925 2019-11-19 Jakub Jelinek <jakub@redhat.com>
1927 PR tree-optimization/92557
1928 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
1929 vmode rather than asserting it always is.
1931 2019-11-19 Richard Biener <rguenther@suse.de>
1933 PR tree-optimization/92554
1934 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
1935 for the actual condition stmt and deal with sign-changes.
1937 2019-11-19 Richard Biener <rguenther@suse.de>
1939 PR tree-optimization/92555
1940 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
1943 2019-11-19 Martin Liska <mliska@suse.cz>
1946 * config/riscv/riscv.c (riscv_address_insns): Initialize
1947 addr in order to remove boostrap -Wmaybe-uninitialized
1950 2019-11-18 Martin Sebor <msebor@redhat.com>
1952 PR tree-optimization/92493
1953 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
1956 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
1958 * cfgloop.c (get_loop_body_in_custom_order): New.
1959 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
1960 * tree-loop-distribution.c (class loop_distribution): New.
1961 (bb_top_order_cmp): Remove.
1962 (bb_top_order_cmp_r): New.
1963 (create_rdg_vertices): Move into class loop_distribution.
1964 (stmts_from_loop): Same as above.
1965 (update_for_merge): Same as above.
1966 (partition_merge_into): Same as above.
1967 (get_data_dependence): Same as above.
1968 (data_dep_in_cycle_p): Same as above.
1969 (update_type_for_merge): Same as above.
1970 (build_rdg_partition_for-vertex): Same as above.
1971 (classify_builtin_ldst): Same as above.
1972 (classify_partition): Same as above.
1973 (share_memory_accesses): Same as above.
1974 (rdg_build_partitions): Same as above.
1975 (pg_add_dependence_edges): Same as above.
1976 (build_partition_graph): Same as above.
1977 (merge_dep_scc_partitions): Same as above.
1978 (break_alias_scc_partitions): Same as above.
1979 (finalize_partitions): Same as above.
1980 (distribute_loop): Same as above.
1981 (bb_top_order_init): New method
1982 (bb_top_order_destroy): New method.
1983 (get_bb_top_order_index_size): New method.
1984 (get_bb_top_order_index_index): New method.
1985 (get_bb_top_order_index_index): New method.
1986 (loop_distribution::execute): New method.
1987 (pass_loop_distribution::execute): Instantiate loop_distribution.
1989 2019-11-18 Jan Hubicka <jh@suse.cz>
1992 * ipa-inline.c (inline_small_functions): Add new edges after reseting
1994 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
1996 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
1998 * doc/sourcebuild.texi (vect_check_ptrs): Document.
1999 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
2000 * doc/md.texi: Document them.
2001 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
2003 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
2004 * internal-fn.c (check_ptrs_direct): New macro.
2005 (expand_check_ptrs_optab_fn): Likewise.
2006 (direct_check_ptrs_optab_supported_p): Likewise.
2007 (internal_check_ptrs_fn_supported_p): New fuction.
2008 * tree-data-ref.c: Include internal-fn.h.
2009 (create_ifn_alias_checks): New function.
2010 (create_intersect_range_checks): Use it.
2011 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
2012 (optab, cmp_op): Handle it.
2013 (raw_war, unspec): New int attributes.
2014 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
2016 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
2018 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
2020 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
2023 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2025 * tree.c (build_vector_from_ctor): Directly return a zero vector for
2028 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2030 * cse.c (cse_insn): Delete no-op register moves too.
2031 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
2032 Take a second comparison to control the value for NE.
2033 (mask_to_comparison): Handle unsigned comparisons.
2034 (simplify_logical_relational_operation): Likewise. Update call
2035 to comparison_to_mask. Handle AND if !HONOR_NANs.
2036 (simplify_binary_operation_1): Call the above for AND too.
2038 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2040 * fold-const.c (native_encode_vector): Turn into a wrapper function,
2041 splitting the main code out into...
2042 (native_encode_vector_part): ...this new function.
2043 (native_decode_vector_tree): New function.
2044 (fold_view_convert_vector_encoding): Likewise.
2045 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
2048 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2050 * tree-data-ref.c (create_intersect_range_checks_index): If the
2051 alias pair describes simple WAW and WAR dependencies, just check
2052 whether the first B access overlaps later A accesses.
2053 (create_waw_or_war_checks): New function that performs the same
2054 optimization on addresses.
2055 (create_intersect_range_checks): Call it.
2057 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
2059 * lra-constraints.c (valid_address_p): Take the operand and a
2060 constraint as argument. If the operand is a MEM and the constraint
2061 is a memory constraint, check whether the eliminated form of the
2062 MEM already satisfies the constraint.
2063 (process_address_1): Update calls accordingly.
2065 2019-11-18 Tom Tromey <tromey@adacore.com>
2067 * doc/tm.texi: Rebuild.
2068 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
2069 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
2071 2019-11-18 Richard Biener <rguenther@suse.de>
2073 PR tree-optimization/92516
2074 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
2075 argument, hoist bst_map creation/destruction to ...
2076 (vect_analyze_slp): ... here, forming a true graph with
2077 SLP instances being the entries.
2078 (vect_detect_hybrid_slp_stmts): Remove wrapper.
2079 (vect_detect_hybrid_slp): Use one visited set for all
2081 (vect_slp_analyze_node_operations): Simplify visited/lvisited
2082 to hash-sets of slp_tree.
2083 (vect_slp_analyze_operations): Likewise.
2084 (vect_bb_slp_scalar_cost): Remove wrapper.
2085 (vect_bb_vectorization_profitable_p): Use one visited set for
2087 (vect_schedule_slp_instance): Elide bst_map use.
2088 (vect_schedule_slp): Likewise.
2090 2019-11-18 Richard Biener <rguenther@suse.de>
2092 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
2093 was vectorized with just external refs fail.
2095 2019-11-18 Martin Liska <mliska@suse.cz>
2098 * ipa-icf.c (sem_function::init): Unset m_checker
2099 at the end of the function.
2101 2019-11-18 Richard Biener <rguenther@suse.de>
2103 PR tree-optimization/92558
2104 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
2105 reducting the width of a reduction vector def update new_phis.
2107 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2109 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
2110 and s390*-*-linux-musl* targets.
2111 * configure: Regenerate.
2113 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
2115 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
2116 (MUSL_DYNAMIC_LINKER64): Define.
2118 2019-11-18 Martin Liska <mliska@suse.cz>
2120 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
2121 message for an unknown counter.
2122 (dbg_cnt_process_single_pair): Support 0 as minimum value.
2123 (dbg_cnt_process_opt): Remove unreachable code.
2125 2019-11-18 Martin Liska <mliska@suse.cz>
2128 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
2129 Compare LHS types of NOP_EXPR.
2131 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
2133 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
2134 "initial_pass_name" argument -- by running "*clean_state" pass.
2135 Also free the "initial_pass_name" when done.
2137 2019-11-18 Richard Biener <rguenther@suse.de>
2139 PR rtl-optimization/92462
2140 * alias.c (find_base_term): Restrict the look through ANDs.
2141 (find_base_value): Likewise.
2143 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
2145 Add support for AVR devices from the 0-series.
2148 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
2149 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
2150 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
2151 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
2152 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
2153 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
2154 for spec definitions.
2155 * doc/avr-mmcu.texi: Regenerate.
2157 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
2160 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
2161 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
2162 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
2163 (ix86_reassociation_width): Ditto.
2164 * config/i386/i386-options.c (ix86_option_override_internal):
2165 Replace TARGET_AVX128_OPTIAML with
2166 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
2167 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
2168 (TARGET_AVX128_OPTIMAL): Deleted.
2169 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
2172 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2174 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
2175 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
2177 (cceq_rev_compare): Rename to...
2178 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
2180 (define_split for <bd>tf_<mode>): Add SImode first argument to
2181 gen_cceq_ior_compare.
2183 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
2185 * common/config/powerpcspe: Delete.
2187 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2189 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
2190 output in UNSPEC_WRFFR.
2192 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2194 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
2195 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
2197 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2199 * tree-data-ref.c (create_intersect_range_checks_index)
2200 (create_intersect_range_checks): Print dump messages.
2202 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2204 * tree-data-ref.c (dump_alias_pair): New function.
2205 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
2207 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2209 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
2210 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
2211 merging data references with different steps.
2212 (create_intersect_range_checks_index): Take a
2213 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
2214 Bail out if DR_ALIAS_MIXED_STEPS is set.
2215 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
2216 instead of two dr_with_seg_lens. Update call to
2217 create_intersect_range_checks_index.
2218 (create_runtime_alias_checks): Update call accordingly.
2220 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2222 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
2223 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
2224 (dr_with_seg_len_pair_t::sequencing): New enum.
2225 (dr_with_seg_len_pair_t::flags): New member variable.
2226 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
2227 parameter and initialize the flags member variable.
2228 * tree-loop-distribution.c (compute_alias_check_pairs): Update
2230 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2231 Ensure the two data references in an alias pair are in statement
2232 order, if there is a defined order.
2233 * tree-data-ref.c (prune_runtime_alias_test_list): Use
2234 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
2235 swapped the references in a dr_with_seg_len_pair_t. OR together
2236 the flags when merging two dr_with_seg_len_pair_ts. After merging,
2237 try to restore the original dr_with_seg_len order, updating the
2238 flags if that fails.
2240 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2242 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
2243 swapping the dr_as based on init values until we've decided
2244 whether to merge them.
2246 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2248 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
2249 two accesses in each dr_with_seg_len_pair_t before trying to
2250 combine separate dr_with_seg_len_pair_ts.
2251 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
2253 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
2255 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2257 * config/aarch64/aarch64-sve.md
2258 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2259 (scatter_store<SVE_24:mode><v_int_container>): ...this.
2260 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2261 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
2262 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2263 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
2264 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
2266 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2267 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2268 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2269 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2271 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2273 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
2274 (SVE_4HSI): New mode iterators.
2275 (ANY_EXTEND2): New code iterator.
2276 * config/aarch64/aarch64-sve.md
2277 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
2279 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
2280 ...this, handling extension to partial modes as well as full modes.
2281 Describe the extension as a predicated rather than unpredicated
2283 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2284 Likewise extend to...
2285 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
2286 ...this, making the same adjustments.
2287 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2288 Likewise extend to...
2289 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
2290 ...this, making the same adjustments.
2291 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2292 Likewise extend to...
2293 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
2294 ...this, making the same adjustments.
2295 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
2297 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
2298 extension predicate.
2299 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2300 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
2301 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
2302 Describe the extension as a predicated rather than unpredicated
2304 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
2305 Likewise. Canonicalize to a constant extension predicate.
2306 * config/aarch64/aarch64-sve-builtins-base.cc
2307 (svld1_gather_extend_impl::expand): Add an extra predicate for
2309 (svldff1_gather_extend_impl::expand): Likewise.
2311 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2313 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
2315 * config/aarch64/aarch64-sve.md
2316 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
2317 (gather_load<SVE_24:mode><v_int_container>): ...this.
2318 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
2319 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
2320 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
2321 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
2322 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
2324 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
2325 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
2326 Allow the nominal extension predicate to be different from the
2328 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
2329 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
2331 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2333 * config/aarch64/aarch64-sve.md
2334 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
2335 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
2337 (aarch64_sve_adjust_stmt_cost): Call it.
2339 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2341 * config/aarch64/aarch64-sve.md
2342 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
2343 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2344 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2346 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2347 ...this new pattern, handling extension to partial modes as well
2348 as full modes. Describe the extension as a predicated rather than
2349 unpredicated extension.
2350 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
2351 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
2352 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
2354 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
2355 ...this new pattern, handling extension to partial modes as well
2356 as full modes. Describe the extension as a predicated rather than
2357 unpredicated extension.
2358 * config/aarch64/aarch64-sve-builtins.cc
2359 (function_expander::use_contiguous_load_insn): Add an extra
2360 predicate for extending loads.
2361 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
2362 (aarch64_sve_adjust_stmt_cost): Likewise.
2363 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
2364 the cost of SVE vector stmts.
2366 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2368 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
2369 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
2370 * config/aarch64/aarch64-sve.md
2371 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
2372 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
2373 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
2374 comment. Avoid new narrower_mask ambiguity.
2375 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2376 (*cond_uxt<mode>_2): Update comment.
2377 (*cond_uxt<mode>_any): Likewise.
2379 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2381 * config/aarch64/aarch64-modes.def: Define partial SVE vector
2383 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
2385 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
2386 new vector float modes.
2387 (aarch64_sve_container_bits): New function.
2388 (aarch64_sve_pred_mode): Likewise.
2389 (aarch64_get_mask_mode): Use it.
2390 (aarch64_sve_element_int_mode): Handle structure modes and partial
2392 (aarch64_sve_container_int_mode): New function.
2393 (aarch64_vectorize_related_mode): Return SVE modes when given
2394 SVE modes. Handle partial modes, taking the preferred number
2395 of units from the size of the given mode.
2396 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
2398 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
2399 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
2400 (aarch64_split_sve_subreg_move): Use the mode form of
2401 aarch64_sve_pred_mode.
2402 (aarch64_secondary_reload): Handle partial modes in the same way
2403 as full big-endian vectors.
2404 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
2405 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
2406 merging with the Advanced SIMD modes. If two modes have the
2407 same size, try the Advanced SIMD mode first.
2408 (aarch64_simd_valid_immediate): Use the container rather than
2409 the element mode for INDEX constants.
2410 (aarch64_simd_vector_alignment): Make the alignment of partial
2411 SVE vector modes the same as their minimum size.
2412 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
2413 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
2414 (mov<SVE_ALL:mode>): ...this.
2415 (movmisalign<SVE_FULL:mode>): Extend to...
2416 (movmisalign<SVE_ALL:mode>): ...this.
2417 (*aarch64_sve_mov<mode>_le): Rename to...
2418 (*aarch64_sve_mov<mode>_ldr_str): ...this.
2419 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
2420 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
2421 partial modes regardless of endianness.
2422 (aarch64_sve_reload_be): Rename to...
2423 (aarch64_sve_reload_mem): ...this and enable for little-endian.
2424 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
2425 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
2426 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
2427 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
2428 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
2429 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2430 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2431 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
2432 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
2433 (maskload<SVE_FULL:mode><vpred>): Extend to...
2434 (maskload<SVE_ALL:mode><vpred>): ...this.
2435 (maskstore<SVE_FULL:mode><vpred>): Extend to...
2436 (maskstore<SVE_ALL:mode><vpred>): ...this.
2437 (vec_duplicate<SVE_FULL:mode>): Extend to...
2438 (vec_duplicate<SVE_ALL:mode>): ...this.
2439 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
2440 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
2441 (sve_ld1r<SVE_FULL:mode>): Extend to...
2442 (sve_ld1r<SVE_ALL:mode>): ...this.
2443 (vec_series<SVE_FULL_I:mode>): Extend to...
2444 (vec_series<SVE_I:mode>): ...this.
2445 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
2446 (*vec_series<SVE_I:mode>_plus): ...this.
2447 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
2448 new VPRED ambiguity.
2449 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
2450 (add<SVE_FULL_I:mode>3): Extend to...
2451 (add<SVE_I:mode>3): ...this.
2452 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
2453 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
2454 (VPRED, vpred): Likewise.
2455 (Vctype): New iterator.
2456 (vw): Remove SVE modes.
2458 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2460 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
2461 (SVE_PARTIAL_I): ...this.
2462 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2464 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2466 * config/aarch64/iterators.md (SVE_ALL): Rename to...
2467 (SVE_FULL): ...this.
2468 (SVE_I): Rename to...
2469 (SVE_FULL_I): ...this.
2470 (SVE_F): Rename to...
2471 (SVE_FULL_F): ...this.
2472 (SVE_BHSI): Rename to...
2473 (SVE_FULL_BHSI): ...this.
2474 (SVE_HSD): Rename to...
2475 (SVE_FULL_HSD): ...this.
2476 (SVE_HSDI): Rename to...
2477 (SVE_FULL_HSDI): ...this.
2478 (SVE_HSF): Rename to...
2479 (SVE_FULL_HSF): ...this.
2480 (SVE_SD): Rename to...
2481 (SVE_FULL_SD): ...this.
2482 (SVE_SDI): Rename to...
2483 (SVE_FULL_SDI): ...this.
2484 (SVE_SDF): Rename to...
2485 (SVE_FULL_SDF): ...this.
2486 (SVE_S): Rename to...
2487 (SVE_FULL_S): ...this.
2488 (SVE_D): Rename to...
2489 (SVE_FULL_D): ...this.
2490 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
2491 * config/aarch64/aarch64-sve2.md: Likewise.
2493 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2495 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
2497 * doc/invoke.texi: Document it.
2498 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2499 By default, return VECT_COMPARE_COSTS for SVE.
2501 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2503 * target.h (VECT_COMPARE_COSTS): New constant.
2504 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
2505 * doc/tm.texi: Regenerate.
2506 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
2507 * targhooks.c (default_autovectorize_vector_modes): Likewise.
2508 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
2510 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
2511 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
2512 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
2513 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
2514 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
2515 (_loop_vec_info::vec_inside_cost): New member variables.
2516 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
2517 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
2518 (vect_analyze_loop): When autovectorize_vector_modes returns
2519 VECT_COMPARE_COSTS, try vectorizing the loop with each available
2520 vector mode and picking the one with the lowest cost.
2521 (vect_estimate_min_profitable_iters): Record the computed costs
2522 in the loop_vec_info.
2524 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2526 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
2527 element type rather than an element mode.
2528 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2529 Use get_vectype_for_scalar_type to query the natural types
2530 for a given element type rather than basing everything on
2531 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
2532 query to MAX_FIXED_MODE_SIZE.
2533 (duplicate_and_interleave): Update call accordingly.
2534 * tree-vect-loop.c (vectorizable_reduction): Likewise.
2536 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
2538 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
2539 optional maximum nunits.
2540 (get_vectype_for_scalar_type): Likewise. Also declare a form that
2542 (get_mask_type_for_scalar_type): Take an optional slp_tree.
2543 (vect_get_mask_type_for_stmt): Likewise.
2544 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
2545 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
2546 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
2547 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
2548 to get an assumed vector type for data references.
2549 * tree-vect-slp.c (vect_update_shared_vectype): New function.
2550 (vect_update_all_shared_vectypes): Likewise.
2551 (vect_build_slp_tree_1): Pass the group size to
2552 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
2553 for BB vectorization.
2554 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
2555 before building the vectof from scalars.
2556 (vect_analyze_slp_instance): Pass the group size to
2557 get_vectype_for_scalar_type.
2558 (vect_slp_analyze_node_operations_1): Don't recompute the vector
2559 types for BB vectorization here; just handle the case in which
2560 we deferred the choice for booleans.
2561 (vect_get_constant_vectors): Pass the slp_tree to
2562 get_vectype_for_scalar_type.
2563 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
2564 (vectorizable_call): Likewise.
2565 (vectorizable_simd_clone_call): Likewise.
2566 (vectorizable_conversion): Likewise.
2567 (vectorizable_shift): Likewise.
2568 (vectorizable_operation): Likewise.
2569 (vectorizable_comparison): Likewise.
2570 (vect_is_simple_cond): Take the slp_tree as argument and
2571 pass it to get_vectype_for_scalar_type.
2572 (vectorizable_condition): Update call accordingly.
2573 (get_vectype_for_scalar_type): Take a group_size argument.
2574 For BB vectorization, limit the the vector to that number
2575 of elements. Also define an overload that takes an slp_tree.
2576 (get_mask_type_for_scalar_type): Add an slp_tree argument and
2577 pass it to get_vectype_for_scalar_type.
2578 (vect_get_vector_types_for_stmt): Add a group_size argument
2579 and pass it to get_vectype_for_scalar_type. Don't use the
2580 cached vector type for BB vectorization if a group size is given.
2581 Handle data references in that case.
2582 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
2583 pass it to get_mask_type_for_scalar_type.
2585 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2587 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
2589 (estimate_edge_time): Use it.
2590 * ipa-inline-analysis.c (do_estimate_edge_time): Add
2591 ret_nonspec_time parameter.
2593 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
2595 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
2597 2019-11-15 Nick Clifton <nickc@redhat.com>
2598 Szabolcs Nagy <szabolcs.nagy@arm.com>
2601 * config/microblaze/microblaze.c (print_operand): Print value as long.
2603 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
2605 * ipa-inline.c (edge_badness, inline_small_functions): Revert
2608 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2610 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
2611 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
2613 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2615 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
2616 (gcn_conditional_register_usage): Use constants in place of hard-coded
2618 (gcn_hsa_declare_function_name): Set lower bound for number of
2619 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
2620 MAX_NORMAL_VGPR_COUNT.
2622 2019-11-15 Martin Jambor <mjambor@suse.cz>
2624 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
2627 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2629 * config/gcn/gcn.c (default_requested_args): New.
2630 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
2631 set with default_requested_args.
2632 (gcn_conditional_register_usage): Limit register usage of non-kernel
2633 functions. Reassign fixed registers if a non-standard set of args is
2635 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
2637 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2640 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
2641 aggregate jump function when inlined-to caller has no edge summary.
2643 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2645 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
2647 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2649 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
2651 (print_operand_address): Use v1 for zero vector offset.
2653 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2655 PR tree-optimization/92515
2656 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
2657 types when converting a vector/scalar shift into a vector/vector one,
2658 using tree_nop_conversion_p instead of useless_type_conversion_p.
2659 Move the conversion code to the transform block.
2661 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2663 * read-rtl-function.c
2664 (function_reader::add_fixup_source_location): Take additional
2665 parameter of a column.
2666 (function_reader::maybe_read_location): Optionally parse column
2667 information and pass to add_fixup_source_location.
2669 2019-11-15 Richard Biener <rguenther@suse.de>
2671 PR tree-optimization/92512
2672 * tree-vect-loop.c (check_reduction_path): Fix operand index
2673 computability check. Add check for second use in COND_EXPRs.
2675 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
2678 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
2679 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
2681 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
2683 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
2684 register class for VCC_LO and VCC_HI.
2685 (gcn_spill_class): Use SGPR_REGS to spill registers in
2686 VCC_CONDITIONAL_REG.
2688 2019-11-15 Richard Biener <rguenther@suse.de>
2690 PR tree-optimization/92324
2691 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
2692 singedness of SLP reduction epilouge operations. Also reduce
2693 the vector width for SLP reductions before doing elementwise
2694 operations if possible.
2696 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2698 * passes.c (skip_pass): Set epilogue_completed if skipping the
2699 pro_and_epilogue pass.
2701 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
2703 * passes.c (should_skip_pass_p): Always run "dfinish".
2705 2019-11-15 Richard Biener <rguenther@suse.de>
2707 * ipa-inline.c (inline_small_functions): Move assignment
2708 to next before call destroying edge.
2710 2019-11-15 Richard Biener <rguenther@suse.de>
2712 PR tree-optimization/92039
2713 PR tree-optimization/91975
2714 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
2715 previous change, treat invariants consistently as non-constant.
2716 (tree_estimate_loop_size): Ternary ops with just the first op
2717 constant are not optimized away.
2719 2019-11-15 Jakub Jelinek <jakub@redhat.com>
2721 * gimplify.c (gimplify_call_expr): Don't call
2722 omp_resolve_declare_variant after gimplification.
2723 * omp-general.c (omp_context_selector_matches): For isa that might
2724 match in some other function, defer if in declare simd function.
2725 (omp_context_compute_score): Don't look for " score" in construct
2726 trait set. Set *score to -1 if it can't ever match.
2727 (omp_resolve_declare_variant): If any variants need to be deferred,
2728 don't punt immediately, but compute scores of all variants and if
2729 ther eis a score winner that doesn't need to be deferred, return that.
2731 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
2733 * ipa-comdats.c: Fix comments typo.
2734 * ipa-profile.c: Fix comments typo.
2735 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
2736 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
2737 (gimple_gen_ic_func_profiler): Likewise.
2738 (pass_ipa_tree_profile::gate): Fix comments typo.
2740 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
2742 * ipa-inline.c (inline_small_functions): Update iterator of next.
2744 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
2746 * lra-spills.c (assign_spill_hard_regs): Check that the spill
2747 register is suitable for the mode.
2749 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2751 * range-op.h (range_operator::fold_range): Return a bool.
2752 * range-op.cc (range_operator::wi_fold): Assert supported type.
2753 (range_operator::fold_range): Assert supported type and return true.
2754 (operator_equal::fold_range): Return true.
2755 (operator_not_equal::fold_range): Same.
2756 (operator_lt::fold_range): Same.
2757 (operator_le::fold_range): Same.
2758 (operator_gt::fold_range): Same.
2759 (operator_ge::fold_range): Same.
2760 (operator_plus::op1_range): Adjust call to fold_range.
2761 (operator_plus::op2_range): Same.
2762 (operator_minus::op1_range): Same.
2763 (operator_minus::op2_range): Same.
2764 (operator_exact_divide::op1_range): Same.
2765 (operator_lshift::fold_range): Return true and adjust fold_range call.
2766 (operator_rshift::fold_range): Same.
2767 (operator_cast::fold_range): Return true.
2768 (operator_logical_and::fold_range): Same.
2769 (operator_logical_or::fold_range): Same.
2770 (operator_logical_not::fold_range): Same.
2771 (operator_bitwise_not::fold_range): Adjust call to fold_range.
2772 (operator_bitwise_not::op1_range): Same.
2773 (operator_cst::fold_range): Return true.
2774 (operator_identity::fold_range): Return true.
2775 (operator_negate::fold_range): Return true and adjust fold_range call.
2776 (operator_addr_expr::fold_range): Return true.
2777 (operator_addr_expr::op1_range): Adjust call to fold_range.
2779 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
2780 (range_fold_unary_symbolics_p): Same.
2782 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
2784 PR tree-optimization/92506
2785 * range-op.cc (range_operator::fold_range): Start with range undefined.
2786 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
2787 overflow is varying.
2789 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
2791 * range-op.cc (*operator*::*range): Remove calls to
2792 range_intersect, range_invert, and range_union in favor of calling
2793 the in-place API methods.
2794 (range_tests): Same.
2795 * range.cc (range_intersect): Remove.
2796 (range_union): Remove.
2797 (range_invert): Remove.
2798 * range.h (range_intersect): Remove.
2799 (range_union): Remove.
2800 (range_intersect): Remove.
2802 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
2804 PR rtl-optimization/92430
2805 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
2806 (pass_jump_after_combine::execute): Perform jump threading
2809 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2810 Doug Rupp <rupp@adacore.com>
2811 Olivier Hainque <hainque@adacore.com>
2813 * config.gcc: Collapse the arm-vxworks entries into
2814 a single arm-wrs-vxworks7* one, bpabi based. Update
2815 the default cpu from arm8 to armv7-a
2816 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
2817 we always use ARM_UNWIND_INFO.
2818 (DWARF2_UNWIND_INFO): Remove redefinition.
2819 (ARM_TARGET2_DWARF_FORMAT): Likewise.
2820 (VXWORKS_PERSONALITY): Define, to "llvm".
2821 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
2823 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
2825 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
2826 _VX_CPU instead of CPU and handle arm_arch8.
2828 2019-11-14 Doug Rupp <rupp@adacore.com>
2829 Olivier Hainque <hainque@adacore.com>
2830 Jerome Lambourg <lambourg@adacore.com>
2832 * config.gcc: Handle aarch64*-wrs-vxworks7*.
2833 * config/aarch64/aarch64-vxworks.h: New file.
2834 * config/aarch64/t-aarch64-vxworks: New file.
2836 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2837 Olivier Hainque <hainque@adacore.com>
2839 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
2840 definition, pointless with a VxWorks specific version
2842 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
2843 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
2844 New local macros, controlling the addition of vxworks specific
2845 crtstuff objects depending on the EH mechanism and kind of
2846 module being linked.
2847 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
2849 2019-11-06 Pat Bernardi <bernardi@adacore.com>
2850 Jerome Lambourg <lambourg@adacore.com>
2851 Olivier Hainque <hainque@adacore.com>
2853 * config.gcc: Add comment to introduce the TARGET_VXWORKS
2854 common macro definitions, conveying VXWORKS7 or 64bit general
2855 variations. Add a block to set gcc_cv_initfini_array
2856 unconditionally to "yes" for VxWorks7.
2857 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
2858 by default. Update some comments.
2859 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
2860 default, to be added the end of VXWORKS_LIBS_RTP.
2861 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
2862 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
2864 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
2865 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
2866 to account for the now available TLS abilities.
2867 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
2868 (VXWORKS_HAVE_TLS): Likewise.
2870 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2872 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
2873 (vect_slp_convert_to_external): Likewise.
2874 (vect_slp_analyze_node_operations): If analysis fails, try building
2875 the node from scalars instead.
2877 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2879 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
2880 between vector types.
2881 * tree-vect-stmts.c (vectorizable_conversion): Extend the
2882 non-widening and non-narrowing path to handle standard
2883 conversion codes, if the target supports them.
2884 * expr.c (convert_move): Try using the extend and truncate optabs
2886 * optabs-tree.c (supportable_convert_operation): Likewise.
2887 * config/aarch64/iterators.md (Vnarroqw): New iterator.
2888 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
2889 (trunc<mode><Vnarrowq>2): New patterns.
2891 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2893 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
2894 require vectype and nunits_vectype to have the same size;
2895 instead assert that nunits_vectype has at least as many
2896 elements as vectype. Don't compute a separate nunits_vectype
2897 if the scalar type is obviously the same as vectype's.
2898 Tweak dump messages.
2900 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2902 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
2904 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
2905 (TARGET_VECTORIZE_RELATED_MODE): Define.
2907 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2909 * tree-vectorizer.h (vec_info::mode_set): New typedef.
2910 (vec_info::used_vector_mode): New member variable.
2911 (vect_chooses_same_modes_p): Declare.
2912 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
2913 chosen vector mode in vec_info::used_vector_mode.
2914 (vect_chooses_same_modes_p): New function.
2915 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
2916 the same vector statements multiple times.
2917 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2919 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2921 * machmode.h (opt_machine_mode::operator==): New function.
2922 (opt_machine_mode::operator!=): Likewise.
2923 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
2924 (get_related_vectype_for_scalar_type): Delete.
2925 (get_vectype_for_scalar_type_and_size): Declare.
2926 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
2927 whether analysis passed or failed, and with what vector modes.
2928 Use related_vector_mode to check whether trying a particular
2929 vector mode would be redundant with the autodetected mode,
2930 and print a dump message if we decide to skip it.
2931 * tree-vect-loop.c (vect_analyze_loop): Likewise.
2932 (vect_create_epilog_for_reduction): Use
2933 get_related_vectype_for_scalar_type instead of
2934 get_vectype_for_scalar_type_and_size.
2935 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
2937 (get_related_vectype_for_scalar_type): ...this new function.
2938 Take a starting/"prevailing" vector mode rather than a vector size.
2939 Take an optional nunits argument, with the same meaning as for
2940 related_vector_mode. Use related_vector_mode when not
2941 auto-detecting a mode, falling back to mode_for_vector if no
2943 (get_vectype_for_scalar_type): Update accordingly.
2944 (get_same_sized_vectype): Likewise.
2945 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
2947 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2949 * tree-vect-stmts.c (vectorizable_call): Require the types
2950 to have the same size.
2952 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2954 * tree-vect-stmts.c (vectorizable_call): If an operand is
2955 constant or external, use get_vectype_for_scalar_type
2956 rather than get_same_sized_vectype to get its vector type.
2957 (vectorizable_conversion, vectorizable_shift): Likewise.
2958 (vectorizable_operation): Likewise.
2960 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2962 * tree-vectorizer.h (vec_info::vector_size): Replace with...
2963 (vec_info::vector_mode): ...this new field.
2964 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
2965 (vect_analyze_loop, vect_transform_loop): Likewise.
2966 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
2967 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
2968 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
2969 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
2970 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
2972 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
2974 * target.h (vector_sizes, auto_vector_sizes): Delete.
2975 (vector_modes, auto_vector_modes): New typedefs.
2976 * target.def (autovectorize_vector_sizes): Replace with...
2977 (autovectorize_vector_modes): ...this new hook.
2978 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
2980 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
2981 * doc/tm.texi: Regenerate.
2982 * targhooks.h (default_autovectorize_vector_sizes): Delete.
2983 (default_autovectorize_vector_modes): New function.
2984 * targhooks.c (default_autovectorize_vector_sizes): Delete.
2985 (default_autovectorize_vector_modes): New function.
2986 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
2987 of autovectorize_vector_sizes. Use the number of units in the mode
2988 to calculate the maximum VF.
2989 * omp-low.c (omp_clause_aligned_alignment): Use
2990 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2991 Use a loop based on related_mode to iterate through all supported
2992 vector modes for a given scalar mode.
2993 * optabs-query.c (can_vec_mask_load_store_p): Use
2994 autovectorize_vector_modes instead of autovectorize_vector_sizes.
2995 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
2996 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
2997 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
2999 (aarch64_autovectorize_vector_modes): ...this new function.
3000 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3001 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3002 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
3003 (arc_autovectorize_vector_modes): ...this new function.
3004 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3005 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3006 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
3007 (arm_autovectorize_vector_modes): ...this new function.
3008 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3009 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3010 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
3011 (ix86_autovectorize_vector_modes): ...this new function.
3012 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3013 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3014 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
3015 (mips_autovectorize_vector_modes): ...this new function.
3016 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
3017 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
3019 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3021 * tree-vect-stmts.c (vectorizable_shift): Check the number
3022 of vector elements as well as the type mode when deciding
3023 whether an op1_vectype is compatible. Reuse the result of
3024 this check when generating vector statements.
3026 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3028 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
3029 targetm.vectorize.preferred_simd_mode returns an integer mode,
3030 use mode_for_vector to decide what the vector type's mode
3031 should actually be. Use build_vector_type_for_mode instead
3032 of build_vector_type.
3034 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3036 * target.def (get_mask_mode): Take a vector mode itself as argument,
3037 instead of properties about the vector mode.
3038 * doc/tm.texi: Regenerate.
3039 * targhooks.h (default_get_mask_mode): Update to reflect new
3040 get_mode_mask interface.
3041 * targhooks.c (default_get_mask_mode): Likewise. Use
3042 related_int_vector_mode.
3043 * optabs-query.c (can_vec_mask_load_store_p): Update call
3045 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
3046 first that the original mode really is a vector.
3047 * tree.c (build_truth_vector_type_for): Likewise.
3048 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
3049 get_mode_mask interface.
3050 (aarch64_expand_sve_vcond): Update call accordingly.
3051 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
3052 get_mode_mask interface.
3053 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
3055 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3057 * tree.h (build_truth_vector_type): Delete.
3058 (build_same_sized_truth_vector_type): Likewise.
3059 * tree.c (build_truth_vector_type): Rename to...
3060 (build_truth_vector_type_for): ...this. Make static and take
3061 a vector type as argument.
3062 (truth_type_for): Update accordingly.
3063 (build_same_sized_truth_vector_type): Delete.
3064 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
3065 instead of build_same_sized_truth_vector_type.
3066 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
3067 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
3068 * tree-vect-patterns.c (build_mask_conversion): Likeise.
3069 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3070 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
3071 (vect_build_gather_load_calls, vectorizable_call): Likewise.
3072 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
3073 (vectorizable_store, vectorizable_condition): Likewise.
3074 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
3075 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
3076 build_truth_vector_type.
3077 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
3078 Use truth_type_for instead of build_same_sized_truth_vector_type.
3079 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
3081 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3083 * tree.h (build_truth_vector_type_for_mode): Declare.
3084 * tree.c (build_truth_vector_type_for_mode): New function,
3086 (build_truth_vector_type): ...here.
3087 (build_opaque_vector_type): Fix head comment.
3088 * tree-vectorizer.h (supportable_narrowing_operation): Remove
3090 (vect_halve_mask_nunits): Replace vec_info parameter with the
3091 mode of the new vector.
3092 (vect_double_mask_nunits): Likewise.
3093 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
3094 (vect_double_mask_nunits): Likewise.
3095 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
3096 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
3097 to vect_halve_mask_nunits, getting the required mode from the unpack
3099 (vect_set_loop_condition_masked): Update call accordingly.
3100 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
3101 parameter and update call to vect_double_mask_nunits.
3102 (vectorizable_conversion): Update call accordingly.
3103 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
3104 (vectorizable_call): Update call accordingly.
3105 (supportable_widening_operation): Update call to
3106 vect_halve_mask_nunits.
3107 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3108 Use build_truth_vector_type_mode instead of build_truth_vector_type.
3110 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3112 * machmode.h (mode_for_int_vector): Delete.
3113 (related_int_vector_mode): Declare.
3114 * stor-layout.c (mode_for_int_vector): Delete.
3115 (related_int_vector_mode): New function.
3116 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
3117 instead of mode_for_int_vector.
3118 (expand_vec_perm_const): Likewise.
3119 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
3120 (aarch64_evpc_sve_tbl): Likewise.
3121 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
3122 (s390_expand_vcond): Likewise.
3124 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
3126 * target.def (related_mode): New hook.
3127 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
3128 * doc/tm.texi: Regenerate.
3129 * targhooks.h (default_vectorize_related_mode): Declare.
3130 * targhooks.c (default_vectorize_related_mode): New function.
3131 * machmode.h (related_vector_mode): Declare.
3132 * stor-layout.c (related_vector_mode): New function.
3133 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
3134 * optabs-query.c (qimode_for_vec_perm): Likewise.
3135 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
3136 (vectorizable_store, vectorizable_load): Likewise
3138 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
3140 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
3141 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
3142 * config/arm/arm-c.c (arm_cpu_builtins): Define
3143 __GCC_ASM_FLAG_OUTPUTS__.
3144 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
3145 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
3146 Define __GCC_ASM_FLAG_OUTPUTS__.
3147 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
3148 * doc/extend.texi (FlagOutputOperands): Add documentation
3149 for ARM and AArch64.
3151 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
3152 * config/arm/predicates.md (nz_comparison_operator): Rename
3153 from noov_comparison_operator.
3154 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
3155 (arm_gen_dicompare_reg): Likewise.
3156 (maybe_get_arm_condition_code): Likewise.
3157 (thumb1_final_prescan_insn): Likewise.
3158 (arm_emit_coreregs_64bit_shift): Likewise.
3159 * config/arm/arm.md (addsi3_compare0): Likewise.
3160 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
3161 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
3162 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
3163 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
3164 (*mulsi3addsi_compare0_scratch): Likewise.
3165 (*mulsi3addsi_compare0_scratch_v6): Likewise.
3166 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
3167 (*zeroextractsi_compare0_scratch): Likewise.
3168 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
3169 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
3170 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
3171 (andsi_not_shiftsi_si_scc): Likewise.
3172 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
3173 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
3174 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
3175 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
3176 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
3177 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
3178 (return_addr_mask, *check_arch2): Likewise.
3179 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
3180 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
3181 (compare_scc splitters): Likewise.
3182 (movcond_addsi): Likewise.
3183 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
3184 (*thumb2_addsi3_compare0_scratch): Likewise.
3185 (*thumb2_mulsi_short_compare0): Likewise.
3186 (*thumb2_mulsi_short_compare0_scratch): Likewise.
3187 (compare peephole2s): Likewise.
3188 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
3189 nz_comparison_operator names.
3190 (cbranchsi4_insn): Likewise.
3192 * config/arm/constraints.md (c): Use cc_register predicate.
3194 * config/aarch64/constraints.md (c): New constraint.
3196 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3198 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
3199 ipa_merge_fn_summary_after_inlining): Micro optimize.
3201 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3203 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
3205 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
3207 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
3208 (ipa_value_range_from_jfunc): New function.
3209 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
3210 known_value_ranges parameter; use it to evalulate conditions.
3211 (evaluate_properties_for_edge): Compute known value ranges.
3212 (ipa_fn_summary_t::duplicate): Update use of
3213 evaluate_conditions_for_known_args.
3214 (estimate_ipcp_clone_size_and_time): Likewise.
3215 (ipa_merge_fn_summary_after_inlining): Likewise.
3216 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
3218 2019-11-14 Martin Liska <mliska@suse.cz>
3220 * ipa-inline.c (want_inline_small_function_p): Use
3221 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
3222 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
3224 2019-11-14 Martin Liska <mliska@suse.cz>
3226 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
3227 of a callee to get value of the param.
3228 * ipa-inline.c (inline_insns_auto): Use proper
3230 * opts.c (maybe_default_option): Do not overwrite param
3231 value if optimization level does not match. Note that
3232 params usually have default value set via Init() keyword.
3233 * params.opt: Remove -param=max-inline-insns-auto-O2.
3234 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
3235 * doc/invoke.texi: Remove documentation of
3236 max-inline-insns-auto-O2.
3238 2019-11-14 Martin Liska <mliska@suse.cz>
3240 * tree-switch-conversion.c (switch_conversion::switch_conversion):
3241 Do not initialize m_other_count.
3242 (switch_conversion::collect): Do not count m_default_count and
3243 m_other_count as we use frequencies for edges.
3244 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
3246 2019-11-14 Martin Liska <mliska@suse.cz>
3249 * doc/invoke.texi: Document -fallocation-dce.
3251 2019-11-14 Martin Liska <mliska@suse.cz>
3254 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
3255 PTA_ICELAKE_CLIENT which is later interited by
3256 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
3258 2019-11-14 Martin Liska <mliska@suse.cz>
3260 * ipa-icf.c (sem_item_optimizer::execute): Save
3262 (sem_item_optimizer::parse_nonsingleton_classes):
3263 Return number of loaded symbols.
3264 (sem_item_optimizer::merge_classes): Print
3265 statistics about totally needed symbols.
3266 * ipa-icf.h (parse_nonsingleton_classes): Change return
3268 (merge_classes): Add one argument.
3270 2019-11-14 Martin Liska <mliska@suse.cz>
3272 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
3273 func_checker::hash_operand by handling of FIELD_DECLs.
3275 2019-11-14 Martin Liska <mliska@suse.cz>
3277 * ipa-icf-gimple.h (func_checker::func_checker): Add
3278 default constructor.
3279 * ipa-icf.c (sem_function::init): Make operand_equal_p
3280 and hash_operand public.
3281 (sem_item::add_expr): Remove.
3282 (sem_item::add_type): Remove.
3283 (sem_function::hash_stmt): Use m_checker for hashing
3284 of GIMPLE statements.
3285 (sem_function::parse): Init with checker.
3286 (sem_variable::parse): Pass NULL as checker.
3287 (sem_item_optimizer::parse_funcs_and_vars):
3288 Pass checker to ::parse function.
3289 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
3290 (sem_variable::parse): New function.
3291 (sem_variable::get_hash): Only return computed hash value.
3292 (sem_variable::init): Initialize hash of a variable.
3293 * ipa-icf.h: Remove add_expr, add_type and add func_checker
3294 to couple of functions as a new argument.
3296 2019-11-14 Martin Liska <mliska@suse.cz>
3298 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
3300 (func_checker::compare_gimple_assign): Likewise.
3302 2019-11-14 Jakub Jelinek <jakub@redhat.com>
3304 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
3305 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
3306 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
3308 * omp-general.c (omp_context_name_list_prop): New function.
3309 (omp_context_selector_matches): Use it. Return 0 if it returns
3311 (omp_context_selector_props_compare): Allow equivalency of an
3312 identifier and a string literal containing no embedded zeros.
3314 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3316 * range-op.cc (RANGE3): Remove.
3317 (range_tests): Remove all selftest that check for multi-ranges.
3318 Put tests in namespace selftest.
3319 * selftest.h: Move range_tests into namespace selftest.
3320 * value-range.h (class value_range): Unfriend range_tests.
3322 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
3324 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
3325 normalize_symbolics and normalize_addresses working in place.
3326 (range_fold_unary_symbolics_p): Same.
3327 (range_fold_unary_symbolics_p): Same.
3328 * value-range.cc (num_pairs): Same.
3329 (lower_bound): Same.
3330 (upper_bound): Same.
3332 (normalize_addresses): Same.
3333 (normalize_symbolics): Same.
3334 * value-range.h (normalize_symbolics): Same.
3335 (normalize_addresses): Same.
3337 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
3340 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
3341 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
3342 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
3343 (ipa_agg_jump_function): Remove member function equal_to.
3344 (ipa_agg_jump_function_p): Remove typedef.
3345 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
3346 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
3347 information for aggregate jump function.
3348 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
3349 record last definition statement.
3350 (load_from_unmodified_param_or_agg): New function.
3351 (ipa_known_agg_contents_list): Add new field type and value, remove
3353 (build_agg_jump_func_from_list): Rename parameter const_count to
3354 value_count, build aggregate jump function from ipa_load_agg_data.
3355 (analyze_agg_content_value): New function.
3356 (extract_mem_content): Analyze memory store assignment to prepare
3357 information for aggregate jump function generation.
3358 (determine_known_aggregate_parts): Add new parameter fbi, remove
3359 parameter aa_walk_budeget_p.
3360 (update_jump_functions_after_inlining): Update aggregate jump function.
3361 (ipa_find_agg_cst_for_param): Change type of parameter agg.
3362 (try_make_edge_direct_simple_call): Add new parameter new_root.
3363 (try_make_edge_direct_virtual_call): Add new parameter new_root and
3365 (update_indirect_edges_after_inlining): Pass new argument to
3366 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
3367 (ipa_write_jump_function): Write aggregate jump function to file.
3368 (ipa_read_jump_function): Read aggregate jump function from file.
3369 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
3370 * ipa-cp.c (ipa_get_jf_arith_result): New function.
3371 (ipa_agg_value_from_node): Likewise.
3372 (ipa_agg_value_set_from_jfunc): Likewise.
3373 (propagate_vals_across_arith_jfunc): Likewise.
3374 (propagate_aggregate_lattice): Likewise.
3375 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
3376 (propagate_vals_across_pass_through): Call
3377 propagate_vals_across_arith_jfunc.
3378 (get_clone_agg_value): Move forward.
3379 (propagate_aggs_across_jump_function): Handle value propagation for
3380 aggregate jump function.
3381 (agg_jmp_p_vec_for_t_vec): Remove.
3382 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
3383 with vec<ipa_agg_value>.
3384 (copy_plats_to_inter, intersect_with_plats): Likewise.
3385 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
3386 (intersect_aggregate_with_edge): Likewise.
3387 (find_aggregate_values_for_callers_subset): Likewise.
3388 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3389 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
3390 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3391 (gather_context_independent_values): Likewise.
3392 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
3393 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
3394 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3395 (evaluate_properties_for_edge): Likewise.
3396 (estimate_edge_devirt_benefit): Likewise.
3397 (estimate_edge_size_and_time): Likewise.
3398 (estimate_calls_size_and_time): Likewise.
3399 (ipa_call_context::ipa_call_context): Likewise.
3400 (estimate_ipcp_clone_size_and_time): Likewise.
3401 * ipa-fnsummary.h (ipa_call_context): Replace
3402 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3403 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
3404 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
3405 (do_estimate_edge_size): Likewise.
3406 (do_estimate_edge_hints): Likewise.
3408 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3410 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
3413 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3415 * ipa-profile.c (check_argument_count): Check properly that e_info
3416 is non-NULL; do not check descriptors.
3418 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3420 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
3421 check for ipa profiles.
3423 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3426 * ipa-prop.c (update_indirect_edges_after_inlining):
3427 Mark parameter as used.
3428 * ipa-inline.c (recursive_inlining): Reset node cache
3430 (inline_small_functions): Remove checking ifdef.
3431 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
3434 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3437 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
3439 (ipa_profile): Fix reversed test.
3441 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3443 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
3444 (propagate_constants_topo): Fix typo.
3446 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3448 * Makefile.in (OBJS): Add value-range.o.
3449 (GTFILES): Add value-range.h.
3450 * gengtype.c (open_base_files): Add value-range.h to list of
3452 * tree-vrp.c: Move the following value_range related functions:
3453 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
3454 constant_p, set_undefined, set_varying, may_contain_p,
3455 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
3456 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
3457 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
3458 value_inside_range, ranges_from_anti_range, union_ranges,
3459 intersect_ranges, intersect_helper, union_helper, union_,
3460 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
3461 upper_bound, contains_p, invert, intersect...
3462 * value-range.cc: ...to here.
3463 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
3464 associated inline methods from here...
3465 * value-range.h: ...to here.
3467 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
3469 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
3470 instead of asserting its value.
3472 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
3474 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
3475 constructors and set methods so value_range_kind is the last
3476 argument and defaults to VR_RANGE.
3477 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
3478 * ipa-cp.c (propagate_vr_across_jump_function): Same.
3479 * ipa-prop.c (ipa_get_value_range): Same.
3480 (ipa_compute_jump_functions_for_edge): Same.
3481 * range-op.cc (value_range_from_overflowed_bounds): Same.
3482 (operator_cast::op1_range): Same.
3483 (range_tests): Same.
3484 * range.cc (range_nonzero): Same.
3485 * tree-ssanames.c (get_range_info): Same.
3486 * tree-vrp.c (value_range_equiv::set): Same.
3487 (value_range::value_range): Same.
3488 (value_range_equiv::value_range_equiv): Same.
3489 (value_range_equiv::update): Same.
3490 (value_range_equiv::deep_copy): Same.
3491 (value_range_equiv::move): Same.
3492 (value_range_equiv::set_undefined): Same.
3493 (value_range::set): Same.
3494 (value_range::set_nonzero): Same.
3495 (ranges_from_anti_range): Same.
3496 (extract_range_from_plus_minus_expr): Same.
3497 (value_range::intersect_helper): Same.
3498 (value_range_equiv::intersect): Same.
3499 (value_range::union_helper): Same.
3500 (value_range_equiv::union_): Same.
3501 (value_range::normalize_symbolics): Same.
3502 (value_range::invert): Same.
3503 (determine_value_range_1): Same.
3504 * tree-vrp.h (class value_range): Same.
3505 (class value_range_equiv): Same.
3506 * vr-values.c (set_value_range_to_nonnegative): Same.
3507 (set_value_range_to_truthvalue): Same.
3508 (vr_values::update_value_range): Same.
3509 (vr_values::extract_range_for_var_from_comparison_expr): Same.
3510 (vr_values::extract_range_from_binary_expr): Same.
3511 (vr_values::extract_range_from_comparison): Same.
3512 (vr_values::extract_range_basic): Same.
3513 (vr_values::adjust_range_with_scev): Same.
3514 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
3515 (vr_values::extract_range_from_phi_node): Same.
3517 2019-11-13 Ulrich Drepper <drepper@redhat.com>
3519 * tree-dump.c (dequeue_and_dump): Print first tree operand
3520 for VIEW_CONVERT_EXPR.
3522 2019-11-13 Joseph Myers <joseph@codesourcery.com>
3524 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
3525 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
3526 * real.c (get_max_float): Add norm_max argument.
3527 * real.h (get_max_float): Update prototype.
3528 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
3531 2019-11-13 Martin Liska <mliska@suse.cz>
3533 * dbgcnt.c (test_sorted_dbg_counters): New.
3534 (dbgcnt_c_tests): Likewise.
3535 * selftest-run-tests.c (selftest::run_tests): Likewise.
3536 * selftest.h (dbgcnt_c_tests): Likewise.
3538 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3539 Martin Jambor <mjambor@suse.cz>
3542 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
3543 (identify_dead_nodes): Likewise.
3545 2019-11-13 Martin Liska <mliska@suse.cz>
3547 * ipa-icf.c (sem_function::equals_private): Do not overuse
3548 push/pop_cfun functions.
3550 2019-11-13 Martin Liska <mliska@suse.cz>
3552 * common.opt: Document change of -fdbg-cnt option.
3553 * dbgcnt.c (DEBUG_COUNTER): Remove.
3554 (dbg_cnt_is_enabled): Remove.
3555 (dbg_cnt): Work with new intervals.
3556 (dbg_cnt_set_limit_by_index): Set to new
3558 (dbg_cnt_set_limit_by_name): Likewise.
3559 (dbg_cnt_process_single_pair): Process new format.
3560 (dbg_cnt_process_opt): Likewise.
3561 (dbg_cnt_list_all_counters): Likewise.
3562 * doc/invoke.texi: Document change of -fdbg-cnt option.
3565 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3567 * ipa-inline.c (ipa_inline): Check that function is defined before
3570 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3571 Julian Brown <julian@codesourcery.com>
3573 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
3574 flag_worker_partitioning is not set.
3575 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
3576 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
3578 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
3580 * config/gcn/gcn-run.c (heap_region): New global variable.
3581 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
3582 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
3583 (get_kernarg_region): Move contents to ....
3584 (get_memory_region): .... here.
3585 (get_heap_region): New function.
3586 (init_device): Initialize the heap_region.
3587 (device_malloc): Add region parameter.
3588 (struct kernargs): Move heap ....
3589 (heap): ... to global scope.
3590 (main): Allocate heap separate to kernargs.
3592 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3594 * ipa-prop.c (ipa_print_node_jump_functions,
3595 ipa_print_node_params): Print info about missing summaries.
3597 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3599 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
3600 the cost of generating loop masks.
3602 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3604 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
3606 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
3607 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3608 (vect_transform_loop): Likewise.
3609 (vect_analyze_loop_costing): Don't take the cost of versioning
3610 into account for the static profitability threshold if it turns
3611 out that no versioning is needed.
3613 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
3615 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
3616 and target_option_default_node to get -fprofile-generate ctors working
3619 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3621 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
3622 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
3623 (vectorizable_assignment): Don't add a cost for nop conversions.
3624 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
3626 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
3628 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3630 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
3631 number of ncopies as an additional argument.
3632 (vectorizable_conversion): Update call accordingly. Use "modifier"
3633 to check whether a conversion is between vectors with the same
3636 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
3638 * config/aarch64/aarch64-sve-builtins-functions.h
3639 (unary_count::expand): Use aarch64_sve_int_mode instead of
3640 mode_for_int_vector.
3642 2019-11-13 Martin Liska <mliska@suse.cz>
3644 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
3646 2019-11-13 Martin Liska <mliska@suse.cz>
3648 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3649 Remove call to finalize_options_struct.
3651 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
3654 * config/avr/t-avr (avr-mcus): Do not depend on
3655 $(srcdir)/config/avr/t-multilib.
3657 2019-11-13 Richard Biener <rguenther@suse.de>
3659 PR tree-optimization/92473
3660 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
3661 direct optab reduction in the correct type.
3663 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3665 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
3666 hexadecimal literal.
3668 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
3670 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
3671 UNORDERED if !HONOR_NANS (DFmode).
3672 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
3673 if !HONOR_NANS (<MODE>mode).
3675 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3677 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
3678 (ipcp_verify_propagated_values): Likewise.
3679 (propagate_constants_across_call): Likewise.
3680 (propagate_constants_topo): Likewise.
3681 (ipcp_propagate_stage): Likewise.
3683 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
3686 * ipa-profile.c (check_argument_count): Break out from ...;
3687 watch for missing summaries.
3688 (ipa_profile): Here.
3690 2019-11-12 Martin Sebor <msebor@redhat.com>
3692 PR tree-optimization/92412
3693 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
3696 2019-11-12 Martin Sebor <msebor@redhat.com>
3699 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
3700 (directive::argno): New member.
3701 (format_result::aliases, format_result::alias_count): New data members.
3702 (format_result::append_alias): New member function.
3703 (fmtresult::dst_offset): New data member.
3704 (pass_sprintf_length::call_info::dst_origin): New data member.
3705 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
3706 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
3707 (get_origin_and_offset): Same.
3708 (format_string): Call it.
3709 (format_directive): Call append_alias and set directive argument
3711 (maybe_warn_overlap): New function.
3712 (pass_sprintf_length::compute_format_length): Call it.
3713 (pass_sprintf_length::handle_gimple_call): Initialize new members.
3714 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
3716 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
3718 PR rtl-optimization/92430
3719 * cfgcleanup.c (pass_jump_after_combine::execute): Free
3720 dominance info at the beginning.
3722 2019-11-12 Richard Biener <rguenther@suse.de>
3724 PR tree-optimization/92460
3725 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
3726 expression before gimplifying.
3728 2019-11-12 Richard Biener <rguenther@suse.de>
3730 PR tree-optimization/92461
3731 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
3732 stmt after propagation.
3734 2019-11-12 Martin Liska <mliska@suse.cz>
3736 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
3737 Use SET_OPTION_IF_UNSET.
3738 (ix86_option_override_internal): Likewise.
3739 * opts.c (default_options_optimization): Likewise.
3740 (finish_options): Likewise.
3741 (enable_fdo_optimizations): Likewise.
3742 (common_handle_option): Likewise.
3744 2019-11-12 Martin Liska <mliska@suse.cz>
3746 * common/common-target.def: Remove option_validate_param and
3747 option_default_params.
3748 * common/common-targhooks.c (default_option_validate_param):
3750 * common/common-targhooks.h (default_option_validate_param):
3752 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
3753 Remove usage of this.
3754 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
3755 (aarch64_option_validate_param): Likewise.
3756 (aarch64_option_default_params): Likewise
3757 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
3758 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3759 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3760 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3761 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3762 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3763 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3764 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3765 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3766 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
3767 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
3769 * doc/tm.texi: Remove option_default_params and option_validate_param.
3770 * doc/tm.texi.in: Likewise.
3772 2019-11-12 Martin Liska <mliska@suse.cz>
3774 * common/common-target.def:
3775 Do not mention set_default_param_value
3776 and set_param_value.
3777 * doc/tm.texi: Likewise.
3779 2019-11-12 Martin Liska <mliska@suse.cz>
3781 * common.opt: Remove param_values.
3782 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
3783 Remove finalize_options_struct.
3784 * gcc.c (driver::decode_argv): Do not call global_init_params
3786 (driver::finalize): Do not call params_c_finalize
3787 and finalize_options_struct.
3788 * opt-suggestions.c (option_proposer::get_completions): Remove
3789 special casing of params.
3790 (option_proposer::find_param_completions): Remove.
3791 (test_completion_partial_match): Update expected output.
3792 * opt-suggestions.h: Remove find_param_completions.
3793 * opts-common.c (add_misspelling_candidates): Add
3794 --param with a space.
3795 * opts.c (handle_param): Remove.
3796 (init_options_struct):. Remove init_options_struct and
3798 (finalize_options_struct): Remove.
3799 (common_handle_option): Use SET_OPTION_IF_UNSET.
3800 * opts.h (finalize_options_struct): Remove.
3801 * toplev.c (general_init): Do not call global_init_params.
3802 (toplev::finalize): Do not call params_c_finalize and
3803 finalize_options_struct.
3805 2019-11-12 Martin Liska <mliska@suse.cz>
3807 * Makefile.in: Remove PARAMS_H and params.list
3809 * params-enum.h: Remove.
3810 * params-list.h: Remove.
3811 * params-options.h: Remove.
3813 * params.def: Remove.
3815 * asan.c: Do not include params.h.
3816 * auto-profile.c: Likewise.
3817 * bb-reorder.c: Likewise.
3818 * builtins.c: Likewise.
3819 * cfgcleanup.c: Likewise.
3820 * cfgexpand.c: Likewise.
3821 * cfgloopanal.c: Likewise.
3822 * cgraph.c: Likewise.
3823 * combine.c: Likewise.
3824 * common/config/aarch64/aarch64-common.c: Likewise.
3825 * common/config/gcn/gcn-common.c: Likewise.
3826 * common/config/ia64/ia64-common.c: Likewise.
3827 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
3828 * common/config/rs6000/rs6000-common.c: Likewise.
3829 * common/config/sh/sh-common.c: Likewise.
3830 * config/aarch64/aarch64.c: Likewise.
3831 * config/alpha/alpha.c: Likewise.
3832 * config/arm/arm.c: Likewise.
3833 * config/avr/avr.c: Likewise.
3834 * config/csky/csky.c: Likewise.
3835 * config/i386/i386-builtins.c: Likewise.
3836 * config/i386/i386-expand.c: Likewise.
3837 * config/i386/i386-features.c: Likewise.
3838 * config/i386/i386-options.c: Likewise.
3839 * config/i386/i386.c: Likewise.
3840 * config/ia64/ia64.c: Likewise.
3841 * config/rs6000/rs6000-logue.c: Likewise.
3842 * config/rs6000/rs6000.c: Likewise.
3843 * config/s390/s390.c: Likewise.
3844 * config/sparc/sparc.c: Likewise.
3845 * config/visium/visium.c: Likewise.
3846 * coverage.c: Likewise.
3847 * cprop.c: Likewise.
3849 * cselib.c: Likewise.
3851 * emit-rtl.c: Likewise.
3852 * explow.c: Likewise.
3853 * final.c: Likewise.
3854 * fold-const.c: Likewise.
3857 * ggc-common.c: Likewise.
3858 * ggc-page.c: Likewise.
3859 * gimple-loop-interchange.cc: Likewise.
3860 * gimple-loop-jam.c: Likewise.
3861 * gimple-loop-versioning.cc: Likewise.
3862 * gimple-ssa-split-paths.c: Likewise.
3863 * gimple-ssa-sprintf.c: Likewise.
3864 * gimple-ssa-store-merging.c: Likewise.
3865 * gimple-ssa-strength-reduction.c: Likewise.
3866 * gimple-ssa-warn-alloca.c: Likewise.
3867 * gimple-ssa-warn-restrict.c: Likewise.
3868 * graphite-isl-ast-to-gimple.c: Likewise.
3869 * graphite-optimize-isl.c: Likewise.
3870 * graphite-scop-detection.c: Likewise.
3871 * graphite-sese-to-poly.c: Likewise.
3872 * graphite.c: Likewise.
3873 * haifa-sched.c: Likewise.
3874 * hsa-gen.c: Likewise.
3875 * ifcvt.c: Likewise.
3876 * ipa-cp.c: Likewise.
3877 * ipa-fnsummary.c: Likewise.
3878 * ipa-inline-analysis.c: Likewise.
3879 * ipa-inline.c: Likewise.
3880 * ipa-polymorphic-call.c: Likewise.
3881 * ipa-profile.c: Likewise.
3882 * ipa-prop.c: Likewise.
3883 * ipa-split.c: Likewise.
3884 * ipa-sra.c: Likewise.
3885 * ira-build.c: Likewise.
3886 * ira-conflicts.c: Likewise.
3887 * loop-doloop.c: Likewise.
3888 * loop-invariant.c: Likewise.
3889 * loop-unroll.c: Likewise.
3890 * lra-assigns.c: Likewise.
3891 * lra-constraints.c: Likewise.
3892 * modulo-sched.c: Likewise.
3893 * opt-suggestions.c: Likewise.
3895 * postreload-gcse.c: Likewise.
3896 * predict.c: Likewise.
3897 * reload.c: Likewise.
3898 * reorg.c: Likewise.
3899 * resource.c: Likewise.
3900 * sanopt.c: Likewise.
3901 * sched-deps.c: Likewise.
3902 * sched-ebb.c: Likewise.
3903 * sched-rgn.c: Likewise.
3904 * sel-sched-ir.c: Likewise.
3905 * sel-sched.c: Likewise.
3906 * shrink-wrap.c: Likewise.
3908 * targhooks.c: Likewise.
3909 * toplev.c: Likewise.
3910 * tracer.c: Likewise.
3911 * trans-mem.c: Likewise.
3912 * tree-chrec.c: Likewise.
3913 * tree-data-ref.c: Likewise.
3914 * tree-if-conv.c: Likewise.
3915 * tree-inline.c: Likewise.
3916 * tree-loop-distribution.c: Likewise.
3917 * tree-parloops.c: Likewise.
3918 * tree-predcom.c: Likewise.
3919 * tree-profile.c: Likewise.
3920 * tree-scalar-evolution.c: Likewise.
3921 * tree-sra.c: Likewise.
3922 * tree-ssa-ccp.c: Likewise.
3923 * tree-ssa-dom.c: Likewise.
3924 * tree-ssa-dse.c: Likewise.
3925 * tree-ssa-ifcombine.c: Likewise.
3926 * tree-ssa-loop-ch.c: Likewise.
3927 * tree-ssa-loop-im.c: Likewise.
3928 * tree-ssa-loop-ivcanon.c: Likewise.
3929 * tree-ssa-loop-ivopts.c: Likewise.
3930 * tree-ssa-loop-manip.c: Likewise.
3931 * tree-ssa-loop-niter.c: Likewise.
3932 * tree-ssa-loop-prefetch.c: Likewise.
3933 * tree-ssa-loop-unswitch.c: Likewise.
3934 * tree-ssa-math-opts.c: Likewise.
3935 * tree-ssa-phiopt.c: Likewise.
3936 * tree-ssa-pre.c: Likewise.
3937 * tree-ssa-reassoc.c: Likewise.
3938 * tree-ssa-sccvn.c: Likewise.
3939 * tree-ssa-scopedtables.c: Likewise.
3940 * tree-ssa-sink.c: Likewise.
3941 * tree-ssa-strlen.c: Likewise.
3942 * tree-ssa-structalias.c: Likewise.
3943 * tree-ssa-tail-merge.c: Likewise.
3944 * tree-ssa-threadbackward.c: Likewise.
3945 * tree-ssa-threadedge.c: Likewise.
3946 * tree-ssa-uninit.c: Likewise.
3947 * tree-switch-conversion.c: Likewise.
3948 * tree-vect-data-refs.c: Likewise.
3949 * tree-vect-loop.c: Likewise.
3950 * tree-vect-slp.c: Likewise.
3951 * tree-vrp.c: Likewise.
3953 * value-prof.c: Likewise.
3954 * var-tracking.c: Likewise.
3956 2019-11-12 Martin Liska <mliska@suse.cz>
3958 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
3959 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
3961 (asan_sanitize_allocas_p): Likewise.
3962 (asan_emit_stack_protection): Likewise.
3963 (asan_protect_global): Likewise.
3964 (instrument_derefs): Likewise.
3965 (instrument_builtin_call): Likewise.
3966 (asan_expand_mark_ifn): Likewise.
3967 * auto-profile.c (auto_profile): Likewise.
3968 * bb-reorder.c (copy_bb_p): Likewise.
3969 (duplicate_computed_gotos): Likewise.
3970 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
3971 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
3972 (try_crossjump_bb): Likewise.
3973 * cfgexpand.c (defer_stack_allocation): Likewise.
3974 (stack_protect_classify_type): Likewise.
3975 (pass_expand::execute): Likewise.
3976 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
3977 (estimate_reg_pressure_cost): Likewise.
3978 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
3979 * combine.c (combine_instructions): Likewise.
3980 (record_value_for_reg): Likewise.
3981 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
3982 (aarch64_option_default_params): Likewise.
3983 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
3984 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
3985 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
3986 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
3987 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
3988 (aarch64_allocate_and_probe_stack_space): Likewise.
3989 (aarch64_expand_epilogue): Likewise.
3990 (aarch64_override_options_internal): Likewise.
3991 * config/alpha/alpha.c (alpha_option_override): Likewise.
3992 * config/arm/arm.c (arm_option_override): Likewise.
3993 (arm_valid_target_attribute_p): Likewise.
3994 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
3995 * config/i386/i386.c (get_probe_interval): Likewise.
3996 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
3997 (ix86_max_noce_ifcvt_seq_cost): Likewise.
3998 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
3999 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
4000 (get_stack_clash_protection_guard_size): Likewise.
4001 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4002 * config/s390/s390.c (allocate_stack_space): Likewise.
4003 (s390_emit_prologue): Likewise.
4004 (s390_option_override_internal): Likewise.
4005 * config/sparc/sparc.c (sparc_option_override): Likewise.
4006 * config/visium/visium.c (visium_option_override): Likewise.
4007 * coverage.c (get_coverage_counts): Likewise.
4008 (coverage_compute_profile_id): Likewise.
4009 (coverage_begin_function): Likewise.
4010 (coverage_end_function): Likewise.
4011 * cse.c (cse_find_path): Likewise.
4012 (cse_extended_basic_block): Likewise.
4013 (cse_main): Likewise.
4014 * cselib.c (cselib_invalidate_mem): Likewise.
4015 * dse.c (dse_step1): Likewise.
4016 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
4017 (get_max_insn_count): Likewise.
4018 (make_debug_insn_raw): Likewise.
4019 (init_emit): Likewise.
4020 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
4021 * final.c (compute_alignments): Likewise.
4022 * fold-const.c (fold_range_test): Likewise.
4023 (fold_truth_andor): Likewise.
4024 (tree_single_nonnegative_warnv_p): Likewise.
4025 (integer_valued_real_single_p): Likewise.
4026 * gcse.c (want_to_gcse_p): Likewise.
4027 (prune_insertions_deletions): Likewise.
4028 (hoist_code): Likewise.
4029 (gcse_or_cprop_is_too_expensive): Likewise.
4030 * ggc-common.c: Likewise.
4031 * ggc-page.c (ggc_collect): Likewise.
4032 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
4033 (MAX_DATAREFS): Likewise.
4034 (OUTER_STRIDE_RATIO): Likewise.
4035 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
4036 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
4037 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
4038 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
4039 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
4040 (imm_store_chain_info::output_merged_store): Likewise.
4041 (pass_store_merging::process_store): Likewise.
4042 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
4043 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
4044 (scop_to_isl_ast): Likewise.
4045 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
4046 (optimize_isl): Likewise.
4047 * graphite-scop-detection.c (build_scops): Likewise.
4048 * haifa-sched.c (set_modulo_params): Likewise.
4049 (rank_for_schedule): Likewise.
4050 (model_add_to_worklist): Likewise.
4051 (model_promote_insn): Likewise.
4052 (model_choose_insn): Likewise.
4053 (queue_to_ready): Likewise.
4054 (autopref_multipass_dfa_lookahead_guard): Likewise.
4055 (schedule_block): Likewise.
4056 (sched_init): Likewise.
4057 * hsa-gen.c (init_prologue): Likewise.
4058 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
4059 (cond_move_process_if_block): Likewise.
4060 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
4061 (merge_agg_lats_step): Likewise.
4062 (devirtualization_time_bonus): Likewise.
4063 (hint_time_bonus): Likewise.
4064 (incorporate_penalties): Likewise.
4065 (good_cloning_opportunity_p): Likewise.
4066 (ipcp_propagate_stage): Likewise.
4067 * ipa-fnsummary.c (decompose_param_expr): Likewise.
4068 (set_switch_stmt_execution_predicate): Likewise.
4069 (analyze_function_body): Likewise.
4070 (compute_fn_summary): Likewise.
4071 * ipa-inline-analysis.c (estimate_growth): Likewise.
4072 * ipa-inline.c (caller_growth_limits): Likewise.
4073 (inline_insns_single): Likewise.
4074 (inline_insns_auto): Likewise.
4075 (can_inline_edge_by_limits_p): Likewise.
4076 (want_early_inline_function_p): Likewise.
4077 (big_speedup_p): Likewise.
4078 (want_inline_small_function_p): Likewise.
4079 (want_inline_self_recursive_call_p): Likewise.
4080 (edge_badness): Likewise.
4081 (recursive_inlining): Likewise.
4082 (compute_max_insns): Likewise.
4083 (early_inliner): Likewise.
4084 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
4085 * ipa-profile.c (ipa_profile): Likewise.
4086 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
4087 (ipa_analyze_node): Likewise.
4088 (ipcp_transform_function): Likewise.
4089 * ipa-split.c (consider_split): Likewise.
4090 * ipa-sra.c (allocate_access): Likewise.
4091 (process_scan_results): Likewise.
4092 (ipa_sra_summarize_function): Likewise.
4093 (pull_accesses_from_callee): Likewise.
4094 * ira-build.c (loop_compare_func): Likewise.
4095 (mark_loops_for_removal): Likewise.
4096 * ira-conflicts.c (build_conflict_bit_table): Likewise.
4097 * loop-doloop.c (doloop_optimize): Likewise.
4098 * loop-invariant.c (gain_for_invariant): Likewise.
4099 (move_loop_invariants): Likewise.
4100 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
4101 (decide_unroll_runtime_iterations): Likewise.
4102 (decide_unroll_stupid): Likewise.
4103 (expand_var_during_unrolling): Likewise.
4104 * lra-assigns.c (spill_for): Likewise.
4105 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
4106 * modulo-sched.c (sms_schedule): Likewise.
4107 (DFA_HISTORY): Likewise.
4108 * opts.c (default_options_optimization): Likewise.
4109 (finish_options): Likewise.
4110 (common_handle_option): Likewise.
4111 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4113 * predict.c (get_hot_bb_threshold): Likewise.
4114 (maybe_hot_count_p): Likewise.
4115 (probably_never_executed): Likewise.
4116 (predictable_edge_p): Likewise.
4117 (predict_loops): Likewise.
4118 (expr_expected_value_1): Likewise.
4119 (tree_predict_by_opcode): Likewise.
4120 (handle_missing_profiles): Likewise.
4121 * reload.c (find_equiv_reg): Likewise.
4122 * reorg.c (redundant_insn): Likewise.
4123 * resource.c (mark_target_live_regs): Likewise.
4124 (incr_ticks_for_insn): Likewise.
4125 * sanopt.c (pass_sanopt::execute): Likewise.
4126 * sched-deps.c (sched_analyze_1): Likewise.
4127 (sched_analyze_2): Likewise.
4128 (sched_analyze_insn): Likewise.
4129 (deps_analyze_insn): Likewise.
4130 * sched-ebb.c (schedule_ebbs): Likewise.
4131 * sched-rgn.c (find_single_block_region): Likewise.
4132 (too_large): Likewise.
4133 (haifa_find_rgns): Likewise.
4134 (extend_rgns): Likewise.
4135 (new_ready): Likewise.
4136 (schedule_region): Likewise.
4137 (sched_rgn_init): Likewise.
4138 * sel-sched-ir.c (make_region_from_loop): Likewise.
4139 * sel-sched-ir.h (MAX_WS): Likewise.
4140 * sel-sched.c (process_pipelined_exprs): Likewise.
4141 (sel_setup_region_sched_flags): Likewise.
4142 * shrink-wrap.c (try_shrink_wrapping): Likewise.
4143 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
4144 * toplev.c (print_version): Likewise.
4145 (process_options): Likewise.
4146 * tracer.c (tail_duplicate): Likewise.
4147 * trans-mem.c (tm_log_add): Likewise.
4148 * tree-chrec.c (chrec_fold_plus_1): Likewise.
4149 * tree-data-ref.c (split_constant_offset): Likewise.
4150 (compute_all_dependences): Likewise.
4151 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
4152 * tree-inline.c (remap_gimple_stmt): Likewise.
4153 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
4154 * tree-parloops.c (MIN_PER_THREAD): Likewise.
4155 (create_parallel_loop): Likewise.
4156 * tree-predcom.c (determine_unroll_factor): Likewise.
4157 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
4158 * tree-sra.c (analyze_all_variable_accesses): Likewise.
4159 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
4160 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
4161 (dse_optimize_redundant_stores): Likewise.
4162 (dse_classify_store): Likewise.
4163 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4164 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
4165 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
4166 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
4167 (try_peel_loop): Likewise.
4168 (tree_unroll_loops_completely): Likewise.
4169 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
4170 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
4171 (MAX_CONSIDERED_GROUPS): Likewise.
4172 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
4173 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
4174 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
4175 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
4176 (L1_CACHE_SIZE_BYTES): Likewise.
4177 (L2_CACHE_SIZE_BYTES): Likewise.
4178 (should_issue_prefetch_p): Likewise.
4179 (schedule_prefetches): Likewise.
4180 (determine_unroll_factor): Likewise.
4181 (volume_of_references): Likewise.
4182 (add_subscript_strides): Likewise.
4183 (self_reuse_distance): Likewise.
4184 (mem_ref_count_reasonable_p): Likewise.
4185 (insn_to_prefetch_ratio_too_small_p): Likewise.
4186 (loop_prefetch_arrays): Likewise.
4187 (tree_ssa_prefetch_arrays): Likewise.
4188 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
4189 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
4190 (convert_mult_to_fma): Likewise.
4191 (math_opts_dom_walker::after_dom_children): Likewise.
4192 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
4193 (hoist_adjacent_loads): Likewise.
4194 (gate_hoist_loads): Likewise.
4195 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
4196 (compute_partial_antic_aux): Likewise.
4197 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
4198 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
4199 (vn_reference_lookup): Likewise.
4200 (do_rpo_vn): Likewise.
4201 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
4202 * tree-ssa-sink.c (select_best_block): Likewise.
4203 * tree-ssa-strlen.c (new_stridx): Likewise.
4204 (new_addr_stridx): Likewise.
4205 (get_range_strlen_dynamic): Likewise.
4206 (class ssa_name_limit_t): Likewise.
4207 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
4208 (create_variable_info_for_1): Likewise.
4209 (init_alias_vars): Likewise.
4210 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
4211 (tail_merge_optimize): Likewise.
4212 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
4213 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
4214 (thread_jumps::find_jump_threads_backwards): Likewise.
4215 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
4216 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
4217 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
4218 (jump_table_cluster::can_be_handled): Likewise.
4219 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
4220 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
4221 (param_switch_conversion_branch_ratio): Likewise.
4222 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
4223 (vect_enhance_data_refs_alignment): Likewise.
4224 (vect_prune_runtime_alias_test_list): Likewise.
4225 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
4226 (vect_get_datarefs_in_loop): Likewise.
4227 (vect_analyze_loop): Likewise.
4228 * tree-vect-slp.c (vect_slp_bb): Likewise.
4229 * tree-vectorizer.h: Likewise.
4230 * tree-vrp.c (find_switch_asserts): Likewise.
4231 (vrp_prop::check_mem_ref): Likewise.
4232 * tree.c (wide_int_to_tree_1): Likewise.
4233 (cache_integer_cst): Likewise.
4234 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
4235 (reverse_op): Likewise.
4236 (vt_find_locations): Likewise.
4238 2019-11-12 Martin Liska <mliska@suse.cz>
4240 * Makefile.in: Include params.opt.
4241 * flag-types.h (enum parloops_schedule_type): Add
4242 parloops_schedule_type used in params.opt.
4243 * params.opt: New file.
4245 2019-11-12 Martin Liska <mliska@suse.cz>
4247 * common.opt: Remove --param and --param= options.
4248 * opt-functions.awk: Mark CL_PARAMS for options
4249 that have Param keyword.
4250 * opts-common.c (decode_cmdline_options_to_array):
4251 Replace --param key=value with --param=key=value.
4252 * opts.c (print_filtered_help): Remove special
4254 (print_specific_help): Update title for params.
4255 (common_handle_option): Do not handle OPT__param.
4256 opts.h (SET_OPTION_IF_UNSET): New macro.
4257 * doc/options.texi: Document Param keyword.
4259 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
4260 Frederik Harwath <frederik@codesourcery.com>
4261 Thomas Schwinge <thomas@codesourcery.com>
4264 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
4265 enumeration constant.
4266 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4267 (is_gimple_omp_offloaded): Likewise.
4268 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
4269 constant. Adjust the value of ORT_NONE accordingly.
4270 (is_gimple_stmt): Handle OACC_SERIAL.
4271 (oacc_default_clause): Handle ORT_ACC_SERIAL.
4272 (gomp_needs_data_present): Likewise.
4273 (gimplify_adjust_omp_clauses): Likewise.
4274 (gimplify_omp_workshare): Handle OACC_SERIAL.
4275 (gimplify_expr): Likewise.
4276 * omp-expand.c (expand_omp_target):
4277 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4278 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
4279 * omp-low.c (is_oacc_parallel): Rename function to...
4280 (is_oacc_parallel_or_serial): ... this.
4281 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
4282 (scan_sharing_clauses): Adjust accordingly.
4283 (scan_omp_for): Likewise.
4284 (lower_oacc_head_mark): Likewise.
4285 (convert_from_firstprivate_int): Likewise.
4286 (lower_omp_target): Likewise.
4287 (check_omp_nesting_restrictions): Handle
4288 GF_OMP_TARGET_KIND_OACC_SERIAL.
4289 (lower_oacc_reductions): Likewise.
4290 (lower_omp_target): Likewise.
4291 * tree.def (OACC_SERIAL): New tree code.
4292 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
4294 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
4296 2019-11-12 Jakub Jelinek <jakub@redhat.com>
4299 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
4300 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
4302 PR tree-optimization/92452
4303 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
4304 into NULL_TREE, set up_bound to NULL_TREE instead of computing
4307 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
4309 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
4312 2019-11-12 Alan Modra <amodra@gmail.com>
4314 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
4315 element of unspec vec.
4316 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
4318 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
4319 (tls_gd_pcrel, tls_ld_pcrel): New insns.
4320 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
4321 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
4323 2019-11-12 Alan Modra <amodra@gmail.com>
4325 * config/rs6000/rs6000.opt (mtls-markers): Delete.
4326 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
4327 (IS_NOMARK_TLSGETADDR): Likewise.
4328 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
4329 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
4330 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
4331 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
4332 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
4333 (rs6000_indirect_call_template_1): Likewise.
4334 (rs6000_pltseq_template): Likewise.
4335 (rs6000_opt_vars): Remove "tls-markers" entry.
4336 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
4338 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
4339 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
4340 (pltseq_plt_pcrel<mode>): Likewise.
4341 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
4342 (call_value_local64): Likewise.
4343 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
4344 output and length attribute sub-expression.
4345 (call_value_nonlocal_sysv<mode>),
4346 (call_value_nonlocal_sysv_secure<mode>),
4347 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
4348 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
4349 (call_value_indirect_pcrel<mode>): Likewise.
4350 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
4351 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
4352 * configure: Regenerate.
4353 * config.in: Regenerate.
4355 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
4357 * config/rs6000/predicates.md (prefixed_memory): New predicate.
4358 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
4359 address being a prefixed load/store.
4360 (stack_protect_testdi): Deal with either address being a prefixed
4363 2019-11-11 Jakub Jelinek <jakub@redhat.com>
4366 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
4367 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
4370 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
4372 PR tree-optimization/92420
4373 * tree-vect-stmts.c (get_negative_load_store_type): Move further
4375 (get_group_load_store_type): Use it for reversed SLP accesses.
4377 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
4379 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
4381 (ipcp_transformation_t::duplicate): Break out from ...
4382 (ipa_node_params_t::duplicate): ... here; add copying of agg
4384 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
4385 (ipcp_transformation_t): Add duplicate.
4387 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
4390 * doc/install.texi: Document that the minimum MPFR version is
4393 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4395 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
4396 use new register constraint letters.
4398 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
4400 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
4401 as well, if interesting recover the symbol and re-legitimize the
4404 2019-11-11 Martin Liska <mliska@suse.cz>
4406 * dbgcnt.def (DEBUG_COUNTER): Sort counters
4409 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
4411 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
4412 account when checking if there are enough iterations to vectorize
4415 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
4416 Kwok Cheung Yeung <kcy@codesourcery.com>
4418 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
4419 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
4420 (LANG_HOOKS_DECLS): Rename also here.
4421 * langhooks.h (lang_hooks_for_decls): Rename
4422 omp_is_optional_argument to omp_check_optional_argument; take
4423 additional bool argument.
4424 * omp-general.h (omp_check_optional_argument): Likewise.
4425 * omp-general.h (omp_check_optional_argument): Likewise.
4426 * omp-low.c (lower_omp_target): Update calls; handle absent
4427 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
4429 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
4432 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
4433 -fPIC and -shared the last to create offload image.
4435 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
4437 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
4440 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
4441 (config.status): Use/depend on it.
4442 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
4443 * configure: Regenerate.
4445 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
4447 PR tree-optimization/88760
4448 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
4449 * gcc/common/config/rs6000/rs6000-common.c
4450 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
4451 Turn on -funroll-loops and -munroll-only-small-loops.
4452 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
4453 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
4454 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
4455 Turn off -munroll-only-small-loops for explicit -funroll-loops.
4456 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
4457 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
4459 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
4461 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
4462 Make scalar_load, vector_load, unaligned_load and
4463 vector_gather_load cost more to conform hardware latency and
4466 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
4468 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
4469 (MACHO_SYMBOL_LINKER_VIS_P): New.
4471 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
4473 * lra-spills.c (assign_spill_hard_regs): Do not spill into
4474 registers in eliminable_regset.
4476 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4478 * ipa-inline.c (compute_uninlined_call_time,
4479 compute_inlined_call_time): Take edge frequency as
4480 parameter rather than computing it by itself.
4481 (big_speedup_p, edge_badness): Manually CSE sreal
4482 frequency calculations.
4484 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4486 * profile-count.c (profile_count::to_sreal_scale): Short circuit
4487 case where profiles are same.
4489 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4491 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
4493 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
4495 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
4496 args summaries of inlined edge unless it holds info about
4497 described reference.
4499 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
4501 * config/rs6000/rs6000.md (CC_any): New mode iterator.
4502 (*movcc_internal1): Rename to...
4503 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
4505 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4507 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
4508 (cgraph_node::create_virtual_clone): Copy it.
4509 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
4511 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
4512 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
4514 (propagate_constants_across_call): If callee is not analyzed, give up.
4515 (propagate_constants_topo): Lower to bottom latties of all callees of
4516 functions with ipa-cp disabled.
4517 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
4518 (cgraph_edge_brings_value_p): Check for availability first.
4519 (create_specialized_node): Set ipcp_clone.
4520 (ipcp_store_bits_results): Check that info is present.
4521 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
4523 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
4524 conservative when callee summary is missing.
4525 (remap_edge_summaries): Lookup call summary only when needed.
4526 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
4527 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
4529 (ipa_analyze_node): Use get_create.
4530 (propagate_controlled_uses): Do not propagate when function is not
4532 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
4533 (ipa_read_node_info): Use get_create.
4534 * ipa-prop.h (IPA_NODE_REF): Use get.
4535 (IPA_NODE_REF_GET_CREATE): New.
4537 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4539 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
4542 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4544 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
4545 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4546 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
4547 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
4549 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4551 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
4552 capping the growth cumulated.
4553 (offline_size): Break out from ...
4554 (estimate_growth): ... here.
4555 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
4557 (growth_likely_positive): Turn to ...
4558 (growth_positive_p): Re-implement.
4559 * ipa-inline.h (growth_likely_positive): Remove.
4560 (growth_positive_p): Declare.
4561 * ipa-inline.c (want_inline_small_function_p): Use
4563 (want_inline_function_to_all_callers_p): Likewise.
4565 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4567 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
4568 calculation of min_size.
4569 (ipa_update_overall_fn_summary): Likewise.
4571 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
4573 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
4574 estimate_edge_devirt_benefit when not computing hints;
4575 do not compute time when not asked for.
4576 (estimate_calls_size_and_time): Pass NULL hints and time when
4577 these are not computed; do not evaluate hint predicates when these are
4579 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
4582 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4584 PR tree-optimization/92401
4585 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
4586 if res_op->code is an expression with code length 1.
4587 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
4588 if res_op->code is an expression with code length 2.
4589 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
4590 if res_op->code is an expression with code length 3.
4592 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
4594 * config/darwin.c (machopic_mcount_stub_name): Validate the
4595 symbol stub name when it is created.
4596 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
4599 2019-11-09 Jakub Jelinek <jakub@redhat.com>
4601 * symtab.c: Fix comment typos.
4602 * cgraphunit.c: Likewise.
4603 * cgraph.h: Likewise.
4604 * cgraphclones.c: Likewise.
4605 * cgraph.c: Likewise.
4606 * varpool.c: Likewise.
4607 * tree-ssa-strlen.c: Likewise.
4608 * ipa-sra.c: Likewise.
4609 (scan_expr_access, check_all_callers_for_issues): Fix typo
4612 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
4614 * config/darwin-protos.h: Add include quard.
4616 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
4618 * range-op.h (range_operator::fold_range): Return result in a
4619 reference parameter instead of by value.
4620 (range_operator::wi_fold): Same.
4621 * range-op.cc (range_operator::wi_fold): Return result in a reference
4622 parameter instead of by value.
4623 (range_operator::fold_range): Same.
4624 (value_range_from_overflowed_bounds): Same.
4625 (value_range_with_overflow): Same
4626 (create_possibly_reversed_range): Same.
4627 (operator_equal::fold_range): Same.
4628 (operator_not_equal::fold_range): Same.
4629 (operator_lt::fold_range): Same.
4630 (operator_le::fold_range): Same.
4631 (operator_gt::fold_range): Same.
4632 (operator_ge::fold_range): Same.
4633 (operator_plus::wi_fold): Same.
4634 (operator_plus::op1_range): Change call to fold_range.
4635 (operator_plus::op2_range): Change call to fold_range.
4636 (operator_minus::wi_fold): Return result via reference parameter.
4637 (operator_minus::op1_range): Change call to fold_range.
4638 (operator_minus::op2_range): Change call to fold_range.
4639 (operator_min::wi_fold): Return result via reference parameter.
4640 (operator_max::wi_fold): Same.
4641 (cross_product_operator::wi_cross_product): Same.
4642 (operator_mult::wi_fold): Same.
4643 (operator_div::wi_fold): Same.
4644 (operator_div op_floor_div): Fix whitespace.
4645 (operator_exact_divide::op1_range): Change call to fold_range.
4646 (operator_lshift::fold_range): Return result via reference parameter.
4647 (operator_lshift::wi_fold): Same.
4648 (operator_rshift::fold_range): Same.
4649 (operator_rshift::wi_fold): Same.
4650 (operator_cast::fold_range): Same.
4651 (operator_cast::op1_range): Change calls to fold_range.
4652 (operator_logical_and::fold_range): Return result via reference.
4653 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
4654 (operator_bitwise_and::wi_fold): Return result via reference.
4655 (operator_logical_or::fold_range): Same.
4656 (operator_bitwise_or::wi_fold): Same.
4657 (operator_bitwise_xor::wi_fold): Same.
4658 (operator_trunc_mod::wi_fold): Same.
4659 (operator_logical_not::fold_range): Same.
4660 (operator_bitwise_not::fold_range): Same.
4661 (operator_bitwise_not::op1_range): Change call to fold_range.
4662 (operator_cst::fold_range): Return result via reference.
4663 (operator_identity::fold_range): Same.
4664 (operator_abs::wi_fold): Same.
4665 (operator_absu::wi_fold): Same.
4666 (operator_negate::fold_range): Same.
4667 (operator_negate::op1_range): Change call to fold_range.
4668 (operator_addr_expr::fold_range): Return result via reference.
4669 (operator_addr_expr::op1_range): Change call to fold_range.
4670 (operator_pointer_plus::wi_fold): Return result via reference.
4671 (operator_pointer_min_max::wi_fold): Same.
4672 (operator_pointer_and::wi_fold): Same.
4673 (operator_pointer_or::wi_fold): Same.
4674 (range_op_handler): Change call to fold_range.
4676 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
4678 (range_fold_unary_symbolics_p): Same.
4679 (range_fold_binary_expr): Same.
4680 (range_fold_unary_expr): Same.
4682 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4684 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
4685 vector type as an argument rather than reading it from the
4687 (vect_create_epilog_for_reduction): Update accordingly.
4688 (vectorizable_reduction): Likewise.
4689 (vect_transform_cycle_phi): Likewise.
4691 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
4693 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
4694 the comparison codes that make sense for the mode used, and only the
4695 codes that can be done with a single branch instruction.
4697 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4699 PR tree-optimization/92351
4700 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
4701 peeling the main loop for alignment, make sure to set the misalignment
4702 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
4704 2019-11-08 Richard Biener <rguenther@suse.de>
4706 * dbgcnt.def (ivopts_loop): Add.
4707 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
4708 ivopts_loop before optimizing a loop.
4710 2019-11-08 Richard Biener <rguenther@suse.de>
4713 * tree-inline.c (declare_return_variable): Properly handle
4714 type mismatches for the return slot.
4716 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
4719 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
4720 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
4722 (got_helper_needed): New static variable.
4723 (output_load_pcrel_sym): New function.
4724 (get_pc_thunk_name): Remove after inlining...
4725 (load_got_register): ...here. Rework the initialization of the GOT
4726 register and of the GOT helper.
4727 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
4728 (sparc_file_end): Test got_helper_needed to decide whether the GOT
4729 helper must be emitted. Use output_asm_insn instead of fprintf.
4730 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
4731 if optimization is enabled.
4732 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
4733 by calling output_load_pcrel_sym.
4735 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4737 * tree-sra.c (create_access): Delay disqualifying the base
4738 for poly_int values until we know we have a base.
4740 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4742 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
4743 for loops with SIMDUID set. Enable epilogue vectorization for loops
4744 with SIMDLEN set after finding a main loop with a VF that matches it.
4746 2019-11-08 Jakub Jelinek <jakub@redhat.com>
4749 * gimple-ssa-store-merging.c (find_constituent_stores): For return
4750 value only, return non-NULL if there is a single non-clobber
4751 constituent store even if there are constituent clobbers and return
4752 one of clobber constituent stores if all constituent stores are
4754 (split_group): Handle clobbers.
4755 (imm_store_chain_info::output_merged_store): When computing
4756 bzero_first, look after all clobbers at the start. Don't count
4757 clobber stmts in orig_num_stmts, except if the first orig store is
4758 a clobber covering the whole area and split_stores cover the whole
4759 area, consider equal number of stmts ok. Punt if split_stores
4760 contains only ->orig stores and their number plus number of original
4761 clobbers is equal to original number of stmts. For ->orig, look past
4762 clobbers in the constituent stores.
4763 (imm_store_chain_info::output_merged_stores): Don't remove clobber
4765 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
4767 (store_valid_for_store_merging_p): Allow clobber stmts.
4768 (verify_clear_bit_region_be): Fix up a thinko in function comment.
4771 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
4772 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
4774 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
4775 force creation of a unique data.stack_parm slot.
4777 2019-11-08 Richard Biener <rguenther@suse.de>
4779 * genmatch.c (expr::gen_transform): Use the resimplify
4780 member function instead of hard-coding the gimple_resimplifyN variant.
4781 (dt_simplify::gen_1): Likewise.
4783 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4785 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4788 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4790 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
4791 instead of INTEGER_CST.
4793 2019-11-08 Richard Biener <rguenther@suse.de>
4795 PR tree-optimization/92324
4796 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4797 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
4798 sign-conversions as necessary.
4799 (vectorizable_reduction): Reject conversions in the chain
4800 that are not sign-conversions, base analysis on a non-converting
4801 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
4802 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
4804 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
4805 (STMT_VINFO_REDUC_VECTYPE): Likewise.
4807 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
4810 * config/avr/avr.opt (-mdouble=, -mlong-double=):
4811 Fix a missing '-' when displaying these options in the
4814 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4816 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
4818 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4820 * config/aarch64/aarch64-builtins.c
4821 (aarch64_builtin_vectorized_function): Remove bswap handling.
4823 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4825 * tree-core.h (tree_type_common::indivisible_p): New member variable.
4826 * tree.h (TYPE_INDIVISIBLE_P): New macro.
4827 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4828 Treat the vector types as indivisible.
4830 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
4832 * optabs.def (gather_load_optab, mask_gather_load_optab)
4833 (scatter_store_optab, mask_scatter_store_optab): Turn into
4834 conversion optabs, with the offset mode given explicitly.
4835 * doc/md.texi: Update accordingly.
4836 * config/aarch64/aarch64-sve-builtins-base.cc
4837 (svld1_gather_impl::expand): Likewise.
4838 (svst1_scatter_impl::expand): Likewise.
4839 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
4840 (expand_scatter_store_optab_fn): Likewise.
4841 (direct_gather_load_optab_supported_p): Likewise.
4842 (direct_scatter_store_optab_supported_p): Likewise.
4843 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
4845 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
4846 (internal_gather_scatter_fn_supported_p): Replace the offset sign
4847 argument with the offset vector type. Require the two vector
4848 types to have the same number of elements but allow their element
4849 sizes to be different. Treat the optabs as conversion optabs.
4850 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
4851 prototype accordingly.
4852 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
4853 (supports_vec_convert_optab_p): ...this new function.
4854 (supports_vec_gather_load_p): Update accordingly.
4855 (supports_vec_scatter_store_p): Likewise.
4856 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
4857 Replace the offset sign and bits parameters with a scalar type tree.
4858 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
4859 Pass back the offset vector type instead of the scalar element type.
4860 Allow the offset to be wider than the memory elements. Search for
4861 an offset type that the target supports, stopping once we've
4862 reached the maximum of the element size and pointer size.
4863 Update call to internal_gather_scatter_fn_supported_p.
4864 (vect_check_gather_scatter): Update calls accordingly.
4865 When testing a new scale before knowing the final offset type,
4866 check whether the scale is supported for any signed or unsigned
4867 offset type. Check whether the target supports the source and
4868 target types of a conversion before deciding whether to look
4869 through the conversion. Record the chosen offset_vectype.
4870 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
4871 (vect_recog_gather_scatter_pattern): Get the scalar offset type
4872 directly from the gs_info's offset_vectype instead. Pass a zero
4873 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
4874 * tree-vect-stmts.c (check_load_store_masking): Update call to
4875 internal_gather_scatter_fn_supported_p, passing the offset vector
4876 type recorded in the gs_info.
4877 (vect_truncate_gather_scatter_offset): Update call to
4878 vect_check_gather_scatter, leaving it to search for a valid
4880 (vect_use_strided_gather_scatters_p): Convert the offset to the
4881 element type of the gs_info's offset_vectype.
4882 (vect_get_gather_scatter_ops): Get the offset vector type directly
4884 (vect_get_strided_load_store_ops): Likewise.
4885 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
4886 and IFN_MASK_GATHER_LOAD.
4887 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
4888 (gather_load<mode><v_int_equiv>): ...this.
4889 (mask_gather_load<mode>): Rename to...
4890 (mask_gather_load<mode><v_int_equiv>): ...this.
4891 (scatter_store<mode>): Rename to...
4892 (scatter_store<mode><v_int_equiv>): ...this.
4893 (mask_scatter_store<mode>): Rename to...
4894 (mask_scatter_store<mode><v_int_equiv>): ...this.
4896 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
4899 * config/rs6000/predicates.md
4900 (signed_or_equality_comparison_operator): New predicate.
4901 (unsigned_or_equality_comparison_operator): Likewise.
4902 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
4903 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
4904 * config/rs6000/vector.md
4905 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
4906 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
4907 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
4908 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
4909 vector modes and same-size integer vector modes.
4910 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
4911 (vector_lt<mode> for VEC_F): New expand.
4912 (vector_le<mode> for VEC_F): Likewise.
4913 (vector_ne<mode> for VEC_F): Likewise.
4914 (vector_unge<mode> for VEC_F): Likewise.
4915 (vector_ungt<mode> for VEC_F): Likewise.
4916 (vector_unle<mode> for VEC_F): Likewise.
4917 (vector_unlt<mode> for VEC_F): Likewise.
4918 (vector_uneq<mode>): Expose name.
4919 (vector_ltgt<mode>): Likewise.
4920 (vector_unordered<mode>): Likewise.
4921 (vector_ordered<mode>): Likewise.
4923 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
4926 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
4927 Enhance ix86_expand_vector_init_concat.
4929 2019-11-08 Joseph Myers <joseph@codesourcery.com>
4931 * doc/invoke.texi (-Wold-style-definition): Document () not being
4932 considered an old-style definition for C2x.
4934 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
4936 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
4938 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
4939 insn patterns using ldcw instruction.
4940 (memory_barrier): Remove insn pattern using sync instruction.
4941 * config/pa/pa.opt (coherent-ldcw): New option.
4942 (ordered): New option.
4944 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4946 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
4949 2019-11-07 Jakub Jelinek <jakub@redhat.com>
4951 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
4952 typo - mistmatch -> mismatch.
4953 * ipa-profile.c (ipa_profile): Likewise.
4954 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
4955 - mistmatch -> mismatch.
4957 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
4959 * simplify-rtx.c (comparison_to_mask): New function.
4960 (mask_to_comparison): New function.
4961 (simplify_logical_relational_operation): New function.
4962 (simplify_binary_operation_1): Call
4963 simplify_logical_relational_operation.
4965 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
4968 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
4969 modes for integer constants.
4971 2019-11-07 Jan Hubicka <jh@suse.cz>
4974 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
4977 2019-11-07 Jan Hubicka <jh@suse.cz>
4979 * optc-save-gen.awk: Generate cl_target_option_free
4980 and cl_optimization_option_free.
4981 * opth-en.awk: Declare cl_target_option_free
4982 and cl_optimization_option_free.
4983 * tree.c (free_node): Use it.
4985 2019-11-06 Jan Hubicka <jh@suse.cz>
4987 * lto-streamer-in.c: Include alloc-pool.h.
4988 (freeing_string_slot_hasher): Remove.
4989 (string_slot_allocator): New object allocator.
4990 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
4991 (file_name_obstack): New obstack.
4992 (canon_file_name): Allocate in obstack and allocator.
4993 (lto_reader_init): Initialize obstack and allocator.
4994 (lto_free_file_name_hash): New function.
4995 * lto-streamer.h (lto_free_file_name_hash): New.
4997 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
4999 PR tree-optimization/89134
5000 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
5001 * params.def: Add min-loop-cond-split-prob.
5002 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
5003 outside checks on loop into the function.
5004 (split_info): New class.
5005 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
5006 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
5007 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
5008 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
5009 (stmt_semi_invariant_p, branch_removable_p): Likewise.
5010 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
5011 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
5012 (split_loop_on_cond): Likewise.
5013 (tree_ssa_split_loops): Add loop split on conditional statement.
5015 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
5017 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
5020 2019-11-07 Richard Biener <rguenther@suse.de>
5022 PR tree-optimization/92405
5023 * tree-vect-loop.c (vectorizable_reduction): Appropriately
5024 restrict lane-reducing ops to single stmt chains.
5026 2019-11-07 Martin Jambor <mjambor@suse.cz>
5029 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
5030 * cgraph.h (gimple_check_call_matching_types): Remove
5031 * cgraph.c (gimple_check_call_args): Likewise.
5032 (gimple_check_call_matching_types): Likewise.
5033 (symbol_table::create_edge): Do not call
5034 gimple_check_call_matching_types.
5035 (cgraph_edge::make_direct): Likewise.
5036 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
5037 * value-prof.h (check_ic_target): Remove.
5038 * value-prof.c (check_ic_target): Remove.
5039 (gimple_ic_transform): Do nat call check_ic_target.
5040 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
5041 (afdo_indirect_call): Likewise.
5042 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
5043 gimple_check_call_matching_types.
5044 * ipa-inline.c (early_inliner): Likewise.
5046 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5048 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
5049 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
5050 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
5051 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5052 * config/arm/iterators.md (USSAT16): New int_iterator.
5053 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
5055 * config/arm/predicates.md (ssat16_imm): New predicate.
5056 (usat16_imm): Likewise.
5057 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
5059 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5061 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
5063 (arm_<simd32_op>): New define_expands.
5064 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
5065 __smuad, __smuadx): Define.
5066 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5067 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
5068 (SIMD32_BINOP_Q): Likewise.
5069 (simd32_op): Handle the above.
5070 * config/arm/unspecs.md: Define unspecs for the above.
5072 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5074 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
5075 * config/arm/arm.md (APSRGE_REGNUM): Define.
5076 (arm_<simd32_op>): New define_insn.
5077 (arm_sel): Likewise.
5078 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
5079 (CALL_USED_REGISTERS): Likewise.
5080 (REG_ALLOC_ORDER): Likewise.
5081 (FIRST_PSEUDO_REGISTER): Update value.
5082 (ARM_GE_BITS_READ): Define.
5083 * config/arm/arm.c (arm_conditional_register_usage): Clear
5084 APSRGE_REGNUM from operand_reg_set.
5085 (arm_ge_bits_access): Define.
5086 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
5088 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
5089 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
5090 FAIL if ARM_GE_BITS_READ.
5091 (*arm_add<mode>3): New define_insn.
5092 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
5093 (*arm_sub<mode>3): New define_insn.
5094 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
5095 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
5097 * config/arm/arm_acle_builtins.def: Define builtins for the above.
5098 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
5099 (simd32_op): Handle the above.
5100 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
5101 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
5102 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
5103 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
5105 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5107 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
5108 (arm_smlabb): New define_expand.
5109 (*maddhisi4tb): Rename to...
5110 (maddhisi4tb): ... This.
5111 (*maddhisi4tt): Rename to...
5112 (maddhisi4tt): ... This.
5113 (arm_smlatb_setq): New define_insn.
5114 (arm_smlatb): New define_expand.
5115 (arm_smlatt_setq): New define_insn.
5116 (arm_smlatt): New define_expand.
5117 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
5118 (arm_<smlaw_op>): New define_expand.
5119 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
5120 __smlawb, __smlawt): Define.
5121 * config/arm_acle_builtins.def: Define builtins for the above.
5122 * config/arm/iterators.md (SMLAWBT): New int_iterator.
5123 (slaw_op): New int_attribute.
5124 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
5126 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5128 * config/arm/arm.md (arm_<ss_op>): New define_expand.
5129 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
5130 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
5131 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
5132 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
5133 (ss_op): New code_attr.
5135 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5137 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
5138 * config/arm/arm.md (APSRQ_REGNUM): Define.
5139 (add_setq): New define_subst.
5140 (add_clobber_q_name): New define_subst_attr.
5141 (add_clobber_q_pred): Likewise.
5142 (maddhisi4): Change to define_expand. Split into mult and add if
5144 (arm_maddhisi4): New define_insn.
5145 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
5146 (*maddhisi4tt): Likewise.
5147 (arm_ssat): New define_expand.
5148 (arm_usat): Likewise.
5149 (arm_get_apsr): New define_insn.
5150 (arm_set_apsr): Likewise.
5151 (arm_saturation_occurred): New define_expand.
5152 (arm_set_saturation): Likewise.
5153 (*satsi_<SAT:code>): Rename to...
5154 (satsi_<SAT:code><add_clobber_q_name>): ... This.
5155 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
5156 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
5157 (CALL_USED_REGISTERS): Mark apsrq.
5158 (FIRST_PSEUDO_REGISTER): Update value.
5159 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
5160 (machine_function): Add q_bit_access.
5161 (ARM_Q_BIT_READ): Define.
5162 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
5163 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
5165 (arm_q_bit_access): Define.
5166 * config/arm/arm-builtins.c: Include stringpool.h.
5167 (arm_sat_binop_imm_qualifiers,
5168 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
5169 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
5170 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
5171 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
5172 SET_SAT_QUALIFIERS): Likewise.
5173 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
5174 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
5175 Handle 0 argument expander.
5176 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
5177 (arm_check_builtin_call): Define.
5178 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
5179 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
5180 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
5181 (arm_q_bit_access): Likewise.
5182 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
5183 __saturation_occurred, __set_saturation_occurred): Define.
5184 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
5185 saturation_occurred, set_saturation_occurred.
5186 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
5187 (UNSPEC_APSR_READ): Likewise.
5188 (VUNSPEC_APSR_WRITE): Likewise.
5189 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
5190 (*arm_ssadd<mode>3): New define_insn.
5191 (sssub<mode>3): Convert to define_expand.
5192 (*arm_sssub<mode>3): New define_insn.
5193 (ssmulsa3): Convert to define_expand.
5194 (*arm_ssmulsa3): New define_insn.
5195 (usmulusa3): Convert to define_expand.
5196 (*arm_usmulusa3): New define_insn.
5197 (ssmulha3): FAIL if ARM_Q_BIT_READ.
5198 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
5199 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
5201 2019-11-07 Martin Liska <mliska@suse.cz>
5204 * cgraph.c (delete_function_version): Clear global
5205 variable version_info_node if equal to deleted
5208 2019-11-07 Martin Liska <mliska@suse.cz>
5210 * fold-const.c (operand_compare::operand_equal_p): Add comparison
5211 of CONSTRUCTOR_NO_CLEARING.
5212 (operand_compare::hash_operand): Likewise.
5214 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
5216 Support 64-bit double and 64-bit long double configurations.
5219 * config.gcc (tm_defines) [avr]: Set from --with-double=,
5220 --with-long-double=.
5221 * config/avr/t-multilib: Remove.
5222 * config/avr/t-avr: Output of genmultilib.awk is now fully
5223 dynamically generated and no more part of the repo.
5224 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
5225 Pass them down to...
5226 * config/avr/genmultilib.awk: ...here and handle them.
5227 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
5228 (-mlong-double=, avr_long_double). New option and var.
5229 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
5230 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
5231 Set default as requested by --with-double=
5232 (TARGET_HANDLE_OPTION): Define to this...
5233 (avr_handle_option): ...new hook worker.
5234 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
5235 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
5236 (avr_double_lib): New proto for spec function.
5237 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
5238 (DRIVER_SELF_SPECS): Call %:double-lib.
5239 * config/avr/avr.c (avr_option_override): Assert
5240 sizeof(long double) >= sizeof(double) for the target.
5241 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
5242 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
5243 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
5244 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
5245 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
5246 New built-in define depending on --with-double=, --with-long-double=.
5247 * config/avr/driver-avr.c (avr_double_lib): New spec function.
5248 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
5249 * doc/install.texi (Cross-Compiler-Specific Options)
5250 <--with-double=, --with-long-double=>: Doc.
5252 2019-11-07 Richard Biener <rguenther@suse.de>
5254 * dbgcnt.def (gimple_unroll): New.
5255 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
5256 gimple_unroll debug counter before applying transform.
5257 (try_peel_loop): Likewise.
5259 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
5261 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
5262 frame pointer in multiple registers.
5263 (ira_setup_eliminable_regset): Setup eliminable_regset,
5264 ira_no_alloc_regs and regs_ever_live for frame pointer in
5267 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
5269 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
5272 2019-11-06 Jan Hubicka <jh@suse.cz>
5274 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
5276 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
5277 Do not silently ignore summary corruptions.
5279 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5281 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
5282 the epilogue if there are peeled iterations for it to handle.
5284 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5286 * config/arc/arc.c (arc_split_ior): Add asserts.
5287 (arc_split_mov_const): Likewise.
5288 (arc_check_ior_const): Do not match known short immediate values.
5289 * config/arc/arc.md (movsi): Don't split predicated instructions
5292 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5294 * config/arc/arc.opt (mea): Update help string.
5295 * doc/invoke.texi(ARC): Update mea option info.
5297 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
5299 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
5300 (zero_extendqisi2_ac): Likewise.
5301 (zero_extendhisi2_i): Likewise.
5302 (extendqihi2_i): Likewise.
5303 (extendqisi2_ac): Likewise.
5304 (extendhisi2_i): Likewise.
5306 2019-11-06 Richard Biener <rguenther@suse.de>
5308 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
5309 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
5310 Simplify single_defuse_cycle condition.
5312 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5314 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
5315 epilogue loop, make sure that the VF is small enough or that
5316 the epilogue loop can be fully-masked.
5318 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
5320 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
5321 loop when we've finished, rather than returning directly from
5322 the loop. Use a local variable to track whether we're still
5323 searching for the preferred simdlen. Make vect_epilogues
5324 record whether the next iteration should try to treat the
5325 loop as an epilogue.
5327 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
5329 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
5330 __arc_hard_float__, __ARC_HARD_FLOAT__,
5331 __arc_soft_float__, __ARC_SOFT_FLOAT__
5333 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
5335 PR tree-optimization/92317
5336 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
5337 update phi's with constant phi arguments.
5339 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
5340 Alexandre Oliva <oliva@adacore.com>
5342 * common.opt (-fcallgraph-info[=]): New option.
5343 * doc/invoke.texi (Developer options): Document it.
5344 * opts.c (common_handle_option): Handle it.
5345 * builtins.c (expand_builtin_alloca): Record allocation if
5346 -fcallgraph-info=da.
5347 * calls.c (expand_call): If -fcallgraph-info, record the call.
5348 (emit_library_call_value_1): Likewise.
5349 * flag-types.h (enum callgraph_info_type): New type.
5350 * explow.c: Include stringpool.h.
5351 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
5352 * function.c (allocate_stack_usage_info): New.
5353 (allocate_struct_function): Call it for -fcallgraph-info.
5354 (prepare_function_start): Call it otherwise.
5355 (record_final_call, record_dynamic_alloc): New.
5356 * function.h (struct callinfo_callee): New.
5357 (CALLEE_FROM_CGRAPH_P): New.
5358 (struct callinfo_dalloc): New.
5359 (struct stack_usage): Add callees and dallocs.
5360 (record_final_call, record_dynamic_alloc): Declare.
5361 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
5362 object if -fcallgraph-info=da.
5363 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
5364 * print-tree.h (print_decl_identifier): Declare.
5365 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
5366 * print-tree.c: Include print-tree.h.
5367 (print_decl_identifier): New function.
5368 * toplev.c: Include print-tree.h.
5369 (callgraph_info_file): New global variable.
5370 (callgraph_info_external_printed): Likewise.
5371 (output_stack_usage): Rename to...
5372 (output_stack_usage_1): ... this. Make it static, add cf
5373 parameter. If -fcallgraph-info=su, print stack usage to cf.
5374 If -fstack-usage, use print_decl_identifier for
5376 (INDIRECT_CALL_NAME): New.
5377 (dump_final_node_vcg_start): New.
5378 (dump_final_callee_vcg, dump_final_node_vcg): New.
5379 (output_stack_usage): New.
5380 (lang_dependent_init): Open and start file if
5381 -fcallgraph-info. Allocated callgraph_info_external_printed.
5382 (finalize): If callgraph_info_file is not null, finish it,
5383 close it, and release callgraph_info_external_printed.
5385 2019-11-06 Gergö Barany <gergo@codesourcery.com>
5386 Frederik Harwath <frederik@codesourcery.com>
5387 Thomas Schwinge <thomas@codesourcery.com>
5389 * omp-low.c (struct omp_context): New fields
5390 local_reduction_clauses, outer_reduction_clauses.
5391 (new_omp_context): Initialize these.
5392 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
5393 (scan_omp_for): Check reduction clauses for incorrect nesting.
5395 2019-11-06 Jakub Jelinek <jakub@redhat.com>
5398 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
5399 operands with non-memory constraints.
5401 2019-11-05 Martin Sebor <msebor@redhat.com>
5403 PR tree-optimization/92373
5404 * tree.c (component_ref_size): Only consider initializers of objects
5405 of matching struct types.
5406 Return null for instances of interior zero-length arrays.
5408 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
5410 * doc/md.texi (Insn Splitting): Fix combiner documentation.
5412 2019-11-05 Jason Merrill <jason@redhat.com>
5414 PR tree-optimization/91825
5415 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
5417 2019-11-05 Jim Wilson <jimw@sifive.com>
5420 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
5421 optimize_insn_for_speed_p is true.
5423 2019-11-05 Martin Sebor <msebor@redhat.com>
5427 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
5429 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
5430 name and location for a temporary variable.
5432 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5434 * tree-vrp.c (value_range::value_range): Fix whitespace.
5435 (defined_ranges_p): Same.
5436 (range_fold_binary_symbolics_p): Same.
5437 (value_range::intersect_helper): Same.
5438 (value_range::union_helper): Same.
5439 * tree-vrp.h (range_fold_binary_expr): Same.
5441 2019-11-04 Martin Sebor <msebor@redhat.com>
5445 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
5446 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
5447 of message printed in a warning for empty arrays.
5448 (vrp_prop::check_mem_ref): Also handle function parameters and
5451 2019-11-05 Richard Biener <rguenther@suse.de>
5453 PR tree-optimization/92371
5454 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
5455 on the original stmt of live stmts in the chain.
5456 (vectorizable_live_operation): Look at the original stmt when
5457 checking STMT_VINFO_REDUC_DEF.
5459 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5461 * gimple-fold.c, gimple-loop-versioning.cc,
5462 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
5463 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
5464 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
5465 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
5466 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
5467 value_range_equiv, and value_range_base to value_range.
5469 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5471 * expr.c (build_personality_function): Fix generated type to
5472 match actual personality functions.
5474 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
5476 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
5477 enough bytes for the NULL character.
5479 2019-11-05 Richard Biener <rguenther@suse.de>
5481 PR tree-optimization/92280
5482 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
5483 had a single use do not create a new CTOR.
5484 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
5485 BIT_FIELD_REF of a CTOR via GENERIC.
5487 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
5489 * config/s390/s390.c (s390_vector_alignment): Check if the value
5490 fits into uhwi before using it.
5492 2019-11-05 Martin Liska <mliska@suse.cz>
5494 * symbol-summary.h: Use ggc_delete.
5496 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
5498 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
5499 Change vec_perm field to 10.
5501 2019-11-05 Arnaud Charlet <charlet@adacore.com>
5503 * doc/install.texi: Further fix syntax for html generation.
5505 2019-11-05 Martin Liska <mliska@suse.cz>
5507 * symbol-summary.h: Rename allocator to m_allocator and
5510 2019-11-05 Richard Biener <rguenther@suse.de>
5512 PR tree-optimization/92324
5513 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
5514 all signed or unsigned operations.
5516 2019-11-05 Jan Hubicka <jh@suse.cz>
5518 * hsa-brig.c: Include alloc-pool.h
5519 * hsa-dump.c: Likewise.
5520 * hsa-gen.c: Likewise.
5521 * hse-regalloc.c: Likewise.
5522 * ipa-hsa.c: Likewise.
5523 * ipa-predicate.c: Likewise.
5524 * ipa-reference.c: Likewise.
5525 * ipa-sra.c: Likewise.
5526 * omp-expand.c: Likewise.
5527 * omp-general.c: Likewise.
5528 * omp-low.c: Likewise.
5529 * sumbol-summary.h (function_summary_base): Add allocator.
5530 (function_summary<T *>::function_summary): Update construction.
5531 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
5532 (call_summary_base): Add allcator.
5533 (call_summary<T *>::call_summary): Update construction.
5534 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
5536 2019-11-05 Jakub Jelinek <jakub@redhat.com>
5538 PR tree-optimization/91945
5539 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
5540 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
5543 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5545 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
5546 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
5547 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
5548 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
5549 (vrp_set_zero_nonzero_bits): Move to...
5550 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
5551 (vr_values::simplify_bit_ops_using_ranges): Rename
5552 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
5554 2019-11-05 Martin Liska <mliska@suse.cz>
5557 * fold-const.c (operand_compare::hash_operand): Remove
5558 FIELD_DECL handling.
5560 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5562 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
5563 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
5566 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
5568 * tree-vrp.c (value_range_base::operator==): Use equal_p to
5569 properly handle symbolics.
5570 (range_compatible_p): Remove.
5572 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
5574 * common.opt (-fabi-version): Document =14.
5575 * doc/invoke.texi (C++ Dialect Options): Likewise.
5577 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5579 * tree-vrp.c (value_range_base::set): Do not special case pointers.
5581 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
5583 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
5584 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
5585 gcn_omp_device_kind_arch_isa.
5586 * config/gcn/t-omp-device: New file.
5587 * configure.ac: Support gcn for omp_device_property.
5588 * configure: Regenerate.
5590 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5592 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
5593 (vrp_val_max): Same.
5594 (vrp_val_is_min): Same.
5595 (vrp_val_is_max): Same.
5596 (value_range_base::nonzero_p): Remove last argument to
5598 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
5599 (vrp_val_max): Same.
5600 (vrp_val_is_min): Same.
5601 (vrp_val_is_max): Same.
5602 (value_range_base::set_varying): Remove last argument to vrp_val*.
5603 (value_range_base::dump): Same.
5604 (value_range_base::set): Same.
5605 (value_range_base::normalize_symbolics): Same.
5606 (value_range_base::num_pairs): Same.
5607 (value_range_base::lower_bound): Same.
5608 (value_range_base::upper_bound): Same.
5609 (ranges_from_anti_range): Remove handle_pointers argument.
5610 (value_range_base::singleton_p): Remove last argument to
5611 ranges_from_anti_range.
5613 2019-11-04 Jan Hubicka <jh@suse.cz>
5615 * ipa-reference.c (init_function_info): Initialize
5616 info->global.statics_read.
5618 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5620 * tree-vrp.c (value_range_base::invert): Use constructors to build
5623 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5625 * tree-vrp.c (range_int_cst_singleton_p): Remove.
5626 * tree-vrp.h (range_int_cst_singleton_p): Remove.
5628 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5630 * tree-vrp.c (value_range_base::normalize_addresses): Handle
5633 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
5635 * tree-vrp.c (dump_assert_info): New.
5636 (dump_asserts_info): New.
5638 2019-11-04 Jan Hubicka <jh@suse.cz>
5640 * ipa-inline-transform.c: Include ipa-utils.h
5641 (inline_call): Set thunk_expansion flag.
5642 * ipa-utils.h (thunk_expansion): Declare.
5643 * ipa-devirt.c (thunk_expansion): New global var.
5644 (devirt_node_removal_hook): Do not invalidate cache while
5645 doing thunk expansion.
5647 2019-11-04 Tamar Christina <tamar.christina@arm.com>
5649 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
5651 2019-11-04 Martin Sebor <msebor@redhat.com>
5653 PR tree-optimization/92349
5654 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
5655 memebers have constant sizes.
5657 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
5659 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
5661 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
5662 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
5665 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
5667 * expr.c (store_constructor): Modify to handle single element vectors.
5668 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
5670 (vect_slp_check_for_constructors): New function.
5671 (vect_slp_analyze_bb_1): Call new function to check for vector
5673 (vectorize_slp_instance_root_stmt): New function.
5674 (vect_schedule_slp): Call new function to vectorize root stmt of vector
5676 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
5678 2019-11-04 Richard Biener <rguenther@suse.de>
5680 PR tree-optimization/92345
5681 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
5682 we produced a reduction chain.
5683 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
5684 LOOP_VINFO_REDUCTIONS.
5686 2019-11-04 Jan Hubicka <jh@suse.cz>
5688 * cgraphclones.c (cgraph_node::create_version_clone): Do not
5689 duplicate summaries.
5690 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
5692 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
5693 access call summaries.
5694 (dump_ipa_call_summary): Be ready for missing edge summaries.
5695 (analyze_function_body): Use get instead of get_create to access
5697 (estimate_calls_size_and_time): Do not access summaries of
5698 inlined edges; sanity check they are missing.
5699 (ipa_call_context::estimate_size_and_time): Use get instead
5700 of get_create to access node summary.
5701 (inline_update_callee_summaries): Do not update depth of
5703 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
5705 (ipa_merge_fn_summary_after_inlining): Use get instead
5707 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
5708 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
5710 (initialize_growth_caches): Update.
5711 (do_estimate_edge_time): Remove redundant copy of context.
5712 (ipa_remove_from_growth_caches): New function.
5713 * ipa-inline.c (flatten_function): Update overall summary
5714 only when optimizing.
5715 (inline_to_all_callers): Update overall summary of function
5717 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
5718 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
5721 2019-11-04 Richard Biener <rguenther@suse.de>
5723 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
5724 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
5726 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
5728 * ggc-common.c: Include system.h before malloc.h.
5730 2019-11-04 Alexandre Oliva <oliva@adacore.com>
5732 * configure.ac: Pass --enable-obsolete=* and
5733 --enable-option-checking=* down to build configure, and fail
5734 if it fails. AC_SUBST HAVE_AUTO_BUILD.
5735 * configure: Rebuild.
5736 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
5737 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
5739 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5741 * config.in: Regenerate.
5742 * config/msp430/msp430.c (msp430_option_override): Emit an error if
5743 -mtiny-printf is used without GCC being configured with
5744 --enable-newlib-nano-formatted-io.
5745 * config/msp430/msp430.h (LINK_SPEC): Pass
5746 "--wrap puts --wrap printf" when -mtiny-printf is used.
5747 * config/msp430/msp430.opt: Document -mtiny-printf.
5748 * configure: Regenerate.
5749 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
5750 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
5751 --enable-newlib-nano-formatted-io is passed.
5752 * doc/invoke.texi: Document -mtiny-printf.
5754 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5756 * configure: Regenerate.
5758 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5760 * config/msp430/driver-msp430.c
5761 (msp430_get_linker_devices_include_path): New spec function.
5762 * config/msp430/msp430-devices.c (msp430_dirname): New function.
5763 (extract_devices_dir_from_exec_prefix): New function.
5764 (extract_devices_dir_from_collect_gcc): New function.
5765 (msp430_check_env_var_for_devices): New function.
5766 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
5767 (parse_devices_csv): Call msp430_check_env_var_for_devices if
5768 devices.csv was not found using other methods.
5769 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
5771 (msp430_dirname): Likewise.
5772 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
5773 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
5774 msp430_get_linker_devices_include_path.
5775 (TARGET_EXTRA_PRE_INCLUDES): Define.
5776 * doc/invoke.texi: Document new ways of searching for support files.
5778 2019-11-04 Richard Biener <rguenther@suse.de>
5780 PR tree-optimization/92301
5781 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
5782 as required by epilogue generation
5784 2019-11-04 Martin Liska <mliska@suse.cz>
5787 * fold-const.c (operand_compare::hash_operand): Fix field
5788 hashing of CONSTRUCTOR.
5790 2019-11-04 Martin Liska <mliska@suse.cz>
5792 * ggc.h (ggc_delete): New function.
5793 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
5794 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
5795 (ipa_free_all_node_params): Likewise.
5796 * ipa-sra.c (ipa_sra_analysis): Likewise.
5798 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5800 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
5801 set_switch_stmt_execution_predicate, compute_bb_predicates,
5802 will_be_nonconstant_expr_predicate,
5803 phi_result_unknown_predicate,
5804 analyze_function_body): Pass arround params summary.
5805 (ipa_call_context::duplicate_from): New comment;
5806 only duplicate useful values.
5807 (ipa_call_context::equal_to): Only compare useful values.
5808 (remap_edge_summaries): Pass params_summary.
5809 (remap_hint_predicate): Likewise.
5810 (ipa_merge_fn_summary_after_inlining): Likewise.
5811 (inline_read_section): Initialize params summary used flags.
5812 * ipa-predicate.c (predicate::remap_after_inlining): Pass
5813 around param_summary.
5814 (add_condition): Initialized used params summary flags.
5815 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
5816 (inline_param_summary::useless_p): New predicate.
5817 (remap_after_inlining, add_condition): Update prototype
5818 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
5820 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
5822 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
5823 (ipa_analyze_virtual_call_uses): Likewise.
5824 (update_indirect_edges_after_inlining): Update param summaries.
5825 (ipa_print_node_params): Print used flags.
5826 (ipa_read_indirect_edge_info): Update param summareis.
5827 * ipa-prop.h (ipa_param_descriptor): Add
5828 used_by_ipa_predicates, used_by_indirect_call
5829 and used_by_polymorphic_call.
5830 (ipa_set_param_used_by_ipa_predicates,
5831 ipa_set_param_used_by_indirect_call,
5832 ipa_set_param_used_by_polymorphic_call,
5833 ipa_is_param_used_by_ipa_predicates,
5834 ipa_is_param_used_by_indirect_call,
5835 ipa_is_param_used_by_polymorphic_call): New inline functions.
5837 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5839 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
5841 (ipa_call_context::release): Add ALL parameter.
5842 (ipa_call_context::equal_to): New member function.
5843 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
5844 duplicate_form, release, equal_to and exists_p member functoins.
5845 * ipa-inline-analysis.c (node_context_cache_entry): New
5847 (node_context_summary): Likewise.
5848 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
5849 node_context_clear): New static vars.
5850 (initialize_growth_caches): New function.
5851 (free_growth_caches): Also delete node_context_cache; output stats.
5852 (do_estimate_edge_time): Cache contexts.
5853 (reset_node_cache): New function.
5854 * ipa-inline.c (reset_edge_caches): Reset also node cache.
5855 (inline_small_functions): Initialize growth caches.
5856 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
5858 * ipa-predicate.h (inline_param_summary::equal_to): New.
5859 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
5860 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
5861 (ipa_agg_jump_function): Implement equal_to member function.
5863 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5865 * ipa-fnsummary.c (inline_read_section): Set vector size
5868 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5870 * ipa-fnsummary.c (ipa_call_context): New constructor.
5871 (estimate_node_size_and_time): Turn to ...
5872 (ipa_call_context::estimate_size_and_time): ... this one.
5873 (ipa_call_context::release): New.
5874 * ipa-fnsummary.h (ipa_call_context): New class.
5875 (estimate_node_size_and_time): Remove.
5876 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
5877 do_estimate_edge_hints): Update.
5879 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
5881 * config.in: Regenerate.
5882 * configure: Regenerate.
5883 * configure.ac: Check for mallinfo.
5884 * ggc-common.c: Include malloc.h if available;
5886 (report_heap_memory_use): New functoin.
5887 * ggc-page.c (ggc_grow): Do not print "start".
5888 * ggc.h (report_heap_memory_use): Declare.
5889 * pases.c (execute_one_pass): Report memory after IPA passes.
5890 (ipa_read_summaries_1): Likewise.
5891 (ipa_read_optimization_summaries_1): Likewise.
5893 2019-11-02 Jakub Jelinek <jakub@redhat.com>
5895 * gimplify.h (omp_construct_selector_matches): Change return
5896 type to int, add a new SCORES argument.
5897 * gimplify.c (omp_construct_selector_matches): Likewise. If
5898 SCORES is non-NULL, compute scores of each construct.
5899 * omp-general.h (omp_get_context_selector): Declare.
5900 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
5901 Adjust omp_construct_selector_matches callers.
5902 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
5903 (omp_context_compute_score): New function.
5904 (omp_resolve_declare_variant): Compute scores and decide based on
5908 * configure.ac: Don't look for omp-device-properties files from
5909 installed offloading compilers. Instead add tmake_file snippets
5910 for configured offloading targets and use files they generate.
5911 * Makefile.in (install): Don't depend on
5912 install-omp-device-properties.
5913 (install-omp-device-properties): Remove goal.
5914 * config/i386/t-omp-device: New file.
5915 * config/i386/t-intelmic (omp-device-properties): Remove goal.
5916 * config/nvptx/t-omp-device: New file.
5917 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
5918 * configure: Regenerated.
5920 * omp-general.h (omp_context_selector_set_compare): Declare.
5921 * omp-general.c (omp_construct_simd_compare,
5922 omp_context_selector_props_compare, omp_context_selector_set_compare,
5923 omp_context_selector_compare): New functions.
5924 (omp_resolve_declare_variant): Prune variants that are strict subset
5927 2019-11-01 Martin Sebor <msebor@redhat.com>
5933 * doc/invoke.texi (-Wzero-length-bounds): Document.
5934 * gimple-match-head.c (try_conditional_simplification): Use memcpy
5935 instead of a hand-rolled loop to avoid PR 92323.
5936 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
5938 (vrp_prop::check_mem_ref): Handle declared struct objects.
5939 * tree.c (last_field): New function.
5940 (array_at_struct_end_p): Handle MEM_REF.
5941 (get_initializer_for): New helper.
5942 (component_ref_size): Add argument. Rename locals. Call
5943 get_initializer_for instead of fold_ctor_reference. Correct handling
5944 of flexible array members.
5945 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
5947 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5949 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
5950 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
5951 UNSPEC_VSX_CVSPUXDS): Remove.
5952 (vsx_xvcvspdp): New define_expand, old define_insn split to...
5953 (vsx_xvcvspdp_be): ... this. New. And...
5954 (vsx_xvcvspdp_le): ... this. New.
5955 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
5956 (vsx_xvcv<su>xwdp_be): ... this. New. And...
5957 (vsx_xvcv<su>xwdp_le): ... this. New.
5958 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
5959 (vsx_xvcvsp<su>xds_be): ... this. New. And...
5960 (vsx_xvcvsp<su>xds_le): ... this. New.
5962 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5964 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
5965 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
5966 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
5967 UNSPEC_VSX_XVCVSPSXWS): Remove.
5968 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
5969 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
5971 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
5973 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
5974 (UNSPEC_VSX_XVCDPSP): Remove.
5975 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
5976 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
5978 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
5980 * hooks.c (hook_tree_tree_bool_null): New.
5981 * hooks.h (hook_tree_tree_bool_null): Declare.
5982 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
5983 (LANG_HOOKS_DECLS): Add it.
5984 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
5985 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
5986 (lower_omp_target): Handle Fortran array with descriptor in
5987 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
5989 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
5991 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
5992 Assert that the type we store in abi_vector_types is its own
5994 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
5996 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
5998 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
5999 from a CONST_INT address when TARGET_THUMB2.
6001 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
6003 * config/arm/arm.md (add_not_cin): New insn.
6004 (add_not_shift_cin): Likewise.
6006 2019-10-31 Martin Liska <mliska@suse.cz>
6008 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
6009 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
6010 and compare_memory_operand.
6012 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6014 * configure.ac: Compute and substitute omp_device_properties and
6015 omp_device_property_deps.
6016 * Makefile.in (generated_files): Add omp-device-properties.h.
6017 (omp-general.o): Depend on omp-device-properties.h.
6018 (omp_device_properties): New make variable.
6019 (omp-device-properties.h, s-omp-device-properties-h,
6020 install-omp-device-properties): New goals.
6021 (install): Depend on install-omp-device-properties for accelerators.
6022 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
6023 * target.h (enum omp_device_kind_arch_isa): New enum.
6024 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
6026 * omp-general.c: Include omp-device-properties.h.
6027 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
6028 colon instead of comma.
6029 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
6031 (omp_context_selector_matches): Implement device set arch/isa
6032 selectors, improve device set kind selector handling.
6033 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
6034 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
6035 TARGET_SIMD_CLONE_USABLE): Formatting fix.
6036 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6037 ix86_omp_device_kind_arch_isa.
6038 * config/i386/i386-options.c (struct ix86_target_opts): Move type
6039 definition from ix86_target_string to file scope.
6040 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
6042 (ix86_omp_device_kind_arch_isa): New function.
6043 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
6044 isa_opts definitions to file scope.
6045 * config/i386/t-intelmic (omp-device-properties): New goal.
6046 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
6047 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
6048 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
6049 nvptx_omp_device_kind_arch_isa.
6050 * configure: Regenerate.
6051 * doc/tm.texi: Regenerate.
6054 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
6055 DECL_BUILT_IN in comment. Remove redundant ()s around return
6057 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
6058 before calling fndecl_built_in_p.
6059 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
6060 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
6061 fndecl_built_in_p on it.
6063 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
6065 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
6067 2019-10-31 Martin Liska <mliska@suse.cz>
6069 * config/arm/arm.c (arm_get_pcs_model): Remove usage
6070 of cgraph_local_info and use local_info_node instead.
6071 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
6072 (bfin_function_ok_for_sibcall): Likewise.
6073 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
6074 (must_reload_pic_reg_p): Likewise.
6076 2019-10-31 Jakub Jelinek <jakub@redhat.com>
6079 * tree.h (type_initializer_zero_p): Remove.
6080 * tree.c (type_initializer_zero_p): Remove.
6082 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
6084 * doc/invoke.texi (-Wshadow, -Wshadow=global
6085 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
6087 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
6089 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
6090 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
6091 and 'target exit data'.
6093 2019-10-30 Martin Jambor <mjambor@suse.cz>
6096 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
6097 availability comparison.
6099 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6101 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
6102 calls to __mspabi_mpy* functions.
6103 * config/msp430/msp430.md (mulhisi3): New define_expand.
6104 (umulhisi3): New define_expand.
6105 (*mulhisi3_inline): Use old mulhisi3 define_insn.
6106 (*umulhisi3_inline): Use old umulhisi3 define_insn.
6108 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6110 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
6111 (msp430_check_plus_not_high_mem): New.
6112 (msp430_op_not_in_high_mem): Use new functions to check if the operand
6113 might be in low memory.
6114 Indicate that a 16-bit absolute address is in lower memory.
6116 2019-10-30 Martin Jambor <mjambor@suse.cz>
6118 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
6119 ultimate_alias_target.
6121 2019-10-30 Richard Biener <rguenther@suse.de>
6123 PR tree-optimization/92275
6124 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
6125 Copy all loop-closed PHIs.
6127 2019-10-30 Martin Liska <mliska@suse.cz>
6129 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
6130 const_tree as function argument.
6131 (func_checker::compare_decl): Likewise.
6132 (func_checker::operand_equal_p): Likewise.
6133 (func_checker::compare_variable_decl): Likewise.
6134 (func_checker::parse_labels): Likewise.
6135 * ipa-icf-gimple.h: Likewise.
6137 2019-10-30 Martin Liska <mliska@suse.cz>
6139 * ipa-icf-gimple.c (func_checker::compatible_types_p):
6140 Do not compare alias sets. It's handled by operand_equal_p.
6142 2019-10-30 Martin Liska <mliska@suse.cz>
6144 * ipa-icf-gimple.c (func_checker::func_checker): Do not
6145 initialize m_compare_polymorphic.
6146 (func_checker::compare_decl): Do not compare polymorphic types.
6147 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
6148 * ipa-icf.c (sem_function::equals_private): Do not call
6149 compare_polymorphic_p.
6151 2019-10-30 Martin Liska <mliska@suse.cz>
6153 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
6155 (func_checker::compare_memory_operand): Remove.
6156 (func_checker::compare_cst_or_decl): Remove.
6157 (func_checker::operand_equal_valueize): Do not handle
6159 (func_checker::compare_gimple_call): Call compare_operand.
6160 (func_checker::compare_gimple_assign): Likewise.
6161 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
6162 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
6163 * ipa-icf.h (icf_handled_component_p): Remove.
6165 2019-10-30 Martin Liska <mliska@suse.cz>
6167 * ipa-icf-gimple.c (func_checker::hash_operand): New.
6168 (func_checker::compare_cst_or_decl): Remove handling
6170 (func_checker::compare_operand): Transform to ...
6171 (func_checker::operand_equal_p): ... this.
6172 * ipa-icf-gimple.h (class func_checker): Add
6173 operand_equal_p and hash_operand.
6174 * ipa-icf.c (sem_function::equals_private): Fix
6175 pushing and popping of cfun.
6177 2019-10-30 Martin Liska <mliska@suse.cz>
6179 * fold-const.c (operand_equal_p): Move to ...
6180 (operand_compare::operand_equal_p): ... here.
6181 (operand_compare::verify_hash_value): New.
6182 (add_expr): Move to ...
6183 (operand_compare::hash_operand): ... here.
6184 * fold-const.h (operand_equal_p): Move to the class.
6185 (class operand_compare): New.
6186 * tree.c (add_expr): Remove.
6188 2019-10-30 Martin Liska <mliska@suse.cz>
6190 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
6191 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
6193 2019-10-30 Martin Liska <mliska@suse.cz>
6197 * cgraph.c (cgraph_node::get_create): Overwrite node->order
6198 from a first_clone in order to get proper LTO section
6200 (cgraph_node::get_untransformed_body):
6201 Use lto_get_section_data where symtab_node::order
6203 * cgraphclones.c (cgraph_node::find_replacement):
6204 Update also symbol order.
6205 * ipa-fnsummary.c (ipa_fn_summary_read):
6206 Use new function lto_get_summary_section_data.
6207 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
6208 * ipa-icf.c (sem_item_optimizer::read_summary):
6210 * ipa-prop.c (ipa_prop_read_jump_functions):
6212 (ipcp_read_transformation_summaries): Likewise.
6213 * ipa-sra.c (ipa_sra_read_summary): Likewise.
6214 * lto-cgraph.c (input_node): Add also order_base.
6215 (input_varpool_node): Likewise.
6216 (input_cgraph_1): Assign the order_base.
6217 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
6218 * lto-opts.c (lto_write_options): Pass new argument.
6219 * lto-section-in.c (lto_get_section_data): Add new argumente order.
6220 (lto_get_summary_section_data): New.
6221 (lto_get_raw_section_data): Add order argument.
6222 (lto_create_simple_input_block): Likewise.
6223 * lto-section-out.c (lto_destroy_simple_output_block):
6225 * lto-streamer-in.c (lto_input_toplevel_asms):
6226 Use lto_get_summary_section_data.
6227 (lto_input_mode_table): Likewise.
6228 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
6229 (lto_output_toplevel_asms): Pass new argument.
6230 (copy_function_or_variable): Likewise.
6231 (produce_lto_section):Likewise.
6232 (produce_symtab): Likewise.
6233 (lto_write_mode_table): Likewise.
6234 (produce_asm_for_decls): Likewise.
6235 * lto-streamer.c (lto_get_section_name): Concat symbol name
6237 * lto-streamer.h (lto_get_section_data): Add order argument.
6238 (lto_get_summary_section_data): New.
6239 (lto_get_raw_section_data): Add order argument.
6240 (lto_get_section_name): Likewise.
6241 * varpool.c (varpool_node::get_constructor): Pass order argument.
6243 2019-10-30 Jakub Jelinek <jakub@redhat.com>
6245 PR tree-optimization/92262
6246 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
6247 ubase or cbase here.
6248 (remove_unused_ivs): Unshare comp before using it.
6250 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
6252 * ipa-prop.c (update_jump_functions_after_inlining):
6253 Watch for missing summaries.
6255 2019-10-30 Richard Biener <rguenther@suse.de>
6257 PR tree-optimization/65930
6258 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
6259 chains also allow a leading and trailing conversion.
6260 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
6261 intermediate reduction chains.
6262 (vect_analyze_slp_instance): Likewise. Build a SLP
6263 node for a trailing conversion manually.
6265 2019-10-30 Martin Liska <mliska@suse.cz>
6267 * cgraph.c (cgraph_node::local_info): Transform to ...
6268 (cgraph_node::local_info_node): ... this.
6269 (cgraph_node::dump): Remove cgraph_local_info and
6270 put its fields directly into cgraph_node.
6271 (cgraph_node::get_availability): Likewise.
6272 (cgraph_node::make_local): Likewise.
6273 (cgraph_node::verify_node): Likewise.
6274 * cgraph.h (struct GTY): Likewise.
6275 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
6276 (duplicate_thunk_for_node): Likewise.
6277 (cgraph_node::create_clone): Likewise.
6278 (cgraph_node::create_virtual_clone): Likewise.
6279 (cgraph_node::create_version_clone): Likewise.
6280 * cgraphunit.c (cgraph_node::reset): Likewise.
6281 (cgraph_node::finalize_function): Likewise.
6282 (cgraph_node::add_new_function): Likewise.
6283 (analyze_functions): Likewise.
6284 * combine.c (setup_incoming_promotions): Likewise.
6285 * config/i386/i386.c (ix86_function_regparm): Likewise.
6286 (ix86_function_sseregparm): Likewise.
6287 (init_cumulative_args): Likewise.
6288 * ipa-cp.c (determine_versionability): Likewise.
6289 (count_callers): Likewise.
6290 (set_single_call_flag): Likewise.
6291 (initialize_node_lattices): Likewise.
6292 (estimate_local_effects): Likewise.
6293 (create_specialized_node): Likewise.
6294 (identify_dead_nodes): Likewise.
6295 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6296 (ipa_fn_summary_generate): Likewise.
6297 * ipa-hsa.c (check_warn_node_versionable): Likewise.
6298 (process_hsa_functions): Likewise.
6299 * ipa-icf.c (set_local): Likewise.
6300 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
6301 * ipa-inline.c (speculation_useful_p): Likewise.
6302 * ipa-profile.c (ipa_propagate_frequency): Likewise.
6303 (ipa_profile): Likewise.
6304 * ipa-split.c (split_function): Likewise.
6305 (execute_split_functions): Likewise.
6306 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
6307 (ipa_sra_ipa_function_checks): Likewise.
6308 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6309 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6310 * lto-cgraph.c (lto_output_node): Likewise.
6311 (input_overwrite_node): Likewise.
6312 * multiple_target.c (expand_target_clones): Likewise.
6313 * omp-simd-clone.c (simd_clone_create): Likewise.
6314 * trans-mem.c (expand_call_tm): Likewise.
6315 (ipa_tm_mayenterirr_function): Likewise.
6316 (ipa_tm_diagnose_tm_safe): Likewise.
6317 (ipa_tm_diagnose_transaction): Likewise.
6318 (ipa_tm_create_version): Likewise.
6319 (ipa_tm_transform_calls_redirect): Likewise.
6320 (ipa_tm_execute): Likewise.
6321 * tree-inline.c (expand_call_inline): Likewise.
6323 2019-10-29 Martin Liska <mliska@suse.cz>
6325 * symbol-summary.h (function_summary): Pass memory location
6326 to underlaying hash_map (or vec).
6327 (V>::fast_function_summary): Likewise.
6329 2019-10-29 Martin Liska <mliska@suse.cz>
6331 * ggc.h (ggc_alloc_no_dtor): New function.
6332 * ipa-fnsummary.c (ipa_free_fn_summary): Call
6333 destructor and ggc_free.
6334 (ipa_free_size_summary): Call delete instead
6336 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
6337 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
6338 (ipa_free_all_edge_args): Call destructor and ggc_free.
6339 (ipa_free_all_node_params): Likewise.
6340 (ipcp_free_transformation_sum): Likewise.
6341 * ipa-prop.h (ipa_check_create_node_params):
6342 Call new ggc_alloc_no_dtor.
6343 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
6344 (ipa_sra_analysis): Call destructor and ggc_free.
6345 Replace release with delete operator.
6346 * symbol-summary.h (release): Remove ..
6347 (V>::~fast_function_summary): and move logic here.
6348 Likewise for other classes.
6350 2019-10-29 Richard Biener <rguenther@suse.de>
6352 PR tree-optimization/92260
6353 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
6356 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
6358 PR tree-optimization/88915
6359 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
6360 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
6361 and make the valueize function pointer also take a void pointer.
6362 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
6363 around vn_valueize, to call it without a context.
6364 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
6365 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
6366 (~_loop_vec_info): Release epilogue_vinfos.
6367 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
6368 number of iterations of epilogue.
6369 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
6370 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
6371 versioning threshold needed for main loop.
6372 (vect_analyze_loop): Likewise.
6373 (find_in_mapping): New helper function.
6374 (update_epilogue_loop_vinfo): New function.
6375 (vect_transform_loop): When vectorizing epilogues re-use analysis done
6376 on main loop and call update_epilogue_loop_vinfo to update it.
6377 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
6378 stmts on loop preheader edge.
6379 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
6380 we decided to vectorize epilogues. Update epilogues NITERS and
6381 construct ADVANCE to update epilogues data references where needed.
6382 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
6383 (vect_do_peeling, vect_update_inits_of_drs,
6384 determine_peel_for_niter, vect_analyze_loop): Add or update
6386 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
6387 created loop_vec_info's for epilogues when available. Otherwise analyse
6388 epilogue separately.
6390 2019-10-29 Richard Biener <rguenther@suse.de>
6392 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
6395 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6397 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
6398 index for the COND_EXPR from stmt_info rather than reduc_info.
6400 2019-10-29 Richard Biener <rguenther@suse.de>
6402 PR tree-optimization/65930
6403 * tree-vect-loop.c (check_reduction_path): Relax single-use
6404 check allowing out-of-loop uses.
6405 (vect_is_simple_reduction): SLP reduction chains cannot have
6406 intermediate stmts used outside of the loop.
6407 (vect_create_epilog_for_reduction): The adjustment might need
6409 (vectorizable_reduction): Annotate live stmts of the reduction
6410 chain with STMT_VINFO_REDUC_DEF.
6411 * tree-vect-stms.c (process_use): Remove no longer true asserts.
6413 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6415 * calls.c (pass_by_reference): Leave the target to decide whether
6416 POLY_INT_CST-sized arguments should be passed by value or reference,
6417 rather than forcing them to be passed by reference.
6418 (must_pass_in_stack_var_size): Likewise.
6419 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
6420 V31_REGNUM to P15_REGNUM.
6421 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
6422 Take an extra "silent_p" parameter, defaulting to false.
6423 (aarch64_sve::svbool_type_p): Declare.
6424 (aarch64_sve::nvectors_if_data_type): Likewise.
6425 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
6426 (aarch64_frame::reg_offset): Turn into poly_int64s.
6427 (aarch64_frame::save_regs_size): Likewise.
6428 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
6429 (aarch64_frame::sve_callee_adjust): Likewise.
6430 (aarch64_frame::spare_reg_reg): Likewise.
6431 (ARM_PCS_SVE): New arm_pcs value.
6432 (CUMULATIVE_ARGS::aapcs_nprn): New field.
6433 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
6434 (CUMULATIVE_ARGS::silent_p): Likewise.
6435 (BITS_PER_SVE_PRED): New macro.
6436 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
6437 function. Reject aarch64_vector_pcs attributes on SVE functions.
6438 (aarch64_attribute_table): Use the above handler.
6439 (aarch64_sve_abi): New function.
6440 (aarch64_sve_argument_p): Likewise.
6441 (aarch64_returns_value_in_sve_regs_p): Likewise.
6442 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
6443 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
6444 descriptor for them.
6445 (aarch64_simd_decl_p): Delete.
6446 (aarch64_emit_cfi_for_reg_p): New function.
6447 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
6448 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
6449 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
6450 as partly clobbered for the SVE PCS.
6451 (aarch64_function_ok_for_sibcall): Check whether the two functions
6452 use the same ABI, rather than checking specifically for whether
6453 they're aarch64_vector_pcs functions.
6454 (aarch64_pass_by_reference): Raise an error for attempts to pass
6455 SVE arguments when SVE is disabled. Pass SVE arguments by reference
6456 if there are not enough free registers left, or if the argument is
6458 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
6459 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
6461 (aarch64_layout_arg): Take a function_arg_info rather than
6462 individual properties. Handle SVE predicates, vectors and tuples.
6463 Raise an error if they are passed to unprototyped functions.
6464 (aarch64_function_arg): If the silent_p flag is set, suppress the
6465 usual error about using float registers without TARGET_FLOAT.
6466 (aarch64_init_cumulative_args): Take a silent_p parameter and store
6467 it in the cumulative_args structure. Initialize aapcs_nprn and
6468 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
6469 error about using float registers without TARGET_FLOAT.
6470 If the silent_p flag is not set, also raise an error about
6471 using SVE functions when SVE is disabled.
6472 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
6473 and call it for SVE functions too. Update aapcs_nprn similarly
6474 to the other register counts.
6475 (aarch64_layout_frame): If a big-endian function needs to save
6476 and restore Z8-Z15, search for a spare predicate that it can use.
6477 Store SVE predicates at the bottom of the register save area,
6478 followed by SVE vectors, then followed by the normal slots.
6479 Keep pointing the hard frame pointer at the base of the normal slots,
6480 above the SVE vectors. Update the various frame creation and
6481 tear-down strategies for the new layout, initializing the new
6482 sve_callee_adjust field. Add an additional layout for frames
6483 whose saved registers are all SVE registers.
6484 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
6485 (aarch64_return_address_signing_enabled): Likewise.
6486 (aarch64_push_regs, aarch64_pop_regs): Update calls to
6487 aarch64_reg_save_mode.
6488 (aarch64_adjust_sve_callee_save_base): New function.
6489 (aarch64_add_cfa_expression): Move earlier in file. Take the
6490 saved register as an rtx rather than a register number and use
6491 its mode for the MEM slot.
6492 (aarch64_save_callee_saves): Remove the mode argument and instead
6493 use aarch64_reg_save_mode to get the mode of each save slot.
6494 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
6495 offsets. Allow GP offsets to be saved at a VL-based offset from
6496 the stack, handling this case using the frame pointer if available
6497 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
6498 big-endian SVE functions; use normal moves for other SVE saves.
6499 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
6500 returns true. Add explicit CFA notes when not storing via the
6501 stack pointer. Do not try to pair SVE saves.
6502 (aarch64_restore_callee_saves): Cope with poly_int64 register
6503 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
6504 use normal moves for other SVE restores. Only add CFA restore notes
6505 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
6507 (aarch64_get_separate_components): Always keep the first SVE save
6508 in the prologue if we need to use it as a stack probe. Don't allow
6509 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
6510 Likewise the spare predicate register that they need. Update the
6511 offset calculation to account for the SVE save area. Use the
6512 appropriate range check for SVE LDR and STR instructions.
6513 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
6514 (aarch64_process_components): Likewise. Update the offset
6515 calculation to account for the SVE save area. Only mark the
6516 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
6517 Do not try to pair SVE saves.
6518 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
6519 reg_offsets. When handling the final allocation, expect the
6520 first SVE register save to be part of the initial allocation
6521 and for it to act as a probe at SP. Account for the SVE callee
6522 save area in the dump information.
6523 (aarch64_expand_prologue): Update the frame diagram. Fold the
6524 SVE callee allocation into the initial allocation if stack clash
6525 protection is enabled. Use new variables to track the offset
6526 of the frame chain (and hard frame pointer) from the current
6527 stack pointer, and likewise the offset of the bottom of the
6528 register save area. Update calls to aarch64_save_callee_saves
6529 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
6530 saving the FP&SIMD registers. Save the predicate registers.
6531 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
6532 into account when setting the stack pointer from the frame pointer,
6533 and when deciding whether we can inherit the initial adjustment
6534 amount from the prologue. Restore the predicate registers after
6535 the vector registers, then apply sve_callee_adjust, then restore
6536 the general registers.
6537 (aarch64_secondary_reload): Don't use secondary SVE reloads
6539 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
6540 (aarch64_short_vector_p): Return false for SVE types.
6541 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
6542 at the start of the function. Return false for SVE types.
6543 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
6545 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
6546 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
6547 to big-endian targets for bytewise moves.
6548 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
6550 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6551 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6552 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6554 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
6555 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
6556 aarch64-sve-builtins-base.o to extra_objs. Add
6557 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
6558 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
6559 (aarch64-sve-builtins-shapes.o): Likewise.
6560 (aarch64-sve-builtins-base.o): New rules.
6561 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
6562 (aarch64_resolve_overloaded_builtin): Likewise.
6563 (aarch64_check_builtin_call): Likewise.
6564 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
6565 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
6567 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
6568 (aarch64_svprfop): New enum.
6569 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
6570 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
6571 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
6572 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6573 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
6574 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
6575 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
6576 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
6577 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
6578 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
6579 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
6580 (aarch64_sve::mangle_builtin_type): Likewise.
6581 (aarch64_sve::resolve_overloaded_builtin): Likewise.
6582 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
6583 (aarch64_sve::expand_builtin): Likewise.
6584 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
6585 (aarch64_sve_int_mode): Likewise.
6586 (aarch64_ptrue_all_mode): New function.
6587 (aarch64_convert_sve_data_to_pred): Make public.
6588 (svprfop_token): New function.
6589 (aarch64_output_sve_prefetch): Likewise.
6590 (aarch64_fold_sve_cnt_pat): Likewise.
6591 (aarch64_output_sve_cnt_pat_immediate): Likewise.
6592 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
6593 instead of gen_while_ult.
6594 (aarch64_replace_reg_mode): Make public.
6595 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
6596 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
6597 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
6598 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
6599 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
6600 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
6601 (aarch64_sve_ptrue_svpattern_p): Likewise.
6602 (aarch64_sve_pred_valid_immediate): Check
6603 aarch64_sve_ptrue_svpattern_p.
6604 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
6605 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
6607 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
6608 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
6609 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
6610 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
6611 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
6612 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
6614 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
6615 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
6616 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
6617 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
6618 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
6619 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
6620 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
6621 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
6622 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
6623 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
6624 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
6625 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
6626 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
6627 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
6628 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
6629 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
6630 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
6631 (Vesize): Handle partial vector modes.
6632 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
6634 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
6636 (s, paired_extend, inc_dec): New code attributes.
6637 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
6638 (SVE_INT_UNARY): Add UNSPEC_RBIT.
6639 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
6640 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
6641 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
6642 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6644 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
6645 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
6646 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6647 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
6648 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
6649 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
6650 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
6651 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
6652 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
6653 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
6654 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
6655 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
6656 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
6657 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
6658 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
6659 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
6661 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
6662 (binqops_op, binqops_op_rev, last_op): New int attributes.
6663 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
6664 (fn, ab): New int attributes.
6665 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
6666 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
6667 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
6668 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
6670 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
6671 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
6672 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
6673 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
6674 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
6676 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
6677 (brk_reg_con, brk_reg_opno): New int attributes.
6678 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
6679 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
6680 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
6682 (max_elem_bits): New int attribute.
6683 (min_elem_bits): Handle UNSPEC_RBIT.
6684 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
6685 TRUNCATE as well as SUBREG.
6686 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
6687 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
6688 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
6689 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
6690 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
6691 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
6692 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
6693 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
6694 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
6695 (aarch64_gather_scale_operand_h): New predicates.
6696 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
6697 (vgd, vgh, vgw, vsQ, vsS): New constraints.
6698 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
6699 (*aarch64_sve_reinterpret<mode>): Allow any source register
6700 instead of requiring an exact match.
6701 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
6702 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
6703 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
6704 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
6705 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
6706 (aarch64_update_ffrt): New patterns.
6707 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6708 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6709 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6710 (@aarch64_ld<fn>f1<mode>): New patterns.
6711 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
6712 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6713 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6714 (@aarch64_ldnt1<mode>): New patterns.
6715 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6716 the scalar part of the address.
6717 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
6718 scalar part of the addresse and add an alternative for handling
6720 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6721 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
6722 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6723 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6724 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6725 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6726 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
6727 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
6728 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
6729 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
6730 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
6731 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
6732 (@aarch64_sve_prefetch<mode>): New patterns.
6733 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
6734 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
6735 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
6736 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
6737 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
6738 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6739 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6740 (@aarch64_stnt1<mode>): New patterns.
6741 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
6742 the scalar part of the address.
6743 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
6744 the scalar part of the addresse and add an alternative for handling
6746 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
6747 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
6748 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
6749 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
6750 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
6751 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
6753 (vec_duplicate<mode>): Use QI as the mode of the input operand.
6754 (extract_last_<mode>): Generalize to...
6755 (@extract_<LAST:last_op>_<mode>): ...this.
6756 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
6757 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
6758 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
6759 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
6760 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
6761 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
6762 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
6763 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
6764 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
6765 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
6766 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
6767 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
6768 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
6769 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
6770 (*aarch64_adr_uxtw_unspec): Likewise.
6771 (*aarch64_adr_uxtw): Rename to...
6772 (*aarch64_adr_uxtw_and): ...this.
6773 (@aarch64_adr<mode>_shift): New expander.
6774 (*aarch64_adr_shift_sxtw): New pattern.
6775 (aarch64_<su>abd<mode>_3): Rename to...
6776 (@aarch64_pred_<su>abd<mode>): ...this.
6777 (<su>abd<mode>_3): Update accordingly.
6778 (@aarch64_cond_<su>abd<mode>): New expander.
6779 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
6780 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
6781 (*<su>mul<mode>3_highpart): Rename to...
6782 (@aarch64_pred_<optab><mode>): ...this.
6783 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
6784 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
6785 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
6786 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
6787 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
6788 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
6789 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
6790 (*v<ASHIFT:optab><mode>3): Rename to...
6791 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
6792 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
6793 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
6794 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
6795 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
6796 (@cond_asrd<mode>): New expander.
6797 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
6798 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
6799 (*sdiv_pow2<mode>3): Delete.
6800 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
6801 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
6802 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
6803 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
6804 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
6805 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
6806 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
6807 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
6808 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
6809 (*add<SVE_F:mode>3): Rename to...
6810 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
6812 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
6813 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
6814 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
6815 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
6816 (*sub<SVE_F:mode>3): Rename to...
6817 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
6819 (@aarch64_pred_abd<SVE_F:mode>): New expander.
6820 (*fabd<SVE_F:mode>3): Rename to...
6821 (*aarch64_pred_abd<SVE_F:mode>): ...this.
6822 (@aarch64_cond_abd<SVE_F:mode>): New expander.
6823 (*mul<SVE_F:mode>3): Rename to...
6824 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
6826 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
6827 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
6829 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
6830 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
6831 (*<nlogical><PRED_ALL:mode>3): Rename to...
6832 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
6833 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
6834 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
6835 (*<logical_nn><PRED_ALL:mode>3): Rename to...
6836 (aarch64_pred_<logical_nn><mode>_z): ...this.
6837 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
6838 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
6839 (*fma<SVE_I:mode>4): Rename to...
6840 (@aarch64_pred_fma<SVE_I:mode>): ...this.
6841 (*fnma<SVE_I:mode>4): Rename to...
6842 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
6843 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
6844 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
6845 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
6846 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
6847 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
6848 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
6849 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
6850 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
6851 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
6852 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
6853 (@aarch64_sve_tmad<mode>): Likewise.
6854 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
6855 (*aarch64_sel_dup<mode>): Rename to...
6856 (@aarch64_sel_dup<mode>): ...this.
6857 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
6858 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
6859 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
6860 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
6861 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
6862 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
6863 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
6864 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
6865 (*fcm<cmp_op><mode>): Rename to...
6866 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
6867 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6868 (*fcmuo<mode>): Rename to...
6869 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
6870 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
6871 (@aarch64_pred_fac<cmp_op><mode>): New expander.
6872 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
6873 (fold_extract_last_<mode>): Generalize to...
6874 (@fold_extract_<last_op>_<mode>): ...this.
6875 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
6876 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
6877 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
6878 DImode result explicit.
6879 (reduc_plus_scal_<mode>): Update accordingly.
6880 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
6881 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
6882 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
6883 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
6884 (*aarch64_sve_tbl<mode>): Rename to...
6885 (@aarch64_sve_tbl<mode>): ...this.
6886 (@aarch64_sve_compact<mode>): New pattern.
6887 (*aarch64_sve_dup_lane<mode>): Rename to...
6888 (@aarch64_sve_dup_lane<mode>): ...this.
6889 (@aarch64_sve_dupq_lane<mode>): New pattern.
6890 (@aarch64_sve_splice<mode>): Likewise.
6891 (aarch64_sve_<perm_insn><mode>): Rename to...
6892 (@aarch64_sve_<perm_insn><mode>): ...this.
6893 (*aarch64_sve_ext<mode>): Rename to...
6894 (@aarch64_sve_ext<mode>): ...this.
6895 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
6896 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
6898 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
6899 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6901 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6903 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
6904 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
6905 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
6906 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
6908 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
6909 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
6911 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
6912 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
6913 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
6915 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
6916 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
6917 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
6918 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
6919 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
6921 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
6922 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
6923 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
6924 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
6925 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
6926 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
6927 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
6928 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
6929 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
6930 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
6931 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
6932 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
6933 (aarch64_sve_cnt_pat): Likewise.
6934 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6935 (*aarch64_sve_incsi_pat): Likewise.
6936 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6937 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6938 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6939 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6940 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6941 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
6942 (*aarch64_sve_decsi_pat): Likewise.
6943 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
6944 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
6945 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
6946 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
6947 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
6948 (@aarch64_pred_cntp<mode>): Likewise.
6949 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6951 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6952 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6953 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6955 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6957 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
6958 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6959 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
6960 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6961 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
6962 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6963 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
6965 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
6966 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
6967 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6969 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
6971 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
6973 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
6974 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
6976 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
6977 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
6979 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
6980 * config/aarch64/arm_sve.h: New file.
6981 * config/aarch64/aarch64-sve-builtins.h: Likewise.
6982 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
6983 * config/aarch64/aarch64-sve-builtins.def: Likewise.
6984 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
6985 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
6986 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
6987 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
6988 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
6989 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
6991 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
6993 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
6995 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
6998 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7000 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
7001 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
7003 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
7004 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
7005 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
7006 (aarch64_hard_regno_nregs): Handle the new register classes.
7007 (aarch64_hard_regno_mode_ok): Likewise.
7008 (aarch64_regno_regclass): Likewise.
7009 (aarch64_class_max_nregs): Likewise.
7010 (aarch64_register_move_cost): Likewise.
7011 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
7012 as general register_operands.
7014 2019-10-29 Martin Liska <mliska@suse.cz>
7016 * ggc-common.c: One can't subtract unsigned types
7017 in compare function.
7019 2019-10-29 Martin Liska <mliska@suse.cz>
7021 * cgraphunit.c (symbol_table::compile): Pass
7022 title as dump_memory_report argument.
7023 * toplev.c (dump_memory_report): New argument.
7024 (finalize): Pass new argument.
7025 * toplev.h (dump_memory_report): Add argument.
7027 2019-10-29 Martin Liska <mliska@suse.cz>
7029 * ggc-common.c: Move Leak to the first column.
7031 2019-10-29 Martin Liska <mliska@suse.cz>
7033 * cgraphunit.c (symbol_table::compile): Remove argument
7034 for dump_memory_report.
7035 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7036 (compare_final): Remove in order to make report
7038 * ggc.h (dump_ggc_loc_statistics): Remove argument.
7039 * mem-stats.h (mem_alloc_description::get_list):
7041 (mem_alloc_description::dump): Likewise here.
7042 * toplev.c (dump_memory_report): Remove final
7044 (finalize): Likewise.
7045 * toplev.h (dump_memory_report): Remove argument.
7047 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7049 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
7050 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
7051 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
7052 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
7055 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7057 * coretypes.h (string_int_pair): New typedef.
7058 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
7059 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
7060 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
7062 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
7064 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
7065 (simulate_builtin_function_decl): Declare.
7066 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
7067 (LANG_HOOKS_INITIALIZER): Include it.
7068 * langhooks.c (add_builtin_function_common): Rename to...
7069 (build_builtin_function): ...this. Add a location parameter and use
7070 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
7072 (add_builtin_function): Update accordingly, passing the returned
7073 decl to the lang hook.
7074 (add_builtin_function_ext_scope): Likewise
7075 (simulate_builtin_function_decl): New function.
7077 2019-10-29 Jakub Jelinek <jakub@redhat.com>
7079 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
7080 example, use actual names of supported offload targets.
7083 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
7085 2019-10-28 Martin Sebor <msebor@redhat.com>
7087 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
7088 (handle_store): Pass argument to get_addr_stridx.
7090 2019-10-28 Martin Sebor <msebor@redhat.com>
7092 PR tree-optimization/92226
7093 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
7094 the offset is in the open range outlined by SI's length.
7096 2019-10-28 Martin Sebor <msebor@redhat.com>
7099 * doc/cpp.texi (__has_builtin): Document.
7100 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
7102 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7105 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
7106 doubleword and low doubleword result of multiplication on
7109 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
7110 pure qualifier to the built-in.
7111 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
7113 (struct mips_builtin_description): Add is_pure flag.
7114 (mips_init_builtins): Mark built-in as pure if the flag in the
7115 corresponding mips_builtin_description struct is set.
7117 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
7118 alternative which covers the floating-point input value. Also
7119 forbid the split of insert.d pattern for floating-point values.
7121 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
7123 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
7124 * config/riscv/riscv-sr.c: New file.
7125 * config/riscv/riscv.c (riscv_reorg): New function.
7126 (TARGET_MACHINE_DEPENDENT_REORG): Define.
7127 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
7128 (riscv_remove_unneeded_save_restore_calls): Declare.
7129 * config/riscv/t-riscv (riscv-sr.o): New build rule.
7131 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7133 PR tree-optimization/92163
7134 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
7135 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
7136 before calling bitmap_set_bit.
7137 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
7138 delete_dead_or_redundant_assignment.
7139 (dse_dom_walker::dse_optimize_stmt): Likewise.
7140 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
7142 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7145 * tree-vect-stmts.c (vectorizable_condition): Support
7146 EXTRACT_LAST_REDUCTION with fully-masked loops.
7148 2019-10-28 Richard Biener <rguenther@suse.de>
7150 PR tree-optimization/92252
7151 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
7152 STMT_VINFO_REDUC_IDX when swapping operands.
7154 2019-10-28 Richard Biener <rguenther@suse.de>
7156 PR tree-optimization/92241
7157 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
7158 we failed to update the reduction index do not use the pattern
7159 stmts for the reduction chain.
7160 (vectorizable_reduction): When the reduction chain is corrupt,
7162 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
7163 fail to update the reduction chain.
7165 2019-10-28 Richard Biener <rguenther@suse.de>
7167 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
7168 STMT_VINFO_REDUC_IDX from the actual stmt.
7169 (vect_transform_reduction): Likewise.
7170 (vectorizable_reduction): Compute the reduction chain length,
7171 do not recompute the reduction operand index. Remove no longer
7172 necessary restriction for condition reduction chains.
7174 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7177 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
7178 condition for V2DImode.
7180 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
7182 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
7183 Remove %k operand modifier.
7184 (*vec_extractv2df_1_sse): Remove %q operand modifier.
7186 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
7188 PR rtl-optimization/92007
7189 * cfgcleanup.c (thread_jump): Add an assertion that we don't
7190 call it after reload if hot/cold partitioning has been done.
7191 (class pass_postreload_jump): Rename to
7192 pass_jump_after_combine.
7193 (make_pass_postreload_jump): Rename to
7194 make_pass_jump_after_combine.
7195 * passes.def(pass_postreload_jump): Move before reload, rename
7196 to pass_jump_after_combine.
7197 * tree-pass.h (make_pass_postreload_jump): Rename to
7198 make_pass_jump_after_combine.
7200 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
7203 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
7204 for missing EDGE_REF
7205 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
7207 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
7209 PR tree-optimization/88760
7210 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
7211 Enable -funroll-loops for -O2 and above.
7212 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
7213 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
7214 do not turn on web and rngreg implicitly, if the unroller is not
7217 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7219 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
7222 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
7224 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
7225 * cgraph.h (cgraph_node::rtl_info): Likewise.
7227 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7229 * ipa-cp.c (propagate_constants_across_call): If args are not available
7230 just drop everything to varying.
7231 (find_aggregate_values_for_callers_subset): Watch for missing
7233 (find_more_scalar_values_for_callers_subs): Likewise.
7234 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
7235 update_jump_functions_after_inlining, propagate_controlled_uses):
7236 Watch for missing summaries.
7237 (ipa_propagate_indirect_call_infos): Remove summary after propagation
7239 (ipa_write_node_info): Watch for missing summaries.
7240 (ipa_read_edge_info): Create new ref.
7241 (ipa_edge_args_sum_t): Add remove.
7242 (IPA_EDGE_REF_GET_CREATE): New macro.
7243 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
7245 (remap_edge_change_prob): Likewise.
7247 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7249 * ipa-inline-transform.c (inline_call): update function summaries
7250 after expanidng thunk.
7252 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
7254 * ipa-icf.c (sem_function::merge): Update function summaries.
7255 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
7257 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
7259 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
7260 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
7261 operand already has scalar mode.
7262 (iptr): Remove SF/DF.
7264 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
7267 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
7268 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
7271 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7273 * config/i386/sse.md
7274 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
7275 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
7276 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
7277 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
7278 <sse>_vmmaskcmp<mode>3):
7279 Change predicates from vector_operand to nonimmediate_operand,
7280 constraints xBm to xm, since scalar operations don't need
7281 memory address alignment.
7282 (avx512f_vmcmp<mode>3<round_saeonly_name>,
7283 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
7284 round_saeonly_nimm_predicate with
7285 round_saeonly_nimm_scalar_predicate.
7286 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
7287 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
7288 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
7289 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
7290 avx512f_vmfmadd_<mode>_mask3<round_name>,
7291 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
7292 *avx512f_vmfmsub_<mode>_mask<round_name>,
7293 avx512f_vmfmsub_<mode>_mask3<round_name>,
7294 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
7295 *avx512f_vmfnmadd_<mode>_mask<round_name>,
7296 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
7297 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
7298 *avx512f_vmfnmsub_<mode>_mask<round_name>,
7299 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
7300 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
7301 cvtusi2<ssescalarmodesuffix>32<round_name>,
7302 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
7303 round_nimm_predicate with round_nimm_scalr_predicate.
7304 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
7305 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
7306 avx512er_vmrcp28<mode><round_saeonly_name>,
7307 avx512er_vmrsqrt28<mode><round_saeonly_name>,
7308 ): Replace round_saeonly_nimm_predicate with
7309 round_saeonly_nimm_scalar_predicate.
7310 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
7311 vector_operand with nonimmediate_operand.
7312 * config/i386/subst.md (round_scalar_nimm_predicate,
7313 round_saeonly_scalar_nimm_predicate): Replace
7314 vector_operand with nonimmediate_operand.
7316 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
7319 * config/i386/i386.md (*rcpsf2_sse): Add
7320 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
7321 (*rsqrtsf2_sse): Ditto.
7322 (*sqrt<mode>2_sse): Ditto.
7323 (sse4_1_round<mode>2): separate constraint vm, add
7324 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
7325 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
7327 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
7329 (*sse_vmrsqrtv4sf2): Ditto.
7330 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
7331 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
7332 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
7333 <iptr> pointer size modifier since vround support memory operand.
7335 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
7338 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
7341 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
7342 Tobias Burnus <tobias@codesourcery.com>
7344 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
7345 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
7348 2019-10-25 Richard Biener <rguenther@suse.de>
7350 PR tree-optimization/92222
7351 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
7352 (_slp_oprnd_info::second_pattern): Likewise.
7353 (_slp_oprnd_info::any_pattern): New.
7354 (vect_create_oprnd_info): Adjust.
7355 (vect_get_and_check_slp_defs): Compute whether any stmt is
7357 (vect_build_slp_tree_2): Avoid building up a node from scalars
7358 if any of the operand defs, not just the first, is in a pattern.
7360 2019-10-25 Richard Biener <rguenther@suse.de>
7362 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
7363 swapping if we actually have to modify the IL on a shared stmt.
7364 (vect_build_slp_tree_2): Never fail swapping on shared stmts
7365 because we no longer modify the IL.
7367 2019-10-25 Martin Liska <mliska@suse.cz>
7369 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
7371 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
7373 * tree-vect-loop.c (vectorizable_reduction): Restrict the
7374 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
7375 handled by vect_transform_reduction. Allow fully-masked loops
7376 to be used with reduction chains.
7377 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
7378 operations in fully-masked loops.
7379 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
7380 operations in fully-masked loops.
7382 2019-10-25 Richard Biener <rguenther@suse.de>
7384 * tree-vect-loop.c (vectorizable_reduction): Verify
7385 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
7387 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
7388 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
7391 2019-10-24 Jakub Jelinek <jakub@redhat.com>
7393 * gimplify.h (omp_construct_selector_matches): Declare.
7394 * gimplify.c (struct gimplify_omp_ctx): Add code member.
7395 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
7396 called function if needed for flag_openmp.
7397 (gimplify_scan_omp_clauses): Set ctx->code.
7398 (omp_construct_selector_matches): New function.
7399 * omp-general.h (omp_constructor_traits_to_codes,
7400 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
7401 * omp-general.c (omp_constructor_traits_to_codes,
7402 omp_context_selector_matches, omp_resolve_declare_variant): New
7405 * config/arc/arc.c (hwloop_optimize): Add missing space in string
7407 * config/rx/rx.c (rx_print_operand): Likewise.
7408 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7409 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
7410 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
7412 * genemit.c (emit_c_code): Likewise.
7413 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
7415 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7417 * symbols-summary.h (fast_function_summary<T *, V>::release,
7418 fast_call_summary<T *, V>::release): Free m_vector.
7420 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7422 * cgraphunit.c (symbol_table::process_new_functions): Call
7423 ipa_free_size_summary.
7424 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
7425 (devirtualization_time_bonus): Update.
7426 (ipcp_propagate_stage): Update.
7427 * ipa-fnsummary.c (ipa_size_summaries): New.
7428 (ipa_fn_summary_alloc): Alloc size summary.
7429 (dump_ipa_call_summary): Update.
7430 (ipa_dump_fn_summary): Update.
7431 (analyze_function_body): Update.
7432 (compute_fn_summary): Likewise.
7433 (ipa_get_stack_frame_offset): New function.
7434 (inline_update_callee_summaries): Do not update frame offsets.
7435 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
7436 remove call and function summary.
7437 (ipa_update_overall_fn_summary): Update.
7438 (inline_read_section): Update.
7439 (ipa_fn_summary_write): Update.
7440 (ipa_free_fn_summary): Do not remove summaries.
7441 (ipa_free_size_summary): New.
7442 (release summary pass): Also run at WPA.
7443 * ipa-fnsummary.h (ipa_size_summary): Declare.
7444 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
7445 estimated_self_stack_size.
7446 (ipa_size_summary_t): New type.
7447 (ipa_size_summaries): Declare.
7448 (ipa_free_size_summary): Declare.
7449 (ipa_get_stack_frame_offset): Declare.
7450 * ipa-icf.c (sem_function::merge): Update.
7451 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
7452 (estimate_growth): Update.
7453 (growth_likely_positive): Update.
7454 (clone_inlined_nodes): Update.
7455 (inline_call): Update.
7456 * ipa-inline.c (caller_growth_limits): Update.
7457 (edge_badness): Update.
7458 (recursive_inlining): Update.
7459 (inline_small_functions): Update.
7460 (inline_to_all_callers_1): Update.
7461 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
7463 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
7465 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
7466 (uavg<mode>3_ceil): ... This.
7467 (altivec_vavgs<VI_char>): Rename to...
7468 (avg<mode>3_ceil): ... This.
7469 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
7470 VAVGUW, VAVGSW): Adjust.
7472 2019-10-24 Nathan Sidwell <nathan@acm.org>
7474 * dumpfile.c (dump_begin): Reorder decls to use RAII.
7476 2019-10-24 Martin Liska <mliska@suse.cz>
7478 * symbol-summary.h (gt_pch_nx): Mark all functions
7479 with gcc_unreachable as we do not expect to be called.
7481 2019-10-24 Richard Biener <rguenther@suse.de>
7483 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
7484 chains try harder with operand swapping and instead of
7485 putting a shifted chain into the reduction operands put
7486 a repetition of the final reduction op there as if we'd
7487 reassociate the expression.
7489 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
7491 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
7492 statics_not_read and statics_not_written to statics_read and
7493 statics_written respectively.
7494 (no_module_statics): New static var.
7495 (ipa_reference_get_not_read_global): Rename to ...
7496 (ipa_reference_get_read_global): ... this.
7497 (ipa_reference_get_not_written_global): Rename to ...
7498 (ipa_reference_get_written_global): ... this.
7499 (dump_static_vars_set_to_file): Dump no_module_statics.
7500 (copy_static_var_set): Add for propagation parameter.
7501 (ipa_init): Initialize no_module_statics.
7502 (ipa_ref_opt_summary_t::duplicate): Update.
7503 (ipa_ref_opt_summary_t::remove): Update.
7504 (propagate): Update.
7505 (write_node_summary_p): Look correctly for bitmap differences.
7506 (ipa_reference_write_optimization_summary): Update.
7507 (ipa_reference_read_optimization_summary): Update.
7509 (ipa_reference_get_not_read_global): Rename to ...
7510 (ipa_reference_get_read_global): ... this.
7511 (ipa_reference_get_not_written_global): Rename to ...
7512 (ipa_reference_get_written_global): ... this.
7513 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
7514 (call_may_clobber_ref_p_1): Update.
7516 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7518 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
7520 (msp430_hard_regno_nregs_with_padding): Remove.
7522 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7524 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
7525 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
7526 shift amount is between 1 and 4.
7527 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
7530 2019-10-24 Richard Biener <rguenther@suse.de>
7532 PR tree-optimization/92205
7533 * tree-vect-loop.c (vectorizable_reduction): Restrict
7534 search for alternate vectype_in to lane-reducing patterns
7537 2019-10-24 Richard Biener <rguenther@suse.de>
7539 PR tree-optimization/92203
7540 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
7541 Skip eliminating conversion stmts inserted by insertion.
7543 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
7545 * config/s390/s390.c (s390_get_thread_pointer): Use
7546 gen_get_thread_pointer.
7547 (s390_expand_split_stack_prologue): Likewise.
7548 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
7549 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
7550 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
7551 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
7554 2019-10-24 Richard Biener <rguenther@suse.de>
7556 * tree-vect-slp.c (vect_analyze_slp): When reduction group
7557 SLP discovery fails try to handle the reduction as part
7558 of SLP reduction discovery.
7560 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
7562 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
7564 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
7565 attribute if it exists, rather than the insn size. If we use the
7566 insn size, adjust the size to remove the extra size that prefixed
7568 (rs6000_adjust_insn_length): New function.
7569 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
7570 update the instruction sized if prefixed instructions are used.
7571 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
7572 (non_prefixed_length attribute): Delete.
7573 (num_insns attribute): New insn attribute to return the number of
7575 (max_prefixed_insns attribute): New insn attribute to return the
7576 maximum number of prefixed instructions in an insn.
7577 (length attribute): Do not adjust for prefix instructions here,
7578 punt to ADJUST_INSN_LENGTH.
7579 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
7580 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
7581 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
7582 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
7583 max_prefixed_insns and num_insns.
7585 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
7586 (movtd_64bit_nodm): Reformat.
7587 (mov<mode>_32bit): Reformat.
7588 (mov<mode>_softfloat): Reformat.
7589 (FMOVE128_GPR splitter): Reformat.
7590 (DIFD splitter): Reformat.
7591 (TI2 splitter): Reformat.
7592 * config/rs6000/predicates.md (lwa_operand): If the bottom two
7593 bits of the offset for the memory address are non-zero, use PLWA
7594 if prefixed instructions are available.
7596 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7598 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
7600 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7602 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
7605 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7607 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
7608 (cmp_symbol_files): New.
7609 (lto_output): Copy sections in file order.
7610 * lto-streamer.h (lto_file_decl_data): Add field order.
7612 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7614 * ipa-reference.h (ipa_reference_var_uid): Move offline.
7615 * ipa-reference.c (reference_vars_map_t): new type.
7616 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
7617 (ipa_reference_var_uid): Implement.
7618 (varpool_node_hooks): New static var.
7619 (varpool_removal_hook): New function.
7620 (is_improper): Do not check bitmap for id==-1
7621 (get_static_name): Update.
7622 (ipa_init): Initialize new datastructures.
7623 (analyze_function): Do not recompute ids.
7624 (propagate): Free reference_vars_to_consider.
7625 (stream_out_bitmap): Update.
7626 (ipa_reference_read_optimization_summary): Update.
7628 2019-10-23 qing zhao <qing.zhao@oracle.com>
7630 PR gcov-profile/91971
7631 * coverage.c (coverage_init): Mangle the full path of filename when
7632 filename is a absolute path.
7634 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7636 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
7637 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
7638 (msp430_has_hwmult): New.
7639 (msp430_output_labelref):
7640 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
7641 * config/msp430/msp430.md (mulhisi3): Likewise.
7642 (umulhisi3): Likewise.
7643 (mulsidi3): Likewise.
7644 (umulsidi3): Likewise.
7646 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
7649 * params.def (inline-heuristics-hint-percent): Set to 600.
7651 2019-10-23 Richard Biener <rguenther@suse.de>
7653 PR tree-optimization/65930
7654 * tree-vect-loop.c (check_reduction_path): Allow conversions
7655 that only change the sign.
7656 (vectorizable_reduction): Relax latch def stmts we handle further.
7658 2019-10-23 Jakub Jelinek <jakub@redhat.com>
7661 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
7662 (remove_unused_ivs): Use it instead of get_computation_at. When
7663 choosing best candidate, only consider candidates where
7664 get_debug_computation_at actually returns non-NULL.
7666 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
7668 PR tree-optimization/92131
7669 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
7670 range would be symbolic, drop to varying for any explicit overflow
7671 in the constant part or if neither range is a singleton.
7673 2019-10-23 Martin Liska <mliska@suse.cz>
7676 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
7679 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
7681 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
7682 int_mode_for_mode rather than mode_for_int_vector for scalars.
7684 2019-10-23 Richard Biener <rguenther@suse.de>
7686 PR tree-optimization/92179
7687 * tree-vect-stmts.c (vectorizable_shift): For shift args
7688 that are all the same remove type restriction in the SLP case.
7689 Adjust SLP code to handle converting of the shift arg to
7690 only apply in case the modes are different.
7692 2019-10-23 Martin Liska <mliska@suse.cz>
7695 * ipa-inline.c (recursive_inlining): Do not print
7696 when curr->count is not initialized.
7698 2019-10-23 Richard Biener <rguenther@suse.de>
7700 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
7701 op from scalars in case there's a constant operand in its
7704 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
7706 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
7707 against out of range max skip or log values.
7709 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
7711 * cgraph.c (dump_graphviz): Change name to dump_name
7713 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7715 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
7716 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
7717 subtraction from a carry operation.
7719 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
7721 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
7723 2019-10-22 Richard Biener <rguenther@suse.de>
7725 PR tree-optimization/92173
7726 * tree-vect-loop.c (vectorizable_reduction): If
7727 vect_transform_reduction cannot handle code-generation try without
7728 the single-def-use-cycle optimization. Pass optab_vector to
7729 optab_for_tree_code to get vector shifts as that's what we'd
7732 2019-10-22 Michael Matz <matz@suse.de>
7735 * gimple-loop-jam.c (any_access_function_variant_p): New function.
7736 (adjust_unroll_factor): Use it to constrain safety, new parameter.
7737 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
7739 2019-10-22 Richard Biener <rguenther@suse.de>
7741 PR tree-optimization/92173
7742 * tree-vect-loop.c (vectorizable_reduction): If
7743 vect_transform_reduction cannot handle code-generation try without
7744 the single-def-use-cycle optimization. Pass optab_vector to
7745 optab_for_tree_code to get vector shifts as that's what we'd
7748 2019-10-22 Martin Liska <mliska@suse.cz>
7750 * diagnostic-format-json.cc (json_from_expanded_location):
7751 Use json::integer_number.
7752 * gcov.c (output_intermediate_json_line): Use new
7753 json::integer_number.
7754 (output_json_intermediate_file): Likewise.
7755 * json.cc (number::print): Move to ...
7756 (float_number::print): ... this.
7757 (integer_number::print): New.
7758 (test_writing_numbers): Move to ...
7759 (test_writing_float_numbers): ... this.
7760 (test_writing_integer_numbers): New.
7761 (json_cc_tests): Register test_writing_integer_numbers.
7762 * json.h (class value): Add forward declaration
7763 for float_number and integer_number.
7764 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
7765 (class number): Move to ...
7766 (class float_number): ... this.
7767 (class integer_number): New.
7768 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
7769 Use json::integer_number.
7770 (optrecord_json_writer::location_to_json): Likewise.
7771 (optrecord_json_writer::profile_count_to_json): Likewise.
7772 (optrecord_json_writer::pass_to_json): Likewise.
7774 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
7776 * tree-vect-slp.c (vect_slp_bb_region): Check whether
7777 autodetected_vector_size rather than vector_size is zero.
7778 * tree-vect-loop.c (vect_analyze_loop): Likewise.
7779 Set autodetected_vector_size immediately after calling
7780 vect_analyze_loop_2. Check for a fatal error before advancing
7783 2019-10-21 Jason Merrill <jason@redhat.com>
7785 * lock-and-run.sh: Check for process existence rather than timeout.
7787 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7789 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
7790 widening multiplication.
7792 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
7794 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
7795 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
7797 (subsi3_carryin_shift): Separate into register and constant controlled
7798 alternatives. Use shift_amount_operand for operand 4. Set shift
7799 attribute and simplify type attribute.
7800 (subsi3_carryin_shift_alt): Likewise.
7801 (rsbsi3_carryin_shift): Likewise.
7802 (rsbsi3_carryin_shift_alt): Likewise.
7803 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
7804 and register controlled shifts into distinct alternatives.
7805 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
7806 (andsi_not_shiftsi_si_scc): Likewise.
7807 (arm_cmpsi_negshiftsi_si): Likewise.
7808 (not_shiftsi): Remove redundant M constraint from alternative 1.
7809 (not_shiftsi_compare0): Likewise.
7810 (arm_cmpsi_insn): Remove redundant alternative 2.
7811 (cmpsi_shift_swp): Likewise.
7812 (sub_shiftsi): Likewise.
7813 (sub_shiftsi_compare0_scratch): Likewise.
7814 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
7815 (thumb2_cmpsi_neg_shiftsi): Likewise.
7817 2019-10-21 Richard Biener <rguenther@suse.de>
7819 PR tree-optimization/92162
7820 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
7821 STMT_VINFO_REDUC_IDX in reduc_info.
7822 * tree-vect-stmts.c (vectorizable_condition): Likewise.
7824 2019-10-21 Richard Biener <rguenther@suse.de>
7826 * tree-vectorizer.h (_slp_tree::ops): New member.
7827 (SLP_TREE_SCALAR_OPS): New.
7828 (vect_get_slp_defs): Adjust prototype.
7829 * tree-vect-slp.c (vect_free_slp_tree): Release
7830 SLP_TREE_SCALAR_OPS.
7831 (vect_create_new_slp_node): Initialize it. New overload for
7832 initializing by an operands array.
7833 (_slp_oprnd_info::ops): New member.
7834 (vect_create_oprnd_info): Initialize it.
7835 (vect_free_oprnd_info): Release it.
7836 (vect_get_and_check_slp_defs): Populate the operands array.
7837 Do not swap operands in the IL when not necessary.
7838 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
7839 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
7840 swap operands in the operands array. Do not swap operands in
7842 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
7843 (vect_gather_slp_loads): Fix.
7844 (vect_detect_hybrid_slp_stmts): Likewise.
7845 (vect_slp_analyze_node_operations_1): Search for a internal
7846 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
7847 (vect_slp_analyze_node_operations): Skip ops-only stmts for
7848 the def-type push/pop dance.
7849 (vect_get_constant_vectors): Compute number_of_vectors here.
7850 Use SLP_TREE_SCALAR_OPS and simplify greatly.
7851 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
7852 (vect_get_slp_defs): Simplify greatly.
7853 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
7854 (vect_transform_reduction): Likewise.
7855 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
7856 (vectorizable_call): Likewise.
7857 (vectorizable_operation): Likewise.
7858 (vectorizable_load): Likewise.
7859 (vectorizable_condition): Likewise.
7860 (vectorizable_comparison): Likewise.
7862 2019-10-21 Richard Biener <rguenther@suse.de>
7864 PR tree-optimization/92161
7865 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
7868 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7870 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
7871 (aarch64_rndr): New define_insn.
7872 (aarch64_rndrrs): Likewise.
7873 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
7874 (TARGET_RNG): Likewise.
7875 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
7877 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
7878 Add fourth argument in prototype.
7879 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
7880 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
7881 (aarch64_init_rng_builtins): Define.
7882 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
7883 (aarch64_expand_rng_builtin): Define.
7884 (aarch64_general_expand_builtin): Use IGNORE argument, handle
7886 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7887 __ARM_FEATURE_RNG when TARGET_RNG.
7888 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
7890 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
7892 * tree-vect-stmts (ensure_base_align): Only change alignment if new
7893 alignment is more restrictive.
7895 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7897 * tree-vectorizer.h (vec_info::vector_size): New member variable.
7898 (vect_update_max_nunits): Update comment.
7899 (current_vector_size): Delete.
7900 * tree-vect-stmts.c (current_vector_size): Likewise.
7901 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
7902 of current_vector_size.
7903 (get_mask_type_for_scalar_type): Likewise.
7904 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
7905 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
7906 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
7907 (vect_double_mask_nunits, vect_transform_loop): Likewise.
7908 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7909 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
7911 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7913 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
7914 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
7915 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
7918 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7920 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
7921 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
7922 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
7924 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7926 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7928 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
7930 (vect_set_loop_condition_masked): Update call accordingly.
7932 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7934 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
7935 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
7936 (simple_integer_narrowing): Update call accordingly.
7937 (vectorizable_conversion): Likewise.
7939 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7941 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
7942 (vectorizable_call): Update call accordingly.
7944 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7946 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
7947 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
7948 (duplicate_and_interleave): Update call accordingly.
7949 * tree-vect-loop.c (vectorizable_reduction): Likewise.
7951 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7953 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
7954 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
7955 (vect_get_constant_vectors): Update call accordingly.
7956 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
7958 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7960 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
7961 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
7962 (vect_prologue_cost_for_slp_op): Update call accordingly.
7963 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
7964 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
7965 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
7966 (get_mask_type_for_scalar_type): Likewise.
7967 (vect_get_vector_types_for_stmt): Likewise.
7968 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
7969 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
7970 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
7971 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
7972 (vect_split_statement, vect_convert_input): Likewise.
7973 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
7974 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
7975 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
7976 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
7977 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
7978 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
7979 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
7980 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
7981 (vect_recog_mask_conversion_pattern): Likewise.
7982 (vect_add_conversion_to_pattern): Likewise.
7983 (vect_recog_gather_scatter_pattern): Likewise.
7984 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
7985 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
7987 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7989 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
7990 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
7991 (vect_check_load_store_mask): Update call accordingly.
7992 (vect_get_mask_type_for_stmt): Likewise.
7993 * tree-vect-patterns.c (check_bool_pattern): Likewise.
7994 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
7995 (vect_convert_mask_for_vectype): Likewise.
7997 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
7999 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
8001 (vect_recog_dot_prod_pattern): Update call accordingly.
8002 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
8003 (vect_recog_widen_sum_pattern): Likewise.
8005 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8007 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
8008 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
8009 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
8012 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
8014 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
8015 get_vectype_for_scalar_type_and_size instead of
8016 get_vectype_for_scalar_type.
8018 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
8020 * common.opt (-fcommon): Fix description.
8022 2019-10-20 Jakub Jelinek <jakub@redhat.com>
8024 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
8025 * config/i386/i386.c (ix86_pre_reload_split): New function.
8026 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
8027 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
8028 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
8029 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
8030 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
8031 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
8032 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
8033 *<shift_insn><dwi>3_doubleword_mask,
8034 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
8035 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
8036 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
8037 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
8038 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
8039 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
8040 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
8041 *avx2_<code>v8qiv8si2<mask_name>_2,
8042 *sse4_1_<code>v4qiv4si2<mask_name>_2,
8043 *sse4_1_<code>v4hiv4si2<mask_name>_2,
8044 *avx512f_<code>v8qiv8di2<mask_name>_2,
8045 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
8046 *sse4_1_<code>v2hiv2di2<mask_name>_2,
8047 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
8048 sse4_2_pcmpistr): Likewise.
8050 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
8052 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
8053 now defaults to https.
8055 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
8057 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
8058 skip non-zero array accesses.
8060 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8062 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
8063 and return a boolean success value. Move the allocation and
8064 initialization of the bb_vec_info to...
8065 (vect_slp_bb_region): ...here. Update call accordingly.
8066 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
8067 than in vect_slp_analyze_bb_1.
8069 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
8071 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
8072 when processing the given datarefs for the first time and
8073 check_datarefs subsequently.
8074 (vect_slp_bb_region): New function, split out of...
8075 (vect_slp_bb): ...here. Don't recompute the region bounds and
8076 dataref sets when retrying with a different vector size.
8078 2019-10-19 Jakub Jelinek <jakub@redhat.com>
8079 Uroš Bizjak <ubizjak@gmail.com>
8082 * config/i386/predicates.md (int_nonimmediate_operand): New special
8084 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
8085 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
8086 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
8087 define_insn_and_split patterns.
8089 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
8091 * config/rs6000/rs6000.md: Delete out--of-date comment about
8092 special-casing integer loads.
8094 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
8096 * escaped_string.h (escaped_string): New header.
8097 * tree.c (escaped_string): Remove escaped_string class.
8099 2019-10-18 Martin Sebor <msebor@redhat.com>
8101 PR tree-optimization/92157
8102 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
8103 compute_string_length to return a negative result.
8105 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8107 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
8108 (negvsi3, negvdi3): Delete.
8109 (negdi2_compare): Delete.
8111 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8113 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
8115 (subdi3_compare1): Delete pattern.
8116 (subvsi3_borrow): New insn pattern.
8117 (subvsi3_borrow_imm): Likewise.
8119 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8121 * config/arm/arm.md (subv<mode>4): Delete.
8122 (subvdi4): New expander pattern.
8123 (subvsi4): Likewise. Handle some immediate values.
8124 (subvsi3_intmin): New insn pattern.
8125 (subvsi3): Likewise.
8126 (subvsi3_imm1): Likewise.
8127 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
8130 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8132 * config/arm/arm.md (usubvdi4): Allow registers or integers for
8133 incoming operands. Early split the calculation into SImode
8135 (usubvsi3_borrow): New insn pattern.
8136 (usubvsi3_borrow_imm): Likewise.
8138 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8140 * config/arm/arm.md (usubv<mode>4): Delete expansion.
8141 (usubvsi4): New pattern. Allow some immediate values for inputs.
8142 (usubvdi4): New pattern.
8144 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8146 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
8147 or second operand of the PLUS inside a DImode equality test to be
8148 sign-extend when selecting CC_Vmode.
8149 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
8151 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
8153 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
8154 (addsi3_cin_vout_0): Likewise.
8155 (adddi3_compareV): Delete.
8157 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8159 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
8160 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
8161 to transform this back into the summation version when that leads
8164 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8166 * config/arm/arm.md (addv<mode>4): Delete.
8167 (addvsi4): New pattern. Handle immediate values that the architecture
8169 (addvdi4): New pattern.
8170 (addsi3_compareV): Rename to ...
8171 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
8172 and use COMPARE rather than NE.
8173 (addsi3_compareV_imm): New pattern.
8174 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
8175 a signed-overflow check.
8177 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8179 * config/arm/arm-modes.def (CC_ADC): New CC mode.
8180 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
8182 (maybe_get_arm_condition_code): Handle CC_ADCmode.
8183 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
8185 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
8187 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
8188 (addsi3_cin_cout_imm_insn): Likewise.
8189 (adddi3_compareC): Delete insn.
8190 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
8192 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8194 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
8195 * (uaddv<mode>4): Delete expansion pattern.
8196 (uaddvsi4): New pattern.
8197 (uaddvdi4): Likewise.
8198 (addsi3_compareC): Delete pattern, change callers to use
8200 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
8201 reduce the number of alternatives and re-work type attribute handling.
8202 (addsi3_compare_op2): Clean up constraints to reduce the number of
8203 alternatives and re-work type attribute handling.
8204 (compare_addsi2_op0): Likewise.
8205 (compare_addsi2_op1): Likewise.
8207 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8209 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
8210 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
8211 for DImode operands.
8212 (arm_gen_dicompare_reg): Remove unreachable expansion code.
8213 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
8215 * config/arm/arm.md (arm_cmpdi_insn): Delete.
8216 (arm_cmpdi_unsigned): Delete.
8218 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8220 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
8221 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
8222 unchanged only if that will be cheaper.
8223 (arm_select_cc_mode): Recognize a swapped comparison that will
8224 be regenerated using RSBS or RSCS. Relax restriction on selecting
8226 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
8228 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
8230 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
8232 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
8233 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
8235 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8237 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
8238 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
8240 (arm_gen_dicompare_reg): New code to early expand the sub-operations
8241 of EQ, NE, LT, GE, LTU and GEU.
8242 * config/arm/iterators.md (CC_EXTEND): New code attribute.
8243 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
8244 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
8245 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
8246 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
8248 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8250 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
8252 (cstoredi4): Similarly, but for operand 3.
8253 * config/arm/arm.c (arm_canoncialize_comparison): Allow
8254 canonicalization of unsigned compares with a constant on Arm.
8255 Prefer using const+1 and adjusting the comparison over swapping the
8256 operands whenever the original constant was not valid.
8257 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
8259 (arm_validize_comparison): Do not force invalid DImode operands to
8262 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8264 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
8265 return CC_Zmode if comparing against a constant where one word is
8267 (arm_gen_compare_reg): Split DImode handling to ...
8268 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
8269 against simple constants.
8270 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
8272 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8274 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
8275 (rsbsi3_carryin_shift_alt): Likewise.
8277 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8279 * config/arm/arm.md (negscc_borrow): New pattern.
8280 (mov_negscc): Don't split if the insn would match negscc_borrow.
8281 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
8282 (thumb2_mov_negscc_strict_it): Likewise.
8284 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8286 * config/arm/arm.c (arm_insn_cost): New function.
8287 (TARGET_INSN_COST): Override default definition.
8289 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8291 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
8294 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8296 * config/arm/arm.c (strip_carry_operation): New function.
8297 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
8300 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8302 * config/arm/predicates.md (arm_carry_operation): New special
8304 * config/arm/iterators.md (LTUGEU): Delete iterator.
8305 (cnb): Delete code attribute.
8306 (optab): Delete ltu and geu elements.
8307 * config/arm/arm.md (addsi3_carryin): Renamed from
8308 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
8309 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
8310 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
8311 (addsi3_carryin_clobercc): Similarly.
8312 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
8315 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8317 * config/arm/arm.md (arm_subdi3): Delete insn.
8318 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
8320 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8322 * config/arm/arm-modes.def (CC_RSB): New CC mode.
8323 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
8324 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
8326 (maybe_get_arm_condition_code): Handle CC_RSBmode.
8327 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
8329 (subdi3): Rewrite to early-expand the sub-operations.
8330 (rsb_im_compare): New pattern.
8332 (negdi2_insn): Delete.
8333 (arm_negsi2): Correct type attribute to alu_imm.
8334 (negsi2_0compare): New insn pattern.
8335 (negsi2_carryin): New insn pattern.
8337 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8339 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
8342 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8344 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
8345 to match canonical form.
8347 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8349 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
8350 (extend<mode>di2): Likewise.
8352 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8354 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
8355 * config/arm/arm.c (arm_decompose_di_binop): New function.
8356 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
8357 If not generating Thumb-1 code, decompose the operation into 32-bit
8359 * add0si_carryin_<optab>: New pattern.
8361 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
8363 * arm.md (adddi3): Only accept register operands.
8364 (arm_adddi3): Convert to simple insn with no split. Do not accept
8366 (adddi_sesidi_di): Delete patern.
8367 (adddi_zesidi_di): Likewise.
8368 (uaddv<mode>4): Use LTU as condition for branch.
8369 (adddi3_compareV): Convert to simple insn with no split.
8370 (addsi3_compareV_upper): Delete pattern.
8371 (adddi3_compareC): Convert to simple insn with no split. Correct
8372 flags setting expression.
8373 (addsi3_compareC_upper): Delete pattern.
8374 (addsi3_compareC): Correct flags setting expression.
8375 (subdi3_compare1): Convert to simple insn with no split.
8376 (subsi3_carryin_compare): Delete pattern.
8377 (arm_subdi3): Convert to simple insn with no split.
8378 (subdi_zesidi): Delete pattern.
8379 (subdi_di_sesidi): Delete pattern.
8380 (subdi_zesidi_di): Delete pattern.
8381 (subdi_sesidi_di): Delete pattern.
8382 (subdi_zesidi_zesidi): Delete pattern.
8383 (negvdi3): Use s_register_operand.
8384 (negdi2_compare): Convert to simple insn with no split.
8385 (negdi2_insn): Likewise.
8386 (negsi2_carryin_compare): Delete pattern.
8387 (negdi_zero_extendsidi): Delete pattern.
8388 (arm_cmpdi_insn): Convert to simple insn with no split.
8389 (negdi2): Don't call gen_negdi2_neon.
8390 * config/arm/neon.md (adddi3_neon): Delete pattern.
8391 (subdi3_neon): Delete pattern.
8392 (negdi2_neon): Delete pattern.
8393 (splits for negdi2_neon): Delete splits.
8395 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8398 * ggc-page.c (release_pages): Read g->alloc_size before free rather
8401 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
8403 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
8404 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
8405 new multilib variants and new mappings.
8407 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
8410 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
8412 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8413 Richard Sandiford <richard.sandiford@arm.com>
8416 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
8417 and define hashmap traits for it.
8418 (loop_vec_info::scalar_cond_masked_set): New member.
8419 (vect_record_loop_mask): Adjust prototype.
8420 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
8422 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
8423 vect_record_loop_mask.
8424 (vectorizable_live_operation): Likewise.
8425 (vect_record_loop_mask): New param scalar_mask. Add entry
8426 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
8427 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
8428 Pass it as last arg to vect_record_loop_mask.
8429 (vectorizable_call): Pass scalar_mask as last arg to
8430 vect_record_loop_mask.
8431 (vectorizable_store): Likewise.
8432 (vectorizable_load): Likewise.
8433 (vectorizable_condition): Check if another part of vectorized code
8434 applies loop_mask to condition or to it's inverse, and if yes,
8435 apply loop_mask to result of vector comparison.
8437 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
8439 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
8441 2019-10-18 Jakub Jelinek <jakub@redhat.com>
8443 PR tree-optimization/92056
8444 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
8445 before calling compute_builtin_object_size.
8447 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
8450 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
8451 (movdi_low_st): Delete.
8452 * config/rs6000/rs6000.c
8453 (darwin_rs6000_legitimate_lo_sum_const_p): New.
8454 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
8455 * config/rs6000/rs6000.md (movsi_low): Delete.
8457 2019-10-17 Jason Merrill <jason@redhat.com>
8459 * gimplify.h (get_initialized_tmp_var): Add default argument to
8461 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
8462 NULL post_p argument.
8463 * targhooks (std_gimplify_va_arg_expr): Likewise.
8465 2019-10-17 Richard Biener <rguenther@suse.de>
8467 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
8468 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
8469 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
8470 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
8471 * tree-vect-loop.c (vect_is_simple_reduction): Set
8472 STMT_VINFO_REDUC_CODE.
8473 (vectorizable_reduction): Remove dead and redundant code, use
8474 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
8476 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
8478 Fix breakage introduced by r276985.
8480 * config/avr/avr.c (avr_option_override): Remove set of
8481 PARAM_ALLOW_STORE_DATA_RACES.
8482 * common/config/avr/avr-common.c (avr_option_optimization_table)
8483 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
8485 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
8487 * config/i386/i386.h (processor_costs): Add clear_ratio.
8488 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
8489 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
8490 of 6 and move_ratio in all cost models.
8492 2019-10-17 Richard Biener <rguenther@suse.de>
8494 * tree-vect-loop.c (check_reduction_path): Compute reduction
8496 (vect_is_simple_reduction): Remove special-case of single-stmt
8497 reduction path detection.
8499 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
8501 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
8503 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
8505 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
8506 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
8507 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
8508 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
8509 New combine patterns.
8510 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
8512 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
8514 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
8516 * tree-vrp.c (value_range_base::dump): Display +INF for both
8517 pointers and integers when appropriate.
8519 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8521 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
8522 when to use versioning threshold.
8524 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8526 * tree-vect-loop.c (determine_peel_for_niter): New function contained
8527 outlined code from ...
8528 (vect_analyze_loop_2): ... here.
8530 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
8532 * tree-vect-loop.c (vect_transform_loop): Move code from here...
8533 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
8534 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
8536 2019-10-17 Richard Biener <rguenther@suse.de>
8538 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
8539 (vect_is_simple_reduction): Move all validity checks ...
8540 (vectorizable_reduction): ... here. Compute whether we
8541 need a fold-left reduction here.
8542 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
8543 both overloads, check needs_fold_left_reduction_p directly.
8544 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
8546 2019-10-17 Richard Biener <rguenther@suse.de>
8548 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
8549 TARGET_MEM_REF creation.
8551 2019-10-17 Richard Biener <rguenther@suse.de>
8553 PR tree-optimization/92129
8554 * tree-vect-loop.c (vectorizable_reduction): Also fail
8555 on GIMPLE_SINGLE_RHS.
8557 2019-10-17 Jakub Jelinek <jakub@redhat.com>
8559 PR tree-optimization/92056
8560 * tree-object-size.c (cond_expr_object_size): Return early if then_
8561 processing resulted in unknown size.
8563 PR tree-optimization/92115
8564 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
8565 temporary if it could trap.
8567 2019-10-17 Richard Biener <rguenther@suse.de>
8570 * dwarf2out.c (gen_formal_parameter_die): Also try to match
8571 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
8573 2019-10-16 Jakub Jelinek <jakub@redhat.com>
8575 * tree-ssa-strlen.c (maybe_invalidate): Use
8576 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
8578 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
8579 Jim Wilson <jimw@sifive.com>
8581 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
8582 regs to SIBCALL_REGS.
8583 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
8584 passing regs to SIBCALL_REGS.
8586 2019-10-16 Martin Sebor <msebor@redhat.com>
8588 PR tree-optimization/83821
8589 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
8590 the length of a string when available.
8591 (handle_builtin_memset) Add argument.
8592 (handle_store, strlen_check_and_optimize_call): Same.
8593 (check_and_optimize_stmt): Same. Pass it to callees.
8595 2019-10-16 Martin Sebor <msebor@redhat.com>
8597 PR tree-optimization/91996
8598 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
8600 (compare_nonzero_chars): Add an overload.
8601 (count_nonzero_bytes): Add an argument. Call overload above.
8602 Handle non-constant lengths in some range.
8603 (handle_store): Add an argument.
8604 (check_and_optimize_stmt): Pass an argument to handle_store.
8606 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
8608 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
8610 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8612 * config/mips/mips.c (mips_expand_builtin_insn): Force the
8613 operands which correspond to the same input-output register to
8614 have the same pseudo assigned to them.
8616 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
8618 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
8620 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
8622 * config/aarch64/aarch64.c (aarch64_classify_symbol):
8623 Apply reasonable limit to symbol offsets.
8625 2019-10-16 Richard Biener <rguenther@suse.de>
8627 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
8628 (vect_is_simple_reduction): Delay checking to
8629 vectorizable_reduction and relax the checking.
8630 (vectorizable_reduction): Check we have a simple use. Check
8631 for bogus condition reductions.
8632 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
8633 are looking at the last stmt in a pattern sequence when
8634 filling in backedge PHI values.
8636 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
8637 Jiufu Guo <guojiufu@linux.ibm.com>
8640 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
8641 the callee explicitly disables some isa_flags the caller is using.
8643 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8645 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
8647 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8649 * genmodes.c (mode_data::order): New field.
8650 (blank_mode): Update accordingly.
8651 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
8652 (make_vector_modes): Likewise.
8653 (VECTOR_MODES): Update use accordingly.
8654 (cmp_modes): Sort by the new order field ahead of sorting by size.
8655 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
8656 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
8657 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
8658 (aarch64_classify_vector_mode): Handle the new partial modes.
8659 (aarch64_vl_bytes): New function.
8660 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
8661 when counting the number of registers in an SVE mode.
8662 (aarch64_class_max_nregs): Likewise.
8663 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
8665 (aarch64_classify_address): Treat partial vectors analogously
8667 (aarch64_print_address_internal): Consolidate the printing of
8668 MUL VL addresses, using aarch64_vl_bytes as the number of
8669 bytes represented by "VL".
8670 (aarch64_vector_mode_supported_p): Reject partial vector modes.
8672 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8674 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
8675 rather than known_lt when choosing frame layouts.
8677 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8679 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
8680 that all the adjustments add up to the full frame size.
8681 Use crtl->outgoing_args_size directly as the final adjustment
8684 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8686 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
8687 "frame" reference instead of always referring directly to
8688 "cfun->machine->frame".
8690 2019-10-16 Richard Biener <rguenther@suse.de>
8692 PR tree-optimization/92119
8693 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
8694 against missing bswap lhs.
8696 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
8699 * poly-int.h (constant_lower_bound_with_limit): New function.
8700 (constant_upper_bound_with_limit): Likewise.
8701 * doc/poly-int.texi: Document them.
8702 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
8703 into the worst-case INTEGER_CST bounds.
8705 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
8708 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
8709 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
8710 * ipa-predicat.h (struct expr_eval_op): New struct.
8711 (expr_eval_ops): New typedef.
8712 (struct condition): Add type and param_ops fields, remove size field.
8713 (add_condition): Replace size parameter with type parameter, add
8714 param_ops parameter.
8715 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
8716 (predicate::add_clause): Add comparisons on type and param_ops.
8717 (dump_condition): Add debug dump for param_ops.
8718 (remap_after_inlining): Adjust call arguments to add_condition.
8719 (add_condition): Replace size parameter with type parameter, add
8720 param_ops parameter. Unshare constant value used in conditions.
8721 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
8722 parameter expressions using param_ops.
8723 (decompose_param_expr): New function.
8724 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
8725 to replace call to unmodified_parm_or_parm_agg_item.
8726 (set_switch_stmt_execution_predicate): Likewise.
8727 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
8729 (inline_read_section): Read param_ops from summary stream.
8730 (ipa_fn_summary_write): Write param_ops to summary stream.
8732 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
8734 PR rtl-optimization/92107
8735 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
8738 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8740 * config/darwin.c: Update description of fix and continue.
8742 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
8744 * config/darwin.c (darwin_binds_local_p): Update to call
8745 default_binds_local_p_3 () directly. amend comments.
8747 2019-10-15 Richard Biener <rguenther@suse.de>
8749 * lto-streamer-out.c (lto_variably_modified_type_p): New.
8750 (tree_is_indexable): Use it.
8751 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8752 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
8753 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8755 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8757 * config/msp430/msp430.md (zero_extendqipsi2): New.
8758 (zero_extendqisi2): Optimize case where src register and base dst
8759 register are the same.
8760 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
8761 (zero_extendpsisi2): Optimize r->m case.
8762 Add unnamed insn patterns to catch insns combine searches for when
8763 optimizing pointer manipulation.
8765 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8767 * config/msp430/msp430.md: Group zero_extend* insns together.
8769 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8771 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
8773 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
8775 (msp430_subreg): Likewise.
8776 (msp430_split_addsi): Likewise.
8777 (msp430_print_operand_addr): Likewise.
8778 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
8779 (USE_STORE_POST_INCREMENT): Define.
8780 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
8781 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
8782 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
8783 (msp430_general_dst_operand): New.
8784 (msp430_general_dst_nonv_operand): New.
8785 (msp430_nonsubreg_operand): Remove.
8786 (msp430_nonsubreg_dst_operand): New.
8787 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
8788 of defunct msp430_nonsubreg_operand.
8789 (msp430_nonsubregnonpostinc_or_imm_operand): New.
8791 2019-10-15 Richard Biener <rguenther@suse.de>
8793 PR tree-optimization/91929
8794 * tree-ssa-pre.c (pre_expr_d::loc): New member.
8795 (get_or_alloc_expr_for_name): Initialize it.
8796 (get_or_alloc_expr_for_constant): Likewise.
8797 (phi_translate_1): Copy it.
8798 (create_expression_by_pieces): Use the original location
8799 of the expression for the inserted stmt.
8800 (compute_avail): Record the location of the stmt for the
8801 expressions created.
8803 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
8805 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
8806 before using tree_to_uhwi.
8808 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
8810 * config/s390/s390.md: Run %a0:DI splitters only after reload.
8812 2019-10-15 Richard Biener <rguenther@suse.de>
8814 PR tree-optimization/92094
8815 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
8816 do not adjust the reduction definition def type.
8817 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
8818 defines the latch argument of the PHI.
8820 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
8823 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
8824 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
8825 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
8826 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
8827 _mm_maskz_roundscale_round_sd): New intrinsics.
8828 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
8829 __builtin_ia32_rndscales?_mask_round builtins instead of
8830 __builtin_ia32_rndscales?_round.
8831 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
8832 __builtin_ia32_rndscalesd_round): Remove.
8833 (__builtin_ia32_rndscaless_mask_round,
8834 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
8835 * config/i386/sse.md
8836 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
8837 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
8838 ... this, adjust and add subst atrributes to make it maskable.
8840 2019-10-15 Richard Biener <rguenther@suse.de>
8843 * common.opt (fallow-store-data-races): New.
8844 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
8845 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
8846 * doc/invoke.texi (fallow-store-data-races): Document.
8847 (--param allow-store-data-races): Remove docs.
8848 * opts.c (default_options_table): Enable -fallow-store-data-races
8850 (default_options_optimization): Do not enable --param
8851 allow-store-data-races at -Ofast.
8852 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
8853 instead of PARAM_ALLOW_STORE_DATA_RACES.
8854 * tree-ssa-loop-im.c (execute_sm): Likewise.
8856 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8858 PR tree-optimization/92085
8859 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
8860 instead of calling it unconditionally after
8861 delete_dead_or_redundant_assignment and fix indentation.
8863 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
8865 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
8867 (*fmsub<SDF:mode>4): Likewise.
8868 *fnmsub<SDF:mode>4): Likewise.
8869 (*fnmadd<SDF:mode>4): Likewise.
8871 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
8873 * doc/tree-ssa.texi: Update renamed macro name.
8875 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
8877 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
8880 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
8882 * config/darwin.c: Use unsigned ints for the picbase label
8883 counters, initialise the vars explicitly.
8884 (update_pic_label_number_if_needed): Move a variable declaration
8885 to where it's needed.
8886 (machopic_output_function_base_name): Use a more strict checking
8887 assert, and and unsigned int for the picbase label counter.
8888 (machopic_get_function_picbase): Likewise.
8890 2019-10-14 Richard Biener <rguenther@suse.de>
8893 * dse.c (scan_insn): Use param max_active_local_stores.
8894 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
8895 based on optimization level.
8896 * loop-invariant.c (move_loop_invariants): Adjust
8897 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
8898 * opts.c (default_options_optimization): Do not adjust
8899 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
8900 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
8902 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8904 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
8906 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
8908 * config/arm/arm.c (arm_option_override): Don't override sched
8911 2019-10-14 Richard Biener <rguenther@suse.de>
8913 PR tree-optimization/92069
8914 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
8915 cycles do not set vect_nested_cycle on the latch definition.
8917 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
8919 * function-abi.h (expr_callee_abi): Declare.
8920 * function-abi.cc (expr_callee_abi): New function.
8922 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
8924 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
8926 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
8927 non-zero being represented as [1,MAX].
8929 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
8931 * tree-sra.c (dump_access): Add missing braces.
8933 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8935 * config/darwin.c (machopic_indirection_name): Rework the
8936 function to emit linker-visible symbols only for indirections
8937 in the data section. Clean up the code and update comments.
8939 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
8941 * config/darwin.c (machopic_indirect_data_reference): Remove
8944 2019-10-13 Nathan Sidwell <nathan@acm.org>
8946 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
8948 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8950 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
8953 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
8955 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
8956 so non-virutal are before virutals.
8957 (output_function): Avoid body modifications.
8959 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
8961 * config/pa/pa.c (pa_output_call): Load descriptor address to register
8962 %r22. Load function address before global pointer.
8963 (pa_attr_length_indirect_call): Adjust length of inline versions of
8965 (pa_output_indirect_call): Remove fast inline version of $$dyncall
8966 before normal cases. Update inline $$dyncall sequences to preserve
8967 function descriptor address in register %r22.
8968 (TRAMPOLINE_CODE_SIZE): Adjust.
8969 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
8970 register %r22 contains trampoline address.
8971 (pa_trampoline_init): Adjust offsets.
8972 (pa_trampoline_adjust_address): Likewise.
8973 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
8975 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8978 * config/darwin.c (machopic_indirection): New field to flag
8979 non-lazy-symbol-pointers in the data section.
8980 (machopic_indirection_name): Compute if an indirection should
8981 appear in the data section.
8982 (machopic_output_data_section_indirection): New callback split
8983 from machopic_output_indirection.
8984 (machopic_output_stub_indirection): Likewise.
8985 (machopic_output_indirection): Retain the code for non-lazy
8986 symbol pointers in their regular section.
8987 (machopic_finish): Use the new callbacks to order the indirection
8990 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8992 * config/darwin-protos.h (machopic_finish): Delete.
8993 * config/darwin.c (machopic_finish): Make static.
8995 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
8997 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
8998 sections when building kernel extension code.
9000 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
9002 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
9005 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
9007 * config/pa/pa.c (pa_option_override): Remove trailing comma
9010 2019-10-12 Jakub Jelinek <jakub@redhat.com>
9013 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
9014 <case VEC_COND_EXPR>: Return false with *handled = false.
9015 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
9016 recursing on the first operand.
9017 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
9018 instead of tree_could_trap_p.
9019 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
9021 2019-10-11 Jim Wilson <jimw@sifive.com>
9023 PR rtl-optimization/91860
9024 * combine.c (subst): If new_rtx is a constant, also check for
9025 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
9027 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
9029 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
9030 INTVAL when calling store_bit_field.
9032 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
9034 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
9037 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
9039 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
9040 vectorizable_live_operation.
9041 (vectorizable_live_operation): Adjust parameters.
9042 * tree-vect-stmts.c (vect_init_vector,
9043 vect_gen_widened_results_half): Fix typo in function comment.
9044 (can_vectorize_live_stmts): Adjust function comment.
9045 Adjust parameters. Adjust call to vectorizable_live_operation.
9046 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
9047 (vect_transform_stmt): Adjust function comment. Adjust call to
9048 can_vectorize_live_stmts.
9049 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
9051 2019-10-11 Richard Biener <rguenther@suse.de>
9053 PR tree-optimization/90883
9054 PR tree-optimization/91091
9055 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
9056 alias-sets both for recording VN table entries and continuing
9057 walking after translating through copies. Handle same-sized
9058 reads from SSA names by returning the plain SSA name.
9059 (eliminate_dom_walker::eliminate_stmt): Properly handle
9060 non-size precision stores in redundant store elimination.
9062 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9064 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
9065 (ggc_collect): Dump later to not interfere with release_page dump.
9066 (ggc_trim): New function.
9067 * ggc-none.c (ggc_trim): New.
9068 * ggc.h (ggc_trim): Declare.
9070 2019-10-11 Richard Biener <rguenther@suse.de>
9072 PR tree-optimization/92066
9073 PR tree-optimization/92046
9074 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9075 Fix bogus cost model check.
9077 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
9079 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
9080 (LANG_HOOKS_DECLS): Add it.
9081 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
9082 update comment for omp_is_optional_argument.
9083 * omp-general.c (omp_is_allocatable_or_ptr): New.
9084 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
9085 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
9086 Fortran's optional arguments and allocatable/pointer scalars
9087 with use_device_addr.
9089 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
9092 * config/s390/2827.md: Add new opcodes.
9093 * config/s390/2964.md: Likewise.
9094 * config/s390/3906.md: Likewise.
9095 * config/s390/8561.md: Likewise.
9096 * config/s390/s390-builtins.def (s390_vfchesb): Use
9097 the new vec_cmpgev4sf_quiet_nocc.
9098 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
9099 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
9100 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
9101 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
9102 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
9103 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
9104 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
9105 * config/s390/s390-modes.def (CCSFPS): New mode.
9106 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
9107 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
9108 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
9109 (s390_expand_vec_compare): Use non-signaling patterns where
9111 (s390_reverse_condition): Support CCSFPS.
9112 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
9113 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
9114 (asm_fcmp_op): Likewise.
9115 (*smaxv2df3_vx): Use pattern for quiet comparison.
9116 (*sminv2df3_vx): Likewise.
9117 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
9118 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
9119 (vec_cmpgt<mode>_quiet_nocc): Likewise.
9120 (vec_cmplt<mode>_quiet_nocc): New expander.
9121 (vec_cmpge<mode>_quiet_nocc): New pattern.
9122 (vec_cmple<mode>_quiet_nocc): New expander.
9123 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
9124 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
9125 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
9126 (*vec_cmpge<mode>_signaling_nocc): Likewise.
9127 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
9128 (vec_cmpungt<mode>): New expander.
9129 (vec_cmpunge<mode>): Likewise.
9130 (vec_cmpuneq<mode>): Use quiet patterns.
9131 (vec_cmpltgt<mode>): Allow only on z14+.
9132 (vec_cmpordered<mode>): Use quiet patterns.
9133 (vec_cmpunordered<mode>): Likewise.
9134 (VEC_CMP_EXPAND): Add ungt and unge.
9136 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
9138 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
9140 * lto-streamer-out.c: Include tree-dfa.h.
9141 (output_cfg): Do not use cfun.
9142 (lto_prepare_function_for_streaming): New.
9143 (output_function): Do not push cfun; do not initialize loop optimizer.
9144 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
9145 * passes.c (ipa_write_summaries): Use it.
9146 (ipa_write_optimization_summaries): Do not modify bodies.
9147 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
9148 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
9149 * tree-ssa-dse.c (pass_dse::execute): Update use of
9150 renumber_gimple_stmt_uids.
9151 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
9153 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
9155 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9156 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
9158 2019-10-10 Joseph Myers <joseph@codesourcery.com>
9160 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
9162 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
9163 Also define DFP macros for these conditions.
9164 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
9165 DEC128_SUBNORMAL_MIN): Do not define.
9166 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
9167 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
9169 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
9170 Sandra Loosemore <sandra@codesourcery.com>
9173 * doc/lto.texi (IPA): Reference to the IPA passes.
9174 * doc/passes.texi (Pass manager): Add node IPA passes and
9175 description for each IPA pass.
9177 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9179 * ipa-reference.c: Do not include splay-tree.h
9180 (reference_vars_to_consider): Turn to hash map.
9181 (get_static_name, ipa_init, analyze_function, propagate,
9182 stream_out_bitmap, ipa_reference_write_optimization_summary,
9183 ipa_reference_write_optimization_summary): Update.
9185 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9187 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
9189 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
9191 * config/darwin.c: Lookup Objective C metadata and force indirection
9194 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
9196 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
9198 (mem_operand_gpr): Add check for prefixed addresses.
9199 (mem_operand_ds_form): Add check for prefixed addresses.
9200 (rs6000_legitimate_offset_address_p): If we support prefixed
9201 addresses, check for a 34-bit offset instead of 16-bit.
9202 (rs6000_legitimate_address_p): Add check for prefixed addresses.
9203 Do not allow load/store with update if the address is prefixed.
9204 (rs6000_mode_dependent_address): If we support prefixed
9205 addresses, check for a 34-bit offset instead of 16-bit.
9207 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
9210 * config/s390/vector.md (vcond_comparison_operator): New
9212 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
9214 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9217 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
9219 * configure.ac (--with-documentation-root-url): New option.
9220 * configure: Regenerate.
9221 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
9222 option URL, add it as a new string field of the diagnostic option.
9223 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
9224 (print_option_information): If get_option_url is non-NULL, call
9225 it, and if the result is non-NULL, potentially emit an escape
9226 sequence to markup the option text with the resulting URL.
9227 * diagnostic.h (diagnostic_context::get_option_url): New callback.
9228 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
9229 example of JSON output.
9230 * opts-diagnostic.h (get_option_url): New decl.
9231 * opts.c (get_option_url): New function.
9232 * toplev.c (general_init): Initialize the get_option_url callback.
9234 2019-10-10 David Malcolm <dmalcolm@redhat.com>
9237 * common.opt (fdiagnostics-urls=): New option.
9238 (diagnostic-url.h): Add SourceInclude.
9239 (diagnostic_url_rule): New enum.
9240 * diagnostic-color.c: Include "diagnostic-url.h".
9241 (diagnostic_urls_enabled_p): New function.
9242 * diagnostic-url.h: New file.
9243 * diagnostic.c: Include "diagnostic-url.h".
9244 (diagnostic_urls_init): New function.
9245 * diagnostic.h (diagnostic_urls_init): New decl.
9246 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9247 -fdiagnostics-urls to the list.
9248 (-fdiagnostics-urls): New option.
9249 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
9250 (driver::global_initializations): Call diagnostic_urls_init.
9251 * opts-global.c (init_options_once): Likewise.
9252 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
9253 * pretty-print.c (pretty_printer::pretty_printer): Initialize
9255 (pp_begin_url): New function.
9256 (pp_end_url): New function.
9257 (selftest::test_urls): New selftest.
9258 (selftest::pretty_print_c_tests): Call it.
9259 * pretty-print.h (pretty_printer::show_urls): New field.
9260 (pp_begin_url): New decl.
9261 (pp_end_url): New decl.
9263 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
9266 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
9268 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
9271 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
9272 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
9273 also for TARGET_FPU_SH4_300.
9274 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
9276 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
9277 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
9278 (*negsf2_i): Split into ...
9279 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
9280 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
9281 (**abssf2_i): Split into ...
9282 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
9283 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
9284 (*negdf2_i): Split into ...
9285 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
9286 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
9287 (**abssf2_i): Split into ...
9288 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
9290 2019-10-10 Richard Biener <rguenther@suse.de>
9293 * opts.c (finish_options): Do not influence global --params
9294 from options that are adjustable per function.
9295 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9296 Apply --param adjustment based on active cost-model.
9297 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
9298 further store-sinking when vectorization or if-conversion
9301 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
9304 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
9305 rather than ggc_alloc_cleared to alloc symbol table.
9306 * toplev.c (general_init): Likewise.
9307 * cgraph.h (symbol_table): Explicitly construct every field.
9309 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9311 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
9313 * config.gcc: Add z15 as option for --with-arch and --with-tune
9315 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
9316 error reporting for unsupported builtins.
9317 * config/s390/s390-opts.h (enum processor_type): Rename
9318 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
9319 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
9320 * config/s390/driver-native.c (s390_host_detect_local_cpu):
9322 * config/s390/s390-builtins.def: Likewise.
9323 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
9324 (s390_expand_builtin): Add missing check for unsupported builtins.
9325 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
9326 (s390_rtx_costs): Likewise.
9327 (s390_get_sched_attrmask): Rename arch13 to z15.
9328 (s390_get_unit_mask): Likewise.
9329 (s390_is_fpd): Likewise.
9330 (s390_is_fxd): Likewise.
9331 * config/s390/s390.h (enum processor_flags): Likewise.
9332 * config/s390/s390.md: Likewise.
9333 * config/s390/vector.md: Likewise.
9334 * config/s390/vx-builtins.md: Likewise.
9335 * config/s390/s390.opt: Add z15 to processor_type value.
9337 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
9340 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
9342 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
9343 ("split_stack_data", "split_stack_call")
9344 ("split_stack_call_<mode>", "split_stack_cond_call")
9345 ("split_stack_cond_call_<mode>"): Remove.
9346 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
9348 * config/s390/s390.c (s390_output_split_stack_data): New function.
9349 (s390_expand_split_stack_prologue): Use the merged expander.
9351 2019-10-09 Martin Sebor <msebor@redhat.com>
9353 PR tree-optimization/90879
9354 * builtins.c (check_access): Avoid using maxbound when null.
9355 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
9356 * doc/invoke.texi (-Wstring-compare): Document new warning option.
9357 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
9359 (get_range_strlen): Overwrite initial maxbound when non-null.
9360 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
9362 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
9363 (used_only_for_zero_equality): New function.
9364 (handle_builtin_memcmp): Call it.
9365 (determine_min_objsize): Return an integer instead of tree.
9366 (get_len_or_size, strxcmp_eqz_result): New functions.
9367 (maybe_warn_pointless_strcmp): New function.
9368 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
9369 between a longer string and a smaller array.
9370 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
9372 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9374 * config/darwin.c (darwin_override_options): Make the check for
9375 Objective-C ABI version more specific for 64bit code.
9377 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
9379 * config/darwin.c (machopic_indirect_data_reference): Set flag to
9380 indicate that the new symbol is an indirection.
9381 (machopic_indirect_call_target): Likewise.
9382 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
9383 (MACHO_SYMBOL_INDIRECTION_P): New.
9384 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
9386 2019-10-08 Jason Merrill <jason@redhat.com>
9388 * doc/invoke.texi: Document -fconcepts-ts.
9390 2019-10-09 Richard Biener <rguenther@suse.de>
9392 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
9393 allow stmts other than GIMPLE_ASSIGN in nested cycles.
9395 2019-10-08 Richard Biener <rguenther@suse.de>
9397 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
9398 (_stmt_vec_info::force_single_cycle): Likewise.
9399 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
9400 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
9401 * tree-vect-loop.c (vectorizable_reduction): Set
9402 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
9403 (vect_transform_reduction): Use them to remove redundant code.
9404 (vect_transform_cycle_phi): Likewise.
9406 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
9408 PR tree-optimization/90836
9409 * match.pd (popcount): New pattern.
9411 2019-10-08 Martin Sebor <msebor@redhat.com>
9415 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
9416 again once nbytes has been set. Set the access size when not yet set.
9418 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9420 * config/darwin.c (machopic_select_section): Remove dead code for
9421 old Objective-C section selection method, replace with unreachable.
9423 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
9425 * config/darwin.c (machopic_indirect_data_reference): Check for
9426 required indirections before making direct access to defined
9428 (machopic_output_indirection): Place the indirected pointes for
9429 required indirections into the non-lazy symbol pointers section.
9430 (darwin_encode_section_info):
9431 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
9432 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
9434 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
9437 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
9438 instead of ALL_SSE_REG to check if function call preserves some
9439 256-bit SSE registers.
9441 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
9443 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
9444 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
9445 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
9447 2019-10-08 Richard Biener <rguenther@suse.de>
9449 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
9450 (_stmt_vec_info::is_reduc_info): Add.
9451 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
9452 (vectorizable_condition): Remove.
9453 (vectorizable_shift): Likewise.
9454 (vectorizable_reduction): Adjust.
9455 (info_for_reduction): New.
9456 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
9457 (vect_analyze_scalar_cycles_1): ... here.
9458 (vect_analyze_loop_operations): Adjust.
9459 (needs_fold_left_reduction_p): Simplify for single caller.
9460 (vect_is_simple_reduction): Likewise. Remove stmt restriction
9461 for nested cycles not part of double reductions.
9462 (vect_model_reduction_cost): Pass in the reduction type.
9463 (info_for_reduction): New function.
9464 (vect_create_epilog_for_reduction): Use it, access reduction
9465 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
9466 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9467 (vectorize_fold_left_reduction): Remove pointless assert.
9468 (vectorizable_reduction): Analyze the full reduction when
9469 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
9470 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
9471 stmt code-generation to vectorizable_* in most cases. Verify
9472 code-generation only for cases handled by
9473 vect_transform_reductuon.
9474 (vect_transform_reduction): Use info_for_reduction to get at
9475 reduction meta. Simplify.
9476 (vect_transform_cycle_phi): Likewise.
9477 (vectorizable_live_operation): Likewise.
9478 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
9479 at the PHI node for STMT_VINFO_REDUC_TYPE.
9480 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
9481 longer necessary code.
9482 * tree-vect-stmts.c (vectorizable_shift): Make static again.
9483 (vectorizable_condition): Likewise. Get at reduction related
9484 info via info_for_reduction.
9485 (vect_analyze_stmt): Adjust.
9486 (vect_transform_stmt): Likewise.
9487 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9488 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
9490 2019-10-08 Joseph Myers <joseph@codesourcery.com>
9492 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
9493 -fno-fp-int-builtin-inexact default for C2X.
9495 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9496 Richard Biener <rguenther@suse.de>
9498 PR tree-optimization/91532
9499 * tree-if-conv.c: Include tree-ssa-dse.h.
9500 (ifcvt_local_dce): Change param from bb to loop,
9501 and call dse_classify_store.
9502 (tree_if_conversion): Pass loop instead of loop->header as arg
9504 * tree-ssa-dse.c: Include tree-ssa-dse.h.
9505 (delete_dead_or_redundant_assignment): Remove static qualifier from
9506 declaration, and add prototype in tree-ssa-dse.h.
9507 (dse_store_status): Move to tree-ssa-dse.h.
9508 (dse_classify_store): Remove static qualifier and add new tree param
9509 stop_at_vuse, and add prototype in tree-ssa-dse.h.
9510 * tree-ssa-dse.h: New header.
9512 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9514 * config/darwin.c (machopic_output_indirection): Don't put
9515 hidden symbol indirections into the .data section, use the
9516 non-lazy symbol pointers section as normal.
9517 (darwin_encode_section_info): Record if a symbol is hidden.
9518 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
9519 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
9521 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
9523 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
9524 predicates instead of accessing bits directly.
9525 (machopic_indirect_call_target): Likewise.
9526 (machopic_output_indirection): Likewise.
9527 (darwin_encode_section_info): Improve description. Use renamed
9528 symbol flags. Use predicate macros for variables and functions.
9530 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
9531 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
9532 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
9533 (MACHO_SYMBOL_VARIABLE_P): New.
9534 (MACHO_SYMBOL_DEFINED_P):New.
9535 (MACHO_SYMBOL_STATIC_P): New.
9536 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
9537 (SYMBOL_FLAG_SUBT_DEP): New.
9538 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
9540 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9542 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
9543 (msp430_expand_epilogue): Likewise.
9544 * config/msp430/predicates.md: Likewise.
9545 * config/msp430/msp430.md: Likewise.
9546 Replace blocks of 8 spaces with tabs.
9548 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9550 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
9551 * config/msp430/msp430.c (msp430_split_addsi): New.
9552 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
9553 a block of C code for splitting addsi.
9555 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
9557 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
9558 ix86_expand_rounddf_32): Reorder functions.
9559 * config/i386/i386-protos.h: Update.
9561 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9563 * config.in: Regenerate.
9564 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
9565 Add new "Yx" constraint.
9566 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
9568 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
9570 * config/msp430/msp430.c (msp430_option_override): Allow the lower
9571 code/data region to be selected in the small memory model.
9572 (msp430_section_attr): Don't warn if the "section" and "lower"
9573 attributes are used together.
9574 (msp430_handle_generic_attribute): Likewise.
9575 (msp430_var_in_low_mem): New function.
9576 (TARGET_ENCODE_SECTION_INFO): Define.
9577 (msp430_encode_section_info): New function.
9578 (gen_prefix): Return early in the small memory model.
9579 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
9580 ".lower" prefix if -m{code,data}-region=lower have been passed.
9581 (msp430_output_aligned_decl_common): Emit common symbols when
9582 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
9584 (TARGET_ASM_FILE_END): Define.
9585 (msp430_file_end): New function.
9586 (msp430_do_not_relax_short_jumps): Allow relaxation when
9587 function will be in the lower region.
9588 (msp430_op_not_in_high_mem): New function.
9589 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
9590 the 'X' operand selector.
9591 Clarify comment for 'x' operand selector.
9592 * config/msp430/msp430.h (LINK_SPEC): Propagate
9593 -m{code,data}-region to the linker via spec function
9594 msp430_propagate_region_opt.
9595 (msp430_propagate_region_opt): New prototype.
9596 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
9597 (SYMBOL_FLAG_LOW_MEM): Define.
9598 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
9600 (zero_extendqihi2): Fix operand number used by "%X" selector.
9601 (zero_extendqisi2): Likewise.
9602 (zero_extendhisi2): Likewise.
9603 (movqi): Use "Yx" constraint in place of "%X" operand selector.
9608 (addhi3_cy): Likewise.
9609 (addchi4_cy): Likewise.
9613 (bic<mode>3): Likewise.
9614 (and<mode>3): Likewise.
9615 (ior<mode>3): Likewise.
9616 (xor<mode>3): Likewise.
9617 (slli_1): Add missing "%X" operand selector.
9625 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
9627 (cbranchhi4_real): Likewise.
9628 (cbranchqi4_reversed): Likewise.
9629 (cbranchhi4_reversed): Likewise.
9630 (*bitbranch<mode>4): Likewise.
9631 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
9632 * config/msp430/msp430.opt (mcode-region=): Set default to
9633 MSP430_REGION_LOWER. Improve docstring.
9634 (mdata-region=): Likewise.
9635 (muse-lower-region-prefix): New option.
9636 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
9637 mdata-region=none multilib.
9638 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
9639 mdata-region=none multilib.
9640 MULTILIB_EXCEPTIONS: Remove.
9641 MULTILIB_REQUIRED: Define.
9642 * configure: Regenerate.
9643 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
9644 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
9645 * doc/extend.texi: Clarify comment for {upper,lower,either}
9646 function attributes.
9647 Add separate description for "lower" variable attribute.
9649 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9652 * optabs-tree.c (vcond_icode_p): New function.
9653 (vcond_eq_icode_p): Likewise.
9654 (expand_vec_cond_expr_p): Use vcond_icode_p and
9656 * optabs.c (can_vcond_compare_p): New function.
9657 * optabs.h (can_vcond_compare_p): Likewise.
9659 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
9662 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
9663 caller passes a non-trapping condition.
9664 (is_gimple_condexpr): Allow trapping conditions.
9665 (is_gimple_condexpr_1): New helper function.
9666 (is_gimple_condexpr_for_cond): New function, acts like old
9668 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
9669 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
9670 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
9671 * gimplify.c (gimplify_cond_expr): Use
9672 is_gimple_condexpr_for_cond.
9673 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
9674 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
9676 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
9677 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
9678 is_gimple_condexpr_for_cond, remove pointless tmp check
9679 (forward_propagate_into_cond): Remove pointless tmp check.
9681 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9683 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
9684 match that of other gsi_next_* functions. Adjust the comment.
9685 (gsi_start_nonvirtual_phis): New function.
9686 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
9687 gsi_next_nonvirtual_phi accordingly. (No functional change.)
9689 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
9691 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
9692 setjmp situation here. Fix a verb's ending: "the exact variables or
9693 elements for which there are warnings depends" -> "... depend".
9695 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9697 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
9699 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9701 * ipa-prop.c (ipa_vr::nonzero_p): New.
9702 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
9704 * ipa-prop.h (class ipa_vr): Add nonzero_p.
9705 * tree-vrp.c (range_has_numeric_bounds_p): New.
9706 (range_int_cst_p): Use range_has_numeric_bounds_p.
9707 (get_range_op_handler): New.
9708 (supported_types_p): New.
9709 (defined_ranges_p): New.
9710 (drop_undefines_to_varying): New.
9711 (range_fold_binary_symbolics_p): New.
9712 (range_fold_unary_symbolics_p): New.
9713 (range_fold_unary_expr): Extract out into above functions.
9714 (range_fold_binary_expr): Same.
9715 (value_range_base::normalize_addresses): New.
9716 (value_range_base::normalize_symbolics): Normalize addresses.
9717 * tree-vrp.h (class value_range_base): Add normalize_addresses.
9719 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
9721 * tree-vrp.c (value_range_base::singleton_p): Use
9722 value_range_base::num_pairs instead of vrp_val_is* to check
9723 if a range has one sub-range.
9725 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9727 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
9728 DEF is not a true earlyclobber but is tied to a specific input
9729 operand, and so is effectively earlyclobber wrt inputs that have
9731 (make_early_clobber_and_input_conflicts): Pass this case to the above.
9733 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9735 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
9736 (pod_mode): Mark operators likewise.
9737 (scalar_int_mode): Mark non-default constructors and
9738 operators with CONSTEXPR.
9739 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
9740 (fixed_size_mode): Likewise.
9742 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
9745 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
9746 and wrap the unspec_volatile in a parallel.
9747 (*avx_vzeroupper): New define_insn. Use a match_parallel around
9748 the unspec_volatile.
9749 * config/i386/predicates.md (vzeroupper_pattern): Expect the
9750 unspec_volatile to be wrapped in a parallel.
9751 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
9752 (ix86_add_reg_usage_to_vzerouppers): New functions.
9753 (rest_of_handle_insert_vzeroupper): Use them to add register
9754 usage information to the vzeroupper instructions.
9756 2019-10-07 Richard Biener <rguenther@suse.de>
9758 PR tree-optimization/91975
9759 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
9762 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
9764 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
9765 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
9767 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
9769 * config/darwin.c (darwin_override_options): Adjust objective-c
9770 ABI version error messages to avoid punctuation and contracted
9773 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
9775 * ipa-inline.c: Fix type; compute size rather than self_size
9776 for size of caller function.
9778 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
9781 * config/darwin.c (darwin_rodata_section): Add relocation flag,
9782 choose const_data section for constants with relocations.
9783 (machopic_select_section): Pass relocation flag to
9784 darwin_rodata_section ().
9786 2019-10-05 Jakub Jelinek <jakub@redhat.com>
9788 PR tree-optimization/91734
9789 * generic-match-head.c: Include fold-const-call.h.
9790 * match.pd (sqrt(x) cmp c): Check the boundary value and
9791 in case inexact computation of c*c affects comparison of the boundary,
9792 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
9793 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
9794 for -frounding-math. For c2, try the next smaller or larger floating
9795 point constant depending on comparison code and if it has the same
9796 sqrt as c2, use it instead of c2.
9798 2019-10-04 Martin Sebor <msebor@redhat.com>
9801 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
9802 MEM_REF right operand. Avoid failing for MEM_REF assignments from
9803 uninitialized objects.
9805 2019-10-04 Martin Sebor <msebor@redhat.com>
9807 * builtins.c (compute_objsize): Add an argument.
9808 * tree-object-size.c (addr_object_size): Same.
9809 (compute_builtin_object_size): Same.
9810 * tree-object-size.h (compute_builtin_object): Same.
9812 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
9814 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
9816 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
9818 * match.pd (sinh (x) / cosh (x)): New simplification rule.
9820 2019-10-04 Martin Jambor <mjambor@suse.cz>
9822 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
9823 fntype when switching to calling memcpy instead of memset.
9825 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9827 * hash-table.h (hash_table::empty_slow): Don't assign
9828 size_t values to int variables.
9830 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9832 * expr.c (convert_mode_scalar): Remove shadowing local var.
9833 (emit_block_move): Rename local vars.
9834 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
9835 (emit_push_insn): Rename local vars.
9836 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
9837 shadowing local vars.
9838 (store_constructor): Remove shadowing local vars. Rename local var.
9839 (store_field, expand_cond_expr_using_cmove,
9840 expand_expr_real_2): Remove shadowing local vars.
9841 (expand_expr_real_1,
9842 do_store_flag): Remove shadowing local vars. Rename local vars.
9844 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9846 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
9848 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9850 * genmatch.c (commutate): Rename local var.
9851 (lower_cond): Reuse local var.
9852 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
9853 dt_operand::gen, dt_operand::gen_gimple_expr,
9854 dt_simplify::gen): Add a param. Rename generated vars.
9855 (decision_tree::insert_operand,
9856 (capture_info::walk_match, capture_info::walk_result,
9857 capture_info::walk_c_expr): Rename local vars.
9858 (expr::gen_transform): Rename generated vars.
9859 Use snprintf. Rename local vars.
9860 (capture::gen_transform, dt_operand::get_name,
9861 dt_operand::gen_opname): Rename generated vars.
9862 (write_predicate): Adjust call to gen_kids.
9863 (parser::get_internal_capture_id): Rename generated vars.
9864 (parser::parse_expr): Rename local vars.
9865 (parser::parse_if): Remove local var.
9866 (parser::parse_pattern, add_operator): Rename local vars.
9868 2019-10-04 Joseph Myers <joseph@codesourcery.com>
9870 * builtins.def (DEF_C2X_BUILTIN): New macro.
9871 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
9872 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
9873 (strndup): Use DEF_C2X_BUILTIN.
9874 * coretypes.h (enum function_class): Add function_c2x_misc.
9876 2019-10-04 Maya Rashish <coypu@sdf.org>
9878 * ira-color.c (update_costs_from_allocno): Call
9879 ira_init_register_move_cost_if_necessary.
9881 2019-10-04 Jeff Law <law@redhat.com>
9883 * config/h8300/h8300.md (cpymemsi): Disable.
9884 (movmd, movmd_internal_<mode>, movstr, movsd):
9885 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
9886 (movmd splitter, movsd splitter): Likewise.
9888 * range-op.cc (range_tests): Avoid two tests when ints and
9889 shorts are the same size.
9891 2019-10-04 Richard Biener <rguenther@suse.de>
9894 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
9897 2019-10-04 Richard Biener <rguenther@suse.de>
9899 PR tree-optimization/91982
9900 * tree-vect-loop.c (vectorizable_live_operation): Also guard
9901 against EXTRACT_LAST_REDUCTION.
9902 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
9904 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
9906 * range-op.o (value_range_from_overflowed_bounds): Rename from
9907 adjust_overflow_bound.
9908 (value_range_with_overflow): Rename from
9909 create_range_with_overflow.
9910 (create_possibly_reversed_range): Adjusted for above renames.
9911 (operator_*::wi_fold): Same.
9912 (cross_product_operator::wi_cross_productor): Same.
9914 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
9916 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
9917 -Wshadow=compatible-local): Fix description.
9918 Add an example where -Wshadow=compatible-local does not
9921 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
9923 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
9925 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
9926 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
9928 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9930 * expr.c (emit_block_move_hints): Slightly cleaner fix to
9931 can_move_by_pieces issue.
9933 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
9936 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
9937 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
9938 is available and the user has not set one on the command line.
9940 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9943 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
9944 instead of REGNO equality check on addr.reg.
9946 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
9948 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
9949 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
9950 * doc/invoke.texi (inline-heuristics-hint-percent,
9951 inline-heuristics-hint-percent-O2): Document.
9952 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
9954 (can_inline_edge_by_limits_p): Use it.
9956 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
9958 * config/arm/arm.c (arm_print_value): Use real_to_decimal
9959 to print CONST_DOUBLEs.
9961 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
9963 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
9964 * ipa-prop.c (ipcp_free_transformation_sum): New function.
9965 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
9967 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
9969 * Makefile.in (OBJS): Add range.o and range-op.o.
9970 Remove wide-int-range.o.
9971 * function-tests.c (test_ranges): New.
9972 (function_tests_c_tests): Call test_ranges.
9973 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
9974 range_fold_unary_expr instead of extract_range_from_unary_expr.
9975 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
9976 * range-op.cc: New file.
9977 * range-op.h: New file.
9978 * range.cc: New file.
9979 * range.h: New file.
9980 * selftest.h (range_tests): New prototype.
9981 * ssa.h: Include range.h.
9982 * tree-vrp.c (value_range_base::value_range_base): New
9984 (value_range_base::singleton_p): Do not call
9985 ranges_from_anti_range until sure we will need to.
9986 (value_range_base::type): Rename gcc_assert to
9987 gcc_checking_assert.
9988 (vrp_val_is_max): New argument.
9989 (vrp_val_is_min): Same.
9990 (wide_int_range_set_zero_nonzero_bits): Move from
9992 (extract_range_into_wide_ints): Remove.
9993 (extract_range_from_multiplicative_op): Remove.
9994 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
9995 from extract_range_from_binary_expr.
9996 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
9997 from extract_range_from_binary_expr.
9998 (extract_range_from_binary_expr): Remove.
9999 (normalize_for_range_ops): New.
10000 (range_fold_binary_expr): New.
10001 (range_fold_unary_expr): New.
10002 (value_range_base::num_pairs): New.
10003 (value_range_base::lower_bound): New.
10004 (value_range_base::upper_bound): New.
10005 (value_range_base::upper_bound): New.
10006 (value_range_base::contains_p): New.
10007 (value_range_base::invert): New.
10008 (value_range_base::union_): New.
10009 (value_range_base::intersect): New.
10010 (range_compatible_p): New.
10011 (value_range_base::operator==): New.
10012 (determine_value_range_1): Call range_fold_*expr instead of
10013 extract_range_from_*expr.
10014 * tree-vrp.h (class value_range_base): Add new constructors.
10015 Add methods for union_, intersect, operator==, contains_p,
10016 num_pairs, lower_bound, upper_bound, invert.
10017 (vrp_val_is_min): Add handle_pointers argument.
10018 (vrp_val_is_max): Same.
10019 (extract_range_from_unary_expr): Remove.
10020 (extract_range_from_binary_expr): Remove.
10021 (range_fold_unary_expr): New.
10022 (range_fold_binary_expr): New.
10023 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
10024 range_fold_binary_expr instead of extract_range_from_binary_expr.
10025 (vr_values::extract_range_basic): Same.
10026 (vr_values::extract_range_from_unary_expr): Call
10027 range_fold_unary_expr instead of extract_range_from_unary_expr.
10028 * wide-int-range.cc: Remove.
10029 * wide-int-range.h: Remove.
10031 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
10033 * config/rs6000/rs6000.c (mem_operand_gpr): Use
10034 SIGNED_16BIT_OFFSET_EXTRA_P macro.
10035 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
10036 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
10039 2019-10-02 Joseph Myers <joseph@codesourcery.com>
10041 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
10042 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
10043 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
10044 * glimits.h: Likewise.
10046 2019-10-03 Jakub Jelinek <jakub@redhat.com>
10048 PR rtl-optimization/91976
10049 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
10050 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
10051 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
10053 2019-10-02 Martin Sebor <msebor@redhat.com>
10055 PR tree-optimization/80936
10056 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
10058 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10060 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
10061 instead of reg_class_contents[ALL_REGS].
10063 2019-09-30 Jason Merrill <jason@redhat.com>
10065 Add some hash_map_safe_* functions like vec_safe_*.
10066 * hash-map.h (default_hash_map_size): New variable.
10067 (create_ggc): Use it as default argument.
10068 (hash_map_maybe_create, hash_map_safe_get)
10069 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
10071 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
10073 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
10074 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
10075 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
10076 (can_inline_edge_by_limits_p): Use it.
10077 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
10078 (want_inline_small_function_p): Use O2 bounds.
10079 (edge_badness): LIkewise.
10080 * opts.c (default_options): Add OPT_finline_functions.
10081 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
10082 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
10084 * doc/invoke.texi (-finline-functions): Update documentation.
10085 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
10086 inline-min-speedup-O2): Document.
10087 (early-inlining-insns-O2): Simplify docs.
10089 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
10091 PR rtl-optimization/87047
10092 * ifcvt.c (average_cost): New static function. Use it...
10093 (noce_process_if_block): ... here.
10095 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10097 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
10098 * config/rs6000/rs6000-string.c (expand_block_move): Add
10099 might_overlap parm.
10100 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
10101 (cpymemsi): Add might_overlap parm to expand_block_move() call.
10103 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
10105 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
10106 (expand_builtin_memcpy): Use might_overlap parm.
10107 (expand_builtin_mempcpy_args): Use might_overlap parm.
10108 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
10109 (expand_builtin_memory_copy_args): Add might_overlap parm.
10110 * expr.c (emit_block_move_via_cpymem): Rename to
10111 emit_block_move_via_pattern, add might_overlap parm, use cpymem
10112 or movmem optab as appropriate.
10113 (emit_block_move_hints): Add might_overlap parm, do the right
10114 thing for might_overlap==true.
10115 * expr.h (emit_block_move_hints): Update prototype.
10117 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
10119 * tree-eh.h (unsplit_eh_edges): Declare.
10120 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
10121 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
10122 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
10123 (struct store_immediate_info): Add lp_nr field.
10124 (store_immediate_info::store_immediate_info): Add NR2 parameter and
10125 initialize lp_nr with it.
10126 (struct merged_store_group): Add lp_nr and only_constants fields.
10127 (merged_store_group::merged_store_group): Initialize them.
10128 (merged_store_group::can_be_merged_into): Deal with them.
10129 (pass_store_merging): Rename terminate_and_release_chain into
10130 terminate_and_process_chain.
10131 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
10132 renaming and remove useless assertions.
10133 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
10134 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
10135 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
10136 instead of always recomputing it and compare lp_nr.
10137 (imm_store_chain_info::output_merged_store): If the group is in an
10138 active EH region, register new stores if they can throw. Moreover,
10139 if the insertion has created new basic blocks, adjust the PHI nodes
10140 of the post landing pad.
10141 (imm_store_chain_info::output_merged_stores): If the original stores
10142 are in an active EH region, deregister them.
10143 (lhs_valid_for_store_merging_p): Prettify.
10144 (adjust_bit_pos): New function extracted from...
10145 (mem_valid_for_store_merging): ...here. Use it for the base address
10146 and also for the offset if it is the addition of a constant.
10147 (lp_nr_for_store): New function.
10148 (pass_store_merging::process_store): Change return type to bool.
10149 Call lp_nr_for_store to initialize the store info. Propagate the
10150 return status of various called functions to the return value.
10151 (store_valid_for_store_merging_p): New predicate.
10152 (enum basic_block_status): New enumeration.
10153 (get_status_for_store_merging): New function.
10154 (pass_store_merging::execute): If the function can throw and catch
10155 non-call exceptions, unsplit the EH edges on entry and clean up the
10156 CFG on exit if something changed. Call get_status_for_store_merging
10157 for every basic block and keep the chains open across basic blocks
10158 when possible. Terminate and process open chains at the end, if any.
10160 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10162 * reginfo.c (globalize_reg): Fix shadowed variable in
10163 function_abis walk.
10165 2019-10-02 Martin Jambor <mjambor@suse.cz>
10167 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
10168 do not compute some stuff when set.
10169 (cgraph_node::create_edge): Likewise.
10170 (cgraph_node::create_indirect_edge): Renamed last parameter to
10171 coning_p and flipped its meaning, don't even calculate
10172 inline_failed when set.
10173 * cgraph.h (cgraph_node::create_edge): Add new parameter.
10174 (symbol_table::::create_edge): Likewise.
10175 (cgraph_node::create_indirect_edge): Rename last parameter, flip
10177 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
10178 call graph edge creating functions.
10180 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10183 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
10186 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
10188 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
10190 2019-10-02 Richard Biener <rguenther@suse.de>
10192 * tree-vectorizer.h (vect_transform_reduction): Declare.
10193 * tree-vect-stmts.c (vect_transform_stmt): Use it.
10194 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
10195 stmt transform to ...
10196 (vect_transform_reduction): ... this.
10198 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
10200 * omp-low.c (lower_omp_target): Dereference optional argument
10201 to work with the right pointer.
10203 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
10205 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
10207 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
10208 * langhooks.h (omp_is_optional_argument): New hook.
10209 * omp-general.c (omp_is_optional_argument): New.
10210 * omp-general.h (omp_is_optional_argument): New declaration.
10211 * omp-low.c (lower_omp_target): Create temporary for received value
10212 and take the address for new_var if the original variable was a
10213 DECL_BY_REFERENCE. Use size of referenced object when a
10214 pass-by-reference optional argument used as argument to firstprivate.
10216 2019-10-02 Jakub Jelinek <jakub@redhat.com>
10218 PR tree-optimization/91940
10219 * tree-vect-patterns.c: Include tree-vector-builder.h and
10220 vec-perm-indices.h.
10221 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
10222 unpromoting the argument back to uint16_t, or by converting into a
10223 rotate, or into shifts plus ior.
10225 2019-10-02 Richard Biener <rguenther@suse.de>
10227 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
10229 (vect_transform_cycle_phi): Declare.
10230 * tree-vect-stmts.c (vect_transform_stmt): Call
10231 vect_transform_cycle_phi.
10232 * tree-vect-loop.c (vectorizable_reduction): Split out
10233 PHI transformation stage to ...
10234 (vect_transform_cycle_phi): ... here.
10236 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
10238 PR middle-end/91957
10239 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
10240 eliminable registers.
10241 (make_hard_regno_live): Likewise, and don't make them live.
10243 2019-10-01 David Malcolm <dmalcolm@redhat.com>
10245 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
10246 Call pp_emit_prefix.
10247 (layout::print_source_line): Likewise.
10248 (layout::start_annotation_line): Likewise.
10249 (diagnostic_show_locus): Remove call to temporarily clear the
10251 (selftest::test_one_liner_fixit_remove): Add test coverage for the
10252 interaction of pp_set_prefix with rulers and fix-it hints.
10253 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
10254 prefix when calling diagnostic_show_locus, rather than destroying
10256 (print_parseable_fixits): Temporarily clear prefix.
10257 * pretty-print.c (pp_format): Save and restore line_length, rather
10258 than assuming it is zero.
10259 (pp_output_formatted_text): Remove assertion that line_length is
10262 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10264 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
10266 (nonoverlapping_refs_since_match_p): ... this; handle also
10268 (alias_stats): Update stats.
10269 (dump_alias_stats): Likewise.
10270 (cheap_array_ref_low_bound): New function.
10271 (aliasing_matching_component_refs_p): Add partial_overlap
10273 pass it to nonoverlapping_refs_since_match_p.
10274 (aliasing_component_refs_walk): Update call of
10275 aliasing_matching_component_refs_p
10276 (nonoverlapping_array_refs_p): New function.
10277 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
10278 indirect_refs_may_alias_p): Update calls of
10279 nonoverlapping_refs_since_match_p.
10281 2019-10-01 Maya Rashish <coypu@sdf.org>
10284 * ira-color.c (allocno_copy_cost_saving): Call
10285 ira_init_register_move_cost_if_necessary.
10287 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
10289 * Makefile.in (gnat_install_lib): New variable.
10290 * configure.ac: Substitute it.
10291 * configure: Regenerate.
10293 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10296 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
10297 is matched with non-C++ type
10299 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10301 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
10304 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
10306 * doc/invoke.texi (early-inlining-insns-O2): Document.
10307 (early-inlining-insns): Update.
10308 * params.def (early-inlining-insns-O2): New bound.
10309 (early-inlining-insns): Update docs.
10310 * ipa-inline.c (want_early_inline_function_p): Use new bound.
10312 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
10315 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
10316 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
10317 a memory access insn.
10319 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
10321 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
10324 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10327 * config/s390/s390.c (s390_expand_vec_compare): Use
10328 gen_vec_cmpordered and gen_vec_cmpunordered.
10329 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
10330 vec_unordered): Delete.
10331 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
10332 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
10333 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
10334 (vec_cmp<code>): Generic dispatcher.
10336 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
10339 * config/s390/vector.md (V_HW): Add V1TI in order to make
10340 vcond$a$b generate vcondv1tiv1tf.
10342 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10344 PR rtl-optimization/91948
10345 * ira-build.c (ira_create_allocno): Initialize
10346 ALLOCNO_CROSSED_CALLS_ABIS.
10347 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
10348 than regno to ira_need_caller_save_p.
10350 2019-10-01 Alexandre Oliva <oliva@adacore.com>
10352 * config/i386/i386-options.c
10353 (ix86_recompute_optlev_based_flags): New, moved out of...
10354 (ix86_option_override_internal): ... this. Call it.
10355 (ix86_override_options_after_change): Call it here too.
10358 * dwarf2out.c (override_type_for_decl_p): New.
10359 (gen_variable_die): Use it.
10361 2019-10-01 Richard Biener <rguenther@suse.de>
10363 * tree-vect-loop.c (vectorizable_reduction): Move variables
10364 to where they are used.
10366 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10368 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
10369 (build_def_use): Use PC instead of CC0 in a comment.
10371 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10373 * rtl.def (CLOBBER_HIGH): Delete.
10374 * doc/rtl.texi (clobber_high): Remove documentation.
10375 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
10376 (reg_is_clobbered_by_clobber_high): Delete.
10377 (gen_hard_reg_clobber_high): Likewise.
10378 * alias.c (record_set): Remove CLOBBER_HIGH handling.
10379 * cfgexpand.c (expand_gimple_stmt): Likewise.
10380 * combine-stack-adj.c (single_set_for_csa): Likewise.
10381 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
10382 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
10383 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
10384 * cse.c (invalidate_reg): Remove clobber_high parameter.
10385 (invalidate): Update call accordingly.
10386 (canonicalize_insn): Remove CLOBBER_HIGH handling.
10387 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
10388 (count_reg_usage, insn_live_p): Likewise.
10389 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
10390 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
10391 (cselib_invalidate_rtx_note_stores): Update call accordingly.
10392 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
10393 (cselib_invalidate_regno, cselib_process_insn): Likewise.
10394 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
10395 (mark_nonreg_stores_2): Likewise.
10396 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
10397 (df_get_call_refs): Likewise.
10398 * dwarf2out.c (mem_loc_descriptor): Likewise.
10399 * emit-rtl.c (verify_rtx_sharing): Likewise.
10400 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
10401 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
10402 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
10403 * genemit.c (gen_exp, gen_insn): Likewise.
10404 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
10405 * haifa-sched.c (haifa_classify_rtx): Likewise.
10406 * ira-build.c (create_insn_allocnos): Likewise.
10407 * ira-costs.c (scan_one_insn): Likewise.
10408 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
10409 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
10410 * jump.c (mark_jump_label_1): Likewise.
10411 * lra-int.h (lra_insn_reg::clobber_high): Delete.
10412 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
10414 (mark_not_eliminable): Likewise.
10415 * lra-lives.c (process_bb_lives): Likewise.
10416 * lra.c (new_insn_reg): Remove clobber_high parameter.
10417 (collect_non_operand_hard_regs): Likewise. Update call to new
10418 insn_reg. Remove CLOBBER_HIGH handling.
10419 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
10420 to collect_non_operand_hard_regs.
10421 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
10422 Update call to new_insn_reg.
10423 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
10424 * postreload.c (reload_cse_simplify, reload_combine_note_use)
10425 (move2add_note_store): Likewise.
10426 * print-rtl.c (print_pattern): Likewise.
10427 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
10428 (if_test_bypass_p): Likewise.
10429 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
10430 * reginfo.c (reg_scan_mark_refs): Likewise.
10431 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
10432 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
10433 (forget_old_reloads_1): Likewise.
10434 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
10435 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
10436 (dbr_schedule): Likewise.
10437 * resource.c (update_live_status, mark_referenced_resources)
10438 (mark_set_resources): Likewise.
10439 * rtl.c (copy_rtx): Likewise.
10440 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
10441 (note_pattern_stores): Likewise.
10442 (reg_is_clobbered_by_clobber_high): Delete.
10443 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
10444 CLOBBER_HIGH handling.
10446 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10449 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
10450 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
10451 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10452 Handle ARM_PCS_TLSDESC.
10453 (aarch64_tlsdesc_abi_id): New function.
10454 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
10455 rtx instead of a list of clobbers and clobber_highs.
10456 (tlsdesc_small_<mode>): Update accordingly.
10458 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10460 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
10461 extra callee_abi argument.
10462 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
10463 Insert a CALLEE_ABI unspec into the call pattern as the second
10464 element in the PARALLEL.
10465 (aarch64_simd_call_p): Delete.
10466 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
10467 the new CALLEE_ABI element of the PARALLEL.
10468 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
10469 from the function type, if given.
10470 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
10471 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
10472 when passed the function_arg_info end marker.
10473 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
10474 final argument of gen_sibcall.
10475 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
10476 (call): Make operand 2 a const_int_operand and pass it to expand_call.
10477 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
10479 (call_value): Likewise operand 3.
10480 (sibcall): Likewise operand 2. Place the unspec before rather than
10482 (sibcall_value): Likewise operand 3.
10483 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
10484 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
10485 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
10486 constraint strings.
10487 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
10489 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
10491 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
10492 choose_hard_reg_mode.
10493 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10495 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
10497 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
10498 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
10499 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
10501 2019-09-30 David Malcolm <dmalcolm@redhat.com>
10503 * diagnostic-show-locus.c (line_label::line_label): Initialize
10505 (line_label::comparator): Reverse the sort order by m_state_idx,
10506 so that when the list is walked backwards the labels appear in
10507 order of insertion into the rich_location.
10508 (line_label::m_has_vbar): New field.
10509 (layout::print_any_labels): When dealing with multiple labels at
10510 the same line and column, only print vertical bars for the one
10511 with the highest label_line.
10512 (selftest::test_one_liner_labels): Update test for multiple labels
10513 to expect the labels to be in the order of insertion into the
10514 rich_location. Add a test for many such labels, where the column
10515 numbers are out-of-order relative to the insertion order.
10517 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10519 * config/i386/i386.h (ix86_frame::expensive_p): New field.
10520 (ix86_frame::expensive_count): Likewise.
10521 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
10522 of use_fast_prologue_epilogue robust against incidental changes
10525 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
10528 * config/s390/vector.md (vec_unordered<mode>): Call
10529 gen_vec_ordered<mode>.
10531 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
10533 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
10534 New pattern for ASRD.
10535 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
10536 * internal-fn.def (IFN_DIV_POW2): New internal function.
10537 * optabs.def (sdiv_pow2_optab): New optab.
10538 * tree-vect-patterns.c (vect_recog_divmod_pattern):
10539 Modify pattern to support new operation.
10540 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
10541 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
10542 Document new target selector.
10544 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10546 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
10547 to test whether we're compiling a vector PCS function and to test
10548 whether the function needs to save a particular register.
10549 Remove the vector PCS handling of df_set_regs_ever_live.
10550 (aarch64_components_for_bb): Use crtl->abi to test whether
10551 the function needs to save a particular register.
10552 (aarch64_process_components): Use crtl->abi to test whether
10553 we're compiling a vector PCS function.
10554 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
10555 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
10557 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10559 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
10561 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
10562 whether the block calls a function that clobbers more registers
10563 than the current function is allowed to.
10564 (aarch64_use_simple_return_insn_p): Delete.
10565 * config/aarch64/aarch64.md (simple_return): Remove condition.
10567 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10569 * function-abi.h (function_abi_aggregator): New class.
10570 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
10572 * ira.c (update_equiv_regs_prescan): New function. Call
10573 set_paradoxical_subreg here rather than...
10574 (update_equiv_regs): ...here.
10575 (ira): Call update_equiv_regs_prescan.
10577 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10579 * hard-reg-set.h (regs_invalidated_by_call): Only define if
10581 (call_used_or_fixed_regs): Likewise.
10582 (call_used_or_fixed_reg_p): Likewise.
10583 * reginfo.c (regs_invalidated_by_call): New macro.
10585 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10587 * shrink-wrap.c: Include function-abi.h.
10588 (requires_stack_frame_p): Use crtl->abi to test whether the
10589 current function can use a register without saving it first.
10591 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10593 * sel-sched-ir.h (_def::crosses_call): Replace with...
10594 (_def::crossed_call_abis): ..this new field.
10595 (def_list_add): Take a mask of ABIs instead of a crosses_call
10597 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
10598 of _def accordingly.
10599 * sel-sched.c: Include function-abi.h.
10600 (hard_regs_data::regs_for_call_clobbered): Delete.
10601 (reg_rename::crosses_call): Replace with...
10602 (reg_rename::crossed_call_abis): ...this new field.
10603 (fur_static_params::crosses_call): Replace with...
10604 (fur_static_params::crossed_call_abis): ...this new field.
10605 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
10606 (init_hard_regs_data): Use crtl->abi to test which registers the
10607 current function would need to save before it uses them.
10608 (mark_unavailable_hard_regs): Update handling of call-clobbered
10609 registers, using call_clobbers_in_region to find out which registers
10610 might be call-clobbered (but without taking -fipa-ra into account
10611 for now). Remove separate handling of partially call-clobbered
10613 (verify_target_availability): Use crossed_call_abis instead of
10615 (get_spec_check_type_for_insn, find_used_regs): Likewise.
10616 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
10618 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10620 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
10621 function to test whether a register is fully or partly clobbered.
10623 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10625 * rtlanal.c: Include function-abi.h.
10626 (reg_set_p): Use insn_callee_abi to get the ABI of the called
10627 function and clobbers_reg_p to test whether the register
10629 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
10630 to get the ABI of the called function and full_reg_clobbers to
10631 get the set of fully call-clobbered registers. Warn about the
10632 pitfalls of using this mode.
10634 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10636 * reload.c: Include function-abi.h.
10637 (find_equiv_reg): Use clobbers_reg_p to test whether either
10638 of the equivalent registers is clobbered by a call.
10639 * reload1.c: Include function-abi.h.
10640 (reg_reloaded_call_part_clobbered): Delete.
10641 (reload): Use crtl->abi to test which registers would need
10642 saving in the prologue before use.
10643 (find_reg): Likewise.
10644 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
10645 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
10646 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
10648 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10650 * regrename.h (du_head::call_clobber_mask): New field.
10651 (du_head::need_caller_save_reg): Replace with...
10652 (du_head::call_abis): ...this new field.
10653 * regrename.c: Include function-abi.h.
10654 (call_clobbered_in_chain_p): New function.
10655 (check_new_reg_p): Use crtl->abi when deciding whether a register
10656 is free for use after RA. Use call_clobbered_in_chain_p to test
10657 whether a candidate register would be clobbered by a call.
10658 (find_rename_reg): Don't add call-clobber conflicts here.
10659 (rename_chains): Check call_abis instead of need_caller_save_reg.
10660 (merge_chains): Update for changes to du_head.
10661 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
10662 target. Record the ABI identifier in call_abis and the set of
10663 fully or partially clobbered registers in call_clobber_mask.
10664 Add fully-clobbered registers to hard_conflicts here rather
10665 than in find_rename_reg.
10666 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
10667 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
10668 * config/aarch64/falkor-tag-collision-avoidance.c: Include
10670 * config/c6x/c6x.c: Likewise.
10672 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10674 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
10675 mode of the register when deciding whether it is no longer
10676 available after a call.
10678 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10680 * recog.c: Include function-abi.h.
10681 (peep2_find_free_register): Use crtl->abi when deciding whether
10682 a register is free for use after RA.
10684 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10686 * postreload-gcse.c: Include regs.h and function-abi.h.
10687 (record_opr_changes): Use insn_callee_abi to get the ABI of the
10688 call insn target. Conservatively assume that partially-clobbered
10689 registers are altered.
10691 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10693 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
10694 when deciding whether a register is free for use after RA.
10695 (reload_combine): Remove unnecessary use of fixed_reg_set.
10696 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
10697 call insn target. Use reg_mode when testing whether a register
10698 is no longer available.
10700 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10702 * target.def (return_call_with_max_clobbers): Delete.
10703 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10704 * doc/tm.texi: Regenerate.
10705 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
10706 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
10707 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
10708 (lra_reg::call_insn): Delete.
10709 * lra.c: Include function-abi.h.
10710 (initialize_lra_reg_info_element): Don't initialize the fields above.
10711 (lra): Use crtl->abi to test whether the current function needs to
10712 save a register in the prologue. Remove special pre-inheritance
10713 lra_create_live_ranges pass for flag_ipa_ra.
10714 * lra-assigns.c: Include function-abi.h
10715 (find_hard_regno_for_1): Use crtl->abi to test whether the current
10716 function needs to save a register in the prologue.
10717 (lra_assign): Assert that registers aren't allocated to a
10718 conflicting register, rather than checking only for overlaps
10719 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
10720 and for registers that are not live across a call.
10721 * lra-constraints.c (last_call_for_abi): New variable.
10722 (full_and_partial_call_clobbers): Likewise.
10723 (setup_next_usage_insn): Remove the register from
10724 full_and_partial_call_clobbers.
10725 (need_for_call_save_p): Use call_clobbered_in_region_p to test
10726 whether the register needs a caller save.
10727 (need_for_split_p): Use full_and_partial_reg_clobbers instead
10728 of call_used_or_fixed_regs.
10729 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
10730 full_and_partial_call_clobbers.
10731 * lra-lives.c (check_pseudos_live_through_calls): Replace
10732 last_call_used_reg_set and call_insn arguments with an abi argument.
10733 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
10734 as the set of conflicting registers.
10735 (calls_have_same_clobbers_p): Delete.
10736 (process_bb_lives): Track the ABI of the last call instead of an
10737 insn/HARD_REG_SET pair. Update calls to
10738 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
10739 the set of registers that could be clobbered by an EH edge.
10740 Include partially-clobbered as well as fully-clobbered registers.
10741 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
10742 * lra-remat.c: Include function-abi.h.
10743 (call_used_regs_arr_len, call_used_regs_arr): Delete.
10744 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
10745 registers and bitmap_view to combine them into dead_regs.
10746 (call_used_input_regno_present_p): Take a function_abi argument
10747 and use it to test whether a register is call-clobbered.
10748 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
10749 call insn target. Update tje call to call_used_input_regno_present_p.
10750 (do_remat): Likewise.
10751 (lra_remat): Remove the initialization of call_used_regs_arr_len
10752 and call_used_regs_arr.
10754 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10756 * loop-iv.c: Include regs.h and function-abi.h.
10757 (simplify_using_initial_values): Use insn_callee_abi to get the
10758 ABI of the call insn target. Conservatively assume that
10759 partially-clobbered registers are altered.
10761 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10763 * function-abi.h (call_clobbers_in_region): Declare.
10764 (call_clobbered_in_region_p): New function.
10765 * function-abi.cc (call_clobbers_in_region): Likewise.
10766 * ira-int.h: Include function-abi.h.
10767 (ira_allocno::crossed_calls_abis): New field.
10768 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
10769 (ira_need_caller_save_regs): New function.
10770 (ira_need_caller_save_p): Likewise.
10771 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
10772 of call_used_or_fixed_regs.
10773 (do_reload): Use crtl->abi to test whether the current function
10774 needs to save a register in the prologue. Count registers that
10775 need to be saved rather than registers that don't.
10776 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
10777 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10778 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
10779 (propagate_some_info_from_allocno): Likewise.
10780 (copy_info_to_removed_store_destinations): Likewise.
10781 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
10782 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
10783 (ira_build): Use ira_need_caller_save_regs instead of
10784 call_used_or_fixed_regs.
10785 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
10786 whether the current function would need to save a register
10788 (calculate_spill_cost): Likewise.
10789 (allocno_reload_assign): Use ira_need_caller_save_regs and
10790 ira_need_caller_save_p instead of call_used_or_fixed_regs.
10791 * ira-conflicts.c (ira_build_conflicts): Use
10792 ira_need_caller_save_regs rather than call_used_or_fixed_regs
10793 as the set of call-clobbered registers. Remove the
10794 call_used_or_fixed_regs mask from the calculation of
10795 temp_hard_reg_set and mask its use instead. Remove special
10796 handling of partially-clobbered registers.
10797 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
10798 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
10799 calculate the set of conflicting registers for calls that
10800 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
10801 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
10802 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
10803 Use eh_edge_abi to calculate the set of registers that could
10804 be clobbered by an EH edge. Include partially-clobbered as
10805 well as fully-clobbered registers.
10807 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10809 * haifa-sched.c: Include function-abi.h.
10810 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
10811 the function would need to save a register before using it.
10813 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10815 * gcse.c: Include function-abi.h.
10816 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
10817 the call insn target. Invalidate partially call-clobbered
10818 registers as well as fully call-clobbered ones.
10820 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10822 * function.c (aggregate_value_p): Work out which ABI the
10823 function is using before testing which registers are at least
10824 partly preserved by a call.
10826 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10828 * early-remat.c: Include regs.h and function-abi.h.
10829 (early_remat::maybe_add_candidate): Don't check for call-clobbered
10831 (early_remat::restrict_remat_for_unavail_regs): New function.
10832 (early_remat::restrict_remat_for_call): Likewise.
10833 (early_remat::process_block): Before calling emit_remat_insns
10834 for a previous call in the block, invalidate any candidates
10835 that would clobber call-preserved registers.
10836 (early_remat::emit_remat_insns_for_block): Likewise for the
10837 final call in a block. Do the same thing for live-in registers
10838 when calling emit_remat_insns at the head of a block.
10840 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10842 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
10843 whether the current function needs to save at least part of a
10844 register before using it.
10845 (df_get_exit_block_use_set): Likewise for epilogue restores.
10847 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10849 * df-problems.c: Include regs.h and function-abi.h.
10850 (df_rd_problem_data): Rename sparse_invalidated_by_call to
10851 sparse_invalidated_by_eh and dense_invalidated_by_call to
10852 dense_invalidated_by_eh.
10853 (df_print_bb_index): Update accordingly.
10854 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
10855 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
10856 that are clobbered by an EH edge. Clobber partially-clobbered
10857 registers as well as fully-clobbered ones.
10858 (df_md_confluence_n): Likewise.
10859 (df_rd_local_compute): Likewise. Update for changes to
10860 df_rd_problem_data.
10861 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
10862 of registers that are clobbered by an EH edge. Includde partially-
10863 clobbered registers as well as fully-clobbered ones.
10865 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10867 * cselib.c (cselib_process_insn): If we know what mode a
10868 register was set in, check whether it is clobbered in that
10869 mode by a call. Only fall back to reg_raw_mode if that fails.
10871 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10873 * cse.c: Include regs.h and function-abi.h.
10874 (invalidate_for_call): Take the call insn as an argument.
10875 Use insn_callee_abi to get the ABI of the call and invalidate
10876 partially clobbered registers as well as fully clobbered ones.
10877 (cse_insn): Update call accordingly.
10879 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10881 * combine.c: Include function-abi.h.
10882 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
10883 of the target of call insns. Invalidate partially-clobbered
10884 registers as well as fully-clobbered ones.
10886 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10888 * cfgloopanal.c: Include regs.h and function-abi.h.
10889 (init_set_costs): Use default_function_abi to test whether
10890 a general register is call-clobbered.
10892 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10894 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
10895 instead of the call-clobbered sets.
10897 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10899 * caller-save.c (setup_save_areas): Remove redundant |s of
10901 (save_call_clobbered_regs): Likewise. Use the call ABI rather
10902 than call_used_or_fixed_regs to decide whether a REG_RETURNED
10905 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10907 * rtl.h (predefined_function_abi): Declare.
10908 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10909 instead of a boolean call_save flag.
10910 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
10912 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10913 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10914 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
10915 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10916 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
10917 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
10918 * reginfo.c (init_reg_modes_target): Likewise.
10919 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
10920 instead of a boolean call_save flag.
10921 * targhooks.c: Include function-abi.h.
10922 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
10923 using eh_edge_abi to choose the mode.
10925 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10927 * target.def (hard_regno_call_part_clobbered): Take an ABI
10928 identifier instead of an rtx_insn.
10929 * doc/tm.texi: Regenerate.
10930 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
10931 (hook_bool_uint_uint_mode_false): New function.
10932 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
10933 (hook_bool_uint_uint_mode_false): New function.
10934 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
10935 Take an ABI identifier instead of an rtx_insn.
10936 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
10937 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
10938 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
10939 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
10940 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
10942 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
10943 * cselib.c: Include function-abi.h.
10944 (cselib_process_insn): Update call to
10945 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10946 to get the appropriate ABI identifier.
10947 * function-abi.cc (predefined_function_abi::initialize): Update call
10948 to targetm.hard_regno_call_part_clobbered.
10949 * ira-conflicts.c (ira_build_conflicts): Likewise.
10950 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10951 * lra-constraints.c: Include function-abi.h.
10952 (need_for_call_save_p): Update call to
10953 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10954 to get the appropriate ABI identifier.
10955 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10956 * regcprop.c (copyprop_hardreg_forward_1): Update call
10957 to targetm.hard_regno_call_part_clobbered.
10958 * reginfo.c (choose_hard_reg_mode): Likewise.
10959 * regrename.c (check_new_reg_p): Likewise.
10960 * reload.c (find_equiv_reg): Likewise.
10961 * reload1.c (emit_reload_insns): Likewise.
10962 * sched-deps.c: Include function-abi.h.
10963 (deps_analyze_insn): Update call to
10964 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
10965 to get the appropriate ABI identifier.
10966 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
10967 call to targetm.hard_regno_call_part_clobbered.
10968 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
10970 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10972 * config/i386/i386.c: Include function-abi.h.
10973 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
10974 if they preserve some 256-bit or 512-bit SSE registers.
10976 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
10978 * target.def (insn_callee_abi): New hook.
10979 (remove_extra_call_preserved_regs): Delete.
10980 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
10981 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10982 * doc/tm.texi: Regenerate.
10983 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
10984 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
10985 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
10987 (aarch64_remove_extra_call_preserved_regs): Delete.
10988 (aarch64_insn_callee_abi): New function.
10989 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
10990 (TARGET_INSN_CALLEE_ABI): New macro.
10991 * rtl.h (get_call_fndecl): Declare.
10992 (cgraph_rtl_info): Fix formatting. Tweak comment for
10993 function_used_regs. Remove function_used_regs_valid.
10994 * rtlanal.c (get_call_fndecl): Moved from final.c
10995 * function-abi.h (insn_callee_abi): Declare.
10996 (target_function_abi_info): Mention insn_callee_abi.
10997 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
10998 way to get_call_reg_set_usage did.
10999 (insn_callee_abi): New function.
11000 * regs.h (get_call_reg_set_usage): Delete.
11001 * final.c: Include function-abi.h.
11002 (collect_fn_hard_reg_usage): Add fixed and stack registers to
11003 function_used_regs before the main loop rather than afterwards.
11004 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
11005 if function_used_regs ends up not being useful.
11006 (get_call_fndecl): Move to rtlanal.c
11007 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
11008 * caller-save.c: Include function-abi.h.
11009 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
11010 instead of get_call_reg_set_usage.
11011 * cfgcleanup.c: Include function-abi.h.
11012 (old_insns_match_p): Use insn_callee_abi instead of
11013 get_call_reg_set_usage.
11014 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
11016 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
11017 function_used_regs.
11018 * df-scan.c: Include function-abi.h.
11019 (df_get_call_refs): Use insn_callee_abi instead of
11020 get_call_reg_set_usage.
11021 * ira-lives.c: Include function-abi.h.
11022 (process_bb_node_lives): Use insn_callee_abi instead of
11023 get_call_reg_set_usage.
11024 * lra-lives.c: Include function-abi.h.
11025 (process_bb_lives): Use insn_callee_abi instead of
11026 get_call_reg_set_usage.
11027 * postreload.c: Include function-abi.h.
11028 (reload_combine): Use insn_callee_abi instead of
11029 get_call_reg_set_usage.
11030 * regcprop.c: Include function-abi.h.
11031 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
11032 get_call_reg_set_usage.
11033 * resource.c: Include function-abi.h.
11034 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
11035 instead of get_call_reg_set_usage.
11036 * var-tracking.c: Include function-abi.h.
11037 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
11038 get_call_reg_set_usage.
11040 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11042 * target.def (fntype_abi): New target hook.
11043 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
11044 * doc/tm.texi: Regenerate.
11045 * target.h (predefined_function_abi): Declare.
11046 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
11048 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
11049 * config/aarch64/aarch64.c: Include function-abi.h.
11050 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
11051 (TARGET_FNTYPE_ABI): Define.
11053 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11055 * Makefile.in (OBJS): Add function-abi.o.
11056 (GTFILES): Add function-abi.h.
11057 * function-abi.cc: New file.
11058 * function-abi.h: Likewise.
11059 * emit-rtl.h (rtl_data::abi): New field.
11060 * function.c: Include function-abi.h.
11061 (prepare_function_start): Initialize crtl->abi.
11062 * read-rtl-function.c: Include regs.h and function-abi.h.
11063 (read_rtl_function_body): Initialize crtl->abi.
11064 (read_rtl_function_body_from_file_range): Likewise.
11065 * reginfo.c: Include function-abi.h.
11066 (init_reg_sets_1): Initialize default_function_abi.
11067 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
11068 when making a register global.
11069 * target-globals.h (this_target_function_abi_info): Declare.
11070 (target_globals::function_abi_info): New field.
11071 (restore_target_globals): Copy it.
11072 * target-globals.c: Include function-abi.h.
11073 (default_target_globals): Initialize the function_abi_info field.
11074 (target_globals): Allocate it.
11075 (save_target_globals): Free it.
11077 2019-09-30 Nick Clifton <nickc@redhat.com>
11080 * config/frv/frv.c (frv_register_move_cost): Add break statements
11081 to avoid falling through to the wrong cases. Tidy code.
11083 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
11085 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
11086 For multi-registers modes, test how big each register part is.
11088 2019-09-30 Nick Clifton <nickc@redhat.com>
11091 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
11092 (TARGET_ASM_SELECT_SECTION): Remove definition.
11093 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
11095 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
11097 * emit-rtl.c (init_raw_REG): New function.
11098 (gen_raw_REG): Use init_raw_REG.
11099 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
11101 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
11102 * rtl.h (rtx_init): New function.
11103 (rtx_alloca): New function.
11104 (init_raw_REG): New function.
11105 (alloca_raw_REG): New macro.
11107 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
11109 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
11110 (pcrel_local_address): Replace pcrel_address predicate, use the
11111 new function address_to_insn_form.
11112 (pcrel_external_address): Replace with new implementation using
11113 address_to_insn_form..
11114 (prefixed_mem_operand): Delete predicate which is now unused.
11115 (pcrel_external_mem_operand): Delete predicate which is now
11117 * config/rs6000/rs6000-protos.h (enum insn_form): New
11119 (enum non_prefixed_form): New enumeration.
11120 (address_to_insn_form): New declaration.
11121 (prefixed_load_p): New declaration.
11122 (prefixed_store_p): New declaration.
11123 (prefixed_paddi_p): New declaration.
11124 (rs6000_asm_output_opcode): New declaration.
11125 (rs6000_final_prescan_insn): Move declaration and update calling
11127 (address_is_prefixed): New helper inline function.
11128 * config/rs6000/rs6000.c(print_operand_address): Check for either
11129 PC-relative local symbols or PC-relative external symbols.
11130 (rs6000_emit_move): Support loading PC-relative addresses.
11131 (mode_supports_prefixed_address_p): Delete, no longer used.
11132 (rs6000_prefixed_address_mode_p): Delete, no longer used.
11133 (address_to_insn_form): New function to decode an address format.
11134 (reg_to_non_prefixed): New function to identify what the
11135 non-prefixed memory instruction format is for a register.
11136 (prefixed_load_p): New function to identify prefixed loads.
11137 (prefixed_store_p): New function to identify prefixed stores.
11138 (prefixed_paddi_p): New function to identify prefixed load
11140 (next_insn_prefixed_p): New static state variable.
11141 (rs6000_final_prescan_insn): New function to determine if an insn
11142 uses a prefixed instruction.
11143 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
11144 prefixed instruction.
11145 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
11146 (ASM_OUTPUT_OPCODE): New target hook.
11147 * config/rs6000/rs6000.md (prefixed): New insn attribute for
11148 prefixed instructions.
11149 (prefixed_length): New insn attribute for the size of prefixed
11151 (non_prefixed_length): New insn attribute for the size of
11152 non-prefixed instructions.
11153 (pcrel_local_addr): New insn to load up a local PC-relative
11155 (pcrel_extern_addr): New insn to load up an external PC-relative
11157 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
11158 GPR and loading a 128-bit floating point type to a GPR.
11160 2019-09-30 Richard Biener <rguenther@suse.de>
11162 * gimple.c (gimple_get_lhs): For PHIs return the result.
11163 * tree-vectorizer.h (vectorizable_live_operation): Also get the
11164 SLP instance as argument.
11165 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
11166 double-reduction PHIs with vectorizable_lc_phi.
11167 (vect_analyze_loop_operations): Adjust.
11168 (vect_create_epilog_for_reduction): Remove all code not dealing
11169 with reduction LC PHI or epilogue generation.
11170 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
11171 for live stmts of reductions.
11172 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
11173 do not handle defs that are not vect_internal_def.
11174 (can_vectorize_live_stmts): Adjust.
11175 (vect_analyze_stmt): When the vectorized stmt defined a value
11176 used on backedges adjust the backedge uses of vectorized PHIs.
11178 2019-09-30 Martin Jambor <mjambor@suse.cz>
11181 * tree-inline.c (force_value_to_type): New function.
11182 (setup_one_parameter): Use force_value_to_type to convert type.
11183 * tree-inline.c (force_value_to_type): Declare.
11184 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
11185 with register type mismatches.
11187 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
11189 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
11191 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
11192 * config/rs6000/t-freebsd64: Make use of the above define and build
11193 the 32-bit libraries with secure-plt.
11195 2019-09-30 Jakub Jelinek <jakub@redhat.com>
11198 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
11199 gen_int_mode instead of GEN_INT.
11201 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
11203 * config/darwin.c (gen_macho_low): Amend to include the mode
11205 (machopic_indirect_data_reference): Amend gen_macho_low call
11206 to include mode argument
11207 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
11208 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
11209 the macho_high expander and two define_insn entries.
11211 2019-09-29 Jakub Jelinek <jakub@redhat.com>
11214 * optc-save-gen.awk: Fix up printing string option differences.
11216 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11218 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
11219 vec_perm cost to 1 for non-Power7 VSX architectures.
11221 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
11223 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
11224 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
11225 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
11227 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
11229 * config/darwin.c (gen_macho_high): Amend to include the mode
11231 (machopic_indirect_data_reference): Amend gen_macho_high call
11232 to include mode argument.
11233 (machopic_legitimize_pic_address): Likewise.
11234 * config/rs6000/rs6000.c (rs6000_legitimize_address):
11235 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
11236 the macho_high expander and two define_insn entries.
11238 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11241 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
11243 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
11246 * config/sh/sh.c (parse_validate_atomic_model_option): Use
11247 std::string::compare instead of std::string::find.
11249 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
11251 * configure: Regenerate.
11253 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11255 PR middle-end/91920
11256 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
11257 variables as shared.
11259 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
11261 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
11262 replaces the expander and two define_insn entries.
11263 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
11265 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
11267 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11269 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
11270 (fibonacci_heap::nodes): Likewise.
11271 (fibonacci_heap::min_key): Likewise.
11272 (fibonacci_heap::min): Likewise.
11274 2019-09-27 David Malcolm <dmalcolm@redhat.com>
11276 * cgraph.c (cgraph_node::get_fun): Make const.
11277 * cgraph.h (cgraph_node::get_fun): Likewise.
11279 2019-09-27 Jakub Jelinek <jakub@redhat.com>
11282 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
11285 2019-09-27 Richard Biener <rguenther@suse.de>
11287 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
11288 (STMT_VINFO_REDUC_FN): Likewise.
11289 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
11290 STMT_VINFO_REDUC_FN.
11291 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
11292 for condition reductions.
11293 (vect_create_epilog_for_reduction): Compute all required state
11294 from the stmt to be vectorized.
11295 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
11296 invocation and remove then dead code. For single def-use chains
11297 record only a single vector stmt.
11299 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11301 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
11302 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
11303 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
11304 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
11305 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
11306 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
11307 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
11308 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
11309 (aarch64_general_builtin_rsqrt): Declare.
11310 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
11312 (aarch64_mangle_builtin_type): Rename to...
11313 (aarch64_general_mangle_builtin_type): ...this.
11314 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
11315 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
11316 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
11317 aarch64_general_add_builtin instead of add_builtin_function.
11318 (aarch64_init_builtins): Rename to...
11319 (aarch64_general_init_builtins): ...this. Use
11320 aarch64_general_add_builtin instead of add_builtin_function.
11321 (aarch64_builtin_decl): Rename to...
11322 (aarch64_general_builtin_decl): ...this and remove the unused
11324 (aarch64_expand_builtin): Rename to...
11325 (aarch64_general_expand_builtin): ...this and remove the unused
11327 (aarch64_builtin_rsqrt): Rename to...
11328 (aarch64_general_builtin_rsqrt): ...this.
11329 (aarch64_fold_builtin): Rename to...
11330 (aarch64_general_fold_builtin): ...this. Take the function subcode
11331 and return type as arguments. Remove the "ignored" argument.
11332 (aarch64_gimple_fold_builtin): Rename to...
11333 (aarch64_general_gimple_fold_builtin): ...this. Take the function
11334 subcode and gcall as arguments, and return the new function call.
11335 * config/aarch64/aarch64.c (aarch64_init_builtins)
11336 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
11337 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
11338 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
11339 instead of aarch64_builtin_rsqrt.
11340 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
11341 instead of aarch64_mangle_builtin_type.
11343 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11345 * target.def (check_builtin_call): New target hook.
11346 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
11347 * doc/tm.texi: Regenerate.
11349 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
11351 PR tree-optimization/91909
11352 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
11353 reduc_index parameter. When handling COND_REDUCTION, make sure
11354 that the reduction phi operand is in the correct arm of the
11356 (vectorizable_reduction): Pass reduc_index to the above.
11358 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
11360 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
11361 New combine pattern.
11363 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
11365 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
11366 loop instruction into new basic block before the loop when basic
11367 block that precedes the loop is empty.
11369 2019-09-26 Jakub Jelinek <jakub@redhat.com>
11371 * function.c (gimplify_parameters): Use build_clobber function.
11372 * tree-ssa.c (execute_update_addresses_taken): Likewise.
11373 * tree-inline.c (expand_call_inline): Likewise.
11374 * tree-sra.c (clobber_subtree): Likewise.
11375 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
11376 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
11377 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
11378 lower_omp_target): Likewise.
11379 * omp-expand.c (expand_omp_for_generic): Likewise.
11380 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
11382 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
11384 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
11385 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
11386 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
11387 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
11388 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
11389 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
11390 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
11391 LD_ELEMREV_V16QI): Use the PURE attribute.
11393 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
11395 * config/rs6000/darwin.md: Replace the expanders for
11396 load_macho_picbase and reload_macho_picbase with use of '@'
11397 and <mode> in their respective define_insns.
11398 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
11399 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
11400 Pmode to gen_load_macho_picbase.
11401 * config/rs6000/rs6000.md: Likewise.
11403 2019-09-25 Richard Biener <rguenther@suse.de>
11405 PR tree-optimization/91896
11406 * tree-vect-loop.c (vectorizable_reduction): The single
11407 def-use cycle optimization cannot apply when there's more
11408 than one pattern stmt involved.
11410 2019-09-26 Richard Biener <rguenther@suse.de>
11412 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
11413 loop-closed PHIs that are vect_internal_def.
11414 (vect_create_epilog_for_reduction): Exit early for nested cycles.
11416 (vectorizable_lc_phi): New.
11417 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
11418 (vect_transform_stmt): Likewise.
11419 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
11420 (vectorizable_lc_phi): Declare.
11422 2019-09-26 Richard Biener <rguenther@suse.de>
11424 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
11425 vectorizable_reduction for vect_double_reduction_def.
11426 (vect_transform_loop): Likewise.
11427 (vect_create_epilog_for_reduction): Move double-reduction
11428 PHI creation and preheader argument setting of PHIs ...
11429 (vectorizable_reduction): ... here. Also process
11430 vect_double_reduction_def PHIs, creating the vectorized
11431 PHI nodes, remembering the scalar adjustment computed for
11432 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
11433 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
11434 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
11435 Initialize STMT_VINFO_REDUC_CODE.
11436 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
11437 (_stmt_vec_info::reduc_code): Likewise.
11438 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
11439 (STMT_VINFO_REDUC_CODE): Likewise.
11441 2019-09-26 Matt Turner <mattst88@gmail.com>
11444 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
11445 (mtune=): Add Negative(mtune=).
11446 (mcpu=): Add Negative(mcpu=).
11447 * config/arm/arm.opt: Likewise.
11449 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11451 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11452 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
11454 * config/arm/arm_acle.h: Define builtins for the above.
11455 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
11456 (simd32_op): Handle the above.
11457 * config/arm/unspecs.md: Define unspecs for the above.
11459 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11461 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
11462 (arm_<sup>xtb16): Likewise.
11463 (arm_usada8): Likewise.
11464 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
11465 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
11466 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
11467 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
11468 __sxtb16, __uxtab16, __uxtb16): Define.
11469 * config/arm/arm_acle_builtins.def: Define builtins for the above.
11470 * config/arm/unspecs.md: Define unspecs for the above.
11471 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
11472 (USXTB16): Likewise.
11473 (simd32_op): New int_attribute.
11474 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
11475 * doc/sourcebuild.exp (arm_simd32_ok): Document.
11477 2019-09-26 Martin Jambor <mjambor@suse.cz>
11479 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
11482 2019-09-26 Martin Jambor <mjambor@suse.cz>
11484 * ipa-sra.c (process_scan_results): Fix continue condition.
11486 2019-09-26 Martin Liska <mliska@suse.cz>
11488 PR tree-optimization/91885
11489 * tree-vectorizer.c (try_vectorize_loop_1): Add
11490 TODO_update_ssa_only_virtuals similarly to what slp pass does.
11492 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
11494 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
11495 aarch64_plus_immediate rather than aarch64_uimm12_shift
11496 to test for valid PLUS immediates.
11498 2019-09-25 Martin Jambor <mjambor@suse.cz>
11500 * tree-sra.c (no_accesses_p): Remove.
11501 (no_accesses_representant): Likewise.
11503 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11505 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
11507 (vaba_s16): Likewise.
11508 (vaba_s32): Likewise.
11509 (vaba_u8): Likewise.
11510 (vaba_u16): Likewise.
11511 (vaba_u32): Likewise.
11512 (vabal_high_s8): Likewise.
11513 (vabal_high_s16): Likewise.
11514 (vabal_high_s32): Likewise.
11515 (vabal_high_u8): Likewise.
11516 (vabal_high_u16): Likewise.
11517 (vabal_high_u32): Likewise.
11518 (vabal_s8): Likewise.
11519 (vabal_s16): Likewise.
11520 (vabal_s32): Likewise.
11521 (vabal_u8): Likewise.
11522 (vabal_u16): Likewise.
11523 (vabal_u32): Likewise.
11524 (vabaq_s8): Likewise.
11525 (vabaq_s16): Likewise.
11526 (vabaq_s32): Likewise.
11527 (vabaq_u8): Likewise.
11528 (vabaq_u16): Likewise.
11529 (vabaq_u32): Likewise.
11530 (vabd_s8): Likewise.
11531 (vabd_s16): Likewise.
11532 (vabd_s32): Likewise.
11533 (vabd_u8): Likewise.
11534 (vabd_u16): Likewise.
11535 (vabd_u32): Likewise.
11536 (vabdl_high_s8): Likewise.
11537 (vabdl_high_s16): Likewise.
11538 (vabdl_high_s32): Likewise.
11539 (vabdl_high_u8): Likewise.
11540 (vabdl_high_u16): Likewise.
11541 (vabdl_high_u32): Likewise.
11542 (vabdl_s8): Likewise.
11543 (vabdl_s16): Likewise.
11544 (vabdl_s32): Likewise.
11545 (vabdl_u8): Likewise.
11546 (vabdl_u16): Likewise.
11547 (vabdl_u32): Likewise.
11548 (vabdq_s8): Likewise.
11549 (vabdq_s16): Likewise.
11550 (vabdq_s32): Likewise.
11551 (vabdq_u8): Likewise.
11552 (vabdq_u16): Likewise.
11553 (vabdq_u32): Likewise.
11554 (vaddlv_s8): Likewise.
11555 (vaddlv_s16): Likewise.
11556 (vaddlv_u8): Likewise.
11557 (vaddlv_u16): Likewise.
11558 (vaddlvq_s8): Likewise.
11559 (vaddlvq_s16): Likewise.
11560 (vaddlvq_s32): Likewise.
11561 (vaddlvq_u8): Likewise.
11562 (vaddlvq_u16): Likewise.
11563 (vaddlvq_u32): Likewise.
11564 (vcvtx_f32_f64): Likewise.
11565 (vcvtx_high_f32_f64): Likewise.
11566 (vcvtxd_f32_f64): Likewise.
11567 (vmla_n_f32): Likewise.
11568 (vmla_n_s16): Likewise.
11569 (vmla_n_s32): Likewise.
11570 (vmla_n_u16): Likewise.
11571 (vmla_n_u32): Likewise.
11572 (vmla_s8): Likewise.
11573 (vmla_s16): Likewise.
11574 (vmla_s32): Likewise.
11575 (vmla_u8): Likewise.
11576 (vmla_u16): Likewise.
11577 (vmla_u32): Likewise.
11578 (vmlal_high_n_s16): Likewise.
11579 (vmlal_high_n_s32): Likewise.
11580 (vmlal_high_n_u16): Likewise.
11581 (vmlal_high_n_u32): Likewise.
11582 (vmlal_high_s8): Likewise.
11583 (vmlal_high_s16): Likewise.
11584 (vmlal_high_s32): Likewise.
11585 (vmlal_high_u8): Likewise.
11586 (vmlal_high_u16): Likewise.
11587 (vmlal_high_u32): Likewise.
11588 (vmlal_n_s16): Likewise.
11589 (vmlal_n_s32): Likewise.
11590 (vmlal_n_u16): Likewise.
11591 (vmlal_n_u32): Likewise.
11592 (vmlal_s8): Likewise.
11593 (vmlal_s16): Likewise.
11594 (vmlal_s32): Likewise.
11595 (vmlal_u8): Likewise.
11596 (vmlal_u16): Likewise.
11597 (vmlal_u32): Likewise.
11598 (vmlaq_n_f32): Likewise.
11599 (vmlaq_n_s16): Likewise.
11600 (vmlaq_n_s32): Likewise.
11601 (vmlaq_n_u16): Likewise.
11602 (vmlaq_n_u32): Likewise.
11603 (vmlaq_s8): Likewise.
11604 (vmlaq_s16): Likewise.
11605 (vmlaq_s32): Likewise.
11606 (vmlaq_u8): Likewise.
11607 (vmlaq_u16): Likewise.
11608 (vmlaq_u32): Likewise.
11609 (vmls_n_f32): Likewise.
11610 (vmls_n_s16): Likewise.
11611 (vmls_n_s32): Likewise.
11612 (vmls_n_u16): Likewise.
11613 (vmls_n_u32): Likewise.
11614 (vmls_s8): Likewise.
11615 (vmls_s16): Likewise.
11616 (vmls_s32): Likewise.
11617 (vmls_u8): Likewise.
11618 (vmls_u16): Likewise.
11619 (vmls_u32): Likewise.
11620 (vmlsl_high_n_s16): Likewise.
11621 (vmlsl_high_n_s32): Likewise.
11622 (vmlsl_high_n_u16): Likewise.
11623 (vmlsl_high_n_u32): Likewise.
11624 (vmlsl_high_s8): Likewise.
11625 (vmlsl_high_s16): Likewise.
11626 (vmlsl_high_s32): Likewise.
11627 (vmlsl_high_u8): Likewise.
11628 (vmlsl_high_u16): Likewise.
11629 (vmlsl_high_u32): Likewise.
11630 (vmlsl_n_s16): Likewise.
11631 (vmlsl_n_s32): Likewise.
11632 (vmlsl_n_u16): Likewise.
11633 (vmlsl_n_u32): Likewise.
11634 (vmlsl_s8): Likewise.
11635 (vmlsl_s16): Likewise.
11636 (vmlsl_s32): Likewise.
11637 (vmlsl_u8): Likewise.
11638 (vmlsl_u16): Likewise.
11639 (vmlsl_u32): Likewise.
11640 (vmlsq_n_f32): Likewise.
11641 (vmlsq_n_s16): Likewise.
11642 (vmlsq_n_s32): Likewise.
11643 (vmlsq_n_u16): Likewise.
11644 (vmlsq_n_u32): Likewise.
11645 (vmlsq_s8): Likewise.
11646 (vmlsq_s16): Likewise.
11647 (vmlsq_s32): Likewise.
11648 (vmlsq_u8): Likewise.
11649 (vmlsq_u16): Likewise.
11650 (vmlsq_u32): Likewise.
11651 (vmovl_high_s8): Likewise.
11652 (vmovl_high_s16): Likewise.
11653 (vmovl_high_s32): Likewise.
11654 (vmovl_high_u8): Likewise.
11655 (vmovl_high_u16): Likewise.
11656 (vmovl_high_u32): Likewise.
11657 (vmovl_s8): Likewise.
11658 (vmovl_s16): Likewise.
11659 (vmovl_s32): Likewise.
11660 (vmovl_u8): Likewise.
11661 (vmovl_u16): Likewise.
11662 (vmovl_u32): Likewise.
11663 (vmovn_high_s16): Likewise.
11664 (vmovn_high_s32): Likewise.
11665 (vmovn_high_s64): Likewise.
11666 (vmovn_high_u16): Likewise.
11667 (vmovn_high_u32): Likewise.
11668 (vmovn_high_u64): Likewise.
11669 (vmovn_s16): Likewise.
11670 (vmovn_s32): Likewise.
11671 (vmovn_s64): Likewise.
11672 (vmovn_u16): Likewise.
11673 (vmovn_u32): Likewise.
11674 (vmovn_u64): Likewise.
11675 (vmull_high_n_s16): Likewise.
11676 (vmull_high_n_s32): Likewise.
11677 (vmull_high_n_u16): Likewise.
11678 (vmull_high_n_u32): Likewise.
11679 (vmull_high_p8): Likewise.
11680 (vmull_high_s8): Likewise.
11681 (vmull_high_s16): Likewise.
11682 (vmull_high_s32): Likewise.
11683 (vmull_high_u8): Likewise.
11684 (vmull_high_u16): Likewise.
11685 (vmull_high_u32): Likewise.
11686 (vmull_n_s16): Likewise.
11687 (vmull_n_s32): Likewise.
11688 (vmull_n_u16): Likewise.
11689 (vmull_n_u32): Likewise.
11690 (vmull_p8): Likewise.
11691 (vmull_s8): Likewise.
11692 (vmull_s16): Likewise.
11693 (vmull_s32): Likewise.
11694 (vmull_u8): Likewise.
11695 (vmull_u16): Likewise.
11696 (vmull_u32): Likewise.
11697 (vpadal_s8): Likewise.
11698 (vpadal_s16): Likewise.
11699 (vpadal_s32): Likewise.
11700 (vpadal_u8): Likewise.
11701 (vpadal_u16): Likewise.
11702 (vpadal_u32): Likewise.
11703 (vpadalq_s8): Likewise.
11704 (vpadalq_s16): Likewise.
11705 (vpadalq_s32): Likewise.
11706 (vpadalq_u8): Likewise.
11707 (vpadalq_u16): Likewise.
11708 (vpadalq_u32): Likewise.
11709 (vpaddl_s8): Likewise.
11710 (vpaddl_s16): Likewise.
11711 (vpaddl_s32): Likewise.
11712 (vpaddl_u8): Likewise.
11713 (vpaddl_u16): Likewise.
11714 (vpaddl_u32): Likewise.
11715 (vpaddlq_s8): Likewise.
11716 (vpaddlq_s16): Likewise.
11717 (vpaddlq_s32): Likewise.
11718 (vpaddlq_u8): Likewise.
11719 (vpaddlq_u16): Likewise.
11720 (vpaddlq_u32): Likewise.
11721 (vpaddq_s8): Likewise.
11722 (vpaddq_s16): Likewise.
11723 (vpaddq_s32): Likewise.
11724 (vpaddq_s64): Likewise.
11725 (vpaddq_u8): Likewise.
11726 (vpaddq_u16): Likewise.
11727 (vpaddq_u32): Likewise.
11728 (vpaddq_u64): Likewise.
11729 (vqdmulh_n_s16): Likewise.
11730 (vqdmulh_n_s32): Likewise.
11731 (vqdmulhq_n_s16): Likewise.
11732 (vqdmulhq_n_s32): Likewise.
11733 (vqmovn_high_s16): Likewise.
11734 (vqmovn_high_s32): Likewise.
11735 (vqmovn_high_s64): Likewise.
11736 (vqmovn_high_u16): Likewise.
11737 (vqmovn_high_u32): Likewise.
11738 (vqmovn_high_u64): Likewise.
11739 (vqmovun_high_s16): Likewise.
11740 (vqmovun_high_s32): Likewise.
11741 (vqmovun_high_s64): Likewise.
11742 (vqrdmulh_n_s16): Likewise.
11743 (vqrdmulh_n_s32): Likewise.
11744 (vqrdmulhq_n_s16): Likewise.
11745 (vqrdmulhq_n_s32): Likewise.
11746 (vrsqrte_u32): Likewise.
11747 (vrsqrteq_u32): Likewise.
11748 (vtst_p8): Likewise.
11749 (vtst_p16): Likewise.
11750 (vtst_p64): Likewise.
11751 (vtstq_p8): Likewise.
11752 (vtstq_p16): Likewise.
11753 (vtstq_p64): Likewise.
11754 (vaddlv_s32): Likewise.
11755 (vaddlv_u32): Likewise.
11756 (vqtbl1_p8): Likewise.
11757 (vqtbl1_s8): Likewise.
11758 (vqtbl1_u8): Likewise.
11759 (vqtbl1q_p8): Likewise.
11760 (vqtbl1q_s8): Likewise.
11761 (vqtbl1q_u8): Likewise.
11762 (vqtbx1_s8): Likewise.
11763 (vqtbx1_u8): Likewise.
11764 (vqtbx1_p8): Likewise.
11765 (vqtbx1q_s8): Likewise.
11766 (vqtbx1q_u8): Likewise.
11767 (vqtbx1q_p8): Likewise.
11768 (vtbl1_s8): Likewise.
11769 (vtbl1_u8): Likewise.
11770 (vtbl1_p8): Likewise.
11771 (vtbl2_s8): Likewise.
11772 (vtbl2_u8): Likewise.
11773 (vtbl2_p8): Likewise.
11774 (vtbl3_s8): Likewise.
11775 (vtbl3_u8): Likewise.
11776 (vtbl3_p8): Likewise.
11777 (vtbl4_s8): Likewise.
11778 (vtbl4_u8): Likewise.
11779 (vtbl4_p8): Likewise.
11780 (vtbx2_s8): Likewise.
11781 (vtbx2_u8): Likewise.
11782 (vtbx2_p8): Likewise.
11783 (vld1_f32): Likewise.
11784 (vld1_f64): Likewise.
11785 (vld1_p8): Likewise.
11786 (vld1_p16): Likewise.
11787 (vld1_p64): Likewise.
11788 (vld1_s8): Likewise.
11789 (vld1_s16): Likewise.
11790 (vld1_s32): Likewise.
11791 (vld1_s64): Likewise.
11792 (vld1_u8): Likewise.
11793 (vld1_u16): Likewise.
11794 (vld1_u32): Likewise.
11795 (vld1_u64): Likewise.
11796 (vld1q_f32): Likewise.
11797 (vld1q_f64): Likewise.
11798 (vld1q_p8): Likewise.
11799 (vld1q_p16): Likewise.
11800 (vld1q_p64): Likewise.
11801 (vld1q_s8): Likewise.
11802 (vld1q_s16): Likewise.
11803 (vld1q_s32): Likewise.
11804 (vld1q_s64): Likewise.
11805 (vld1q_u8): Likewise.
11806 (vld1q_u16): Likewise.
11807 (vld1q_u32): Likewise.
11808 (vld1q_u64): Likewise.
11809 (vpmax_s8): Likewise.
11810 (vpmax_s16): Likewise.
11811 (vpmax_s32): Likewise.
11812 (vpmax_u8): Likewise.
11813 (vpmax_u16): Likewise.
11814 (vpmax_u32): Likewise.
11815 (vpmaxq_s8): Likewise.
11816 (vpmaxq_s16): Likewise.
11817 (vpmaxq_s32): Likewise.
11818 (vpmaxq_u8): Likewise.
11819 (vpmaxq_u16): Likewise.
11820 (vpmaxq_u32): Likewise.
11821 (vpmax_f32): Likewise.
11822 (vpmaxq_f32): Likewise.
11823 (vpmaxq_f64): Likewise.
11824 (vpmaxqd_f64): Likewise.
11825 (vpmaxs_f32): Likewise.
11826 (vpmaxnm_f32): Likewise.
11827 (vpmaxnmq_f32): Likewise.
11828 (vpmaxnmq_f64): Likewise.
11829 (vpmaxnmqd_f64): Likewise.
11830 (vpmaxnms_f32): Likewise.
11831 (vpmin_s8): Likewise.
11832 (vpmin_s16): Likewise.
11833 (vpmin_s32): Likewise.
11834 (vpmin_u8): Likewise.
11835 (vpmin_u16): Likewise.
11836 (vpmin_u32): Likewise.
11837 (vpminq_s8): Likewise.
11838 (vpminq_s16): Likewise.
11839 (vpminq_s32): Likewise.
11840 (vpminq_u8): Likewise.
11841 (vpminq_u16): Likewise.
11842 (vpminq_u32): Likewise.
11843 (vpmin_f32): Likewise.
11844 (vpminq_f32): Likewise.
11845 (vpminq_f64): Likewise.
11846 (vpminqd_f64): Likewise.
11847 (vpmins_f32): Likewise.
11848 (vpminnm_f32): Likewise.
11849 (vpminnmq_f32): Likewise.
11850 (vpminnmq_f64): Likewise.
11851 (vpminnmqd_f64): Likewise.
11852 (vpminnms_f32): Likewise.
11853 (vmla_f32): Likewise.
11854 (vmlaq_f32): Likewise.
11855 (vmlaq_f64): Likewise.
11856 (vmls_f32): Likewise.
11857 (vmlsq_f32): Likewise.
11858 (vmlsq_f64): Likewise.
11859 (vqtbl2_s8): Likewise.
11860 (vqtbl2_u8): Likewise.
11861 (vqtbl2_p8): Likewise.
11862 (vqtbl2q_s8): Likewise.
11863 (vqtbl2q_u8): Likewise.
11864 (vqtbl2q_p8): Likewise.
11865 (vqtbl3_s8): Likewise.
11866 (vqtbl3_u8): Likewise.
11867 (vqtbl3_p8): Likewise.
11868 (vqtbl3q_s8): Likewise.
11869 (vqtbl3q_u8): Likewise.
11870 (vqtbl3q_p8): Likewise.
11871 (vqtbl4_s8): Likewise.
11872 (vqtbl4_u8): Likewise.
11873 (vqtbl4_p8): Likewise.
11874 (vqtbl4q_s8): Likewise.
11875 (vqtbl4q_u8): Likewise.
11876 (vqtbl4q_p8): Likewise.
11877 (vqtbx2_s8): Likewise.
11878 (vqtbx2_u8): Likewise.
11879 (vqtbx2_p8): Likewise.
11880 (vqtbx2q_s8): Likewise.
11881 (vqtbx2q_u8): Likewise.
11882 (vqtbx2q_p8): Likewise.
11883 (vqtbx3_s8): Likewise.
11884 (vqtbx3_u8): Likewise.
11885 (vqtbx3_p8): Likewise.
11886 (vqtbx3q_s8): Likewise.
11887 (vqtbx3q_u8): Likewise.
11888 (vqtbx3q_p8): Likewise.
11889 (vqtbx4_s8): Likewise.
11890 (vqtbx4_u8): Likewise.
11891 (vqtbx4_p8): Likewise.
11892 (vqtbx4q_s8): Likewise.
11893 (vqtbx4q_u8): Likewise.
11894 (vqtbx4q_p8): Likewise.
11895 (vrev16_p8): Likewise.
11896 (vrev16_s8): Likewise.
11897 (vrev16_u8): Likewise.
11898 (vrev16q_p8): Likewise.
11899 (vrev16q_s8): Likewise.
11900 (vrev16q_u8): Likewise.
11901 (vrev32_p8): Likewise.
11902 (vrev32_p16): Likewise.
11903 (vrev32_s8): Likewise.
11904 (vrev32_s16): Likewise.
11905 (vrev32_u8): Likewise.
11906 (vrev32_u16): Likewise.
11907 (vrev32q_p8): Likewise.
11908 (vrev32q_p16): Likewise.
11909 (vrev32q_s8): Likewise.
11910 (vrev32q_s16): Likewise.
11911 (vrev32q_u8): Likewise.
11912 (vrev32q_u16): Likewise.
11913 (vrev64_f32): Likewise.
11914 (vrev64_p8): Likewise.
11915 (vrev64_p16): Likewise.
11916 (vrev64_s8): Likewise.
11917 (vrev64_s16): Likewise.
11918 (vrev64_s32): Likewise.
11919 (vrev64_u8): Likewise.
11920 (vrev64_u16): Likewise.
11921 (vrev64_u32): Likewise.
11922 (vrev64q_f32): Likewise.
11923 (vrev64q_p8): Likewise.
11924 (vrev64q_p16): Likewise.
11925 (vrev64q_s8): Likewise.
11926 (vrev64q_s16): Likewise.
11927 (vrev64q_s32): Likewise.
11928 (vrev64q_u8): Likewise.
11929 (vrev64q_u16): Likewise.
11930 (vrev64q_u32): Likewise.
11931 (vsha1cq_u32): Likewise.
11932 (vsha1mq_u32): Likewise.
11933 (vsha1pq_u32): Likewise.
11934 (vsha1h_u32): Likewise.
11935 (vsha1su0q_u32): Likewise.
11936 (vsha1su1q_u32): Likewise.
11937 (vsha256hq_u32): Likewise.
11938 (vsha256h2q_u32): Likewise.
11939 (vsha256su0q_u32): Likewise.
11940 (vsha256su1q_u32): Likewise.
11941 (vmull_p64): Likewise.
11942 (vmull_high_p64): Likewise.
11943 (vsqrt_f32): Likewise.
11944 (vsqrtq_f32): Likewise.
11945 (vsqrt_f64): Likewise.
11946 (vsqrtq_f64): Likewise.
11947 (vst1_f32): Likewise.
11948 (vst1_f64): Likewise.
11949 (vst1_p8): Likewise.
11950 (vst1_p16): Likewise.
11951 (vst1_p64): Likewise.
11952 (vst1_s8): Likewise.
11953 (vst1_s16): Likewise.
11954 (vst1_s32): Likewise.
11955 (vst1_s64): Likewise.
11956 (vst1_u8): Likewise.
11957 (vst1_u16): Likewise.
11958 (vst1_u32): Likewise.
11959 (vst1_u64): Likewise.
11960 (vst1q_f32): Likewise.
11961 (vst1q_f64): Likewise.
11962 (vst1q_p8): Likewise.
11963 (vst1q_p16): Likewise.
11964 (vst1q_p64): Likewise.
11965 (vst1q_s8): Likewise.
11966 (vst1q_s16): Likewise.
11967 (vst1q_s32): Likewise.
11968 (vst1q_s64): Likewise.
11969 (vst1q_u8): Likewise.
11970 (vst1q_u16): Likewise.
11971 (vst1q_u32): Likewise.
11972 (vst1q_u64): Likewise.
11973 (vst1_s64_x2): Likewise.
11974 (vst1_u64_x2): Likewise.
11975 (vst1_f64_x2): Likewise.
11976 (vst1_s8_x2): Likewise.
11977 (vst1_p8_x2): Likewise.
11978 (vst1_s16_x2): Likewise.
11979 (vst1_p16_x2): Likewise.
11980 (vst1_s32_x2): Likewise.
11981 (vst1_u8_x2): Likewise.
11982 (vst1_u16_x2): Likewise.
11983 (vst1_u32_x2): Likewise.
11984 (vst1_f16_x2): Likewise.
11985 (vst1_f32_x2): Likewise.
11986 (vst1_p64_x2): Likewise.
11987 (vst1q_s8_x2): Likewise.
11988 (vst1q_p8_x2): Likewise.
11989 (vst1q_s16_x2): Likewise.
11990 (vst1q_p16_x2): Likewise.
11991 (vst1q_s32_x2): Likewise.
11992 (vst1q_s64_x2): Likewise.
11993 (vst1q_u8_x2): Likewise.
11994 (vst1q_u16_x2): Likewise.
11995 (vst1q_u32_x2): Likewise.
11996 (vst1q_u64_x2): Likewise.
11997 (vst1q_f16_x2): Likewise.
11998 (vst1q_f32_x2): Likewise.
11999 (vst1q_f64_x2): Likewise.
12000 (vst1q_p64_x2): Likewise.
12001 (vst1_s64_x3): Likewise.
12002 (vst1_u64_x3): Likewise.
12003 (vst1_f64_x3): Likewise.
12004 (vst1_s8_x3): Likewise.
12005 (vst1_p8_x3): Likewise.
12006 (vst1_s16_x3): Likewise.
12007 (vst1_p16_x3): Likewise.
12008 (vst1_s32_x3): Likewise.
12009 (vst1_u8_x3): Likewise.
12010 (vst1_u16_x3): Likewise.
12011 (vst1_u32_x3): Likewise.
12012 (vst1_f16_x3): Likewise.
12013 (vst1_f32_x3): Likewise.
12014 (vst1_p64_x3): Likewise.
12015 (vst1q_s8_x3): Likewise.
12016 (vst1q_p8_x3): Likewise.
12017 (vst1q_s16_x3): Likewise.
12018 (vst1q_p16_x3): Likewise.
12019 (vst1q_s32_x3): Likewise.
12020 (vst1q_s64_x3): Likewise.
12021 (vst1q_u8_x3): Likewise.
12022 (vst1q_u16_x3): Likewise.
12023 (vst1q_u32_x3): Likewise.
12024 (vst1q_u64_x3): Likewise.
12025 (vst1q_f16_x3): Likewise.
12026 (vst1q_f32_x3): Likewise.
12027 (vst1q_f64_x3): Likewise.
12028 (vst1q_p64_x3): Likewise.
12029 (vst2_s64): Likewise.
12030 (vst2_u64): Likewise.
12031 (vst2_f64): Likewise.
12032 (vst2_s8): Likewise.
12033 (vst2_p8): Likewise.
12034 (vst2_s16): Likewise.
12035 (vst2_p16): Likewise.
12036 (vst2_s32): Likewise.
12037 (vst2_u8): Likewise.
12038 (vst2_u16): Likewise.
12039 (vst2_u32): Likewise.
12040 (vst2_f16): Likewise.
12041 (vst2_f32): Likewise.
12042 (vst2_p64): Likewise.
12043 (vst2q_s8): Likewise.
12044 (vst2q_p8): Likewise.
12045 (vst2q_s16): Likewise.
12046 (vst2q_p16): Likewise.
12047 (vst2q_s32): Likewise.
12048 (vst2q_s64): Likewise.
12049 (vst2q_u8): Likewise.
12050 (vst2q_u16): Likewise.
12051 (vst2q_u32): Likewise.
12052 (vst2q_u64): Likewise.
12053 (vst2q_f16): Likewise.
12054 (vst2q_f32): Likewise.
12055 (vst2q_f64): Likewise.
12056 (vst2q_p64): Likewise.
12057 (vst3_s64): Likewise.
12058 (vst3_u64): Likewise.
12059 (vst3_f64): Likewise.
12060 (vst3_s8): Likewise.
12061 (vst3_p8): Likewise.
12062 (vst3_s16): Likewise.
12063 (vst3_p16): Likewise.
12064 (vst3_s32): Likewise.
12065 (vst3_u8): Likewise.
12066 (vst3_u16): Likewise.
12067 (vst3_u32): Likewise.
12068 (vst3_f16): Likewise.
12069 (vst3_f32): Likewise.
12070 (vst3_p64): Likewise.
12071 (vst3q_s8): Likewise.
12072 (vst3q_p8): Likewise.
12073 (vst3q_s16): Likewise.
12074 (vst3q_p16): Likewise.
12075 (vst3q_s32): Likewise.
12076 (vst3q_s64): Likewise.
12077 (vst3q_u8): Likewise.
12078 (vst3q_u16): Likewise.
12079 (vst3q_u32): Likewise.
12080 (vst3q_u64): Likewise.
12081 (vst3q_f16): Likewise.
12082 (vst3q_f32): Likewise.
12083 (vst3q_f64): Likewise.
12084 (vst3q_p64): Likewise.
12085 (vst4_s64): Likewise.
12086 (vst4_u64): Likewise.
12087 (vst4_f64): Likewise.
12088 (vst4_s8): Likewise.
12089 (vst4_p8): Likewise.
12090 (vst4_s16): Likewise.
12091 (vst4_p16): Likewise.
12092 (vst4_s32): Likewise.
12093 (vst4_u8): Likewise.
12094 (vst4_u16): Likewise.
12095 (vst4_u32): Likewise.
12096 (vst4_f16): Likewise.
12097 (vst4_f32): Likewise.
12098 (vst4_p64): Likewise.
12099 (vst4q_s8): Likewise.
12100 (vst4q_p8): Likewise.
12101 (vst4q_s16): Likewise.
12102 (vst4q_p16): Likewise.
12103 (vst4q_s32): Likewise.
12104 (vst4q_s64): Likewise.
12105 (vst4q_u8): Likewise.
12106 (vst4q_u16): Likewise.
12107 (vst4q_u32): Likewise.
12108 (vst4q_u64): Likewise.
12109 (vst4q_f16): Likewise.
12110 (vst4q_f32): Likewise.
12111 (vst4q_f64): Likewise.
12112 (vst4q_p64): Likewise.
12113 (vtbx4_s8): Likewise.
12114 (vtbx4_u8): Likewise.
12115 (vtbx4_p8): Likewise.
12116 (vtrn_f32): Likewise.
12117 (vtrn_p8): Likewise.
12118 (vtrn_p16): Likewise.
12119 (vtrn_s8): Likewise.
12120 (vtrn_s16): Likewise.
12121 (vtrn_s32): Likewise.
12122 (vtrn_u8): Likewise.
12123 (vtrn_u16): Likewise.
12124 (vtrn_u32): Likewise.
12125 (vtrnq_f32): Likewise.
12126 (vtrnq_p8): Likewise.
12127 (vtrnq_p16): Likewise.
12128 (vtrnq_s8): Likewise.
12129 (vtrnq_s16): Likewise.
12130 (vtrnq_s32): Likewise.
12131 (vtrnq_u8): Likewise.
12132 (vtrnq_u16): Likewise.
12133 (vtrnq_u32): Likewise.
12134 (vrsqrte_f16): Likewise.
12135 (vrsqrteq_f16): Likewise.
12136 (vsqrt_f16): Likewise.
12137 (vsqrtq_f16): Likewise.
12138 (vabd_f16): Likewise.
12139 (vabdq_f16): Likewise.
12140 (vpadd_f16): Likewise.
12141 (vpaddq_f16): Likewise.
12142 (vpmax_f16): Likewise.
12143 (vpmaxq_f16): Likewise.
12144 (vpmaxnm_f16): Likewise.
12145 (vpmaxnmq_f16): Likewise.
12146 (vpmin_f16): Likewise.
12147 (vpminq_f16): Likewise.
12148 (vpminnm_f16): Likewise.
12149 (vpminnmq_f16): Likewise.
12150 (vrsqrts_f16): Likewise.
12151 (vrsqrtsq_f16): Likewise.
12153 2019-09-25 Richard Biener <rguenther@suse.de>
12155 PR tree-optimization/91896
12156 * tree-vect-loop.c (vectorizable_reduction): The single
12157 def-use cycle optimization cannot apply when there's more
12158 than one pattern stmt involved.
12160 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12162 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
12163 the 'P' mode iterator, replacing the (removed) SI and DI variants.
12164 (reload_macho_picbase_<mode>): Likewise.
12166 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
12168 * config/rs6000/rs6000.md: Move darwin.md include until
12169 after the definition of the mode iterators.
12171 2019-09-23 Martin Sebor <msebor@redhat.com>
12173 PR tree-optimization/91570
12174 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
12175 non-constant minlen, maxlen and maxbound.
12177 2019-09-24 Richard Biener <rguenther@suse.de>
12179 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
12181 (_stmt_vec_info::cond_reduc_code): ... this.
12182 (_stmt_vec_info::induc_cond_initial_val): Add.
12183 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
12184 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
12185 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
12186 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
12187 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
12188 the reduction code.
12189 (vect_create_epilog_for_reduction): Drop special
12190 induction condition reduction params, pass in reduction code
12192 (vectorizable_reduction): Perform condition reduction kind
12193 selection only at analysis time. Adjust passing on state.
12195 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12197 * config/aarch64/aarch64.md (mov<mode>): Don't call
12198 aarch64_split_dimode_const_store on volatile MEM.
12200 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
12202 * config/aarch64/aarch64-option-extensions.def (fp16fml):
12203 Update hwcap string for fp16fml.
12205 2019-09-24 Jakub Jelinek <jakub@redhat.com>
12207 PR middle-end/91866
12208 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
12209 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
12211 2019-09-24 Martin Liska <mliska@suse.cz>
12213 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
12214 instead of if-elseif-elseif-...
12215 * gimple-expr.c (extract_ops_from_tree): Likewise.
12216 * gimple.c (get_gimple_rhs_num_ops): Likewise.
12217 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
12219 2019-09-24 Martin Jambor <mjambor@suse.cz>
12222 * ipa-param-manipulation.c (carry_over_param): Make a method of
12223 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
12224 in case of a context mismatch.
12225 (ipa_param_body_adjustments::common_initialization): Adjust call to
12227 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
12228 private method carry_over_param.
12230 2019-09-24 Martin Jambor <mjambor@suse.cz>
12233 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
12235 2019-09-24 Richard Biener <rguenther@suse.de>
12237 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
12240 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12242 * config/arm/t-arm (arm-builtins.o): Add dependency on
12243 arm_acle_builtins.def.
12245 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12248 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
12249 canonical CONST_INTs. Use gen_rtvec.
12251 2019-09-23 Richard Biener <rguenther@suse.de>
12253 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
12254 avoid adjusting by + 0 or * 1.
12255 (vect_create_epilog_for_reduction): Get reduction code only
12256 when necessary. Deal with adjustment_def only when necessary.
12258 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
12260 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
12263 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12266 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
12269 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
12271 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
12272 code. Merge code blocks with common conditionals. Use declared
12273 macro instead of a magic number for PIC level.
12275 2019-09-21 Martin Sebor <msebor@redhat.com>
12277 PR middle-end/91830
12278 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
12279 Simplify computation of the offset of the referenced subobject.
12281 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
12283 * config/darwin.c (machopic_legitimize_pic_address): Check
12284 for lra not reload.
12286 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12288 * ira-conflicts.c (can_use_same_reg_p): New function.
12289 (process_reg_shuffles): Take an insn parameter. Ignore cases
12290 in which input operand op_num could seemingly never be allocated
12291 to the same register as the destination.
12292 (add_insn_allocno_copies): Update call to process_reg_shuffles.
12294 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
12296 * simplify-rtx.c (neg_const_int): Replace with...
12297 (neg_poly_int_rtx): ...this new function.
12298 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
12299 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
12300 (simplify_plus_minus): Likewise for constant terms here.
12302 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
12304 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
12305 HOST_WIDE_PRINT_UNSIGNED.
12307 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
12309 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
12312 2019-09-20 Maya Rashish <coypu@sdf.org>
12315 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
12316 Define to speculation_safe_value_not_needed.
12318 2019-09-20 Richard Biener <rguenther@suse.de>
12319 Uros Bizjak <ubizjak@gmail.com>
12322 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
12324 (general_scalar_chain::convert_op): Force not suitable memory
12325 operands to a register.
12327 2019-09-20 Richard Biener <rguenther@suse.de>
12329 PR tree-optimization/91821
12330 * tree-vect-loop.c (check_reduction_path): Check we can compute
12332 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
12333 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
12334 operands in canonical order.
12335 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
12336 STMT_VINFO_REDUC_IDX.
12337 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
12338 (STMT_VINFO_REDUC_IDX): Likewise.
12340 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
12343 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12345 2019-09-20 Richard Biener <rguenther@suse.de>
12347 PR tree-optimization/91822
12348 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
12350 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
12351 for reduc_index in nested cycles, adjust vectorizable_condition
12353 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
12355 (vect_analyze_stmt): Adjust.
12356 (vect_transform_stmt): Likewise.
12358 2019-09-20 Richard Biener <rguenther@suse.de>
12361 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
12362 Ensure there's a sequence point between allocating the new register
12363 and passing a reference to a reg via regno_reg_rtx.
12365 2019-09-20 Martin Jambor <mjambor@suse.cz>
12367 * coretypes.h (cgraph_edge): Declare.
12368 * ipa-param-manipulation.c: Rewrite.
12369 * ipa-param-manipulation.h: Likewise.
12370 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
12371 (OBJS): Added ipa-sra.o.
12372 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
12373 and ref_p, added fields param_adjustments and performed_splits.
12374 (struct cgraph_clone_info): Remove ags_to_skip and
12375 combined_args_to_skip, new field param_adjustments.
12376 (cgraph_node::create_clone): Changed parameters to use
12377 ipa_param_adjustments.
12378 (cgraph_node::create_virtual_clone): Likewise.
12379 (cgraph_node::create_virtual_clone_with_body): Likewise.
12380 (tree_function_versioning): Likewise.
12381 (cgraph_build_function_type_skip_args): Removed.
12382 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
12383 using ipa_param_adjustments.
12384 (clone_of_p): Likewise.
12385 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
12386 (build_function_decl_skip_args): Likewise.
12387 (duplicate_thunk_for_node): Adjust parameters using
12388 ipa_param_body_adjustments, copy param_adjustments instead of
12390 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
12391 (cgraph_node::create_virtual_clone): Likewise.
12392 (cgraph_node::create_version_clone_with_body): Likewise.
12393 (cgraph_materialize_clone): Likewise.
12394 (symbol_table::materialize_all_clones): Likewise.
12395 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
12396 ipa_replace_map check.
12397 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
12398 (initialize_node_lattices): Make aware that some parameters might have
12399 already been removed.
12400 (want_remove_some_param_p): New function.
12401 (create_specialized_node): Convert to using ipa_param_adjustments and
12402 deal with possibly pre-existing adjustments.
12403 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
12404 (output_node_opt_summary): Do not stream removed fields. Stream
12405 parameter adjustments instead of argumetns to skip.
12406 (input_node_opt_summary): Likewise.
12407 (input_node_opt_summary): Likewise.
12408 * lto-section-in.c (lto_section_name): Added ipa-sra section.
12409 * lto-streamer.h (lto_section_type): Likewise.
12410 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
12412 (copy_decl_to_var): Declare.
12413 * tree-inline.c (update_clone_info): Do not remap old_tree.
12414 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
12415 statements, walk all extra generated statements and remap their
12417 (redirect_all_calls): Add killed SSA names to a hash set.
12418 (remap_ssa_name): Do not remap killed SSA names.
12419 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
12420 half of functionality moved to ipa_param_body_adjustments.
12421 (copy_decl_to_var): Make exported.
12422 (copy_body): Destroy killed_new_ssa_names hash set.
12423 (expand_call_inline): Remap performed splits.
12424 (update_clone_info): Likewise.
12425 (tree_function_versioning): Simplify tree_map processing. Updated to
12426 accept ipa_param_adjustments and use ipa_param_body_adjustments.
12427 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
12428 for the new interface.
12429 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
12430 (simd_clone_compute_base_data_type): Likewise.
12431 (simd_clone_init_simd_arrays): Adjust for the new interface.
12432 (simd_clone_adjust_argument_types): Likewise.
12433 (struct modify_stmt_info): Likewise.
12434 (ipa_simd_modify_stmt_ops): Likewise.
12435 (ipa_simd_modify_function_body): Likewise.
12436 (simd_clone_adjust): Likewise.
12437 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
12438 (type_internals_preclude_sra_p): Make public.
12439 * tree-sra.h: New file.
12440 * ipa-inline-transform.c (save_inline_function_body): Update to
12441 refelct new tree_function_versioning signature.
12442 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
12443 ipa_param_adjustments to get current parameter indices.
12444 (ipcp_modif_dom_walker::before_dom_children): Likewise.
12445 (ipcp_update_bits): Likewise.
12446 (ipcp_update_vr): Likewise.
12447 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
12448 * ipa-sra.c: New file.
12449 * multiple_target.c (create_target_clone): Update to reflet new type
12450 of create_version_clone_with_body.
12451 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
12452 tree_function_versioning.
12453 (modify_function): Update to reflect new type of
12454 tree_function_versioning.
12455 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
12456 * passes.def: Remove old IPA-SRA and add new one.
12457 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
12458 (make_pass_ipa_sra): Declare.
12459 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
12461 * doc/invoke.texi (ipa-sra-max-replacements): New.
12463 2019-09-19 Martin Sebor <msebor@redhat.com>
12465 PR middle-end/91631
12466 * builtins.c (component_size): Correct trailing array computation,
12467 rename to component_ref_size and move...
12468 (compute_objsize): Adjust.
12469 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
12470 (builtin_access::strict): Do not consider memmove.
12471 (builtin_access::write_off): New function.
12472 (builtin_memref::builtin_memref): Initialize refsize.
12473 (builtin_memref::set_base_and_offset): Adjust refoff and compute
12475 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
12477 (builtin_access::builtin_access): Initialize dstoff to destination
12478 refeence offset here instead of in maybe_diag_overlap. Adjust
12479 referencess even to unrelated objects. Adjust sizrange of bounded
12480 string functions to reflect bound. For strcat, adjust destination
12481 sizrange by that of source.
12482 (builtin_access::strcat_overlap): Adjust offsets and sizes
12483 to reflect the increase in destination sizrange above.
12484 (builtin_access::overlap): Do not set dstoff here but instead
12485 in builtin_access::builtin_access.
12486 (check_bounds_or_overlap): Use builtin_access::write_off.
12487 (maybe_diag_access_bounds): Add argument. Add informational notes.
12488 (dump_builtin_memref, dump_builtin_access): New functions.
12489 * tree.c (component_ref_size): ...to here.
12490 * tree.h (component_ref_size): Declare.
12491 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
12492 nul in the size of the source string.
12494 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
12497 * doc/cpp.texi: Document support for extended characters in
12499 * doc/cppopts.texi: Likewise.
12501 2019-09-19 Richard Biener <rguenther@suse.de>
12503 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
12504 (check_reduction_path): New overload having the path as result.
12505 (vect_is_simple_reduction): From the detected reduction
12506 path build a SLP reduction chain if possible.
12508 2019-09-19 Richard Biener <rguenther@suse.de>
12511 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
12512 Force operand to a register if it isn't nonimmediate_operand.
12514 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
12516 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
12517 * config/arm/iterators.md (optab): Add and, ior, xor entries.
12518 (logical_op): Remove code attribute.
12519 (logical_OP): Likewise.
12521 2019-09-19 Martin Liska <mliska@suse.cz>
12523 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
12524 Use proper casting.
12526 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
12528 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
12531 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
12532 for NE comparison of TImode values.
12533 (aarch64_emit_load_exclusive): Add support for TImode.
12534 (aarch64_emit_store_exclusive): Likewise.
12535 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
12536 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
12537 Change iterator from ALLI to ALLI_TI.
12538 (@atomic_compare_and_swap<JUST_TI>): New.
12539 (@atomic_compare_and_swap<JUST_TI>_lse): New.
12540 (aarch64_load_exclusive_pair): New.
12541 (aarch64_store_exclusive_pair): New.
12542 * config/aarch64/iterators.md (JUST_TI): New.
12544 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
12545 strong_zero_p for aarch64_track_speculation; unify some code paths;
12546 use aarch64_gen_compare_reg instead of open-coding.
12548 * config/aarch64/aarch64.opt (-moutline-atomics): New.
12549 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
12550 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
12551 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
12552 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
12553 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
12554 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
12555 (atomic_<atomic_op><ALLI>): Likewise.
12556 (atomic_fetch_<atomic_op><ALLI>): Likewise.
12557 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
12558 * doc/invoke.texi: Document -moutline-atomics.
12560 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
12562 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
12563 trivial predicate for condition branch.
12564 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
12566 (compute_bb_predicates): Update predicate based on post-dominating
12568 (analyze_function_body): Calculate post-dominating information.
12570 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12572 * tree-vectorizer.h (vectorizable_condition): Take an int
12573 reduction index instead of a boolean flag.
12574 * tree-vect-stmts.c (vectorizable_condition): Likewise.
12575 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
12576 reductions if the reduction accumulator is the "then" rather
12577 than the "else" value.
12578 (vect_analyze_stmt): Update call accordingly.
12579 (vect_transform_stmt): Likewise.
12580 * tree-vect-loop.c (vectorizable_reduction): Likewise,
12581 asserting that the index is > 0.
12583 2019-09-19 Martin Liska <mliska@suse.cz>
12585 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
12586 (sort_congruence_classes_by_decl_uid): Likewise.
12587 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
12589 (sem_item_optimizer::merge_classes): Likewise.
12591 2019-09-19 Richard Biener <rguenther@suse.de>
12593 PR tree-optimization/91812
12594 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
12597 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
12599 * defaults.h (TARGET_UNIT): New macro.
12600 (target_unit): New type.
12601 * rtl.h (native_encode_rtx, native_decode_rtx)
12602 (native_decode_vector_rtx, subreg_size_lsb): Declare.
12603 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
12604 * rtlanal.c (subreg_lsb_1): Delete.
12605 (subreg_size_lsb): New function.
12606 * simplify-rtx.c: Include rtx-vector-builder.h
12607 (simplify_immed_subreg): Delete.
12608 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
12609 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
12611 (simplify_subreg): Use them.
12612 (test_vector_subregs_modes, test_vector_subregs_repeating)
12613 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
12614 (test_vector_subregs): New functions.
12615 (test_vector_ops): Call test_vector_subregs for integer vector
12616 modes with at least 2 elements.
12618 2019-09-19 Richard Biener <rguenther@suse.de>
12620 * tree-parloops.c (parloops_is_slp_reduction): Do not set
12621 LOOP_VINFO_OPERANDS_SWAPPED.
12622 (parloops_is_simple_reduction): Likewise.
12623 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
12624 initialize operands_swapped.
12625 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
12626 (vect_is_slp_reduction): Do not swap operands.
12627 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
12628 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
12630 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
12633 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
12634 Add avx_partial_xmm_update.
12636 2019-09-18 Jim Wilson <jimw@sifive.com>
12639 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
12640 (riscv_move_integer): Likewise.
12641 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
12642 riscv_move_integer arg.
12643 (riscv_legitimize_move): Likewise.
12644 (riscv_force_temporary): New parameter in_splitter. Don't call
12646 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
12648 (riscv_add_offset): Likewise.
12649 (riscv_split_symbol): New parameter in_splitter. Pass to
12650 riscv_force_temporary.
12651 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
12653 (riscv_move_integer): New parameter in_splitter. New local
12654 can_create_psuedo. Don't call riscv_split_integer or force_reg when
12656 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
12657 riscv_split_symbol, and riscv_force_temporary args.
12658 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
12659 riscv_move_integer arg.
12660 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
12662 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12665 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
12666 hard register store cost to 6.
12668 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
12671 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
12672 pseudo register store cost from 3 to 6 to make it the same as
12675 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12678 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
12679 (one_cmpldi2): Likewise.
12680 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
12681 of the constant parts is simple.
12682 * config/arm/iterators.md (LOGICAL): Add new code iterator.
12683 (logical_op): Add new code attribute.
12684 (logical_OP): Likewise.
12685 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
12686 (arm_iordi_operand): Add predicate.
12687 (arm_xordi_operand): Add predicate.
12689 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12691 * config/arm/arm.md (maddsidi4): Remove expander.
12692 (mulsidi3adddi): Remove pattern.
12693 (mulsidi3adddi_v6): Likewise.
12694 (mulsidi3_nov6): Likewise.
12695 (mulsidi3_v6): Likewise.
12696 (umulsidi3): Remove expander.
12697 (umulsidi3_nov6): Remove pattern.
12698 (umulsidi3_v6): Likewise.
12699 (umulsidi3adddi): Likewise.
12700 (umulsidi3adddi_v6): Likewise.
12701 (<Us>mulsidi3): Add combined expander.
12702 (<Us>maddsidi4): Likewise.
12703 (<US>mull): Add combined umull and smull pattern.
12704 (<US>mlal): Likewise.
12705 * config/arm/iterators.md (Us): Add new iterator.
12707 2019-09-18 Richard Biener <rguenther@suse.de>
12709 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
12711 (vectorize_fold_left_reduction): Remove assert.
12712 (vectorizable_reduction): Also expect COND_EXPR non-reduction
12713 operand in position 2. Remove assert.
12715 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12717 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
12718 (smulsi3_highpart_nov6): Remove pattern.
12719 (smulsi3_highpart_v6): Likewise.
12720 (umulsi3_highpart): Likewise.
12721 (umulsi3_highpart_nov6): Likewise.
12722 (umulsi3_highpart_v6): Likewise.
12723 (<US>mull_high): Add new combined multiply pattern.
12725 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
12727 * config/arm/arm.md (arm_mulsi3): Remove pattern.
12728 (arm_mulsi3_v6): Likewise.
12729 (mulsi3addsi_v6): Likewise.
12730 (mulsi3subsi): Likewise.
12731 (mul): Add new multiply pattern.
12735 2019-09-18 Richard Biener <rguenther@suse.de>
12737 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
12738 (parloops_valid_reduction_input_p): Copy from
12739 valid_reduction_input_p.
12740 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
12741 (parloops_needs_fold_left_reduction_p): Copy from
12742 needs_fold_left_reduction_p.
12743 (parloops_is_simple_reduction): Copy from
12744 vect_is_simple_reduction.
12745 (parloops_force_simple_reduction): Copy from
12746 vect_force_simple_reduction.
12747 (gather_scalar_reductions): Adjust.
12748 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
12749 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
12751 2019-09-18 Richard Biener <rguenther@suse.de>
12753 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
12754 * tree-vect-loop.c (get_initial_def_for_reduction): Make
12756 (vect_create_epilog_for_reduction): Remove dead code.
12758 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12760 * varasm.c (assemble_real): Generate canonical const_ints.
12762 2019-09-18 Richard Biener <rguenther@suse.de>
12765 * lto-streamer-in.c (input_eh_regions): Move EH init to
12766 lto_materialize_function.
12767 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
12770 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12772 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
12775 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12777 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
12778 of checking specifically for INTEGER_CST.
12780 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12782 * stor-layout.c (compute_record_mode): Operate on poly_uint64
12783 sizes instead of uhwi sizes.
12785 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
12787 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
12788 (add_const_value_attribute): Handle CONST_POLY_INT.
12790 2019-09-18 Martin Liska <mliska@suse.cz>
12792 * dbgcnt.def (store_merging): New counter.
12793 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
12794 Use it in store merging.
12796 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12798 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
12800 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12801 * config/arm/arm.c (arm_sched_variable_issue): New function.
12802 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
12804 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12806 * config/arm/types.md (no_reservation): New reservation.
12807 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
12809 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
12810 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
12811 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
12812 * config/arm/arm1020e.md (1020alu_op): Likewise.
12813 * config/arm/arm1026ejs.md (alu_op): Likewise.
12814 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
12815 * config/arm/arm926ejs.md (9_alu_op): Likewise.
12816 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
12817 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
12818 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
12819 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
12820 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
12821 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
12822 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
12823 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
12824 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
12825 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
12826 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
12827 * config/arm/fa526.md (526_alu_op): Likewise.
12828 * config/arm/fa606te.md (606te_alu_op): Likewise.
12829 * config/arm/fa626te.md (626te_alu_op): Likewise.
12830 * config/arm/fa726te.md (726te_alu_op): Likewise.
12831 * config/arm/xgene1.md (xgene1_nop): Likewise.
12833 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12835 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
12836 "no_insn" to "branch".
12838 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
12840 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
12842 2019-09-17 Richard Biener <rguenther@suse.de>
12845 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
12846 was missing generate locations only once.
12848 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
12851 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
12853 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
12854 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
12855 for switch default case using range analysis information.
12857 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
12860 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
12861 mode attributed is supported by FDPIC.
12863 2019-09-17 Richard Biener <rguenther@suse.de>
12865 PR tree-optimization/91790
12866 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
12867 use the correct DR for setting up realignment.
12869 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
12872 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
12873 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
12874 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
12875 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
12877 2019-09-16 Jason Merrill <jason@redhat.com>
12879 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
12881 2019-09-16 Martin Liska <mliska@suse.cz>
12883 * gimple-fold.c (or_comparisons_1): Remove rules moved
12885 * match.pd: ... here.
12887 2019-09-16 Martin Liska <mliska@suse.cz>
12889 * gimple-fold.c (or_comparisons_1): Remove rules
12891 * match.pd: ... here.
12893 2019-09-16 Martin Liska <mliska@suse.cz>
12895 * genmatch.c (dt_node::append_simplify): Do not print
12896 warning when we have duplicate patterns belonging
12897 to a same simplify rule.
12898 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
12899 (maybe_fold_comparisons_from_match_pd): Handle
12900 tcc_comparison as a results.
12901 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
12903 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12904 Qi Feng <ffengqi@linux.ibm.com>
12906 PR middle-end/88784
12907 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
12908 (x > y && x == XXX_MIN): Optimize into 'false'.
12909 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
12910 (x < y && x != XXX_MAX): Optimize into 'x < y'.
12911 (x < y && x == XXX_MAX): Optimize into 'false'.
12912 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
12913 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
12914 (x <= y || x != XXX_MIN): Optimize into 'true'.
12915 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
12916 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
12917 (x >= y || x != XXX_MAX): Optimize into 'true'.
12918 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
12920 2019-09-16 Li Jia He <helijia@linux.ibm.com>
12921 Martin Liska <mliska@suse.cz>
12923 * gimple-fold.c (and_comparisons_1): Add type as first
12925 (and_var_with_comparison): Likewise.
12926 (and_var_with_comparison_1): Likewise.
12927 (or_comparisons_1): Likewise.
12928 (or_var_with_comparison): Likewise.
12929 (or_var_with_comparison_1): Likewise.
12930 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
12931 (maybe_fold_or_comparisons): Likewise.
12932 (maybe_fold_comparisons_from_match_pd): New.
12933 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
12934 (maybe_fold_or_comparisons): Likewise.
12935 * gimple.c (gimple_size): Make it public and add num_ops argument.
12936 (gimple_init): New function.
12937 (gimple_alloc): Call gimple_init.
12938 * gimple.h (gimple_size): New.
12939 (gimple_init): Likewise.
12940 * tree-if-conv.c (fold_or_predicates): Pass type.
12941 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12942 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
12943 (optimize_vec_cond_expr): Likewise.
12944 (ovce_extract_ops): Return type of conditional expression.
12945 * tree-ssanames.c (init_ssa_name_imm_use): New.
12946 (make_ssa_name_fn): Use init_ssa_name_imm_use.
12947 * tree-ssanames.h (init_ssa_name_imm_use): New.
12949 2019-09-16 Richard Biener <rguenther@suse.de>
12951 PR tree-optimization/91756
12952 PR tree-optimization/87132
12953 * tree-ssa-alias.h (enum translate_flags): New.
12954 (get_continuation_for_phi): Use it instead of simple bool flag.
12955 (walk_non_aliased_vuses): Likewise.
12956 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12957 (get_continuation_for_phi): When looking across backedges only
12958 disallow valueization.
12959 (walk_non_aliased_vuses): Adjust.
12960 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
12963 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
12965 PR middle-end/80791
12966 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
12967 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12968 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12969 * target.def (have_count_reg_decr_p): New hook.
12970 (doloop_cost_for_generic): Likewise.
12971 (doloop_cost_for_address): Likewise.
12972 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
12973 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
12974 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
12975 * doc/tm.texi: Regenerate.
12976 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
12978 (record_group): Init doloop_p.
12979 (add_candidate_1): Add optional argument doloop, change the handlings
12981 (add_candidate): Likewise.
12982 (generic_predict_doloop_p): Update attribute.
12983 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
12984 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
12985 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
12987 (get_computation_cost): Update for doloop IV cand extra cost.
12988 (determine_group_iv_cost_cond): Update for doloop IV cand.
12989 (determine_iv_cost): Likewise.
12990 (ivopts_estimate_reg_pressure): Likewise.
12991 (may_eliminate_iv): Update handlings for doloop IV cand.
12992 (add_iv_candidate_for_doloop): New function.
12993 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
12994 (iv_ca_set_no_cp): Update for doloop IV cand.
12995 (iv_ca_set_cp): Likewise.
12996 (iv_ca_dump): Dump register cost.
12997 (find_doloop_use): New function.
12998 (analyze_and_mark_doloop_use): Likewise.
12999 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
13001 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
13003 PR middle-end/91708
13004 * cse.c (cse_insn): Do not replace anything with a
13007 2019-09-13 Ian Lance Taylor <iant@golang.org>
13009 * doc/invoke.texi (Optimize Options): Fix typo.
13011 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
13013 PR tree-optimization/89386
13014 * config/i386/sse.md (smulhrs<mode>3): New expander.
13015 (smulhrsv4hi3): Ditto.
13017 2019-09-12 Richard Biener <rguenther@suse.de>
13019 PR tree-optimization/91750
13020 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
13021 in the type of the evolution.
13023 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
13025 PR tree-optimization/89386
13026 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
13027 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
13028 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
13029 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
13030 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
13031 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
13032 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
13033 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
13034 (su, r): Handle the unspecs above.
13035 (bt): New int attribute.
13036 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
13037 * internal-fn.c (first_commutative_argument): Commutativity info for
13039 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
13040 (umulhrs_optab): New optabs.
13041 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
13042 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
13043 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
13045 (vect_vect_recog_func_ptrs): Add it.
13047 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
13049 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
13052 2019-09-11 Nathan Sidwell <nathan@acm.org>
13054 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
13055 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
13057 2019-09-11 Richard Biener <rguenther@suse.de>
13059 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
13060 * lto-wrapper.c (merge_and_complain): Pick up -g.
13061 (append_compiler_options): Likewise.
13062 (run_gcc): Re-instantiate handling -g0 at link-time.
13063 * doc/invoke.texi (flto): Document debug info generation.
13065 2019-09-11 Richard Biener <rguenther@suse.de>
13067 PR tree-optimization/90387
13068 * vr-values.c (vr_values::extract_range_basic): After inlining
13069 simplify non-constant __builtin_constant_p to false.
13071 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
13073 PR rtl-optimization/89795
13074 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
13075 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
13077 2019-09-11 Jakub Jelinek <jakub@redhat.com>
13079 PR tree-optimization/91723
13080 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
13081 instead of pointer equality when checking if argument vectypes are
13084 PR middle-end/91725
13085 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
13086 of get_nonzero_bits, only call it for integral types.
13088 2019-09-11 Richard Biener <rguenther@suse.de>
13091 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13093 * match.pd: Add flag_unsafe_math_optimizations check
13094 before deciding on the widest type in a binary math operation.
13096 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13098 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
13099 and CALL_REALLY_USED_REGISTERS must be defined, and that
13100 CALL_REALLY_USED_REGISTERS is preferred.
13101 * doc/tm.texi: Regenerate.
13102 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
13103 (call_really_used_regs): Likewise.
13104 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
13105 CALL_REALLY_USED_REGISTERS are defined.
13106 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
13107 initial value if defined.
13108 (initial_call_really_used_regs): Delete.
13109 (saved_call_really_used_regs): Likewise.
13110 (CALL_REALLY_USED_REGNO_P): Likewise.
13111 (init_reg_sets): Remove handling of call_really_used_regs.
13112 (save_register_info, restore_register_info, globalize_reg): Likewise.
13113 (init_reg_sets_1): Likewise. Use call_used_regs instead of
13114 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
13115 outside operand_reg_set.
13116 (fix_register): Don't change call_used_regs if
13117 CALL_REALLY_USED_REGISTERS is defined.
13118 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
13119 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
13120 instead of call_really_used_regs.
13121 (csky_conditional_register_usage): Remove the old handling of
13122 call_used_regs and change the handling of call_really_used_regs
13123 to use call_used_regs instead.
13124 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
13125 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
13126 making a register fixed.
13127 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
13128 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
13129 instead of call_really_used_regs.
13130 (m32r_conditional_register_usage): Don't set call_used_regs when
13131 making a register fixed.
13132 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
13133 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
13134 instead of call_really_used_regs.
13135 (mips_interrupt_extra_call_saved_reg_p): Likewise.
13136 (mips_cfun_call_saved_reg_p): Likewise.
13137 (mips_swap_registers): Remove the old handling of call_used_regs
13138 and change the handling of call_really_used_regs to use call_used_regs
13140 (mips_conditional_register_usage): Likewise.
13141 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
13142 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
13143 instead of call_really_used_regs.
13144 (mn10300_get_live_callee_saved_regs): Likewise.
13145 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
13146 (mn10300_conditional_register_usage): Don't set call_used_regs when
13147 making a register fixed.
13148 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
13149 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
13150 Remove the old handling of call_used_regs and change the handling
13151 of call_really_used_regs to use call_used_regs instead.
13152 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
13153 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
13154 instead of call_really_used_regs.
13155 (s390_register_info_gprtofpr, s390_register_info): Likewise.
13156 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
13157 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
13158 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
13159 (s390_conditional_register_usage): Remove the old handling of
13160 call_used_regs and change the handling of call_really_used_regs
13161 to use call_used_regs instead.
13162 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
13163 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
13164 (sh_fix_range, reg_unused_after): Likewise.
13165 (sh_conditional_register_usage): Remove the old handling of
13166 call_used_regs and change the handling of call_really_used_regs
13167 to use call_used_regs instead.
13168 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
13169 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
13170 call_used_regs when making a register fixed.
13171 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
13172 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
13173 call_used_regs when making a register fixed.
13174 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
13175 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
13176 set call_used_regs when making a register fixed.
13177 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
13178 * config/visium/visium.c (visium_conditional_register_usage): Remove
13179 the old handling of call_used_regs and change the handling of
13180 call_really_used_regs to use call_used_regs instead.
13182 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13184 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
13185 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
13186 * reginfo.c (call_used_regs): New macro.
13188 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13190 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
13192 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13193 (bpf_expand_epilogue): Likewise.
13194 * config/c6x/c6x.c (c6x_save_reg): Likewise.
13195 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
13196 (ft32_expand_epilogue): Likewise.
13197 * config/i386/i386.c (ix86_save_reg): Likewise.
13198 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
13199 (moxie_expand_epilogue): Likewise.
13200 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13201 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13202 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13204 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13206 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
13207 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
13208 instead of testing call_used_regs directly.
13209 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
13210 (aarch64_components_for_bb): Likewise.
13211 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
13212 * config/arc/arc.c (arc_must_save_register): Likewise.
13213 (arc_epilogue_uses): Likewise.
13214 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
13215 (legitimize_pic_address, callee_saved_reg_p): Likewise.
13216 (arm_compute_save_reg0_reg12_mask): Likewise.
13217 (arm_compute_save_core_reg_mask): Likewise.
13218 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
13219 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
13220 (cmse_nonsecure_entry_clear_before_return): Likewise.
13221 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
13222 (arm_expand_epilogue): Likewise.
13223 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
13224 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
13225 (_reg_unused_after): Likewise.
13226 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
13227 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
13228 (add_to_reg, hwloop_optimize): Likewise.
13229 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
13230 (bpf_expand_epilogue): Likewise.
13231 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
13232 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
13233 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
13234 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
13235 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
13236 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
13237 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
13238 * config/frv/frv.c (frv_stack_info): Likewise.
13239 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
13240 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
13241 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
13242 (move_callee_saved_registers): Likewise.
13243 * config/h8300/h8300.c (byte_reg): Likewise.
13244 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
13245 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
13246 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
13247 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
13248 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
13249 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
13250 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
13251 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
13252 * config/m32c/m32c.c (need_to_save): Likewise.
13253 * config/m68k/m68k.c (m68k_save_reg): Likewise.
13254 * config/mcore/mcore.c (calc_live_regs): Likewise.
13255 * config/microblaze/microblaze.c (microblaze_must_save_register):
13257 * config/mmix/mmix.c (mmix_local_regno): Likewise.
13258 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
13259 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
13260 (mmix_expand_epilogue): Likewise.
13261 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
13262 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
13263 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
13264 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
13265 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
13266 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
13267 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
13268 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
13269 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
13270 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
13271 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
13272 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
13273 * config/rl78/rl78.c (need_to_save): Likewise.
13274 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
13275 (rs6000_stack_info, generate_set_vrsave): Likewise.
13276 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
13277 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
13278 * config/rx/rx.c (rx_get_stack_layout): Likewise.
13279 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13280 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
13281 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
13282 (save_local_or_in_reg_p): Likewise.
13283 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
13284 (xstormy16_epilogue_uses): Likewise.
13285 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
13286 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
13287 * config/v850/v850.c (compute_register_save_size): Likewise.
13288 * config/vax/vax.c (vax_expand_prologue): Likewise.
13289 * config/visium/visium.c (visium_save_reg_p): Likewise.
13290 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
13291 * cselib.c (cselib_process_insn): Likewise.
13292 * df-scan.c (df_get_entry_block_def_set): Likewise.
13293 * function.c (aggregate_value_p): Likewise.
13294 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
13295 * ira-lives.c (process_bb_node_lives): Likewise.
13296 * ira.c (do_reload): Likewise.
13297 * lra-lives.c (process_bb_lives): Likewise.
13298 * lra-remat.c (lra_remat): Likewise.
13299 * lra.c (lra): Likewise.
13300 * postreload.c (reload_combine_recognize_pattern): Likewise.
13301 (reload_cse_move2add): Likewise.
13302 * recog.c (peep2_find_free_register): Likewise.
13303 * regrename.c (check_new_reg_p): Likewise.
13304 * reload.c (find_equiv_reg): Likewise.
13305 * reload1.c (reload, find_reg): Likewise.
13306 * sel-sched.c (init_hard_regs_data): Likewise.
13308 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13310 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
13311 regs_invalidated_by_call & ~fixed_reg_set instead of
13312 call_used_or_fixed_regs & ~fixed_reg_set.
13313 * config/sh/sh.c (output_stack_adjust): Likewise.
13315 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13317 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
13318 (call_used_reg_set): Delete.
13319 (call_used_or_fixed_regs): New macro.
13320 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
13321 of call_used_reg_set.
13322 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
13323 instead of call_used_regs.
13324 (save_call_clobbered_regs): Likewise.
13325 * cfgcleanup.c (old_insns_match_p): Likewise.
13326 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
13327 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13329 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13330 * config/sh/sh.c (output_stack_adjust): Likewise.
13331 * final.c (collect_fn_hard_reg_usage): Likewise.
13332 * ira-build.c (ira_build): Likewise.
13333 * ira-color.c (calculate_saved_nregs): Likewise.
13334 (allocno_reload_assign, calculate_spill_cost): Likewise.
13335 * ira-conflicts.c (ira_build_conflicts): Likewise.
13336 * ira-costs.c (ira_tune_allocno_costs): Likewise.
13337 * ira-lives.c (process_bb_node_lives): Likewise.
13338 * ira.c (setup_reg_renumber): Likewise.
13339 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
13340 * lra-constraints.c (need_for_call_save_p): Likewise.
13341 (need_for_split_p, inherit_in_ebb): Likewise.
13342 * lra-lives.c (process_bb_lives): Likewise.
13343 * lra-remat.c (call_used_input_regno_present_p): Likewise.
13344 * postreload.c (reload_combine): Likewise.
13345 * regrename.c (find_rename_reg): Likewise.
13346 * reload1.c (reload_as_needed): Likewise.
13347 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13348 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13349 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13351 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13353 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
13354 (no_caller_save_reg_set): Delete.
13355 * caller-save.c (init_caller_save): Don't initialize it.
13356 * ira-conflicts.c (ira_build_conflicts): Calculate
13357 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
13359 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13361 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
13362 (target_hard_regs::x_savable_regs): New field.
13363 (call_fixed_reg_set): Delete.
13364 (savable_regs): New macro,
13365 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
13366 (init_reg_sets_1): Likewise. Initialize savable_regs.
13367 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
13368 for all registers. Set savable_regs instead of call_fixed_reg_set.
13369 (setup_save_areas, save_call_clobbered_regs): Replace uses of
13370 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
13371 * config/sh/sh.c (output_stack_adjust): Likewise.
13373 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13375 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
13376 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
13377 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
13379 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
13381 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
13382 * rtlanal.c (get_call_rtx_from): Likewise.
13383 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
13384 than the pattern to get_call_rtx_from.
13385 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
13386 an rtx_insn * instead of an rtx.
13387 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
13389 2019-09-10 Martin Liska <mliska@suse.cz>
13391 * common.opt: Use newly added WarnRemoved.
13392 * config/aarch64/aarch64.opt: Likewise.
13393 * config/arm/arm.opt: Likewise.
13394 * config/i386/i386.opt: Likewise.
13395 * config/ia64/ia64.opt: Likewise.
13396 * config/rs6000/rs6000.opt: Likewise.
13397 * doc/options.texi: Document WarnRemoved properly.
13398 * dwarf2out.c (gen_producer_string): Handle renamed
13399 OPT_SPECIAL_warn_removed.
13400 * lto-opts.c (lto_write_options): Likewise.
13401 * lto-wrapper.c (merge_and_complain): Likewise.
13402 * opts-common.c (decode_cmdline_option): Likewise.
13403 (prune_options): Likewise.
13404 (read_cmdline_option): Likewise.
13405 (control_warning_option): Likewise.
13406 * opts.c (print_filtered_help): Likewise.
13407 * optc-gen.awk: Parse for WarnRemoved and make usage
13408 of Deprecated an error.
13409 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
13411 2019-09-10 Arnaud Charlet <charlet@adacore.com>
13413 * doc/install.texi: Fix syntax for html generation.
13415 2019-09-10 Jakub Jelinek <jakub@redhat.com>
13417 PR middle-end/91680
13418 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
13419 the shift type to type.
13421 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13423 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
13425 (stack_protect_combined_test_insn): Likewise.
13427 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13428 Mickaël Guêné <mickael.guene@st.com>
13430 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
13431 * config/arm/arm.md (FDPIC_REGNUM): New constant.
13432 (load_tp_soft_fdpic): New pattern.
13433 (load_tp_soft): Disable in FDPIC mode.
13435 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13436 Mickaël Guêné <mickael.guene@st.com>
13438 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
13439 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
13440 (arm_call_tls_get_addr): Add FDPIC support.
13441 (legitimize_tls_address): Likewise.
13442 (arm_emit_tls_decoration): Likewise.
13444 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13445 Mickaël Guêné <mickael.guene@st.com>
13447 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
13449 (arm_trampoline_init): Likewise.
13450 (arm_trampoline_adjust_address): Likewise.
13451 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
13453 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13454 Mickaël Guêné <mickael.guene@st.com>
13456 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
13457 (legitimize_pic_address): Enforce binding rules on function
13458 pointers in FDPIC mode.
13459 (arm_assemble_integer): Likewise.
13461 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13462 Mickaël Guêné <mickael.guene@st.com>
13464 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
13465 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
13468 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13469 Mickaël Guêné <mickael.guene@st.com>
13471 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
13474 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13475 Mickaël Guêné <mickael.guene@st.com>
13477 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
13479 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
13481 * config/arm/arm.c (arm_option_override): Define pic register to
13483 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
13484 have no decl or go through PLT.
13485 (calculate_pic_address_constant): New function.
13486 (legitimize_pic_address): Call calculate_pic_address_constant.
13487 (arm_load_pic_register): Handle TARGET_FDPIC.
13488 (arm_is_segment_info_known): New function.
13489 (arm_pic_static_addr): Add support for FDPIC.
13490 (arm_load_function_descriptor): New function.
13491 (arm_emit_call_insn): Add support for FDPIC.
13492 (arm_assemble_integer): Add support for FDPIC.
13493 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
13494 Define. (FDPIC_REGNUM): New define.
13495 * config/arm/arm.md (call): Add support for FDPIC.
13496 (call_value): Likewise.
13497 (restore_pic_register_after_call): New pattern.
13498 (untyped_call): Disable if FDPIC.
13499 (untyped_return): Likewise.
13500 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
13502 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13503 Mickaël Guêné <mickael.guene@st.com>
13505 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
13506 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
13507 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
13508 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
13509 (CC1_SPEC): Use FDPIC_CC1_SPEC.
13510 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
13511 * config/arm/uclinuxfdpiceabi.h: New file.
13513 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13515 * config.gcc: Handle *-*-uclinuxfdpiceabi.
13517 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
13518 Mickaël Guêné <mickael.guene@st.com>
13520 * config/arm/arm.opt: Add -mfdpic option.
13521 * doc/invoke.texi: Add documentation for -mfdpic.
13523 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
13525 * expmed.c (extract_bit_field): Update function comment
13527 * expr.c (expand_expr_real): Update function comment
13529 (expand_misaligned_mem_ref): New helper function.
13530 (expand_expr_real_2): Use expand_misaligned_mem_ref.
13531 Remove duplicate assignment to "base" at case MEM_REF.
13532 Remove a shadowed variable "unsignedp" at case VCE.
13534 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13536 * regset.h (regs_invalidated_by_call_regset): Delete.
13537 (fixed_reg_set_regset): Likewise.
13538 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
13539 (fixed_reg_set_regset, persistent_obstack): Likewise.
13540 (init_reg_sets_1, globalize_reg): Update accordingly.
13541 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
13542 instead of a bitmap.
13543 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
13544 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
13545 instead of regs_invalidated_by_call_regset.
13546 (df_lr_confluence_n, df_md_confluence_n): Likewise.
13547 * df-scan.c (df_scan_start_dump): Likewise.
13548 * dse.c (copy_fixed_regs): Likewise.
13549 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
13551 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13553 * array-traits.h: New file.
13554 * coretypes.h (array_traits, bitmap_view): New types.
13555 * bitmap.h: Include "array-traits.h"
13556 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13557 (base_bitmap_view, bitmap_view): New classes.
13558 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
13559 * hard-reg-set.h: Include array-traits.h.
13560 (array_traits<HARD_REG_SET>): New struct.
13561 * regset.h (IOR_REG_SET_HRS): New macro.
13562 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
13563 rather than iterating over each hard register.
13564 * sched-deps.c (sched_analyze_insn): Likewise.
13565 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
13567 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13569 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
13570 instead of a HARD_REG_SET *.
13571 * ira-build.c (ior_hard_reg_conflicts): Likewise.
13572 (ira_build): Update call accordingly.
13573 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
13575 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13577 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
13578 (HARD_REG_SET::operator!=): Likewise.
13579 (hard_reg_set_equal_p): Delete.
13580 * cfgcleanup.c (old_insns_match_p): Use == instead of
13581 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
13582 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
13583 (add_allocno_hard_regs_to_forest): Likewise.
13584 (setup_allocno_available_regs_num): Likewise.
13585 * ira.c (setup_pressure_classes): Likewise.
13586 (setup_allocno_and_important_classes): Likewise.
13587 (setup_reg_class_relations): Likewise.
13588 * lra-lives.c (process_bb_lives): Likewise.
13589 * reg-stack.c (change_stack, convert_regs_1): Likewise.
13591 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13593 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
13594 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
13595 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
13596 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
13598 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
13599 * ira.c (setup_reg_renumber): Likewise.
13600 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13601 * regrename.c (regrename_find_superclass): Likewise.
13602 * reload1.c (find_reg): Likewise.
13604 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13606 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
13607 * caller-save.c (setup_save_areas): Use "&~" instead of
13608 AND_COMPL_HARD_REG_SET.
13609 (save_call_clobbered_regs): Likewise.
13610 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
13612 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13613 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13614 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
13615 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13616 (mips_conditional_register_usage): Likewise.
13617 * config/sh/sh.c (output_stack_adjust): Likewise.
13618 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
13619 (setup_profitable_hard_regs): Likewise.
13620 (get_conflict_and_start_profitable_regs): Likewise.
13621 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13622 (ira_build_conflicts): Likewise.
13623 * ira-costs.c (restrict_cost_classes): Likewise.
13624 (setup_regno_cost_classes_by_aclass): Likewise.
13625 * ira-lives.c (process_bb_node_lives): Likewise.
13626 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
13627 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
13628 (setup_allocno_and_important_classes, setup_class_translate_array)
13629 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
13631 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13632 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13633 (process_alt_operands, inherit_in_ebb): Likewise.
13634 * lra-eliminations.c (update_reg_eliminate): Likewise.
13635 * lra-lives.c (process_bb_lives): Likewise.
13636 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
13637 * resource.c (find_dead_or_set_registers): Likewise.
13638 (mark_target_live_regs): Likewise.
13639 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
13640 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13641 (implicit_clobber_conflict_p): Likewise.
13642 * shrink-wrap.c (requires_stack_frame_p): Likewise.
13643 (try_shrink_wrapping): Likewise.
13645 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13647 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
13648 (HARD_REG_SET::operator|=): Likewise.
13649 (IOR_HARD_REG_SET): Delete.
13650 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
13652 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13653 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
13654 * final.c (collect_fn_hard_reg_usage): Likewise.
13655 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
13656 * ira-build.c (merge_hard_reg_conflicts): Likewise.
13657 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
13658 (propagate_some_info_from_allocno): Likewise.
13659 (copy_info_to_removed_store_destinations): Likewise.
13660 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
13661 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
13662 (fast_allocation): Likewise.
13663 * ira-conflicts.c (ira_build_conflicts): Likewise.
13664 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
13665 (process_bb_node_lives): Likewise.
13666 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
13667 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13668 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13669 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
13670 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
13671 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
13672 (process_bb_lives): Likewise.
13673 * lra-spills.c (assign_spill_hard_regs): Likewise.
13674 * postreload.c (reload_combine): Likewise.
13675 * reginfo.c (init_reg_sets_1): Likewise.
13676 * regrename.c (merge_overlapping_regs, find_rename_reg)
13677 (merge_chains): Likewise.
13678 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
13679 (find_reload_regs, finish_spills, choose_reload_regs_init)
13680 (emit_reload_insns): Likewise.
13681 * reorg.c (redundant_insn): Likewise.
13682 * resource.c (find_dead_or_set_registers, mark_set_resources)
13683 (mark_target_live_regs): Likewise.
13684 * rtlanal.c (find_all_hard_reg_sets): Likewise.
13685 * sched-deps.c (sched_analyze_insn): Likewise.
13686 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13687 (find_best_reg_for_expr): Likewise.
13688 * shrink-wrap.c (try_shrink_wrapping): Likewise.
13690 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13692 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
13693 (HARD_REG_SET::operator&): Likewise.
13694 (AND_HARD_REG_SET): Delete.
13695 * caller-save.c (setup_save_areas): Use "&" instead of
13697 (save_call_clobbered_regs): Likewise.
13698 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13699 * config/m32c/m32c.c (reduce_class): Likewise.
13700 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13701 * final.c (get_call_reg_set_usage): Likewise.
13702 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
13703 (setup_left_conflict_sizes_p): Likewise.
13704 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13705 (ira_build_conflicts): Likewise.
13706 * ira-costs.c (restrict_cost_classes): Likewise.
13707 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
13708 (setup_reg_class_relations): Likewise.
13709 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
13710 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
13711 * resource.c (find_dead_or_set_registers): Likewise.
13712 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13714 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13716 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
13717 (COMPL_HARD_REG_SET): Delete.
13718 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
13719 of COMPL_HARD_REG_SET.
13720 (try_rename_operands): Likewise.
13721 * config/sh/sh.c (push_regs): Likewise.
13722 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13723 * lra-constraints.c (contains_reg_p): Likewise.
13724 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
13726 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13728 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
13729 * caller-save.c (save_call_clobbered_regs): Use assignment instead
13730 of COPY_HARD_REG_SET.
13731 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
13732 (epiphany_conditional_register_usage): Likewise.
13733 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
13734 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13735 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
13736 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
13737 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
13738 * config/mips/mips.c (mips_class_max_nregs): Likewise.
13739 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
13740 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
13741 * config/sh/sh.c (output_stack_adjust): Likewise.
13742 * final.c (collect_fn_hard_reg_usage): Likewise.
13743 (get_call_reg_set_usage): Likewise.
13744 * ira-build.c (ira_create_object, remove_low_level_allocnos)
13745 (ira_flattening): Likewise.
13746 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
13747 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
13748 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
13749 (ira_reassign_pseudos): Likewise.
13750 * ira-conflicts.c (print_allocno_conflicts): Likewise.
13751 (ira_build_conflicts): Likewise.
13752 * ira-costs.c (restrict_cost_classes): Likewise.
13753 (setup_regno_cost_classes_by_aclass): Likewise.
13754 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
13755 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
13756 (setup_stack_reg_pressure_class, setup_pressure_classes)
13757 (setup_allocno_and_important_classes, setup_class_translate_array)
13758 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
13759 (ira_setup_eliminable_regset): Likewise.
13760 * lra-assigns.c (find_hard_regno_for_1): Likewise.
13761 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
13762 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
13763 (process_alt_operands, inherit_in_ebb): Likewise.
13764 * lra-lives.c (process_bb_lives): Likewise.
13765 * lra-spills.c (assign_spill_hard_regs): Likewise.
13766 * lra.c (lra): Likewise.
13767 * mode-switching.c (new_seginfo): Likewise.
13768 * postreload.c (reload_combine): Likewise.
13769 * reg-stack.c (straighten_stack): Likewise.
13770 * reginfo.c (save_register_info, restore_register_info): Likewise.
13771 (init_reg_sets_1, record_subregs_of_mode): Likewise
13772 * regrename.c (create_new_chain, rename_chains): Likewise.
13773 * reload1.c (order_regs_for_reload, find_reg): Likewise.
13774 (find_reload_regs): Likewise.
13775 * resource.c (find_dead_or_set_registers): Likewise.
13776 (mark_target_live_regs): Likewise.
13777 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13779 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13781 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
13782 (note_pattern_stores): Declare.
13783 (note_stores): Take an rtx_insn *.
13784 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
13785 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
13786 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
13787 (note_stores): Take an rtx_insn * as argument and process
13788 CALL_INSN_FUNCTION_USAGE. Rename old function to...
13789 (note_pattern_stores): ...this.
13790 (find_first_parameter_load): Pass the insn rather than
13791 its pattern to note_stores.
13792 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
13793 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
13794 (insert_one_insn): Likewise.
13795 * combine.c (combine_instructions): Likewise.
13796 (likely_spilled_retval_p): Likewise.
13797 (try_combine): Use note_pattern_stores instead of note_stores.
13798 (record_dead_and_set_regs): Pass the insn rather than its pattern
13800 (reg_dead_at_p): Likewise.
13801 * config/bfin/bfin.c (workaround_speculation): Likewise.
13802 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
13803 rather than an rtx.
13804 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
13805 instead of note_stores.
13806 (frv_optimize_membar_local): Pass the insn rather than its pattern
13808 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
13809 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
13810 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
13811 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
13812 (mips_reorg_process_insns): Likewise.
13813 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
13814 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
13816 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
13817 its pattern to note_stores.
13818 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
13820 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
13821 the insn to note_stores.
13822 (prescan_insns_for_dce): Update call accordingly.
13823 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
13825 * df-problems.c (can_move_insns_across): Likewise.
13826 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
13827 * function.c (assign_parm_setup_reg): Likewise.
13828 * gcse-common.c (record_last_mem_set_info_common): Likewise.
13829 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
13830 (single_set_gcse): Likewise.
13831 * ira.c (validate_equiv_mem): Likewise.
13832 (update_equiv_regs): Use note_pattern_stores rather than note_stores
13834 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
13835 pattern to note_stores.
13836 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13837 * loop-iv.c (simplify_using_initial_values): Likewise.
13838 * mode-switching.c (optimize_mode_switching): Likewise.
13839 * optabs.c (emit_libcall_block_1): Likewise.
13840 (expand_atomic_compare_and_swap): Likewise.
13841 * postreload-gcse.c (load_killed_in_block_p): Likewise.
13842 (record_opr_changes): Likewise. Remove explicit handling of
13843 CALL_INSN_FUNCTION_USAGE.
13844 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
13845 * regcprop.c (kill_clobbered_values): Likewise.
13846 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
13848 * regrename.c (build_def_use): Likewise.
13849 * reload1.c (reload): Use note_pattern_stores instead of note_stores
13850 for mark_not_eliminable.
13851 (reload_as_needed): Pass the insn rather than its pattern
13853 (emit_output_reload_insns): Likewise.
13854 * resource.c (mark_target_live_regs): Likewise.
13855 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13856 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
13857 instead of note_stores.
13858 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
13859 its pattern to note_stores.
13860 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
13861 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
13863 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13865 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
13866 than a #define. Use a structure rather than an array as the
13867 fallback definition. Remove special cases for low array sizes.
13868 (const_hard_reg_set): New typedef.
13869 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
13870 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
13871 (hard_reg_set_empty_p): Likewise.
13872 (SET_HARD_REG_BIT): Use a function rather than a macro to
13873 handle the case in which HARD_REG_SET is a structure.
13874 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
13875 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
13876 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
13877 (IOR_COMPL_HARD_REG_SET): Likewise.
13878 (hard_reg_set_iterator::pset): Constify the pointer target.
13879 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
13880 of a "const HARD_REG_SET". Update the handling of non-integer
13882 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
13883 * reload.h: Likewise.
13884 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
13885 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
13886 of a "const HARD_REG_SET".
13887 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
13888 (range_in_hard_reg_set_p): Likewise.
13889 * ira-costs.c (restrict_cost_classes): Likewise.
13890 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
13891 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
13892 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
13893 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
13894 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
13895 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
13896 take an unsigned int and open-code the HARD_REG_SET operations.
13898 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
13900 * Makefile.in (OBJS): Remove bt-load.o.
13901 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
13902 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13903 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
13904 document that the option no longer does anything.
13905 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
13906 * target.def (branch_target_register_class): Delete.
13907 (branch_target_register_callee_saved): Likewise.
13908 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
13909 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
13910 * doc/tm.texi: Regenerate.
13911 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
13912 (make_pass_branch_target_load_optimize2): Likewise.
13913 * passes.def (pass_branch_target_load_optimize1): Likewise.
13914 (pass_branch_target_load_optimize2): Likewise.
13915 * targhooks.h (default_branch_target_register_class): Likewise.
13916 * targhooks.c (default_branch_target_register_class): Likewise.
13917 * opt-suggestions.c (test_completion_valid_options): Remove
13918 -fbtr-bb-exclusive from the list of test options.
13919 * bt-load.c: Remove.
13921 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
13923 * match.pd: Add flag_unsafe_math_optimizations check
13924 before deciding on the widest type in a binary math operation.
13926 2019-09-09 Martin Liska <mliska@suse.cz>
13928 * config/i386/i386.opt: Update comment of removed
13929 options that are preserved only for backward
13932 2019-09-09 Jakub Jelinek <jakub@redhat.com>
13935 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
13936 instead of __v16qs.
13939 * config/i386/avxintrin.h (__v32qs): New typedef.
13940 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
13941 instead of __v32qi.
13943 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13945 * doc/invoke.texi (Option Summary): Cover eBPF.
13946 (eBPF Options): New section.
13947 * doc/extend.texi (BPF Built-in Functions): Likewise.
13948 (BPF Kernel Helpers): Likewise.
13950 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13952 * config.gcc: Support for bpf-*-* targets.
13953 * common/config/bpf/bpf-common.c: New file.
13954 * config/bpf/t-bpf: Likewise.
13955 * config/bpf/predicates.md: Likewise.
13956 * config/bpf/constraints.md: Likewise.
13957 * config/bpf/bpf.opt: Likewise.
13958 * config/bpf/bpf.md: Likewise.
13959 * config/bpf/bpf.h: Likewise.
13960 * config/bpf/bpf.c: Likewise.
13961 * config/bpf/bpf-protos.h: Likewise.
13962 * config/bpf/bpf-opts.h: Likewise.
13963 * config/bpf/bpf-helpers.h: Likewise.
13964 * config/bpf/bpf-helpers.def: Likewise.
13966 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13968 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13971 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
13973 * opt-functions.awk (integer_range_info): Make sure values are in
13974 numeric context before operating with them.
13976 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
13978 * genemit.c (gen_split): Print the filename and line number where the
13979 splitter (or peephole2) was defined, to the dump file.
13981 2019-09-07 Jakub Jelinek <jakub@redhat.com>
13983 PR tree-optimization/91665
13984 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
13985 incompatible with the type of PHI result.
13987 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
13990 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
13991 gen_unaligned_storedi for 4-byte aligned addresses.
13993 2019-09-06 Jim Wilson <jimw@sifive.com>
13995 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
13998 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14000 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
14002 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
14004 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
14005 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
14007 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
14010 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
14011 cost of SSE->integer and integer->SSE moves from 2 to 6.
14012 (core_cost): Ditto.
14014 2019-09-06 Jakub Jelinek <jakub@redhat.com>
14016 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
14017 before testing TYPE_TRANSPARENT_AGGR.
14018 * calls.c (initialize_argument_information, load_register_parameters):
14021 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
14023 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
14025 (cmp_ior): Likewise.
14027 2019-09-06 Martin Liska <mliska@suse.cz>
14029 * doc/match-and-simplify.texi: Separate tuples with ;.
14031 2019-09-06 Martin Liska <mliska@suse.cz>
14034 * Makefile.in: Remove tlink.o.
14035 * collect2.c (do_link): New function isolated
14038 * collect2.h (do_tlink): Remove declaration of do_tlink.
14039 * doc/extend.texi: Remove documentation of -frepo.
14040 * doc/invoke.texi: Likewise.
14041 * doc/sourcebuild.texi: Remove cleanup-repo-files.
14044 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14045 Jim Wilson <jimw@sifive.com>
14048 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
14049 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
14050 paradoxical_subreg_p (operands[0]).
14051 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
14052 use as intermediate value.
14054 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
14056 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
14057 (sync_compare_and_swap<mode>_insn): Likewise.
14059 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
14061 PR middle-end/91615
14062 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
14063 without movmisalign optab.
14065 2019-09-05 Jakub Jelinek <jakub@redhat.com>
14067 PR middle-end/91001
14068 PR middle-end/91105
14069 PR middle-end/91106
14070 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
14071 types, use type of their first field instead of type of
14072 args[i].tree_value.
14074 2019-09-05 Richard Biener <rguenther@suse.de>
14076 PR rtl-optimization/91656
14077 * postreload-gcse.c (record_last_mem_set_info): Revert addition
14080 2019-09-05 Richard Biener <rguenther@suse.de>
14082 PR middle-end/90501
14083 * tree-inline.c (declare_return_variable): Mark the return
14084 slot as addressable after building an address of it.
14086 2019-09-05 Arnaud Charlet <charlet@adacore.com>
14088 * doc/install.texi: Update and clarify requirements to build GNAT.
14090 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
14092 PR middle-end/91577
14093 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
14094 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
14095 call to be in memory.
14096 (pass_expand::execute): Call discover_nonconstant_array_refs before
14097 setting currently_expanding_to_rtl.
14099 2019-09-04 Caroline Tice <cmtice@google.com>
14101 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
14102 specified together.
14104 2019-09-04 Marek Polacek <polacek@redhat.com>
14106 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
14108 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
14111 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14112 for QI and HImode moves between SSE and general registers.
14114 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14117 * doc/invoke.texi: Document -Wenum-conversion.
14119 2019-09-04 Richard Biener <rguenther@suse.de>
14121 PR rtl-optimization/36262
14122 * postreload-gcse.c: Include intl.h and gcse.h.
14123 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
14124 to avoid linear list walk.
14125 (record_last_mem_set_info): Gate off if not computing transparentness.
14126 (get_bb_avail_insn): If transparentness isn't computed give up
14128 (gcse_after_reload_main): Skip compute_transp and extended PRE
14129 if gcse_or_cprop_is_too_expensive says so.
14131 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14133 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
14135 (msp430_select_section): Handle decls with the "noinit" attribute with
14136 default_elf_select_section.
14137 Handle SECCAT_RODATA_MERGE_* section types with
14138 default_elf_select_section.
14139 Add comments about handling of unsupported section types.
14140 (msp430_section_type_flags): Remove handling of the noinit section.
14142 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14144 * config/msp430/msp430.c (msp430_attr): Remove warnings about
14145 conflicting msp430-specific attributes.
14146 (msp430_section_attr): Likewise.
14147 Add warnings about conflicts with generic "noinit" and "section"
14149 Fix grammar in -mlarge error message.
14150 (msp430_data_attr): Rename to msp430_persist_attr.
14151 Add warnings about conflicts with generic "noinit" and "section"
14153 Add warning for when variable is not initialized.
14154 Chain conditionals which prevent the attribute being added.
14155 (ATTR_EXCL): New helper.
14156 (attr_reent_exclusions): New exclusion table.
14157 (attr_naked_exclusions): Likewise.
14158 (attr_crit_exclusions): Likewise.
14159 (attr_lower_exclusions): Likewise.
14160 (attr_upper_exclusions): Likewise.
14161 (attr_either_exclusions): Likewise.
14162 (attr_persist_exclusions): Likewise.
14163 (msp430_attribute_table): Update with exclusion rules.
14164 (msp430_output_aligned_decl_common): Don't output common symbol if decl
14167 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14169 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
14170 (msp430_handle_generic_attribute): New function.
14171 * doc/tm.texi: Regenerate.
14172 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
14173 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14174 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
14175 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
14177 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
14179 PR tree-optimization/91504
14180 * match.pd: Add ((~a & b) ^a) --> (a | b).
14182 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14185 * config/i386/i386-expand.c (split_double_mode): If there is more than
14186 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
14187 already split matching MEM operand instead of calling adjust_address
14190 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
14192 * config.gcc: Obsolete spu target. Remove references to spu.
14193 * configure.ac: Remove references to spu.
14194 * configure: Regenerate.
14195 * config/spu/: Remove directory.
14196 * common/config/spu/: Remove directory.
14198 * doc/extend.texi: Remove references to spu.
14199 * doc/invoke.texi: Likewise.
14200 * doc/md.texi: Likewise.
14201 * doc/sourcebuild.texi: Likewise.
14203 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14205 PR middle-end/91603
14206 PR middle-end/91612
14207 PR middle-end/91613
14208 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
14209 and SSA_NAME referring to CONSTANT_P correctly.
14211 2019-09-03 Richard Biener <rguenther@suse.de>
14213 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
14214 (vn_nary_op_insert): Likewise.
14215 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
14216 (vn_nary_op_lookup): Likewise.
14217 (vn_nary_op_insert): Likewise.
14219 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
14221 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
14222 (*op0, 1) instead of XEXP (*op1, 0).
14224 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14226 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
14227 (aarch64_fjcvtzs): New define_insn.
14228 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
14229 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
14231 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
14232 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
14233 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14234 __ARM_FEATURE_JCVT where appropriate.
14235 * config/aarch64/arm_acle.h (__jcvt): Define.
14237 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14239 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
14240 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
14241 (aarch64_<frintnzs_op><mode>): New define_insn.
14242 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
14243 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
14244 __ARM_FEATURE_FRINT when appropriate.
14245 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
14246 frint32x, frint64z, frint64x.
14247 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
14248 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
14249 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
14250 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
14251 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
14252 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
14253 * config/aarch64/iterators.md (VSFDF): Define.
14254 (FRINTNZX): Likewise.
14255 (frintnzs_op): Likewise.
14257 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
14259 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
14260 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
14262 * config/aarch64/aarch64-tune.md: Regenerated.
14263 * doc/invoke.texi: Document the new processors.
14265 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14267 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
14271 (sve2-sm4): Likewise.
14272 (sveaes): Likewise.
14273 (svesha3): Likewise.
14274 (svebitperm): Likewise.
14276 2019-09-03 Jakub Jelinek <jakub@redhat.com>
14277 Richard Biener <rguenther@suse.de>
14279 PR tree-optimization/91597
14280 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
14281 BIT_AND_EXPR optimization for pointers, even if both operand
14282 ranges don't include NULL, the result can be NULL.
14284 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14286 PR middle-end/91605
14287 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
14288 (non_mem_decl_p): ...this.
14289 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
14290 (expand_assignment): Call mem_ref_referes_to_non_mem_p
14291 unconditionally as before.
14293 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14296 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
14297 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
14298 * tree.def (LTGT_EXPR): Likewise.
14299 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
14301 2019-09-02 Jakub Jelinek <jakub@redhat.com>
14304 * fold-const.c (range_check_type): For enumeral and boolean
14305 type, pass 1 to type_for_size langhook instead of
14306 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
14307 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
14308 (build_range_check): Don't call unsigned_type_for for pointer types.
14309 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
14310 range_check_type result.
14312 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
14314 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
14315 (replace_ref): Do not replace a chain of only two candidates which are
14316 valid memory references.
14318 2019-09-02 Martin Liska <mliska@suse.cz>
14320 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
14321 Bail out when we'll end up with the same number of clusters as
14323 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
14324 (jump_table_cluster::can_be_handled): Remove the guard
14325 as it's already handled in ::is_enabled. Allocate output
14326 after early bail out.
14328 2019-09-02 Martin Liska <mliska@suse.cz>
14330 PR gcov-profile/91601
14331 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
14332 (path_contains_zero_or_negative_cycle_arc): ... this and handle
14333 also negative edges.
14334 (circuit): Handle also negative edges as they can happen
14335 in some situations.
14337 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
14340 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
14341 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
14342 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
14344 2019-09-01 Jakub Jelinek <jakub@redhat.com>
14346 PR middle-end/91623
14347 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
14348 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
14349 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
14353 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
14354 GIMPLE_ASM TREE_LIST operands.
14356 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
14358 * doc/generic.texi (Unary and Binary Expressions): Mark up
14359 an instance of TYPE_MIN.
14361 2019-08-31 Stafford Horne <shorne@gmail.com>
14363 * config/or1k/constraints.md (t): New constraint.
14364 * config/or1k/or1k.h (GOT_REGS): New register class.
14365 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
14367 2019-08-30 Jim Wilson <jimw@sifive.com>
14369 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
14370 and -fpic and -mplt then disable -msave-restore and warn.
14372 2019-08-30 Martin Sebor <msebor@redhat.com>
14374 PR middle-end/91599
14375 * tree-ssa-strlen.c (handle_store): Use a fallback location if
14376 the statement doesn't have one.
14377 * gimple-pretty-print.c (percent_G_format): Same.
14379 PR middle-end/91584
14380 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
14381 before using them to validate MEM_REF offset.
14383 2019-08-30 Marek Polacek <polacek@redhat.com>
14385 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
14387 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14389 * config/arm/arm.md (unaligned_loaddi,
14390 unaligned_storedi): New unspec insn patterns.
14391 * config/arm/neon.md (unaligned_storev8qi): Likewise.
14392 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
14393 and unaligned_storedi for 4-byte aligned memory.
14394 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
14395 4-byte aligned memory.
14397 2019-08-30 Martin Jambor <mjambor@suse.cz>
14399 tree-optimization/91579
14400 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
14401 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
14403 (arg_needs_copy_p): Removed.
14404 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
14406 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
14408 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14410 * config/i386/i386-features.c
14411 (general_scalar_chain::compute_convert_gain):
14412 Correct cost for double-word shifts.
14413 (general_scalar_to_vector_candidate_p): Reject count operands
14414 greater or equal to mode bitsize.
14416 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
14418 * config/i386/i386.c (inline_secondary_memory_needed): Return true
14419 for moves between SSE and non-general registers and between
14420 mask and non-general registers.
14421 (ix86_register_move_cost): Remove stalled comment.
14423 2019-08-29 Richard Biener <rguenther@suse.de>
14425 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14426 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
14428 2019-08-29 Richard Biener <rguenther@suse.de>
14431 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
14432 Do not emit scalar copies for debug-insns, instead replace
14433 their uses with the reg copy used in the chain or reset them
14434 if there is a reaching definition outside of the chain as well.
14436 2019-08-29 Jakub Jelinek <jakub@redhat.com>
14439 * config/i386/i386-expand.c (expand_vec_perm_movs,
14440 expand_vec_perm_blend, expand_vec_perm_vpermil,
14441 expand_vec_perm_pshufb, expand_vec_perm_1,
14442 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
14443 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
14444 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
14445 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
14446 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
14447 comments - replace ix86_expand_vec_perm_builtin_1 with
14448 ix86_expand_vec_perm_const_1.
14449 (expand_vec_perm2_vperm2f128_vblend): New function.
14450 (ix86_expand_vec_perm_const_1): New forward declaration. Call
14451 expand_vec_perm2_vperm2f128_vblend as last resort.
14452 (canonicalize_perm): Formatting fix.
14454 PR tree-optimization/91351
14455 * tree-cfg.c (generate_range_test): Use range_check_type instead of
14457 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
14458 range_check_type returns NULL.
14459 * tree-switch-conversion.c (switch_conversion::build_one_array):
14460 Use range_check_type instead of unsigned_type_for, don't perform
14461 linear opt if it returns NULL.
14462 (bit_test_cluster::find_bit_tests): Formatting fix.
14463 (bit_test_cluster::emit): Use range_check_type instead of
14465 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
14468 2019-08-29 Richard Biener <rguenther@suse.de>
14470 PR tree-optimization/91568
14471 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
14472 (vect_update_max_nunits): Add overload for poly_uint64.
14473 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
14474 (vect_build_slp_tree): Record max_nunits into the subtree
14475 and merge it upwards.
14476 (vect_print_slp_tree): Print max_nunits.
14478 2019-08-28 Marek Polacek <polacek@redhat.com>
14480 Implement P1152R4: Deprecating some uses of volatile.
14482 * doc/invoke.texi: Document -Wvolatile.
14484 2019-08-28 Marek Polacek <polacek@redhat.com>
14486 PR c++/91360 - Implement C++20 P1143R2: constinit.
14487 * doc/invoke.texi: Document -Wc++20-compat.
14489 2019-08-28 Martin Sebor <msebor@redhat.com>
14491 PR tree-optimization/91457
14492 * builtins.c (component_size): New function.
14493 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
14494 * builtins.h (compute_objsize): Add argument.
14495 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
14496 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
14497 (vrp_prop::check_mem_ref): Same.
14498 (vrp_prop::search_for_addr_array): Set no-warning bit.
14499 (check_array_bounds): Same.
14501 2019-08-28 Martin Sebor <msebor@redhat.com>
14504 * opts-common.c (option_enabled): Correct checking for language
14507 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
14509 * config/i386/i386.c (ix86_register_move_cost): Do not
14510 limit the cost of moves to/from XMM register to minimum 8.
14512 2019-08-28 Martin Jambor <mjambor@suse.cz>
14515 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
14516 checking assert a normal assert to test it really is redundant.
14517 * ipa-prop.c (compute_complex_assign_jump_func): Removed
14519 (update_jump_functions_after_inlining): Removed combining unary
14520 arithmetic operations with an ancestor jump function.
14521 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
14524 2019-08-28 Richard Biener <rguenther@suse.de>
14526 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
14527 add the MD problem.
14529 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14530 Richard Biener <rguenther@suse.de>
14532 * expr.c (expand_assignment): Handle misaligned DECLs.
14533 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
14534 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
14536 (assign_parm_setup_stack): Allocate properly aligned stack slots.
14537 * varasm.c (build_constant_desc): Align constants of misaligned types.
14538 * config/arm/predicates.md (aligned_operand): New predicate.
14539 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
14540 aligned_operand to check restrictions on memory addresses.
14541 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
14542 * config/arm/vec-common.md (mov<VALL>): Likewise.
14544 2019-08-28 Jakub Jelinek <jakub@redhat.com>
14547 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
14548 V_128 iterator instead of VI_128.
14550 2019-08-28 Martin Liska <mliska@suse.cz>
14552 PR tree-optimization/90970
14553 * builtins.c (check_access): Remove assignment to maxread
14554 as it hasn't been used since when it was introduced in r255755.
14556 2019-08-27 Martin Sebor <msebor@redhat.com>
14558 PR tree-optimization/91567
14559 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
14560 of unknown strings.
14561 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
14562 to PTRDIFF_MAX - 2.
14564 2019-08-27 Jeff Law <law@redhat.com>
14566 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
14567 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
14569 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
14572 * config/i386/i386-features.c (convert_scalars_to_vector):
14573 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
14574 crtl->stack_realign_processed. Update crtl->drap_reg by calling
14575 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
14576 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
14578 2019-08-27 Richard Biener <rguenther@suse.de>
14580 * config/i386/i386-features.h
14581 (general_scalar_chain::~general_scalar_chain): Add.
14582 (general_scalar_chain::insns_conv): New bitmap.
14583 (general_scalar_chain::n_sse_to_integer): New.
14584 (general_scalar_chain::n_integer_to_sse): Likewise.
14585 (general_scalar_chain::make_vector_copies): Adjust signature.
14586 * config/i386/i386-features.c
14587 (general_scalar_chain::general_scalar_chain): Outline,
14588 initialize new members.
14589 (general_scalar_chain::~general_scalar_chain): New.
14590 (general_scalar_chain::mark_dual_mode_def): Record insns
14591 we need to insert conversions at and count them.
14592 (general_scalar_chain::compute_convert_gain): Account
14593 for conversion instructions at chain boundary.
14594 (general_scalar_chain::make_vector_copies): Generate a single
14595 copy for a def by a specific insn.
14596 (general_scalar_chain::convert_registers): First populate
14597 defs_map, then make copies at out-of chain insns.
14599 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
14601 * config/arm/arm.md (stack_protect_set_insn): Add security-related
14603 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
14605 2019-08-27 Martin Liska <mliska@suse.cz>
14607 * cgraph.c (cgraph_node::remove): Remove dead assignment before
14609 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
14610 Enclose in anonymous namespace.
14611 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
14612 hard_register initialization in braces.
14613 * tree-vrp.h (value_range_base::supports_type_p): Return false
14614 for function with boolean return type.
14616 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
14618 * config/i386/i386.c (emit_i387_cw_initialization)
14619 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
14621 2019-08-26 Martin Sebor <msebor@redhat.com>
14624 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
14625 (sprintf_dom_walker): Remove class.
14626 (get_int_range): Make argument const.
14627 (directive::fmtfunc, directive::set_precision): Same.
14628 (format_none): Same.
14629 (build_intmax_type_nodes): Same.
14630 (adjust_range_for_overflow): Same.
14631 (format_floating): Same.
14632 (format_character): Same.
14633 (format_string): Same.
14634 (format_plain): Same.
14635 (get_int_range): Cast away constness.
14636 (format_integer): Same.
14637 (get_string_length): Call get_range_strlen_dynamic. Handle
14638 null lendata.maxbound.
14639 (should_warn_p): Adjust argument scope qualifier.
14640 (maybe_warn): Same.
14641 (format_directive): Same.
14642 (parse_directive): Same.
14643 (is_call_safe): Same.
14644 (try_substitute_return_value): Same.
14645 (sprintf_dom_walker::handle_printf_call): Rename...
14646 (handle_printf_call): ...to this. Initialize target to host charmap
14647 here instead of in pass_sprintf_length::execute.
14648 (struct call_info): Make global.
14649 (sprintf_dom_walker::compute_format_length): Make global.
14650 (sprintf_dom_walker::handle_gimple_call): Same.
14651 * passes.def (pass_sprintf_length): Replace with pass_strlen.
14652 * print-rtl.c (print_pattern): Reduce the number of spaces to
14653 avoid -Wformat-truncation.
14654 * tree-pass.h (make_pass_warn_printf): New function.
14655 * tree-ssa-strlen.c (strlen_optimize): New variable.
14656 (get_string_length): Add comments.
14657 (get_range_strlen_dynamic): New function.
14658 (check_and_optimize_call): New function.
14659 (handle_integral_assign): New function.
14660 (strlen_check_and_optimize_stmt): Factor code out into
14661 strlen_check_and_optimize_call and handle_integral_assign.
14662 (strlen_dom_walker::evrp): New member.
14663 (strlen_dom_walker::before_dom_children): Use evrp member.
14664 (strlen_dom_walker::after_dom_children): Use evrp member.
14665 (printf_strlen_execute): New function.
14666 (pass_strlen::gate): Update to handle printf calls.
14667 (dump_strlen_info): New function.
14668 (pass_data_warn_printf): New variable.
14669 (pass_warn_printf): New class.
14670 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
14671 (handle_printf_call): Same.
14672 * tree-vrp.c (value_range_base::type): Adjust assertion.
14673 * vr-values.c (vr_values::update_value_range): Use type of the first
14674 argument rather than the second.
14676 2019-08-26 Richard Biener <rguenther@suse.de>
14678 * config/i386/i386-features.c (general_remove_non_convertible_regs):
14680 (convert_scalars_to_vector): Do not call it.
14682 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14683 Uros Bizjak <ubizjak@gmail.com>
14685 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
14686 CASE_MATHFN_FLOATN for roundeven.
14687 * config/i386/i386.c (ix86_i387_mode_needed): Add case
14689 (ix86_mode_needed): Likewise.
14690 (ix86_mode_after): Likewise.
14691 (ix86_mode_entry): Likewise.
14692 (ix86_mode_exit): Likewise.
14693 (ix86_emit_mode_set): Likewise.
14694 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
14695 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
14696 (ix86_entity): Add I387_ROUNDEVEN.
14697 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
14698 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
14699 (define_int_iterator): Likewise.
14700 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
14701 (define_constant): Define ROUND_ROUNDEVEN mode.
14702 (define_attr): Add roundeven mode for i387_cw.
14703 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
14704 * internal-fn.def (ROUNDEVEN): New builtin function.
14705 * optabs.def (roundeven_optab): New optab.
14707 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
14709 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
14711 * builtins.def: Added function definitions for roundeven function
14713 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
14714 function call. Adjust condition for floor, ceil, trunc and round.
14715 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
14716 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
14717 (integer_valued_real_call_p): Added case for roundeven function.
14718 * real.c (is_even): New function. Returns true if real number is even,
14719 otherwise returns false.
14720 (is_halfway_below): New function. Returns true if real number is
14721 halfway between two integers, else return false.
14722 (real_roundeven): New function. Round real number to nearest integer,
14723 rounding halfway cases towards even.
14724 * real.h (real_value): Added descriptive comments. Added function
14725 declaration for roundeven function.
14726 * doc/extend.texi (Other Builtins): List roundeven variants among
14727 functions which can be handled as builtins.
14729 2019-08-26 Richard Biener <rguenther@suse.de>
14733 * config/i386/i386-features.h (general_scalar_chain::defs_map):
14735 (general_scalar_chain::replace_with_subreg): Remove.
14736 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14737 (general_scalar_chain::convert_reg): Adjust signature.
14738 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
14739 iterate over all defs of a reg.
14740 (general_scalar_chain::replace_with_subreg): Remove.
14741 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
14742 (general_scalar_chain::make_vector_copies): Populate defs_map,
14743 place copy only after defs that are used as vectors in the chain.
14744 (general_scalar_chain::convert_reg): Emit a copy for a specific
14745 def in a specific instruction.
14746 (general_scalar_chain::convert_op): All reg uses are converted here.
14747 (general_scalar_chain::convert_insn): Emit copies for scalar
14748 uses of defs here. Replace uses with the copies we created.
14749 Replace and convert the def. Adjust REG_DEAD notes, remove
14750 REG_EQUIV/EQUAL notes.
14751 (general_scalar_chain::convert_registers): Only handle copies
14752 into the chain here.
14754 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14756 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
14758 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
14760 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
14761 Add nop_convert case.
14762 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
14763 Fold all statements if requested.
14764 * tree-ssa-propagate.h (class substitute_and_fold_engine):
14765 Allow to fold all statements.
14766 * tree-vrp.c (class vrp_folder):
14767 Let substitute_and_fold_engine fold all statements.
14769 2019-08-26 Richard Biener <rguenther@suse.de>
14771 PR tree-optimization/91526
14772 * passes.def: Note that after late FRE we do TODO_update_address_taken.
14773 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
14774 TODO_update_address_taken.
14776 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
14778 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
14781 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14783 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
14784 machine mode for unspec_volatile operand.
14786 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
14788 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
14789 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
14790 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
14791 (prefer_neon_for_64bits): Remove.
14792 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
14793 (tune_params): Remove PREF_NEON_64_FALSE uses.
14794 (arm_option_override): Remove prefer_neon selection code.
14795 (arm_print_tune_info): Remove prefer_neon_for_64bits.
14796 * config/arm/arm-protos.h (tune_params): Remove
14797 prefer_neon_for_64bits.
14798 (prefer_neon_for_64bits): Remove.
14800 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
14803 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
14804 and issue any diagnostics needed before collecting the pre-PCH
14807 2019-08-23 Jakub Jelinek <jakub@redhat.com>
14809 PR middle-end/91283
14810 * common.opt (fexcess-precision=): Add Optimization flag. Use
14811 flag_excess_precision variable instead of
14812 flag_excess_precision_cmdline.
14813 * flags.h (class target_flag_state): Remove x_flag_excess_precision
14815 (flag_excess_precision): Don't define.
14816 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
14817 flag_excess_precision_cmdline. Remove comment.
14818 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
14819 and x_flag_excess_precision instead of
14820 frontend_set_flag_excess_precision_cmdline and
14821 x_flag_excess_precision_cmdline.
14822 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
14823 x_flag_excess_precision_cmdline.
14824 * toplev.c (init_excess_precision): Remove.
14825 (lang_dependent_init_target): Don't call it.
14827 2019-08-23 Martin Liska <mliska@suse.cz>
14829 * lto-wrapper.c (run_gcc): When setting jobserver
14830 set also parallel to 1. This was done so before r273908.
14832 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
14834 * config/arm/arm-cpus.in (cortex-m35p): New entry.
14835 (cortex-a76ae): Likewise.
14836 (cortex-a77): Likewise
14837 * config/arm/arm-tables.opt: Regenerate.
14838 * config/arm/arm-tune.md: Likewise.
14839 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
14840 cortex-a77 CPU options.
14842 2019-08-23 Martin Liska <mliska@suse.cz>
14844 * profile.c (instrument_values): Do not set
14845 0 as last argument.
14846 * tree-profile.c (gimple_gen_interval_profiler): Remove
14848 (gimple_gen_pow2_profiler): Likewise.
14849 (gimple_gen_topn_values_profiler): Likewise.
14850 (gimple_gen_ic_profiler): Likewise.
14851 (gimple_gen_time_profiler): Likewise.
14852 (gimple_gen_average_profiler): Likewise.
14853 (gimple_gen_ior_profiler): Likewise.
14854 * value-prof.c (dump_histogram_value): Use default
14855 in switch statement instead of HIST_TYPE_MAX.
14856 (stream_in_histogram_value): Likewise.
14857 (gimple_duplicate_stmt_histograms): Do not
14858 use NULL for implicitly set arguments.
14859 (gimple_divmod_values_to_profile): Do not use
14860 reserve+quick_push.
14861 (gimple_indirect_call_to_profile): Likewise.
14862 (gimple_find_values_to_profile): Use implicit
14863 function call arguments.
14864 * value-prof.h (gimple_alloc_histogram_value):
14865 Set default values.
14866 (gimple_gen_interval_profiler): Remove last argument.
14867 (gimple_gen_pow2_profiler): Likewise.
14868 (gimple_gen_topn_values_profiler): Likewise.
14869 (gimple_gen_ic_profiler): Likewise.
14870 (gimple_gen_time_profiler): Likewise.
14871 (gimple_gen_average_profiler): Likewise.
14872 (gimple_gen_ior_profiler): Likewise.
14874 2019-08-22 Martin Sebor <msebor@redhat.com>
14876 PR middle-end/91490
14877 * builtins.c (c_strlen): Rename argument and introduce new local.
14878 Set no-warning bit on original argument.
14879 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
14880 Fold empty and zero constructors into empty strings.
14881 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
14882 for missing initializers.
14883 * tree.c (build_string_literal): Handle optional argument.
14884 * tree.h (build_string_literal): Add defaulted argument.
14885 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
14886 no-warning bit on original expression.
14888 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14891 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14892 and UNSPEC_DARN_RAW.
14893 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
14895 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
14896 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
14897 (darn): Use an unspec_volatile, and UNSPECV_DARN.
14899 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
14901 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
14902 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
14903 * config/rs6000/rs6000.md (unspec): ... here.
14904 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
14905 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14906 cmpeqb, *cmpeqb_internal): Delete, move to...
14907 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
14908 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
14909 cmpeqb, *cmpeqb_internal): ... here.
14911 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14913 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
14914 intrinsics if __ARM_FP.
14915 Use __ARM_FEATURE_CRC32 ifdef guard.
14917 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14919 * config/arm/arm.md (neon_for_64bits): Remove.
14920 (avoid_neon_for_64bits): Remove.
14921 (arm_adddi3): Always split early.
14922 (arm_subdi3): Always split early.
14923 (negdi2): Remove Neon expansion.
14924 (split zero_extend): Split before reload.
14925 (split sign_extend): Split before reload.
14927 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14929 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
14930 (qhs_extenddi_cstr): Likewise.
14931 * config/arm/arm.md (ashldi3): Always expand early.
14932 (ashlsi3): Likewise.
14933 (ashrsi3): Likewise.
14934 (zero_extend<mode>di2): Remove Neon variants.
14935 (extend<mode>di2): Likewise.
14936 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
14937 (signed_shift_di3_neon): Likewise.
14938 (unsigned_shift_di3_neon): Likewise.
14939 (ashrdi3_neon_imm_noclobber): Likewise.
14940 (lshrdi3_neon_imm_noclobber): Likewise.
14941 (<shift>di3_neon): Likewise.
14942 (split extend): Remove DI extend split patterns.
14944 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
14946 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
14947 (split not): Add DImode not splitter.
14948 (anddi3): Remove pattern.
14949 (anddi3_insn): Likewise.
14950 (anddi_zesidi_di): Likewise.
14951 (anddi_sesdi_di): Likewise.
14952 (anddi_notdi_di): Likewise.
14953 (anddi_notzesidi_di): Likewise.
14954 (anddi_notsesidi_di): Likewise.
14955 (iordi3): Likewise.
14956 (iordi3_insn): Likewise.
14957 (iordi_zesidi_di): Likewise.
14958 (iordi_sesidi_di): Likewise.
14959 (xordi3): Likewise.
14960 (xordi3_insn): Likewise.
14961 (xordi_sesidi_di): Likewise.
14962 (xordi_zesidi_di): Likewise.
14963 (one_cmpldi2): Likewise.
14964 (one_cmpldi2_insn): Likewise.
14965 * config/arm/constraints.md: Remove De, Df, Dg constraints.
14966 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
14968 (iwmmxt_xordi3): Likewise.
14969 (iwmmxt_anddi3): Likewise.
14970 * config/arm/neon.md (orndi3_neon): Remove pattern.
14971 (anddi_notdi_di): Likewise.
14972 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
14973 (arm_iordi_operand_neon): Likewise.
14974 (arm_xordi_operand_neon): Likewise.
14975 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
14976 (iordi_notzesidi_di): Likewise.
14977 (iordi_notdi_zesidi): Likewise.
14978 (iordi_notsesidi_di): Likewise.
14980 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
14982 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
14984 (iorsi3_compare0_scratch): Likewise.
14986 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
14988 * config/aarch64/aarch64-simd-builtins.def:
14991 * config/aarch64/aarch64-simd.md:
14992 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
14993 (aarch64_st1x4<VALLDIF:mode>): Likewise.
14994 (aarch64_ld1_x4_<mode>): Likewise.
14995 (aarch64_st1_x4_<mode>): Likewise.
14996 * config/aarch64/arm_neon.h:
14997 (vld1_s8_x4): New function.
14998 (vld1q_s8_x4): Likewise.
14999 (vld1_s16_x4): Likewise.
15000 (vld1q_s16_x4): Likewise.
15001 (vld1_s32_x4): Likewise.
15002 (vld1q_s32_x4): Likewise.
15003 (vld1_u8_x4): Likewise.
15004 (vld1q_u8_x4): Likewise.
15005 (vld1_u16_x4): Likewise.
15006 (vld1q_u16_x4): Likewise.
15007 (vld1_u32_x4): Likewise.
15008 (vld1q_u32_x4): Likewise.
15009 (vld1_f16_x4): Likewise.
15010 (vld1q_f16_x4): Likewise.
15011 (vld1_f32_x4): Likewise.
15012 (vld1q_f32_x4): Likewise.
15013 (vld1_p8_x4): Likewise.
15014 (vld1q_p8_x4): Likewise.
15015 (vld1_p16_x4): Likewise.
15016 (vld1q_p16_x4): Likewise.
15017 (vld1_s64_x4): Likewise.
15018 (vld1_u64_x4): Likewise.
15019 (vld1_p64_x4): Likewise.
15020 (vld1q_s64_x4): Likewise.
15021 (vld1q_u64_x4): Likewise.
15022 (vld1q_p64_x4): Likewise.
15023 (vld1_f64_x4): Likewise.
15024 (vld1q_f64_x4): Likewise.
15025 (vst1_s8_x4): Likewise.
15026 (vst1q_s8_x4): Likewise.
15027 (vst1_s16_x4): Likewise.
15028 (vst1q_s16_x4): Likewise.
15029 (vst1_s32_x4): Likewise.
15030 (vst1q_s32_x4): Likewise.
15031 (vst1_u8_x4): Likewise.
15032 (vst1q_u8_x4): Likewise.
15033 (vst1_u16_x4): Likewise.
15034 (vst1q_u16_x4): Likewise.
15035 (vst1_u32_x4): Likewise.
15036 (vst1q_u32_x4): Likewise.
15037 (vst1_f16_x4): Likewise.
15038 (vst1q_f16_x4): Likewise.
15039 (vst1_f32_x4): Likewise.
15040 (vst1q_f32_x4): Likewise.
15041 (vst1_p8_x4): Likewise.
15042 (vst1q_p8_x4): Likewise.
15043 (vst1_p16_x4): Likewise.
15044 (vst1q_p16_x4): Likewise.
15045 (vst1_s64_x4): Likewise.
15046 (vst1_u64_x4): Likewise.
15047 (vst1_p64_x4): Likewise.
15048 (vst1q_s64_x4): Likewise.
15049 (vst1q_u64_x4): Likewise.
15050 (vst1q_p64_x4): Likewise.
15051 (vst1_f64_x4): Likewise.
15052 (vst1q_f64_x4): Likewise.
15054 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15056 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
15058 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15059 Richard Sandiford <richard.sandiford@arm.com>
15062 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
15063 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
15065 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15068 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
15069 in reg if it fails aarch64_plus_operand predicate.
15071 2019-08-21 Richard Biener <rguenther@suse.de>
15073 PR tree-optimization/91482
15074 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
15075 BUILT_IN_ASSUME_ALIGNED calls.
15077 2019-08-21 Richard Biener <rguenther@suse.de>
15081 * config/i386/i386-features.c
15082 (general_scalar_chain::make_vector_copies): Copy stack temporary
15083 rtx when using it multiple times.
15084 (general_scalar_chain::convert_reg): Likewise.
15086 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15088 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
15090 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
15092 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
15093 catch more redundant zero initialization cases.
15094 (dse_dom_walker::dse_optimize_stmt): Likewise.
15096 2019-08-20 Richard Biener <rguenther@suse.de>
15099 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
15100 by collect2 when targetm.have_ctors_dtors which avoids dragging
15101 in temporary filenames from LTO input objects.
15103 2019-08-20 Richard Biener <rguenther@suse.de>
15105 PR tree-optimization/37242
15106 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
15107 to (T)a + (T)b if we know that a + b does not overflow.
15109 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
15111 PR rtl-optimization/91347
15112 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
15113 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
15115 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15117 * calls.h (function_arg_info): Add a pass_by_reference field,
15118 defaulting to false.
15119 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
15120 when applying pass-by-reference semantics.
15121 (initialize_argument_information): Likewise.
15122 (emit_library_call_value_1): Likewise.
15123 * function.c (assign_parm_data_one): Remove passed_pointer field.
15124 (assign_parm_find_data_types): Don't set it.
15125 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
15126 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
15127 arg.pass_by_reference instead of passed_pointer.
15129 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15131 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
15132 into a single function_arg_info, updating its fields when we
15133 apply pass-by-reference and promotion semantics. Use the
15134 function_arg_info to track the mode rather than keeping it in
15135 a separate local variable.
15136 (initialize_argument_information): Likewise. Base the final
15137 arg_to_skip on this new function_arg_info rather than creating
15138 a new one from scratch.
15140 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15142 * function.c (assign_parm_data_one): Replace passed_type,
15143 promoted_mode and named_arg with a function_arg_info field.
15144 (assign_parm_find_data_types): Remove local variables and
15145 assign directly to "data". Make data->passed_mode shadow
15146 data->arg.mode until promotion, then assign the promoted
15147 mode to data->arg.mode.
15148 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
15149 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
15150 (assign_parm_remove_parallels, assign_parm_setup_block_p)
15151 (assign_parm_setup_block, assign_parm_setup_reg)
15152 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
15153 arg.mode instead of promoted_mode, arg.type instead of passed_type
15154 and arg.named instead of named_arg. Use data->arg for
15155 function_arg_info structures that had the field values passed_type,
15156 promoted_mode and named_arg. Base other function_arg_infos on
15157 data->arg, changing the necessary properties.
15159 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15161 * calls.h (apply_pass_by_reference_rules): Declare.
15162 * calls.c (apply_pass_by_reference_rules): New function.
15163 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
15164 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
15165 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
15166 * function.c (assign_parm_find_data_types): Likewise.
15167 * var-tracking.c (prepare_call_arguments): Likewise.
15169 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15171 * target.def (must_pass_in_stack): Take a function_arg_info instead
15172 of a mode and a type.
15173 * doc/tm.texi: Regenerate.
15174 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
15175 instead of a mode and a type.
15176 (must_pass_in_stack_var_size_or_pad): Likewise.
15177 * calls.c (must_pass_in_stack_var_size): Likewise.
15178 (must_pass_in_stack_var_size_or_pad): Likewise.
15179 (initialize_argument_information): Update call to
15180 targetm.calls.must_pass_in_stack.
15181 (must_pass_va_arg_on_stack): Likewise.
15182 * function.c (assign_parm_find_entry_rtl): Likewise.
15183 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
15184 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15185 (alpha_function_arg_advance): Likewise.
15186 * config/cr16/cr16.c (cr16_function_arg): Likewise.
15187 (cr16_function_arg_advance): Likewise.
15188 * config/cris/cris.c (cris_pass_by_reference): Likewise.
15189 (cris_arg_partial_bytes): Likewise.
15190 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15191 * config/lm32/lm32.c (lm32_function_arg): Likewise.
15192 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
15193 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
15194 * config/mips/mips.c (mips_pass_by_reference): Likewise.
15195 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
15196 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
15197 * config/sh/sh.c (sh_pass_by_reference): Likewise.
15198 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15199 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
15200 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
15201 instead of a mode and a type.
15202 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
15203 (fr30_num_arg_regs): Likewise.
15204 (fr30_setup_incoming_varargs): Update calls accordingly.
15205 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
15206 (fr30_function_arg_advance): Likewise.
15207 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
15208 instead of a mode and a type.
15209 * config/gcn/gcn.c (num_arg_regs): Likewise.
15210 (gcn_function_arg, gcn_function_arg_advance): Update calls to
15211 num_arg_regs and targetm.calls.must_pass_in_stack.
15212 (gcn_arg_partial_bytes): Likewise.
15213 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
15214 function_arg_info instead of a mode and a type.
15215 (classify_argument): Update call accordingly.
15216 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
15217 function_arg_info instead of a mode and a type.
15218 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
15220 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
15221 (rs6000_parm_needs_stack): Update call accordingly.
15222 (setup_incoming_varargs): Likewise.
15224 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15226 * target.def (callee_copies): Take a function_arg_info instead
15227 of a mode, type and named flag.
15228 * doc/tm.texi: Regenerate.
15229 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
15230 instead of a mode, type and named flag.
15231 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15232 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15233 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15234 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
15235 instead of a mode, type and named flag.
15236 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
15237 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
15238 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
15239 * calls.h (reference_callee_copied): Take a function_arg_info
15240 instead of a mode, type and named flag.
15241 * calls.c (reference_callee_copied): Likewise.
15242 (initialize_argument_information): Update call accordingly.
15243 (emit_library_call_value_1): Likewise.
15244 * function.c (gimplify_parameters): Likewise.
15245 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
15246 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
15247 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
15248 * config/c6x/c6x.c (c6x_callee_copies): Delete.
15249 (TARGET_CALLEE_COPIES): Define to
15250 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15251 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
15252 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15253 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15254 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
15255 instead of a mode, type and named flag.
15256 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
15257 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15258 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15259 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
15260 * config/msp430/msp430.c (msp430_callee_copies): Delete.
15261 (TARGET_CALLEE_COPIES): Define to
15262 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
15263 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
15264 instead of a mode, type and named flag.
15265 * config/sh/sh.c (sh_callee_copies): Likewise.
15266 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
15267 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
15268 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
15270 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15272 * target.def (function_arg_advance): Take a function_arg_info instead
15273 of a mode, type and named flag.
15274 * doc/tm.texi: Regenerate.
15275 * targhooks.h (default_function_arg_advance): Take a function_arg_info
15276 instead of a mode, type and named flag.
15277 * targhooks.c (default_function_arg_advance): Likewise.
15278 * calls.c (initialize_argument_information): Update call to
15279 targetm.calls.function_arg_advance.
15280 (emit_library_call_value_1): Likewise.
15281 * dse.c (get_call_args): Likewise.
15282 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15283 * function.c (assign_parms, gimplify_parameters): Likewise.
15284 * var-tracking.c (prepare_call_arguments): Likewise.
15285 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
15286 function_arg_info instead of a mode, type and named flag.
15287 (aarch64_setup_incoming_varargs): Update call accordingly.
15288 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
15289 function_arg_info instead of a mode, type and named flag.
15290 (alpha_setup_incoming_varargs): Update call accordingly.
15291 * config/arc/arc.c (arc_function_arg_advance): Take a
15292 function_arg_info instead of a mode, type and named flag.
15293 (arc_setup_incoming_varargs): Update call accordingly.
15294 * config/arm/arm.c (arm_function_arg_advance): Take a
15295 function_arg_info instead of a mode, type and named flag.
15296 (cmse_func_args_or_return_in_stack): Update call accordingly.
15297 (arm_function_ok_for_sibcall): Likewise.
15298 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15299 * config/avr/avr.c (avr_function_arg_advance): Take a
15300 function_arg_info instead of a mode, type and named flag.
15301 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
15302 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
15303 (c6x_call_saved_register_used): Update call accordingly.
15304 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
15305 function_arg_info instead of a mode, type and named flag.
15306 * config/cris/cris.c (cris_function_arg_advance): Likewise.
15307 * config/csky/csky.c (csky_function_arg_advance): Likewise.
15308 (csky_setup_incoming_varargs): Update call accordingly.
15309 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
15310 function_arg_info instead of a mode, type and named flag.
15311 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
15312 * config/frv/frv.c (frv_function_arg_advance): Likewise.
15313 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
15314 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
15315 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
15316 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
15317 (ix86_setup_incoming_varargs): Update call accordingly.
15318 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
15319 function_arg_info instead of a mode, type and named flag.
15320 (ia64_setup_incoming_varargs): Update call accordingly.
15321 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
15322 function_arg_info instead of a mode, type and named flag.
15323 (iq2000_expand_prologue): Update call accordingly.
15324 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
15325 function_arg_info instead of a mode, type and named flag.
15326 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
15327 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
15328 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
15329 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
15330 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
15332 (microblaze_expand_prologue): Update call accordingly.
15333 * config/mips/mips.c (mips_function_arg_advance): Take a
15334 function_arg_info instead of a mode, type and named flag.
15335 (mips_setup_incoming_varargs): Update call accordingly.
15336 (mips_output_args_xfer): Likewise.
15337 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
15338 function_arg_info instead of a mode, type and named flag.
15339 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
15340 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
15341 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
15342 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
15343 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
15344 (nios2_setup_incoming_varargs): Update call accordingly.
15345 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
15346 function_arg_info instead of a mode, type and named flag.
15347 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
15348 * config/pa/pa.c (pa_function_arg_advance): Likewise.
15349 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
15350 * config/pru/pru.c (pru_function_arg_advance): Likewise.
15351 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
15352 (riscv_setup_incoming_varargs): Update call accordingly.
15353 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
15354 function_arg_info instead of a mode, type and named flag.
15355 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
15357 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
15358 (rs6000_parm_needs_stack): Update call accordingly.
15359 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
15360 instead of a mode, type and named flag.
15361 * config/s390/s390.c (s390_function_arg_advance): Likewise.
15362 (s390_call_saved_register_used): Update call accordingly.
15363 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
15364 instead of a mode, type and named flag.
15365 (sh_output_mi_thunk): Update call accordingly.
15366 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
15367 function_arg_info instead of a mode, type and named flag.
15368 * config/spu/spu.c (spu_function_arg_advance): Likewise.
15369 (spu_setup_incoming_varargs): Update call accordingly.
15370 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
15371 function_arg_info instead of a mode, type and named flag.
15372 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
15373 (tilegx_setup_incoming_varargs): Update call accordingly.
15374 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
15375 function_arg_info instead of a mode, type and named flag.
15376 (tilegx_setup_incoming_varargs): Update call accordingly.
15377 * config/v850/v850.c (v850_function_arg_advance): Take a
15378 function_arg_info instead of a mode, type and named flag.
15379 * config/vax/vax.c (vax_function_arg_advance): Likewise.
15380 * config/visium/visium.c (visium_function_arg_advance): Likewise.
15381 (visium_setup_incoming_varargs): Update call accordingly.
15382 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
15383 function_arg_info instead of a mode, type and named flag.
15385 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15387 * target.def (function_arg, function_incoming_arg): Take a
15388 function_arg_info instead of a mode, tree and named flag.
15389 * doc/tm.texi: Regenerate.
15390 * targhooks.h (default_function_arg): Take a function_arg_info
15391 instead of a mode, tree and named flag.
15392 (default_function_incoming_arg): Likewise.
15393 * targhooks.c (default_function_arg): Likewise.
15394 (default_function_incoming_arg): Likewise.
15395 * calls.h (function_arg_info::end_marker_p): New function.
15396 (function_arg_info::end_marker): Likewise.
15397 * calls.c (prepare_call_address, initialize_argument_information)
15398 (expand_call, emit_library_call_value_1): Update calls to
15399 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
15400 * dse.c: Include calls.h.
15401 (get_call_args): Update call to targetm.calls.function_arg.
15402 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15403 * var-tracking.c (prepare_call_arguments): Likewise.
15404 * function.c (assign_parm_find_entry_rtl): Update call to
15405 targetm.calls.function_incoming_arg.
15406 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
15407 function_arg_info instead of a mode, tree and named flag.
15408 * config/alpha/alpha.c (alpha_function_arg): Likewise.
15409 * config/arc/arc.c (arc_function_arg): Likewise.
15410 * config/arm/arm.c (arm_function_arg): Likewise.
15411 (cmse_func_args_or_return_in_stack): Update call accordingly.
15412 (arm_function_ok_for_sibcall): Likewise.
15413 (cmse_nonsecure_call_clear_caller_saved): Likewise.
15414 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
15415 instead of a mode, tree and named flag.
15416 * config/bfin/bfin.c (bfin_function_arg): Likewise.
15417 * config/c6x/c6x.c (c6x_function_arg): Likewise.
15418 (c6x_call_saved_register_used): Update call accordingly.
15419 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
15420 instead of a mode, tree and named flag.
15421 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
15422 (cris_function_arg_1): Likewise.
15423 * config/csky/csky.c (csky_function_arg): Likewise.
15424 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
15425 * config/fr30/fr30.c (fr30_function_arg): Likewise.
15426 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
15427 (frv_function_arg_1): Likewise.
15428 * config/ft32/ft32.c (ft32_function_arg): Likewise.
15429 * config/gcn/gcn.c (gcn_function_arg): Likewise.
15430 * config/h8300/h8300.c (h8300_function_arg): Likewise.
15431 * config/i386/i386.c (ix86_function_arg): Likewise.
15432 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
15433 (ia64_function_arg_1): Likewise.
15434 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
15435 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
15437 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
15438 instead of a mode, tree and named flag.
15439 * config/m32c/m32c.c (m32c_function_arg): Likewise.
15440 * config/m32r/m32r.c (m32r_function_arg): Likewise.
15441 * config/m68k/m68k.c (m68k_function_arg): Likewise.
15442 * config/mcore/mcore.c (mcore_function_arg): Likewise.
15443 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
15444 (microblaze_expand_prologue): Update call accordingly.
15445 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
15446 instead of a mode, tree and named flag.
15447 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
15448 (mmix_function_arg_1): Likewise.
15449 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
15450 * config/moxie/moxie.c (moxie_function_arg): Likewise.
15451 * config/msp430/msp430.c (msp430_function_arg): Likewise.
15452 * config/nds32/nds32.c (nds32_function_arg): Likewise.
15453 * config/nios2/nios2.c (nios2_function_arg): Likewise.
15454 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
15455 (nvptx_function_incoming_arg): Likewise.
15456 * config/or1k/or1k.c (or1k_function_arg): Likewise.
15457 * config/pa/pa.c (pa_function_arg): Likewise.
15458 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
15459 * config/pru/pru.c (pru_function_arg): Likewise.
15460 * config/riscv/riscv.c (riscv_function_arg): Likewise.
15461 * config/rl78/rl78.c (rl78_function_arg): Likewise.
15462 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
15463 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
15464 (rs6000_parm_needs_stack): Update call accordingly.
15465 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
15466 instead of a mode, tree and named flag.
15467 * config/s390/s390.c (s390_function_arg): Likewise.
15468 (s390_call_saved_register_used): Update call accordingly.
15469 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
15470 instead of a mode, tree and named flag.
15471 (sh_output_mi_thunk): Update call accordingly.
15472 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
15473 (sparc_function_incoming_arg): Take a function_arg_info instead of
15474 a mode, tree and named flag.
15475 * config/spu/spu.c (spu_function_arg): Likewise.
15476 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
15477 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
15478 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
15479 * config/v850/v850.c (v850_function_arg): Likewise.
15480 * config/vax/vax.c (vax_function_arg): Likewise.
15481 * config/visium/visium.c (visium_function_arg): Likewise.
15482 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
15483 (xtensa_function_incoming_arg): Likewise.
15485 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15487 * target.def (setup_incoming_varargs): Take a function_arg_info
15488 instead of a mode and tree.
15489 * doc/tm.texi: Regenerate.
15490 * targhooks.h (default_setup_incoming_varargs): Take a
15491 function_arg_info instead of a mode and tree.
15492 * targhooks.c (default_setup_incoming_varargs): Likewise.
15493 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
15494 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
15495 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
15496 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
15497 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
15498 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
15499 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
15500 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
15502 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
15503 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
15504 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
15505 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
15506 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
15507 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
15508 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15509 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
15510 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
15511 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
15512 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
15513 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
15514 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
15515 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
15516 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
15517 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
15518 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
15519 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
15520 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
15521 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
15522 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
15523 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
15524 * function.c (assign_parms_setup_varargs): Update call to
15525 targetm.calls.setup_incoming_varargs.
15527 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15529 * target.def (pass_by_reference): Take a function_arg_info instead
15530 of a mode, type and named flag.
15531 * doc/tm.texi: Regenerate.
15532 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
15534 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
15535 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
15536 function_arg_info instead of a mode, type and named flag.
15537 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
15538 * calls.h (pass_by_reference): Take a function_arg_info instead of a
15539 mode, type and named flag.
15540 * calls.c (pass_by_reference): Likewise.
15541 (pass_va_arg_by_reference): Update call accordingly.
15542 (initialize_argument_information): Likewise.
15543 (emit_library_call_value_1): Likewise.
15544 * function.c (assign_parm_find_data_types): Likewise.
15545 * var-tracking.c (prepare_call_arguments): Likewise.
15546 * stor-layout.c: Include calls.h.
15547 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
15548 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
15549 function_arg_info instead of a mode, type and named flag.
15550 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
15551 * config/arc/arc.c (arc_pass_by_reference): Likewise.
15552 * config/arm/arm.c (arm_pass_by_reference): Likewise.
15553 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
15554 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
15555 (c6x_call_saved_register_used): Update call to pass_by_reference.
15556 * config/cris/cris.c (cris_pass_by_reference): Take a
15557 function_arg_info instead of a mode, type and named flag.
15558 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
15559 function_arg_info instead of a mode, type and named flag.
15560 (epiphany_arg_partial_bytes): Update call accordingly.
15561 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
15562 function_arg_info instead of a mode, type and named flag.
15563 (ft32_arg_partial_bytes): Update call accordingly.
15564 * config/i386/i386.c (ix86_pass_by_reference): Take a
15565 function_arg_info instead of a mode, type and named flag.
15566 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
15567 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
15568 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
15569 (m32r_return_in_memory): Update call accordingly.
15570 * config/mips/mips.c (mips_pass_by_reference): Take a
15571 function_arg_info instead of a mode, type and named flag.
15572 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
15573 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
15574 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
15575 (moxie_arg_partial_bytes): Update call accordingly.
15576 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
15577 function_arg_info instead of a mode, type and named flag.
15578 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
15579 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
15580 * config/pa/pa.c (pa_pass_by_reference): Likewise.
15581 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
15582 (riscv_return_in_memory): Update call accordingly.
15583 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
15584 function_arg_info instead of a mode, type and named flag.
15585 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
15586 (rs6000_parm_needs_stack): Update call to pass_by_reference.
15587 * config/s390/s390.c (s390_pass_by_reference): Take a
15588 function_arg_info instead of a mode, type and named flag.
15589 (s390_call_saved_register_used): Update call accordingly.
15590 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
15591 instead of a mode, type and named flag.
15592 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
15593 * config/spu/spu.c (spu_pass_by_reference): Likewise.
15594 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
15595 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
15596 * config/v850/v850.c (v850_pass_by_reference): Likewise.
15597 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15599 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15601 * target.def (arg_partial_bytes): Take a function_arg_info instead
15602 of a mode, type and named flag.
15603 * doc/tm.texi: Regenerate.
15604 * target.h (function_arg_info): Declare.
15605 * calls.h (function_arg_info): New class.
15606 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15607 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
15608 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
15609 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
15610 * calls.c (initialize_argument_information): Update call to
15611 targetm.calls.partial_bytes.
15612 (emit_library_call_value_1): Likewise.
15613 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
15614 * function.c (assign_parm_find_entry_rtl): Likewise.
15615 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
15616 function_arg_info instead of a mode, type and named flag.
15617 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
15618 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
15619 (cmse_func_args_or_return_in_stack): Update accordingly.
15620 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
15621 function_arg_info instead of a mode, type and named flag.
15622 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
15623 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
15624 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
15625 * config/fr30/fr30.c: Include calls.h.
15626 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
15627 type and named flag.
15628 * config/frv/frv.c: Include calls.h.
15629 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
15630 type and named flag.
15631 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
15632 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
15633 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
15634 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
15635 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
15636 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
15637 * config/microblaze/microblaze.c (function_arg_partial_bytes):
15639 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
15640 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
15641 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
15642 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
15643 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
15644 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
15645 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
15646 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
15647 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
15648 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
15649 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
15650 (rs6000_parm_needs_stack): Update call accordingly.
15651 * config/sh/sh.c (sh_arg_partial_bytes): Take a
15652 function_arg_info instead of a mode, type and named flag.
15653 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
15654 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
15656 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15658 * calls.h (must_pass_va_arg_in_stack): Declare.
15659 * calls.c (must_pass_va_arg_in_stack): New function.
15660 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
15661 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
15662 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
15664 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15666 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
15668 * calls.h (pass_va_arg_by_reference): Declare.
15669 * calls.c (pass_va_arg_by_reference): New function.
15670 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
15671 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
15672 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
15673 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
15674 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
15675 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
15676 (mips_gimplify_va_arg_expr): Likewise.
15677 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
15678 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
15679 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
15680 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
15681 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
15682 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
15683 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
15684 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
15685 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
15686 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
15687 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15689 2019-08-20 Richard Biener <rguenther@suse.de>
15692 * config/i386/i386-features.c (general_scalar_chain::convert_op):
15693 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
15694 (convert_scalars_to_vector): Add timode_p parameter and use it
15695 to guard TImode-only operation.
15696 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
15697 (pass_stv::execute): Pass down timode_p.
15699 2019-08-20 Lili Cui <lili.cui@intel.com>
15701 * common/config/i386/i386-common.c
15702 (processor_names): Add tigerlake and cooperlake.
15703 (processor_alias_table): Add tigerlake and cooperlake.
15704 * config.gcc: Add -march=tigerlake and cooperlake.
15705 * config/i386/driver-i386.c
15706 (host_detect_local_cpu): Detect tigerlake and cooperlake.
15707 Add "has_avx" to classify processor.
15708 * config/i386/i386-builtins.c (processor_model) :
15709 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
15710 (arch_names_table): Add tigerlake and cooperlake.
15711 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
15712 and PROCESSOR_COOPERLAKE.
15713 * config/i386/i386-c.c
15714 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
15715 * config/i386/i386-options.c
15716 (m_TIGERLAKE): Define.
15717 (m_COOPERLAKE): Ditto.
15718 (m_CORE_AVX512): Ditto.
15719 (processor_cost_table): Add cascadelake.
15720 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
15721 * config/i386/i386.h
15722 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
15723 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15724 (PTA_MOVDIRI): Ditto.
15725 (PTA_MOVDIR64B): Ditto.
15726 (PTA_COOPERLAKE): Ditto.
15727 (PTA_TIGERLAKE): Ditto.
15728 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
15729 * doc/extend.texi: Add tigerlake and cooperlake.
15730 * doc/invoke.texi: Add tigerlake and cooperlake.
15732 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
15734 * doc/install.texi (Specific, alpha): Remove note to use
15735 binutils 2.11.2 or later.
15737 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
15739 PR middle-end/89544
15740 * function.c (assign_parm_find_stack_rtl): Use larger alignment
15743 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
15745 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
15746 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
15747 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
15748 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
15749 * config/aarch64/constraints.md (Dt): New constraint
15750 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
15752 2019-08-19 Richard Biener <rguenther@suse.de>
15754 PR tree-optimization/91403
15755 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
15756 cases we can handle with tail-recursion...
15757 (follow_ssa_edge_expr): ... here. Do so.
15759 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
15762 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
15763 implemented for -fsanitize=kernel-address, and merge check logic
15764 with -fsanitize=address.
15766 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
15768 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
15769 for cpu and machine. Factor 64/32b builtins.
15771 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
15773 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
15774 gone, point to sourceforge.net.
15776 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15778 * doc/ux.texi (User Experience Guidelines): Update reference.
15780 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
15782 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
15785 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
15787 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
15788 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
15790 2019-08-16 Martin Sebor <msebor@redhat.com>
15792 * tree.def (TYPE_SIZE): Clarify.
15793 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
15795 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
15797 PR tree-optimization/91109
15798 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
15799 * lra.c (lra): Use lra_need_for_scratch_reg_p.
15800 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
15802 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
15804 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
15805 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
15806 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
15807 (uavg<mode>3_ceil): New expander.
15808 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
15809 mode iterator when creating CONST1_RTX.
15810 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
15811 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
15812 mode iterator for const1_operand predicate.
15814 2019-08-16 Richard Biener <rguenther@suse.de>
15816 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
15817 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
15819 (follow_ssa_edge_in_condition_phi_branch): Likewise.
15820 (analyze_evolution_in_loop): Likewise.
15821 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
15822 (follow_ssa_edge_expr): ... here. Refactor code.
15824 2019-08-16 Richard Biener <rguenther@suse.de>
15827 * config/i386/i386-features.c
15828 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
15830 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15833 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
15834 only if subst_name matches curr_attr string.
15836 2019-08-16 Richard Biener <rguenther@suse.de>
15838 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
15839 stmt at gsi_p, instead replace it with a NOP removed later.
15840 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
15841 that became dead because of that.
15843 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
15845 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
15846 for which we can't represent a range.
15847 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
15849 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
15850 Set VR_UNDEFINED if type is not supported.
15851 * tree-ssanames.c (get_range_info): Pass type to set_varying.
15852 * tree-vrp.c (value_range_base::check): Assert that a varying has
15854 (value_range_base::equal_p): Early bail for undefines.
15855 (value_range_base::set_varying): Accept a type.
15856 (value_range::set_varying): Same.
15857 (value_range_base::type): VARYING can have a type, while UNDEFINE
15859 (value_range_base::dump): Print type for VARYING nodes.
15860 (value_range_base::set): Add type to VARYING.
15861 (extract_range_from_multiplicative_op): Pass type to set_varying.
15862 (extract_range_from_binary_expr): Same.
15863 (value_range_base::intersect_helper): Same.
15864 (value_range_base::union_helper): Same.
15865 (value_range_base::normalize_symbolics): Same.
15866 (determine_value_range_1): Same.
15867 * tree-vrp.h (class value_range_base): Add type to set_varying.
15868 Add prototype for dump(void).
15869 Add prototype for supports_type_p.
15870 (class value_range): Add type to set_varying.
15871 Add prototype for dump(void).
15872 * vr-values.c (set_value_range_to_truthvalue): Pass type to
15874 (vr_values::get_lattice_entry): Set varying even if propagation
15876 Pass type to set_varying.
15877 (vr_values::get_value_range): Remove vr_const_varying.
15878 Reallocate the lattice if needed.
15879 (vr_values::update_value_range): Pass type to set_varying.
15880 (vr_values::extract_range_for_var_from_comparison_expr): Same.
15881 (vr_values::extract_range_from_binary_expr): Same.
15882 (vr_values::extract_range_from_unary_expr): Same.
15883 (vr_values::extract_range_from_cond_expr): Same.
15884 (vr_values::check_for_binary_op_overflow): Same.
15885 (vr_values::extract_range_basic): Same.
15886 (vr_values::extract_range_from_assignment): Same.
15887 (vr_values::vr_values): Increase size of num_vr_values.
15888 (vr_values::extract_range_from_phi_node): Pass type to
15891 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
15894 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
15895 for costs of hard register moves.
15896 (ix86_register_move_cost): Likewise.
15897 * config/i386/i386.h (processor_costs): Move costs of hard
15898 register moves to hard_register. Add int_load, int_store,
15899 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15900 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
15901 for costs of RTL expressions.
15902 * config/i386/x86-tune-costs.h: Move costs of hard register
15903 moves to hard_register. Duplicate int_load, int_store,
15904 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
15905 sse_load, sse_store for costs of RTL expressions.
15907 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
15909 * target.def (setup_incoming_vararg_bounds): Remove.
15910 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
15911 * doc/tm.texi: Regenerate.
15912 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
15913 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
15914 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15915 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15917 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15919 MSP430: Fix lines over 80 characters long in
15920 config/msp430/*.{c,h} files
15922 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
15923 specifier in string.
15924 (msp430_select_hwmult_lib): Split line more than 80 characters long.
15925 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
15926 redundant old comment.
15927 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
15928 Split line more than 80 characters long.
15929 * config/msp430/msp430.c (msp430_option_override): Likewise.
15930 (msp430_return_in_memory): Likewise.
15931 (msp430_gimplify_va_arg_expr): Likewise.
15932 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
15933 (msp430_legitimate_constant): Likewise.
15934 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
15935 (msp430_attr): Likewise.
15936 (msp430_data_attr): Likewise.
15937 (msp430_start_function): Likewise.
15938 (gen_prefix): Likewise.
15939 (msp430_init_sections): Likewise.
15940 (msp430_select_section): Likewise.
15941 (msp430_function_section): Likewise.
15942 (msp430_unique_section): Likewise.
15943 (msp430_output_aligned_decl_common): Likewise.
15944 (msp430_do_not_relax_short_jumps): Likewise.
15945 (msp430_init_builtins): Likewise.
15946 (msp430_expand_delay_cycles): Likewise.
15947 (msp430_expand_prologue): Likewise.
15948 (msp430_expand_epilogue): Likewise.
15949 (msp430_expand_helper): Likewise.
15950 (msp430_split_movsi): Likewise.
15951 (msp430_print_operand): Likewise.
15952 (msp430_return_addr_rtx): Likewise.
15953 (msp430x_extendhisi): Likewise.
15954 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
15955 (ASM_SPEC): Likewise.
15956 Remove very obvious comments.
15957 (LIB_SPEC): Split line more than 80 characters long.
15958 (EH_RETURN_HANDLER_RTX): Likewise.
15959 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
15961 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15963 MSP430: Fix whitespace errors and incorrect indentation in
15964 config/msp430/*.{c,h} files
15966 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
15967 (msp430_select_hwmult_lib): Likewise.
15968 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
15969 (msp430_extract_mcu_data): Likewise.
15970 (struct t_msp430_mcu_data): Likewise.
15971 * config/msp430/msp430.c (struct machine_function): Remove whitespace
15972 before left square bracket.
15973 (msp430_option_override): Fix indentation.
15974 (msp430_hard_regno_nregs_with_padding): Likewise.
15975 (msp430_initial_elimination_offset): Likewise.
15976 (msp430_special_register_convention_p): Remove whitespace before left
15977 square bracket and after exclamation mark.
15978 (msp430_evaluate_arg): Likewise.
15979 (msp430_callee_copies): Fix indentation.
15980 (msp430_gimplify_va_arg_expr): Likewise.
15981 (msp430_function_arg_advance): Remove whitespace before left square
15983 (reg_ok_for_addr): Likewise.
15984 (msp430_preserve_reg_p): Likewise.
15985 (msp430_compute_frame_info): Likewise.
15986 (msp430_asm_output_addr_const_extra): Add space between function name
15987 and open parenthesis.
15988 (has_section_name): Fix indentation.
15989 (msp430_attr): Remove trailing whitespace.
15990 (msp430_section_attr): Likewise.
15991 (msp430_data_attr): Likewise.
15992 (struct msp430_attribute_table): Fix comment and whitespace.
15993 (msp430_start_function): Remove whitespace before left square bracket.
15994 Add space between function name and open parenthesis.
15995 (msp430_select_section): Remove trailing whitespace.
15996 (msp430_section_type_flags): Remove trailing whitespace.
15997 (msp430_unique_section): Remove space before closing parenthesis.
15998 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
15999 (msp430_builtins): Remove whitespace before left square bracket.
16000 (msp430_init_builtins): Fix indentation.
16001 (msp430_expand_prologue): Remove whitespace before left square bracket.
16002 Remove space before closing parenthesis.
16003 (msp430_expand_epilogue): Remove whitespace before left square bracket.
16004 (msp430_split_movsi): Remove space before closing parenthesis.
16005 (helper_function_name_mappings): Fix indentation.
16006 (msp430_use_f5_series_hwmult): Fix whitespace.
16007 (use_32bit_hwmult): Likewise.
16008 (msp430_no_hwmult): Likewise.
16009 (msp430_output_labelref): Remove whitespace before left square bracket.
16010 (msp430_print_operand_raw): Likewise.
16011 (msp430_print_operand_addr): Likewise.
16012 (msp430_print_operand): Add two spaces after '.' in comment.
16013 Fix trailing whitespace.
16014 (msp430x_extendhisi): Fix indentation.
16015 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
16017 (PC_REGNUM): Likewise.
16018 (STACK_POINTER_REGNUM): Likewise.
16019 (CC_REGNUM): Likewise.
16021 2019-08-15 Richard Biener <rguenther@suse.de>
16024 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
16026 (general_scalar_chain::make_vector_copies): Use it.
16028 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
16030 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
16032 2019-08-15 Martin Liska <mliska@suse.cz>
16034 * tree-ssa-dce.c (propagate_necessity): We can't reach now
16035 operators with no arguments.
16036 (eliminate_unnecessary_stmts): Likewise here.
16038 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
16040 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
16041 <case COMPARE>: Revert 2019-08-14 change.
16042 (convertible_comparison_p): Revert 2019-08-14 change. Return false
16043 for (TARGET_64BIT || mode != DImode).
16045 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
16047 * tree-vrp.c (value_range_base::set): Merge in code from
16048 value_range_base::set_and_canonicalize.
16049 Enforce canonicalization at set time.
16050 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
16051 (value_range_base::set_undefined): Inline call to set().
16052 (value_range_base::set_varying): Same.
16053 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
16054 (vrp_val_max): New argument handle_pointers.
16055 (vrp_val_min): Same.
16056 (ranges_from_anti_range): Same.
16057 (extract_range_into_wide_ints): Use tree argument instead of sign
16059 (extract_range_from_multiplicative_op): Take in tree type instead
16060 of precision and sign. Adapt function for canonicalized ranges.
16061 (extract_range_from_binary_expr): Pass type to
16062 extract_range_from_multiplicative_op.
16063 Adapt for canonicalized ranges.
16064 (extract_range_from_unary_expr): Same.
16065 (value_range_base::intersect_helper): Adjust for canonicalized
16067 (value_range_base::union_helper): Same.
16068 (value_range_base::normalize_symbolics): New.
16069 * tree-vrp.h (class value_range_base): Remove
16070 set_and_canonicalize.
16071 New prototype for normalize_symbolics.
16072 (class value_range): Remove set_and_canonicalize.
16073 (vrp_val_min): Adjust prototype.
16074 (vrp_val_max): Same.
16076 (vr_values::extract_range_for_var_from_comparison_expr): Call set
16077 instead of set_and_canonicalize.
16079 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16081 PR middle-end/91444
16082 * tree-vect-stmts.c (vectorizable_call): Check that the function
16083 is a BUILT_IN_MD function before passing it to
16084 targetm.vectorize.builtin_md_vectorized_function.
16086 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16088 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
16089 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
16090 (aarch64_select_early_remat_modes): Use it.
16092 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16094 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
16095 16 for SVE predicates even if they are fixed-length.
16097 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16099 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
16100 operand order match the MOV /Z alias.
16102 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16104 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
16105 the vector pattern as an aarch64_svpattern argument. Update the
16106 overloaded caller accordingly.
16107 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
16108 (aarch64_output_sve_vector_inc_dec): Likewise.
16110 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16112 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
16113 multiplication case, try to compute VG * (lowest set bit) directly
16114 rather than always basing the multiplication on VG. Use
16115 expand_mult for the multiplication if we can.
16117 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16119 * config/aarch64/aarch64-protos.h
16120 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
16121 (aarch64_sve_inc_dec_immediate_p): Rename to...
16122 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16123 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
16124 (aarch64_output_sve_scalar_inc_dec): Declare.
16125 (aarch64_output_sve_inc_dec_immediate): Rename to...
16126 (aarch64_output_sve_vector_inc_dec): ...this.
16127 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
16128 (aarch64_output_sve_scalar_inc_dec): New functions.
16129 (aarch64_output_sve_addvl_addpl): Remove the base and offset
16130 arguments. Only handle true ADDVL and ADDPL instructions;
16131 don't emit an INC or DEC.
16132 (aarch64_sve_inc_dec_immediate_p): Rename to...
16133 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
16134 (aarch64_output_sve_inc_dec_immediate): Rename to...
16135 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
16136 aarch64_sve_vector_inc_dec_immediate_p.
16137 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
16138 (aarch64_sve_plus_immediate): New predicates.
16139 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
16140 rather than aarch64_sve_addvl_addpl_immediate.
16141 (aarch64_sve_inc_dec_immediate): Rename to...
16142 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
16143 aarch64_sve_vector_inc_dec_immediate_p.
16144 (aarch64_sve_add_operand): Update accordingly.
16145 * config/aarch64/constraints.md (Uai): New constraint.
16146 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
16147 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
16148 operand into a register if it satisfies aarch64_sve_plus_immediate.
16149 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
16150 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
16151 * config/aarch64/aarch64-sve.md (add<mode>3): Call
16152 aarch64_output_sve_vector_inc_dec instead of
16153 aarch64_output_sve_inc_dec_immediate.
16155 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16157 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
16158 (UNSPEC_REVW): New constants.
16159 (elem_bits): New mode attribute.
16160 (SVE_INT_UNARY): New int iterator.
16161 (optab): Handle UNSPEC_REV[BHW].
16162 (sve_int_op): New int attribute.
16163 (min_elem_bits): Handle VNx16QI and the predicate modes.
16164 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
16165 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
16166 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
16167 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
16168 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
16169 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
16170 unspecs based on the total width of the reversed data.
16171 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
16172 reinterpret followed by a subreg on big-endian targets.
16174 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16175 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16177 * config/aarch64/aarch64-sve.md
16178 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
16179 alternatives in which one of the inputs is in the same register
16182 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16184 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
16185 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
16187 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16189 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
16190 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
16192 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16193 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16195 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
16196 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
16197 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
16199 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16200 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16202 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
16203 Add an alternative that uses reversed shifts.
16205 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16207 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
16210 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16212 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
16213 a commutativity marker.
16215 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16216 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16218 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
16219 (aarch64_prepare_sve_cond_int_fma): Declare.
16220 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
16221 (aarch64_prepare_sve_int_fma): New functions.
16222 (aarch64_prepare_sve_cond_int_fma): Likewise.
16223 * config/aarch64/aarch64-sve.md
16224 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
16225 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
16226 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
16227 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
16228 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
16229 (*madd<mode>): Rename to...
16230 (*fma<mode>4): ...this.
16231 (*msub<mode>): Rename to...
16232 (*fnma<mode>4): ...this.
16234 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16235 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16237 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
16238 Print 2.0 naturally.
16239 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
16240 * config/aarch64/predicates.md
16241 (aarch64_sve_float_negated_arith_immediate): New predicate,
16242 renamed from aarch64_sve_float_arith_with_sub_immediate.
16243 (aarch64_sve_float_arith_with_sub_immediate): Test for both
16244 positive and negative constants.
16245 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
16246 or an aarch64_sve_float_arith_with_sub_immediate.
16247 * config/aarch64/constraints.md (vsN): Use
16248 aarch64_sve_float_negated_arith_immediate.
16249 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
16251 (sve_pred_fp_rhs2_immediate): New int attribute.
16252 * config/aarch64/aarch64-sve.md
16253 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
16254 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
16255 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
16256 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
16257 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
16258 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
16260 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16261 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16263 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
16264 (*aarch64_cond_abd<SVE_F:mode>_3)
16265 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
16267 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16268 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16270 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
16271 (*aarch64_cond_<su>abd<mode>_any): New patterns.
16273 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
16274 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16276 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
16277 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
16278 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
16279 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
16281 * optabs.h (create_convert_operand_from): Expand comment.
16282 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
16283 when mapping scalar rtxes to vector operands.
16284 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
16285 ashiftrt and lshiftrt.
16286 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
16287 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
16288 (*cond_<optab><mode>_any_const): New patterns.
16290 2019-08-15 Martin Liska <mliska@suse.cz>
16293 * cgraph.c (cgraph_node::remove): When setting
16294 n->origin = NULL for all nested functions, reset
16297 2019-08-15 Martin Liska <mliska@suse.cz>
16299 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
16302 2019-08-15 Martin Liska <mliska@suse.cz>
16305 * passes.c (order): Remove.
16306 (uid_hash_t): Likewise).
16307 (remove_cgraph_node_from_order): Remove from set
16308 of pointers (cgraph_node *).
16309 (insert_cgraph_node_to_order): New.
16310 (duplicate_cgraph_node_to_order): New.
16311 (do_per_function_toporder): Register all 3 cgraph hooks.
16312 Skip removed_nodes now as we know about all of them.
16314 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
16316 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
16317 <case E_V8QImode>: Use vector_set path for
16318 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16319 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
16320 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16322 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16324 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
16326 2019-08-14 Martin Sebor <msebor@redhat.com>
16328 PR tree-optimization/91294
16329 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
16330 source length as exact.
16332 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
16334 * doc/extend.texi: Add "noinit" attribute documentation.
16335 * doc/sourcebuild.texi: Add noinit effective target documentation.
16336 * varasm.c (default_section_type_flags): Add support for "noinit"
16338 (default_elf_select_section): Add support for "noinit" attribute.
16339 * config/msp430/msp430.c (msp430_attribute_table): Remove
16342 2019-08-14 Richard Biener <rguenther@suse.de>
16343 Uroš Bizjak <ubizjak@gmail.com>
16346 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
16348 (scalar_chain::smode): New member.
16349 (scalar_chain::vmode): Likewise.
16350 (dimode_scalar_chain): Rename to...
16351 (general_scalar_chain): ... this.
16352 (general_scalar_chain::general_scalar_chain): Take mode arguments.
16353 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
16354 base with TImode and V1TImode.
16355 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
16356 (general_scalar_chain::vector_const_cost): Adjust for SImode
16358 (general_scalar_chain::compute_convert_gain): Likewise. Add
16359 {S,U}{MIN,MAX} support.
16360 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
16361 (general_scalar_chain::make_vector_copies): Likewise. Handle
16362 non-DImode chains appropriately.
16363 (general_scalar_chain::convert_reg): Likewise.
16364 (general_scalar_chain::convert_op): Likewise.
16365 (general_scalar_chain::convert_insn): Likewise. Add
16366 fatal_insn_not_found if the result is not recognized.
16367 (convertible_comparison_p): Pass in the scalar mode and use that.
16368 (general_scalar_to_vector_candidate_p): Likewise. Rename from
16369 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
16370 (scalar_to_vector_candidate_p): Remove by inlining into single
16372 (general_remove_non_convertible_regs): Rename from
16373 dimode_remove_non_convertible_regs.
16374 (remove_non_convertible_regs): Remove by inlining into single caller.
16375 (convert_scalars_to_vector): Handle SImode and DImode chains
16376 in addition to TImode chains.
16377 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
16378 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
16379 (*<maxmin>di3_doubleword): Likewise.
16381 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16382 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16384 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
16385 (*cond_bic<mode>_any): New patterns.
16387 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16389 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
16390 take the equivalent mask, as well as a bit count.
16391 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
16392 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
16393 (aarch64_sve_pred_and_operand): New predicates.
16394 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
16396 * config/aarch64/aarch64-sve.md
16397 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
16398 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
16400 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16402 * config/aarch64/aarch64-sve.md
16403 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16404 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
16407 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16408 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16410 * config/aarch64/aarch64-sve.md
16411 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
16412 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
16414 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16415 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16417 * config/aarch64/aarch64-sve.md
16418 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
16419 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
16421 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16423 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
16424 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
16427 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16428 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16430 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
16432 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16433 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16435 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
16436 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
16437 (aarch64_print_operand): Add support for %I.
16438 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
16439 Bitcast floating-point constants to the corresponding integer constant.
16440 (aarch64_float_const_representable_p): Handle vectors as well
16442 (aarch64_expand_sve_vcond): Make sure that the operands are valid
16443 for the new vcond_mask_<mode><vpred> expander.
16444 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
16445 test aarch64_float_const_representable_p.
16446 (aarch64_sve_reg_or_dup_imm): New predicate.
16447 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
16448 gen_vcond_mask_<mode><vpred> instead of
16449 gen_aarch64_sve_dup<mode>_const.
16450 (vcond_mask_<mode><vpred>): Turn into a define_expand that
16451 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
16452 for operands 1 and 2 respectively. Force operand 2 into a
16453 register if operand 1 is a register. Fold old define_insn...
16454 (aarch64_sve_dup<mode>_const): ...and this define_insn...
16455 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
16456 floating-point constants that can be moved as integers. Add
16457 alternatives for MOV /M and FMOV /M.
16458 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
16459 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
16460 1 and 2 respectively.
16461 * config/aarch64/constraints.md (Ufc): Handle vectors as well
16463 (vss): New constraint.
16465 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16467 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
16468 (aarch64_sve_float_maxmin_operand): New predicates.
16469 * config/aarch64/constraints.md (vsB): New constraint.
16471 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
16472 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
16473 UNSPEC_COND_FMINNM.
16474 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
16475 Use aarch64_sve_float_maxmin_operand for operand 2.
16476 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
16477 Add alternatives for the constant forms.
16479 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16481 * config/aarch64/constraints.md (vsb): New constraint.
16482 (vsm): Generalize description.
16483 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
16485 (sve_imm_con): Handle smax, smin, umax and umin.
16486 (sve_imm_prefix): New code attribute.
16487 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
16488 (aarch64_sve_vsb_operand): New predicates.
16489 (aarch64_sve_mul_immediate): Rename to...
16490 (aarch64_sve_vsm_immediate): ...this.
16491 (aarch64_sve_mul_operand): Rename to...
16492 (aarch64_sve_vsm_operand): ...this.
16493 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
16494 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
16495 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
16496 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
16497 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
16498 add movprfx support for the immediate alternatives.
16499 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
16501 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
16504 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16506 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
16507 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
16508 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
16510 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16512 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
16513 (optab, sve_int_op): Handle them.
16514 * config/aarch64/aarch64-sve.md: Expand comment.
16516 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16518 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
16519 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
16520 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
16522 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16524 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
16525 (aarch64_expand_sve_const_pred_trn): New functions.
16526 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
16527 use the above functions when the parameter is true.
16528 (aarch64_expand_sve_const_pred): Update call accordingly.
16529 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
16531 (@aarch64_sve_<perm_insn><mode>): ...this.
16533 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16535 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
16537 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
16538 (aarch64_sve_emit_int_cmp): New functions.
16539 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
16540 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
16541 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
16542 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
16543 (UNSPEC_PRED_Z): New unspec.
16544 (set_clobber_cc_nzc): Delete.
16545 * config/aarch64/aarch64-sve.md: Add a block comment about
16547 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
16548 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
16549 the old pattern with that name. Use UNSPEC_PRED_Z instead of
16550 UNSPEC_MERGE_PTRUE.
16551 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
16552 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
16553 check for compatible predicates.
16554 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
16555 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
16556 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
16559 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16561 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
16562 * config/aarch64/aarch64-sve.md: Add a section describing it.
16563 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
16564 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
16565 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
16566 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
16567 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
16568 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
16569 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
16570 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
16571 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
16572 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
16573 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
16574 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
16575 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
16576 (aarch64_evpc_rev_local): Update accordingly.
16578 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16580 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
16582 (SVE_BHSI, SVE_SDI): Tweak comment.
16583 (SVE_HSDI): Likewise. Fix definition.
16584 (SVE_SDF): New mode iterator.
16585 (elem_bits): New mode attribute.
16586 (SVE_COND_FCVT): New int iterator.
16587 * config/aarch64/aarch64-sve.md
16588 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
16589 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
16590 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
16591 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
16592 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
16593 ...these new patterns.
16594 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
16595 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
16596 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
16598 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
16599 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
16600 ...these new patterns.
16601 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
16602 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
16603 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
16604 ...this new pattern.
16605 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
16606 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
16607 ...this new pattern.
16608 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
16610 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16612 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
16613 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
16614 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
16616 (optab, su): Handle them.
16617 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
16618 * config/aarch64/aarch64-sve.md
16619 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
16620 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
16621 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
16622 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
16623 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
16624 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
16625 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
16626 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
16627 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
16629 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
16630 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
16631 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
16632 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
16633 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
16634 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
16635 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
16636 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
16637 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
16638 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
16639 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
16640 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
16641 of UNSPEC_FLOAT_CONVERT.
16642 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
16643 aarch64_sve_extend<mode><Vwide>2.
16645 2019-08-14 Richard Biener <rguenther@suse.de>
16648 * config/i386/i386-features.c
16649 (dimode_scalar_chain::compute_convert_gain): Compute and dump
16650 individual instruction gain. Fix reg-reg copy GRP cost. Use
16651 ix86_cost->sse_op for vector instruction costs.
16653 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16655 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
16656 (cmp_op): Handle it.
16657 (SVE_COND_FP_CMP): Rename to...
16658 (SVE_COND_FP_CMP_I0): ...this.
16659 (SVE_FP_CMP): Remove.
16660 * config/aarch64/aarch64-sve.md
16661 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
16662 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
16663 using unspecs to represent the comparison.
16664 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
16665 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
16667 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
16668 (aarch64_unspec_cond_code): Move after integer code. Handle
16670 (aarch64_emit_sve_predicated_cond): Replace with...
16671 (aarch64_emit_sve_fp_cond): ...this new function.
16672 (aarch64_emit_sve_or_conds): Replace with...
16673 (aarch64_emit_sve_or_fp_conds): ...this new function.
16674 (aarch64_emit_sve_inverted_cond): Replace with...
16675 (aarch64_emit_sve_invert_fp_cond): ...this new function.
16676 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
16678 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16680 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
16681 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
16682 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
16683 SVE_HSD instead of SVE_SD.
16685 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16686 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16688 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
16690 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
16692 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
16693 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
16694 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
16695 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
16696 (*div<SVE_F:mode>3): Generalize to...
16697 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
16699 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16700 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16702 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
16704 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
16706 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
16708 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
16710 * config/aarch64/aarch64-sve.md: Add a block comment about the
16711 handling of predicated FP operations.
16712 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
16713 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
16714 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16715 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
16716 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
16718 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
16719 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
16721 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
16722 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
16723 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
16724 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
16725 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
16726 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
16727 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
16728 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
16729 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
16730 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
16731 strictness operands. Use aarch64_sve_pred_dominates_p to check
16732 whether the predicate on the conditional operation is suitable
16733 for merging. Split patterns into the canonical equal-predicate form.
16734 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
16735 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
16737 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16738 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16740 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
16741 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
16742 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
16744 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
16745 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
16748 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16749 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
16751 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
16752 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
16753 actually has, rather than relying on REG_EQUAL notes.
16754 Make the insn operand order match the SVE operand order.
16755 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
16756 the SVE operand order.
16758 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16760 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
16761 (aarch64_emit_set_immediate): Likewise.
16762 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
16763 (aarch64_pfalse_reg): Likewise.
16764 (aarch64_convert_sve_data_to_pred): New function.
16765 (aarch64_sve_move_pred_via_while): Take an optional target register
16766 and the required register mode.
16767 (aarch64_expand_sve_const_pred_1): New function.
16768 (aarch64_expand_sve_const_pred): Likewise.
16769 (aarch64_expand_mov_immediate): Build an all-true predicate
16770 if the significant bits of the immediate are all true. Use
16771 aarch64_expand_sve_const_pred for all compile-time predicate constants.
16772 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
16773 before register allocation.
16774 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
16775 a VNx16BI PTRUE when splitting the memory alternative.
16776 (vec_duplicate<mode>): Update accordingly.
16777 (*pred_cmp<cmp_op><mode>): Rename to...
16778 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
16780 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
16782 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
16783 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
16784 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
16785 (UNSPEC_PTEST): New unspec.
16786 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
16787 * config/aarch64/iterators.md (data_bytes): New mode attribute.
16788 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
16789 * config/aarch64/aarch64-sve.md: Add a new section describing the
16790 handling of UNSPEC_PTEST.
16791 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
16792 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
16793 (ptest_ptrue<mode>): Replace with...
16794 (aarch64_ptest<mode>): ...this new pattern.
16795 (cbranch<mode>4): Update after above changes.
16796 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
16797 UNSPEC_PTEST_PTRUE.
16798 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
16799 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
16800 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
16802 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
16805 * builtins.c (builtin_with_linkage_p): New function.
16806 * builtins.h (builtin_with_linkage_p): New function.
16807 * symtab.c (write_symbol): Remove redundant assert.
16808 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
16809 Remove FIXME and use builtin_with_linkage_p.
16811 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16813 PR middle-end/91421
16814 * tree-core.h (function_decl::function_code): Change type to
16816 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
16817 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
16818 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
16819 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
16820 is BUILT_IN_NORMAL.
16821 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
16822 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
16823 (fndecl_built_in_p): Change the type of the "name" argument to
16825 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
16826 after check for DECL_BUILT_IN_CLASS.
16827 * cgraphclones.c (build_function_decl_skip_args): Use
16828 set_decl_built_in_function.
16829 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
16830 * ipa-split.c (split_function): Likewise.
16831 * langhooks.c (add_builtin_function_common): Likewise.
16832 * omp-simd-clone.c (simd_clone_create): Likewise.
16833 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16834 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
16835 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
16836 DECL_FUNCTION_CODE.
16837 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
16838 instead of DECL_FUNCTION_CODE.
16839 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
16840 instead of DECL_FUNCTION_CODE.
16841 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16842 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
16843 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
16844 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
16845 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
16846 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
16847 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
16848 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
16849 (alpha_gimple_fold_builtin): Likewise.
16850 * config/arc/arc.c (arc_expand_builtin): Likewise.
16851 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
16852 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
16853 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
16854 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
16855 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
16856 * config/frv/frv.c (frv_expand_builtin): Likewise.
16857 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
16858 (gcn_expand_builtin): Likewise.
16859 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
16860 (fold_builtin_cpu): Likewise.
16861 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
16862 * config/i386/i386.c (ix86_fold_builtin): Likewise.
16863 (ix86_gimple_fold_builtin): Likewise.
16864 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
16865 (ia64_expand_builtin): Likewise.
16866 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
16867 * config/mips/mips.c (mips_expand_builtin): Likewise.
16868 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
16869 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16870 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
16871 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
16872 * config/pa/pa.c (pa_expand_builtin): Likewise.
16873 * config/pru/pru.c (pru_expand_builtin): Likewise.
16874 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
16875 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16877 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
16878 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
16879 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
16880 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
16881 (rs6000_builtin_reciprocal): Likewise.
16882 * config/rx/rx.c (rx_expand_builtin): Likewise.
16883 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16884 * config/s390/s390.c (s390_expand_builtin): Likewise.
16885 * config/sh/sh.c (sh_expand_builtin): Likewise.
16886 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
16887 (sparc_fold_builtin): Likewise.
16888 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
16889 * config/spu/spu.c (spu_expand_builtin): Likewise.
16890 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
16891 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
16892 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
16893 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16894 (xtensa_expand_builtin): Likewise.
16896 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16898 PR middle-end/91421
16899 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
16900 before the DECL_FUNCTION_CODE.
16901 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
16902 to check for a BUILT_IN_ALLOCA call.
16903 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
16904 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
16905 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
16906 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
16907 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
16908 for BUILT_IN_NORMAL functions.
16909 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
16910 test for BUILT_IN_TM_ABORT.
16911 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
16912 to check for a BUILT_IN_STACK_RESTORE call.
16913 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
16914 * tree-ssa-threadedge.c
16915 (record_temporary_equivalences_from_stmts_at_dest): Check for a
16916 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
16917 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
16918 test for a BUILT_IN_NORMAL call instead of a negative test for
16919 an internal function call.
16921 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
16923 * tree.h (build_vector_a_then_b): Declare.
16924 * tree.c (build_vector_a_then_b): New function.
16925 * fold-const-call.c (fold_while_ult): Likewise.
16926 (fold_const_call): Use it to handle IFN_WHILE_ULT.
16927 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
16928 (aarch64_svpattern): New enum.
16929 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
16930 constants through aarch64_expand_mov_immediate.
16931 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
16932 than general_operand as the predicate for operand 1.
16933 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
16934 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
16936 (simd_immediate_info::simd_immediate_info): New overload that
16937 takes a scalar_int_mode and an svpattern.
16938 (simd_immediate_info::u): Add a "pattern" field.
16939 (svpattern_token): New function.
16940 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
16941 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
16942 (aarch64_sve_move_pred_via_while): New functions.
16943 (aarch64_expand_mov_immediate): Try using
16944 aarch64_sve_move_pred_via_while for predicates that contain N ones
16945 followed by M zeros but that do not correspond to a VLnnn pattern.
16946 (aarch64_sve_pred_valid_immediate): New function.
16947 (aarch64_simd_valid_immediate): Use it instead of dealing directly
16948 with PTRUE and PFALSE.
16949 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
16952 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
16954 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
16956 (darwin_override_options): Likewise.
16957 * config/darwin.h: Likewise.
16958 * config/darwin.opt: Likewise.
16959 * config/i386/i386.c (output_pic_addr_const): Likewise.
16960 * config/rs6000/darwin.h: Likewise.
16961 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
16962 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
16963 ... this TARGET_MACHO_SYMBOL_STUBS.
16964 (FUNCTION_PROFILER):Likewise.
16965 * config/i386/i386.h: Likewise.
16967 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
16969 * config/i386/i386-expand.c (ix86_expand_vector_extract)
16970 <case E_V2SImode>: Use vec_extr path for
16971 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
16972 <case E_V8QImode>: Ditto.
16973 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
16974 Use SWI48 mode iterator. Use %k to output operand 0.
16975 (*mmx_pextrw): New insn pattern.
16976 (*mmx_pextrb): Ditto.
16977 (*mmx_pextrb_zext): Ditto.
16979 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
16981 * target.def (libc_has_function, libc_has_fast_function): Improve
16982 documentation strings.
16983 * doc/tm.texi: Regenerate.
16985 2019-08-13 Caroline Tice <cmtice@google.com>
16988 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
16989 vtv_end.o or vtv_end_preinit.o files if !static.
16991 2019-08-13 Olivier Hainque <hainque@adacore.com>
16993 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
16995 2019-08-13 Olivier Hainque <hainque@adacore.com>
16997 * rtlanal.c (tablejump_casesi_pattern): New function, to
16998 determine if a tablejump insn is a casesi dispatcher. Extracted
16999 from patch_jump_insn.
17000 * rtl.h (tablejump_casesi_pattern): Declare.
17001 * cfgrtl.c (patch_jump_insn): Use it.
17002 * dwarf2cfi.c (create_trace_edges): Use it.
17004 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17007 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
17008 operand is larger than a long int.
17010 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17012 * machmode.h (opt_mode::else_mode): New function.
17013 (opt_mode::else_blk): Use it.
17014 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
17015 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
17016 (aarch64_gen_stepped_int_parallel): Likewise.
17017 (aarch64_stepped_int_parallel_p): Likewise.
17018 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17020 * config/aarch64/aarch64.c
17021 (aarch64_expand_sve_widened_duplicate): Delete.
17022 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
17023 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
17024 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
17025 argument. Use early returns in the !CONST_INT_P handling.
17026 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
17027 than handling some inline.
17028 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
17030 (aarch64_simd_container_mode): ...here.
17031 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
17032 (aarch64_sve_ld1rq_operand_p): New functions.
17033 * config/aarch64/predicates.md (descending_int_parallel)
17034 (aarch64_sve_ld1rq_operand): New predicates.
17035 * config/aarch64/constraints.md (UtQ): New constraint.
17036 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
17037 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
17038 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
17039 (@aarch64_sve_reinterpret<mode>): New expander.
17040 (*aarch64_sve_reinterpret<mode>): New pattern.
17041 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
17042 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
17043 (*sve_ld1rq<Vesize>): Replace with...
17044 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
17046 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
17048 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
17051 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17053 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
17054 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
17055 (msp430_check_path_for_devices): New.
17056 (parse_devices_csv_1): New.
17057 (parse_devices_csv): New.
17058 (msp430_extract_mcu_data): Try to find devices.csv and search for the
17059 MCU data in devices.csv before using the hard-coded data.
17060 Warn if devices.csv isn't found and the MCU wasn't found in the
17061 hard-coded data either.
17062 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
17063 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
17064 Search for devices.csv on -I and -L paths.
17065 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
17066 msp430_set_driver_var.
17067 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
17068 -mdevices-csv-loc=.
17069 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
17070 searched for devices.csv.
17071 (mwarn-devices-csv): Document option.
17073 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17075 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
17076 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
17077 Use a single Dn alternative instead of separate Dz and Dm
17078 alternatives. Use aarch64_output_sve_move_immediate.
17079 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
17081 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
17082 for predicates too.
17083 (aarch64_output_sve_mov_immediate): Handle predicate modes.
17084 (aarch64_output_ptrue): Delete.
17086 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17088 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
17090 (simd_immediate_info::value, simd_immediate_info::step)
17091 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
17093 (simd_immediate_info::u): ...this new union.
17094 (simd_immediate_info::simd_immediate_info): Update accordingly.
17095 (aarch64_output_simd_mov_immediate): Likewise.
17096 (aarch64_output_sve_mov_immediate): Likewise.
17098 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
17100 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
17102 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
17103 (msp430_select_cpu): New spec function.
17104 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
17106 * config/msp430/msp430-devices.c: New file.
17107 * config/msp430/msp430-devices.h: New file.
17108 * config/msp430/msp430.c: Remove msp430_mcu_data.
17109 (msp430_option_override): Use msp430_extract_mcu_data to extract
17111 (msp430_use_f5_series_hwmult): Likewise.
17112 (use_32bit_hwmult): Likewise.
17113 (msp430_no_hwmult): Likewise.
17114 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
17116 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
17118 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
17119 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
17120 Remove hard-coded MCU multilib data.
17122 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17124 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
17125 based on the mode instead of testing properties of it.
17127 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17129 * doc/md.texi: Document the x and y constraints for AArch64.
17130 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
17131 (FP_LO8_REGS): New reg_class.
17132 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
17133 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
17134 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
17135 * config/aarch64/predicates.md (aarch64_simd_register): Use
17136 FP_REGNUM_P instead of checking the classes manually.
17137 * config/aarch64/constraints.md (y): New constraint.
17139 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
17141 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
17142 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
17143 * config/aarch64/aarch64-simd.md
17144 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
17145 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
17146 from the asm template.
17147 * config/aarch64/aarch64-sve.md
17148 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
17149 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
17150 from the asm template.
17151 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
17152 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
17153 from the asm template.
17154 * config/aarch64/aarch64-simd-builtins.def: Update comment.
17156 2019-08-13 Martin Liska <mliska@suse.cz>
17158 * value-prof.c (gimple_ic_transform): Add new line.
17159 Print details with MSG_NOTE.
17161 2019-08-13 Martin Liska <mliska@suse.cz>
17163 * doc/invoke.texi: Document automatic detection of jobserver.
17164 * lto-wrapper.c (run_gcc): Detect jobserver always.
17166 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
17168 * config/i386/i386-expand.c (ix86_expand_vector_set)
17169 <case E_V2SImode>: Use vec_merge path for
17170 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
17171 <case E_V8QImode>: Ditto.
17172 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
17173 (*mmx_pinsrb): Ditto.
17175 2019-08-12 Jakub Jelinek <jakub@redhat.com>
17179 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
17180 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
17181 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
17182 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
17183 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
17185 2019-08-12 Richard Biener <rguenther@suse.de>
17188 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
17191 2019-08-12 Richard Biener <rguenther@suse.de>
17194 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
17195 lang_mask option, always use CL_DRIVER.
17196 (get_options_from_collect_gcc_options): Adjust.
17197 (find_and_merge_options): Likewise.
17198 (run_gcc): Likewise.
17200 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17202 * ipa-predicate.c (add_condition): Restore inverted test.
17204 2019-08-10 Jakub Jelinek <jakub@redhat.com>
17206 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
17207 (enum omp_clause_device_type_kind): New enum.
17208 (struct tree_omp_clause): Add subcode.device_type_kind.
17209 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
17210 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17211 for device_type clause.
17212 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
17213 * tree-pretty-print.c (dump_omp_clause): Likewise.
17216 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
17219 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
17221 * reload1.c (finish_spills): Do not check ira_conflicts_p when
17222 handling spilled pseudos.
17224 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17227 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
17228 to preserve the contents of the original insns.
17230 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
17232 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
17233 (addsi3_compare_op2): Likewise.
17235 2019-08-09 Martin Liska <mliska@suse.cz>
17237 * alias.c (alias_ptr_types_compatible_p): Strengten
17238 type comparison in LTO mode.
17240 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
17242 PR middle-end/90313
17243 * tree-tailcall.c (find_tail_calls): Reject calls that might
17244 read from an escaped RESULT_DECL.
17246 2019-08-09 Martin Liska <mliska@suse.cz>
17248 * doc/invoke.texi: Document the option value.
17249 * lto-wrapper.c (run_gcc): Set auto_parallel
17250 only with -flto=auto.
17252 2019-08-09 Martin Liska <mliska@suse.cz>
17254 * opts.c (common_handle_option): Error for an invalid argument
17257 2019-08-09 Martin Liska <mliska@suse.cz>
17259 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
17260 use dump_printf to report optimization.
17261 (sem_variable::merge): Likwise.
17262 (sem_item_optimizer::merge_classes): Use dump_printf to report
17265 2019-08-09 Martin Liska <mliska@suse.cz>
17267 * value-prof.c (gimple_divmod_fixed_value_transform):
17268 Use dump_printf_loc.
17269 (gimple_mod_pow2_value_transform): Likewise.
17270 (gimple_mod_subtract_transform): Likewise.
17271 (init_node_map): Likewise.
17272 (gimple_ic_transform): Likewise.
17273 (gimple_stringops_transform): Likewise.
17275 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
17277 * doc/extend.texi: Add const qualifier to ld intrinsics.
17279 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17281 * config/rs6000/dfp.md (D64_D128): Rename to ...
17282 (DDTD): ... this, throughout.
17283 (dfp_suffix): Rename to ...
17284 (q): ... this, throughout.
17286 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17288 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
17289 (dfp_suffix): Ditto.
17290 (adddd3, addtd3): Merge to ...
17291 (add<mode>3 for D64_D128): ... this.
17292 (subdd3, subtd3): Merge to ...
17293 (sub<mode>3 for D64_D128): ... this.
17294 (muldd3, multd3): Merge to ...
17295 (mul<mode>3 for D64_D128): ... this.
17296 (divdd3, divtd3): Merge to ...
17297 (div<mode>3 for D64_D128): ... this.
17298 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
17299 (*cmp<mode>_internal1 for D64_D128): ... this.
17300 (ftruncdd2, ftrunctd2): Merge to ...
17301 (ftrunc<mode>2 for D64_D128): ... this.
17302 (fixdddi2, fixtddi2): Merge to ...
17303 (fix<mode>di2 for D64_D128): ... this.
17305 2019-08-08 Jim Wilson <jimw@sifive.com>
17308 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
17309 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
17310 Pass into recursive call.
17311 (riscv_flatten_aggregate_argument): New arg. Pass to
17312 riscv_flatten_aggregate_field.
17313 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
17314 riscv_flatten_aggregate_argument twice, with false and true as last
17315 arg. Process result twice. Compare results and warn if different.
17316 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
17318 2019-08-08 Martin Liska <mliska@suse.cz>
17321 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
17322 * lto-wrapper.c (jobserver_active_p): Likewise.
17324 2019-08-08 Martin Liska <mliska@suse.cz>
17326 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
17327 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
17328 (create_version_clone_with_body): Likewise.
17330 2019-08-08 Jakub Jelinek <jakub@redhat.com>
17332 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
17333 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
17334 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
17335 GOVD_EXPLICIT flags.
17336 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
17337 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
17338 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
17339 call install_var_field with mask 11 instead of 3.
17340 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
17341 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
17343 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17345 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
17346 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
17348 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17350 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
17351 MOVPRFX alternatives. Make the GPR alternatives more expensive
17354 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17356 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
17357 Disparage the GPR alternative relative to the FPR one.
17358 Fix handling of 8-bit and 16-bit FPR values.
17360 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17362 * config/aarch64/iterators.md (BITWISEV): Delete.
17363 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
17364 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
17365 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17366 UNSPEC_FMINNMV, UNSPEC_FMINV.
17367 (bit_reduc_op): Delete.
17368 (sve_int_op): New int attribute.
17369 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
17370 UNSPEC_FMINNMV, UNSPEC_FMINV.
17371 * config/aarch64/aarch64-sve.md
17372 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17373 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
17374 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
17375 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
17376 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
17377 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
17379 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
17380 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
17381 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
17382 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
17383 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
17386 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17388 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
17389 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
17390 (fms<mode>4, *fms<mode>4): Replace with...
17391 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
17392 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
17393 Use unspecs instead of rtx codes.
17394 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
17395 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
17397 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17399 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
17401 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
17402 * config/aarch64/aarch64-sve.md
17403 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
17404 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
17405 use a single unspec for the rhs.
17406 (*<su><maxmin><mode>3): Delete.
17407 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
17409 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17411 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
17412 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
17413 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
17414 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
17415 (optab, sve_fp_op): Handle them.
17416 (SVE_FP_UNARY): Delete.
17417 (optab): Remove sqrt entry.
17418 (sve_fp_op): Remove neg, abs and sqrt entries.
17419 (SVE_COND_FP_UNARY): New int iterator.
17420 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
17421 (*<frint_pattern><mode>2): Delete.
17422 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17423 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17424 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
17425 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
17427 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17429 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
17431 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17433 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
17434 (UNSPEC_COND_FADD): ...this.
17435 (UNSPEC_COND_SUB): Rename to...
17436 (UNSPEC_COND_FSUB): ...this.
17437 (UNSPEC_COND_MUL): Rename to...
17438 (UNSPEC_COND_FMUL): ...this.
17439 (UNSPEC_COND_DIV): Rename to...
17440 (UNSPEC_COND_FDIV): ...this.
17441 (UNSPEC_COND_MAX): Rename to...
17442 (UNSPEC_COND_FMAXNM): ...this.
17443 (UNSPEC_COND_MIN): Rename to...
17444 (UNSPEC_COND_FMINNM): ...this.
17445 (UNSPEC_COND_LT): Rename to...
17446 (UNSPEC_COND_FCMLT): ...this.
17447 (UNSPEC_COND_LE): Rename to...
17448 (UNSPEC_COND_FCMLE): ...this.
17449 (UNSPEC_COND_EQ): Rename to...
17450 (UNSPEC_COND_FCMEQ): ...this.
17451 (UNSPEC_COND_NE): Rename to...
17452 (UNSPEC_COND_FCMNE): ...this.
17453 (UNSPEC_COND_GE): Rename to...
17454 (UNSPEC_COND_FCMGE): ...this.
17455 (UNSPEC_COND_GT): Rename to...
17456 (UNSPEC_COND_FCMGT): ...this.
17457 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
17458 (sve_fp_op_rev): Update accordingly.
17459 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
17461 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17463 * config/aarch64/aarch64-sve.md: Reorganize contents and add
17465 * config/aarch64/check-sve-md.awk: New file.
17466 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
17467 (insn-conditions.md): Depend on it.
17469 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
17472 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
17473 (*negsi2_cmpz_zext): Ditto.
17475 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17477 * config/aarch64/iterators.md (commutative): Remove.
17479 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
17482 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
17483 processing COLLECT_GCC_OPTIONS.
17484 (run_gcc): Likewise.
17486 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
17488 PR tree-optimization/91109
17489 * lra-remat.c (update_scratch_ops): Remove assignment of the
17492 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
17494 * data-streamer.h (streamer_write_poly_uint64): Declare.
17495 (streamer_read_poly_uint64): Likewise.
17496 * data-streamer-in.c (streamer_read_poly_uint64): New function.
17497 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
17498 * ipa-predicate.h (condition::size): Turn into a poly_int64.
17499 (add_condition): Take a poly_int64 size.
17500 * ipa-predicate.c (add_condition): Likewise.
17501 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
17502 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
17503 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
17504 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
17505 condition::size as a poly_int64.
17506 (unmodified_parm_1): Take a poly_int64 size pointer.
17507 (unmodified_parm): Likewise.
17508 (unmodified_parm_or_parm_agg_item): Likewise.
17509 (set_cond_stmt_execution_predicate): Update accordingly.
17510 (set_switch_stmt_execution_predicate): Likewise.
17511 (will_be_nonconstant_expr_predicate): Likewise.
17512 (will_be_nonconstant_predicate): Likewise.
17513 (inline_read_section): Stream condition::size as a poly_int.
17514 (ipa_fn_summary_write): Likewise.
17516 2019-08-07 Martin Liska <mliska@suse.cz>
17518 * fold-const.c (twoval_comparison_p): Replace int
17519 with bool as a return type.
17520 (simple_operand_p): Likewise.
17521 (operand_equal_p): Replace int with bool as a return type.
17522 * fold-const.h (operand_equal_p): Likewise.
17524 2019-08-07 Jakub Jelinek <jakub@redhat.com>
17526 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
17527 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
17528 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
17529 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
17530 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
17531 * tree-pretty-print.c (dump_omp_clause): Likewise.
17532 * tree-nested.c (convert_nonlocal_omp_clauses,
17533 convert_local_omp_clauses): Likewise.
17534 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17536 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
17537 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
17538 clause with array or reference to array types, no matter what type
17539 except for reference it has.
17541 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
17543 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
17545 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
17547 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
17548 (arch_canonicalize): Support rv32g and rv64g and fix error
17551 2019-08-06 Martin Liska <mliska@suse.cz>
17553 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
17554 and DECL_IS_OPERATOR_DELETE_P.
17556 2019-08-06 Jakub Jelinek <jakub@redhat.com>
17558 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
17559 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
17560 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
17561 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
17562 (gimplify_omp_for): Don't do C++ random access iterator clause
17563 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
17564 don't predetermine the artificial iterator in case of C++ random
17565 access iterators as lastprivate, but private. For OMP_LOOP, force
17566 bind expr around simd body and force for_pre_body before the
17567 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
17568 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
17569 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
17570 diff var of C++ random access iterators. Handle
17571 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
17572 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
17573 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
17574 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
17575 * omp-low.c (lower_rec_input_clauses): For
17576 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
17577 variables instead of default constructing them.
17578 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
17579 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
17580 is_taskloop_ctx check from the assert to the guarding condition.
17582 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
17584 * config/riscv/multilib-generator: (canonical_order): New.
17585 (arch_canonicalize): Dito.
17586 Apply arch_canonicalize for alts.
17588 2019-08-05 Martin Sebor <msebor@redhat.com>
17590 * doc/extend.texi (Common Variable Attributes): Document alias
17593 2019-08-05 Marek Polacek <polacek@redhat.com>
17595 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
17596 * doc/invoke.texi: Document -Wcomma-subscript.
17598 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17600 * tree-core.h (tree_function_decl): Make function_code an
17601 independent field. Group the remaining bitfields into bytes
17602 and move decl_type so that it contines to be at a byte boundary.
17603 Leave 12 bits for future expansion.
17605 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17607 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
17608 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
17609 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
17612 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
17614 * gimple.h (gimple_move_vops): Declare.
17615 * gimple.c (gimple_move_vops): New function
17616 * gimple-fold.c (replace_call_with_call_and_fold)
17617 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
17618 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
17619 (gimple_fold_call): Use it.
17620 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
17621 * tree-call-cdce.c (use_internal_fn): Likewise.
17622 * tree-if-conv.c (predicate_load_or_store): Likewise.
17623 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
17624 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
17625 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
17626 (update_call_from_tree): Likewise.
17627 * tree-vect-stmts.c (vectorizable_load): Likewise.
17628 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
17630 2019-08-05 Martin Liska <mliska@suse.cz>
17633 * tree-ssa-dce.c (propagate_necessity): Handle new operators
17634 with not arguments.
17635 (eliminate_unnecessary_stmts): Likewise.
17637 2019-08-05 Richard Biener <rguenther@suse.de>
17639 PR middle-end/91169
17640 * fold-const.c (get_array_ctor_element_at_index): Create
17641 offset_ints according to the sign of the index type and treat
17642 that as signed if it is obviously so.
17644 2019-08-05 Jakub Jelinek <jakub@redhat.com>
17647 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
17648 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
17649 _mm256_storeu2_m128i): New function.
17651 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
17653 * config/riscv/riscv.c (riscv_promote_function_mode): New.
17654 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
17656 2019-08-05 Alan Modra <amodra@gmail.com>
17659 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
17660 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
17662 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
17664 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
17665 bug that was fixed in Tcl 8.6.1.
17667 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
17669 * config/rs6000/future.md: New file.
17670 * config/rs6000/rs6000.md: Include future.md.
17671 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
17673 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
17675 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
17676 check to use targetm.slow_unaligned_access instead.
17678 * function.c (assign_param_data_one): Remove unused data members.
17680 2019-08-02 Steve Ellcey <sellcey@marvell.com>
17682 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
17683 build_distinct_type_copy.
17684 (simd_clone_adjust_argument_types): Ditto.
17685 (simd_clone_adjust): Call build_distinct_type_copy here.
17686 (expand_simd_clones): Ditto.
17688 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17691 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
17693 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
17695 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
17696 from 'const void *'.
17697 (sort_locs_in_loop_postorder_cmp): Likewise.
17699 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
17701 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
17702 (hot-bb-count-ws-permille): Likewise.
17703 (hot-bb-frequency-fraction): Likewise.
17704 (unlikely-bb-count-fraction): Likewise.
17705 * params.def (hot-bb-count-fraction): Rework description.
17706 (hot-bb-count-ws-permille): Likewise.
17707 (hot-bb-frequency-fraction): Likewise.
17708 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
17709 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
17711 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
17714 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
17717 2019-08-02 Richard Biener <rguenther@suse.de>
17719 * vec.h (vec::sort): Add gcc_qsort_r support.
17720 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
17721 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
17722 to gcc_qsort_r style callback.
17723 (sort_locs_in_loop_postorder_cmp): Likewise.
17724 (analyze_memory_references): Use gcc_sort_r interfaces.
17725 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
17727 2019-08-02 Martin Liska <mliska@suse.cz>
17730 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
17731 to detect working job server.
17732 (driver::detect_jobserver): Test whether jobserver
17733 is active from GCC driver. That will prevent situation where
17734 GCC is invoked from a LD plugin and the linker already uses
17735 file descriptors suggested by make. That leads to a wrong
17737 * gcc.h (driver): Add detect_jobserver.
17738 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
17739 not scanning for --jobserver-auth prefix.
17741 2019-08-02 Jakub Jelinek <jakub@redhat.com>
17743 PR tree-optimization/91201
17744 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
17745 V16QImode extraction without sse4.1 try to use V4SImode lowpart
17748 2019-08-01 Martin Sebor <msebor@redhat.com>
17751 * tree.c (type_initializer_zero_p): Define.
17752 * tree.h (type_initializer_zero_p): New function.
17754 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17756 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
17758 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
17760 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
17761 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
17762 * predict.c (maybe_hot_count_p): Likewise.
17763 (maybe_hot_bb_p): Tweak comment.
17764 (maybe_hot_edge_p): Likewise.
17765 (probably_never_executed): Likewise. Minor tweak.
17766 (probably_never_executed_bb_p): Likewise.
17767 (unlikely_executed_edge_p): Likewise.
17768 (probably_never_executed_edge_p): Likewise.
17769 (optimize_function_for_size_p): Likewise.
17770 (optimize_function_for_speed_p): Likewise.
17771 (function_optimization_type): Likewise.
17772 (optimize_bb_for_size_p): Likewise.
17773 (optimize_bb_for_speed_p): Likewise.
17774 (bb_optimization_type): Likewise.
17775 (optimize_edge_for_size_p): Likewise.
17776 (optimize_edge_for_speed_p): Likewise.
17777 (optimize_insn_for_size_p): Likewise.
17778 (optimize_insn_for_speed_p): Likewise.
17779 (optimize_loop_for_size_p): Likewise.
17780 (optimize_loop_for_speed_p): Likewise.
17781 (optimize_loop_nest_for_speed_p): Likewise.
17782 (optimize_loop_nest_for_size_p): Likewise.
17783 (predictable_edge_p): Likewise.
17784 (handle_missing_profiles): Minor tweak.
17786 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
17788 * config/rs6000/predicates.md (pcrel_external_address): Update
17791 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17794 * config/i386/mmx.md (usadv8qi): New expander.
17796 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
17799 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
17800 with reserved names that are in a system header.
17802 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
17804 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
17805 (*vec_extractv2si_0_zext_sse4): New insn pattern.
17806 (*vec_extractv2si_0_zext): Ditto.
17807 (*vec_extractv2si_1): Add (rm,x) alternative.
17808 (*vec_extractv2si_1_zext): New insn pattern.
17809 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
17812 2019-08-01 Richard Biener <rguenther@suse.de>
17814 * domwalk.c (bb_postorder): Remove static variable.
17815 (cmp_bb_postorder): Adjust.
17816 (sort_bbs_postorder): Adjust and use gcc_sort_r.
17817 (dom_walker::walk): Adjust.
17819 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
17821 * sort.cc (sort_r_ctx): New struct.
17822 (reorder23): Make templated on context type.
17823 (reorder45): Ditto.
17824 (cmp1): Ditto. Adjust signature.
17826 (mergesort): Ditto.
17827 [CHECKING_P] (cmp2to3): New static function. Use it...
17828 (gcc_qsort) [CHECKING_P]: ...here.
17829 (gcc_sort_r): New function.
17830 * system.h (sort_r_cmp_fn): New function typedef.
17831 (qsort_chk): Adjust signature.
17832 (gcc_sort_r): Declare.
17833 * vec.c (qsort_chk_error): Adjust.
17834 (qsort_chk): Adjust.
17836 2019-08-01 Richard Biener <rguenther@suse.de>
17838 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
17839 (compute_antic): Localize it here.
17841 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
17843 * common/config/riscv/riscv-common.c: Check -march string ends
17846 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
17848 * ipa-devirt.c (type_warning_cmp): Make static.
17849 (decl_warning_cmp): Ditto.
17851 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
17854 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
17855 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
17856 use of deleted rs6000_dejagnu_cpu_index variable.
17857 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
17858 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17859 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
17860 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
17861 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
17862 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
17864 2019-07-31 Richard Biener <rguenther@suse.de>
17866 PR tree-optimization/91280
17867 * tree-ssa-structalias.c (get_constraint_for_component_ref):
17868 Decompose MEM_REF manually for offset handling.
17870 2019-07-31 Richard Biener <rguenther@suse.de>
17872 PR tree-optimization/91293
17873 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
17874 of reduction stmts.
17876 2019-07-31 Matt Thomas <matt@3am-software.com>
17877 Nick Hudson <nick@nthcliff.demon.co.uk>
17878 Matthew Green <mrg@eterna.com.au>
17879 Maya Rashish <coypu@sdf.org>
17881 * config.gcc (hppa*-*-netbsd*): New target.
17882 * config/pa/pa-netbsd.h: New file.
17883 * config/pa/pa32-netbsd.h: New file.
17885 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17887 PR tree-optimization/91201
17888 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
17890 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
17892 * config/gcn/gcn-valu.md
17893 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
17894 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
17895 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
17896 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
17897 struct ilist. Add nops for delayeduse insns.
17898 * config/gcn/gcn.md (delayeduse): New attribute.
17899 (*movbi): Remove s_waitcnt from stores.
17900 (*mov<mode>_insn): Likewise.
17901 (*movti_insn): Likewise. Add delayeduse attribute.
17902 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
17903 (atomic_store<mode>): Remove or adjust s_waitcnt.
17905 2019-07-31 Richard Biener <rguenther@suse.de>
17907 * vr-values.h (vr_values::swap_vr_value): New.
17908 (vr_values::free_value_range): likewise.
17909 * vr-values.c (vr_values::swap_vr_value): Implement.
17910 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
17911 Do not return a range or take a var.
17912 (evrp_range_analyzer::stack): Change back to recording a non-const
17914 * gimple-ssa-evrp-analyze.c
17915 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
17917 (evrp_range_analyzer::pop_to_marker): Adjust.
17918 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
17919 (evrp_range_analyzer::pop_value_range): Likewise. Free the
17920 no longer needed value-range.
17922 2019-07-31 Martin Liska <mliska@suse.cz>
17924 * tree-ssa-dce.c (propagate_necessity): Delete operator can
17925 have size and (or) alignment as 2nd and later arguments.
17926 Mark all of them as necessary.
17928 2019-07-31 Richard Biener <rguenther@suse.de>
17930 PR tree-optimization/91178
17931 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
17932 Use tail-recursion.
17934 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17936 PR tree-optimization/91201
17937 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
17938 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
17940 (reduc_plus_scal_<mode>): Improve formatting by introducing
17943 2019-07-31 Sudakshina Das <sudi.das@arm.com>
17945 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
17946 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
17947 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
17948 (aarch64_init_tme_builtins): New.
17949 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
17950 (aarch64_expand_builtin_tme): New.
17951 (aarch64_expand_builtin): Handle TME builtins.
17952 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
17953 __ARM_FEATURE_TME when enabled.
17954 * config/aarch64/aarch64-option-extensions.def: Add "tme".
17955 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
17957 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
17958 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
17960 (tstart, ttest, tcommit, tcancel): New instructions.
17961 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
17962 (__tcancel, __ttest): New.
17963 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
17964 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
17965 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
17966 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
17967 * config/arm/types.md: Add new tme type attr.
17968 * doc/invoke.texi: Document "tme".
17970 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
17972 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
17973 warn_unused_result attribute.
17974 (cmse_check_address_range): Add warn_unused_result attribute.
17976 2019-07-31 Richard Biener <rguenther@suse.de>
17978 PR tree-optimization/91257
17979 * tree-vrp.c (union_ranges): Unify equality and less tests
17980 by using compare_values. Re-order cheap tests first.
17982 2019-07-31 Jakub Jelinek <jakub@redhat.com>
17984 PR middle-end/91301
17985 * gimplify.c (gimplify_omp_for): If for class iterator on
17986 distribute parallel for there is no data sharing clause
17987 on inner_for_stmt, look for private clause on combined
17988 parallel too and if found, move it to inner_for_stmt.
17990 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
17992 * lra-int.h (lra_operand_data): Remove early_clobber field.
17993 (lra_insn_reg): Likewise.
17994 * lra.c (debug_operand_data): Update accordingly.
17995 (setup_operand_alternative): Likewise.
17996 (new_insn_reg): Likewise. Remove early_clobber parameter.
17997 (collect_non_operand_hard_regs): Update call accordingly.
17998 Don't assign to lra_insn_reg::early_clobber.
17999 (add_regs_to_insn_regno_info): Remove early_clobber parameter
18000 and update calls to new_insn_reg.
18001 (lra_update_insn_regno_info): Update calls accordingly.
18002 * lra-constraints.c (update_and_check_small_class_inputs): Take the
18003 alternative number as a parameter and test whether the operand
18004 is earlyclobbered in that particular alternative.
18005 (process_alt_operands): Update call accordingly. Use per-alternative
18006 checks for earyclobber here too.
18007 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
18008 against zero for IRA_UNKNOWN_ALT.
18010 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18012 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
18014 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
18016 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
18017 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18019 2019-07-30 Martin Liska <mliska@suse.cz>
18022 * cgraph.c (cgraph_edge::make_direct): Use
18023 edge->indirect_unknown_callee as edge->resolve_speculation can
18024 deallocate edge which is this pointer.
18026 2019-07-30 Richard Biener <rguenther@suse.de>
18028 PR tree-optimization/91257
18029 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
18031 2019-07-30 Martin Liska <mliska@suse.cz>
18033 * doc/invoke.texi: Document new behavior.
18034 * lto-wrapper.c (cpuset_popcount): New function
18035 is a copy of libgomp/config/linux/proc.c.
18036 (init_num_threads): Likewise.
18037 (run_gcc): Automatically detect core count for -flto.
18038 (jobserver_active_p): New function.
18040 2019-07-30 Richard Biener <rguenther@suse.de>
18042 PR tree-optimization/91257
18043 * bitmap.h (bitmap_ior_into_and_free): Declare.
18044 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
18045 whether to add the unliked element to the freelist.
18046 (bitmap_list_insert_element_after): Add defaulted param for
18047 an already allocated element.
18048 (bitmap_ior_into_and_free): New function.
18049 * tree-ssa-structalias.c (condense_visit): Reduce the
18050 ponts-to and edge bitmaps of the SCC members in a
18051 logarithmic fashion rather than all to one.
18053 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
18055 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
18056 parameter. When nonnull, make sure that the addition or subtraction
18057 has the same condition.
18058 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
18059 for CFN_COND_MUL too.
18061 2019-07-30 Richard Biener <rguenther@suse.de>
18063 PR tree-optimization/91291
18064 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
18067 2019-07-30 Jakub Jelinek <jakub@redhat.com>
18069 PR middle-end/91216
18070 * omp-low.c (global_nonaddressable_vars): New variable.
18071 (use_pointer_for_field): For global decls, if they are non-addressable,
18072 remember it in the global_nonaddressable_vars bitmap, if they are
18073 addressable and in the global_nonaddressable_vars bitmap, ignore their
18074 TREE_ADDRESSABLE bit.
18075 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
18076 vars in global_nonaddressable_vars bitmap.
18077 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
18080 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
18081 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
18082 comparison to unsigned HOST_WIDE_INT before shifting it left.
18084 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
18086 * config/i386/i386.md (movstrict<mode>): Use register_operand
18087 predicate for operand 0. Add expander condition. Assert that
18088 operand 0 is a SUBREG RTX.
18089 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
18090 Update operand constraints and insn condition.
18091 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
18092 (zero_extendqihi2_and): Do not call gen_movstrictqi.
18093 (*setcc_qi_slp): Use register_operand predicate for operand 0.
18094 Update operand 0 constraints.
18095 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
18097 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18099 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
18100 when -m{code,data}-region are used without -mlarge.
18101 * config/msp430/msp430.c (msp430_option_override): Error when a
18102 non-default code or data region is used without -mlarge.
18103 (msp430_section_attr): Emit a warning and do not add upper/lower/either
18104 attributes when they are used without -mlarge.
18106 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18109 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
18111 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18113 PR middle-end/91242
18114 * wide-int.h (generic_wide_int::sext_elt): New function.
18115 * inchash.h (hash::add_wide_int): Use it instead of elt.
18117 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18119 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
18121 * config/arm/arm.md (<crc_variant>): Rename to...
18122 (arm_<crc_variant>): ... This.
18123 (<cdp>): Rename to...
18124 (arm_<cdp>): ... This.
18125 (<ldc>): Rename to...
18126 (arm_<ldc>): ... This.
18127 (<stc>): Rename to...
18128 (arm_<stc>): ... This.
18129 (<mcr>): Rename to...
18130 (arm_<mcr>): ... This.
18131 (<mrc>): Rename to...
18132 (arm_<mrc>): ... This.
18133 (<mcrr>): Rename to...
18134 (arm_<mcrr>): ... This.
18135 (<mrrc>): Rename to...
18136 (arm_<mrrc>): ... This.
18138 2019-07-29 Richard Biener <rguenther@suse.de>
18140 PR tree-optimization/91257
18141 * tree-ssa-sccvn.h (struct vn_avail): New.
18142 (struct vn_ssa_aux): Add avail member.
18143 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
18144 member, add m_avail_freelist one.
18145 (rpo_elim::~rpo_elim): Remove.
18146 (rpo_elim::eliminate_avail): Adjust to new avail tracking
18148 (rpo_elim::eliminate_push_avail): Likewise.
18149 (do_unwind): Likewise.
18150 (do_rpo_vn): Likewise.
18152 2019-07-29 Richard Biener <rguenther@suse.de>
18154 PR tree-optimization/91257
18155 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
18156 most cases, instead call compare_values which handles the
18157 symbolic ranges we handle specially.
18158 (compare_values_warnv): Do not call operand_less_p but open-code
18159 the effective fold calls. Avoid converting so much.
18161 2019-07-29 Martin Liska <mliska@suse.cz>
18163 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
18164 remove LHS of operator new call. It's handled latter.
18166 2019-07-29 Richard Biener <rguenther@suse.de>
18168 PR tree-optimization/91267
18169 * vr-values.c (vr_values::update_value_range): Add early return
18170 for effectively VARYING lattice entry.
18172 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18175 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
18176 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
18177 necessary if keep_all_vdefs_p is true.
18178 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
18179 that keep_all_vdefs_p is false.
18180 (mark_all_reaching_defs_necessary): Likewise.
18181 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
18183 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18185 * common.opt (Og): Change the initial value of flag_dse to 0.
18186 * opts.c (default_options_table): Move OPT_ftree_dse from
18187 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
18188 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
18189 entry before the OPT_ftree_sra entry.
18190 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
18191 of flags disabled by Og.
18193 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18195 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
18198 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18200 * doc/sourcebuild.texi (check-function-bodies): Document.
18202 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18204 * simplify-rtx.c (simplify_const_unary_operation): Fold a
18205 VEC_DUPLICATE of a fixed-length vector even if the result
18206 is variable-length. Likewise fold a duplicate of a
18207 variable-length vector if the variable-length vector is
18208 itself a duplicate of a fixed-length sequence.
18209 (test_vector_ops_duplicate): Test more cases.
18211 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
18213 * vector-builder.h (vector_builder): Add a shape template parameter.
18214 (vector_builder::new_unary_operation): New function, generalizing
18215 the old tree_vector_builder function.
18216 (vector_builder::new_binary_operation): Likewise.
18217 (vector_builder::binary_encoded_nelts): Likewise.
18218 * int-vector-builder.h (int_vector_builder): Update template
18219 parameters to vector_builder.
18220 (int_vector_builder::shape_nelts): New function.
18221 * rtx-vector-builder.h (rtx_vector_builder): Update template
18222 parameters to vector_builder.
18223 (rtx_vector_builder::shape_nelts): New function.
18224 (rtx_vector_builder::nelts_of): Likewise.
18225 (rtx_vector_builder::npatterns_of): Likewise.
18226 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
18227 * tree-vector-builder.h (tree_vector_builder): Update template
18228 parameters to vector_builder.
18229 (tree_vector_builder::shape_nelts): New function.
18230 (tree_vector_builder::nelts_of): Likewise.
18231 (tree_vector_builder::npatterns_of): Likewise.
18232 (tree_vector_builder::nelts_per_pattern_of): Likewise.
18233 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
18234 (tree_vector_builder::new_binary_operation): Delete.
18235 (tree_vector_builder::binary_encoded_nelts): Likewise.
18236 * simplify-rtx.c: Include rtx-vector-builder.h.
18237 (distributes_over_addition_p): New function.
18238 (simplify_const_unary_operation)
18239 (simplify_const_binary_operation): Generalize handling of vector
18240 constants to include variable-length vectors.
18241 (test_vector_ops_series): Add more tests.
18243 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
18246 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
18247 than INDENTIFIER_POINTER.
18249 2019-07-28 Martin Liska <mliska@suse.cz>
18252 * cgraph.c (symbol_table::create_edge): Always allocate
18254 (symbol_table::free_edge): Store summary_id to
18255 edge_released_summary_ids if != -1;
18256 * cgraph.h (NEXT_FREE_NODE): Remove.
18257 (SET_NEXT_FREE_NODE): Likewise.
18258 (NEXT_FREE_EDGE): Likewise.
18259 (symbol_table::release_symbol): Store summary_id to
18260 cgraph_released_summary_ids if != -1;
18261 (symbol_table::allocate_cgraph_symbol): Always allocate
18264 2019-07-28 Alan Modra <amodra@gmail.com>
18266 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
18269 2019-07-28 Alan Modra <amodra@gmail.com>
18272 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
18274 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
18275 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
18276 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
18278 2019-07-28 Alan Modra <amodra@gmail.com>
18281 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
18282 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
18283 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
18284 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
18285 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18286 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
18287 in asm_default spec.
18288 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
18289 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
18291 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
18293 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
18295 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18298 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
18299 * config/aarch64/aarch64-option-extensions.def: Add new comments
18300 and restore easier to read options.
18302 2019-07-26 Tamar Christina <tamar.christina@arm.com>
18304 * convert.c (convert_to_real_1): Move part of conversion code...
18305 * match.pd: ...To here.
18307 2019-07-26 Martin Jambor <mjambor@suse.cz>
18310 * ipa-inline-transform.c (check_speculations_1): New function.
18311 (push_all_edges_in_set_to_vec): Likewise.
18312 (check_speculations): Use check_speculations_1, new parameter
18314 (inline_call): Pass new_edges to check_speculations.
18315 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
18317 (speculation_useful_p): Early return true if edge is inlined, remove
18318 later checks for inline_failed.
18320 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
18322 PR rtl-optimization/91223
18323 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
18324 matching with INOUT operand.
18326 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18328 * stmt.c (expand_case): Try to narrow the index type if it's larger
18329 than a word. Tidy up.
18331 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
18333 * cif-code.def (NEVER_CALL): New code.
18334 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
18335 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
18337 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
18339 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
18340 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
18342 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18344 * ipa-devirt.c (add_type_duplicate): Fix return value.
18346 2019-07-25 Richard Biener <rguenther@suse.de>
18348 * tree-vrp.c (extract_range_from_multiplicative_op): Add
18349 type parameter and use it instead of guessing expression
18350 type from the first operand.
18351 (extract_range_from_binary_expr): Pass expr_type down.
18353 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18355 * config/arm/arm.md (SATrev): Change to code attribute.
18356 (*satsi_<SAT:code>): Adjust for the above.
18357 (*satsi_<SAT:code>_shift): Likewise.
18359 2019-07-25 Richard Biener <rguenther@suse.de>
18361 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
18362 Make value_range * temporary const.
18363 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
18365 (evrp_range_analyzer::record_ranges_from_): Likewise.
18366 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
18367 deal with having recorded a const one.
18368 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
18369 Return a const value_range *.
18370 (evrp_range_analyzer::pop_value_range): Likewise.
18371 (evrp_range_analyzer::stack): Record const value_range *s.
18372 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
18374 * gimple-ssa-sprintf.c (get_int_range): Likewise.
18375 (format_integer): Likewise.
18376 (sprintf_dom_walker::handle_gimple_call): Likewise.
18377 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
18378 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
18379 (vrp_prop::get_value_range): Adjust.
18380 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
18381 modifying the lattice in-place.
18382 (vrp_prop::visit_stmt): Likewise.
18383 * vr-values.c (vr_values::get_lattice_entry): New private method.
18384 (vr_values::get_value_range): Wrap it and return a const
18386 (vr_values::set_def_to_varying): New.
18387 (vr_values::set_defs_to_varying): Use it.
18388 (vr_values::update_value_range): Likewise.
18389 (vr_values::vrp_stmt_computes_nonzero): Adjust.
18390 (values::op_with_constant_singleton_va): Likewise.
18391 (vr_values::extract_range_for_var_from_co): Likewise.
18392 (vr_values::extract_range_from_ssa_name): Likewise.
18393 (vr_values::extract_range_from_cond_expr): Likewise.
18394 (vr_values::extract_range_basic): Likewise.
18395 (compare_ranges): Take const value_range *, adjust.
18396 (compare_range_with_value): Likewise.
18397 (vrp_valueize): Adjust.
18398 (vrp_valueize_1): Likewise.
18399 (vr_values::get_vr_for_comparison): Return a const value_range *.
18400 (vr_values::compare_name_with_value): Adjust.
18401 (vr_values::compare_names): Likewise.
18402 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18404 (vr_values::vrp_evaluate_conditional): Likewise.
18405 (find_case_label_ranges): Take a const value_range *.
18406 (vr_values::vrp_visit_switch_stmt): Adjust.
18407 (vr_values::extract_range_from_phi_node): Likewise.
18408 (vr_values::simplify_div_or_mod_using_ran): Likewise.
18409 (vr_values::simplify_abs_using_ranges): Likewise.
18410 (test_for_singularity): Take a const value_range *.
18411 (range_fits_type_p): Likewise.
18412 (vr_values::simplify_cond_using_ranges_1): Adjust.
18413 (vr_values::simplify_cond_using_ranges_2): Likewise.
18414 (vr_values::simplify_switch_using_ranges): Likewise.
18415 (vr_values::simplify_float_conversion_usi): Likewise.
18416 (vr_values::two_valued_val_range_p): Likewise.
18417 * vr-values.h (vr_values::get_value_range): Return a const
18419 (vr_values::set_def_to_varying): New.
18420 (vr_values::get_lattice_entry): New private method.
18421 (vr_values::get_vr_for_comparison): Return a const value_range *.
18423 2019-07-25 Martin Liska <mliska@suse.cz>
18424 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
18427 * common.opt: Add -fallocation-dce
18428 * gimple.c (gimple_call_operator_delete_p): New.
18429 * gimple.h (gimple_call_operator_delete_p): Likewise.
18430 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
18431 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
18432 DECL_IS_OPERATOR_DELETE_P.
18433 (mark_all_reaching_defs_necessary_1): Likewise.
18434 (propagate_necessity): Likewise.
18435 (eliminate_unnecessary_stmts): Handle
18436 gimple_call_operator_delete_p.
18437 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
18438 Add packing of OPERATOR_DELETE.
18439 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
18441 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
18442 (DECL_SET_IS_OPERATOR_DELETE): New.
18443 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
18445 2019-07-25 Martin Liska <mliska@suse.cz>
18447 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
18448 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
18449 * coverage.c (coverage_begin_function): Likewise.
18450 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
18451 * gimple.c (gimple_call_nonnull_result_p): Likewise.
18452 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
18453 (sem_item::hash_referenced_symbol_properties): Likewise.
18454 * lto-streamer-out.c (hash_tree): Likewise.
18455 * predict.c (expr_expected_value_1): Likewise.
18456 * tree-inline.c (expand_call_inline): Likewise.
18457 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
18458 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
18459 * tree-core.h (enum function_decl_type): New enum.
18460 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
18461 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
18462 (set_function_decl_type): Likewise.
18463 (DECL_IS_OPERATOR_NEW_P): New.
18464 (DECL_SET_IS_OPERATOR_NEW): Likewise.
18465 (DECL_LAMBDA_FUNCTION): Likewise.
18466 (DECL_LAMBDA_FUNCTION_P): Likewise.
18467 (DECL_IS_OPERATOR_NEW): Remove.
18468 (DECL_SET_LAMBDA_FUNCTION): Likewise.
18470 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
18472 * ipa-profile.c (get_most_common_single_value): Use
18473 get_nth_most_common_value.
18474 * profile.c (sort_hist_value): New function.
18475 (compute_value_histograms): Call sort_hist_value to sort the
18476 values after loading from disk.
18477 * value-prof.c (get_most_common_single_value): Rename to ...
18478 get_nth_most_common_value. Add input params n, return
18479 the n_th value and count.
18480 (gimple_divmod_fixed_value_transform): Use
18481 get_nth_most_common_value.
18482 (gimple_ic_transform): Likewise.
18483 (gimple_stringops_transform): Likewise.
18484 * value-prof.h (get_most_common_single_value): Add input params
18487 2019-07-25 Richard Biener <rguenther@suse.de>
18489 PR tree-optimization/91236
18490 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
18491 size of CONSTRUCTOR write. Fix buffer size we pass to
18492 native_encode_expr.
18494 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18496 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
18497 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
18500 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18502 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
18503 explicitly disabled with --disable-initfini-array.
18505 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18507 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
18510 2019-07-24 Martin Sebor <msebor@redhat.com>
18512 PR tree-optimization/91183
18513 PR tree-optimization/86688
18514 * builtins.c (compute_objsize): Handle MEM_REF.
18515 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
18516 (get_min_string_length): Remove.
18517 (count_nonzero_bytes): New function.
18518 (handle_char_store): Rename...
18519 (handle_store): to this. Handle multibyte stores via integer types.
18520 (strlen_check_and_optimize_stmt): Adjust conditional and the called
18523 2019-07-24 Martin Sebor <msebor@redhat.com>
18526 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
18527 (diagnostic_report_diagnostic): Same.
18528 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
18529 (diagnostic_context::lang_mask): New data member.
18530 * ipa-pure-const.c (suggest_attribute): Use
18531 lang_hooks.option_lang_mask ().
18532 * opts-common.c (option_enabled): Handle new argument.
18533 (get_option_state): Pass an additional argument.
18534 * opts.c (print_filtered_help): Print supported languages for
18535 unsupported options. Adjust printing of current state.
18536 * opts.h (option_enabled): Add argument.
18537 * toplev.c (print_switch_values): Use lang_mask.
18538 (general_init): Set global_dc->lang_mask.
18540 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18543 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
18545 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
18547 * cgraphunit.c (symbol_table::compile): Start and stop
18548 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
18549 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
18551 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
18553 * gimplify.c (flag_instrument_functions_exclude_p): Include
18554 namespace/class information in the printable name.
18555 * opts.c (add_comma_separated_to_vector): Add NUL terminator
18556 to tokens entered into the vector.
18558 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
18560 * tree-nested.c (build_simple_mem_ref_notrap): New function.
18561 (get_static_chain): Call it instead of build_simple_mem_ref.
18562 (get_frame_field): Likewise.
18563 (get_nonlocal_debug_decl): Likewise.
18564 (convert_nonlocal_reference_op): Likewise.
18566 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
18568 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
18570 (arc_compute_frame_size): Millicode is disabled when compiling
18572 (arc_return_address_register): Likewise.
18573 (arc_compute_function_type): Likewise.
18574 (arc_compute_frame_size): Likewise.
18575 (secondary_reload_info): Likewise.
18576 (arc_get_unalign): Likewise.
18577 (arc_can_use_return_insn): Declare.
18578 * config/arc/arc.c (AUX_LP_START): Define
18579 (AUX_LP_END): Likewise.
18580 (arc_frame_info): Update gmask member to 64-bit datum.
18581 (GMASK_LEN): Update.
18582 (arc_compute_function_type): Make it static, move it forward.
18583 (arc_must_save_register): Update, consider the extra regs.
18584 (arc_compute_millicode_save_restore_regs): Update to use the 64
18586 (arc_compute_frame_size): Likewise.
18587 (arc_enter_leave_p): Likewise.
18588 (arc_save_callee_saves): Likewise.
18589 (arc_restore_callee_saves): Likewise.
18590 (arc_save_callee_enter): Likewise.
18591 (arc_restore_callee_leave): Likewise.
18592 (arc_save_callee_milli): Likewise.
18593 (arc_restore_callee_milli): Likewise.
18594 (arc_expand_prologue): Add new interrupt handling.
18595 (arc_return_address_register): Make it static, move it forward.
18596 (arc_expand_epilogue): Add new interrupt handling.
18597 (arc_get_unalign): Delete.
18598 (arc_epilogue_uses): Make sure we do not remove the extra
18599 saved/restored registers when interrupt.
18600 (arc_can_use_return_insn): New function.
18601 (push_reg): Likewise.
18602 (pop_reg): Likewise.
18603 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
18605 (arc_restore_callee_saves): Likewise, but restoring.
18606 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
18607 (R33_REG): Likewise.
18608 (R34_REG): Likewise.
18609 (R35_REG): Likewise.
18610 (R36_REG): Likewise.
18611 (R37_REG): Likewise.
18612 (R38_REG): Likewise.
18613 (R39_REG): Likewise.
18614 (R45_REG): Likewise.
18615 (R46_REG): Likewise.
18616 (R47_REG): Likewise.
18617 (R48_REG): Likewise.
18618 (R49_REG): Likewise.
18619 (R50_REG): Likewise.
18620 (R51_REG): Likewise.
18621 (R52_REG): Likewise.
18622 (R53_REG): Likewise.
18623 (R54_REG): Likewise.
18624 (R55_REG): Likewise.
18625 (R56_REG): Likewise.
18626 (R58_REG): Likewise.
18627 (type): Add rtie attribute.
18628 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
18629 (movsi_insn): Accept moves to lp_count.
18630 (rtie): Update pattern.
18631 (simple_return): Simplify it, don't use this pattern as a return
18633 (arc600_rtie): New pattern.
18634 (p_return_i): Clean up.
18635 (return): Likewise.
18636 * config/arc/builtins.def (rtie): Only available for non ARC6xx
18638 * config/arc/predicates.md (move_src_operand): Consider lp_count
18641 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
18643 * config/s390/predicates.md (addv_const_operand): New predicate.
18644 * config/s390/s390-modes.def (CCO): New condition code mode.
18645 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
18646 (s390_branch_condition_mask): Likewise.
18647 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
18648 ("mulv<mode>4"): New expanders.
18649 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
18650 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
18651 pattern definitions.
18653 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
18655 PR middle-end/91166
18656 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
18657 (define_predicates): Add entry for uniform_vector_p.
18658 (vec_same_elem_p): New match pattern.
18660 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
18663 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
18664 * config/i386/darwin32-biarch.h .. to here.
18665 * config/i386/darwin64-biarch.h: Adjust comments.
18666 * config/rs6000/darwin32-biarch.h: Likewise.
18667 * config/rs6000/darwin64-biarch.h: Likewise.
18668 * config.gcc: Missed commit from r273746
18669 (*-*-darwin*): Don't include CPU t-darwin here.
18670 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18671 an error message if i686-darwin configuration is attempted for
18674 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
18677 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
18678 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
18679 an error message if i686-darwin configuration is attempted for
18681 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
18682 (powerpc-*-darwin*): Use biarch files where needed.
18683 (powerpc64-*-darwin*): Likewise.
18684 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
18685 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18687 * config/i386/darwin32-biarch.h: New.
18688 * config/i386/darwin64.h: Rename.
18689 * config/i386/darwin64-biarch.h: To this.
18690 * config/i386/t-darwin: Rename.
18691 * config/i386/t-darwin32-biarch: To this.
18692 * config/i386/t-darwin64: Rename.
18693 * config/i386/t-darwin64-biarch: To this.
18694 * config/rs6000/darwin32-biarch.h: New.
18695 * config/rs6000/darwin64.h: Rename.
18696 * config/rs6000/darwin64-biarch.h: To this.
18697 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
18699 * config/rs6000/t-darwin8: Rename.
18700 * config/rs6000/t-darwin32-biarch: To this.
18701 * config/rs6000/t-darwin64 Rename.
18702 * config/rs6000/t-darwin64-biarch: To this.
18704 2019-07-23 Martin Sebor <msebor@redhat.com>
18706 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
18708 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18710 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
18711 (rh): New alias for it.
18713 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
18715 * gdbhooks.py: Pass replace=True to
18716 gdb.printing.register_pretty_printer.
18718 2019-07-23 Richard Biener <rguenther@suse.de>
18721 * lto-streamer-in.c (input_function): Drop inline-entry markers
18722 that ended up with an unknown location block.
18724 2019-07-23 Richard Biener <rguenther@suse.de>
18726 PR tree-optimization/83518
18727 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
18728 init from a constant even when partial defs are already recorded.
18730 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18732 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
18733 * config/i386/znver1.md: Enable patterns for znver2 and add store
18734 variants which use extra AGU unit.
18736 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18738 * config/i386/i386-options.c (ix86_option_override_internal): Default
18739 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
18740 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
18743 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
18745 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
18746 (znver2_costs): Update 256 bit SSE costs and multiplication.
18748 2019-07-23 Jan Beulich <jbeulich@suse.com>
18750 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
18751 Require only AVX512F.
18752 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
18753 alternative expanding to vpternlog.
18755 2019-07-23 Martin Liska <mliska@suse.cz>
18757 * dwarf2out.c (gen_producer_string): Canonize -flto=N
18758 to -flto in dwarf producer string.
18760 2019-07-23 Richard Biener <rguenther@suse.de>
18762 * tree-cfg.c (label_for_bb): Remove global var.
18763 (main_block_label): Take label_for_bb as argument.
18764 (cleanup_dead_labels_eh): Likewise, adjust.
18765 (cleanup_dead_labels): Adjust.
18767 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18769 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
18770 Configurations): Add documentation for __builtin_mtfsf.
18772 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
18774 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
18775 * config/riscv/riscv.c (riscv_constant_alignment): Use
18776 riscv_align_data_type.
18777 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
18778 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18779 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
18780 * config/riscv/riscv.opt (malign-data): New.
18781 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
18783 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
18785 * cgraph.c (dump_graphviz): New function.
18786 * cgraph.h (dump_graphviz): New function.
18787 * symtab.c (dump_graphviz): New function.
18789 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
18791 * config/aarch64/aarch64-simd.md
18792 (*aarch64_simd_sra<mode>): New.
18793 * config/aarch64/iterators.md
18794 (SHIFTRT): New iterator.
18795 (sra_op): New attribute.
18797 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
18799 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
18800 callee-saved regs R4->R10 in an interrupt function that calls another
18803 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
18805 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
18806 (_mm_blendv_epi8): New.
18808 2019-07-22 Richard Biener <rguenther@suse.de>
18810 PR tree-optimization/91221
18811 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
18812 restrict partial-def handling of empty constructors and
18813 memset to refs with known offset.
18815 2019-07-22 Jan Beulich <jbeulich@suse.com>
18817 * config/i386/sse.md (ternlogsuffix): New.
18818 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
18820 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
18822 2019-07-22 Martin Liska <mliska@suse.cz>
18824 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
18826 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
18828 2019-07-22 Martin Liska <mliska@suse.cz>
18830 * lto-section-in.c (lto_get_section_data):
18831 Use new function get_compression.
18832 * lto-streamer-out.c (produce_lto_section): Use
18833 set_compression to encode compression algorithm.
18834 * lto-streamer.h (struct lto_section): Do not
18835 use bitfields in the format.
18837 2019-07-22 Martin Liska <mliska@suse.cz>
18840 * opts-common.c (decode_cmdline_option): Decode
18841 argument of -Werror and check it for a wrong language.
18842 * opts-global.c (complain_wrong_lang): Remove such case.
18844 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
18846 * config/arc/arc.c (prepare_move_operands): Always use an
18847 intermediate register when storing a TLS symbols.
18849 2019-07-22 Stafford Horne <shorne@gmail.com>
18851 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
18854 2019-07-22 Stafford Horne <shorne@gmail.com>
18856 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
18857 and munordered-float validations.
18858 * config/or1k/constraints.md (d): New register constraint.
18859 * config/or1k/predicates.md (fp_comparison_operator): New.
18860 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
18862 (or1k_expand_compare): Normalize unordered comparisons.
18863 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
18864 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
18865 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
18866 * config/or1k/or1k.md (type): Add fpu.
18867 (fpu): New instruction reservation.
18868 (F, f, fr, fi, FI, FOP, fop): New.
18869 (<fop><F:mode>3): New ALU instruction definition.
18870 (float<fi><F:mode>2): New conversion instruction definition.
18871 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
18872 (fpcmpcc): New code iterator.
18873 (*sf_fp_insn): New instruction definition.
18874 (cstore<F:mode>4): New expand definition.
18875 (cbranch<F:mode>4): New expand definition.
18876 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
18877 munordered-float): New options.
18878 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
18881 2019-07-22 Stafford Horne <shorne@gmail.com>
18883 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
18884 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
18885 documenation to be more clear.
18886 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
18888 * config/or1k/or1k.opt (mrori): New option.
18889 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
18890 msfimm, mshftimm): Rewrite documentation to be more clear.
18891 * config/or1k/or1k.md (insn_support): Add ror and rori.
18892 (enabled): Add conditions for ror and rori.
18893 (rotrsi3): Replace condition for shftimm with ror and rori.
18895 2019-07-22 Stafford Horne <shorne@gmail.com>
18898 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
18899 (extend<mode>si2): Update predicate.
18900 * config/or1k/predicates.md (volatile_mem_operand): New.
18901 (reg_or_mem_operand): New.
18903 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
18905 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
18906 * config/rs6000/rs6000-call.c: ... to here.
18908 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18910 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
18913 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18915 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
18917 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18919 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
18921 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
18923 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
18924 (any_memory_operand): New predicate.
18925 (reg_or_mem_operand): Use it.
18927 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18930 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
18932 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
18934 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
18935 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
18937 2019-07-20 Jakub Jelinek <jakub@redhat.com>
18939 * tree.def (OMP_LOOP): New tree code.
18940 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
18941 (enum omp_clause_bind_kind): New enum.
18942 (struct tree_omp_clause): Add subcode.bind_kind.
18943 * tree.h (OMP_LOOP_CHECK): Rename to ...
18944 (OMP_LOOPING_CHECK): ... this.
18945 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
18946 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
18947 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
18948 (OMP_CLAUSE_BIND_KIND): Define.
18949 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
18950 bind clause entries.
18951 (walk_tree_1): Handle OMP_CLAUSE_BIND.
18952 * tree-pretty-print.c (dump_omp_clause): Likewise.
18953 (dump_generic_node): Handle OMP_LOOP.
18954 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
18955 (in_omp_construct): New variable.
18956 (is_gimple_stmt): Handle OMP_LOOP.
18957 (gimplify_scan_omp_clauses): For lastprivate don't set
18958 check_non_private if code == OMP_LOOP. For reduction clause
18959 on OMP_LOOP combined with parallel or teams propagate as shared
18960 on the combined construct. Handle OMP_CLAUSE_BIND.
18961 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
18962 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
18963 for constructs from a loop construct to gimplify_scan_omp_clauses.
18964 Don't predetermine iterator linear on OMP_SIMD from loop construct.
18965 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
18966 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
18967 to match the implicit ORT_TARGET construct around whole body.
18968 Temporarily clear in_omp_construct when processing body.
18969 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
18970 etc. temporarily set in_omp_construct when processing body.
18971 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
18972 * omp-low.c (struct omp_context): Add loop_p.
18973 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
18974 in that the original var might be private.
18975 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
18976 (check_omp_nesting_restrictions): Adjust nesting restrictions for
18977 addition of loop construct.
18978 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
18980 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
18981 lastprivate non-addressable iterator of a collapse(1) simd.
18983 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
18985 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
18988 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
18990 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
18991 refer to default conditions. Warn for the 'y' spec which is ignored
18992 by current linkers.
18994 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
18996 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
18997 cpu_supports_info, builtin_hash_struct, builtin_hasher,
18998 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
18999 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19000 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19001 init_cumulative_args, rs6000_promote_function_mode,
19002 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19003 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19004 rs6000_function_arg_boundary, rs6000_parm_offset,
19005 rs6000_parm_start, rs6000_arg_size,
19006 rs6000_darwin64_record_arg_advance_flush,
19007 rs6000_darwin64_record_arg_advance_recurse,
19008 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19009 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19010 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19011 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19012 rs6000_finish_function_arg, rs6000_function_arg,
19013 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19014 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19015 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19016 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19017 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19018 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19019 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19020 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19021 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19022 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19023 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19024 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19025 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19026 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19027 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19028 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19029 get_element_number, altivec_expand_vec_set_builtin,
19030 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19031 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19032 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19033 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19034 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19035 rs6000_expand_builtin, rs6000_vector_type,
19036 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19037 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19038 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
19040 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
19041 cpu_supports_info, builtin_hash_struct, builtin_hasher,
19042 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
19043 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
19044 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
19045 init_cumulative_args, rs6000_promote_function_mode,
19046 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
19047 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
19048 rs6000_function_arg_boundary, rs6000_parm_offset,
19049 rs6000_parm_start, rs6000_arg_size,
19050 rs6000_darwin64_record_arg_advance_flush,
19051 rs6000_darwin64_record_arg_advance_recurse,
19052 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
19053 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
19054 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
19055 rs6000_mixed_function_arg, rs6000_psave_function_arg,
19056 rs6000_finish_function_arg, rs6000_function_arg,
19057 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
19058 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
19059 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
19060 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
19061 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
19062 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
19063 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
19064 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
19065 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
19066 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
19067 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
19068 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
19069 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
19070 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
19071 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
19072 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
19073 get_element_number, altivec_expand_vec_set_builtin,
19074 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
19075 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
19076 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
19077 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
19078 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
19079 rs6000_expand_builtin, rs6000_vector_type,
19080 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
19081 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
19082 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
19083 to here from rs6000.c.
19084 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
19085 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
19086 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
19087 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
19088 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
19089 rs6000_return_in_memory, rs6000_return_in_msb,
19090 rs6000_pass_by_reference, setup_incoming_varargs,
19091 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
19092 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
19093 rs6000_function_arg_padding, rs6000_function_arg,
19094 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
19095 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
19096 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
19097 rs6000_passes_long_double, rs6000_passes_vector,
19098 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
19099 altivec_builtin_mask_for_load) Add declarations.
19100 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
19101 * config/config.gcc: Add new source file rs6000-call.c to garbage
19102 collector and extra_objs.
19104 2019-07-19 Jeff Law <law@redhat.com>
19106 PR tree-optimization/86061
19107 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
19108 strncpy. Drop some trivial dead code.
19109 (maybe_trim_memstar_call): Handle strncpy.
19111 2019-07-19 Richard Biener <rguenther@suse.de>
19113 PR tree-optimization/91211
19114 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
19115 memset encoding size.
19117 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
19120 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
19122 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
19125 * ipa-inline.c (recursive_inlining): Fix limits check.
19127 2019-07-19 Richard Biener <rguenther@suse.de>
19129 PR tree-optimization/91200
19130 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
19131 no PHI nodes in middle-bb.
19133 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
19135 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
19137 * config/aarch64/aarch64-option-extensions.def: Likewise.
19139 2019-07-19 Jakub Jelinek <jakub@redhat.com>
19141 PR middle-end/91190
19142 * function.c (insert_temp_slot_address): Store into the hash table
19143 a copy of address to avoid RTL sharing issues.
19145 2019-07-19 Richard Biener <rguenther@suse.de>
19147 PR tree-optimization/91207
19149 2019-07-17 Richard Biener <rguenther@suse.de>
19151 PR tree-optimization/91178
19152 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19153 loads with a gap larger than the vector size always use
19155 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19156 avoid loading vectors that are only contained in the gap
19157 and thus are not needed.
19159 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19161 * config/i386/i386.md (*addqi_2_slp): Remove.
19162 (*<code>qi_2_slp): Ditto.
19164 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
19166 * config/rs6000/predicates.md (prefixed_mem_operand): Call
19167 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
19168 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
19169 Rename function from rs6000_prefixed_address.
19170 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19172 (TARGET_TOC): Likewise.
19173 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19175 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19177 (TARGET_TOC): Likewise.
19178 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19180 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19182 (TARGET_TOC): Likewise.
19183 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
19184 check to require -mcmodel=medium for pc-relative addressing.
19185 (create_TOC_reference): Add assertion for TARGET_TOC.
19186 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
19188 (rs6000_emit_move): Likewise.
19189 (TOC_alias_set): Rename TOC alias set static variable from 'set'
19190 to 'TOC_alias_set'.
19191 (get_TOC_alias_set): Likewise.
19192 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
19194 (rs6000_can_eliminate): Likewise.
19195 (rs6000_prefixed_address_mode_p): Rename function from
19196 rs6000_prefixed_address.
19197 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
19198 TARGET_HAS_TOC and not pc-relative.
19199 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
19200 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
19202 (TARGET_TOC): Likewise.
19203 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
19206 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
19209 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
19210 for operand 0. Do not use (match_dup) to match operand 1 with
19211 operand 0. Add check in insn constraint that either input operand
19212 matches operand 0. Use SWI12 mode iterator to also handle
19214 (*and<mode>_1_slp): Ditto.
19215 (*<code>qi_1_slp): Ditto.
19216 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
19217 Do not use (match_dup) to match operand 1 with operand 0. Add
19218 check in insn constraint that operand 1 matches operand 0.
19219 Use SWI12 mode iterator to also handle HImode operands.
19220 (*ashl<mode>3_1_slp): Ditto.
19221 (*<shift_insn><mode>3_1_slp): Ditto.
19222 (*<rotate_insn><mode>3_1_slp): Ditto.
19224 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19226 * config/arm/arm-builtins.c
19227 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
19228 (arm_expand_unop_builtin): Likewise.
19229 * config/arm/crypto.md
19230 (crypto_sha1h): Convert from define_insn to define_expand.
19231 (crypto_<crypto_pattern>): Likewise.
19232 (crypto_sha1h_lb): New define_insn.
19233 (crypto_<crypto_pattern>_lb): Likewise.
19235 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
19238 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
19239 (vsha1cq_u32): Likewise.
19240 (vsha1pq_u32): Likewise.
19241 (vsha1mq_u32): Likewise.
19242 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
19244 (crypto_sha1c): Correct vec select.
19245 (crypto_sha1m): Likewise.
19246 (crypto_sha1p): Likewise.
19248 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
19250 * config/arm/predicates.md (arm_borrow_operation): New predicate.
19251 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
19252 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
19253 (subdi_zesidi_zesidi): Likewise.
19254 (negdi2_compare, negdi2_insn): Likewise.
19255 (negdi_extensidi): Likewise.
19256 (negdi_zero_extendsidi): Likewise.
19257 (arm_cmpdi_insn): Likewise.
19258 (subsi3_carryin): Use arm_borrow_operation.
19259 (subsi3_carryin_const): Likewise.
19260 (subsi3_carryin_const0): Likewise.
19261 (subsi3_carryin_compare): Likewise.
19262 (subsi3_carryin_compare_const): Likewise.
19263 (subsi3_carryin_compare_const0): Likewise.
19264 (subsi3_carryin_shift): Likewise.
19265 (rsbsi3_carryin_shift): Likewise.
19266 (negsi2_carryin_compare): Likewise.
19268 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
19270 PR tree-optimization/91137
19271 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
19272 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
19273 Init, use and fini the above new field.
19274 (determine_base_object_1): New function.
19275 (determine_base_object): Reimplement using walk_tree.
19277 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
19279 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
19280 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
19281 CLEANUP_FORCE_FAST_DCE is set.
19282 * ifcvt.c (rest_of_handle_if_conversion): Pass
19283 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
19284 if-conversion succeeded.
19286 2019-07-18 Richard Biener <rguenther@suse.de>
19288 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
19289 branches to make code less indented.
19291 2019-07-17 Alexandre Oliva <oliva@adacore.com>
19293 PR middle-end/81824
19294 * attribs.c (decls_mismatched_attributes): Simplify the logic
19295 that avoids duplicates and false positives.
19297 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
19299 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
19300 data into data section when generating PIC code.
19301 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
19302 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
19303 generating code for SOM targets earlier than HP-UX 11. Otherwise,
19304 return 2 for SOM and 0 for other targets.
19306 2019-07-17 Jeff Law <law@redhat.com>
19308 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
19309 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
19310 avoid unexpected switch statement fallthru.
19312 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19314 * config/i386/i386.md (*add<dwi>3_doubleword):
19315 Remove redundant constraints.
19316 (*add<mode>_1): Ditto.
19319 (*addqi_1_slp): Ditto.
19320 (*add<mode>_2): Ditto.
19321 (*addv<mode>4): Ditto.
19322 (*sub<dwi>3_doubleword): Ditto.
19323 (*sub<mode>_1): Ditto.
19324 (*subqi_1_slp): Ditto.
19325 (*sub<mode>_2): Ditto.
19326 (*subv<mode>4): Ditto.
19327 (*sub<mode>_3): Ditto.
19328 (@add<mode>3_carry): Ditto.
19329 (@sub<mode>3_carry): Ditto.
19330 (*add<mode>3_cc_overflow_1): Ditto.
19331 (*add<mode>3_zext_cc_overflow_2): Ditto.
19333 (*and<mode>_1): Ditto.
19335 (*andqi_1_slp): Ditto.
19337 (*andqi_2_maybe_si): Ditto.
19338 (*and<mode>_2): Ditto.
19339 (*andqi_2_slp): Ditto.
19340 (*<code><mode>_1): Ditto.
19341 (*<code>qi_1): Ditto.
19342 (*<code>qi_1_slp): Ditto.
19343 (*<code><mode>_2): Ditto.
19344 (*<code>qi_2_slp): Ditto.
19346 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
19348 * alias.c (record_component_aliases): Do not simplify pointed-to
19349 types of ODR types.
19351 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
19353 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
19354 partial reg stall on alternative 2.
19356 2019-07-17 Richard Biener <rguenther@suse.de>
19358 PR tree-optimization/91178
19359 * tree-ssa.c (release_defs_bitset): Iterate from higher to
19360 lower SSA names to avoid quadratic behavior in the common case.
19361 * tree-data-ref.c (split_constant_offset): Add limit argument
19362 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19363 (split_constant_offset_1): Add limit argument and use it to
19364 limit SSA def walking. Optimize the common plus/minus case.
19366 2019-07-17 Richard Biener <rguenther@suse.de>
19368 PR tree-optimization/91178
19369 * tree-vect-stmts.c (get_group_load_store_type): For SLP
19370 loads with a gap larger than the vector size always use
19372 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
19373 avoid loading vectors that are only contained in the gap
19374 and thus are not needed.
19376 2019-07-17 Richard Biener <rguenther@suse.de>
19378 PR tree-optimization/91180
19379 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
19380 computation for memset partial defs.
19382 2019-07-17 Jakub Jelinek <jakub@redhat.com>
19384 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
19385 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
19386 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
19387 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
19388 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
19389 * omp-grid.c (grid_process_grid_body,
19390 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
19391 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
19392 == GF_OMP_FOR_KIND_SIMD.
19393 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
19394 check_omp_nesting_restrictions, scan_omp_1_stmt,
19395 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
19396 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
19397 omp_find_scan): Likewise.
19398 * omp-expand.c (expand_omp_for): Likewise.
19399 * omp-general.c (omp_extract_for_data): Likewise.
19401 PR tree-optimization/91157
19402 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
19403 a vector boolean with scalar mode.
19404 (expand_vector_condition): Handle first operand being a vector boolean
19406 (expand_vector_operations_1): For comparisons, don't bail out early
19407 if the return type is vector boolean with scalar mode, but comparison
19408 operand type is not.
19410 2019-07-17 Richard Biener <rguenther@suse.de>
19412 PR tree-optimization/91181
19413 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
19414 IFN_LOADs as calls.
19416 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
19418 * config/i386/i386.md (*testdi_1): Match CCZmode for
19419 constants that might have the SImode sign bit set.
19420 (*testqi_1_maybe_si): Remove "!" constraint modifier.
19421 Use correct constraints for pentium pairing.
19422 (*test<mode>_1): Ditto.
19424 2019-07-16 Jeff Law <law@redhat.com>
19426 PR rtl-optimization/91173
19427 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
19428 SSA_NAME with a constant value, fold its value into the offset
19429 and clear the base before calling gen_addr_rtx.
19431 2019-07-16 Jakub Jelinek <jakub@redhat.com>
19433 PR rtl-optimization/91164
19434 * dse.c (rest_of_handle_dse): If dead edges have been purged,
19435 invalidate dominance info.
19437 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19439 * read-md.h (md_reader::record_potential_iterator_use): Add a
19440 file_location parameter.
19441 * read-rtl.c (attribute_use::loc): New field.
19442 (map_attr_string): Take a file_location parameter. Report cases
19443 in which attributes map to multiple distinct values.
19444 (apply_attribute_uses): Update call accordingly.
19445 (md_reader::handle_overloaded_name): Likewise.
19446 (md_reader::apply_iterator_to_string): Likewise. Skip empty
19448 (record_attribute_use): Take a file_location parameter.
19449 Initialize attribute_use::loc.
19450 (md_reader::record_potential_iterator_use): Take a file_location
19451 parameter. Update call to record_attribute_use.
19452 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
19453 (rtx_reader::read_rtx_code): Likewise.
19454 (rtx_reader::read_rtx_operand): Likewise. Record a location
19455 for implicitly-expanded empty strings.
19457 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19459 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
19460 Use file_location instead of separate fields.
19461 (md_reader::set_md_ptr_loc): Take a file_location instead of a
19462 separate filename and line number.
19463 * read-md.c (ptr_loc): As above.
19464 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
19465 (md_reader::fprint_md_ptr_loc): Likewise.
19466 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
19467 instead of a separate filename and line number.
19468 (md_reader::read_string): Update call accordingly.
19470 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19472 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
19473 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
19474 leaving the choice between SFDF and P implicit.
19475 (*mov<mode>_update2): Likewise.
19476 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
19477 rather than leaving the choice betweem IBM128 and GPR implicit.
19478 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
19479 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
19481 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
19482 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
19483 * config/rs6000/vsx.md
19484 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
19485 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
19486 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
19487 and VSX_EXTRACT_I implicit.
19489 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
19491 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
19492 Explicitly use <MOVEP1:MODE> for the mode attribute.
19494 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
19497 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
19499 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
19502 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
19503 .machine directive.
19505 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
19507 * config/i386/i386.md (@test<mode>_ccno_1):
19508 Rename from test<mode>_ccno_1.
19509 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
19510 (*testqi_1_maybe_si): Remove modrm attribute.
19511 (*test<mode>_1): Ditto.
19512 * config/i386/i386-expand.c (ix86_split_idivmod): Use
19513 gen_test_ccno_1 and gen_extend_insn.
19515 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
19517 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
19520 2019-07-15 Richard Biener <rguenther@suse.de>
19522 PR middle-end/91162
19523 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
19524 node make sure to replace all uses with something valid.
19526 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
19528 PR tree-optimization/88497
19529 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
19530 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
19531 function undistribute_bitref_for_vector.
19532 (undistribute_bitref_for_vector): New function.
19533 (cleanup_vinfo_map): Likewise.
19534 (sort_by_mach_mode): Likewise.
19536 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
19538 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
19539 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
19540 and testdi_ccno_1 using SWI48 mode attribute.
19541 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
19542 x86_64_szext_general_operand.
19543 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
19544 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
19545 instead of genera_operand mode attribute.
19547 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
19549 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
19550 fopen and fclose to their respective types.
19551 (DotFn.invoke): Ditto.
19553 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
19555 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
19556 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
19557 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
19558 (array_index_predicate): Remove.
19559 (analyze_function_body): Account cost for variable ofsetted array
19561 (estimate_node_size_and_time): Do not compute array index hint.
19562 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
19563 (inline_read_section): Do not read array index hint.
19564 (ipa_fn_summary_write): Do not write array index hint.
19565 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
19566 * ipa-cp.c (hint_time_bonus): Remove.
19567 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
19568 (ipa_fnsummary): Remove array_index.
19569 * ipa-inline.c (want_inline_small_function_p): Do not use
19571 (edge_badness): Likewise.
19572 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
19574 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
19577 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
19578 superfluous "builtin function" phrasing.
19580 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
19582 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
19584 (aliasing_component_refs_walk): Break out from ...
19585 (aliasing_component_refs_p): ... here.
19587 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
19590 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
19591 "builtin function" phrasing.
19593 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19596 * recog.h (temporary_volatile_ok): New class.
19597 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
19598 volatile_ok temporarily to true using temporary_volatile_ok.
19599 * expr.c (emit_block_move_via_cpymem): Likewise.
19600 * optabs.c (maybe_legitimize_operand): Likewise.
19602 2019-07-13 Jakub Jelinek <jakub@redhat.com>
19604 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
19605 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
19606 uses inside of order(concurrent) constructs.
19607 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
19608 OMP_CLAUSE_ORDER is seen.
19609 * omp-low.c (struct omp_context): Add order_concurrent member.
19610 (scan_sharing_clauses): Set ctx->order_concurrent if
19611 OMP_CLAUSE_ORDER is seen.
19612 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
19613 of simd order(concurrent). Diagnose constructs not allowed inside of
19614 for order(concurrent).
19615 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
19616 complaining about static double setjmp (double); or class static
19617 methods or non-global namespace setjmps.
19618 (omp_runtime_api_call): New function.
19619 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
19620 order(concurrent) loops.
19622 2019-07-12 Martin Sebor <msebor@redhat.com>
19624 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
19625 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
19626 * tree-vrp.c (vrp_prop::check_mem_ref): Use
19627 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
19629 2019-07-12 Jan Hubicka <jh@suse.cz>
19631 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
19632 (indirect_refs_may_alias_p): ... here.
19633 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
19634 mem refs in the access paths.
19636 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
19638 PR tree-optimization/89430
19639 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
19640 store elimination for local variable without address escape.
19642 2019-07-12 Jeff Law <law@redhat.com>
19644 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
19645 for the ".far" section.
19647 2019-07-12 Richard Biener <rguenther@suse.de>
19649 PR tree-optimization/91145
19650 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
19653 2019-07-12 Alexandre Oliva <oliva@adacore.com>
19655 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
19656 rather than this_state as the lowering context for the ELSE
19657 seq in a GIMPLE_EH_ELSE.
19659 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19661 * vector-builder.h (vector_builder::elt): Allow already-supplied
19662 elements to be read back before building is complete.
19664 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19666 PR rtl-optimization/91136
19667 * df-core.c (ACCESSING REFS): Fix typos in comment.
19668 * resource.c (mark_target_live_reg): Add artificial defs that occur at
19669 the beginning of the block to the initial set of live registers.
19671 2019-07-12 Richard Biener <rguenther@suse.de>
19673 * fold-const.h (get_array_ctor_element_at_index): Adjust.
19674 * fold-const.c (get_array_ctor_element_at_index): Add
19675 ctor_idx output parameter informing the caller where in
19676 the constructor the element was (not) found. Add early exit
19677 for when the ctor is sorted.
19678 * gimple-fold.c (fold_array_ctor_reference): Support constant
19679 folding across multiple array elements.
19681 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
19683 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
19684 doesn't have location, set the current location to the function's end.
19686 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19688 * config/aarch64/aarch64.md (*compare_condjump<mode>)
19689 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
19690 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
19691 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
19692 * config/aarch64/aarch64-simd.md
19693 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
19694 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
19695 * config/aarch64/aarch64-sve.md
19696 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
19697 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
19699 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
19701 * doc/md.texi: Document that @ patterns can have different
19702 numbers of operands.
19703 * genemit.c (handle_overloaded_gen): Handle this case.
19704 * genopinit.c (handle_overloaded_gen): Likewise.
19705 * gensupport.c (replace_operands_with_dups): Iterate over
19706 the new rtx's format rather than the old one's.
19708 2019-07-12 Jakub Jelinek <jakub@redhat.com>
19710 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
19711 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19712 order clause entries.
19713 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
19714 * tree-pretty-print.c (dump_omp_clause): Likewise.
19715 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
19717 * omp-low.c (scan_sharing_clauses): Likewise.
19718 * tree-nested.c (convert_nonlocal_omp_clauses,
19719 convert_local_omp_clauses): Likewise.
19721 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
19723 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
19724 fallthrough target of current basic block isn't the placed
19727 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
19730 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
19731 (_mm512_storeu_epi64): Likewise.
19732 (_mm512_loadu_epi32): Likewise.
19733 (_mm512_storeu_epi32): Likewise.
19734 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
19735 (_mm_storeu_epi64): Likewise.
19736 (_mm256_storeu_epi32): Likewise.
19737 (_mm_storeu_epi32): Likewise.
19739 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19741 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
19743 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
19745 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
19748 2019-07-11 Jakub Jelinek <jakub@redhat.com>
19751 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
19752 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19753 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
19754 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
19755 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
19756 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
19758 (ufix_truncv2dfv2si2<mask_name>): Change into ...
19759 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
19760 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
19762 (sse2_cvttpd2dq<mask_name>): Change into ...
19763 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
19764 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
19765 (*sse2_cvtpd2dq<mask_name>): Change into ...
19766 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
19767 Add "C" constraint to const0_operand.
19768 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
19769 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
19773 * config/i386/i386-builtin-types.def
19774 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
19775 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
19776 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
19777 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
19778 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
19779 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
19780 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
19781 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
19782 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
19783 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
19784 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
19785 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
19786 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
19787 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
19788 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
19789 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
19790 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
19791 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
19792 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
19793 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
19794 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
19795 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
19796 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
19797 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
19798 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
19799 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
19800 __builtin_ia32_vpdpbusd_v4si_maskz,
19801 __builtin_ia32_vpdpbusds_v16si_mask,
19802 __builtin_ia32_vpdpbusds_v16si_maskz,
19803 __builtin_ia32_vpdpbusds_v8si_mask,
19804 __builtin_ia32_vpdpbusds_v8si_maskz,
19805 __builtin_ia32_vpdpbusds_v4si_mask,
19806 __builtin_ia32_vpdpbusds_v4si_maskz,
19807 __builtin_ia32_vpdpwssd_v16si_mask,
19808 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
19809 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
19810 __builtin_ia32_vpdpwssd_v4si_maskz,
19811 __builtin_ia32_vpdpwssds_v16si_mask,
19812 __builtin_ia32_vpdpwssds_v16si_maskz,
19813 __builtin_ia32_vpdpwssds_v8si_mask,
19814 __builtin_ia32_vpdpwssds_v8si_maskz,
19815 __builtin_ia32_vpdpwssds_v4si_mask,
19816 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
19817 suffixed types rather than *_INT.
19818 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
19819 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
19820 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
19821 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
19822 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
19823 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
19825 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
19827 * tree-vrp.c (intersect_ranges): If we know the intersection is
19828 empty, there is no need to conservatively add anything else to
19831 2019-07-11 Richard Biener <rguenther@suse.de>
19833 PR middle-end/91131
19834 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
19835 when the object is volatile and we have not cleared it even though
19836 there are no nonzero elements.
19838 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
19840 * config/rs6000/predicates.md (cint34_operand): Update
19841 SIGNED_34BIT_OFFSET_P call.
19842 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
19843 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
19844 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
19845 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
19846 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
19848 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
19849 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
19850 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
19851 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
19852 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
19854 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
19856 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
19857 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
19858 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
19859 (DEF_MIN_OSX_VERSION): New.
19861 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19863 * fold-const.c (fold_relational_const): Fix folding of
19864 vector-to-scalar NE_EXPRs.
19865 (test_vector_folding): Add more tests.
19867 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
19870 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
19871 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
19872 (vec_setv2di_internal): Reexpress as...
19873 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
19874 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
19875 rather than gen_neon_vset_lane<mode>.
19877 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
19880 * lra-constraints.c (process_alt_operands): Don't match user
19881 defined regs only if they are early clobbers.
19883 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
19885 * wide-int.h (wi::lshift): Reject negative values for the fast path.
19887 2019-07-10 Richard Biener <rguenther@suse.de>
19889 PR tree-optimization/91126
19890 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
19891 native encoding offset for BYTES_BIG_ENDIAN.
19892 (vn_reference_lookup_3): Likewise.
19894 2019-07-10 Richard Biener <rguenther@suse.de>
19896 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
19897 LHS whenever possible.
19899 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
19901 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
19902 from ...; work also on duplicated types.
19903 (nonoverlapping_component_refs_since_match): ... here
19904 (ncr_type_uid): Break out from ...
19905 (ncr_compar): ... here; look for TYPE_UID of canonical type if
19907 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
19908 the types and nonoverlapping_component_refs_p_1 to disambiguate.
19910 2019-07-09 Martin Sebor <msebor@redhat.com>
19912 PR tree-optimization/90989
19913 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
19914 optimization to just single character stores.
19916 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
19918 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
19919 Swap operands only once.
19921 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
19923 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
19924 for both call instructions.
19926 2019-07-09 John Darrington <john@darrington.wattle.id.au>
19928 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
19929 rather than GET_MODE_BITSIZE to better handle partial integer modes.
19931 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
19933 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
19934 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
19935 function from rs6000-logue.c back to rs6000.c.
19936 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
19938 2019-07-09 Martin Sebor <msebor@redhat.com>
19941 * auto-profile.c: Change class-key of PODs to struct and others
19943 * basic-block.h: Same.
19944 * bitmap.c (bitmap_alloc): Same.
19946 * builtins.c (expand_builtin_prefetch): Same.
19947 (expand_builtin_interclass_mathfn): Same.
19948 (expand_builtin_strlen): Same.
19949 (expand_builtin_mempcpy_args): Same.
19950 (expand_cmpstr): Same.
19951 (expand_builtin___clear_cache): Same.
19952 (expand_ifn_atomic_bit_test_and): Same.
19953 (expand_builtin_thread_pointer): Same.
19954 (expand_builtin_set_thread_pointer): Same.
19955 * caller-save.c (setup_save_areas): Same.
19956 (replace_reg_with_saved_mem): Same.
19957 (insert_restore): Same.
19958 (insert_save): Same.
19959 (add_used_regs): Same.
19960 * cfg.c (get_bb_copy): Same.
19961 (set_loop_copy): Same.
19964 * cfgexpand.c (alloc_stack_frame_space): Same.
19965 (add_stack_var): Same.
19966 (add_stack_var_conflict): Same.
19967 (add_scope_conflicts_1): Same.
19968 (update_alias_info_with_stack_vars): Same.
19969 (expand_used_vars): Same.
19970 * cfghooks.c (redirect_edge_and_branch_force): Same.
19971 (delete_basic_block): Same.
19972 (split_edge): Same.
19973 (make_forwarder_block): Same.
19974 (force_nonfallthru): Same.
19975 (duplicate_block): Same.
19976 (lv_flush_pending_stmts): Same.
19977 * cfghooks.h: Same.
19978 * cfgloop.c (flow_loops_cfg_dump): Same.
19979 (flow_loop_nested_p): Same.
19980 (superloop_at_depth): Same.
19981 (get_loop_latch_edges): Same.
19982 (flow_loop_dump): Same.
19983 (flow_loops_dump): Same.
19984 (flow_loops_free): Same.
19985 (flow_loop_nodes_find): Same.
19986 (establish_preds): Same.
19987 (flow_loop_tree_node_add): Same.
19988 (flow_loop_tree_node_remove): Same.
19989 (flow_loops_find): Same.
19990 (find_subloop_latch_edge_by_profile): Same.
19991 (find_subloop_latch_edge_by_ivs): Same.
19992 (mfb_redirect_edges_in_set): Same.
19993 (form_subloop): Same.
19994 (merge_latch_edges): Same.
19995 (disambiguate_multiple_latches): Same.
19996 (disambiguate_loops_with_multiple_latches): Same.
19997 (flow_bb_inside_loop_p): Same.
19998 (glb_enum_p): Same.
19999 (get_loop_body_with_size): Same.
20000 (get_loop_body): Same.
20001 (fill_sons_in_loop): Same.
20002 (get_loop_body_in_dom_order): Same.
20003 (get_loop_body_in_custom_order): Same.
20004 (release_recorded_exits): Same.
20005 (get_loop_exit_edges): Same.
20006 (num_loop_branches): Same.
20007 (remove_bb_from_loops): Same.
20008 (find_common_loop): Same.
20009 (delete_loop): Same.
20010 (cancel_loop): Same.
20011 (verify_loop_structure): Same.
20012 (loop_preheader_edge): Same.
20013 (loop_exit_edge_p): Same.
20014 (single_exit): Same.
20015 (loop_exits_to_bb_p): Same.
20016 (loop_exits_from_bb_p): Same.
20017 (get_loop_location): Same.
20018 (record_niter_bound): Same.
20019 (get_estimated_loop_iterations_int): Same.
20020 (max_stmt_executions_int): Same.
20021 (likely_max_stmt_executions_int): Same.
20022 (get_estimated_loop_iterations): Same.
20023 (get_max_loop_iterations): Same.
20024 (get_max_loop_iterations_int): Same.
20025 (get_likely_max_loop_iterations): Same.
20026 * cfgloop.h (simple_loop_desc): Same.
20028 (loop_depth): Same.
20029 (loop_outer): Same.
20030 (loop_iterator::next): Same.
20031 (loop_outermost): Same.
20032 * cfgloopanal.c (mark_irreducible_loops): Same.
20033 (num_loop_insns): Same.
20034 (average_num_loop_insns): Same.
20035 (expected_loop_iterations_unbounded): Same.
20036 (expected_loop_iterations): Same.
20037 (mark_loop_exit_edges): Same.
20038 (single_likely_exit): Same.
20039 * cfgloopmanip.c (fix_bb_placement): Same.
20040 (fix_bb_placements): Same.
20041 (remove_path): Same.
20042 (place_new_loop): Same.
20044 (scale_loop_frequencies): Same.
20045 (scale_loop_profile): Same.
20046 (create_empty_if_region_on_edge): Same.
20047 (create_empty_loop_on_edge): Same.
20050 (fix_loop_placements): Same.
20051 (copy_loop_info): Same.
20052 (duplicate_loop): Same.
20053 (duplicate_subloops): Same.
20054 (loop_redirect_edge): Same.
20055 (can_duplicate_loop_p): Same.
20056 (duplicate_loop_to_header_edge): Same.
20057 (mfb_keep_just): Same.
20058 (has_preds_from_loop): Same.
20059 (create_preheader): Same.
20060 (create_preheaders): Same.
20061 (lv_adjust_loop_entry_edge): Same.
20062 (loop_version): Same.
20063 * cfgloopmanip.h: Same.
20065 * cgraphbuild.c: Same.
20066 * combine.c (make_extraction): Same.
20067 * config/i386/i386-features.c: Same.
20068 * config/i386/i386-features.h: Same.
20069 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
20070 (ix86_emit_outlined_ms2sysv_restore): Same.
20071 (ix86_noce_conversion_profitable_p): Same.
20072 (ix86_init_cost): Same.
20073 (ix86_simd_clone_usable): Same.
20074 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
20076 * coretypes.h: Same.
20077 * data-streamer-in.c (string_for_index): Change class-key of PODs
20078 to struct and others to class.
20079 (streamer_read_indexed_string): Same.
20080 (streamer_read_string): Same.
20081 (bp_unpack_indexed_string): Same.
20082 (bp_unpack_string): Same.
20083 (streamer_read_uhwi): Same.
20084 (streamer_read_hwi): Same.
20085 (streamer_read_gcov_count): Same.
20086 (streamer_read_wide_int): Same.
20087 * data-streamer.h (streamer_write_bitpack): Same.
20088 (bp_unpack_value): Same.
20089 (streamer_write_char_stream): Same.
20090 (streamer_write_hwi_in_range): Same.
20091 (streamer_write_record_start): Same.
20092 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
20093 (add_cross_iteration_register_deps): Same.
20094 (build_intra_loop_deps): Same.
20095 * df-core.c (df_analyze): Same.
20096 (loop_post_order_compute): Same.
20097 (loop_inverted_post_order_compute): Same.
20098 * df-problems.c (df_rd_alloc): Same.
20099 (df_rd_simulate_one_insn): Same.
20100 (df_rd_local_compute): Same.
20101 (df_rd_init_solution): Same.
20102 (df_rd_confluence_n): Same.
20103 (df_rd_transfer_function): Same.
20104 (df_rd_free): Same.
20105 (df_rd_dump_defs_set): Same.
20106 (df_rd_top_dump): Same.
20107 (df_lr_alloc): Same.
20108 (df_lr_reset): Same.
20109 (df_lr_local_compute): Same.
20110 (df_lr_init): Same.
20111 (df_lr_confluence_n): Same.
20112 (df_lr_free): Same.
20113 (df_lr_top_dump): Same.
20114 (df_lr_verify_transfer_functions): Same.
20115 (df_live_alloc): Same.
20116 (df_live_reset): Same.
20117 (df_live_init): Same.
20118 (df_live_confluence_n): Same.
20119 (df_live_finalize): Same.
20120 (df_live_free): Same.
20121 (df_live_top_dump): Same.
20122 (df_live_verify_transfer_functions): Same.
20123 (df_mir_alloc): Same.
20124 (df_mir_reset): Same.
20125 (df_mir_init): Same.
20126 (df_mir_confluence_n): Same.
20127 (df_mir_free): Same.
20128 (df_mir_top_dump): Same.
20129 (df_word_lr_alloc): Same.
20130 (df_word_lr_reset): Same.
20131 (df_word_lr_init): Same.
20132 (df_word_lr_confluence_n): Same.
20133 (df_word_lr_free): Same.
20134 (df_word_lr_top_dump): Same.
20135 (df_md_alloc): Same.
20136 (df_md_simulate_one_insn): Same.
20137 (df_md_reset): Same.
20138 (df_md_init): Same.
20139 (df_md_free): Same.
20140 (df_md_top_dump): Same.
20141 * df-scan.c (df_insn_delete): Same.
20142 (df_insn_rescan): Same.
20143 (df_notes_rescan): Same.
20144 (df_sort_and_compress_mws): Same.
20145 (df_install_mws): Same.
20146 (df_refs_add_to_chains): Same.
20147 (df_ref_create_structure): Same.
20148 (df_ref_record): Same.
20149 (df_def_record_1): Same.
20150 (df_find_hard_reg_defs): Same.
20151 (df_uses_record): Same.
20152 (df_get_conditional_uses): Same.
20153 (df_get_call_refs): Same.
20154 (df_recompute_luids): Same.
20155 (df_get_entry_block_def_set): Same.
20156 (df_entry_block_defs_collect): Same.
20157 (df_get_exit_block_use_set): Same.
20158 (df_exit_block_uses_collect): Same.
20159 (df_mws_verify): Same.
20160 (df_bb_verify): Same.
20161 * df.h (df_scan_get_bb_info): Same.
20162 * doc/tm.texi: Same.
20163 * dse.c (record_store): Same.
20164 * dumpfile.h: Same.
20165 * emit-rtl.c (const_fixed_hasher::equal): Same.
20166 (set_mem_attributes_minus_bitpos): Same.
20167 (change_address): Same.
20168 (adjust_address_1): Same.
20169 (offset_address): Same.
20170 * emit-rtl.h: Same.
20171 * except.c (dw2_build_landing_pads): Same.
20172 (sjlj_emit_dispatch_table): Same.
20173 * explow.c (allocate_dynamic_stack_space): Same.
20174 (emit_stack_probe): Same.
20175 (probe_stack_range): Same.
20176 * expmed.c (store_bit_field_using_insv): Same.
20177 (store_bit_field_1): Same.
20178 (store_integral_bit_field): Same.
20179 (extract_bit_field_using_extv): Same.
20180 (extract_bit_field_1): Same.
20181 (emit_cstore): Same.
20182 * expr.c (emit_block_move_via_cpymem): Same.
20183 (expand_cmpstrn_or_cmpmem): Same.
20184 (set_storage_via_setmem): Same.
20185 (emit_single_push_insn_1): Same.
20186 (expand_assignment): Same.
20187 (store_constructor): Same.
20188 (expand_expr_real_2): Same.
20189 (expand_expr_real_1): Same.
20190 (try_casesi): Same.
20192 * function.c (try_fit_stack_local): Same.
20193 (assign_stack_local_1): Same.
20194 (assign_stack_local): Same.
20195 (cut_slot_from_list): Same.
20196 (insert_slot_to_list): Same.
20197 (max_slot_level): Same.
20198 (move_slot_to_level): Same.
20199 (temp_address_hasher::equal): Same.
20200 (remove_unused_temp_slot_addresses): Same.
20201 (assign_temp): Same.
20202 (combine_temp_slots): Same.
20203 (update_temp_slot_address): Same.
20204 (preserve_temp_slots): Same.
20205 * function.h: Same.
20207 * gcc-rich-location.h: Same.
20209 * genattrtab.c (check_attr_test): Same.
20210 (check_attr_value): Same.
20211 (convert_set_attr_alternative): Same.
20212 (convert_set_attr): Same.
20213 (check_defs): Same.
20214 (copy_boolean): Same.
20215 (get_attr_value): Same.
20216 (expand_delays): Same.
20217 (make_length_attrs): Same.
20219 (make_alternative_compare): Same.
20220 (simplify_test_exp): Same.
20221 (tests_attr_p): Same.
20222 (get_attr_order): Same.
20223 (clear_struct_flag): Same.
20225 (compares_alternatives_p): Same.
20228 (find_attrs_to_cache): Same.
20229 (write_test_expr): Same.
20230 (walk_attr_value): Same.
20231 (write_attr_get): Same.
20232 (eliminate_known_true): Same.
20233 (write_insn_cases): Same.
20234 (write_attr_case): Same.
20235 (write_attr_valueq): Same.
20236 (write_attr_value): Same.
20237 (write_dummy_eligible_delay): Same.
20238 (next_comma_elt): Same.
20240 (make_internal_attr): Same.
20241 (copy_rtx_unchanging): Same.
20242 (gen_insn_reserv): Same.
20243 (check_tune_attr): Same.
20244 (make_automaton_attrs): Same.
20245 (handle_arg): Same.
20246 * genextract.c (gen_insn): Same.
20247 (VEC_char_to_string): Same.
20248 * genmatch.c (print_operand): Same.
20250 (parser::parse_operation): Same.
20251 (parser::parse_capture): Same.
20252 (parser::parse_c_expr): Same.
20253 (parser::parse_simplify): Same.
20255 * genoutput.c (output_operand_data): Same.
20256 (output_get_insn_name): Same.
20257 (compare_operands): Same.
20258 (place_operands): Same.
20259 (process_template): Same.
20260 (validate_insn_alternatives): Same.
20261 (validate_insn_operands): Same.
20262 (gen_expand): Same.
20263 (note_constraint): Same.
20264 * genpreds.c (write_one_predicate_function): Same.
20265 (add_constraint): Same.
20266 (process_define_register_constraint): Same.
20267 (write_lookup_constraint_1): Same.
20268 (write_lookup_constraint_array): Same.
20269 (write_insn_constraint_len): Same.
20270 (write_reg_class_for_constraint_1): Same.
20271 (write_constraint_satisfied_p_array): Same.
20272 * genrecog.c (optimize_subroutine_group): Same.
20273 * gensupport.c (process_define_predicate): Same.
20274 (queue_pattern): Same.
20275 (remove_from_queue): Same.
20276 (process_rtx): Same.
20277 (is_predicable): Same.
20278 (change_subst_attribute): Same.
20279 (subst_pattern_match): Same.
20280 (alter_constraints): Same.
20281 (alter_attrs_for_insn): Same.
20282 (shift_output_template): Same.
20283 (alter_output_for_subst_insn): Same.
20284 (process_one_cond_exec): Same.
20286 (process_define_cond_exec): Same.
20287 (mnemonic_htab_callback): Same.
20288 (gen_mnemonic_attr): Same.
20289 (read_md_rtx): Same.
20290 * ggc-page.c: Same.
20291 * gimple-loop-interchange.cc (dump_reduction): Same.
20292 (dump_induction): Same.
20293 (loop_cand::~loop_cand): Same.
20294 (free_data_refs_with_aux): Same.
20295 (tree_loop_interchange::interchange_loops): Same.
20296 (tree_loop_interchange::map_inductions_to_loop): Same.
20297 (tree_loop_interchange::move_code_to_inner_loop): Same.
20298 (compute_access_stride): Same.
20299 (compute_access_strides): Same.
20300 (proper_loop_form_for_interchange): Same.
20301 (tree_loop_interchange_compute_ddrs): Same.
20302 (prune_datarefs_not_in_loop): Same.
20303 (prepare_data_references): Same.
20304 (pass_linterchange::execute): Same.
20305 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
20306 (unroll_jam_possible_p): Same.
20307 (fuse_loops): Same.
20308 (adjust_unroll_factor): Same.
20309 (tree_loop_unroll_and_jam): Same.
20310 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
20311 (loop_versioning::expensive_stmt_p): Same.
20312 (loop_versioning::version_for_unity): Same.
20313 (loop_versioning::dump_inner_likelihood): Same.
20314 (loop_versioning::find_per_loop_multiplication): Same.
20315 (loop_versioning::analyze_term_using_scevs): Same.
20316 (loop_versioning::record_address_fragment): Same.
20317 (loop_versioning::analyze_expr): Same.
20318 (loop_versioning::analyze_blocks): Same.
20319 (loop_versioning::prune_conditions): Same.
20320 (loop_versioning::merge_loop_info): Same.
20321 (loop_versioning::add_loop_to_queue): Same.
20322 (loop_versioning::decide_whether_loop_is_versionable): Same.
20323 (loop_versioning::make_versioning_decisions): Same.
20324 (loop_versioning::implement_versioning_decisions): Same.
20325 * gimple-ssa-evrp-analyze.c
20326 (evrp_range_analyzer::record_ranges_from_phis): Same.
20327 * gimple-ssa-store-merging.c (split_store::split_store): Same.
20328 (count_multiple_uses): Same.
20329 (split_group): Same.
20330 (imm_store_chain_info::output_merged_store): Same.
20331 (pass_store_merging::process_store): Same.
20332 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
20333 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
20335 (alloca_call_type): Same.
20336 (pass_walloca::execute): Same.
20337 * gimple-streamer-in.c (input_phi): Same.
20338 (input_gimple_stmt): Same.
20339 * gimple-streamer.h: Same.
20340 * godump.c (go_force_record_alignment): Same.
20341 (go_format_type): Same.
20342 (go_output_type): Same.
20343 (go_output_fndecl): Same.
20344 (go_output_typedef): Same.
20345 (keyword_hash_init): Same.
20346 (find_dummy_types): Same.
20347 * graph.c (draw_cfg_nodes_no_loops): Same.
20348 (draw_cfg_nodes_for_loop): Same.
20349 * hard-reg-set.h (hard_reg_set_iter_next): Same.
20350 * hsa-brig.c: Same.
20351 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
20352 * hsa-dump.c (dump_hsa_cfun): Same.
20353 * hsa-gen.c (gen_function_def_parameters): Same.
20354 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
20355 * input.c (dump_line_table_statistics): Same.
20356 (test_lexer): Same.
20358 * internal-fn.c (get_multi_vector_move): Same.
20359 (expand_load_lanes_optab_fn): Same.
20360 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
20361 (expand_GOMP_SIMT_EXIT): Same.
20362 (expand_GOMP_SIMT_LAST_LANE): Same.
20363 (expand_GOMP_SIMT_ORDERED_PRED): Same.
20364 (expand_GOMP_SIMT_VOTE_ANY): Same.
20365 (expand_GOMP_SIMT_XCHG_BFLY): Same.
20366 (expand_GOMP_SIMT_XCHG_IDX): Same.
20367 (expand_addsub_overflow): Same.
20368 (expand_neg_overflow): Same.
20369 (expand_mul_overflow): Same.
20370 (expand_call_mem_ref): Same.
20371 (expand_mask_load_optab_fn): Same.
20372 (expand_scatter_store_optab_fn): Same.
20373 (expand_gather_load_optab_fn): Same.
20374 * ipa-cp.c (ipa_get_parm_lattices): Same.
20375 (print_all_lattices): Same.
20376 (ignore_edge_p): Same.
20377 (build_toporder_info): Same.
20378 (free_toporder_info): Same.
20379 (push_node_to_stack): Same.
20380 (ipcp_lattice<valtype>::set_contains_variable): Same.
20381 (set_agg_lats_to_bottom): Same.
20382 (ipcp_bits_lattice::meet_with): Same.
20383 (set_single_call_flag): Same.
20384 (initialize_node_lattices): Same.
20385 (ipa_get_jf_ancestor_result): Same.
20386 (ipcp_verify_propagated_values): Same.
20387 (propagate_scalar_across_jump_function): Same.
20388 (propagate_context_across_jump_function): Same.
20389 (propagate_bits_across_jump_function): Same.
20390 (ipa_vr_operation_and_type_effects): Same.
20391 (propagate_vr_across_jump_function): Same.
20392 (set_check_aggs_by_ref): Same.
20393 (set_chain_of_aglats_contains_variable): Same.
20394 (merge_aggregate_lattices): Same.
20395 (agg_pass_through_permissible_p): Same.
20396 (propagate_aggs_across_jump_function): Same.
20397 (call_passes_through_thunk_p): Same.
20398 (propagate_constants_across_call): Same.
20399 (devirtualization_time_bonus): Same.
20400 (good_cloning_opportunity_p): Same.
20401 (context_independent_aggregate_values): Same.
20402 (gather_context_independent_values): Same.
20403 (perform_estimation_of_a_value): Same.
20404 (estimate_local_effects): Same.
20405 (value_topo_info<valtype>::add_val): Same.
20406 (add_all_node_vals_to_toposort): Same.
20407 (value_topo_info<valtype>::propagate_effects): Same.
20408 (ipcp_propagate_stage): Same.
20409 (ipcp_discover_new_direct_edges): Same.
20410 (same_node_or_its_all_contexts_clone_p): Same.
20411 (cgraph_edge_brings_value_p): Same.
20412 (gather_edges_for_value): Same.
20413 (create_specialized_node): Same.
20414 (find_more_scalar_values_for_callers_subset): Same.
20415 (find_more_contexts_for_caller_subset): Same.
20416 (copy_plats_to_inter): Same.
20417 (intersect_aggregates_with_edge): Same.
20418 (find_aggregate_values_for_callers_subset): Same.
20419 (cgraph_edge_brings_all_agg_vals_for_node): Same.
20420 (decide_about_value): Same.
20421 (decide_whether_version_node): Same.
20422 (spread_undeadness): Same.
20423 (identify_dead_nodes): Same.
20424 (ipcp_store_vr_results): Same.
20425 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
20426 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
20427 (redirect_to_unreachable): Same.
20428 (edge_set_predicate): Same.
20429 (evaluate_conditions_for_known_args): Same.
20430 (evaluate_properties_for_edge): Same.
20431 (ipa_fn_summary_t::duplicate): Same.
20432 (ipa_call_summary_t::duplicate): Same.
20433 (dump_ipa_call_summary): Same.
20434 (ipa_dump_fn_summary): Same.
20435 (eliminated_by_inlining_prob): Same.
20436 (set_cond_stmt_execution_predicate): Same.
20437 (set_switch_stmt_execution_predicate): Same.
20438 (compute_bb_predicates): Same.
20439 (will_be_nonconstant_expr_predicate): Same.
20440 (phi_result_unknown_predicate): Same.
20441 (analyze_function_body): Same.
20442 (compute_fn_summary): Same.
20443 (estimate_edge_devirt_benefit): Same.
20444 (estimate_edge_size_and_time): Same.
20445 (estimate_calls_size_and_time): Same.
20446 (estimate_node_size_and_time): Same.
20447 (remap_edge_change_prob): Same.
20448 (remap_edge_summaries): Same.
20449 (ipa_merge_fn_summary_after_inlining): Same.
20450 (ipa_fn_summary_generate): Same.
20451 (inline_read_section): Same.
20452 (ipa_fn_summary_read): Same.
20453 (ipa_fn_summary_write): Same.
20454 * ipa-fnsummary.h: Same.
20455 * ipa-hsa.c (ipa_hsa_read_section): Same.
20456 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
20457 * ipa-icf.c (sem_function::param_used_p): Same.
20458 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
20459 * ipa-inline.c (edge_badness): Same.
20460 (inline_small_functions): Same.
20461 * ipa-polymorphic-call.c
20462 (ipa_polymorphic_call_context::stream_out): Same.
20463 * ipa-predicate.c (predicate::remap_after_duplication): Same.
20464 (predicate::remap_after_inlining): Same.
20465 (predicate::stream_out): Same.
20466 * ipa-predicate.h: Same.
20467 * ipa-profile.c (ipa_profile_read_summary): Same.
20468 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
20469 (count_formal_params): Same.
20470 (ipa_dump_param): Same.
20471 (ipa_alloc_node_params): Same.
20472 (ipa_print_node_jump_functions_for_edge): Same.
20473 (ipa_print_node_jump_functions): Same.
20474 (ipa_load_from_parm_agg): Same.
20475 (get_ancestor_addr_info): Same.
20476 (ipa_compute_jump_functions_for_edge): Same.
20477 (ipa_analyze_virtual_call_uses): Same.
20478 (ipa_analyze_stmt_uses): Same.
20479 (ipa_analyze_params_uses_in_bb): Same.
20480 (update_jump_functions_after_inlining): Same.
20481 (try_decrement_rdesc_refcount): Same.
20482 (ipa_impossible_devirt_target): Same.
20483 (update_indirect_edges_after_inlining): Same.
20484 (combine_controlled_uses_counters): Same.
20485 (ipa_edge_args_sum_t::duplicate): Same.
20486 (ipa_write_jump_function): Same.
20487 (ipa_write_indirect_edge_info): Same.
20488 (ipa_write_node_info): Same.
20489 (ipa_read_edge_info): Same.
20490 (ipa_prop_read_section): Same.
20491 (read_replacements_section): Same.
20492 * ipa-prop.h (ipa_get_param_count): Same.
20493 (ipa_get_param): Same.
20494 (ipa_get_type): Same.
20495 (ipa_get_param_move_cost): Same.
20496 (ipa_set_param_used): Same.
20497 (ipa_get_controlled_uses): Same.
20498 (ipa_set_controlled_uses): Same.
20499 (ipa_get_cs_argument_count): Same.
20500 * ipa-pure-const.c (analyze_function): Same.
20501 (pure_const_read_summary): Same.
20503 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
20504 * ipa-split.c (test_nonssa_use): Same.
20505 (dump_split_point): Same.
20506 (dominated_by_forbidden): Same.
20507 (split_part_set_ssa_name_p): Same.
20508 (find_split_points): Same.
20509 * ira-build.c (finish_loop_tree_nodes): Same.
20510 (low_pressure_loop_node_p): Same.
20511 * ira-color.c (ira_reuse_stack_slot): Same.
20513 * ira.c (setup_reg_equiv): Same.
20514 (print_insn_chain): Same.
20516 * loop-doloop.c (doloop_condition_get): Same.
20518 (record_reg_sets): Same.
20519 (doloop_optimize): Same.
20520 * loop-init.c (loop_optimizer_init): Same.
20521 (fix_loop_structure): Same.
20522 * loop-invariant.c (merge_identical_invariants): Same.
20523 (compute_always_reached): Same.
20524 (find_exits): Same.
20525 (may_assign_reg_p): Same.
20526 (find_invariants_bb): Same.
20527 (find_invariants_body): Same.
20528 (replace_uses): Same.
20529 (can_move_invariant_reg): Same.
20530 (free_inv_motion_data): Same.
20531 (move_single_loop_invariants): Same.
20532 (change_pressure): Same.
20533 (mark_ref_regs): Same.
20534 (calculate_loop_reg_pressure): Same.
20535 * loop-iv.c (biv_entry_hasher::equal): Same.
20536 (iv_extend_to_rtx_code): Same.
20537 (check_iv_ref_table_size): Same.
20538 (clear_iv_info): Same.
20539 (latch_dominating_def): Same.
20540 (iv_get_reaching_def): Same.
20541 (iv_constant): Same.
20547 (get_biv_step): Same.
20549 (analyzed_for_bivness_p): Same.
20550 (record_biv): Same.
20551 (iv_analyze_biv): Same.
20552 (iv_analyze_expr): Same.
20553 (iv_analyze_def): Same.
20554 (iv_analyze_op): Same.
20555 (iv_analyze): Same.
20556 (iv_analyze_result): Same.
20558 (eliminate_implied_conditions): Same.
20559 (simplify_using_initial_values): Same.
20560 (shorten_into_mode): Same.
20561 (canonicalize_iv_subregs): Same.
20562 (determine_max_iter): Same.
20563 (check_simple_exit): Same.
20564 (find_simple_exit): Same.
20565 (get_simple_loop_desc): Same.
20566 * loop-unroll.c (report_unroll): Same.
20567 (decide_unrolling): Same.
20568 (unroll_loops): Same.
20569 (loop_exit_at_end_p): Same.
20570 (decide_unroll_constant_iterations): Same.
20571 (unroll_loop_constant_iterations): Same.
20572 (compare_and_jump_seq): Same.
20573 (unroll_loop_runtime_iterations): Same.
20574 (decide_unroll_stupid): Same.
20575 (unroll_loop_stupid): Same.
20576 (referenced_in_one_insn_in_loop_p): Same.
20577 (reset_debug_uses_in_loop): Same.
20578 (analyze_iv_to_split_insn): Same.
20579 * lra-eliminations.c (lra_debug_elim_table): Same.
20580 (setup_can_eliminate): Same.
20582 (lra_get_elimination_hard_regno): Same.
20583 (lra_eliminate_regs_1): Same.
20584 (eliminate_regs_in_insn): Same.
20585 (update_reg_eliminate): Same.
20586 (init_elimination): Same.
20587 (lra_eliminate): Same.
20589 * lra-lives.c (initiate_live_solver): Same.
20590 * lra-remat.c (create_remat_bb_data): Same.
20591 * lra-spills.c (lra_spill): Same.
20592 * lra.c (lra_set_insn_recog_data): Same.
20593 (lra_set_used_insn_alternative_by_uid): Same.
20594 (init_reg_info): Same.
20595 (expand_reg_info): Same.
20596 * lto-cgraph.c (output_symtab): Same.
20597 (read_identifier): Same.
20598 (get_alias_symbol): Same.
20599 (input_node): Same.
20600 (input_varpool_node): Same.
20602 (input_edge): Same.
20603 (input_cgraph_1): Same.
20604 (input_refs): Same.
20605 (input_symtab): Same.
20606 (input_offload_tables): Same.
20607 (output_cgraph_opt_summary): Same.
20608 (input_edge_opt_summary): Same.
20609 (input_cgraph_opt_section): Same.
20610 * lto-section-in.c (lto_free_raw_section_data): Same.
20611 (lto_create_simple_input_block): Same.
20612 (lto_free_function_in_decl_state_for_node): Same.
20613 * lto-streamer-in.c (lto_tag_check_set): Same.
20614 (lto_location_cache::revert_location_cache): Same.
20615 (lto_location_cache::input_location): Same.
20616 (lto_input_location): Same.
20617 (stream_input_location_now): Same.
20618 (lto_input_tree_ref): Same.
20619 (lto_input_eh_catch_list): Same.
20620 (input_eh_region): Same.
20621 (lto_init_eh): Same.
20622 (make_new_block): Same.
20624 (fixup_call_stmt_edges): Same.
20625 (input_struct_function_base): Same.
20626 (input_function): Same.
20627 (lto_read_body_or_constructor): Same.
20628 (lto_read_tree_1): Same.
20629 (lto_read_tree): Same.
20630 (lto_input_scc): Same.
20631 (lto_input_tree_1): Same.
20632 (lto_input_toplevel_asms): Same.
20633 (lto_input_mode_table): Same.
20634 (lto_reader_init): Same.
20635 (lto_data_in_create): Same.
20636 * lto-streamer-out.c (output_cfg): Same.
20637 * lto-streamer.h: Same.
20638 * modulo-sched.c (duplicate_insns_of_cycles): Same.
20639 (generate_prolog_epilog): Same.
20640 (mark_loop_unsched): Same.
20641 (dump_insn_location): Same.
20642 (loop_canon_p): Same.
20643 (sms_schedule): Same.
20644 * omp-expand.c (expand_omp_for_ordered_loops): Same.
20645 (expand_omp_for_generic): Same.
20646 (expand_omp_for_static_nochunk): Same.
20647 (expand_omp_for_static_chunk): Same.
20648 (expand_omp_simd): Same.
20649 (expand_omp_taskloop_for_inner): Same.
20650 (expand_oacc_for): Same.
20651 (expand_omp_atomic_pipeline): Same.
20652 (mark_loops_in_oacc_kernels_region): Same.
20653 * omp-offload.c (oacc_xform_loop): Same.
20654 * omp-simd-clone.c (simd_clone_adjust): Same.
20655 * optabs-query.c (get_traditional_extraction_insn): Same.
20656 * optabs.c (expand_vector_broadcast): Same.
20657 (expand_binop_directly): Same.
20658 (expand_twoval_unop): Same.
20659 (expand_twoval_binop): Same.
20660 (expand_unop_direct): Same.
20661 (emit_indirect_jump): Same.
20662 (emit_conditional_move): Same.
20663 (emit_conditional_neg_or_complement): Same.
20664 (emit_conditional_add): Same.
20665 (vector_compare_rtx): Same.
20666 (expand_vec_perm_1): Same.
20667 (expand_vec_perm_const): Same.
20668 (expand_vec_cond_expr): Same.
20669 (expand_vec_series_expr): Same.
20670 (maybe_emit_atomic_exchange): Same.
20671 (maybe_emit_sync_lock_test_and_set): Same.
20672 (expand_atomic_compare_and_swap): Same.
20673 (expand_atomic_load): Same.
20674 (expand_atomic_store): Same.
20675 (maybe_emit_op): Same.
20676 (valid_multiword_target_p): Same.
20677 (create_integer_operand): Same.
20678 (maybe_legitimize_operand_same_code): Same.
20679 (maybe_legitimize_operand): Same.
20680 (create_convert_operand_from_type): Same.
20681 (can_reuse_operands_p): Same.
20682 (maybe_legitimize_operands): Same.
20683 (maybe_gen_insn): Same.
20684 (maybe_expand_insn): Same.
20685 (maybe_expand_jump_insn): Same.
20686 (expand_insn): Same.
20687 * optabs.h (create_expand_operand): Same.
20688 (create_fixed_operand): Same.
20689 (create_output_operand): Same.
20690 (create_input_operand): Same.
20691 (create_convert_operand_to): Same.
20692 (create_convert_operand_from): Same.
20694 * poly-int.h: Same.
20695 * predict.c (optimize_insn_for_speed_p): Same.
20696 (optimize_loop_for_size_p): Same.
20697 (optimize_loop_for_speed_p): Same.
20698 (optimize_loop_nest_for_speed_p): Same.
20699 (get_base_value): Same.
20700 (predicted_by_loop_heuristics_p): Same.
20701 (predict_extra_loop_exits): Same.
20702 (predict_loops): Same.
20703 (predict_paths_for_bb): Same.
20704 (predict_paths_leading_to): Same.
20705 (propagate_freq): Same.
20706 (pass_profile::execute): Same.
20708 * profile-count.c (profile_count::differs_from_p): Same.
20709 (profile_probability::differs_lot_from_p): Same.
20710 * profile-count.h: Same.
20711 * profile.c (branch_prob): Same.
20712 * regrename.c (free_chain_data): Same.
20713 (mark_conflict): Same.
20714 (create_new_chain): Same.
20715 (merge_overlapping_regs): Same.
20716 (init_rename_info): Same.
20717 (merge_chains): Same.
20718 (regrename_analyze): Same.
20719 (regrename_do_replace): Same.
20720 (scan_rtx_reg): Same.
20721 (record_out_operands): Same.
20722 (build_def_use): Same.
20723 * regrename.h: Same.
20725 * reload1.c (init_reload): Same.
20726 (maybe_fix_stack_asms): Same.
20727 (copy_reloads): Same.
20728 (count_pseudo): Same.
20729 (count_spilled_pseudo): Same.
20731 (find_reload_regs): Same.
20732 (select_reload_regs): Same.
20733 (spill_hard_reg): Same.
20734 (fixup_eh_region_note): Same.
20735 (set_reload_reg): Same.
20736 (allocate_reload_reg): Same.
20737 (compute_reload_subreg_offset): Same.
20738 (reload_adjust_reg_for_icode): Same.
20739 (emit_input_reload_insns): Same.
20740 (emit_output_reload_insns): Same.
20741 (do_input_reload): Same.
20742 (inherit_piecemeal_p): Same.
20744 * sanopt.c (maybe_get_dominating_check): Same.
20745 (maybe_optimize_ubsan_ptr_ifn): Same.
20746 (can_remove_asan_check): Same.
20747 (maybe_optimize_asan_check_ifn): Same.
20748 (sanopt_optimize_walker): Same.
20749 * sched-deps.c (add_dependence_list): Same.
20750 (chain_to_prev_insn): Same.
20751 (add_insn_mem_dependence): Same.
20752 (create_insn_reg_set): Same.
20753 (maybe_extend_reg_info_p): Same.
20754 (sched_analyze_reg): Same.
20755 (sched_analyze_1): Same.
20756 (get_implicit_reg_pending_clobbers): Same.
20757 (chain_to_prev_insn_p): Same.
20758 (deps_analyze_insn): Same.
20759 (deps_start_bb): Same.
20760 (sched_free_deps): Same.
20762 (init_deps_reg_last): Same.
20764 * sched-ebb.c: Same.
20765 * sched-int.h: Same.
20766 * sched-rgn.c (add_branch_dependences): Same.
20767 (concat_insn_mem_list): Same.
20769 (sched_rgn_compute_dependencies): Same.
20770 * sel-sched-ir.c (reset_target_context): Same.
20771 (copy_deps_context): Same.
20772 (init_id_from_df): Same.
20773 (has_dependence_p): Same.
20774 (change_loops_latches): Same.
20775 (bb_top_order_comparator): Same.
20776 (make_region_from_loop_preheader): Same.
20777 (sel_init_pipelining): Same.
20778 (get_loop_nest_for_rgn): Same.
20779 (make_regions_from_the_rest): Same.
20780 (sel_is_loop_preheader_p): Same.
20781 * sel-sched-ir.h (inner_loop_header_p): Same.
20782 (get_all_loop_exits): Same.
20783 * selftest.h: Same.
20784 * sese.c (sese_build_liveouts): Same.
20785 (sese_insert_phis_for_liveouts): Same.
20786 * sese.h (defined_in_sese_p): Same.
20787 * sreal.c (sreal::stream_out): Same.
20789 * streamer-hooks.h: Same.
20790 * target-globals.c (save_target_globals): Same.
20791 * target-globals.h: Same.
20792 * target.def: Same.
20794 * targhooks.c (default_has_ifunc_p): Same.
20795 (default_empty_mask_is_expensive): Same.
20796 (default_init_cost): Same.
20797 * targhooks.h: Same.
20799 * tree-affine.c (aff_combination_mult): Same.
20800 (aff_combination_expand): Same.
20801 (aff_combination_constant_multiple_p): Same.
20802 * tree-affine.h: Same.
20803 * tree-cfg.c (build_gimple_cfg): Same.
20804 (replace_loop_annotate_in_block): Same.
20805 (replace_uses_by): Same.
20807 (dump_cfg_stats): Same.
20808 (gimple_duplicate_sese_region): Same.
20809 (gimple_duplicate_sese_tail): Same.
20810 (move_block_to_fn): Same.
20811 (replace_block_vars_by_duplicates): Same.
20812 (move_sese_region_to_fn): Same.
20813 (print_loops_bb): Same.
20814 (print_loop): Same.
20815 (print_loops): Same.
20817 (debug_loops): Same.
20818 * tree-cfg.h: Same.
20819 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
20820 (chrec_fold_multiply_poly_poly): Same.
20821 (chrec_evaluate): Same.
20822 (chrec_component_in_loop_num): Same.
20823 (reset_evolution_in_loop): Same.
20824 (is_multivariate_chrec): Same.
20825 (chrec_contains_symbols): Same.
20826 (nb_vars_in_chrec): Same.
20827 (chrec_convert_1): Same.
20828 (chrec_convert_aggressive): Same.
20829 * tree-chrec.h: Same.
20830 * tree-core.h: Same.
20831 * tree-data-ref.c (dump_data_dependence_relation): Same.
20832 (canonicalize_base_object_address): Same.
20833 (data_ref_compare_tree): Same.
20834 (prune_runtime_alias_test_list): Same.
20835 (get_segment_min_max): Same.
20836 (create_intersect_range_checks): Same.
20837 (conflict_fn_no_dependence): Same.
20838 (object_address_invariant_in_loop_p): Same.
20839 (analyze_ziv_subscript): Same.
20840 (analyze_siv_subscript_cst_affine): Same.
20841 (analyze_miv_subscript): Same.
20842 (analyze_overlapping_iterations): Same.
20843 (build_classic_dist_vector_1): Same.
20844 (add_other_self_distances): Same.
20845 (same_access_functions): Same.
20846 (build_classic_dir_vector): Same.
20847 (subscript_dependence_tester_1): Same.
20848 (subscript_dependence_tester): Same.
20849 (access_functions_are_affine_or_constant_p): Same.
20850 (get_references_in_stmt): Same.
20851 (loop_nest_has_data_refs): Same.
20852 (graphite_find_data_references_in_stmt): Same.
20853 (find_data_references_in_bb): Same.
20854 (get_base_for_alignment): Same.
20855 (find_loop_nest_1): Same.
20856 (find_loop_nest): Same.
20857 * tree-data-ref.h (dr_alignment): Same.
20858 (ddr_dependence_level): Same.
20859 * tree-if-conv.c (fold_build_cond_expr): Same.
20860 (add_to_predicate_list): Same.
20861 (add_to_dst_predicate_list): Same.
20862 (phi_convertible_by_degenerating_args): Same.
20863 (idx_within_array_bound): Same.
20864 (all_preds_critical_p): Same.
20865 (pred_blocks_visited_p): Same.
20866 (predicate_bbs): Same.
20867 (build_region): Same.
20868 (if_convertible_loop_p_1): Same.
20869 (is_cond_scalar_reduction): Same.
20870 (predicate_scalar_phi): Same.
20871 (remove_conditions_and_labels): Same.
20872 (combine_blocks): Same.
20873 (version_loop_for_if_conversion): Same.
20874 (versionable_outer_loop_p): Same.
20875 (ifcvt_local_dce): Same.
20876 (tree_if_conversion): Same.
20877 (pass_if_conversion::gate): Same.
20878 * tree-if-conv.h: Same.
20879 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
20880 * tree-loop-distribution.c (bb_top_order_cmp): Same.
20882 (stmt_has_scalar_dependences_outside_loop): Same.
20883 (copy_loop_before): Same.
20884 (create_bb_after_loop): Same.
20885 (const_with_all_bytes_same): Same.
20886 (generate_memset_builtin): Same.
20887 (generate_memcpy_builtin): Same.
20888 (destroy_loop): Same.
20889 (build_rdg_partition_for_vertex): Same.
20890 (compute_access_range): Same.
20891 (data_ref_segment_size): Same.
20892 (latch_dominated_by_data_ref): Same.
20893 (compute_alias_check_pairs): Same.
20894 (fuse_memset_builtins): Same.
20895 (finalize_partitions): Same.
20896 (find_seed_stmts_for_distribution): Same.
20897 (prepare_perfect_loop_nest): Same.
20898 * tree-parloops.c (lambda_transform_legal_p): Same.
20899 (loop_parallel_p): Same.
20900 (reduc_stmt_res): Same.
20901 (add_field_for_name): Same.
20902 (create_call_for_reduction_1): Same.
20903 (replace_uses_in_bb_by): Same.
20904 (transform_to_exit_first_loop_alt): Same.
20905 (try_transform_to_exit_first_loop_alt): Same.
20906 (transform_to_exit_first_loop): Same.
20908 (gen_parallel_loop): Same.
20909 (gather_scalar_reductions): Same.
20910 (get_omp_data_i_param): Same.
20911 (try_create_reduction_list): Same.
20912 (oacc_entry_exit_single_gang): Same.
20913 (parallelize_loops): Same.
20914 * tree-pass.h: Same.
20915 * tree-predcom.c (determine_offset): Same.
20916 (last_always_executed_block): Same.
20917 (split_data_refs_to_components): Same.
20918 (suitable_component_p): Same.
20919 (valid_initializer_p): Same.
20920 (find_looparound_phi): Same.
20921 (insert_looparound_copy): Same.
20922 (add_looparound_copies): Same.
20923 (determine_roots_comp): Same.
20924 (predcom_tmp_var): Same.
20925 (initialize_root_vars): Same.
20926 (initialize_root_vars_store_elim_1): Same.
20927 (initialize_root_vars_store_elim_2): Same.
20928 (finalize_eliminated_stores): Same.
20929 (initialize_root_vars_lm): Same.
20930 (remove_stmt): Same.
20931 (determine_unroll_factor): Same.
20932 (execute_pred_commoning_cbck): Same.
20933 (base_names_in_chain_on): Same.
20934 (combine_chains): Same.
20935 (pcom_stmt_dominates_stmt_p): Same.
20936 (try_combine_chains): Same.
20937 (prepare_initializers_chain_store_elim): Same.
20938 (prepare_initializers_chain): Same.
20939 (prepare_initializers): Same.
20940 (prepare_finalizers_chain): Same.
20941 (prepare_finalizers): Same.
20942 (insert_init_seqs): Same.
20943 * tree-scalar-evolution.c (loop_phi_node_p): Same.
20944 (compute_overall_effect_of_inner_loop): Same.
20945 (add_to_evolution_1): Same.
20946 (add_to_evolution): Same.
20947 (follow_ssa_edge_binary): Same.
20948 (follow_ssa_edge_expr): Same.
20949 (backedge_phi_arg_p): Same.
20950 (follow_ssa_edge_in_condition_phi_branch): Same.
20951 (follow_ssa_edge_in_condition_phi): Same.
20952 (follow_ssa_edge_inner_loop_phi): Same.
20953 (follow_ssa_edge): Same.
20954 (analyze_evolution_in_loop): Same.
20955 (analyze_initial_condition): Same.
20956 (interpret_loop_phi): Same.
20957 (interpret_condition_phi): Same.
20958 (interpret_rhs_expr): Same.
20959 (interpret_expr): Same.
20960 (interpret_gimple_assign): Same.
20961 (analyze_scalar_evolution_1): Same.
20962 (analyze_scalar_evolution): Same.
20963 (analyze_scalar_evolution_for_address_of): Same.
20964 (get_instantiated_value_entry): Same.
20965 (loop_closed_phi_def): Same.
20966 (instantiate_scev_name): Same.
20967 (instantiate_scev_poly): Same.
20968 (instantiate_scev_binary): Same.
20969 (instantiate_scev_convert): Same.
20970 (instantiate_scev_not): Same.
20971 (instantiate_scev_r): Same.
20972 (instantiate_scev): Same.
20973 (resolve_mixers): Same.
20974 (initialize_scalar_evolutions_analyzer): Same.
20975 (scev_reset_htab): Same.
20976 (scev_reset): Same.
20977 (derive_simple_iv_with_niters): Same.
20978 (simple_iv_with_niters): Same.
20979 (expression_expensive_p): Same.
20980 (final_value_replacement_loop): Same.
20981 * tree-scalar-evolution.h (block_before_loop): Same.
20982 * tree-ssa-address.h: Same.
20983 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
20984 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
20985 (record_edge_info): Same.
20986 * tree-ssa-live.c (var_map_base_fini): Same.
20987 (remove_unused_locals): Same.
20988 * tree-ssa-live.h: Same.
20989 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
20990 (pass_ch_vect::execute): Same.
20991 (pass_ch::process_loop_p): Same.
20992 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
20993 (movement_possibility): Same.
20994 (outermost_invariant_loop): Same.
20996 (determine_max_movement): Same.
20997 (invariantness_dom_walker::before_dom_children): Same.
20998 (move_computations): Same.
20999 (may_move_till): Same.
21000 (force_move_till_op): Same.
21001 (force_move_till): Same.
21002 (memref_free): Same.
21003 (record_mem_ref_loc): Same.
21004 (set_ref_stored_in_loop): Same.
21005 (mark_ref_stored): Same.
21006 (sort_bbs_in_loop_postorder_cmp): Same.
21007 (sort_locs_in_loop_postorder_cmp): Same.
21008 (analyze_memory_references): Same.
21009 (mem_refs_may_alias_p): Same.
21010 (find_ref_loc_in_loop_cmp): Same.
21011 (rewrite_mem_ref_loc::operator): Same.
21012 (first_mem_ref_loc_1::operator): Same.
21013 (sm_set_flag_if_changed::operator): Same.
21014 (execute_sm_if_changed_flag_set): Same.
21015 (execute_sm): Same.
21016 (hoist_memory_references): Same.
21017 (ref_always_accessed::operator): Same.
21018 (refs_independent_p): Same.
21019 (record_dep_loop): Same.
21020 (ref_indep_loop_p_1): Same.
21021 (ref_indep_loop_p): Same.
21022 (can_sm_ref_p): Same.
21023 (find_refs_for_sm): Same.
21024 (loop_suitable_for_sm): Same.
21025 (store_motion_loop): Same.
21026 (store_motion): Same.
21027 (fill_always_executed_in): Same.
21028 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
21029 (estimated_unrolled_size): Same.
21030 (loop_edge_to_cancel): Same.
21031 (remove_exits_and_undefined_stmts): Same.
21032 (remove_redundant_iv_tests): Same.
21033 (unloop_loops): Same.
21034 (estimated_peeled_sequence_size): Same.
21035 (try_peel_loop): Same.
21036 (canonicalize_loop_induction_variables): Same.
21037 (canonicalize_induction_variables): Same.
21038 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
21040 (stmt_after_inc_pos): Same.
21041 (contains_abnormal_ssa_name_p): Same.
21042 (niter_for_exit): Same.
21045 (find_givs_in_bb): Same.
21046 (find_induction_variables): Same.
21047 (find_interesting_uses_cond): Same.
21048 (outermost_invariant_loop_for_expr): Same.
21049 (idx_find_step): Same.
21050 (add_candidate_1): Same.
21051 (add_iv_candidate_derived_from_uses): Same.
21052 (alloc_use_cost_map): Same.
21053 (prepare_decl_rtl): Same.
21054 (generic_predict_doloop_p): Same.
21055 (computation_cost): Same.
21056 (determine_common_wider_type): Same.
21057 (get_computation_aff_1): Same.
21058 (get_use_type): Same.
21059 (determine_group_iv_cost_address): Same.
21061 (difference_cannot_overflow_p): Same.
21062 (may_eliminate_iv): Same.
21063 (determine_set_costs): Same.
21064 (cheaper_cost_pair): Same.
21065 (compare_cost_pair): Same.
21066 (iv_ca_cand_for_group): Same.
21067 (iv_ca_recount_cost): Same.
21068 (iv_ca_set_remove_invs): Same.
21069 (iv_ca_set_no_cp): Same.
21070 (iv_ca_set_add_invs): Same.
21071 (iv_ca_set_cp): Same.
21072 (iv_ca_add_group): Same.
21073 (iv_ca_cost): Same.
21074 (iv_ca_compare_deps): Same.
21075 (iv_ca_delta_reverse): Same.
21076 (iv_ca_delta_commit): Same.
21077 (iv_ca_cand_used_p): Same.
21078 (iv_ca_delta_free): Same.
21080 (iv_ca_free): Same.
21081 (iv_ca_dump): Same.
21082 (iv_ca_extend): Same.
21083 (iv_ca_narrow): Same.
21084 (iv_ca_prune): Same.
21085 (cheaper_cost_with_cand): Same.
21086 (iv_ca_replace): Same.
21087 (try_add_cand_for): Same.
21088 (get_initial_solution): Same.
21089 (try_improve_iv_set): Same.
21090 (find_optimal_iv_set_1): Same.
21091 (create_new_iv): Same.
21092 (rewrite_use_compare): Same.
21093 (remove_unused_ivs): Same.
21094 (determine_scaling_factor): Same.
21095 * tree-ssa-loop-ivopts.h: Same.
21096 * tree-ssa-loop-manip.c (create_iv): Same.
21097 (compute_live_loop_exits): Same.
21098 (add_exit_phi): Same.
21099 (add_exit_phis): Same.
21100 (find_uses_to_rename_use): Same.
21101 (find_uses_to_rename_def): Same.
21102 (find_uses_to_rename_in_loop): Same.
21103 (rewrite_into_loop_closed_ssa): Same.
21104 (check_loop_closed_ssa_bb): Same.
21105 (split_loop_exit_edge): Same.
21106 (ip_end_pos): Same.
21107 (ip_normal_pos): Same.
21108 (copy_phi_node_args): Same.
21109 (gimple_duplicate_loop_to_header_edge): Same.
21110 (can_unroll_loop_p): Same.
21111 (determine_exit_conditions): Same.
21112 (scale_dominated_blocks_in_loop): Same.
21113 (niter_for_unrolled_loop): Same.
21114 (tree_transform_and_unroll_loop): Same.
21115 (rewrite_all_phi_nodes_with_iv): Same.
21116 * tree-ssa-loop-manip.h: Same.
21117 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
21118 (number_of_iterations_ne): Same.
21119 (assert_no_overflow_lt): Same.
21120 (assert_loop_rolls_lt): Same.
21121 (number_of_iterations_lt): Same.
21122 (adjust_cond_for_loop_until_wrap): Same.
21123 (tree_simplify_using_condition): Same.
21124 (simplify_using_initial_conditions): Same.
21125 (simplify_using_outer_evolutions): Same.
21126 (loop_only_exit_p): Same.
21127 (ssa_defined_by_minus_one_stmt_p): Same.
21128 (number_of_iterations_popcount): Same.
21129 (number_of_iterations_exit): Same.
21130 (find_loop_niter): Same.
21131 (finite_loop_p): Same.
21132 (chain_of_csts_start): Same.
21133 (get_val_for): Same.
21134 (loop_niter_by_eval): Same.
21135 (derive_constant_upper_bound_ops): Same.
21136 (do_warn_aggressive_loop_optimizations): Same.
21137 (record_estimate): Same.
21138 (get_cst_init_from_scev): Same.
21139 (record_nonwrapping_iv): Same.
21140 (idx_infer_loop_bounds): Same.
21141 (infer_loop_bounds_from_ref): Same.
21142 (infer_loop_bounds_from_array): Same.
21143 (infer_loop_bounds_from_pointer_arith): Same.
21144 (infer_loop_bounds_from_signedness): Same.
21145 (bound_index): Same.
21146 (discover_iteration_bound_by_body_walk): Same.
21147 (maybe_lower_iteration_bound): Same.
21148 (estimate_numbers_of_iterations): Same.
21149 (estimated_loop_iterations): Same.
21150 (estimated_loop_iterations_int): Same.
21151 (max_loop_iterations): Same.
21152 (max_loop_iterations_int): Same.
21153 (likely_max_loop_iterations): Same.
21154 (likely_max_loop_iterations_int): Same.
21155 (estimated_stmt_executions_int): Same.
21156 (max_stmt_executions): Same.
21157 (likely_max_stmt_executions): Same.
21158 (estimated_stmt_executions): Same.
21159 (stmt_dominates_stmt_p): Same.
21160 (nowrap_type_p): Same.
21161 (loop_exits_before_overflow): Same.
21162 (scev_var_range_cant_overflow): Same.
21163 (scev_probably_wraps_p): Same.
21164 (free_numbers_of_iterations_estimates): Same.
21165 * tree-ssa-loop-niter.h: Same.
21166 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
21167 (idx_analyze_ref): Same.
21168 (analyze_ref): Same.
21169 (gather_memory_references_ref): Same.
21170 (mark_nontemporal_store): Same.
21171 (emit_mfence_after_loop): Same.
21172 (may_use_storent_in_loop_p): Same.
21173 (mark_nontemporal_stores): Same.
21174 (should_unroll_loop_p): Same.
21175 (volume_of_dist_vector): Same.
21176 (add_subscript_strides): Same.
21177 (self_reuse_distance): Same.
21178 (insn_to_prefetch_ratio_too_small_p): Same.
21179 * tree-ssa-loop-split.c (split_at_bb_p): Same.
21180 (patch_loop_exit): Same.
21181 (find_or_create_guard_phi): Same.
21182 (easy_exit_values): Same.
21183 (connect_loop_phis): Same.
21184 (connect_loops): Same.
21185 (compute_new_first_bound): Same.
21186 (split_loop): Same.
21187 (tree_ssa_split_loops): Same.
21188 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
21189 (is_maybe_undefined): Same.
21190 (tree_may_unswitch_on): Same.
21191 (simplify_using_entry_checks): Same.
21192 (tree_unswitch_single_loop): Same.
21193 (tree_unswitch_loop): Same.
21194 (tree_unswitch_outer_loop): Same.
21195 (empty_bb_without_guard_p): Same.
21196 (used_outside_loop_p): Same.
21197 (get_vop_from_header): Same.
21198 (hoist_guard): Same.
21199 * tree-ssa-loop.c (gate_oacc_kernels): Same.
21200 (get_lsm_tmp_name): Same.
21201 * tree-ssa-loop.h: Same.
21202 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
21203 (build_and_add_sum): Same.
21204 (no_side_effect_bb): Same.
21206 (linearize_expr): Same.
21207 (should_break_up_subtract): Same.
21208 (linearize_expr_tree): Same.
21209 * tree-ssa-scopedtables.c: Same.
21210 * tree-ssa-scopedtables.h: Same.
21211 * tree-ssa-structalias.c (condense_visit): Same.
21212 (label_visit): Same.
21213 (dump_pred_graph): Same.
21214 (perform_var_substitution): Same.
21215 (move_complex_constraints): Same.
21216 (remove_preds_and_fake_succs): Same.
21217 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
21218 (determine_bb_domination_status): Same.
21219 (duplicate_thread_path): Same.
21220 (thread_through_all_blocks): Same.
21221 * tree-ssa-threadupdate.h: Same.
21222 * tree-streamer-in.c (streamer_read_string_cst): Same.
21223 (input_identifier): Same.
21224 (unpack_ts_type_common_value_fields): Same.
21225 (unpack_ts_block_value_fields): Same.
21226 (unpack_ts_translation_unit_decl_value_fields): Same.
21227 (unpack_ts_omp_clause_value_fields): Same.
21228 (streamer_read_tree_bitfields): Same.
21229 (streamer_alloc_tree): Same.
21230 (lto_input_ts_common_tree_pointers): Same.
21231 (lto_input_ts_vector_tree_pointers): Same.
21232 (lto_input_ts_poly_tree_pointers): Same.
21233 (lto_input_ts_complex_tree_pointers): Same.
21234 (lto_input_ts_decl_minimal_tree_pointers): Same.
21235 (lto_input_ts_decl_common_tree_pointers): Same.
21236 (lto_input_ts_decl_non_common_tree_pointers): Same.
21237 (lto_input_ts_decl_with_vis_tree_pointers): Same.
21238 (lto_input_ts_field_decl_tree_pointers): Same.
21239 (lto_input_ts_function_decl_tree_pointers): Same.
21240 (lto_input_ts_type_common_tree_pointers): Same.
21241 (lto_input_ts_type_non_common_tree_pointers): Same.
21242 (lto_input_ts_list_tree_pointers): Same.
21243 (lto_input_ts_vec_tree_pointers): Same.
21244 (lto_input_ts_exp_tree_pointers): Same.
21245 (lto_input_ts_block_tree_pointers): Same.
21246 (lto_input_ts_binfo_tree_pointers): Same.
21247 (lto_input_ts_constructor_tree_pointers): Same.
21248 (lto_input_ts_omp_clause_tree_pointers): Same.
21249 (streamer_read_tree_body): Same.
21250 * tree-streamer.h: Same.
21251 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
21252 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
21253 (vect_analyze_possibly_independent_ddr): Same.
21254 (vect_analyze_data_ref_dependence): Same.
21255 (vect_compute_data_ref_alignment): Same.
21256 (vect_enhance_data_refs_alignment): Same.
21257 (vect_analyze_data_ref_access): Same.
21258 (vect_check_gather_scatter): Same.
21259 (vect_find_stmt_data_reference): Same.
21260 (vect_create_addr_base_for_vector_ref): Same.
21261 (vect_setup_realignment): Same.
21262 (vect_supportable_dr_alignment): Same.
21263 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
21264 (adjust_phi_and_debug_stmts): Same.
21265 (vect_set_loop_mask): Same.
21266 (add_preheader_seq): Same.
21267 (vect_maybe_permute_loop_masks): Same.
21268 (vect_set_loop_masks_directly): Same.
21269 (vect_set_loop_condition_masked): Same.
21270 (vect_set_loop_condition_unmasked): Same.
21271 (slpeel_duplicate_current_defs_from_edges): Same.
21272 (slpeel_add_loop_guard): Same.
21273 (slpeel_can_duplicate_loop_p): Same.
21274 (create_lcssa_for_virtual_phi): Same.
21276 (vect_update_ivs_after_vectorizer): Same.
21277 (vect_gen_vector_loop_niters_mult_vf): Same.
21278 (slpeel_update_phi_nodes_for_loops): Same.
21279 (slpeel_update_phi_nodes_for_guard1): Same.
21280 (find_guard_arg): Same.
21281 (slpeel_update_phi_nodes_for_guard2): Same.
21282 (slpeel_update_phi_nodes_for_lcssa): Same.
21283 (vect_do_peeling): Same.
21284 (vect_create_cond_for_alias_checks): Same.
21285 (vect_loop_versioning): Same.
21286 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
21287 (vect_inner_phi_in_double_reduction_p): Same.
21288 (vect_analyze_scalar_cycles_1): Same.
21289 (vect_fixup_scalar_cycles_with_patterns): Same.
21290 (vect_get_loop_niters): Same.
21291 (bb_in_loop_p): Same.
21292 (vect_get_max_nscalars_per_iter): Same.
21293 (vect_verify_full_masking): Same.
21294 (vect_compute_single_scalar_iteration_cost): Same.
21295 (vect_analyze_loop_form_1): Same.
21296 (vect_analyze_loop_form): Same.
21297 (vect_active_double_reduction_p): Same.
21298 (vect_analyze_loop_operations): Same.
21299 (neutral_op_for_slp_reduction): Same.
21300 (vect_is_simple_reduction): Same.
21301 (vect_model_reduction_cost): Same.
21302 (get_initial_def_for_reduction): Same.
21303 (get_initial_defs_for_reduction): Same.
21304 (vect_create_epilog_for_reduction): Same.
21305 (vectorize_fold_left_reduction): Same.
21306 (vectorizable_reduction): Same.
21307 (vectorizable_induction): Same.
21308 (vectorizable_live_operation): Same.
21309 (loop_niters_no_overflow): Same.
21310 (vect_get_loop_mask): Same.
21311 (vect_transform_loop_stmt): Same.
21312 (vect_transform_loop): Same.
21313 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
21314 (vect_determine_precisions): Same.
21315 (vect_pattern_recog_1): Same.
21316 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
21317 * tree-vect-stmts.c (stmt_vectype): Same.
21318 (process_use): Same.
21319 (vect_init_vector_1): Same.
21320 (vect_truncate_gather_scatter_offset): Same.
21321 (get_group_load_store_type): Same.
21322 (vect_build_gather_load_calls): Same.
21323 (vect_get_strided_load_store_ops): Same.
21324 (vectorizable_simd_clone_call): Same.
21325 (vectorizable_store): Same.
21326 (permute_vec_elements): Same.
21327 (vectorizable_load): Same.
21328 (vect_transform_stmt): Same.
21329 (supportable_widening_operation): Same.
21330 * tree-vectorizer.c (vec_info::replace_stmt): Same.
21331 (vec_info::free_stmt_vec_info): Same.
21332 (vect_free_loop_info_assumptions): Same.
21333 (vect_loop_vectorized_call): Same.
21334 (set_uid_loop_bbs): Same.
21335 (vectorize_loops): Same.
21336 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
21337 * tree.c (add_tree_to_fld_list): Same.
21338 (fld_type_variant_equal_p): Same.
21339 (fld_decl_context): Same.
21340 (fld_incomplete_type_of): Same.
21341 (free_lang_data_in_binfo): Same.
21342 (need_assembler_name_p): Same.
21343 (find_decls_types_r): Same.
21344 (get_eh_types_for_runtime): Same.
21345 (find_decls_types_in_eh_region): Same.
21346 (find_decls_types_in_node): Same.
21347 (assign_assembler_name_if_needed): Same.
21348 * value-prof.c (stream_out_histogram_value): Same.
21349 * value-prof.h: Same.
21350 * var-tracking.c (use_narrower_mode): Same.
21351 (prepare_call_arguments): Same.
21352 (vt_expand_loc_callback): Same.
21353 (resolve_expansions_pending_recursion): Same.
21354 (vt_expand_loc): Same.
21355 * varasm.c (const_hash_1): Same.
21356 (compare_constant): Same.
21357 (tree_output_constant_def): Same.
21358 (simplify_subtraction): Same.
21359 (get_pool_constant): Same.
21360 (output_constant_pool_2): Same.
21361 (output_constant_pool_1): Same.
21362 (mark_constants_in_pattern): Same.
21363 (mark_constant_pool): Same.
21364 (get_section_anchor): Same.
21365 * vr-values.c (compare_range_with_value): Same.
21366 (vr_values::extract_range_from_phi_node): Same.
21367 * vr-values.h: Same.
21368 * web.c (unionfind_union): Same.
21369 * wide-int.h: Same.
21371 2019-07-09 Martin Sebor <msebor@redhat.com>
21374 * align.h: Change class-key from class to struct and vice versa
21375 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
21376 * alloc-pool.h: Same.
21377 * asan.c (shadow_mem_size): Same.
21378 * auto-profile.c: Same.
21379 * basic-block.h: Same.
21381 * cfgexpand.c (set_rtl): Same.
21382 (expand_one_stack_var_at): Same.
21383 * cfghooks.h: Same.
21386 * config/i386/i386.h: Same.
21387 * df-problems.c (df_print_bb_index): Same.
21389 * df.h (df_single_use): Same.
21390 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
21391 (layout::annotation_line_showed_range_p): Same.
21392 (get_printed_columns): Same.
21393 (correction::ensure_terminated): Same.
21394 (line_corrections::~line_corrections): Same.
21397 * dump-context.h: Same.
21398 * dumpfile.h: Same.
21399 * dwarf2out.c: Same.
21400 * edit-context.c: Same.
21401 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
21403 * function.c (assign_stack_local): Same.
21404 * function.h: Same.
21406 * gcov.c (block_info::block_info): Same.
21407 * genattrtab.c: Same.
21408 * genextract.c: Same.
21409 * genmatch.c (comparison_code_p): Same.
21410 (id_base::id_base): Same.
21411 (decision_tree::print): Same.
21412 * genoutput.c: Same.
21413 * genpreds.c (write_one_predicate_function): Same.
21414 * genrecog.c (validate_pattern): Same.
21415 (find_operand_positions): Same.
21416 (optimize_subroutine_group): Same.
21417 (merge_pattern_transition::merge_pattern_transition): Same.
21418 (merge_pattern_info::merge_pattern_info): Same.
21419 (merge_state_result::merge_state_result): Same.
21420 (merge_into_state): Same.
21421 * gensupport.c: Same.
21422 * gensupport.h: Same.
21423 * ggc-common.c (init_ggc_heuristics): Same.
21424 * ggc-tests.c (test_union): Same.
21425 * gimple-loop-interchange.cc (dump_induction): Same.
21426 * gimple-loop-versioning.cc: Same.
21427 * gimple-match.h (gimple_match_cond::any_else): Same.
21428 * gimple-ssa-backprop.c: Same.
21429 * gimple-ssa-sprintf.c: Same.
21430 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
21432 (store_immediate_info::store_immediate_info): Same.
21433 (merged_store_group::apply_stores): Same.
21434 (get_location_for_stmts): Same.
21435 * gimple-ssa-strength-reduction.c: Same.
21436 * gimple-ssa-warn-alloca.c: Same.
21437 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
21438 * godump.c (go_type_decl): Same.
21439 * hash-map-tests.c (test_map_of_strings_to_int): Same.
21440 * hash-map.h: Same.
21441 * hash-set-tests.c (test_set_of_strings): Same.
21442 * hsa-brig.c: Same.
21443 * hsa-common.h: Same.
21444 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
21445 * input.c (assert_loceq): Same.
21448 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
21449 * ipa-fnsummary.h: Same.
21450 * ipa-inline.h: Same.
21451 * ipa-prop.h: Same.
21452 * ipa-split.c (visit_bb): Same.
21453 * ira-int.h (minmax_set_iter_next): Same.
21454 * loop-invariant.c: Same.
21456 * lra-eliminations.c: Same.
21458 * lra-lives.c (mark_regno_dead): Same.
21459 * lra-remat.c: Same.
21460 * lra-spills.c: Same.
21461 * lto-streamer.h: Same.
21462 * mem-stats.h: Same.
21463 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
21464 * omp-low.c (omp_clause_aligned_alignment): Same.
21465 * optabs-query.h (get_vcond_eq_icode): Same.
21467 * opts.c (wrap_help): Same.
21468 * poly-int.h: Same.
21469 * predict.c (predict_paths_leading_to_edge): Same.
21470 * pretty-print.h: Same.
21471 * profile-count.h: Same.
21473 * read-rtl-function.c: Same.
21476 * regrename.c: Same.
21477 * regrename.h: Same.
21479 * rtl-iter.h: Same.
21480 * rtl.h (costs_add_n_insns): Same.
21482 * sched-int.h: Same.
21483 * sel-sched-ir.h: Same.
21484 * selftest.h: Same.
21485 * sese.h (vec_find): Same.
21487 * target-globals.h: Same.
21488 * tree-affine.c (aff_combination_find_elt): Same.
21489 * tree-affine.h: Same.
21490 * tree-data-ref.h: Same.
21491 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
21492 * tree-predcom.c: Same.
21493 * tree-scalar-evolution.c (find_var_scev_info): Same.
21494 * tree-ssa-alias.h: Same.
21495 * tree-ssa-ccp.c: Same.
21496 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
21497 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
21498 (rewrite_mem_refs): Same.
21499 (execute_sm_if_changed): Same.
21500 (hoist_memory_references): Same.
21501 * tree-ssa-loop-ivopts.c (operator<=): Same.
21502 * tree-ssa-loop.h: Same.
21503 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
21504 * tree-ssa-structalias.c: Same.
21505 * tree-switch-conversion.h (cluster::cluster): Same.
21506 (simple_cluster::simple_cluster): Same.
21507 * tree-vect-patterns.c (type_conversion_p): Same.
21508 * tree-vectorizer.c (dump_stmt_cost): Same.
21509 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
21510 * tree.c (protected_set_expr_location): Same.
21511 * tree.h (desired_pro_or_demotion_p): Same.
21512 (fndecl_built_in_p): Same.
21513 * unique-ptr-tests.cc: Same.
21514 * var-tracking.c (delete_variable_part): Same.
21515 * varasm.c (assemble_real): Same.
21516 (tree_output_constant_def): Same.
21518 * wide-int-bitmask.h: Same.
21519 * wide-int.h (decompose): Same.
21521 2019-07-09 Richard Biener <rguenther@suse.de>
21523 PR tree-optimization/91114
21524 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
21525 find a vector type isn't fatal.
21527 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21529 * config/aarch64/aarch64-simd.md
21530 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
21531 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
21532 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
21533 (*aarch64_crypto_aese_fused,
21534 *aarch64_crypto_aesd_fused): Update to new definition.
21535 * config/aarch64/aarch64.c
21536 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
21538 2019-07-09 Richard Biener <rguenther@suse.de>
21540 * gimple-match.h (gimple_match_op::resimplify): New.
21541 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
21542 gimple_resimplify4, gimple_resimplify5): Remove.
21543 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
21544 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
21546 (gimple_match_op::resimplify): New.
21547 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
21548 according to availability. Use gimple_match_op::resimplify.
21550 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
21552 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
21554 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
21556 * config/arm/crypto.md:
21557 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
21558 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
21559 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
21560 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
21562 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
21563 * config/arm/aarch-common-protos.h
21564 (aarch_crypto_can_dual_issue): Remove.
21565 * config/arm/aarch-common.c
21566 (aarch_crypto_can_dual_issue): Likewise.
21567 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
21568 * config/arm/cortex-a53.md: Likewise.
21569 * config/arm/cortex-a57.md: Likewise.
21570 * config/arm/iterators.md:
21571 (CRYPTO_BINARY): Redefine.
21572 (CRYPTO_UNARY): Removed.
21573 (CRYPTO_AES, CRYPTO_AESMC): New.
21575 2019-07-09 Richard Biener <rguenther@suse.de>
21577 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
21578 (vn_reference_lookup_3): If the main ref has no access path recorded
21579 but orig_ref has use it to do access-path based disambiguation.
21580 (vn_reference_lookup_pieces): Adjust.
21581 (vn_reference_lookup): Pass down original ref if we valueized.
21583 2019-07-09 Martin Liska <mliska@suse.cz>
21585 * doc/extend.texi: Document influence on loop
21588 2019-07-09 Martin Liska <mliska@suse.cz>
21590 * lto-compress.c (lto_normalized_zstd_level): Do not use
21591 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
21592 of libzstd. One can use 0 as a default compression level.
21594 2019-07-09 Martin Liska <mliska@suse.cz>
21596 * doc/invoke.texi: Add link from -fprofile-dir option.
21597 Use better wording for 'gcno filename'.
21599 2019-07-08 Martin Sebor <msebor@redhat.com>
21601 PR middle-end/71924
21602 PR middle-end/90549
21603 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
21605 (args_loc_t): New type.
21606 (args_loc_t, locmap_t): same.
21607 (diag_returned_locals): New function.
21608 (is_addr_local): Same.
21609 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
21610 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
21611 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
21613 2019-07-08 Jakub Jelinek <jakub@redhat.com>
21615 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
21616 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
21617 and casts in offset when different, both through gimple stmts
21618 and through trees. Rewritten using loops to minimize code duplication
21621 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
21623 * emit-rtl.c (set_insn_locations): New function moved from...
21624 * function.c (set_insn_locations): ...here.
21625 * ira-emit.c (emit_moves): Propagate location of the first instruction
21626 to the inserted move instructions.
21627 * reg-stack.c (compensate_edge): Set the location if the sequence is
21628 inserted on the edge.
21629 * rtl.h (set_insn_locations): Declare.
21631 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21633 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
21634 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
21637 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
21639 PR rtl-optimization/88233
21640 * common.opt (fsplit-wide-types-early): New option.
21641 * common/config/rs6000/rs6000-common.c
21642 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
21644 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
21645 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
21646 flag_split_wide_types_early.
21647 (pass_data_lower_subreg3): New.
21648 (pass_lower_subreg3): New.
21649 (make_pass_lower_subreg3): New.
21650 * passes.def (pass_lower_subreg2): Move after the loop passes.
21651 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
21652 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
21653 the pass pipeline; its previous place is taken by ...
21654 (make_pass_lower_subreg3): ... this.
21656 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21658 * config/s390/s390.c (s390_shift_truncation_mask): Define.
21659 (TARGET_SHIFT_TRUNCATION_MASK): Define.
21661 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
21663 * config/s390/constraints.md: Add new jsc constraint.
21664 * config/s390/predicates.md: New predicates.
21665 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
21666 * config/s390/s390.c (s390_valid_shift_count): New function.
21667 (print_shift_count_operand): Use s390_valid_shift_count.
21668 (print_operand): Likewise.
21669 * config/s390/s390.md: Use new predicate.
21670 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
21671 * config/s390/vector.md: Use new predicate.
21673 2019-07-08 Andrew Waterman <andrew@sifive.com>
21674 Jim Wilson <jimw@sifive.com>
21676 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
21677 bitsize instead of BITS_PER_WORD.
21679 2019-07-08 Martin Liska <mliska@suse.cz>
21681 * collect2.c (defined): Revert to before r254460.
21682 (scan_prog_file): Revert to before r254460.
21684 2019-07-08 Richard Biener <rguenther@suse.de>
21686 PR tree-optimization/83518
21687 * tree-ssa-sccvn.c: Include splay-tree.h.
21688 (struct pd_range, struct pd_data): New.
21689 (struct vn_walk_cb_data): Add data to track partial definitions.
21690 (vn_walk_cb_data::~vn_walk_cb_data): New.
21691 (vn_walk_cb_data::push_partial_def): New.
21692 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
21693 (vn_reference_lookup_2): When partial defs are registered give up.
21694 (vn_reference_lookup_3): Track partial defs for memset and
21695 constructor zeroing and for defs from constants.
21697 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21699 * doc/install.texi (bootstrap-Og): Document.
21701 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
21703 * config/riscv/pic.md (*local_pic_load_s<mode>)
21704 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
21705 referenced by <mode>, giving...
21706 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
21707 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
21708 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
21709 use <X:MODE> for the mode attribute.
21711 2019-07-07 Jeff Law <law@redhat.com>
21713 PR tree-optimization/91090
21714 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
21715 in handling of ranges to simplify switch statements.
21717 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21719 * config/darwin.c (darwin_override_options): Make a final check on PIC
21722 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
21724 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
21725 on for kernel code.
21727 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21730 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
21731 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
21732 instead of matching them to "l" output operands.
21734 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
21736 * config/mips/mips.c (mips_split_move): Zero-initialize addr
21737 and check whether addr.reg is nonnull before using it.
21739 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21741 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
21742 ctx->for_simd_scan_phase simd copy the outer var to the privatized
21743 variable(s). For conditional lastprivate look through outer
21744 GIMPLE_OMP_SCAN context.
21745 (lower_omp_1): For conditional lastprivate look through outer
21746 GIMPLE_OMP_SCAN context.
21748 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
21749 member to combined_into_simd_safelen1.
21750 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
21751 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
21752 clauses if ctx->combined_into_simd_safelen1 put statements after the
21753 predicate conditionalized block rather than into it.
21755 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21757 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
21759 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
21760 Make the choice of <mode> explicit, giving...
21761 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
21763 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21765 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
21766 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
21768 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
21769 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
21770 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
21771 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
21772 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
21773 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
21774 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
21775 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
21776 (*avx512f_scatterdi<mode>): Likewise.
21777 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
21779 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21781 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
21782 specify the mode iterator referenced by <mode>, giving...
21783 (*push1_h8300hs_<QHI:mode>): ...this.
21785 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21787 * config/gcn/gcn-valu.md
21788 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
21789 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
21790 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
21791 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
21792 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
21793 but using the _exec comparison patterns.
21794 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
21795 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
21796 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
21797 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
21798 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
21799 but using the _exec comparison patterns.
21801 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
21803 * config/arm/sync.md
21804 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
21805 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
21806 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
21807 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
21808 <SIDI:cas_cmp_str>.
21810 2019-07-06 Jakub Jelinek <jakub@redhat.com>
21812 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
21813 (maybe_lookup_ctx): Add forward declaration.
21814 (omp_find_scan): Likewise. Walk into body of simd if composited
21815 with worksharing loop.
21816 (scan_omp_simd_scan): New function.
21817 (scan_omp_1_stmt): Call it.
21818 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
21819 ctx->for_simd_scan_phase.
21820 (lower_rec_input_clauses): Do much less work for inscan reductions
21821 in ctx->for_simd_scan_phase is_simd regions.
21822 (lower_omp_scan): Set is_simd also on simd constructs composited
21823 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
21824 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
21825 emit their body after in simd constructs composited with worksharing
21827 (lower_omp_for_scan): Handle worksharing loop composited with simd.
21829 * omp-low.c (omp_find_scan): Make static.
21830 (lower_omp_for_scan): Fix order of merge arguments in input phase of
21831 the second loop, var2 represents the first partial sum and so needs
21832 to go before rprivb[ivar].
21834 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
21836 * config/rs6000/rs6000-logue.c: Remove unused code.
21838 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21840 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
21842 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
21845 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
21846 check with a frame laid out check.
21848 2019-07-05 Richard Biener <rguenther@suse.de>
21850 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
21851 when comparing against a store with possibly the same value.
21853 2019-07-05 Richard Biener <rguenther@suse.de>
21855 PR tree-optimization/91091
21856 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
21857 (walk_non_aliased_vuses): Likewise.
21858 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
21859 (get_continuation_for_phi): New tbaa_p parameter and pass
21861 (walk_non_aliased_vuses): Likewise.
21862 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
21863 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
21864 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21866 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
21867 (adjust_offsets_for_equal_base_address): New function.
21868 (vn_reference_lookup_3): Use it to catch more base equivalences.
21869 Handle and pass down tbaa_p flag.
21870 (vn_reference_lookup_pieces): Adjust.
21871 (vn_reference_lookup): Remove alias-set altering, instead pass
21872 down false as tbaa_p.
21874 2019-07-05 Richard Biener <rguenther@suse.de>
21876 PR tree-optimization/91091
21877 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
21878 accesses can happen with -fno-strict-aliasing.
21880 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
21882 * tree-ssa-alias.c (alias_stats): Add
21883 nonoverlapping_component_refs_since_match_p_must_overlap.
21884 (dump_alias_stats): Print it.
21885 (nonoverlapping_component_refs_since_match_p): Add early exit.
21886 (nonoverlapping_component_refs_p): Do not account early exit.
21888 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21890 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
21891 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
21892 (emit_eh_dispatch): Delete.
21893 (lower_catch): Emit the eh_dispatch manually and set the location of
21894 the first catch statement onto it.
21895 (lower_eh_filter): Emit the eh_dispatch manually and set location.
21896 (lower_eh_dispatch): Propagate location.
21897 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
21898 (eliminate_build): Likewise.
21900 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
21902 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
21903 phi nodes if possible.
21904 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
21905 location info on the newly created statement.
21906 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
21907 newly created increment if needed.
21909 2019-07-04 Jakub Jelinek <jakub@redhat.com>
21911 PR middle-end/78884
21912 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
21913 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
21914 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
21915 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
21916 ctx->add_safelen1 is set.
21918 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
21919 GOMP_loop_start at the start of second worksharing loop in a scan.
21920 For nowait, don't emit GOMP_loop_end_nowait at the end of first
21921 worksharing loop in a scan even if there are conditional lastprivates,
21922 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
21924 2019-07-04 Jan Hubicka <jh@suse.cz>
21926 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
21927 Fix check for match in the ref walk.
21929 2019-07-04 Martin Liska <mliska@suse.cz>
21931 * tree-ssa-loop-niter.c
21932 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
21933 (estimate_numbers_of_iterations):
21934 Support __builtin_expect_with_probability for analysis
21935 of # of loop iterations.
21937 2019-07-04 Alexandre Oliva <oliva@adacore.com>
21939 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
21940 * except.c: Likewise.
21941 * expr.c (expand_expr_real_1): Reject it.
21942 * gimplify.c (gimplify_expr): Gimplify it, within
21944 * tree-dump.c (dequeue_and_dump): Dump it.
21945 * tree-pretty-print.c (dump_generic_node): Likewise.
21946 * tree.c (block_may_fallthru): Handle it.
21947 * tree.def (EH_ELSE_EXPR): Introduce it.
21948 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
21949 with GIMPLE_EH_ELSE as try/finally/else.
21951 2019-07-04 Richard Biener <rguenther@suse.de>
21954 * tree-pass.h (execute_all_ipa_transforms): Add a flag
21955 parameter whether to disable GC collection.
21956 * passes.c (execute_one_ipa_transform_pass): Likewise, and
21958 (execute_all_ipa_transforms): Likewise and pass it down.
21959 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
21960 collection from applying IPA transforms.
21961 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
21962 from applying IPA transforms.
21964 2019-07-04 Richard Biener <rguenther@suse.de>
21966 PR tree-optimization/90911
21967 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
21968 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
21969 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21970 scalar_loop_scaling.
21971 (vect_transform_loop): Scale scalar loop profile if needed.
21972 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
21973 the loop copy from if-conversion adjust edge probabilities
21974 and scale the vectorized loop body profile, queue the scalar
21975 profile for updating after peeling.
21977 2019-07-04 Jan Hubicka <jh@suse.cz>
21979 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
21980 parameters; return early for must-alias.
21981 (indirect_ref_may_alias_decl_p): Likewise; when establishing
21982 outer types match, try nonoverlapping_component_refs
21983 if must-alias is not obvious.
21984 (indirect_refs_may_alias_p): Likewise.
21985 (refs_may_alias_p_2): Likewise.
21987 2019-07-04 Richard Biener <rguenther@suse.de>
21989 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
21991 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
21993 (struct vn_walk_cb_data): New callback data struct.
21994 (vn_reference_lookup_2): Adjust.
21995 (vn_reference_lookup_3): Likewise.
21996 (vn_reference_lookup_pieces): Likewise.
21997 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
21998 (visit_reference_op_load): Adjust.
22000 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22002 PR tree-optimization/91063
22003 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
22004 stmt from stmts sequence before calling vect_init_vector_1.
22007 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22010 * fwprop.c (reg_single_def_p): New function.
22011 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
22012 (forward_propagate_into): New parameter reg_prop_only
22013 with default value false.
22014 Propagate def's src into loop only if SET_SRC and SET_DEST
22015 of def_set have single definitions.
22016 Likewise if reg_prop_only is set to true.
22017 (fwprop): New param fwprop_addr_p.
22018 Integrate fwprop_addr into fwprop.
22019 (fwprop_addr): Remove.
22020 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
22022 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
22023 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
22024 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
22026 2019-07-04 Jakub Jelinek <jakub@redhat.com>
22028 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
22029 in worksharing loop scans.
22031 PR tree-optimization/91074
22032 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
22035 PR rtl-optimization/90756
22036 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
22039 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
22041 * config/aarch64/aarch64.md: Remove redundant constraints from
22042 define_expand but keep some patterns untouched if they are
22043 specially selected by TARGET_SECONDARY_RELOAD hook.
22044 * config/aarch64/aarch64-sve.md: Likewise.
22045 * config/aarch64/atomics.md: Remove redundant constraints from
22047 * config/aarch64/aarch64-simd.md: Likewise.
22049 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22051 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
22052 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
22053 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
22055 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
22058 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
22060 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
22061 (STARTFILE_SPEC): Split crt3 into a separate spec.
22062 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
22063 (DARWIN_CRT2_SPEC): New.
22064 (DARWIN_CRT3_SPEC): New.
22065 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
22066 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
22067 (DARWIN_CRT3_SPEC): New.
22069 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
22071 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
22072 Change the RTL attribute "length" from "4" to "*" to allow the
22073 length attribute to be adjusted automatically for prefixed load,
22074 store, and add immediate instructions.
22075 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
22077 (extendsi<mode>2, EXTSI iterator): Likewise.
22078 (movsi_internal1): Likewise.
22079 (movsi_from_sf): Likewise.
22080 (movdi_from_sf_zero_ext): Likewise.
22081 (mov<mode>_internal): Likewise.
22082 (movcc_internal1, QHI iterator): Likewise.
22083 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
22084 (movsf_from_si): Likewise.
22085 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
22086 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
22087 (mov<mode>, FMOVE128 iterator): Likewise.
22088 (movdi_internal64): Likewise.
22089 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
22091 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
22092 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
22093 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
22094 (vsx_splat_v4sf): Likewise.
22096 2019-07-03 Mark Wielaard <mark@klomp.org>
22099 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
22100 DW_AT_addr_base if there is actually a .debug_addr section with
22102 (output_addr_table): Add DWARF5 table header generation here after
22103 checking there are actually any addresses from...
22104 (dwarf2out_finish): ...here.
22106 2019-07-03 Richard Biener <rguenther@suse.de>
22108 PR middle-end/91069
22109 * match.pd (vec_perm -> bit_insert): Fix element read from
22112 2019-07-03 Martin Liska <mliska@suse.cz>
22114 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
22115 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
22117 * generic-match-head.c: Include dbgcnt.h.
22118 * gimple-match-head.c: Likewise.
22120 2019-07-03 Martin Liska <mliska@suse.cz>
22122 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
22123 (GCOV_COUNTER_V_TOPN): New.
22124 (GCOV_COUNTER_V_INDIR): Use _topn.
22125 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
22126 (GCOV_TOPN_VALUES): New.
22127 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
22128 (GCOV_TOPN_VALUES_COUNTERS): New.
22129 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
22131 (gimple_init_gcov_profiler): Rename variables from one_value
22133 (gimple_gen_one_value_profiler): Remove.
22134 (gimple_gen_topn_values_profiler): New function.
22135 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
22136 names instead of SINGLE_VALUE.
22137 (stream_out_histogram_value): Likewise.
22138 (stream_in_histogram_value): Likewise.
22139 (get_most_common_single_value): Likewise.
22140 (gimple_divmod_fixed_value_transform): Likewise.
22141 (gimple_stringops_transform): Likewise.
22142 (gimple_divmod_values_to_profile): Likewise.
22143 (gimple_stringops_values_to_profile): Likewise.
22144 (gimple_find_values_to_profile): Likewise.
22145 * value-prof.h (enum hist_type): Rename to TOPN.
22146 (gimple_gen_one_value_profiler): Remove.
22147 (gimple_gen_topn_values_profiler): New.
22149 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
22151 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
22152 if it has the DW_AT_data_member_location attribute.
22154 2019-07-03 Richard Biener <rguenther@suse.de>
22156 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
22159 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
22161 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
22162 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
22163 (tlsdesc_small_sve_<mode>): Likewise.
22165 2019-07-03 Martin Liska <mliska@suse.cz>
22167 * Makefile.in: Define ZSTD_LIB.
22168 * common.opt: Adjust compression level
22169 to support also zstd levels.
22170 * config.in: Regenerate.
22171 * configure: Likewise.
22172 * configure.ac: Add --with-zstd and --with-zstd-include options
22174 * doc/install.texi: Mention zstd dependency.
22175 * gcc.c: Print supported LTO compression algorithms.
22176 * lto-compress.c (lto_normalized_zstd_level): Likewise.
22177 (lto_compression_zstd): Likewise.
22178 (lto_uncompression_zstd): Likewise.
22179 (lto_end_compression): Dispatch in between zlib and zstd.
22180 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
22181 (lto_uncompression_zlib): Make it static.
22182 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
22183 * lto-section-in.c (lto_get_section_data): Pass info
22184 about used compression.
22185 * lto-streamer-out.c: By default use zstd when possible.
22186 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
22187 (TV_IPA_LTO_COMPRESS): Likewise for compression.
22189 2019-07-03 Martin Liska <mliska@suse.cz>
22191 * lto-section-in.c (lto_get_section_data): Add "lto" section.
22192 * lto-section-out.c (lto_destroy_simple_output_block): Never
22193 compress LTO_section_lto section.
22194 * lto-streamer-out.c (produce_asm): Do not set major_version
22196 (lto_output_toplevel_asms): Likewise.
22197 (produce_lto_section): New function.
22198 (lto_output): Call produce_lto_section.
22199 (lto_write_mode_table): Do not set major_version and
22201 (produce_asm_for_decls): Likewise.
22202 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
22204 (struct lto_header): Remove.
22205 (struct lto_section): New struct.
22206 (struct lto_simple_header): Do not inherit from lto_header.
22207 (struct lto_file_decl_data): Add lto_section_header field.
22209 2019-07-03 Martin Liska <mliska@suse.cz>
22211 * lra-eliminations.c (eliminate_regs_in_insn): Remove
22213 * reg-stack.c (check_asm_stack_operands): Likewise.
22214 * tree-ssa-structalias.c (create_function_info_for): Likewise.
22215 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
22216 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
22217 force_expand_binop.
22219 2019-07-03 Martin Liska <mliska@suse.cz>
22221 PR tree-optimization/90892
22222 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
22223 in string constants.
22225 2019-07-03 Martin Liska <mliska@suse.cz>
22227 PR middle-end/90899
22228 * multiple_target.c (create_dispatcher_calls): Add to comdat
22229 group only if set for ifunc.
22231 2019-07-03 Martin Liska <mliska@suse.cz>
22234 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
22235 Define local_object_name in outer scope in order to handle
22236 use-after-scope issue.
22238 2019-07-03 Martin Liska <mliska@suse.cz>
22240 * common.opt: Add fprofile-note.
22241 * coverage.c (coverage_init): Append the option
22243 * doc/invoke.texi: Document -fprofile-note.
22245 2019-07-03 Jakub Jelinek <jakub@redhat.com>
22247 PR tree-optimization/91033
22248 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
22249 vect_analyze_data_refs): Add bool * arguments.
22250 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
22251 if failure is due to scatter/gather, set *fatal to false if non-NULL.
22252 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
22253 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
22254 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
22255 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
22256 vect_analyze_data_refs caller.
22258 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
22260 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
22261 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
22262 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
22263 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
22264 OMP_CLAUSE__SCANTEMP_ entry.
22265 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
22266 * tree-pretty-print.c (dump_omp_clause): Likewise.
22267 * tree-nested.c (convert_nonlocal_omp_clauses,
22268 convert_local_omp_clauses): Likewise.
22269 * omp-general.h (struct omp_for_data): Add have_scantemp and
22270 have_nonctrl_scantemp members.
22271 * omp-general.c (omp_extract_for_data): Initialize them.
22272 * omp-low.c (struct omp_context): Add scan_exclusive member.
22273 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
22274 result again with GF_OMP_FOR_KIND_MASK. Initialize also
22275 ctx->scan_exclusive.
22276 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
22277 of !ctx->scan_inclusive.
22278 (lower_rec_input_clauses): Simplify gimplification of dtors using
22279 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
22280 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
22281 loops. Don't add barrier for reduction_omp_orig_ref if
22282 ctx->scan_??xclusive.
22283 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
22284 (lower_omp_scan): Use ctx->scan_exclusive instead
22285 of !ctx->scan_inclusive. Handle worksharing loops with inscan
22286 reductions. Use new_vard != new_var instead of repeated
22287 omp_is_reference calls.
22288 (omp_find_scan, lower_omp_for_scan): New functions.
22289 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
22291 * omp-expand.c (expand_omp_scantemp_alloc): New function.
22292 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
22293 and fd->have_scantemp.
22295 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
22296 on worksharing loop propagate it as shared clause to containing
22299 * omp-expand.c (expand_omp_for_static_nochunk,
22300 expand_omp_for_static_chunk): For nowait worksharing loop with
22301 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
22304 2019-07-02 qing zhao <qing.zhao@oracle.com>
22306 PR preprocessor/90581
22307 * doc/cppopts.texi: Add document for -fmax-include-depth.
22308 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
22310 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
22312 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
22313 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
22314 (mmx_packssdw): Ditto.
22315 (mmx_punpckhbw): Ditto.
22316 (mmx_punpcklbw): Ditto.
22317 (mmx_punpckhwd): Ditto.
22318 (mmx_punpcklwd): Ditto.
22319 (mmx_punpckhdq): Ditto.
22320 (mmx_punpckldq): Ditto.
22321 (*vec_dupv4hi): Ditto.
22322 (*vec_dupv2si): Ditto.
22323 (mmx_pmovmskb): Ditto.
22324 * config/i386/sse.md (sse_cvtpi2ps): Use
22325 TARGET_SSE2 && SSE_REG_P in split condition.
22326 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
22327 TARGET_SSSE3 && SSE_REGNO_P in split condition.
22328 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
22329 (ssse3_pshufbv8qi3): Ditto.
22330 (ssse3_palignrdi): Ditto.
22332 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
22334 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
22335 with inlined save and restore.
22337 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
22339 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
22340 to be inserted on single successor edge of the entry block. Then call
22341 commit_edge_insertions instead of inserting the instructions manually.
22342 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
22343 RTL expansion and rebuild jump labels chain.
22345 2019-07-02 Richard Biener <rguenther@suse.de>
22347 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
22349 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22351 * tree.c (build_common_tree_nodes): Initialize them.
22352 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
22353 Make declarations comments.
22354 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
22355 chrec_known): Remove definitions.
22356 (initialize_scalar_evolutions_analyzer): Remove.
22357 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
22358 * tree-streamer.c (preload_common_nodes): Do not preload
22359 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
22361 2019-07-02 Jan Hubicka <jh@suse.cz>
22363 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
22366 2019-07-02 Jan Hubicka <jh@suse.cz>
22368 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
22370 (nonoverlapping_component_refs_since_match_p): ... this one;
22371 handle also non-decl bases; return -1 if search gave up.
22372 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
22373 nonoverlapping_component_refs_of_decl_p_no_alias to
22374 nonoverlapping_component_refs_since_match_p_may_alias,
22375 nonoverlapping_component_refs_since_match_p_no_alias.
22376 (dump_alias_stats): Update dumping.
22377 (aliasing_matching_component_refs_p): Break out from ...;
22378 dispatch to nonoverlapping_component_refs_for_decl_p
22379 and nonoverlapping_component_refs_since_match_p.
22380 (aliasing_component_refs_p): ... here; call
22381 nonoverlapping_component_refs_p in scenarios where we can not
22382 precisely determine base match.
22383 (decl_refs_may_alias_p): Use
22384 nonoverlapping_component_refs_since_match_p.
22385 (indirect_ref_may_alias_decl_p): Do not call
22386 nonoverlapping_component_refs_p.
22387 (indirect_refs_may_alias_p): Likewise.
22389 2019-07-02 Jan Hubicka <jh@suse.cz>
22391 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
22392 to clobber of return value.
22394 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22396 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
22397 for is_neon_type instructions that have not already been categorized.
22399 2019-07-02 Richard Biener <rguenther@suse.de>
22401 PR tree-optimization/58483
22402 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
22403 for MEM_REF base hashing.
22404 (equal_mem_array_ref_p): Likewise for base comparison.
22406 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22408 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
22409 parameterized name.
22410 (signbit<mode>2): Use that name. Simplify.
22412 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
22414 PR middle-end/66726
22415 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
22416 Tune heuristic from PR71016 to allow MIN / MAX.
22418 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22420 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
22421 parameterized name.
22422 (abs<mode>2): Use that name. Simplify.
22424 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22426 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
22427 parameterized name.
22428 (neg<mode>2): Use that name. Simplify.
22430 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22432 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
22434 (abs<mode>2): Use that name. Simplify.
22436 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22438 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
22440 (neg<mode>2): Use that name. Simplify.
22442 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
22444 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
22445 ("enabled" attribute): Handle sse_noavx isa attribute.
22446 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
22447 Use TARGET_SSE && SSE_REGNO_P in split condition.
22448 (*vec_dupv2sf): Ditto.
22450 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22452 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
22454 (floatsi<mode>2): Use that name. Simplify.
22456 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22458 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
22459 parameterized name.
22460 (extenddf<mode>2_vsx): Make this a parameterized name.
22461 (extenddf<mode>2): Use those names. Simplify.
22463 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22465 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
22467 (eh_return): Use that name. Simplify.
22469 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22471 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
22472 (doloop_end): Use that name. Simplify.
22474 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22476 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
22477 parameterized name.
22478 (indirect_jump): Use that name. Simplify.
22480 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22482 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
22483 parameterized name.
22484 (abs<mode>2): Use that name. Simplify.
22486 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22488 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
22489 parameterized name.
22490 (fix_trunc<mode>si2): Use that name. Simplify.
22492 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22494 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
22495 (allocate_stack): Use that name. Simplify.
22497 2019-07-01 Martin Sebor <msebor@redhat.com>
22499 PR middle-end/90923
22500 * hash-map.h (hash_map::put): On insertion invoke element ctor.
22501 (hash_map::get_or_insert): Same. Reformat comment.
22502 * hash-set.h (hash_set::add): On insertion invoke element ctor.
22503 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22504 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
22505 * hash-table.h (hash_table::operator=): Prevent copy assignment.
22506 (hash_table::hash_table (const hash_table&)): Use copy ctor
22507 instead of assignment to copy elements.
22509 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
22510 John David Anglin <danglin@gcc.gnu.org>
22513 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
22514 using saved frame pointer.
22516 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
22518 PR middle-end/64242
22519 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
22520 Add frame clobber and schedule blockage.
22522 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
22524 * doc/invoke.texi (Link Options): Further editorial changes to
22525 -flinker-output docs.
22527 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
22529 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
22530 Load both operands of a PLUS into registers separately.
22532 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
22534 * config/s390/vector.md: Fix shift count operand printing.
22536 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22538 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
22540 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22542 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
22543 Use recog_data to test for an output operand.
22545 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22547 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
22548 exclude any others that are disparaged or that are bound to need
22550 (ira_get_dup_out_num): Expand comment.
22552 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22554 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
22555 constraint string for each operand/alternative combo. Only handle
22556 '%' at the start of constraint strings, and look for it outside
22559 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
22561 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
22562 alternative_mask instead of HARD_REG_SET to represent a
22563 bitmask of alternatives.
22564 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
22565 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
22567 2019-07-01 Martin Liska <mliska@suse.cz>
22569 * edit-context.c (test_applying_fixits_unreadable_file): Do not
22570 use () for a constructor call.
22571 (test_applying_fixits_line_out_of_range): Likewise.
22572 * ggc-page.c (alloc_page): Use (void *) for %p printf format
22574 (free_page): Likewise.
22576 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
22578 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
22579 parameter names to match usage (no functional change).
22580 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
22582 2019-07-01 Richard Biener <rguenther@suse.de>
22584 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
22586 (pass_fre::execute): Honor it.
22587 * passes.def: Adjust pass_fre invocations to allow iterating,
22588 add non-iterating pass_fre before late threading/dom.
22590 2019-07-01 Richard Biener <rguenther@suse.de>
22592 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
22593 TARGET_MEM_REF handling to also handle address-taken ones.
22595 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
22597 * doc/sourcebuild.texi (Effective-Target Keywords, Other
22598 hardware attributes): Document avx512vp2intersect.
22600 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22602 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
22603 (abs<mode>2): New expander.
22604 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
22605 Use CODE_FOR_ssse3_absv8qi2.
22606 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
22607 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
22609 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22611 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
22612 to sse, sse_noavx and avx. Update all uses.
22614 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
22616 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
22617 (*mmx_<plusminus_insn><mode>3): Ditto.
22618 (*mmx_mulv4hi3"): Ditto.
22619 (*mmx_smulv4hi3_highpart): Ditto.
22620 (*mmx_umulv4hi3_highpart): Ditto.
22621 (*mmx_pmaddwd): Ditto.
22622 (*sse2_umulv1siv1di3): Ditto.
22623 (*mmx_<code>v4hi3): Ditto.
22624 (*mmx_<code>v8qi3): Ditto.
22625 (mmx_ashr<mode>3): Ditto.
22626 ("mmx_<shift_insn><mode>3): Ditto.
22627 (*mmx_eq<mode>3): Ditto.
22628 (mmx_gt<mode>3): Ditto.
22629 (mmx_andnot<mode>3): Ditto.
22630 (*mmx_<code><mode>3): Ditto.
22631 (*mmx_pinsrw): Ditto.
22632 (*mmx_pextrw): Ditto.
22633 (mmx_pshufw_1): Ditto.
22634 (*mmx_uavgv8qi3): Ditto.
22635 (*mmx_uavgv4hi3): Ditto.
22636 ("mmx_psadbw): Ditto.
22637 * config/i386/sse.md (sse_cvtps2pi): Ditto.
22638 (sse_cvttps2pi): Ditto.
22639 (ssse3_pmaddubsw): Ditto.
22640 (*ssse3_pmulhrswv4hi3): Ditto.
22641 (ssse3_psign<mode>3): Ditto.
22643 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
22645 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
22646 adjustment for bit-fields to all aggregate types.
22648 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
22650 * config/rs6000/predicates.md (pcrel_address): Use
22651 SYMBOL_REF_LOCAL_P to determine if a label is local.
22652 (pcrel_external_address): New predicate.
22653 (non_prefixed_mem_operand): Delete, predicate not used.
22654 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
22655 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
22657 (SYMBOL_REF_PCREL_P): Likewise.
22660 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
22662 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
22663 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
22664 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
22666 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22668 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
22669 override on extra_headers.
22671 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
22673 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
22674 * config/darwin-driver.c (darwin_default_min_version): Remove newline
22676 (darwin_driver_init): Likewise.
22678 2019-06-28 Jan Beulich <jbeulich@suse.com>
22680 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22681 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
22682 Eliminate redundant alternative.
22684 2019-06-28 Jan Beulich <jbeulich@suse.com>
22686 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
22687 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
22688 Use vector_operand.
22690 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
22692 * config/arc/arc.c (arc_rtx_costs): All short instructions are
22693 having a lower cost regardless of the speed option.
22695 2019-06-28 Jan Beulich <jbeulich@suse.com>
22697 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
22698 vector_operand plus, on both alternatives, "Bm" constraint.
22700 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
22702 * config/arm/arm.md: Remove redundant constraints from
22703 define_expand but leave reload_inm and reload_outm patterns
22704 untouched since they need special constraints to work.
22705 * config/arm/arm-fixed.md: Remove redundant constraints from
22707 * config/arm/iwmmxt.md: Likewise.
22708 * config/arm/neon.md: Likewise.
22709 * config/arm/sync.md: Likewise.
22710 * config/arm/thumb1.md: Likewise.
22711 * config/arm/vec-common.md: Likewise.
22713 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
22715 * doc/install.texi: Document --disable-tm-clone-registry.
22717 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22720 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
22723 PR tree-optimization/91010
22724 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
22725 return true. Otherwise, don't call operand_equal_p if offset1 or
22726 offset2 is NULL and just return false.
22728 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22730 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
22731 user-specified float mode choice for kernel mode code.
22733 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22735 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
22738 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
22740 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
22741 use longcall for 64b code.
22743 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
22745 * builtins.c (get_memory_rtx): Fix comment.
22746 * optabs.def (movmem_optab): Change to cpymem_optab.
22747 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
22748 (emit_block_move_hints): Change movmem to cpymem.
22749 * defaults.h: Change movmem to cpymem.
22750 * targhooks.c (get_move_ratio): Change movmem to cpymem.
22751 (default_use_by_pieces_infrastructure_p): Ditto.
22752 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
22753 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
22755 * config/aarch64/aarch64.h: Change movmem to cpymem.
22756 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
22757 * config/alpha/alpha.h: Change movmem to cpymem in comment.
22758 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
22760 * config/arc/arc-protos.h: Change movmem to cpymem.
22761 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
22762 * config/arc/arc.h: Change movmem to cpymem in comment.
22763 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
22764 * config/arm/arm-protos.h: Change movmem to cpymem in names.
22765 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
22766 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
22767 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
22768 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
22769 * config/avr/avr-protos.h: Change movmem to cpymem.
22770 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
22771 avr_out_movmem): Change movmem to cpymem.
22772 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
22773 Change movmem to cpymem.
22774 * config/bfin/bfin-protos.h: Change movmem to cpymem.
22775 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
22776 Change movmem to cpymem.
22777 * config/bfin/bfin.h: Change movmem to cpymem in comment.
22778 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
22779 * config/c6x/c6x-protos.h: Change movmem to cpymem.
22780 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
22781 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
22782 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
22783 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
22784 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
22785 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
22786 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
22787 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
22788 expand_small_cpymem_or_setmem,
22789 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
22790 expand_set_or_cpymem_constant_prologue,
22791 ix86_expand_set_or_cpymem): Change movmem to cpymem.
22792 * config/i386/i386-protos.h: Change movmem to cpymem.
22793 * config/i386/i386.h: Change movmem to cpymem in comment.
22794 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
22795 (setmem<mode>): Change expansion function name.
22796 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
22797 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
22798 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
22799 * config/m32c/m32c-protos.h: Change movmem to cpymem.
22800 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
22801 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
22802 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
22804 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
22805 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
22806 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
22807 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
22808 Change movmem to cpymem.
22809 * config/mips/mips.h: Change movmem to cpymem.
22810 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
22811 * config/nds32/nds32-memory-manipulation.c
22812 (nds32_expand_movmemsi_loop_unknown_size,
22813 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
22814 nds32_expand_movmemsi_unroll,
22815 nds32_expand_movmemsi): Change movmem to cpymem.
22816 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
22817 * config/nds32/nds32-protos.h: Change movmem to cpymem.
22818 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
22819 (pa_adjust_insn_length): Change call to compute_movmem_length.
22820 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
22821 movmemdi, movmemdi_prereload,
22822 movmemdi_postreload): Change movmem to cpymem.
22823 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
22824 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
22825 * config/riscv/riscv.c: Change movmem to cpymem in comment.
22826 * config/riscv/riscv.h: Change movmem to cpymem.
22827 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
22828 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
22829 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
22831 * config/s390/s390-protos.h: Change movmem to cpymem.
22832 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
22833 s390_expand_insv): Change movmem to cpymem.
22834 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
22835 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
22836 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
22837 * config/sparc/sparc.h: Change movmem to cpymem in comment.
22838 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
22839 for nonexistent function.
22840 * config/vax/vax.h: Change movmem to cpymem in comment.
22841 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
22842 * config/visium/visium.h: Change movmem to cpymem in comment.
22843 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
22844 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
22845 * doc/md.texi: Change movmem to cpymem and update description to match.
22846 * doc/rtl.texi: Change movmem to cpymem.
22847 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
22848 * doc/tm.texi: Regenerate.
22850 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
22852 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
22853 -fvariable-expansion-in-unroller by default.
22854 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
22857 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
22860 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
22861 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
22863 * config.gcc(rs6000-*-*): Define target_gtfiles.
22865 2019-06-27 Jan Hubicka <jh@suse.cz>
22867 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
22868 (add_type_duplicate): When odr hash is not allocated, to nothing.
22869 (odr_based_tbaa_p): New function.
22870 (set_type_canonical_for_odr_type): New function.
22871 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
22872 set_type_canonical_for_odr_type): New.
22873 * tree.c (gimple_canonical_types_compatible_p): ODR types with
22874 ODR based TBAA are not equivalent to non-ODR types.
22876 2019-06-27 Martin Liska <mliska@suse.cz>
22878 PR tree-optimization/90974
22879 PR rtl-optimization/90975
22880 PR rtl-optimization/90976
22882 PR tree-optimization/91017
22883 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
22885 * lra.c (lra_set_insn_recog_data): Remove a leftover from
22886 initial commit of IRA.
22887 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
22889 * tree-vect-loop.c (vect_create_epilog_for_reduction):
22890 Remove unused mode1.
22891 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
22894 2019-06-27 Jakub Jelinek <jakub@redhat.com>
22897 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
22898 instead of register_operand for operands[1], add m to its constraints
22899 if operands[2] uses "C" constraint. Ensure in condition that if
22900 operands[2] is not 0, then operands[1] is not a MEM. For last two
22901 alternatives, use unaligned loads instead of aligned if operands[1] is
22902 misaligned_operand.
22904 2019-06-27 Martin Liska <mliska@suse.cz>
22906 * asan.c (asan_emit_allocas_unpoison): Remove obviously
22908 * bt-load.c (move_btr_def): Likewise.
22909 * builtins.c (expand_builtin_apply_args_1): Likewise.
22910 (expand_builtin_apply): Likewise.
22911 * cfgexpand.c (expand_asm_stmt): Likewise.
22912 (construct_init_block): Likewise.
22913 * cfghooks.c (verify_flow_info): Likewise.
22914 * cfgloopmanip.c (remove_path): Likewise.
22915 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
22916 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
22917 * combine.c (simplify_if_then_else): Likewise.
22918 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
22919 (choose_basereg): Likewise.
22920 (ix86_expand_prologue): Likewise.
22921 (ix86_preferred_output_reload_class): Likewise.
22922 * cselib.c (cselib_record_sets): Likewise.
22923 * df-scan.c (df_scan_alloc): Likewise.
22924 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
22925 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
22926 * emit-rtl.c (try_split): Likewise.
22927 * graphite-scop-detection.c (assign_parameter_index_in_region):
22929 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
22930 * ira-color.c (setup_profitable_hard_regs): Likewise.
22931 * ira.c (rtx_moveable_p): Likewise.
22932 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
22933 * read-rtl.c (read_subst_mapping): Likewise.
22934 * regrename.c (scan_rtx): Likewise.
22935 * reorg.c (fill_slots_from_thread): Likewise.
22936 * tree-inline.c (tree_function_versioning): Likewise.
22937 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
22938 * tree-ssa-sink.c (statement_sink_location): Likewise.
22939 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
22940 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
22941 (vect_create_epilog_for_reduction): Likewise.
22942 * tree.c (build_nonstandard_integer_type): Likewise.
22944 2019-06-27 Richard Biener <rguenther@suse.de>
22946 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
22948 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
22950 PR tree-optimization/89772
22951 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
22952 out-of-bound accesses checking.
22954 2019-06-27 Martin Liska <mliska@suse.cz>
22956 PR tree-optimization/91014
22957 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
22958 when LHS is NULL_TREE.
22960 2019-06-27 Martin Liska <mliska@suse.cz>
22962 * symbol-summary.h (traverse): Pass
22963 argument a to the call of callback.
22964 (gt_ggc_mx): Mark arguments as unused.
22965 (gt_pch_nx): Likewise.
22967 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
22970 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
22973 2019-06-26 Jeff Law <law@redhat.com>
22975 PR tree-optimization/90883
22976 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
22977 (delete_dead_or_redundant_assignment): Likewise.
22979 PR tree-optimization/90883
22980 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
22981 * tree-ssa-dse.c: Update various comments to distinguish between
22982 dead and redundant stores.
22983 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
22984 (dse_optimize_redundant_stores): New function.
22985 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
22986 Distinguish between dead and redundant calls in dump output. All
22988 (delete_dead_or_redundant_assignment): Similarly for assignments.
22989 (dse_optimize_stmt): Handle _CHK variants. For statements which
22990 store 0 into multiple memory locations, try to prove a subsequent
22991 store is redundant.
22993 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
22996 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
22997 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
22999 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23001 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
23002 (branch_islands): New extern.
23003 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
23004 * config/rs6000/rs6000.c: .. here.
23006 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
23008 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
23009 (powerpc*-*-*) ... to here.
23011 2019-06-26 Jeff Law <law@redhat.com>
23013 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
23014 memcpy, memmove and memset builtins.
23015 (maybe_trim_memstar_call): Likewise.
23017 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23019 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
23021 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
23023 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
23025 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23027 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
23029 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
23031 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
23034 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23036 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
23038 2019-06-26 Richard Biener <rguenther@suse.de>
23041 * tree-inline.c (remap_ssa_name): Copy SSA range info.
23043 2019-06-26 Richard Biener <rguenther@suse.de>
23045 * lto-streamer.h (lto_bitmap_alloc): Remove.
23046 (lto_bitmap_free): Likewise.
23047 * lto-streamer.c (lto_bitmap_alloc): Remove.
23048 (lto_bitmap_free): Likewise.
23049 (lto_obstack): Likewise.
23050 (lto_obstack_initialized): Likewise.
23051 * lto-streamer-out.c (lto_output): Use own obstack for local
23052 bitmap, free it consistently.
23054 2019-06-26 Jakub Jelinek <jakub@redhat.com>
23057 * config/i386/sse.md
23058 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
23059 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
23060 insns if operands[2] is misaligned_operand.
23062 2019-06-26 Li Jia He <helijia@linux.ibm.com>
23064 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
23066 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
23069 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
23071 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
23073 2019-06-26 Martin Liska <mliska@suse.cz>
23075 PR tree-optimization/90973
23076 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
23077 epilogue_cost_vec instead of prologue_cost_vec for
23080 2019-06-26 Martin Liska <mliska@suse.cz>
23082 * bb-reorder.c (connect_better_edge_p): Add missing else
23083 statement in the middle of if-else statements.
23085 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
23086 H.J. Lu <hongjiu.lu@intel.com>
23087 Olga Makhotina <olga.makhotina@intel.com>
23089 * common/config/i386/i386-common.c
23090 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
23091 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
23092 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
23093 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
23094 (ix86_handle_option): Handle -mavx512vp2intersect.
23095 * config/i386/avx512vp2intersectintrin.h: New.
23096 * config/i386/avx512vp2intersectvlintrin.h: New.
23097 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
23098 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23099 AVX512VP2INTERSECT.
23100 * config/i386/i386-builtin-types.def: Add new types.
23101 * config/i386/i386-builtin.def: Add new builtins.
23102 * config/i386/i386-builtins.c: (enum processor_features): Add
23103 F_AVX512VP2INTERSECT.
23104 (static const _isa_names_table isa_names_table): Ditto.
23105 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23106 __AVX512VP2INTERSECT__.
23107 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
23108 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
23109 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
23110 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
23111 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
23112 * config/i386/i386-options.c (ix86_target_string): Add
23113 -mavx512vp2intersect.
23114 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
23115 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
23116 P2HImode and P2QImode.
23117 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
23118 number for P2QImode and P2HImode.
23119 (ix86_regmode_natural_size): New function.
23120 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
23121 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
23122 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
23123 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
23124 * config/i386/i386.opt: Add -mavx512vp2intersect.
23125 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
23126 avx512vp2intersectvlintrin.h.
23127 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
23128 (define_mode_iterator VI48_AVX512VP2VL): New.
23129 (avx512vp2intersect_2intersect<mode>,
23130 avx512vp2intersect_2intersectv16si): New define_insn patterns.
23131 * config.gcc: Add avx512vp2intersectvlintrin.h and
23132 avx512vp2intersectintrin.h to extra_headers.
23133 * doc/invoke.texi: Document -mavx512vp2intersect.
23135 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
23137 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
23139 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23141 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
23142 savres_routine_syms, savres_routine_name, morestack_ref,
23143 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23144 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23145 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23146 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23147 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23148 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23149 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23150 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23151 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23152 get_stack_clash_protection_probe_interval,
23153 get_stack_clash_protection_guard_size,
23154 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23155 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23156 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23157 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23158 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23159 gen_frame_mem_offset, rs6000_savres_routine_name,
23160 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23161 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23162 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23163 rs6000_global_entry_point_prologue_needed_p,
23164 rs6000_get_separate_components, rs6000_components_for_bb,
23165 rs6000_disqualify_components, rs6000_emit_prologue_components,
23166 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23167 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23168 rs6000_output_savres_externs, rs6000_output_function_prologue,
23169 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23170 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23171 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23172 rs6000_output_function_epilogue, gen_add3_const,
23173 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23174 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23176 (machine_function): Moved to rs6000.h.
23177 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
23179 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
23180 savres_routine_syms, savres_routine_name, morestack_ref,
23181 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
23182 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
23183 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
23184 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
23185 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
23186 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
23187 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
23188 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
23189 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
23190 get_stack_clash_protection_probe_interval,
23191 get_stack_clash_protection_guard_size,
23192 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
23193 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
23194 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
23195 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
23196 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
23197 gen_frame_mem_offset, rs6000_savres_routine_name,
23198 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
23199 ptr_regno_for_savres, rs6000_emit_savres_rtx,
23200 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
23201 rs6000_global_entry_point_prologue_needed_p,
23202 rs6000_get_separate_components, rs6000_components_for_bb,
23203 rs6000_disqualify_components, rs6000_emit_prologue_components,
23204 rs6000_emit_epilogue_components, rs6000_set_handled_components,
23205 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
23206 rs6000_output_savres_externs, rs6000_output_function_prologue,
23207 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
23208 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
23209 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
23210 rs6000_output_function_epilogue, gen_add3_const,
23211 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
23212 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
23213 to here from rs6000.c.
23214 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
23215 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
23216 quad_address_offset_p) Moved to here from rs6000.c.
23217 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
23218 * config/config.gcc: Add new source file rs6000-logue.c to garbage
23221 2019-06-25 Martin Liska <mliska@suse.cz>
23223 * hash-table.c (hashtab_chk_error): Move here from ...
23224 * hash-table.h (hashtab_chk_error): ... here.
23226 2019-06-25 Martin Liska <mliska@suse.cz>
23228 PR tree-optimization/90978
23229 * df-scan.c (df_update_entry_block_defs): Remove dead else
23231 (df_update_exit_block_uses): Likewise.
23233 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
23234 Andrew Stubbs <ams@codesourcery.com>
23236 * config.gcc (thread_file): Set to gcn for AMD GCN.
23237 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
23238 (TARGET_EMUTLS_VAR_INIT): New hook.
23240 2019-06-25 Martin Jambor <mjambor@suse.cz>
23243 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
23245 2019-06-25 Richard Biener <rguenther@suse.de>
23247 PR tree-optimization/90930
23248 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
23249 into parallel form in the last pass instance.
23251 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
23253 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
23254 (arc_legitimize_pic_address): Simplify and cleanup the function.
23255 (SYMBOLIC_CONST): Remove.
23256 (prepare_pic_move): Likewise.
23257 (prepare_move_operands): Handle complex mov cases here.
23258 (arc_legitimize_address_0): Remove call to
23259 arc_legitimize_pic_address.
23260 (arc_legitimize_address): Remove call to
23261 arc_legitimize_tls_address.
23262 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
23263 (movhi_insn): Likewise.
23265 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23267 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
23269 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
23270 format of "__intN" types for UINTMAX_TYPE.
23271 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
23272 format of "__intN" types for SIZETYPE.
23273 * tree.c (build_common_tree_nodes): Accept "__intN__"
23274 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
23275 * doc/invoke.texi: Document that __intN__ disables pedantic
23278 2019-06-25 Jan Hubicka <jh@suse.cz>
23280 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
23281 base2_alias_set is non-zero before doing TBAA based disambiguation.
23283 2019-06-25 Martin Liska <mliska@suse.cz>
23285 PR tree-optimization/90973
23286 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
23287 of prologue and epilogue.
23289 2019-06-24 Jan Hubicka <jh@suse.cz>
23291 * ipa-utils.h (type_with_linkage_p): Verify that type is
23293 (odr_type_p): Remove extra return.
23294 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
23295 hash STRING_FLAG only for arrays and integers.
23296 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
23297 Update analogously.
23298 * tree-streamer-out.c (pack_ts_type_common_value_fields):
23300 * print-tree.c (print_node): Print cxx-odr-p
23302 * tree.c (need_assembler_name_p): Also check that type
23304 (verify_type_variant): Update verification of SRING_FLAG;
23305 also check CXX_ODR_P.
23306 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
23307 (TYPE_STRING_FLAG): Use it.
23308 (TYPE_CXX_ODR_P): New macro.
23309 * dwarf2out.c (gen_array_type_die): First check that type
23310 is an array and then test string flag.
23312 2019-06-24 Richard Biener <rguenther@suse.de>
23314 PR tree-optimization/90972
23315 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
23316 in common code, dealing with STRING_CST properly.
23318 2019-06-24 Richard Biener <rguenther@suse.de>
23320 PR tree-optimization/90930
23321 PR tree-optimization/90316
23322 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
23323 decrement of limit.
23325 2019-06-24 Martin Sebor <msebor@redhat.com>
23327 * tree-pretty-print.h: Remove unnecessary punctuation characters
23329 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
23331 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
23333 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
23334 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
23335 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
23337 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23339 * config/rs6000/darwin.h: Handle GCC target pragma.
23341 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
23343 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
23345 2019-06-22 Jeff Law <law@redhat.com>
23347 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23349 2019-06-22 Jan Hubicka <jh@suse.cz>
23351 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
23352 give up on bitfields; continue searching for different refs
23355 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23357 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23358 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
23359 containing the offset as possible simd lane access. Look through
23360 widening conversion. Move the
23361 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
23363 2019-06-21 Richard Biener <rguenther@suse.de>
23365 PR tree-optimization/90930
23366 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
23367 flag on new stmts to avoid re-processing them.
23369 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
23371 PR c++/90875 - added -Wswitch-outside-range option
23372 * doc/invoke.texi (Wswitch-outside-range): Document.
23374 2019-06-21 Jeff Law <law@redhat.com>
23376 PR tree-optimization/90949
23377 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
23378 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
23380 2019-06-21 Richard Biener <rguenther@suse.de>
23383 * dwarf2out.c (prune_unused_types_walk): Always consider
23384 function-local extern declarations as used.
23386 2019-06-21 Richard Biener <rguenther@suse.de>
23388 PR tree-optimization/90913
23389 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
23390 the scalar variant of if-conversion versioning.
23392 2019-06-21 Jakub Jelinek <jakub@redhat.com>
23394 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
23395 create another "omp scan inscan exclusive" array if
23396 !ctx->scan_inclusive.
23397 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
23398 (lower_omp_scan): Likewise.
23399 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
23400 2-bit bitfield for simd_lane_access_p member.
23401 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
23402 aux == (void *)-4 as simd lane access.
23403 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
23404 comment with permutations to show the canonical permutation order.
23405 (vectorizable_scan_store): Handle exclusive scan.
23406 (vectorizable_store): Call vectorizable_scan_store even for
23407 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
23409 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
23410 "omp simd array" arrays with one byte elements.
23412 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
23414 * config/alpha/alpha.md (@unaligned_store<mode>):
23415 Rename from unaligned_store<mode>.
23416 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
23417 * config/alpha/sync.md (@load_locked_<mode>): Rename
23418 from load_locked_<mode>.
23419 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
23420 (@atomic_compare_and_swap<mode>_1): Rename
23421 from atomic_compare_and_swap<mode>_1.
23422 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
23423 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
23424 Use gen_reload_in_aligned and gen_unaligned_store.
23425 (emit_load_locked): Remove.
23426 (emit_store_conditional): Ditto.
23427 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
23428 (alpha_split_compare_and_swap): Ditto.
23429 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
23430 (alpha_split_compare_and_swap_12): Use gen_load_locked
23431 and gen_store_conditional.
23432 (alpha_split_atomic_exchange): Ditto.
23433 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
23434 (alpha_split_atomic_exchange_12): Use gen_load_locked
23435 and gen_store_conditional.
23437 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
23439 * config/aarch64/aarch64-errata.h: New file.
23440 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
23441 (CA53_ERR_843419_SPEC): Delete.
23442 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
23443 * config/aarch64/aarch64-linux.h: Likewise.
23444 * config/aarch64/aarch64-netbsd.h: Likewise.
23445 * config/aarch64/aarch64-freebsd.h: Likewise.
23447 2019-06-20 Marek Polacek <polacek@redhat.com>
23449 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
23451 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
23453 * config/rs6000/rs6000.md (isa attribute): Add support for
23454 for a future processor.
23456 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
23459 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
23460 standard scalar operation pattern for V2DF.
23461 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
23462 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
23463 (*ieee_<ieee_maxmin><mode>3): Likewise.
23464 (vec_setv2df_0): Likewise.
23466 2019-06-20 Jan Hubicka <jh@suse.cz>
23468 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
23469 parameter; it has no use in gimple memory model.
23470 (indirect_ref_may_alias_decl_p): Update.
23472 2019-06-20 Martin Liska <mliska@suse.cz>
23474 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
23477 2019-06-20 Jakub Jelinek <jakub@redhat.com>
23479 * tree-vect-stmts.c (enum scan_store_kind): New type.
23480 (scan_store_can_perm_p): Change last argument from int * to
23481 vec<enum scan_store_kind> *, record precisely which permutations
23482 need whole vector left shift or that plus VEC_COND_EXPR.
23483 (vectorizable_scan_store): Adjust caller, use whole vector left shift
23484 and additional VEC_COND_EXPR only for those iterations that need it.
23486 2019-06-20 Alexandre Oliva <oliva@adacore.com>
23488 * config.gcc: Fix ARM --with-fpu checking and error message.
23490 2019-06-19 Marek Polacek <polacek@redhat.com>
23492 PR c++/60364 - noreturn after first decl not diagnosed.
23493 * attribs.c (get_attribute_namespace): No longer static.
23494 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
23496 (attr_noreturn_exclusions): Make it extern.
23497 * attribs.h (get_attribute_namespace): Declare.
23498 * tree-inline.c (function_attribute_inlinable_p): Use
23499 get_attribute_name.
23501 2019-06-19 Martin Sebor <msebor@redhat.com>
23503 PR tree-optimization/90626
23504 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
23506 PR tree-optimization/90626
23507 * tree-ssa-strlen.c (strxcmp_unequal): New function.
23508 (handle_builtin_string_cmp): Call it.
23510 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23512 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
23513 and DARWIN_NOPIE_SPEC.
23514 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
23515 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
23516 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
23517 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
23518 (DARWIN_EXPORT_DYNAMIC): Delete.
23519 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
23520 and pie options processing to darwin.h.
23521 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
23523 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
23525 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
23526 in computing the number of options to be moved.
23528 2019-06-19 Maya Rashish <coypu@sdf.org>
23530 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
23531 (CLEAR_INSN_CACHE) Use it.
23533 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
23535 * config/i386/i386.md (cmpstrnsi): Remove dead code.
23537 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
23539 PR middle-end/84521
23540 * builtins.c (expand_builtin_setjmp_setup): Save
23541 hard_frame_pointer_rtx.
23542 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
23544 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
23546 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
23548 (remove_reg_equal_offset_note): Remove unused function.
23549 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
23551 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23552 (arc_builtin_setjmp_frame_value): Remove function.
23553 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23554 (avr_builtin_setjmp_frame_value): Remove function.
23555 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23556 (ix86_builtin_setjmp_frame_value): Remove function.
23557 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
23558 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23559 (sparc_builtin_setjmp_frame_value): Remove function.
23560 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
23561 (vax_builtin_setjmp_frame_value): Remove function.
23562 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
23563 pointer if has_nonlocal_label.
23565 2019-06-19 Jakub Jelinek <jakub@redhat.com>
23567 * doc/md.texi: Document vec_shl_<mode> pattern.
23568 * optabs.def (vec_shl_optab): New optab.
23569 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
23570 argument, if == vec_shl_optab, check for left whole vector shift
23571 pattern rather than right shift.
23572 (expand_vec_perm_const): Add vec_shl_optab support.
23573 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
23575 * tree-vect-generic.c (lower_vec_perm): Support permutations which
23576 can be handled by vec_shl_optab.
23577 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
23578 (check_scan_store): Use it.
23579 (vectorizable_scan_store): If target can't do normal permutations,
23580 try to use whole vector left shifts and if needed a VEC_COND_EXPR
23582 * config/i386/sse.md (vec_shl_<mode>): New expander.
23584 * omp-low.c (lower_rec_input_clauses): Handle references properly
23586 (lower_omp_scan): Likewise.
23588 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
23590 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
23591 mem_mode is BLKmode.
23593 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
23596 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
23597 pointer adjustment for the case of no callee-saved registers and
23598 stack frame bigger than 128 bytes.
23600 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
23602 PR middle-end/90862
23603 * omp-low.c (check_omp_nesting_restrictions): Handle
23604 GF_OMP_TARGET_KIND_OACC_DECLARE.
23606 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
23608 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
23609 (@add<mode>3_carry): Rename from add<mode>3_carry.
23610 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
23611 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
23612 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
23613 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
23614 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
23615 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
23616 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
23617 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
23618 (cmpstrnsi): Use gen_cmp_1.
23619 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
23620 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
23621 (@umonitor_<mode>): Rename from umonitor_<mode>.
23622 * config/i386/i386-expand.c (ix86_expand_copysign):
23623 Use gen_copysign3_const and gen_copysign3_var.
23624 (ix86_expand_xorsign): Use gen_xorsign3_1.
23625 (ix86_expand_branch): Use gen_sub3_carry_ccc,
23626 gen_sub3_carry_ccgz and gen_cmp1.
23627 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
23628 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
23629 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
23630 (ix86_split_lshr): Ditto.
23631 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
23633 2019-06-18 Jason Merrill <jason@redhat.com>
23635 * tree.c (build_constructor): Add MEM_STAT_DECL.
23637 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23639 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
23640 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
23641 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
23642 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
23643 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
23644 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
23645 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
23646 Use CC_NZC instead of CC.
23647 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
23648 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
23649 (aarch64_print_operand): Handle E_CC_NZCmode.
23650 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
23651 of gen_set_clobber_cc.
23653 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23655 * config/aarch64/aarch64-sve.md: Tabify file.
23657 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23659 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
23660 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
23661 * config/aarch64/aarch64-sve.md: Use it.
23663 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23665 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
23666 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
23667 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
23668 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
23669 (aarch64_expand_sve_vec_cmp_int): Use it.
23670 (aarch64_expand_sve_vec_cmp_float): Likewise.
23671 * config/aarch64/aarch64-sve.md: Likewise throughout.
23673 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23674 Kugan Vivekanandarajah <kuganv@linaro.org>
23676 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
23677 (*cond_<optab><mode>_z): Fold into...
23678 (*cond_<optab><mode>_any): ...here. Also handle cases in which
23679 operand 4 can be tied to operand 0 (either inherently or via RA).
23681 2019-06-18 Richard Biener <rguenther@suse.de>
23684 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
23685 as if optimized away.
23687 2019-06-18 Tom de Vries <tdevries@suse.de>
23689 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
23690 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
23691 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
23693 (define_insn "@set_softstack_<mode>"): ... this.
23694 (define_insn "omp_simt_enter_<mode>"): Rename to ...
23695 (define_insn "@omp_simt_enter_<mode>"): ... this.
23696 (define_insn "omp_simt_exit_<mode>"): Rename to ...
23697 (define_insn "@omp_simt_exit_<mode>"): ... this.
23699 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
23701 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
23702 vf parameter. Restore the previous iv step of nscalars_step,
23703 but give it iv_type rather than compare_type. Tweak code order
23704 to match the comments.
23705 (vect_set_loop_condition_masked): Update accordingly.
23706 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
23707 for iv_precision. Tweak comment formatting.
23709 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23711 * config/darwin.c: Strip trailing whitespace.
23713 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
23715 * config/darwin.c (darwin_emit_unwind_label): New default to false.
23716 (darwin_override_options): Set darwin_emit_unwind_label as needed.
23718 2019-06-18 Martin Jambor <mjambor@suse.cz>
23721 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
23722 caller does not have flag_ipa_cp set.
23724 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23726 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
23727 from "*fold_left_plus_<mode>", updated operands order.
23728 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
23729 * internal-fn.c (mask_fold_left_direct): New define.
23730 (expand_mask_fold_left_optab_fn): Likewise.
23731 (direct_mask_fold_left_optab_supported_p): Likewise.
23732 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
23733 * optabs.def (mask_fold_left_plus_optab): New optab.
23734 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
23735 masked internal_fn for a reduction ifn.
23736 (vectorize_fold_left_reduction): Add support for masking reductions.
23738 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
23740 PR middle-end/80791
23741 * target.def (predict_doloop_p): New hook.
23742 * targhooks.h (default_predict_doloop_p): New declaration.
23743 * targhooks.c (default_predict_doloop_p): New function.
23744 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
23745 * doc/tm.texi: Regenerate.
23746 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
23747 (TARGET_PREDICT_DOLOOP_P): New macro.
23748 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
23750 2019-06-17 Jakub Jelinek <jakub@redhat.com>
23752 * omp-low.c (struct omp_context): Add scan_inclusive field.
23753 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
23755 (struct omplow_simd_context): Add lastlane member.
23756 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
23757 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
23759 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
23760 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
23761 (lower_omp_scan): New function.
23762 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
23763 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
23764 check 3rd argument if present rather than 2nd.
23765 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
23766 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
23768 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
23769 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
23771 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
23772 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
23773 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
23775 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
23776 IFN_GOMP_SIMD_LANE argument.
23777 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
23778 encoded ->aux value.
23779 * tree-vect-stmts.c: Include attribs.h.
23780 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
23781 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
23783 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
23784 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
23786 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
23789 * config/i386/i386.md (*nabstf2_1): New insn pattern.
23790 (*nabs<mode>2_1): Ditto.
23791 (nabs sse-reg splitter): New splitter.
23792 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
23794 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23796 PR bootstrap/90873.
23797 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
23800 2019-06-17 Tom de Vries <tdevries@suse.de>
23802 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
23803 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
23804 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
23806 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
23808 (define_insn "omp_simt_enter_insn"): Rename to ...
23809 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
23810 match_operand 0, 1 and 2, as well as the unspec_volatile result.
23811 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
23812 gen_omp_simt_enter_si.
23813 (define_expand "omp_simt_exit"): New.
23814 (define_insn "omp_simt_exit"): Rename to ...
23815 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
23818 2019-06-17 Matthew Green <mrg@eterna.com.au>
23819 Maya Rashish <coypu@sdf.org>
23821 * config.gcc (aarch64*-*-netbsd*): New target.
23822 * config/aarch64/aarch64-netbsd.h: New file.
23823 * config/aarch64/t-aarch64-netbsd: Likewise.
23825 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23827 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
23828 the access path from base to first VIEW_CONVERT_EXPR or
23831 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
23833 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
23834 access path on BIT_FIELD_REFs.
23836 2019-06-17 Martin Liska <mliska@suse.cz>
23839 * ipa-utils.h (odr_type_p): Remove dead code.
23841 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23843 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
23844 alternative Solaris 11.4 format.
23845 * configure: Regenerate.
23847 2019-06-17 Tom de Vries <tdevries@suse.de>
23849 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
23850 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
23852 (define_insn "call_value_insn"): Rename to ...
23853 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
23855 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
23858 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
23860 PR middle-end/64242
23861 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
23862 frame clobbers and schedule block.
23863 (builtin_longjmp): Likewise.
23865 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23867 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
23868 describe how to perform MSPABI compliant 64-bit shift.
23869 * config/msp430/msp430.md (ashldi3): New define_expand.
23870 (ashrdi3): New define_expand.
23871 (lshrdi3): New define_expand.
23873 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
23875 * doc/sourcebuild.texi: Document new effective target keyword
23878 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23880 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
23881 indirect_refs_may_alias_p): Revert accidental commits.
23883 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
23884 at the end of structures.
23886 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23888 * config/darwin.c (machopic_indirect_call_target): Use renamed
23889 darwin_picsymbol_stubs to decide on output.
23890 (darwin_override_options): Handle darwin_picsymbol_stubs.
23891 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
23892 (LD64_VERSION): Revise default.
23893 * config/darwin.opt: (mpic-symbol-stubs): New option.
23894 (darwin_picsymbol_stubs): New variable.
23895 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
23896 rename to TARGET_MACHO_PICSYM_STUBS.
23897 * config/i386/i386.c (output_pic_addr_const): Likewise.
23898 * config/i386/i386.h Likewise.
23899 * config/rs6000/darwin.h: Likewise.
23900 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
23901 darwin_picsymbol_stubs.
23903 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
23905 * config/darwin.opt (prebind, noprebind, seglinkedit,
23906 noseglinkedit): Add RejectNegative.
23908 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
23910 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
23911 in my previous patch.
23913 2019-06-16 Tom de Vries <tdevries@suse.de>
23915 PR tree-optimization/89376
23916 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
23918 2019-06-15 Maya Rashish <coypu@sdf.org>
23920 * doc/invoke.texi (Spec Files): Update location of the
23923 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
23925 * doc/extend.texi (Common Function Attributes): Clarify
23926 no_sanitize. Fix grammar.
23928 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
23930 * tree-ssa-alias.c (alias_stats): Add
23931 nonoverlapping_component_refs_p_may_alias,
23932 nonoverlapping_component_refs_p_no_alias,
23933 nonoverlapping_component_refs_of_decl_p_may_alias,
23934 nonoverlapping_component_refs_of_decl_p_no_alias.
23935 (dump_alias_stats): Dump them.
23936 (nonoverlapping_component_refs_of_decl_p): Add stats.
23937 (nonoverlapping_component_refs_p): Add stats; do not stop on first
23940 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
23942 * config/i386/i386.md (and<mode>3): Generate zero-extends for
23943 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
23945 (*anddi3_doubleword): Split before reload. Merge with
23946 anddi->zext pre-reload splitter.
23947 (*andndi3_doubleword): Split before reload.
23948 (*<code>di3_doubleword): Ditto.
23949 (*one_cmpldi2_doubleword): Ditto.
23951 2019-06-15 Jakub Jelinek <jakub@redhat.com>
23953 PR middle-end/90779
23954 * gimplify.c: Include omp-offload.h and context.h.
23955 (gimplify_bind_expr): Add "omp declare target" attributes
23956 to static block scope variables inside of target region or target
23959 2019-06-15 Tom de Vries <tdevries@suse.de>
23961 PR tree-optimization/90009
23962 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
23963 Return NULL if bb contains IFN_UNIQUE.
23965 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
23967 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
23968 (un): New define_mode_attr.
23969 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
23970 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
23971 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
23973 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
23975 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
23977 * config/darwin.opt: Add RejectNegative where needed, reorder
23978 and add minimal functional descriptions.
23980 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23982 PR rtl-optimization/90765
23983 * calls.c (update_stack_alignment_for_call): New function.
23984 (expand_call): Call update_stack_alignment_for_call when
23985 outgoing parameter is passed in the stack.
23986 (emit_library_call_value_1): Likewise.
23987 * function.c (locate_and_pad_parm): Don't update
23988 stack_alignment_needed and preferred_stack_boundary.
23990 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
23993 * config/i386/i386-features.c
23994 (dimode_scalar_chain::compute_convert_gain): Replace
23995 mmxsse_to_integer with sse_to_integer.
23996 * config/i386/i386.c (ix86_register_move_cost): Verify that
23997 moves between MMX and non-MMX units require secondary memory.
23998 Correct costs of moves between SSE and integer units.
23999 * config/i386/i386.h (processor_costs): Rename cost of moving
24000 SSE register to integer to sse_to_integer. Rename cost of
24002 2019-06-14 Matt Thomas <matt@3am-software.com>
24003 Matthew Green <mrg@eterna.com.au>
24004 Nick Hudson <skrll@netbsd.org>
24005 Maya Rashish <coypu@sdf.org>
24006 Richard Earnshaw <rearnsha@arm.com>
24008 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
24009 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
24010 * config/arm/netbsd-eabi.h: New file.
24011 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
24013 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
24014 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
24015 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
24016 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
24018 2019-06-14 Richard Biener <rguenther@suse.de>
24020 * tree-loop-distribution.c (classify_partition): Return
24021 whether a reduction appeared in all partitions and do not
24022 stop builtin detection because of this.
24023 (distribute_loop): Sort a non-builtin partition last if
24024 there's a reduction in all partitions and make sure the
24025 partition prevailing as last is not a builtin.
24027 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
24030 * ipa-prop.c (add_to_agg_contents_list): New function.
24031 (clobber_by_agg_contents_list_p): Likewise.
24032 (extract_mem_content): Likewise.
24033 (get_place_in_agg_contents_list): Delete.
24034 (determine_known_aggregate_parts): Renamed from
24035 determine_locally_known_aggregate_parts. New parameter
24038 2019-06-13 Martin Sebor <msebor@redhat.com>
24040 PR tree-optimization/90662
24041 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
24044 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24047 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
24048 dbase is not TARGET_MEM_REF.
24050 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24052 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
24054 (and<mode>3): Use gen_extend_insn instead of indirect functions.
24055 Do not generate DImode extends for 32bit targets.
24056 (and->zext post-reload splitter): Use gen_extend_insn
24057 instead of indirect functions.
24058 (anddi->zext pre-reload splitter): New.
24059 (*zext<mode>_doubleword_and): Remove.
24060 (*zext<mode>_doubleword): Ditto.
24061 (*zextsi_doubleword): Dittto.
24063 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
24065 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
24066 Use gen_sub3_insn instead of indirect function.
24067 (ix86_expand_ashl_const): Use gen_add2_insn instead of
24069 (ix86_adjust_counter): Ditto.
24071 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
24072 Lijia He <helijia@linux.ibm.com>
24074 PR tree-optimization/77820
24075 * tree-ssa-threadedge.c
24076 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
24078 (thread_across_edge): Add call to
24079 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
24081 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
24083 * config/darwin-driver.c (validate_macosx_version_min): New.
24084 (darwin_default_min_version): Cleanup and validate supplied version.
24085 (darwin_driver_init): Likewise and push cleaned version into opts.
24087 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
24089 PR tree-optimization/90869
24090 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
24091 converts in MEM_REF referencing decl rather than view converts
24092 from decl type to MEM_REF type.
24094 2019-06-13 Richard Biener <rguenther@suse.de>
24096 PR tree-optimization/90856
24097 * tree-sra.c (build_ref_for_model): Only use
24098 build_reconstructed_reference when address-spaces are the same.
24100 2019-06-13 Jakub Jelinek <jakub@redhat.com>
24102 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
24103 wrap ei variable name in the declaration in ()s.
24104 (nvptx_single): Actually use mode_label variable. Formatting fix.
24106 2019-06-13 Richard Biener <rguenther@suse.de>
24108 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
24109 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
24110 also return the condition stmt.
24111 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
24112 loop we can version and version that, reusing the loop version
24113 created by if-conversion instead of versioning again.
24115 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
24117 * gimple-loop-versioning.cc (prune_loop_conditions): Use
24119 * tree-vrp (value_range_base::may_contain_p): Call into
24120 value_inside_range.
24121 (value_inside_range): Make private inside value_range_base class.
24122 Take min/max from *this.
24123 (range_includes_p): Remove.
24124 * tree-vrp.h (value_range_base): Add value_inside_range.
24125 (range_includes_p): Remove.
24126 (range_includes_zero_p): Call may_contain_p.
24127 * vr-values.c (compare_range_with_value): Same.
24129 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
24131 * doc/extend.texi (ARC Function Attributes): Update info.
24133 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
24135 PR tree-optimization/89713
24136 * doc/invoke.texi (-ffinite-loops): Document new option.
24137 * common.opt (-ffinite-loops): New option.
24138 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
24139 IFN_GOACC_LOOP calls as necessary.
24140 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
24142 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
24143 IFN_GOACC_LOOP call is not used.
24144 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
24146 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24149 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
24150 compare_type is not with Pmode size, we will create an IV with
24151 Pmode size with truncated use (i.e. converted to the correct type).
24152 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
24153 (vect_iv_limit_for_full_masking): New. Factored out of
24154 vect_set_loop_condition_masked.
24155 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
24156 (vect_iv_limit_for_full_masking): Declare.
24158 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24161 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
24162 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
24163 (get_alias_ptr_type_for_ptr_address): Likewise.
24164 (add_iv_candidate_for_use): Add scaled index candidate if useful.
24165 * tree-ssa-address.c (preferred_mem_scale_factor): New.
24166 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
24169 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
24171 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
24173 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
24175 * common/config/pru/pru-common.c: New file.
24176 * config.gcc: Add PRU target.
24177 * config/pru/alu-zext.md: New file.
24178 * config/pru/constraints.md: New file.
24179 * config/pru/predicates.md: New file.
24180 * config/pru/pru-opts.h: New file.
24181 * config/pru/pru-passes.c: New file.
24182 * config/pru/pru-pragma.c: New file.
24183 * config/pru/pru-protos.h: New file.
24184 * config/pru/pru.c: New file.
24185 * config/pru/pru.h: New file.
24186 * config/pru/pru.md: New file.
24187 * config/pru/pru.opt: New file.
24188 * config/pru/t-pru: New file.
24189 * doc/extend.texi: Document PRU pragmas.
24190 * doc/invoke.texi: Document PRU-specific options.
24191 * doc/md.texi: Document PRU asm constraints.
24193 2019-06-12 Martin Sebor <msebor@redhat.com>
24195 PR middle-end/90676
24196 * tree-pretty-print.c (dump_mem_ref): New function. Include
24197 MEM_REF type in output when different size than operand.
24198 (dump_generic_node): Move code to dump_mem_ref and call it.
24200 2019-06-12 Martin Sebor <msebor@redhat.com>
24202 PR tree-optimization/90662
24203 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
24206 2019-06-12 Tom de Vries <tdevries@suse.de>
24208 PR tree-optimization/90009
24209 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
24211 2019-06-12 Martin Liska <mliska@suse.cz>
24213 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
24215 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
24216 * mem-stats.h (mem_alloc_description::mem_alloc_description):
24217 Do not sanitize created maps.
24219 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
24221 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
24222 value_range::singleton_p.
24223 * tree-vrp.c (value_range_constant_singleton): Remove.
24224 * tree-vrp.h (value_range_constant_singleton): Remove.
24225 * vr-values.c (vr_values::singleton): Use
24226 value_range::singleton_p.
24228 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24231 * cfgexpand.c (align_local_variable): Add really_expand argument,
24232 don't SET_DECL_ALIGN if it is false.
24233 (add_stack_var): Add really_expand argument, pass it through to
24234 align_local_variable.
24235 (expand_one_stack_var_1): Pass true as really_expand to
24236 align_local_variable.
24237 (expand_one_ssa_partition): Pass true as really_expand to
24239 (expand_one_var): Pass really_expand through to add_stack_var.
24241 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24243 * config/arm/iterators.md (VABAL): New int iterator.
24244 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
24245 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
24246 UNSPEC_VABAL_U values.
24248 2019-06-12 Martin Liska <mliska@suse.cz>
24250 * value-prof.c (stream_out_histogram_value): Only first value
24253 2019-06-12 Jakub Jelinek <jakub@redhat.com>
24256 * symtab.c (symtab_node::set_section): Allow being called on aliases
24257 as long as they aren't analyzed yet.
24259 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
24261 * config/mips/mips.c (mips_final_postscan_insn): Modify call
24262 to `mips_set_text_contents_type' to indicate whether a
24263 non-debug insn follows.
24265 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
24267 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
24268 enabling -mpcrel by default.
24269 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
24270 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
24271 that the test against -mcpu=future is done first. Then test if
24272 -mprefixed-addr is on for -mpcrel.
24273 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
24275 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24278 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
24279 instead of and.u%d.
24281 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24283 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
24285 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
24287 PR c++/90449 - add -Winaccessible-base option.
24288 * doc/invoke.texi (Winaccessible-base): Document.
24290 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
24292 PR tree-optimization/62041
24293 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
24295 2019-06-11 Jason Merrill <jason@redhat.com>
24297 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
24298 * tree.c (get_tree_code_name): Likewise.
24299 * print-tree.c (print_node): Only briefly print a node with an
24302 2019-06-11 Jakub Jelinek <jakub@redhat.com>
24305 * trans-mem.c (tm_memopt_compute_available): Add assertion
24306 that blocks is not empty. Formatting fix.
24308 2019-06-11 Martin Liska <mliska@suse.cz>
24311 * hash-table.h: Extend create_gcc, add one parameter
24312 that is passed into hash_table::hash_table.
24314 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
24316 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
24318 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
24319 Emit clobber also for non-sse operations.
24320 (ix86_split_fp_absneg_operator): New function.
24321 * config/i386/i386.md (SSEMODEF): New mode iterator.
24322 (ssevecmodef): New mode attribute.
24323 (<code>tf2): Use absneg code iterator.
24324 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
24325 Add three-operand AVX alternatives.
24326 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
24327 Use absneg code iterator and X87MODEF mode iterator.
24328 (absneg fp_reg non-sse splitter): Call absneg code iterator
24329 and X87MODEF mode iterator.
24330 (absneg general_reg non-sse splitter): Use absneg code iterator
24331 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
24332 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
24333 code iterator. Add three-operand AVX alternative.
24334 (absneg sse_reg splitter): Use absneg code iterator
24335 and SSEMODEF mode iterator. Handle AVX operands.
24336 (absneg fp_reg splitter): Use absneg code iterator
24337 and MODEF mode iterator.
24338 (absneg general_reg splitter): Merge splitters using MODEF mode
24339 iterator. Use absneg code iterator. Call
24340 ix86_split_fp_absneg_operator.
24341 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
24342 Do not enable for non-sse modes before reload.
24343 (CSGNMODE): Remove.
24344 (CSGNVMODE): Ditto.
24345 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
24346 ssevecmodef mode attribute instaed of CSGNVMODE.
24347 (copysign<mode>3_const): Ditto.
24348 (copysign<mode>3_var): Ditto.
24349 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
24350 Use absneg code iterator. Simplify code using std::swap.
24351 * config/i386/predicates.md (absneg_operator): Remove.
24353 2019-06-10 Martin Sebor <msebor@redhat.com>
24355 * gimple-fold.c (get_range_strlen): Update comment that didn't
24356 make it into r267503 or related commits.
24358 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
24360 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
24361 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
24363 2019-06-10 Jakub Jelinek <jakub@redhat.com>
24365 * tree.def (OMP_SCAN): New tree code.
24366 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
24367 OMP_CLAUSE_EXCLUSIVE.
24368 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
24369 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
24370 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
24371 OMP_CLAUSE_{IN,EX}CLUSIVE.
24372 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24373 * tree-nested.c (convert_nonlocal_reference_stmt,
24374 convert_local_reference_stmt, convert_gimple_call): Handle
24376 * tree-pretty-print.c (dump_omp_clause): Handle
24377 OMP_CLAUSE_{IN,EX}CLUSIVE.
24378 (dump_generic_node): Handle OMP_SCAN.
24379 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
24380 * gimple.h (gomp_scan): New type.
24381 (is_a_helper <gomp_scan *>::test,
24382 is_a_helper <const gomp_scan *>::test): New templates.
24383 (gimple_build_omp_scan): Declare.
24384 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
24385 gimple_omp_scan_set_clauses): New inline functions.
24386 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
24387 * gimple.c (gimple_build_omp_scan): New function.
24388 (gimple_copy): Handle GIMPLE_OMP_SCAN.
24389 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
24390 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
24391 GIMPLE_OMP_TASKGROUP.
24392 (dump_gimple_omp_scan): New function.
24393 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
24394 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
24395 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
24396 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
24397 (is_gimple_stmt): Handle OMP_SCAN.
24398 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
24399 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
24400 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
24401 mentioned in nested #pragma omp scan. Handle
24402 OMP_CLAUSE_{IN,EX}CLUSIVE.
24403 (gimplify_expr): Handle OMP_SCAN.
24404 * omp-low.c (check_omp_nesting_restrictions): For parent context,
24405 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
24407 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
24410 2019-06-10 Martin Liska <mliska@suse.cz>
24412 * ipa-cp.c (ignore_edge_p): New function.
24413 (build_toporder_info): Use it.
24414 * ipa-inline.c (ignore_edge_p): New function.
24415 (inline_small_functions): Use it.
24416 * ipa-pure-const.c (ignore_edge_for_nothrow):
24417 Verify opt_for_fn for caller and callee.
24418 (ignore_edge_for_pure_const): Likewise.
24419 * ipa-reference.c (ignore_edge_p): Extend to check
24421 * ipa-utils.c (searchc): Refactor.
24422 * ipa-utils.h: Fix coding style.
24424 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24426 * config/arc/arc.c (arc_rtx_costs): Update costs.
24428 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
24430 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
24431 (arc_split_ior): Likewise.
24432 (arc_check_mov_const): Likewise.
24433 (arc_split_mov_const): Likewise.
24434 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
24435 (arc_rtx_costs): Replace check Crr with Cax constraint.
24436 (prepare_move_operands): Cleanup, remove unused code.
24437 (arc_split_ior): New function.
24438 (arc_check_ior_const): Likewise.
24439 (arc_split_mov_const): Likewise.
24440 (arc_check_mov_const): Likewise.
24441 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
24442 in define_insn_and_split pattern.
24443 (iorsi3): Likewise.
24444 (mulsi3_v2): Add new matching variant.
24445 (andsi3_i): Cleanup pattern.
24446 (rotrsi3_cnt1): Update pattern.
24447 (rotrsi3_cnt8): New pattern.
24448 (ashlsi2_cnt8): Likewise.
24449 (ashlsi2_cnt16): Likewise.
24450 * config/arc/constraints.md (C0p): Update constraint.
24452 (C0x): New pattern.
24453 (Cax): New pattern.
24455 2019-06-10 Martin Liska <mliska@suse.cz>
24457 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
24458 Update coding style.
24459 (sem_item_optimizer::dump_cong_classes):
24460 Print how many items are in a non-singular class. Improve
24463 2019-06-10 Martin Liska <mliska@suse.cz>
24465 * value-prof.c (dump_histogram_value): Change dump format.
24466 (gimple_mod_subtract_transform): Remove legacy comment.
24468 2019-06-10 Martin Liska <mliska@suse.cz>
24470 * value-prof.c (dump_histogram_value): Print histogram values
24473 2019-06-10 Martin Liska <mliska@suse.cz>
24475 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
24476 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
24477 * ipa-profile.c (ipa_profile_generate_summary):
24478 Use get_most_common_single_value.
24479 * tree-profile.c (gimple_init_gcov_profiler):
24480 Instrument with __gcov_one_value_profiler_v2
24481 and __gcov_indirect_call_profiler_v4.
24482 * value-prof.c (dump_histogram_value):
24483 Print all values for HIST_TYPE_SINGLE_VALUE.
24484 (stream_out_histogram_value): Update assert for
24486 (stream_in_histogram_value): Set number of
24487 counters for HIST_TYPE_SINGLE_VALUE.
24488 (get_most_common_single_value): New.
24489 (gimple_divmod_fixed_value_transform):
24490 Use get_most_common_single_value.
24491 (gimple_ic_transform): Likewise.
24492 (gimple_stringops_transform): Likewise.
24493 (gimple_find_values_to_profile): Set number
24494 of counters for HIST_TYPE_SINGLE_VALUE.
24495 * value-prof.h (get_most_common_single_value): New.
24497 2019-06-10 Martin Liska <mliska@suse.cz>
24499 * hash-map.h: Pass default value to hash_table ctor.
24500 * hash-table.h: Add default value to call of a ctor.
24502 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
24504 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
24505 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
24507 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
24510 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
24511 Call pa_output_function_label.
24512 (TARGET_ASM_FUNCTION_PROLOGUE): define.
24513 * config/pa/pa-protos.h (pa_output_function_label): Declare.
24514 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
24516 (pa_linux_output_function_prologue): Declare.
24517 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
24518 (pa_output_function_label): New.
24519 (pa_output_function_prologue): Revise to use pa_output_function_label.
24520 (pa_linux_output_function_prologue): New.
24521 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
24523 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
24525 * tree-vrp.h (value_range_base::intersect): New.
24526 (value_range::intersect_helper): Move from here...
24527 (value_range_base::intersect_helper): ...to here.
24528 * tree-vrp.c (value_range::intersect_helper): Rename to...
24529 (value_range_base::intersect_helper): ...this, and rewrite to
24530 return a value instead of modifying THIS in place.
24531 Also, move equivalence handling...
24532 (value_range::intersect): ...here, while calling intersect_helper.
24533 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
24535 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
24537 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
24539 2019-06-07 Jakub Jelinek <jakub@redhat.com>
24541 * Makefile.in (genprogerr): Add condmd.
24542 (genprog): Remove it here.
24544 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
24546 * doc/invoke.texi (AMD GCN Options): Add gfx906.
24548 2019-06-07 Richard Biener <rguenther@suse.de>
24551 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
24552 that appear after user labels.
24554 2019-06-07 Martin Liska <mliska@suse.cz>
24556 * cselib.c (cselib_init): Disable hash table
24558 * hash-set.h: Pass new default argument to m_table.
24559 * hash-table.c: Add global variable with hash table
24560 sanitization limit.
24561 * hash-table.h (Allocator>::hash_table): Add new argument
24563 (hashtab_chk_error): New.
24564 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
24565 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
24566 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
24568 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24570 * common.opt (flto-odr-type-merging): Ignore.
24571 * invoke.texi (-flto-odr-type-merging): Remove.
24572 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
24573 (can_be_vtable_hashed_p): Remove.
24574 (hash_odr_vtable): Remove.
24575 (odr_vtable_hasher::hash): Remove.
24576 (types_same_for_odr): Remove.
24577 (types_odr_comparable): Remove.
24578 (odr_vtable_hasher::equal): Remove.
24579 (odr_vtable_hash_type, odr_vtable_hash): Remove.
24580 (add_type_duplicate): Do not synchronize vtable and name hashtables.
24581 (get_odr_type): Do not use vtable hash.
24582 (dump_odr_type): Remove commented out code.
24583 (build_type_inheritance_graph): Do not allocate vtable hash.
24584 (rebuild_type_inheritance_graph): Do not delete vtable hash.
24585 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
24586 (odr_type_p): Likewise.
24587 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
24590 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
24592 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
24593 immediately after same_types_for_tbaa_p returns -1 and continue
24594 looking for possible exact match; if matching types are arrays
24595 watch for partial overlaps.
24596 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
24597 (indirect_refs_may_alias_p): Do type based disambiguation first;
24600 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
24602 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
24604 2019-06-07 Martin Liska <mliska@suse.cz>
24606 * doc/invoke.texi: Remove param.
24607 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
24609 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
24610 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
24611 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
24612 * profile.c (instrument_values): Remove
24613 HIST_TYPE_INDIR_CALL_TOPN.
24614 * tree-profile.c (init_ic_make_global_vars):
24615 Always build __gcov_indirect_call only.
24616 (gimple_init_gcov_profiler): Remove usage
24617 of PARAM_INDIR_CALL_TOPN_PROFILE.
24618 (gimple_gen_ic_profiler): Likewise.
24619 * value-prof.c (dump_histogram_value): Likewise.
24620 (stream_in_histogram_value): Likewise.
24621 (gimple_indirect_call_to_profile): Likewise.
24622 (gimple_find_values_to_profile): Likewise.
24623 * value-prof.h (enum hist_type): Likewise.
24625 2019-06-07 Martin Liska <mliska@suse.cz>
24627 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
24630 2019-06-07 Martin Liska <mliska@suse.cz>
24632 PR tree-optimization/78902
24633 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
24634 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
24635 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24636 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
24637 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
24638 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24639 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
24640 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
24641 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24642 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
24643 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
24644 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
24645 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
24647 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
24648 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
24649 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
24650 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24651 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
24652 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
24653 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24654 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
24655 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
24656 warn_unused_result attribute.
24657 (BUILT_IN_STRDUP): Likewise.
24658 (BUILT_IN_STRNDUP): Likewise.
24659 (BUILT_IN_ALLOCA): Likewise.
24660 (BUILT_IN_CALLOC): Likewise.
24661 (BUILT_IN_MALLOC): Likewise.
24662 (BUILT_IN_REALLOC): Likewise.
24664 2019-06-06 Jim Wilson <jimw@sifive.com>
24667 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
24668 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
24669 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
24671 2019-06-06 Martin Sebor <msebor@redhat.com>
24673 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
24674 (handle_builtin_malloc): Remove trailing spaces.
24675 (handle_builtin_memset): Same.
24676 (handle_builtin_memcmp): Same.
24677 (compute_string_length): Same.
24678 (determine_min_objsize): Same.
24679 (handle_builtin_string_cmp): Same.
24680 (handle_char_store): Same. Break up excessively long line.
24682 2019-06-06 Martin Jambor <mjambor@suse.cz>
24684 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24687 2019-06-06 Martin Jambor <mjambor@suse.cz>
24689 * tree-sra.c (struct access): New field grp_same_access_path.
24690 (dump_access): Dump it.
24691 (build_reconstructed_reference): New function.
24692 (build_ref_for_model): Use it if possible.
24693 (path_comparable_for_same_access): New function.
24694 (same_access_path_p): Likewise.
24695 (sort_and_splice_var_accesses): Set the new flag.
24696 (analyze_access_subtree): Likewise.
24697 (propagate_subaccesses_across_link): Propagate zero value of the new
24698 flag down the access tree.
24700 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
24702 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
24703 * config/gcn/gcn.opt (gpu_type): Add gfx906.
24704 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
24705 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
24708 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24710 PR tree-optimization/90332
24711 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
24712 Handle VALS containing two vectors.
24713 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
24715 (@aarch64_combinez<mode>): ... This.
24716 (*aarch64_combinez_be<mode>): Rename to...
24717 (@aarch64_combinez_be<mode>): ... This.
24718 (vec_init<mode><Vhalf>): New define_expand.
24719 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
24721 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24723 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
24724 library functions only when not optimizing for size.
24725 (ashlsi3): Likewise.
24726 (ashrhi3): Likewise.
24727 (ashrsi3): Likewise.
24728 (lshrhi3): Likewise.
24729 (lshrsi3): Likewise.
24731 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
24733 PR rtl-optimization/88751
24734 * ira.c (ira): Use the number of the actually referenced registers
24735 when calculating the threshold.
24737 2019-06-06 Jakub Jelinek <jakub@redhat.com>
24739 * configure: Regenerate.
24741 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
24743 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
24744 register if it is in memory, so the shift can be emulated with a rotate
24746 (ashrhi3): Likewise.
24747 (lshrhi3): Likewise.
24749 2019-06-06 Martin Liska <mliska@suse.cz>
24751 PR tree-optimization/87954
24752 * match.pd: Simplify mult where both arguments are 0 or 1.
24754 2019-06-06 Richard Biener <rguenther@suse.de>
24756 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
24757 put equivalences on UNDEFINED ranges.
24758 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
24759 Make sure to drop defs of stmts added during simplification
24762 2019-06-06 Richard Biener <rguenther@suse.de>
24764 * tree-ssa-structalias.c: Include tree-cfg.h.
24765 (make_heapvar): Do not make heap vars artificial.
24766 (find_func_aliases_for_builtin_call): Handle stack allocation
24768 (find_func_aliases): Delay processing of simple enough returns
24770 (set_uids_in_ptset): Adjust.
24771 (find_what_var_points_to): Likewise.
24772 (solve_constraints): Do not dump points-to sets here.
24773 (compute_points_to_sets): Post-process return statements,
24774 amending the escaped solution. Dump points-to sets afterwards.
24775 (ipa_pta_execute): Dump points-to sets.
24777 2019-06-06 Martin Liska <mliska@suse.cz>
24780 * doc/install.texi: Fix HTML headers and
24781 titles for 'Installing GCC' pages.
24783 2019-06-06 Martin Liska <mliska@suse.cz>
24785 * ipa-icf-gimple.h (dump_message_1): Remove.
24786 (dump_message): Likewise.
24787 (return_false_with_message_1): Print also file.
24788 (return_false_with_msg): Likewise.
24789 (return_with_result): Likewise.
24790 (return_with_debug): Likewise.
24791 * ipa-icf.c (sem_function::equals_private): Remove call
24794 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24796 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
24797 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
24798 memory operand for it.
24799 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
24801 2019-06-05 Martin Sebor <msebor@redhat.com>
24803 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
24804 Adjust quoting and hyphenation.
24805 * convert.c (convert_to_real_1): Same.
24806 * gcc.c (driver_wrong_lang_callback): Same.
24807 (driver::handle_unrecognized_options): Same.
24808 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
24809 * opts-common.c (cmdline_handle_error): Same.
24810 (read_cmdline_option): Same.
24811 * opts-global.c (complain_wrong_lang): Same.
24812 (print_ignored_options): Same.
24813 (handle_common_deferred_options): Same.
24814 * pretty-print.h: Same.
24815 * print-rtl.c (debug_bb_n_slim): Same.
24816 * sched-rgn.c (make_pass_sched_fusion): Same.
24817 * tree-cfg.c (verify_gimple_assign_unary): Same.
24818 (verify_gimple_label): Same.
24819 * tree-ssa-operands.c (verify_ssa_operands): Same.
24820 * varasm.c (do_assemble_alias): Same.
24821 (assemble_alias): Same.
24823 2019-06-05 Richard Henderson <rth@twiddle.net>
24825 * config/alpha/alpha.c (direct_return): Move down after
24826 struct machine_function definition; use saved frame_size;
24828 (struct machine_function): Add sa_mask, sa_size, frame_size.
24829 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
24830 (alpha_compute_frame_layout): ... new function.
24831 (TARGET_COMPUTE_FRAME_LAYOUT): New.
24832 (alpha_initial_elimination_offset): Use saved sa_size.
24833 (alpha_vms_initial_elimination_offset): Likewise.
24834 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
24835 (alpha_expand_prologue): Use saved frame data. Merge integer
24836 and fp register save loops.
24837 (alpha_expand_epilogue): Likewise.
24838 (alpha_start_function): Use saved frame data.
24839 * config/alpha/alpha-protos.h (direct_return): Update.
24840 (alpha_sa_size): Remove.
24842 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
24844 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
24845 multiplication by a power-of-two value.
24846 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
24847 and turn the modulo operation into a masking operation.
24849 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24852 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
24853 with VOIDmode inner operands.
24855 2019-06-05 Richard Biener <rguenther@suse.de>
24857 PR middle-end/90726
24858 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
24859 turn an expression graph into a tree.
24861 2019-06-05 Jakub Jelinek <jakub@redhat.com>
24863 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
24865 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
24866 treat it like explicit monotonic schedule modifier.
24867 (expand_omp_for): Initialize has_lastprivate_conditional.
24868 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
24871 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
24872 references, lookup in in hash map MEM_REF operand instead of the
24874 (lower_omp_1): When looking for lastprivate conditional assignments,
24875 handle MEM_REFs with REFERENCE_TYPE operands.
24877 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
24878 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
24879 and references a VLA. Handle references to non-VLAs if is_simd
24880 all privatization clauses like reductions.
24881 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
24882 If omp_is_reference, use always omp simd arrays and set
24883 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24884 fails, emit reference initialization.
24886 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
24889 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
24890 _mm_mask_fpclass_sd_mask): New intrinsics.
24891 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
24892 * config/i386/i386-builtin.def
24893 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
24895 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
24896 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
24897 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
24898 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
24899 case QI_FTYPE_V2SF_INT): Ditto.
24900 * config/i386/sse.md
24901 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
24902 Extended to insnstructions with mask operands.
24904 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24906 * config/rs6000/constraints.md (define_register_constraint "wp"):
24908 (define_register_constraint "wq"): Delete.
24909 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24910 (rs6000_init_hard_regno_mode_ok): Adjust.
24911 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24912 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
24913 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
24914 (define_mode_attr VSa): Delete.
24915 (define_mode_attr VSisa): New.
24916 (rest of file): Adjust.
24917 * doc/md.texi (Machine Constraints): Adjust.
24919 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24921 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
24922 (define_attr "enabled"): Handle those new isa values.
24924 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24926 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
24927 (define_mode_attr VSr5): Delete.
24928 (define_mode_attr VStype_sqrt): Delete.
24929 (define_mode_iterator VSX_SPDP): Delete.
24930 (define_mode_attr VS_spdp_res): Delete.
24931 (define_mode_attr VS_spdp_insn): Delete.
24932 (define_mode_attr VS_spdp_type): Delete.
24933 (*vsx_sqrt<mode>2): Adjust.
24934 (vsx_<VS_spdp_insn>): Delete, split to...
24935 (vsx_xscvdpsp): ... this. New. And...
24936 (vsx_xvcvspdp): ... this. New. And...
24937 (vsx_xvcvdpsp): ... this. New.
24939 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24941 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
24943 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
24944 (rest of file): Adjust.
24946 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24948 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
24949 (vsx_extract_<mode>_var): Ditto.
24951 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24953 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
24956 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24958 * config/rs6000/constraints.md (define_register_constraint "ww"):
24960 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24961 (rs6000_init_hard_regno_mode_ok): Adjust.
24962 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24963 RS6000_CONSTRAINT_ww.
24964 * config/rs6000/rs6000.md: Adjust.
24965 * config/rs6000/vsx.md: Adjust.
24966 * doc/md.texi (Machine Constraints): Adjust.
24968 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24970 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
24971 (define_mode_attr sd): New.
24972 (define_mode_attr s): New.
24973 (define_mode_attr Ftrad): Delete.
24974 (define_mode_attr Fvsx): Delete.
24975 (define_mode_attr Fs): Delete.
24976 (rest of file): Use the new mode attributes.
24977 * config.rs6000/vsx.md: Use the new mode attributes.
24979 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24981 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
24984 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
24986 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
24987 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
24988 used with VSX_B, VSX_D, or VSX_F, with just "wa".
24990 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
24993 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
24994 C++ with strict ANSI requirements.
24996 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
24998 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
24999 computations when step is 1.
25001 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25003 * config/rs6000/constraints.md (define_register_constraint "wf"):
25005 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25006 (rs6000_init_hard_regno_mode_ok): Adjust.
25007 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25008 RS6000_CONSTRAINT_wf.
25009 * config/rs6000/rs6000.md: Adjust.
25010 * config/rs6000/vsx.md: Adjust.
25011 * doc/md.texi (Machine Constraints): Adjust.
25013 2019-06-04 Andrew Pinski <apinski@marvell.com>
25015 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
25018 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25020 * config/rs6000/constraints.md (define_register_constraint "wd"):
25022 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25023 (rs6000_init_hard_regno_mode_ok): Adjust.
25024 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25025 RS6000_CONSTRAINT_wd.
25026 * config/rs6000/rs6000.md: Adjust.
25027 * config/rs6000/vsx.md: Adjust.
25028 * doc/md.texi (Machine Constraints): Adjust.
25030 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25032 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
25033 (rest of file): Adjust.
25035 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25037 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
25038 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
25039 (vsx_splat_<mode>_reg): Adjust.
25041 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25043 * config/rs6000/constraints.md (define_register_constraint "ws"):
25045 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25046 (rs6000_init_hard_regno_mode_ok): Adjust.
25047 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25048 RS6000_CONSTRAINT_ws.
25049 * config/rs6000/rs6000.md: Adjust.
25050 * config/rs6000/vsx.md: Adjust.
25051 * doc/md.texi (Machine Constraints): Adjust.
25053 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25055 * config/rs6000/constraints.md (define_register_constraint "wv"):
25057 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25058 (rs6000_init_hard_regno_mode_ok): Adjust.
25059 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25060 RS6000_CONSTRAINT_wv.
25061 * config/rs6000/rs6000.md: Adjust.
25062 * config/rs6000/vsx.md: Adjust.
25063 * doc/md.texi (Machine Constraints): Adjust.
25065 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
25067 * config/rs6000/constraints.md (define_register_constraint "wi"):
25069 (define_register_constraint "wt"): Delete.
25070 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25071 (rs6000_init_hard_regno_mode_ok): Adjust.
25072 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25073 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
25074 * config/rs6000/rs6000.md: Adjust.
25075 * config/rs6000/vsx.md: Adjust.
25076 * doc/md.texi (Machine Constraints): Adjust.
25078 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
25080 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
25082 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
25083 default_elf_asm_output_external.
25085 2019-06-04 Martin Liska <mliska@suse.cz>
25087 * ipa-icf.c (INCLUDE_LIST): Remove.
25088 (sem_item_optimizer::execute): Remove call to init_wpa.
25089 * ipa-icf.h (init_wpa): Remove.
25091 2019-06-04 Jakub Jelinek <jakub@redhat.com>
25093 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
25094 conditional on combined for simd.
25095 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
25097 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
25098 constructs, don't remove lastprivate_conditional_map, but instead set
25099 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
25100 to parent construct temporaries.
25101 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
25102 like !ctx->lastprivate_conditional_map.
25103 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
25104 use up->outer context instead of up.
25105 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
25106 gimple_omp_for_combined_p.
25107 (expand_omp_for_static_nochunk): Likewise.
25108 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
25109 probably moved over into expand_omp_for_generic rather than being copied
25112 2019-06-04 Martin Liska <mliska@suse.cz>
25114 * value-prof.c (dump_histogram_value): Fix typo.
25115 (gimple_mod_subtract_transform): Likewise.
25117 2019-06-04 Richard Biener <rguenther@suse.de>
25119 PR middle-end/90726
25120 * tree-chrec.c (chrec_contains_symbols): Add to visited.
25121 (tree_contains_chrecs): Likewise.
25122 (chrec_contains_symbols_defined_in_loop): Move here and avoid
25123 exponential behaivor from ...
25124 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
25126 (expression_expensive_p): Avoid exponential behavior and compute
25127 expanded size, rejecting any expansion.
25128 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
25129 (idx_contains_abnormal_ssa_name_p): Likewise.
25130 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
25131 (contains_abnormal_ssa_name_p): Simplify and use
25132 walk_tree_without_duplicates.
25134 2019-06-04 Richard Biener <rguenther@suse.de>
25136 PR tree-optimization/90738
25138 2019-06-03 Richard Biener <rguenther@suse.de>
25140 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25141 full reference tree and record in ref->ref.
25142 (vn_reference_lookup_3): Pass in original ref to
25143 ao_ref_init_from_vn_reference.
25144 (vn_reference_lookup): Likewise.
25145 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25146 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25147 Handle non-decl bases in the original reference.
25149 2019-06-04 Martin Liska <mliska@suse.cz>
25151 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
25152 number of references.
25153 (sem_item_optimizer::do_congruence_step):
25154 (sem_item_optimizer::worklist_push): Dump how references
25156 (sem_item_optimizer::worklist_pop): Use heap.
25157 (sem_item_optimizer::process_cong_reduction): Likewise.
25158 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
25160 2019-06-04 Martin Liska <mliska@suse.cz>
25162 * ipa-icf.h (struct sem_usage_pair_hash): New.
25163 (sem_usage_pair_hash::hash): Likewise.
25164 (sem_usage_pair_hash::equal): Likewise.
25165 (struct sem_usage_hash): Likewise.
25166 * ipa-icf.c (sem_item::sem_item): Initialize
25167 referenced_by_count.
25168 (sem_item::add_reference): Register a reference
25169 in ref_map and not in target->usages.
25170 (sem_item::setup): Remove initialization of
25172 (sem_item::~sem_item): Remove usage of dead vectors.
25173 (sem_item::dump): Remove dump of references.
25174 (sem_item_optimizer::sem_item_optimizer): Initialize
25176 (sem_item_optimizer::read_section): Remove useless
25178 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
25179 (sem_item_optimizer::build_graph): Pass m_references
25180 to ::add_reference.
25181 (sem_item_optimizer::verify_classes): Remove usage of dead
25183 (sem_item_optimizer::traverse_congruence_split): Return true
25184 when a class is split.
25185 (sem_item_optimizer::do_congruence_step_for_index): Use
25186 hash_map for look up of (sem_item *, index). That brings
25187 significant speed up.
25188 (sem_item_optimizer::do_congruence_step): Return true
25189 when a split is done.
25190 (congruence_class::is_class_used): Use referenced_by_count.
25192 2019-06-04 Alan Modra <amodra@gmail.com>
25195 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
25198 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25200 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
25201 * config/rs6000/rs6000.c (direct_move_p): Adjust.
25202 (rs6000_secondary_reload_simple_move): Adjust.
25203 (rs6000_opt_masks): Neuter the "mfpgpr" option.
25204 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
25205 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
25208 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
25209 (floatunssi<mode>2_lfiwzx): Adjust.
25210 (fix_trunc<mode>si2_stfiwx): Adjust.
25211 (fixuns_trunc<mode>si2_stfiwx): Adjust.
25212 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
25213 (mfpgpr): Mark as deprecated.
25214 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
25215 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
25216 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
25218 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
25220 * config/rs6000/constraints.md (define_register_constraint "wg"):
25222 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
25223 RS6000_CONSTRAINT_wg.
25224 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
25225 (rs6000_init_hard_regno_mode_ok): Adjust.
25226 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
25227 Delete "wg" alternatives.
25228 * doc/md.texi (Machine Constraints): Adjust.
25230 2019-06-03 Alan Modra <amodra@gmail.com>
25232 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
25233 (get_uncond_jump_length): Assert length less than INT_MAX and
25236 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25238 PR middle-end/64242
25239 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
25241 (expand_builtin_nonlocal_goto): Likewise.
25243 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
25245 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
25246 (aarch64_asm_output_external): Declare.
25247 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
25248 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
25249 (aarch64_asm_output_alias): New.
25250 (aarch64_asm_output_external): New.
25251 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
25252 (ASM_OUTPUT_EXTERNAL): Define.
25254 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
25255 * tree-vrp.h (value_range_base::nonzero_p): New.
25256 (value_range_base::set_nonnull): Rename to...
25257 (value_range_base::set_nonzero): ...this.
25258 (value_range_base::set_null): Rename to...
25259 (value_range_base::set_zero): ...this.
25260 (value_range::set_nonnull): Remove.
25261 (value_range::set_null): Remove.
25262 * tree-vrp.c (range_is_null): Remove.
25263 (range_is_nonnull): Remove.
25264 (extract_range_from_binary_expr): Use value_range_base::*zero_p
25265 instead of range_is_*null.
25266 (extract_range_from_unary_expr): Same.
25267 (value_range_base::set_nonnull): Rename to...
25268 (value_range_base::set_nonzero): ...this.
25269 (value_range::set_nonnull): Remove.
25270 (value_range_base::set_null): Rename to...
25271 (value_range_base::set_zero): ...this.
25272 (value_range::set_null): Remove.
25273 (extract_range_from_binary_expr): Rename set_*null uses to
25275 (extract_range_from_unary_expr): Same.
25276 (union_helper): Same.
25277 * vr-values.c (get_value_range): Use set_*zero instead of
25279 (vr_values::extract_range_from_binary_expr): Same.
25280 (vr_values::extract_range_basic): Same.
25282 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
25285 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
25287 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25289 * config/aarch64/iterators.md (MAX_OPP): New code attr.
25290 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
25292 (aarch64_<su>abd<mode>_3): ... This.
25293 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
25295 2019-06-03 Richard Biener <rguenther@suse.de>
25297 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
25298 full reference tree and record in ref->ref.
25299 (vn_reference_lookup_3): Pass in original ref to
25300 ao_ref_init_from_vn_reference.
25301 (vn_reference_lookup): Likewise.
25302 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
25303 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
25304 Handle non-decl bases in the original reference.
25306 2019-06-03 Martin Liska <mliska@suse.cz>
25308 * doc/generic.texi: Remove Java Trees.
25310 2019-06-03 Martin Liska <mliska@suse.cz>
25312 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
25313 returns 0 when operands are equal.
25315 2019-06-03 Richard Biener <rguenther@suse.de>
25317 PR tree-optimization/90716
25318 * tree-loop-distribution.c (destroy_loop): Process blocks in
25321 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25324 * vector-builder.h (vector_builder::count_dups): New method.
25325 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
25327 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
25328 (vec_init<mode><Vel>): New pattern.
25329 * config/aarch64/aarch64.c (emit_insr): New function.
25330 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
25331 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
25332 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
25333 (aarch64_sve_expand_vector_init): Define two overloaded functions.
25335 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25337 PR tree-optimization/90681
25338 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
25339 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
25340 special case for SLP, but fail on non-groupped loads.
25342 2019-06-03 Martin Liska <mliska@suse.cz>
25344 * cfg.c (debug): Use TDF_DETAILS for debug and
25345 print edge info only once.
25347 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
25350 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
25352 2019-06-01 Martin Sebor <msebor@redhat.com>
25354 PR middle-end/90694
25355 * tree-pretty-print.c (dump_generic_node): Add parentheses.
25357 2019-05-31 Jan Hubicka <jh@suse.cz>
25359 * alias.c: Include ipa-utils.h.
25360 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
25361 * ipa-devirt.c (prevailing_odr_type): New.
25362 * ipa-utils.h (previaling_odr_type): Declare.
25364 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
25365 Hongtao Liu <hongtao.liu@intel.com>
25368 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
25369 NOTE_INSN_DELETED_LABEL check.
25371 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
25372 Robert Suchanek <robert.suchanek@mips.com>
25374 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
25375 and 3rd operands of the fmadd/fmsub/maddv builtin.
25377 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25379 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
25380 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25381 on OMP_SIMD if not nested inside of worksharing loop that also has
25382 lastprivate conditional clause for the same decl.
25383 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
25384 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
25386 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
25388 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
25390 (lower_lastprivate_clauses): Likewise.
25391 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
25392 calling lower_rec_input_clauses.
25393 (lower_omp_for): Likewise.
25394 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
25395 clause on simd construct.
25396 * omp-expand.c (expand_omp_simd): Initialize cond_var if
25397 OMP_CLAUSE__CONDTEMP_ clause is present.
25399 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
25402 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
25405 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
25406 TEX_D32, TEX_D64 or TEX_D128.
25408 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25410 * match.pd (~(vec?cst1:cst2)): New transformation.
25412 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
25414 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
25415 ((size_t)(A /[ex] B) CMP C): New transformation.
25417 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
25419 * doc/md.texi: Document define_insn_and_rewrite.
25420 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
25421 * gensupport.c (queue_elem): Update comment.
25422 (replace_operands_with_dups): New function.
25423 (gen_rewrite_sequence): Likewise.
25424 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
25425 * read-rtl.c (apply_subst_iterator): Likewise.
25426 (add_condition_to_rtx, named_rtx_p): Likewise.
25427 (rtx_reader::read_rtx_operand): Likewise.
25428 * config/aarch64/aarch64-sve.md
25429 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
25430 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
25431 define_insn_and_rewrite.
25432 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
25433 Remove separate define_split.
25435 2019-05-31 Jan Hubicka <jh@suse.cz>
25437 * tree-ssa-alias.c (type_has_components_p): New function.
25438 (aliasing_component_refs_p): Use it.
25440 2019-05-31 Martin Liska <mliska@suse.cz>
25442 * gdbhooks.py: Add const_tree to TreePrinter.
25444 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
25447 * common.opt (feliminate-unused-debug-symbols): Enable by default.
25448 * doc/invoke.texi (Debugging Options): Document new default of
25449 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
25451 2019-05-31 Jakub Jelinek <jakub@redhat.com>
25453 PR tree-optimization/90671
25454 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
25455 template_block used to be empty on the first call, don't use
25456 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
25457 seq with bb_seq and set it with set_bb_seq.
25459 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
25461 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
25463 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25464 Michael Meissner <meissner@linux.ibm.com>
25466 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
25467 (prefixed_mem_operand): Likewise.
25468 (non_prefixed_mem_operand): Likewise.
25469 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
25471 * config/rs6000/rs6000.c (print_operand_address): Handle
25472 PC-relative addresses.
25473 (mode_supports_prefixed_address_p): New function.
25474 (rs6000_prefixed_address): New function.
25475 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
25476 (SYMBOL_REF_PCREL_P): Likewise.
25478 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25480 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
25481 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
25482 (gimplify_omp_for): If worksharing loop with lastprivate conditional
25483 is nested inside of parallel region, add _condtemp_ clause to both.
25484 * tree-nested.c (convert_nonlocal_omp_clauses,
25485 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
25487 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
25489 * omp-general.c (omp_extract_for_data): Compute it.
25490 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
25491 (lower_rec_input_clauses): Likewise.
25492 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
25493 clause is already present, just add one further one after it.
25494 (lower_lastprivate_clauses): Handle cond_ptr with array type.
25495 (lower_send_shared_vars): Clear _condtemp_ vars.
25496 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
25497 or section or taskgroup.
25498 * omp-expand.c (determine_parallel_type): Disallow combining only if
25499 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
25500 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
25501 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25502 expand_omp_for_static_chunk, expand_omp_for): Use
25503 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
25504 determine if a special set of API routines are needed and if condtemp
25505 needs to be initialized, while always initialize cond_var if
25506 fd->lastprivate_conditional is non-zero.
25508 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25509 Michael Meissner <meissner@linux.ibm.com>
25511 * config/rs6000/constraints.md (eI): New constraint.
25512 * config/rs6000/predicates.md (cint34_operand): New predicate.
25513 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
25514 (SIGNED_34BIT_OFFSET_P): Likewise.
25515 * doc/md.texi (eI): Document constraint.
25517 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
25519 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
25521 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
25522 Michael Meissner <meissner@linux.ibm.com>
25524 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
25525 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
25526 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
25527 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
25528 (OTHER_FUTURE_MASKS): Likewise.
25529 (POWERPC_MASKS): Likewise.
25530 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
25531 specified without -mprefixed-addr or -mcpu=future. Error if
25532 -mprefixed-addr is specified without -mcpu=future.
25533 (rs6000_opt_masks): Add entry for prefixed-addr.
25534 * rs6000.opt (mprefixed-addr): New option.
25536 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
25538 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
25539 cfun->is_thunk check.
25541 2019-05-30 Jakub Jelinek <jakub@redhat.com>
25543 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
25546 2019-05-30 Martin Liska <mliska@suse.cz>
25548 * gdbinit.in: Fix 'ptc' command. Add trt
25549 that prints TREE_TYPE($).
25551 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
25552 Alan Modra <amodra@gmail.com>
25554 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
25556 (rs6000_indirect_call_template_1): ...and here.
25557 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
25558 plt16_ha, plt16_lo, mtctr indirect calls. Use
25559 rs6000_pltseq_enum.
25560 (rs6000_decl_ok_for_sibcall): New function.
25561 (rs6000_function_ok_for_sibcall): Refactor.
25562 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
25563 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
25564 when pcrel. Reorganize.
25565 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
25566 * rs6000.h (rs6000_pltseq_enum): New enum.
25567 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
25568 (*pltseq_tocsave): Use rs6000_pltseq_enum.
25569 (*pltseq_plt16_ha): Likewise.
25570 (*pltseq_plt16_lo): Likewise.
25571 (*pltseq_mtctr): Likewise.
25572 (*pltseq_plt_pcrel): New insn.
25573 (*call_local_aix): Handle @notoc calls.
25574 (*call_value_local_aix): Likewise.
25575 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
25576 (*call_value_nonlocal_aix): Likewise.
25577 (*call_indirect_pcrel): New insn.
25578 (*call_value_indirect_pcrel): Likewise.
25580 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
25582 * config/i386/sse.md (*save_multiple<mode>): Rename from
25583 save_multiple<mode>.
25584 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
25585 (*restore_multiple_and_return<mode>): Rename from
25586 restore_multiple_and_return<mode>.
25587 (*restore_multiple_leave_return<mode>): Rename from
25588 restore_multiple_leave_return<mode>.
25590 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
25592 * config.gcc (rx-*-linux*): New target.
25593 * config/rx/elf.opt: New file.
25594 * config/rx/linux.h: Likewise.
25595 * config/rx/t-linux: Likewise.
25596 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
25598 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
25599 (ASM_APP_OFF): Likewise.
25600 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
25603 2019-05-29 Jan Hubicka <jh@suse.cz>
25605 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
25606 variants are pointer equivalent.
25608 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25610 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
25611 * config/aarch64/aarch64-sve2.md: New file.
25612 (<u>avg<mode>3_floor): New pattern.
25613 (<u>avg<mode>3_ceil): Likewise.
25614 (*<sur>h<addsub><mode>): Likewise.
25615 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
25616 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
25618 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25621 * optc-save-gen.awk: In cl_optimization_print, use correct condition
25622 for var_opt_string printing. In cl_optimization_print_diff, print
25623 (null) instead of invoking undefined behavior if one of the
25624 var_opt_string pointers is NULL and use && instead of first || in the
25625 guarding condition. For var_target_other options, handle const char *
25626 target variables similarly to const char * optimize node variables.
25628 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
25630 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
25631 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
25632 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
25633 Add autib1716 and pacib1716 initialisation.
25634 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
25635 for autib1716 and pacib1716.
25636 * config/aarch64/aarch64-protos.h (aarch64_key_type,
25637 aarch64_post_cfi_startproc): Define.
25638 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
25639 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
25640 aarch64_handle_pac_ret_protection): Set default sign key to A.
25641 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
25642 aarch64_expand_prologue): Add check for b-key.
25643 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
25644 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
25645 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
25646 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
25647 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
25648 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
25649 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25650 * config/aarch64/aarch64.md (do_return): Add check for b-key.
25651 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
25652 pauth_hint_num_a with pauth_hint_num.
25653 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
25654 pauth_hint_num_a with pauth_hint_num.
25655 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
25656 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
25657 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25658 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
25659 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
25660 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
25661 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
25662 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
25663 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
25664 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
25665 UNSPEC_AUTIA1716 respectively.
25666 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
25667 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
25668 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
25669 * doc/invoke.texi (-mbranch-protection): Add b-key type.
25670 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
25671 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
25673 2019-05-29 Jakub Jelinek <jakub@redhat.com>
25675 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
25676 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
25677 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
25678 explicit clause on combined parallel into implicit shared clause.
25679 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
25680 and firstprivate if the decl has one too from combined parallel to
25681 the worksharing construct.
25683 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
25684 Michael Meissner <meissner@linux.ibm.com>
25686 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
25688 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
25690 * rtl.h (LABEL_REF_P): New #define.
25692 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
25694 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
25696 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25698 * internal-fn.c: Marked mask_load_direct as vectorizable.
25699 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
25700 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
25701 combined even if masks different with allow_slp_p param.
25702 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
25703 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
25704 dissolve SLP-only vectorizable groups when SLP has been discarded.
25705 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
25706 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
25708 (vect_build_slp_tree_1): Fixed comment typo.
25709 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
25710 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
25711 loads for SLP only.
25712 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
25714 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
25716 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25718 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
25719 Remove obsolete use_thunk reference.
25720 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25721 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25722 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25723 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25724 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25725 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25726 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25727 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25728 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25730 2019-05-28 Nathan Sidwell <nathan@acm.org>
25732 * tree.h (IDENTIFIER_ANON_P): New.
25733 (anon_aggrname_format, anon_aggname_p): Don't declare.
25734 (make_anon_name): Declare.
25735 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
25736 (hash_tree): Likewise.
25737 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
25738 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
25739 (anon_cnt, make_anon_name): New.
25741 2019-05-28 Martin Liska <mliska@suse.cz>
25744 * opts-global.c (decode_options): Print help for all
25745 help_option_arguments.
25746 * opts.c (print_help): Add new argument.
25747 (common_handle_option): Remember all values into
25748 help_option_arguments.
25749 * opts.h (print_help): Add new argument.
25751 2019-05-28 Martin Liska <mliska@suse.cz>
25754 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
25755 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
25756 (func_checker::compare_bb): Call compare_loops.
25758 2019-05-27 Jakub Jelinek <jakub@redhat.com>
25760 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
25761 on sections construct.
25762 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
25764 (lower_omp_sections): Handle lastprivate conditional.
25765 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
25766 lastprivate_conditional_map.
25767 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
25769 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
25770 critical, taskgroup and section regions when looking for a region
25771 with non-NULL lastprivate_conditional_map.
25773 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25775 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
25776 (*ix86_gen_sub3): Ditto.
25777 (*ix86_gen_sub3_carry): Ditto.
25778 (*ix86_gen_one_cmpl2): Ditto.
25779 (*ix86_gen_andsp): Ditto.
25780 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
25781 (gen_and2_insn): New static function.
25782 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
25783 Use gen_add3_insn instead of ix86_gen_add3.
25784 (ix86_expand_split_stack_prologue): Use gen_add2_insn
25785 instead of ix86_gen_add3.
25786 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
25787 Use gen_sub3_insn instead of ix86_gen_sub3.
25788 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
25789 instead of ix86_gen_add3.
25790 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
25791 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
25792 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
25793 * config/i386/i386-options.c (ix86_option_override_internal):
25794 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
25795 ix86_gen_one_cmpl2 and ix86_gen_andsp.
25797 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
25799 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
25800 and DW_OP_GNU_const_index opcodes.
25802 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
25804 * config/i386/i386.h (STACK_SIZE_MODE): Define.
25806 2019-05-27 Richard Biener <rguenther@suse.de>
25808 PR tree-optimization/90637
25809 * tree-ssa-sink.c (statement_sink_location): Honor the
25810 computed sink location for single-uses.
25812 2019-05-27 Richard Biener <rguenther@suse.de>
25814 PR middle-end/90610
25815 * match.pd (vec_perm): Avoid clobbering op0 when not generating
25818 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25820 * config/i386/i386.md (@sub<mode>3_carry): Rename
25821 from sub<mode>3_carry.
25822 (@leave_<mode>): New expander.
25823 (*leave): Rename from leave.
25824 (*leave_rex64): Rename from leave_rex64.
25825 (@monitorx_<mode>): Rename from monitorx_<mode>.
25826 (@clzero_<mode>): Rename from clzero_<mode>.
25827 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
25828 from sse3_monitor_<mode>.
25829 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
25830 (*ix86_gen_leave): Ditto.
25831 (*ix86_gen_monitor): Ditto.
25832 (*ix86_gen_monitorx): Ditto.
25833 (*ix86_gen_clzero): Ditto.
25834 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
25835 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
25836 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
25837 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
25838 Use gen_sse3_monitor instead of ix86_gen_monitor.
25839 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
25840 instead of ix86_gen_monitorx.
25841 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
25842 instead of ix86_gen_clzero.
25843 * config/i386/i386-options.c (ix86_option_override_internal):
25844 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
25845 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
25847 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25849 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
25850 Rename from tls_global_dynamic_64_<mode>.
25851 (@tls_local_dynamic_base_64_<mode>): Rename from
25852 tls_local_dynamic_base_64_<mode>.
25853 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
25854 Remove indirect function.
25855 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
25856 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
25857 instead of ix86_gen_tls_global_dynamic_64.
25858 Use gen_tls_local_dynamic_base_64 instead of
25859 ix86_gen_tls_local_dynamic_base_64.
25860 * config/i386/i386-options.c (ix86_option_override_internal):
25861 Do not initialize ix86_gen_tls_global_dynamic_64 and
25862 ix86_gen_tls_local_dynamic_base_64.
25864 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
25866 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
25867 Rename from pro_epilogue_adjust_stack_<mode>_add.
25868 (@pro_epilogue_adjust_stack_sub_<mode>)
25869 Rename from pro_epilogue_adjust_stack_<mode>_sub.
25870 (@allocate_stack_worker_probe_<mode>):
25871 Rename from allocate_stack_worker_probe_<mode>.
25872 (allocate_stack): Use gen_allocate_stack_worker_probe.
25873 (probe_stack): Use gen_probe_stack_1.
25874 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
25875 (@adjust_stack_and_probe_<mode>): Rename from
25876 adjust_stack_and_probe<mode>.
25877 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
25878 (stack_protect_set): Use gen_stack_protect_set_1.
25879 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
25880 (stack_protect_test): Use gen_stack_protect_test_1.
25881 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
25882 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
25883 Remove indirect function.
25884 (*ix86_gen_adjust_stack_and_probe): Ditto.
25885 (*ix86_gen_probe_stack_range): Ditto.
25886 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
25887 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
25888 (ix86_adjust_stack_and_probe_stack_clash): Use
25889 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
25890 (ix86_adjust_stack_and_probe): Ditto.
25891 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
25892 of ix86_gen_probe_stack_range.
25893 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
25894 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
25895 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
25896 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
25897 CODE_FOR_stack_protect_test_{si,di}.
25898 * config/i386/i386-options.c (ix86_option_override_internal):
25899 Do not initialize ix86_gen_allocate_stack_worker,
25900 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
25902 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
25904 * doc/invoke.texi (Link Options): Many editorial changes around
25907 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25909 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
25910 pre-Solaris 11 referene and most Studio compiler details.
25912 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
25915 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
25916 DImode to SImode in floating-point registers on 64-bit target.
25917 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
25918 register_operand in xmpyu patterns.
25920 2019-05-24 Jakub Jelinek <jakub@redhat.com>
25922 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
25923 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
25924 OMP_CLAUSE__REDUCTEMP_.
25925 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
25926 OMP_CLAUSE__CONDTEMP_.
25927 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
25928 * tree-pretty-print.c (dump_omp_clause): Likewise.
25929 * tree-nested.c (convert_nonlocal_omp_clauses,
25930 convert_local_omp_clauses): Likewise.
25931 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
25932 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
25933 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
25935 (gimplify_omp_for): Warn and disable conditional modifier from
25936 lastprivate on loop iterators.
25937 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
25939 * omp-general.c (omp_extract_for_data): Initialize it.
25940 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
25942 (delete_omp_context): Delete it.
25943 (lower_lastprivate_conditional_clauses): New function.
25944 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
25945 handle lastprivate conditional clauses.
25946 (lower_reduction_clauses): Add CLIST argument, emit it into
25947 the critical section if any.
25948 (lower_omp_sections): Adjust lower_lastprivate_clauses and
25949 lower_reduction_clauses callers.
25950 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
25951 to lower_lastprivate_clauses.
25952 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
25953 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
25954 clist into a critical section if not emitted there already by
25955 lower_reduction_clauses.
25956 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
25958 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
25959 conditional variables.
25960 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
25962 (expand_omp_for_generic, expand_omp_for_static_nochunk,
25963 expand_omp_for_static_chunk): Handle lastprivate conditional.
25964 (expand_omp_for): Handle fd.lastprivate_conditional like
25967 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25969 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
25970 kernel does not exit cleanly.
25971 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
25973 2019-05-24 Jason Merrill <jason@redhat.com>
25976 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
25978 2019-05-24 Richard Biener <rguenther@suse.de>
25981 * tree-loop-distribution.c (struct partition): Add location
25983 (partition_alloc): Initialize all fields.
25984 (generate_memset_builtin): Use the location recorded in the
25985 partition for the generated call.
25986 (generate_memcpy_builtin): Likewise.
25987 (classify_partition): Record the location of a single store
25988 as location for the partition.
25990 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
25992 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
25995 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
25998 * common/config/aarch64/aarch64-common.c
25999 (aarch64_rewrite_selected_cpu): Change local temporary variable
26000 type from unsigned long to uint64_t.
26001 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
26002 aarch64_get_extension_string_for_isa_flags): Change declaration to
26003 match new definition by replacing unsigned long with uint64_t.
26005 2019-05-24 Jakub Jelinek <jakub@redhat.com>
26008 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
26009 gen_attr_type just once instead of 4-7 times. Formatting fixes.
26010 Handle stack_protect_test_<mode> codegen similarly to corresponding
26013 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
26015 * config/i386/darwin.h: Reject -mfentry*.
26016 * doc/sourcebuild.texi: Document mfentry target support.
26018 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26020 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
26021 Rename to rs6000_global_entry_point_prologue_needed_p. Return
26022 false for PC-relative functions.
26023 (rs6000_output_function_prologue): Change called function name to
26024 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
26025 name,1" for PC-relative functions.
26026 (rs6000_elf_declare_function_name): Change called function name to
26027 rs6000_global_entry_point_prologue_needed_p.
26029 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
26032 * config/i386/i386.c (gen_rtx_cost):
26033 Use ix86_tune_cost instead of ix86_cost.
26035 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26036 Michael Meissner <meissner@linux.ibm.com>
26037 Segher Boessenkool <segher@kernel.crashing.org>
26039 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
26041 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
26042 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
26043 (rs6000_fndecl_pcrel_p): Likewise.
26044 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
26045 error if -mpcrel is requested without -mcpu=future.
26046 (rs6000_opt_masks): Add entry for pcrel.
26047 (rs6000_fndecl_pcrel_p): New function.
26048 (rs6000_pcrel_p): Likewise.
26049 * config/rs6000/rs6000.opt (mpcrel): New option.
26050 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
26052 2019-05-23 Jan Hubicka <jh@suse.cz>
26053 Martin Liska <mliska@suse.cz>
26055 PR tree-optimization/90576
26056 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
26058 (aliasing_component_refs_p): Fix three way size compare conditional;
26059 give up earlier in case we can not decide on equivalence.
26061 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
26062 Michael Meissner <meissner@linux.ibm.com>
26063 Segher Boessenkool <segher@kernel.crashing.org>
26065 * config.gcc: Add future cpu.
26066 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
26067 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
26069 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
26070 (RS6000_CPU): New instantiation for future cpu.
26071 * config/rs6000/rs6000-opts.h (enum processor_type): Add
26073 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
26074 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
26075 * config/rs6000/rs6000-tables.opt: Regenerate.
26076 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
26077 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
26078 (rs6000_machine_from_flags): Handle future cpu.
26079 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
26080 PROCESSOR_POWER9 for now.
26081 (rs6000_adjust_cost): Likewise.
26082 (rs6000_issue_rate): Likewise.
26083 (rs6000_register_move_cost): Likewise.
26084 (rs6000_opt_masks): Add entry for future.
26085 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
26086 (MASK_FUTURE): New #define.
26087 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
26088 * config/rs6000/rs6000.opt (mfuture): New target option.
26089 * doc/invoke.texi (mcpu): Add future cpu.
26091 2019-05-23 Martin Liska <mliska@suse.cz>
26094 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
26095 operation points to a temporary (pointed via tree_to_wide_ref)
26096 that is out of scope after the &.
26098 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
26101 * doc/extend.texi (Function Names): Add missing word.
26103 2019-05-23 Richard Biener <rguenther@suse.de>
26105 PR tree-optimization/88440
26106 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
26108 * tree-loop-distribution.c (generate_memset_builtin): Fold the
26110 (generate_memcpy_builtin): Likewise.
26111 (distribute_loop): Pass in whether to only distribute patterns.
26112 (prepare_perfect_loop_nest): Also allow size optimization.
26113 (pass_loop_distribution::execute): When optimizing a loop
26114 nest for size allow pattern replacement.
26116 2019-05-23 Jakub Jelinek <jakub@redhat.com>
26119 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
26122 2019-05-23 Martin Liska <mliska@suse.cz>
26125 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
26126 expression similarly to gimplify_decl_expr.
26128 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
26130 * cse.c (cse_dump_path): s/dump_file/f.
26132 2019-05-22 David Malcolm <dmalcolm@redhat.com>
26135 * diagnostic-format-json.cc: Include "selftest.h".
26136 (json_from_expanded_location): Only add "file" key for non-NULL
26138 (json_from_location_range): Don't add "start" and "finish"
26139 children if they are UNKNOWN_LOCATION.
26140 (selftest::test_unknown_location): New selftest.
26141 (selftest::test_bad_endpoints): New selftest.
26142 (selftest::diagnostic_format_json_cc_tests): New function.
26143 * json.cc (json::object::get): New function.
26144 (selftest::test_object_get): New selftest.
26145 (selftest::json_cc_tests): Call it.
26146 * json.h (json::object::get): New decl.
26147 * selftest-run-tests.c (selftest::run_tests): Call
26148 selftest::diagnostic_format_json_cc_tests.
26149 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
26152 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
26153 Andrew Stubbs <amd@codesourcery.com>
26155 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
26156 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
26157 (kernel): Rename to...
26158 (main_kernel): ... this.
26159 (load_image): Load _init_array and _fini_array kernels.
26160 (run): Add argument for kernel to run.
26161 (main): Run init_array_kernel before main_kernel, and
26162 fini_array_kernel after.
26163 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
26164 amdgpu_hsa_kernel attribute on functions.
26165 (gcn_disable_constructors): Delete.
26166 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
26167 * config/gcn/crt0.c (size_t): Define.
26168 (_init_array, _fini_array): New.
26169 (__preinit_array_start, __preinit_array_end,
26170 __init_array_start, __init_array_end,
26171 __fini_array_start, __fini_array_end): Declare weak references.
26173 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
26175 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
26177 2019-05-22 Jason Merrill <jason@redhat.com>
26179 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
26181 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
26184 * config/i386/i386-options.c (ix86_init_machine_status): Set
26185 stack_frame_required to true.
26186 * config/i386/i386.c (ix86_get_frame_size): New function.
26187 (ix86_frame_pointer_required): Replace get_frame_size with
26188 ix86_get_frame_size.
26189 (ix86_compute_frame_layout): Likewise.
26190 (ix86_find_max_used_stack_alignment): Changed to void. Set
26191 stack_frame_required.
26192 (ix86_finalize_stack_frame_flags): Always call
26193 ix86_find_max_used_stack_alignment. Replace get_frame_size with
26194 ix86_get_frame_size.
26195 * config/i386/i386.h (machine_function): Add stack_frame_required.
26197 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
26199 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
26201 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
26203 * common/config/aarch64/aarch64-common.c
26204 (struct aarch64_option_extension, struct processor_name_to_arch,
26205 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
26206 aarch64_contains_opt,
26207 aarch64_get_extension_string_for_isa_flags): Change type of
26208 variables storing flags to uint64_t.
26209 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
26210 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
26211 * config/aarch64/aarch64.c (struct processor,
26212 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
26213 aarch64_validate_march, aarch64_override_options,
26214 aarch64_option_print, aarch64_handle_attr_isa_flags,
26215 aarch64_declare_function_name, aarch64_start_file): Make flag
26216 variables uint64_t.
26217 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
26218 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
26219 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
26220 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
26221 * config/aarch64/driver-aarch64.c
26222 (struct aarch64_arch_extension, struct aarch64_core_data,
26223 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
26224 flag variables uint64_t.
26225 * doc/invoke.texi: Add documentation for new arguments.
26227 2019-05-22 Richard Biener <rguenther@suse.de>
26229 * alias.c (ao_ref_from_mem): Move stack-slot sharing
26231 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
26233 2019-05-22 Martin Liska <mliska@suse.cz>
26236 * doc/extend.texi: Document the change.
26238 2019-05-22 Richard Biener <rguenther@suse.de>
26240 PR tree-optimization/90450
26241 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
26242 (mem_ref_hasher::equal): Check it.
26243 (mem_ref_alloc): Initialize it.
26244 (gather_mem_refs_stmt): Set it.
26246 2019-05-22 Richard Biener <rguenther@suse.de>
26248 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
26250 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
26253 2019-05-22 Alan Modra <amodra@gmail.com>
26255 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
26256 (ASM_CPU_SPEC): Conditionally add -many.
26257 * config/rs6000/rs6000.c (rs6000_machine): New static var.
26258 (rs6000_machine_from_flags, emit_asm_machine): New functions..
26259 (rs6000_file_start): ..extracted from here, and modified to
26261 (rs6000_output_function_prologue): Emit .machine as necessary.
26263 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
26265 PR middle-end/90553
26266 * ira-lives.c (process_bb_node_lives): Consider defs
26267 for a call insn to be die before the call, not after.
26269 * function.c (assign_parm_setup_block): Raise alignment of
26270 stacked parameter only for STRICT_ALIGNMENT targets.
26272 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26274 * config/rs6000/constraints.md (define_register_constraint "wz"):
26276 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26277 RS6000_CONSTRAINT_wz.
26278 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26279 (rs6000_init_hard_regno_mode_ok): Adjust.
26280 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
26281 * doc/md.texi (Machine Constraints): Adjust.
26283 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26285 * config/rs6000/constraints.md (define_register_constraint "wl"):
26287 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26288 RS6000_CONSTRAINT_wl.
26289 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26290 (rs6000_init_hard_regno_mode_ok): Adjust.
26291 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
26292 * doc/md.texi (Machine Constraints): Adjust.
26294 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26296 * config/rs6000/constraints.md (define_register_constraint "wm"):
26298 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26299 RS6000_CONSTRAINT_wm.
26300 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26301 (rs6000_init_hard_regno_mode_ok): Adjust.
26302 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
26303 * doc/md.texi (Machine Constraints): Adjust.
26305 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26307 * config/rs6000/constraints.md (define_register_constraint "wk"):
26309 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26310 RS6000_CONSTRAINT_wk.
26311 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26312 (rs6000_init_hard_regno_mode_ok): Adjust.
26313 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
26314 * doc/md.texi (Machine Constraints): Adjust.
26316 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26318 * config/rs6000/constraints.md (define_register_constraint "wj"):
26320 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26321 RS6000_CONSTRAINT_wj.
26322 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26323 (rs6000_init_hard_regno_mode_ok): Adjust.
26324 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
26326 * config/rs6000/vsx.md: Ditto.
26327 * doc/md.texi (Machine Constraints): Adjust.
26329 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
26331 * config/rs6000/constraints.md (define_register_constraint "wh"):
26333 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26334 RS6000_CONSTRAINT_wh.
26335 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26336 (rs6000_init_hard_regno_mode_ok): Adjust.
26337 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
26338 * doc/md.texi (Machine Constraints): Adjust.
26340 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26343 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26344 Avoid calling gen_lowpart with CONST operand.
26346 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
26348 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
26349 field template_last_to_copy.
26350 (ssa_create_duplicates): Set it, and use it. Attempt to
26351 preserve more debug stmts.
26353 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26355 * config/i386/sse.md (VF1_AVX2): New mode iterator.
26356 (signbit<mode>2): New expander
26358 2019-05-21 James Clarke <jrtc27@jrtc27.com>
26361 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
26362 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
26364 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
26366 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
26367 %ebx and %ecx bafore calling cpuid with leaf 1 or
26368 non-constant leaf argument.
26370 2019-05-21 Alan Modra <amodra@gmail.com>
26373 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
26374 power9 direct move cost.
26376 2019-05-21 Richard Biener <rguenther@suse.de>
26378 PR middle-end/90510
26379 * fold-const.c (fold_read_from_vector): New function.
26380 * fold-const.h (fold_read_from_vector): Declare.
26381 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
26382 single-element insert permutations. Canonicalize selector
26383 further and fix issue with last commit.
26385 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26387 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
26388 parameter with default value false to declaration.
26389 (split_edges_for_insertion): New inline function. Wrapper for
26390 split_critical_edges with for_edge_insertion_p = true.
26391 * tree-cfg.c (split_critical_edges): Don't split non-critical
26392 edges if for_edge_insertion_p is false. Fix whitespace.
26393 * tree-ssa-pre.c (pass_pre::execute): Call
26394 split_edges_for_insertion instead of split_critical_edges.
26395 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
26396 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
26397 (pass_data_sink_code): Update function name in the comment.
26399 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
26401 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
26402 around is_value_included_in that knows how to handle BIT_AND_EXPR.
26403 (is_pred_expr_subset_of): Use the new function. Handle more cases where
26404 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
26407 2019-05-21 Martin Liska <mliska@suse.cz>
26409 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
26411 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
26412 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
26414 * config/rs6000/rs6000.c (rs6000_option_override_internal):
26416 (rs6000_function_arg): Likewise.
26417 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
26418 (rs6000_expand_ternop_builtin): Use interval syntax.
26419 (get_element_number): Likewise.
26420 (altivec_expand_builtin): Likewise.
26421 (rs6000_get_function_versions_dispatcher): Quote target_clones.
26423 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26427 * function.h (struct function): Add calls_eh_return member.
26428 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
26429 gimplifying __builtin_eh_return call.
26430 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
26432 (expand_call_inline): Or in src_cfun->calls_eh_return into
26433 dst_cfun->calls_eh_return.
26434 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
26435 cfun->calls_eh_return.
26436 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
26437 * lto-streamer-out.c (output_struct_function_base): Write
26440 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
26442 PR rtl-optimization/43147
26443 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
26444 IX86_BUILTIN_SHUFPD.
26446 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26448 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
26449 (refs_may_alias_p_1): ... here; update stats.
26450 (refs_may_alias_p): Do not update stats here.
26452 2019-05-20 Richard Biener <rguenther@suse.de>
26454 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
26455 doesn't produce pointers.
26456 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
26457 the first operand points to.
26459 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
26461 * tree-ssa-alias.c (compare_sizes): New function.
26462 (sompare_type_sizes): New function
26463 (aliasing_component_refs_p): Use it.
26464 (indirect_ref_may_alias_decl_p): Likewise.
26466 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26468 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
26470 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26472 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
26473 (LIBLSAN_EARLY_SPEC): Likewise.
26474 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
26476 2019-05-20 Martin Liska <mliska@suse.cz>
26478 * config/i386/i386.c (ix86_libc_has_fast_function):
26479 Add ATTRIBUTE_UNUSED for the argument.
26481 2019-05-20 Richard Biener <rguenther@suse.de>
26483 * gimple-match-head.c: Include vec-perm-indices.h.
26484 * generic-match-head.c: Likewise.
26485 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
26487 * fold-const.c (fold_vec_perm): Export.
26488 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
26489 (match.pd): ...here.
26491 2019-05-20 Jakub Jelinek <jakub@redhat.com>
26493 * cfgloop.h (struct loop): Add simdlen member.
26494 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
26495 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
26496 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
26497 as new argument to autovectorize_vector_sizes target hook. If
26498 loop->simdlen, pick up vector size where the vectorization factor
26499 is equal to loop->simd, and if there is none, fall back to the first
26501 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
26503 * omp-low.c (omp_clause_aligned_alignment): Likewise.
26504 * omp-general.c (omp_max_vf): Likewise.
26505 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
26506 * tree-vect-slp.c (vect_slp_bb): Likewise.
26507 * target.def (autovectorize_vector_sizes): Add ALL argument and
26509 * doc/tm.texi: Adjust documentation.
26510 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
26511 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
26512 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
26514 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
26515 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
26516 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
26517 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
26518 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
26519 preferred vector size is not 512-bit or 256-bit, just put those
26520 unpreferred ones last.
26522 2019-05-20 Martin Liska <mliska@suse.cz>
26524 * targhooks.c (default_libc_has_fast_function): New function.
26525 * targhooks.h (default_libc_has_fast_function): Likewise.
26527 2019-05-20 Martin Liska <mliska@suse.cz>
26529 PR middle-end/90263
26530 * builtins.c (expand_builtin_memory_copy_args): When having a
26531 target with fast mempcpy implementation do now use memcpy.
26532 * config/i386/i386.c (ix86_libc_has_fast_function): New.
26533 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
26534 * doc/tm.texi: Likewise.
26535 * doc/tm.texi.in: Likewise.
26537 * expr.c (emit_block_move_hints): Add 2 new arguments.
26538 * expr.h (emit_block_move_hints): Bail out when libcall
26539 to memcpy would be used.
26541 2019-05-20 Martin Liska <mliska@suse.cz>
26543 * profile-count.c: Add vertical spacing in order
26544 to separate functions.
26545 * profile-count.h: Likewise.
26547 2019-05-20 Martin Liska <mliska@suse.cz>
26549 * profile-count.h: Do not use full qualified
26551 * profile-count.c (profile_count::to_frequency): Likewise.
26553 2019-05-20 Martin Liska <mliska@suse.cz>
26555 * profile-count.h (enum profile_quality): Use capital letters
26556 for enum value names. Use the adjusted names.
26557 * profile-count.c: Use the adjusted names.
26559 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26561 * config/rs6000/constraints.md (define_register_constraint "wH"):
26563 (define_register_constraint "wI"): Delete.
26564 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26565 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
26566 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26567 (rs6000_init_hard_regno_mode_ok): Adjust.
26568 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
26569 resp. "d", or with "wa" as appropriate, all with "p8v".
26570 * config/rs6000/vsx.md: Ditto.
26571 * doc/md.texi (Machine Constraints): Adjust.
26573 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26575 * config/rs6000/constraints.md (define_register_constraint "wy"):
26577 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26578 RS6000_CONSTRAINT_wy.
26579 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26580 (rs6000_init_hard_regno_mode_ok): Adjust.
26581 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
26582 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
26583 (define_mode_attr Fisa): New.
26584 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
26585 * doc/md.texi (Machine Constraints): Adjust.
26587 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26589 * config/rs6000/constraints.md (define_register_constraint "wu"):
26591 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26592 RS6000_CONSTRAINT_wu.
26593 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26594 (rs6000_init_hard_regno_mode_ok): Adjust.
26595 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
26597 (define_mode_attr Fa): Delete.
26598 * config/rs6000/vsx.md: Ditto.
26599 * doc/md.texi (Machine Constraints): Adjust.
26601 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26603 * config/rs6000/constraints.md (define_register_constraint "wJ"):
26605 (define_register_constraint "wK"): Delete.
26606 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26607 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
26608 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26609 (rs6000_init_hard_regno_mode_ok): Adjust.
26610 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
26611 Replace "wK" constraint by "wH" with "p9v".
26612 * config/rs6000/vsx.md: Ditto.
26613 * doc/md.texi (Machine Constraints): Adjust.
26615 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26617 * config/rs6000/constraints.md (define_register_constraint "wb"):
26619 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26620 RS6000_CONSTRAINT_wb.
26621 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26622 (rs6000_init_hard_regno_mode_ok): Adjust.
26623 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
26624 * config/rs6000/vsx.md: Ditto.
26625 * doc/md.texi (Machine Constraints): Adjust.
26627 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
26629 * config/rs6000/constraints.md (define_register_constraint "wo"):
26631 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
26632 RS6000_CONSTRAINT_wo.
26633 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
26634 (rs6000_init_hard_regno_mode_ok): Adjust.
26635 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
26636 * config/rs6000/altivec.md: Ditto.
26637 * doc/md.texi (Machine Constraints): Adjust.
26639 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26641 * config/darwin-c.c (darwin_register_objc_includes): Do not
26642 prepend the sysroot when building gnu-runtime header search
26645 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
26647 * config/darwin.c (darwin_file_end): Use switch_to_section ()
26648 instead of direct output of the asm.
26650 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26652 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
26653 argument to be type bool (was int before).
26654 (rs6000_emit_epilogue): Simplify some code. Declare some variables
26655 at first use. Use type bool for some variables. Fix a theoretical
26656 eh_return bug for svr4.
26658 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
26660 * config/rs6000/rs6000.md (isa): New attribute.
26661 (enabled): New attribute.
26663 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
26665 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
26666 assemble_start_function and assemble_end_function.
26668 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
26670 PR middle-end/89433
26671 * omp-general.c (oacc_verify_routine_clauses): Change formal
26672 parameters. Add checking if already marked with an OpenACC
26673 'routine' directive. Adjust all users.
26675 PR middle-end/89433
26676 * omp-general.c (oacc_build_routine_dims): Move some of its
26678 (oacc_verify_routine_clauses): ... this new function.
26679 * omp-general.h (oacc_verify_routine_clauses): New prototype.
26681 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26683 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
26684 formating of picbase labels to match other ports.
26686 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
26688 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
26689 in the generated code.
26691 2019-05-16 Martin Sebor <msebor@redhat.com>
26693 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
26694 identifiers, keywords, operators, and types in diagnostics. Correct
26695 quoting, spelling, and sentence capitalization issues.
26696 (expand_builtin_atomic_is_lock_free): Same.
26697 (fold_builtin_next_arg): Same.
26698 * cfgexpand.c (expand_one_var): Same.
26699 (tree_conflicts_with_clobbers_p): Same.
26700 (expand_asm_stmt): Same.
26701 (verify_loop_structure): Same.
26702 * cgraphunit.c (process_function_and_variable_attributes): Same.
26703 * collect-utils.c (collect_execute): Same.
26704 * collect2.c (maybe_run_lto_and_relink): Same.
26705 (is_lto_object_file): Same.
26706 (scan_prog_file): Same.
26707 * convert.c (convert_to_real_1): Same.
26708 * dwarf2out.c (dwarf2out_begin_prologue): Same.
26709 * except.c (verify_eh_tree): Same.
26710 * gcc.c (execute): Same.
26711 (eval_spec_function): Same.
26712 (run_attempt): Same.
26713 (driver::set_up_specs): Same.
26714 (compare_debug_auxbase_opt_spec_function): Same.
26715 * gcov-tool.c (unlink_gcda_file): Same.
26717 (do_rewrite): Same.
26718 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
26719 * gimplify.c (gimplify_asm_expr): Same.
26720 (gimplify_adjust_omp_clauses): Same.
26721 * hsa-gen.c (gen_hsa_addr_insns): Same.
26722 (gen_hsa_insns_for_load): Same.
26723 (gen_hsa_cmp_insn_from_gimple): Same.
26724 (gen_hsa_insns_for_operation_assignment): Same.
26725 (gen_get_level): Same.
26726 (gen_hsa_alloca): Same.
26727 (omp_simple_builtin::generate): Same.
26728 (gen_hsa_atomic_for_builtin): Same.
26729 (gen_hsa_insns_for_call): Same.
26730 * input.c (dump_location_info): Same.
26731 * ipa-devirt.c (compare_virtual_tables): Same.
26732 * ira.c (ira_setup_eliminable_regset): Same.
26733 * lra-assigns.c (lra_assign): Same.
26734 * lra-constraints.c (lra_constraints): Same.
26735 * lto-streamer-in.c (lto_input_mode_table): Same.
26736 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
26737 (merge_and_complain): Same.
26738 (compile_offload_image): Same.
26739 (compile_images_for_offload_targets): Same.
26740 (debug_objcopy): Same.
26743 * opts.c (print_specific_help): Same.
26744 (parse_no_sanitize_attribute): Same.
26745 (print_help): Same.
26746 (handle_param): Same.
26747 * plugin.c (add_new_plugin): Same.
26748 (parse_plugin_arg_opt): Same.
26749 (try_init_one_plugin): Same.
26750 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
26751 operators, and types in diagnostics. Correct quoting and spelling
26753 * read-rtl-function.c (parse_edge_flag_token): Same.
26754 (function_reader::parse_enum_value): Same.
26755 * reg-stack.c (check_asm_stack_operands): Same.
26756 * regcprop.c (validate_value_data): Same.
26757 * sched-rgn.c (make_pass_sched_fusion): Same.
26758 * stmt.c (check_unique_operand_names): Same.
26759 * targhooks.c (default_target_option_pragma_parse): Same.
26760 * tlink.c (recompile_files): Same.
26761 * toplev.c (process_options): Same.
26762 (do_compile): Same.
26763 * trans-mem.c (diagnose_tm_1): Same.
26764 (ipa_tm_scan_irr_block): Same.
26765 (ipa_tm_diagnose_transaction): Same.
26766 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
26767 format a tree code name in a diagnostic.
26768 (verify_types_in_gimple_min_lval): Same.
26769 (verify_types_in_gimple_reference): Same.
26770 (verify_gimple_call): Same.
26771 (verify_gimple_assign_unary): Same.
26772 (verify_gimple_assign_binary): Same.
26773 (verify_gimple_assign_ternary): Same.
26774 (verify_gimple_assign_single): Same.
26775 (verify_gimple_switch): Same.
26776 (verify_gimple_label): Same.
26777 (verify_gimple_phi): Same.
26778 (verify_gimple_in_seq): Same.
26779 (verify_eh_throw_stmt_node): Same.
26780 (collect_subblocks): Same.
26781 (gimple_verify_flow_info): Same.
26782 (do_warn_unused_result): Same.
26783 * tree-inline.c (expand_call_inline): Same.
26784 * tree-into-ssa.c (update_ssa): Same.
26785 * tree.c (tree_int_cst_elt_check_failed): Same.
26786 (tree_vec_elt_check_failed): Same.
26787 (omp_clause_operand_check_failed): Same.
26788 (verify_type_variant): Same.
26789 (verify_type): Same.
26790 * value-prof.c (verify_histograms): Same.
26791 * varasm.c (assemble_start_function): Same.
26793 2019-05-16 Martin Sebor <msebor@redhat.com>
26795 * config/i386/i386-expand.c (get_element_number): Quote keywords
26796 and other internal names in diagnostics. Adjust other diagnostic
26797 formatting issues noted by -Wformat-diag.
26798 * config/i386/i386-features.c
26799 (ix86_mangle_function_version_assembler_name): Same.
26800 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
26801 * config/i386/i386.c (ix86_function_type_abi): Same.
26802 (ix86_function_ms_hook_prologue): Same.
26803 (classify_argument): Same.
26804 (ix86_expand_prologue): Same.
26805 (ix86_md_asm_adjust): Same.
26806 (ix86_memmodel_check): Same.
26808 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
26810 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
26811 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
26814 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
26817 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
26818 intrinsics without SSE/SSE2/SSSE3.
26819 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
26821 (*mmx_uavgv8qi3): Likewise.
26823 2019-05-17 Richard Biener <rguenther@suse.de>
26825 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
26826 VEC_PERM_EXPR as __VEC_PERM with -gimple.
26828 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
26830 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
26831 vec_sldw insn pattern.
26833 2019-05-17 Richard Biener <rguenther@suse.de>
26835 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
26837 2019-05-17 Martin Liska <mliska@suse.cz>
26840 * toplev.c (output_stack_usage): With LTO and sanitizer it
26841 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
26842 has no file location.
26844 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26847 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
26848 sz0 is equal to sz1, instead return false in that case.
26850 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
26851 has non-constant expression, force sctx.lane and use two
26852 argument IFN_GOMP_SIMD_LANE instead of single argument.
26853 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
26854 two argument IFN_GOMP_SIMD_LANE without lhs.
26855 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
26857 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
26859 (LOOP_REQUIRES_VERSIONING): Or in
26860 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
26861 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
26863 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
26864 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
26865 from simd if clause if needed.
26867 2019-05-16 Richard Biener <rguenther@suse.de>
26869 * tree-affine.c (expr_to_aff_combination): New function split
26871 (tree_to_aff_combination): ... here.
26872 (aff_combination_expand): Avoid building a GENERIC tree.
26874 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
26876 * cgraphunit.c (cgraph_node::expand_thunk): Remove
26877 assemble_start_function and assemble_end_function calls.
26878 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
26879 assemble_start_function and assemble_end_function.
26880 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
26881 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
26882 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
26883 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
26884 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
26885 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
26886 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
26887 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
26888 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
26889 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
26890 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
26891 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
26893 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
26894 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
26895 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
26896 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
26897 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
26898 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
26899 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
26900 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
26901 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
26902 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
26903 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
26904 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
26905 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
26906 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
26908 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
26909 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
26910 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
26912 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
26914 * tree-ssa-alias.c (alias_stats): Add
26915 aliasing_component_refs_p_may_alias and
26916 aliasing_component_refs_p_no_alias.
26917 (dump_alias_stats): Print aliasing_component_refs_p stats.
26918 (aliasing_component_refs_p): Update stats.
26920 2019-05-16 Martin Liska <mliska@suse.cz>
26923 * multiple_target.c (expand_target_clones): Do not allow
26924 target_clones being used with a symbol that is an alias.
26926 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
26928 PR tree-optimization/90394
26929 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
26930 positives rather than ICE for cases where (code2 == NE_EXPR
26931 && code1 == BIT_AND_EXPR).
26933 2019-05-16 Jakub Jelinek <jakub@redhat.com>
26936 * tree-core.h (struct tree_decl_common): Document
26937 decl_nonshareable_flag for PARM_DECLs.
26938 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
26939 * calls.c (expand_call): Don't try tail call if caller
26940 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
26941 passed on the stack and callee needs to pass any arguments on the
26943 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
26944 else if instead of series of mutually exclusive ifs. Handle
26945 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
26946 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
26948 * lto-streamer.h (LTO_major_version): Bump to 9.
26950 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
26952 PR tree-optimization/90106
26953 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
26954 new parameter as new internal function call, also move it to new
26956 (use_internal_fn): Pass internal function call to
26957 shrink_wrap_one_built_in_call_with_conds.
26959 2019-05-15 Jakub Jelinek <jakub@redhat.com>
26961 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
26963 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
26964 safelen_int and set loop->dont_vectorize.
26966 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26969 * config/i386/i386-builtin.def: Enable MMX intrinsics with
26971 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
26973 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
26974 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
26975 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
26978 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
26981 * config/i386/mmx.md (*vec_dupv2sf): Changed to
26982 define_insn_and_split to support SSE emulation.
26983 (*vec_extractv2sf_0): Likewise.
26984 (*vec_extractv2sf_1): Likewise.
26985 (*vec_extractv2si_0): Likewise.
26986 (*vec_extractv2si_1): Likewise.
26987 (*vec_extractv2si_zext_mem): Likewise.
26988 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
26989 (vec_extractv2sf_1 splitter): Likewise.
26990 (vec_extractv2sfsf): Likewise.
26991 (vec_setv2si): Likewise.
26992 (vec_extractv2si_1 splitter): Likewise.
26993 (vec_extractv2sisi): Likewise.
26994 (vec_setv4hi): Likewise.
26995 (vec_extractv4hihi): Likewise.
26996 (vec_setv8qi): Likewise.
26997 (vec_extractv8qiqi): Likewise.
26998 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
26999 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
27000 (vec_extractv2sisi): Likewise.
27001 (vec_extractv4hihi): Likewise.
27002 (vec_extractv8qiqi): Likewise.
27003 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
27004 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
27005 (vec_initv2sisi): Likewise.
27006 (vec_initv4hihi): Likewise.
27007 (vec_initv8qiqi): Likewise.
27008 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
27009 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
27010 (vec_setv4hi): Likewise.
27011 (vec_setv8qi): Likewise.
27013 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27016 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
27017 TARGET_MMX_WITH_SSE.
27018 (MMXMODE:*mov<mode>_internal): Likewise.
27019 (MMXMODE:movmisalign<mode>): Likewise.
27021 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
27024 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
27025 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
27026 (sse2_cvtpd2pi): Ditto.
27027 (sse2_cvttpd2pi): Ditto.
27028 (*vec_concatv2sf_sse4_1): Ditto.
27029 (*vec_concatv2sf_sse): Ditto.
27030 (*vec_concatv2si_sse4_1): Ditto.
27031 (*vec_concatv2si): Ditto.
27032 (*vec_concatv4si_0): Ditto.
27033 (*vec_concatv2di_0): Ditto.
27035 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27038 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
27040 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27043 * config/i386/sse.md (ssse3_palignrdi): Changed to
27044 define_insn_and_split to support SSE emulation.
27046 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27049 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
27051 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27054 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
27055 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27058 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27061 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
27062 or TARGET_MMX_WITH_SSE.
27063 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
27065 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27068 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
27070 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27073 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
27074 Changed to define_insn_and_split to support SSE emulation.
27076 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27079 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
27080 Changed to define_insn_and_split to support SSE emulation.
27082 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27085 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
27086 (*mmx_<emms>): This.
27087 (mmx_<emms>): New expander.
27089 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27092 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
27094 (*sse2_umulv1siv1di3): Add SSE2 emulation.
27096 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27099 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
27101 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27104 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
27106 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27109 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
27110 TARGET_MMX_WITH_SSE.
27111 (*mmx_uavgv4hi3): Add SSE emulation.
27113 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27116 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
27117 and TARGET_MMX_WITH_SSE.
27118 (*mmx_uavgv8qi3): Add SSE emulation.
27120 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27123 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
27124 maskmovdqu for __MMX_WITH_SSE__.
27126 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27129 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
27130 TARGET_MMX and TARGET_MMX_WITH_SSE.
27131 (*mmx_umulv4hi3_highpart): Add SSE emulation.
27133 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27136 * config/i386/mmx.md (mmx_pmovmskb): Changed to
27137 define_insn_and_split to support SSE emulation.
27139 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27142 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
27143 and TARGET_MMX_WITH_SSE.
27144 (mmx_<code>v8qi3): Likewise.
27145 (smaxmin:<code>v4hi3): New.
27146 (umaxmin:<code>v8qi3): Likewise.
27147 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
27148 (umaxmin:*mmx_<code>v8qi3): Likewise.
27150 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27153 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
27154 TARGET_MMX_WITH_SSE.
27155 (*mmx_pinsrw): Add SSE emulation.
27157 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27160 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
27162 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27165 * config/i386/sse.md (sse_cvtpi2ps): Changed to
27166 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
27169 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27172 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
27173 (sse_cvttps2pi): Likewise.
27175 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27178 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
27179 TARGET_MMX_WITH_SSE.
27180 (mmx_pshufw_1): Add SSE emulation.
27181 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
27182 TARGET_MMX_WITH_SSE to support SSE emulation.
27184 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27187 * config/i386/constraints.md (Yw): New constraint.
27188 * config/i386/mmx.md (*vec_dupv2si): Changed to
27189 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
27190 support SSE emulation.
27192 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27195 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
27196 TARGET_MMX_WITH_SSE.
27197 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27199 (mmx_gt<mode>3): Likewise.
27201 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27204 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
27205 TARGET_MMX_WITH_SSE. Add SSE support.
27207 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27210 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
27211 TARGET_MMX_WITH_SSE.
27212 (any_logic:<code><mode>3): New.
27213 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
27216 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27219 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
27220 TARGET_MMX_WITH_SSE. Add SSE emulation.
27221 (mmx_<shift_insn><mode>3): Likewise.
27222 (ashr<mode>3): New.
27223 (<shift_insn><mode>3): Likewise.
27225 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27228 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
27229 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
27231 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27234 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
27235 TARGET_MMX_WITH_SSE.
27236 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
27239 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27242 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
27243 TARGET_MMX_WITH_SSE.
27245 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
27248 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27251 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
27252 (plusminus:mmx_<plusminus_insn><mode>3): Check
27253 TARGET_MMX_WITH_SSE.
27254 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
27255 (<plusminus_insn><mode>3): New.
27256 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
27257 (*mmx_<plusminus_insn><mode>3): Likewise.
27259 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27262 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
27263 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
27265 * config/i386/mmx.m (mmx_punpckhbw): Changed to
27266 define_insn_and_split to support SSE emulation.
27267 (mmx_punpcklbw): Likewise.
27268 (mmx_punpckhwd): Likewise.
27269 (mmx_punpcklwd): Likewise.
27270 (mmx_punpckhdq): Likewise.
27271 (mmx_punpckldq): Likewise.
27273 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27274 Uros Bizjak <ubizjak@gmail.com>
27277 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
27279 (ix86_split_mmx_pack): Likewise.
27280 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
27282 (ix86_split_mmx_pack): Likewise.
27283 * config/i386/i386.md (mmx_isa): New.
27284 (enabled): Also check mmx_isa.
27285 * config/i386/mmx.md (any_s_truncate): New code iterator.
27286 (s_trunsuffix): New code attr.
27287 (mmx_packsswb): Removed.
27288 (mmx_packssdw): Likewise.
27289 (mmx_packuswb): Likewise.
27290 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
27291 MMX packsswb/packuswb with SSE2.
27292 (mmx_packssdw): Likewise.
27293 * config/i386/predicates.md (register_mmxmem_operand): New.
27295 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
27298 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27299 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
27300 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
27301 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
27302 (ix86_vector_mode_supported_p): Likewise.
27303 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
27305 2019-05-15 Martin Liska <mliska@suse.cz>
27307 PR middle-end/90478
27308 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27309 Check for overflow.
27311 2019-05-15 Richard Biener <rguenther@suse.de>
27313 * tree-into-ssa.c (pass_build_ssa::execute): Run
27314 update_address_taken before going into SSA.
27316 2019-05-15 Richard Biener <rguenther@suse.de>
27318 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
27319 as __BIT_FIELD_REF with type with -gimple.
27321 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
27323 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
27324 semantically equivalent branches (left over after prior refactorings).
27326 2019-05-15 Richard Biener <rguenther@suse.de>
27328 PR tree-optimization/88828
27329 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
27332 2019-05-14 Richard Biener <rguenther@suse.de>
27334 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
27335 as __VIEW_CONVERT with -gimple.
27337 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27340 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
27343 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27345 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
27346 define_split to become a define_insn_and_split.
27348 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
27350 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
27352 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
27353 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
27354 (sibcall_epilogue): Adjust.
27355 (epilogue): Adjust.
27357 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27359 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
27360 to unsupported ones.
27361 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
27362 * config.host: Likewise.
27363 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
27364 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
27365 __svr4__]: Remove "brand" fallback.
27366 [!KSTAT_DATA_STRING]: Remove.
27367 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
27369 (comdat_group): Likewise.
27370 (set_have_as_tls): Likewise.
27371 (gcc_cv_target_dl_iterate_phdr): Likewise.
27372 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
27373 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
27374 * configure: Regenerate.
27375 * doc/install.texi: Simplify Solaris target triplets.
27376 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
27377 (Specific, *-*-solaris2*): Document Solaris 10 removal.
27378 Remove Solaris 10 references.
27379 Remove obsolete Solaris bug reference.
27380 (Specific, sparc-sun-solaris2.10): Remove.
27382 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
27384 * config/i386/i386.md (any_div): New code iterator.
27385 (paired_mod): New code attribute.
27386 (sgnprefix): Handle DIV and UDIV RTXes.
27388 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
27389 and udivmod<mode>4 patterns using any_div code iterator.
27390 (divmod splitters): Macroize splitters using any_div code iterator.
27391 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
27392 (*udivmodsi4_pow2_zext_2): Ditto.
27393 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
27394 and *udivmod<mode>4_noext patterns using any_div code iterator.
27395 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
27396 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
27397 patterns using any_div code iterator.
27398 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
27399 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
27400 patterns using any_div code iterator.
27401 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
27402 udivmodhiqi3 patterns using any_extend code iterator.
27404 2019-05-14 Richard Biener <rguenther@suse.de>
27405 H.J. Lu <hongjiu.lu@intel.com>
27407 PR tree-optimization/88828
27408 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
27409 permuting in a single non-constant element not extracted
27412 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
27414 * internal-fn.def (SIGNBIT): New.
27415 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
27417 (signbitv4sf2): Likewise.
27419 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
27422 * config/mips/mips.c (mips_split_move): Skip forward SRC into
27423 next insn when the SRC reg is dead.
27425 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
27427 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
27428 (alloc_cand_and_find_basis): Ditto.
27429 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
27430 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
27431 (create_add_imm_cand, slsr_process_cast): Ditto.
27432 (slsr_process_copy, replace_mult_candidate): Ditto.
27433 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
27434 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
27435 (pass_strength_reduction::execute): Init the first NULL element.
27437 2019-05-13 Nathan Sidwell <nathan@acm.org>
27439 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
27440 (run_attempt): Reformat line break.
27442 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
27445 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
27446 data registers in sibcall epilogues.
27447 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27449 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
27452 * configure.ac (--enable-frame-pointer):
27453 Disable by default for cygwin and mingw.
27454 * configure: Regenerate.
27456 2019-05-13 Nathan Sidwell <nathan@acm.org>
27458 * dwarf2out.c (breakout_comdat_types): Move comment to correct
27460 (const_ok_for_output_1): Balance parens around #if/#else/#endif
27461 (gen_member_die): Move abstract origin check earlier. Only VARs
27462 can be static_inline_p. Simplify splicing control flow.
27464 2019-05-13 Richard Biener <rguenther@suse.de>
27466 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
27468 (vect_build_slp_tree_1): Likewise.
27470 2019-05-13 Richard Biener <rguenther@suse.de>
27472 PR tree-optimization/90402
27473 * tree-if-conv.c (tree_if_conversion): Value number only
27474 the loop body by making the latch an exit of the region
27476 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
27478 (do_rpo_vn): Deal with multiple edges into the entry block
27479 that are not backedges inside the region by skipping PHIs
27480 of the entry block.
27482 2019-05-13 Richard Biener <rguenther@suse.de>
27484 PR tree-optimization/90316
27485 * tree-ssa-pre.c (insert_aux): Fold into ...
27486 (insert): ... this function. Use a RPO walk to reduce the
27487 number of required iterations.
27489 2019-05-13 Martin Liska <mliska@suse.cz>
27491 PR tree-optimization/90416
27492 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
27493 string instead of passing the second part as va_arg argument.
27495 2019-05-13 Martin Liska <mliska@suse.cz>
27497 PR gcov-profile/90380
27498 * gcov.c (handle_cycle): Do not support zero cycle count,
27499 it should not be possible.
27500 (path_contains_zero_cycle_arc): New function.
27501 (circuit): Ignore zero cycle arc counts.
27503 2019-05-13 Martin Liska <mliska@suse.cz>
27505 PR gcov-profile/90380
27506 * gcov.c (enum loop_type): Remove the enum and
27508 (handle_cycle): Assert that we should not reach
27510 (circuit): Use loop_found instead of a tri-state loop_type.
27511 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
27514 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27517 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
27518 (ix86_output_indirect_branch_via_reg): Use output mechanism
27519 accounting for __USER_LABEL_PREFIX__.
27520 (ix86_output_indirect_branch_via_push): Likewise.
27521 (ix86_output_function_return): Likewise.
27522 (ix86_output_indirect_function_return): Likewise.
27524 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
27526 * doc/md.texi: Document use of code attributes in rtx patterns.
27527 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
27528 * read-rtl.c (find_code): Split out search loops into...
27529 (maybe_find_code): ...this new function.
27530 (check_code_iterator): Make the error message more informative.
27531 (check_code_attribute): New function.
27532 (rtx_reader::rtx_alloc_for_name): Likewise.
27533 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
27534 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
27535 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
27536 <max_opp> directly as an rtx code instead of via a match_operator.
27537 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
27538 (<su>abd<mode>_3): Update accordingly.
27540 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
27542 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
27543 is given, print the state of the EH "save world" computation for
27546 2019-05-11 Jakub Jelinek <jakub@redhat.com>
27549 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
27550 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
27552 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
27554 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
27555 Use pinsrd for TARGET_SSE4_1.
27556 * config/i386/sse.md (movdi_to_sse): Ditto.
27558 2019-05-10 Richard Biener <rguenther@suse.de>
27560 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
27561 (do_rpo_vn): Initialize next_value_id.
27563 2019-05-10 Martin Liska <mliska@suse.cz>
27565 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27568 2019-05-10 Jakub Jelinek <jakub@redhat.com>
27570 PR tree-optimization/90385
27571 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
27572 arguments of the exit phis.
27575 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
27576 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
27578 (copy_tree_body_r): Likewise.
27579 (copy_fn): Set id.do_not_fold to true.
27581 2019-05-10 Martin Liska <mliska@suse.cz>
27583 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
27584 Reapply changes from r269790.
27586 2019-05-10 Martin Liska <mliska@suse.cz>
27588 PR middle-end/90340
27589 * doc/invoke.texi: New params.
27590 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
27591 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
27592 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
27594 * tree-switch-conversion.h (struct jump_table_cluster):
27597 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
27599 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
27601 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
27603 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
27605 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
27607 PR rtl-optimization/88879
27608 * sel-sched.c (sel_target_adjust_priority): Remove assert.
27610 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
27613 * config/arm/arm.c (callee_saved_reg_p): Move before
27614 thumb_find_work_register.
27615 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
27616 thumb_find_work_register. Only call df_get_live_out once.
27617 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
27618 (thumb_find_work_register): Use
27619 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
27620 algorithms to locate a spare call clobbered reg.
27622 2019-05-09 Martin Liska <mliska@suse.cz>
27624 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
27625 and MAX_EXPR in GIMPLE FE format.
27627 2019-05-09 Martin Liska <mliska@suse.cz>
27629 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
27630 * gimple-pretty-print.c (dump_gimple_bb_header):
27632 (pp_cfg_jump): Dump edge probability.
27633 * profile-count.c (profile_quality_as_string): Simplify
27634 with a static array.
27635 (parse_profile_quality): New function.
27636 (profile_count::dump): Simplify with a static array.
27637 (profile_count::from_gcov_type): Add new argument.
27638 * profile-count.h (parse_profile_quality): Likewise.
27639 * predict.h (set_hot_bb_threshold): New.
27640 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
27642 * predict.c (get_hot_bb_threshold): Set from the new param.
27643 (set_hot_bb_threshold): New.
27645 2019-05-09 Richard Biener <rguenther@suse.de>
27647 PR tree-optimization/90395
27648 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
27649 rewrite vector stores that throw internally.
27651 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
27653 * cif-code.def (CHKP): Remove.
27656 * configure.ac (--enable-frame-pointer): Disable by default for
27658 * configure: Regenerate.
27660 2019-05-09 Alan Modra <amodra@gmail.com>
27663 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
27664 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
27665 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
27666 cost for general <-> vsx when direct moves are available.
27667 Cost union classes at minimal cost for any reg in the class.
27668 Correct calculation for moves between vsx, float, and altivec.
27669 Don't return a low cost for moves between special regs. Don't
27670 use hard coded register numbers.
27671 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
27672 (rs6000_ira_change_pseudo_allocno_class): New function.
27673 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
27674 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
27676 (movsi_internal1): Don't disparage vector alternatives.
27677 (mov<mode>_internal): Likewise, excepting alternative that
27679 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
27680 we <- b alternative.
27682 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27685 PR tree-optimization/89060
27686 * tree-ssa-live.h (live_vars_map): New typedef.
27687 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
27688 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
27689 (struct compute_live_vars_data): New type.
27690 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
27691 live_vars_at_stmt, destroy_live_vars): New functions.
27692 * tree-tailcall.c: Include tree-ssa-live.h.
27693 (live_vars, live_vars_vec): New global variables.
27694 (find_tail_calls): Perform variable life analysis before punting.
27695 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
27696 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
27698 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
27699 Perform variable life analysis to select variables that really need
27701 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
27702 instead set id->eh_landing_pad_dest and assert it is the same.
27703 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
27705 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
27706 Richard Earnshaw <rearnsha@arm.com>
27709 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
27711 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
27712 (thumb1_compute_save_core_reg_mask): Don't force a spare work
27713 register if both the epilogue and prologue can use call-clobbered
27715 (thumb1_unexpanded_epilogue): Use
27716 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
27717 picking temporaries for restoring high regs to match that of the
27718 prologue where possible.
27719 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
27720 the list of work registers. Detect if the return address is still live
27721 at the end of the prologue and avoid using it for a work register if so.
27722 If the return address is not live, add LR to the list of pushable regs
27723 after the first pass.
27725 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27727 PR tree-optimization/90078
27728 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
27729 (INFTY): Increase the value for infinite cost.
27730 (struct comp_cost): Promote type of members to int64_t.
27731 (infinite_cost): Don't set complexity in initialization.
27732 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
27733 overflows to infinite_cost.
27734 (adjust_setup_cost): Promote type of parameter and cost computation
27736 (struct ainc_cost_data, struct iv_ca): Promote type of member to
27738 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
27739 cost computation to int64_t.
27740 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
27741 int64_t's format specifier in dump.
27743 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
27745 PR tree-optimization/90240
27746 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
27747 with respect to scaling factor pre-computed for each basic block.
27748 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
27749 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
27750 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
27751 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
27752 live range for array of loop's basic blocks. Cleanup aux field of
27753 loop's basic blocks.
27755 2019-05-08 Jakub Jelinek <jakub@redhat.com>
27757 PR tree-optimization/90356
27758 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
27760 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
27762 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
27763 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
27764 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
27765 (ix86_handle_option): Handle -mavx512bf16.
27766 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
27768 * config/i386/avx512bf16vlintrin.h: New.
27769 * config/i386/avx512bf16intrin.h: New.
27770 * config/i386/cpuid.h (bit_AVX512BF16): New.
27771 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
27772 * config/i386/i386-builtin-types.def: Add new types.
27773 * config/i386/i386-builtin.def: Add new builtins.
27774 * config/i386/i386-c.c (ix86_target_macros_internal): Define
27776 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
27777 (ix86_option_override_internal): Handle BF16.
27778 (ix86_valid_target_attribute_inner_p): Ditto.
27779 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
27780 * config/i386/i386-builtin.c (enum processor_features): Add
27782 (static const _isa_names_table isa_names_table): Ditto.
27783 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
27784 (PTA_AVX512BF16): Ditto.
27785 * config/i386/i386.opt: Add -mavx512bf16.
27786 * config/i386/immintrin.h: Include avx512bf16intrin.h
27787 and avx512bf16vlintrin.h.
27788 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
27789 avx512f_cvtneps2bf16_<mode><mask_name>,
27790 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
27791 * config/i386/subst.md (mask_half): Add new subst.
27792 * doc/invoke.texi: Document -mavx512bf16.
27794 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
27796 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
27797 Delete declaration.
27798 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
27799 (rs6000_debug_legitimize_reload_address): Delete.
27800 (rs6000_legitimize_reload_address_ptr): Delete.
27801 (rs6000_option_override_internal): Adjust.
27802 (mem_operand_gpr): Adjust comment.
27803 (legitimate_lo_sum_address_p): Ditto.
27804 (rs6000_legitimize_reload_address): Delete.
27805 (rs6000_debug_legitimize_reload_address): Delete.
27806 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
27808 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
27811 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27812 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
27813 to compute vector element selector for both constant and variable
27816 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27818 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
27819 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
27820 ashrdi3_cvt using SWI48 mode iterator.
27822 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
27824 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
27825 (aarch64_<su>abd<mode>_3): Likewise.
27826 (*aarch64_<su>abd<mode>_3): New define_insn.
27827 (<sur>sad<vsi2qi>): New define_expand.
27828 * config/aarch64/iterators.md: Added MAX_OPP attribute.
27829 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
27830 (build_vect_cond_expr): Likewise.
27832 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
27834 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
27835 clobbers outside of accessible_reg_set.
27836 * config/i386/i386.c (ix86_conditional_register_usage):
27837 Disable register sets by clearing corresponding bits in
27838 accessible_reg_set. Do not set corresponding bits in fixed_regs,
27839 call_used_regs and don't clear corresponding reg_names array members.
27841 2019-05-07 Richard Biener <rguenther@suse.de>
27843 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
27844 not specified still compute a comp_vectype for invariant
27847 2019-05-07 Richard Biener <rguenther@suse.de>
27849 PR tree-optimization/90316
27850 * tree-ssa-pre.c (translate_vuse_through_block): When
27851 same_valid is NULL do not bother to search for a virtual
27853 (phi_translate_1): When operands changed we cannot keep
27854 the same value-number so do not bother to ask whether
27855 that's possible from translate_vuse_through_block.
27857 2019-05-07 Martin Liska <mliska@suse.cz>
27859 * bitmap.c (bitmap_register): Come up with
27860 alloc_descriptor_max_uid and assign it for
27862 (register_overhead): Use get_descriptor as
27864 (release_overhead): New.
27865 (bitmap_elem_to_freelist): Call it.
27866 (bitmap_elt_clear_from): Likewise.
27867 (bitmap_obstack_free): Likewise.
27868 (bitmap_move): Sensitively release memory.
27869 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
27870 (bitmap_initialize): Initialize alloc_descriptor to zero.
27871 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
27873 2019-05-07 Richard Biener <rguenther@suse.de>
27875 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
27876 we build a SLP node. Remove max_size and limiting.
27877 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
27879 2019-05-07 Richard Biener <rguenther@suse.de>
27881 PR tree-optimization/90316
27882 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
27883 limit by reference.
27884 (walk_non_aliased_vuses): Take walking limit argument.
27885 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
27886 walking if it is reached instead of just counting.
27887 (get_continuation_for_phi): Likewise.
27888 (walk_non_aliased_vuses): Likewise, instead of leaving counter
27889 limiting to the callback.
27890 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
27891 (vn_reference_lookup_3): Likewise.
27892 (vn_reference_lookup_pieces): Likewise.
27893 (vn_reference_lookup): Likewise.
27894 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
27895 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
27896 (avail_exprs_stack::lookup_avail_expr): Likewise.
27898 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
27900 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
27901 for comparaible types in the second direction even if first one
27902 hits incomparable type.
27904 2019-05-07 Richard Biener <rguenther@suse.de>
27907 * lto-wrapper.c (debug_objcopy): Use the original filename
27908 including archive offset for the filename used for -save-temps.
27910 2019-05-07 Li Jia He <helijia@linux.ibm.com>
27912 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
27915 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
27916 Hongtao Liu <hongtao.liu@intel.com>
27920 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
27921 Modified, original implementation isn't correct.
27923 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27925 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
27926 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
27927 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
27928 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
27929 (FRAME_POINTER_REGNUM): Change numbering.
27930 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
27931 (alt_reg_names): Adjust.
27932 (rs6000_conditional_register_usage): Don't mark hard register 64 as
27934 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27935 (DWARF_FRAME_REGISTERS): Delete.
27936 (DWARF2_FRAME_REG_OUT): Fix whitespace.
27937 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27939 (REG_ALLOC_ORDER): Adjust.
27940 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
27941 (REG_CLASS_CONTENTS): Adjust.
27942 (RETURN_ADDR_RTX): Change comment.
27943 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
27945 (REGISTER_NAMES): Adjust.
27946 (ADDITIONAL_REGISTER_NAMES): Adjust.
27947 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27949 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27951 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
27953 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
27954 (DWARF_FRAME_REGISTERS): Adjust.
27955 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
27957 (REG_ALLOC_ORDER): Adjust.
27958 (enum reg_class): Delete SPR_REGS.
27959 (REG_CLASS_NAMES): Delete SPR_REGS.
27960 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
27961 (REGISTER_NAMES): Adjust.
27962 (ADDITIONAL_REGISTER_NAMES): Adjust.
27963 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
27964 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
27965 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
27966 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
27967 (htm_spr_regno): Delete.
27968 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
27970 (rs6000_dbx_register_number): Adjust.
27972 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27974 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
27976 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
27978 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
27979 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
27981 2019-05-06 Jakub Jelinek <jakub@redhat.com>
27983 PR tree-optimization/88709
27984 PR tree-optimization/90271
27985 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
27986 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
27987 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
27989 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
27990 of the store merging group is larger than
27991 PARAM_STORE_MERGING_MAX_SIZE parameter.
27992 (split_group): Add bzero_first argument. If set, always emit first
27993 the first store which must be = {} of the whole area and then for the
27994 rest of the stores consider all zero bytes as paddings.
27995 (imm_store_chain_info::output_merged_store): Check if first store
27996 is = {} of the whole area and if yes, determine which setting of
27997 bzero_first for split_group gives smaller number of stores. Adjust
27998 split_group callers.
27999 (lhs_valid_for_store_merging_p): Allow decls.
28000 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
28002 (pass_store_merging::process_store): Likewise.
28004 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
28007 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
28008 handling of V1TImode.
28010 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
28013 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
28014 and enable_frame_pointer ...
28015 * configure.ac: ... here. Update help strings for
28016 --enable-frame-pointer.
28017 * configure: Regenerate.
28018 * config/i386/i386-options.c (ix86_option_override_internal): Remove
28019 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
28020 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
28021 (USE_X86_64_FRAME_POINTER): Ditto.
28023 2019-05-06 Martin Liska <mliska@suse.cz>
28025 * config.gcc: Append to target_gtfiles and fix indentation.
28027 2019-05-06 Richard Biener <rguenther@suse.de>
28029 PR tree-optimization/90358
28030 * tree-vect-stmts.c (get_group_load_store_type): Properly
28031 detect unused upper half of load.
28032 (vectorizable_load): Likewise.
28034 2019-05-06 Richard Biener <rguenther@suse.de>
28036 PR tree-optimization/88828
28037 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
28038 (simplify_vector_constructor): ...here. Handle constants in
28041 2019-05-06 Richard Biener <rguenther@suse.de>
28043 PR tree-optimization/90328
28044 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
28045 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
28046 is valid in the loop nest before using it.
28047 (initialize_data_dependence_relation): Adjust.
28048 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
28049 loop as loop-nest to dr_may_alias_p.
28051 2019-05-06 Richard Biener <rguenther@suse.de>
28053 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
28055 2019-05-06 Richard Biener <rguenther@suse.de>
28057 PR tree-optimization/90316
28058 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
28059 compute target on demand.
28060 (get_continuation_for_phi): Remove code walking stmts to
28061 get to a target virtual operand which could end up being
28064 2019-05-06 Martin Liska <mliska@suse.cz>
28067 * config/i386/i386-options.c (ix86_option_override_internal): Error only
28068 when -mabi is selected to a non-default version.
28070 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
28071 Martin Liska <mliska@suse.cz>
28073 * Makefile.in: Add lto-dump.texi.
28074 * cgraph.h: Add new functions get_visibility_string and
28075 get_symtab_type_string.
28076 * doc/gcc.texi: Include lto-dump section.
28077 * doc/lto-dump.texi: New file.
28078 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
28079 (parse_dump_option): Factor out this function.
28080 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
28081 (parse_dump_option): Export the function.
28082 * symtab.c (symtab_node::get_visibility_string): New function.
28083 (symtab_node::get_symtab_type_string): Likewise.
28085 2019-05-06 Martin Liska <mliska@suse.cz>
28087 * config/i386/i386-builtins.c: New file.
28088 * config/i386/i386-builtins.h: New file.
28089 * config/i386/i386-expand.c: New file.
28090 * config/i386/i386-expand.h: New file.
28091 * config/i386/i386-features.c: New file.
28092 * config/i386/i386-features.h: New file.
28093 * config/i386/i386-options.c: New file.
28094 * config/i386/i386-options.h: New file.
28095 * config.gcc: Add new files into extra_objs and
28097 * config/i386/i386.c: Split content of the file
28098 into newly introduced files.
28099 * config/i386/i386.h: Declare common variables
28101 * config/i386/t-i386: Define dependencies for new files.
28103 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
28106 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
28107 Restrict 'all' variant to 32-bit configurations.
28108 (unaligned_loadhiu): Likewise.
28109 (unaligned_storehi): Likewise.
28110 (unaligned_storesi): Likewise.
28111 (unaligned_loadhis): Disable when compiling for thumb1.
28113 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
28115 PR tree-optimization/90269
28116 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
28119 2019-05-03 Martin Liska <mliska@suse.cz>
28121 * hash-map.h: Add is_empty function.
28122 * hash-set.h: Likewise.
28123 * hash-table.h: Likewise.
28124 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
28125 elements () == 0 (and similar usages).
28126 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
28127 * gimplify.c (gimplify_bind_expr): Likewise.
28128 (gimplify_switch_expr): Likewise.
28129 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
28130 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
28131 * postreload-gcse.c (dump_hash_table): Likewise.
28132 (gcse_after_reload_main): Likewise.
28133 * predict.c (combine_predictions_for_bb): Likewise.
28134 * tree-parloops.c (reduction_phi): Likewise.
28135 (separate_decls_in_region): Likewise.
28136 (transform_to_exit_first_loop): Likewise.
28137 (gen_parallel_loop): Likewise.
28138 (gather_scalar_reductions): Likewise.
28139 (try_create_reduction_list): Likewise.
28140 * var-tracking.c (dump_vars): Likewise.
28141 (emit_notes_for_changes): Likewise.
28142 (vt_emit_notes): Likewise.
28144 2019-05-03 Richard Biener <rguenther@suse.de>
28146 PR tree-optimization/90316
28147 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
28150 2019-05-03 Richard Biener <rguenther@suse.de>
28152 * tree-vect-stmts.c (get_group_load_store_type): Avoid
28153 peeling for gaps by loading only lower halves of vectors
28155 (vectorizable_load): Likewise.
28157 2019-05-03 Richard Biener <rguenther@suse.de>
28159 PR middle-end/89518
28160 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
28162 2019-05-03 Richard Biener <rguenther@suse.de>
28164 PR middle-end/87314
28165 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
28166 Handle STRING_CST vs DECL or STRING_CST.
28168 2019-05-03 Richard Biener <rguenther@suse.de>
28170 PR tree-optimization/88963
28171 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
28172 vector loads feeding only BIT_FIELD_REFs to component
28173 loads. Rewrite stores fed by CONSTRUCTORs to component
28176 2019-05-03 Jakub Jelinek <jakub@redhat.com>
28178 * opts.h (finish_options): Remove lang_mask argument.
28179 (print_help, help_option_argument): Declare.
28180 * opts.c (print_help): Remove forward declaration, no longer static.
28181 (finish_options): Remove lang_mask argument, don't call print_help
28183 * opts-global.c (decode_options): Adjust finish_option caller, call
28186 PR tree-optimization/90303
28187 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
28188 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
28190 2019-05-03 Richard Biener <rguenther@suse.de>
28192 PR tree-optimization/89698
28193 * gimple-fold.c (canonicalize_constructor_val): Early out
28194 for constants, handle unfolded INTEGER_CSTs as they appear in
28195 C++ virtual table ctors.
28197 2019-05-03 Richard Biener <rguenther@suse.de>
28199 * passes.c (execute_function_todo): Remove dead code.
28201 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28203 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
28204 the internal register number, for any "real" register.
28206 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
28208 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
28209 correct numbers for TFHAR, TFIAR, TEXASR.
28211 2019-05-02 Richard Biener <rguenther@suse.de>
28213 PR tree-optimization/89653
28214 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
28215 update-address-taken before the pass.
28216 * passes.def (pass_tree_loop_init): Put comment before it.
28218 2019-05-02 Richard Biener <rguenther@suse.de>
28220 PR tree-optimization/89509
28221 * tree-ssa-structalias.c (compute_dependence_clique): Look
28222 at the first subvar when determining whether it is restrict.
28224 2019-05-02 Richard Biener <rguenther@suse.de>
28226 PR tree-optimization/90273
28227 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
28228 useless debug stmts.
28230 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
28232 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
28234 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
28236 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
28237 VEC_COND_EXPR be inserted to emulate a conditional internal function.
28238 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
28239 (vectorizable_reduction): Use the functions above to vectorize in a
28240 fully masked loop codes that don't have a conditional internal
28243 2019-05-02 Martin Liska <mliska@suse.cz>
28245 * cgraphclones.c: Call valid_attribute_p with 1 for
28247 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
28248 it's for target attribute.
28249 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
28250 Add new boolean argument.
28251 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
28253 (ix86_valid_target_attribute_tree): Pass target_clone_attr
28254 to ix86_valid_target_attribute_inner_p.
28255 (ix86_valid_target_attribute_p): Pass flags argument to
28256 ix86_valid_target_attribute_inner_p.
28257 (get_builtin_code_for_version): Use 0 as it's target attribute.
28259 2019-05-02 Martin Liska <mliska@suse.cz>
28261 * gcc.c (process_command): Add dummy file only
28263 * opts-global.c (decode_options): Pass lang_mask.
28264 * opts.c (print_help): New function.
28265 (finish_options): Print --help if help_option_argument
28267 (common_handle_option): Factor out content of OPT__help_
28269 * opts.h (finish_options): Add new argument.
28271 2019-05-02 Martin Liska <mliska@suse.cz>
28274 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
28275 With -minline-all-stringops use inline expansion using 4B loop.
28276 * doc/invoke.texi: Document the change of
28277 -minline-all-stringops.
28279 2019-05-01 Jeff Law <law@redhat.com>
28281 PR tree-optimization/88797
28282 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
28283 PHI feeds a conditional on the RHS of an assignment.
28285 2019-04-30 Andrew Waterman <andrew@sifive.com>
28286 Jim Wilson <jimw@sifive.com>
28288 * config/riscv/constraints.md (L): New.
28289 * config/riscv/predicates.md (lui_operand): New.
28290 (sfb_alu_operand): New.
28291 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
28292 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
28293 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
28294 * config/riscv/risc.md (type): Add sfb_alu.
28295 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
28296 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
28297 (branch_zero<mode>): Delete.
28298 (mov<mode>cc): New.
28299 (mov<GPR:mode><X:mode>cc): Likewise.
28300 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
28302 2019-04-30 Nathan Sidwell <nathan@acm.org>
28304 * tree.h (MARK_TS_EXP): New.
28306 2019-04-30 Martin Liska <mliska@suse.cz>
28308 * opts.c (enable_warning_as_error): Provide hints
28309 for unknown options.
28311 2019-04-30 Martin Liska <mliska@suse.cz>
28314 * doc/invoke.texi: Add missing dash for gas-locview-support
28315 and gno-as-locview-support.
28317 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28320 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
28321 whitespace at the start of target attribute string.
28323 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28326 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
28327 Define __ARM_FEATURE_ATOMICS.
28329 2019-04-30 Martin Liska <mliska@suse.cz>
28331 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
28332 into built_in_function enum. Remove code for endp == 2 and
28333 use BUILT_IN_* constants.
28334 (gimple_fold_builtin): Call the function with fcode.
28336 2019-04-30 Martin Liska <mliska@suse.cz>
28338 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
28339 DECL_FUNCTION_CODE into ix86_builtins enum before
28340 the switch statement.
28342 2019-04-30 Jakub Jelinek <jakub@redhat.com>
28344 PR tree-optimization/89475
28345 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
28348 2019-04-30 Martin Liska <mliska@suse.cz>
28350 PR translation/90274
28351 * opts.c (print_filtered_help): Wrap string in _(...).
28353 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
28355 PR tree-optimization/90240
28357 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28359 PR tree-optimization/90078
28360 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28361 checks for infinite_cost overflow.
28363 2019-04-29 Jeff Law <law@redhat.com>
28365 * passes.def: Move -Wrestrict pass after copy propagation.
28367 2019-04-29 Maya Rashish <coypu@sdf.org>
28369 * config.gcc (default_gnu_indirect_function): Default to yes
28370 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
28371 sparc*-*-netbsd*, x86_64-*-netbsd*.
28373 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
28375 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
28376 where cond2 is NE_EXPR.
28377 (is_value_included_in): Update comment.
28379 2019-04-29 Richard Biener <rguenther@suse.de>
28381 PR tree-optimization/90278
28382 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
28383 EH on comparison simplification.
28385 2019-04-29 Jason Merrill <jason@redhat.com>
28387 PR c++/82081 - tail call optimization breaks noexcept
28388 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
28389 nothrow function to a might-throw function into a tail call.
28391 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
28393 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
28394 (DDR_INNER_LOOP): Likewise.
28395 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
28396 (initialize_data_dependence_relation): Likewise.
28397 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
28399 2019-04-29 Jakub Jelinek <jakub@redhat.com>
28401 PR rtl-optimization/90257
28402 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
28406 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28410 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28413 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28416 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28418 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28420 2019-04-29 Richard Biener <rguenther@suse.de>
28422 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
28425 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
28427 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
28428 varasm.h, and netbsd-protos.h.
28430 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
28433 * config/i386/i386-protos.h (ix86_data_alignment): Change
28434 the second argument type to unsigned int.
28435 * config/i386/i386.c (ix86_data_alignment): Change "align"
28436 argument type to unsigned int.
28438 2019-04-27 Martin Liska <mliska@suse.cz>
28440 PR middle-end/90258
28441 * opt-suggestions.c (option_proposer::build_option_suggestions):
28442 When get_valid_option_values returns empty values, add the
28443 misspelling candidate.
28445 2019-04-26 Jim Wilson <jimw@sifive.com>
28447 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
28449 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
28450 Pass orig_mode to riscv_build_integer.
28451 (riscv_split_integer): Pass mode to riscv_move_integer.
28452 (riscv_legitimize_const_move): Likewise.
28453 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
28454 promoted_mode. Replace force_reg call with code to load constant into
28455 promoted reg and then subreg it for the store.
28456 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
28457 riscv_move_integer.
28459 2018-04-26 Eugene Sharygin <eush@ispras.ru>
28461 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
28464 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
28466 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
28467 commentary about the encoding of precision.
28469 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
28471 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
28472 * config/i386/t-freebsd64: New file.
28473 * config.gcc: Add the t-freebsd64 for multilib support.
28475 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
28477 * doc/extend.texi (vector_size): Add missing comma after @xref.
28479 2019-04-25 Jakub Jelinek <jakub@redhat.com>
28481 * BASE-VER: Set to 10.0.0.
28483 2019-04-25 Richard Biener <rguenther@suse.de>
28485 PR middle-end/89765
28486 * gimplify.c (gimplify_expr): Avoid turning a lvalue
28487 VIEW_CONVERT_EXPR into one operating on an rvalue.
28489 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
28492 * config/i386/i386.c (feature_priority): Moved to file scope.
28493 (processor_features): Likewise.
28494 (processor_model): Likewise.
28495 (_arch_names_table): Likewise.
28496 (arch_names_table): Likewise.
28497 (_feature_list): Removed.
28498 (feature_list): Likewise.
28499 (_isa_names_table): Moved to file scope. Add priority.
28500 (isa_names_table): Likewise.
28501 (get_builtin_code_for_version): Replace feature_list with
28502 isa_names_table. Update error message for P_ZERO priority.
28504 2019-04-25 Richard Biener <rguenther@suse.de>
28506 * tree-pass.h (make_pass_phi_only_cprop): Remove.
28507 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
28509 2019-04-24 Jeff Law <law@redhat.com>
28511 PR tree-optimization/90037
28512 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
28513 * passes.def: Replace all instance of phi-only cprop with the
28514 lattice propagator. Move propagation pass from after erroneous
28515 path isolation to before erroneous path isolation.
28516 * tree-ssa-phionlycprop.c: Remove.
28518 2019-04-24 Richard Biener <rguenther@suse.de>
28520 PR middle-end/90213
28521 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
28522 by size and BITS_PER_UNIT on poly-wide-ints.
28524 2019-04-25 Richard Biener <rguenther@suse.de>
28526 PR middle-end/90194
28527 * match.pd: Add pattern to simplify view-conversion of an
28530 2019-04-24 Clement Chigot <clement.chigot@atos.net>
28532 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
28533 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
28534 for Go on 32 bit AIX.
28535 * config/rs6000/aix72.h: Likewise.
28537 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28540 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
28541 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
28543 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
28546 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
28547 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
28548 for restored hard frame pointer.
28549 (s390_sched_dependencies_evaluation): Implement new target hook.
28550 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
28552 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
28554 * config/arc/arc-options.def: Fix typos and spelling mistakes.
28555 * config/arc/arc.c (arc_init): Cleanup warning message.
28556 (arc_override_options): Likewise.
28558 2019-04-24 Jakub Jelinek <jakub@redhat.com>
28561 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
28562 a register if both if_true and if_false are MEMs.
28564 PR tree-optimization/90208
28565 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
28566 after labels of new_bb, not before them.
28568 PR tree-optimization/90211
28569 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
28570 which are not SSA_NAMEs.
28572 2018-04-23 Sudakshina Das <sudi.das@arm.com>
28574 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
28576 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
28578 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28580 PR rtl-optimization/87979
28581 * modulo-sched.c (sms_schedule): Start ii value "mii" should
28584 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
28586 PR rtl-optimization/84032
28587 * modulo-sched.c (ps_insn_find_column): Change condition so that
28588 branch will always be the last insn in a row inside partial
28591 2019-04-23 Richard Biener <rguenther@suse.de>
28594 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
28595 dest_single_pred_p argument.
28596 (remove_forwarder_block): Adjust.
28597 (remove_forwarder_block_with_phi): Likewise.
28599 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28600 Bernd Edlinger <bernd.edlinger@hotmail.de>
28601 Jakub Jelinek <jakub@redhat.com>
28604 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
28605 if used with general-regs-only.
28606 (arm_conditional_register_usage): Don't add non-general regs if
28608 (arm_valid_target_attribute_rec): Handle general-regs-only.
28609 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
28611 (TARGET_HARD_FLOAT_SUB): Define.
28612 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
28613 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
28614 (TARGET_REALLY_IWMMXT2): Likewise.
28615 * config/arm/arm.opt: Add -mgeneral-regs-only.
28616 * doc/extend.texi: Document ARM general-regs-only target.
28617 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
28619 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28621 PR tree-optimization/90078
28622 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
28623 checks for infinite_cost overflow.
28625 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
28627 PR tree-optimization/90021
28628 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
28629 and check univariate against it.
28630 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
28631 * tree-data-ref.c (add_other_self_distances): Pass new argument.
28633 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
28637 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
28640 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
28643 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
28645 * lra-spills.c (lra_final_code_change): Remove useless move insns.
28647 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
28649 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
28650 names using operand format, rather than hard-wired.
28651 (speculation_barrier): Likewise.
28653 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
28655 PR tree-optimization/88055
28656 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
28657 (gen_one_condition): Use it if !HONOR_NANS.
28659 2019-04-19 Jakub Jelinek <jakub@redhat.com>
28661 PR middle-end/90139
28662 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
28663 assign_temp instead of gen_reg_rtx.
28665 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
28667 PR translation/90118
28668 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28669 Add missing space before %<.
28671 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
28673 PR rtl-optimization/87871
28674 * ira-lives.c (make_object_dead): Don't add conflicts to
28675 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
28677 2019-04-18 Martin Sebor <msebor@redhat.com>
28679 PR middle-end/89797
28680 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
28681 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
28682 assuming type size fits in SHWI.
28684 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
28687 * ipa-inline.c (flatten_function): New parameter UPDATE.
28688 (ipa_inline, early_inliner): Use it.
28690 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28692 * fold-const.c (int_const_binop): Return early on failure.
28694 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
28696 PR middle-end/85164
28697 * combine.c (force_int_to_mode): Cast the argument rather than
28698 the result of known_alignment.
28699 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
28701 2019-04-18 Richard Biener <rguenther@suse.de>
28704 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
28706 (remove_forwarder_block): ... here.
28707 (remove_forwarder_block_with_phi): Also move debug stmts here.
28709 2019-04-18 Jakub Jelinek <jakub@redhat.com>
28711 PR translation/79183
28712 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
28713 inform where appropriate.
28715 2019-04-18 Richard Biener <rguenther@suse.de>
28717 * tree.c (get_qualified_type): Put found type variants at the
28718 head of the variant list.
28720 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28722 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
28724 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
28727 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
28728 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
28729 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
28730 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
28731 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
28733 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
28735 * ira-conflicts.c (print_allocno_conflicts): Always print something,
28736 even for allocno's with no conflicts.
28737 (print_conflicts): Print an extra newline.
28739 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28741 * auto-inc-dec.c (attempt_change): Set the alignment of the
28742 temporary memory to that of the original.
28744 2019-04-17 Joao Moreira <jmoreira@suse.de>
28746 * targhooks.c (default_print_patchable_function_entry): Emit
28747 __patchable_function_entries section with writable flags to allow
28748 relocation resolution.
28750 2019-04-17 Jonny Grant <jg@jguk.org>
28752 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
28754 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28756 PR middle-end/90095
28757 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
28758 on lowpart SUBREGs.
28760 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
28762 * config/arc/arc.c (arc_init): Format diagnostic string.
28763 (arc_override_options): Likewise.
28764 (check_if_valid_regno_const): Likewise.
28765 (arc_reorg): Likewise.
28767 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
28770 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
28772 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
28774 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
28775 (*movdi_update1): Use Pmode.
28776 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
28777 (movdi_<mode>_update_stack): Rename to ...
28778 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
28780 (*movsi_update1): Use Pmode.
28781 (*movsi_update2): Use Pmode.
28782 (movsi_update): Rename to ...
28783 (movsi_<mode>_update): ... this. Use Pmode.
28784 (movsi_update_stack): Fix condition.
28785 (*movhi_update1): Use Pmode. Fix argument to
28786 avoiding_indexed_address_p.
28787 (*movhi_update2): Ditto.
28788 (*movhi_update3): Ditto.
28789 (*movhi_update4): Ditto.
28790 (*movqi_update1): Ditto.
28791 (*movqi_update2): Ditto.
28792 (*movqi_update3): Ditto.
28793 (*movsf_update1, *movdf_update1): Merge, rename to...
28794 (*mov<mode>_update1): This. Use Pmode. Fix argument to
28795 avoiding_indexed_address_p. Add "size" attribute.
28796 (*movsf_update2, *movdf_update2): Merge, rename to...
28797 (*mov<mode>_update2): This. Ditto.
28798 (*movsf_update3): Use Pmode. Fix argument to
28799 avoiding_indexed_address_p.
28800 (*movsf_update4): Ditto.
28801 (allocate_stack): Simplify condition. Adjust pattern names.
28803 2019-04-17 Jakub Jelinek <jakub@redhat.com>
28806 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
28807 whitespace at the start of target attribute string.
28809 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
28812 * config/rs6000/power9.md: Add store forwarding bypass.
28814 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
28817 * valtrack.c (dead_debug_insert_temp): Reset debug references
28818 to the return value of a call being removed.
28820 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28822 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
28823 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
28824 implement target hook.
28825 (arc_memory_move_cost): New function.
28826 (TARGET_REGISTER_MOVE_COST): Define.
28827 (TARGET_MEMORY_MOVE_COST): Likewise.
28828 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
28829 (MEMORY_MOVE_COST): Likewise.
28831 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28833 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
28834 (sibcall_value_insn): Likewise.
28835 * config/arc/constraints.md (Rs5): Remove.
28837 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28839 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
28840 for last two fake registers.
28841 (arc_conditional_register_usage): Make sure fake frame and arg
28842 pointer regs are in general regs class.
28843 (FRAME_POINTER_MASK): Remove.
28844 (RETURN_ADDR_MASK): Remove.
28845 (arc_must_save_register): Use hard frame regnum.
28846 (frame_restore_reg): Use hard_frame_pointer_rtx.
28847 (arc_save_callee_saves): Likewise.
28848 (arc_restore_callee_saves): Likewise.
28849 (arc_save_callee_enter): Likewise.
28850 (arc_restore_callee_leave): Likewise.
28851 (arc_save_callee_milli): Likewise.
28852 (arc_eh_return_address_location): Likewise.
28853 (arc_check_multi): Use hard frame regnum.
28854 (arc_can_eliminate): Likewise.
28855 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
28856 for register allocator.
28857 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
28858 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
28859 (FRAME_POINTER_REGNUM): Change it to a fake register.
28860 (HARD_FRAME_POINTER_REGNUM): Defined.
28861 (ARG_POINTER_REGNUM): Change it to a new fake register.
28862 (ELIMINABLE_REGS): Update.
28863 (REGISTER_NAMES): Update names.
28864 * config/arc/arc.md (LP_START): Remove.
28865 (LP_END): Likewise.
28866 (shift_si3_loop): Update pattern.
28868 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
28870 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
28871 to avoid delay slot scheduling.
28872 (arc_must_save_register): Don't save SP.
28873 * config/arc/arc.md (stack_tie): Remove.
28874 (UNSPEC_ARC_STKTIE): Likewise.
28876 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
28877 Shiva Chen <shiva0217@gmail.com>
28879 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
28880 code gen with large shift amount.
28882 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
28884 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
28887 2019-04-16 Jakub Jelinek <jakub@redhat.com>
28890 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
28891 print -m64/-mx32/-m32 if it is true.
28892 (ix86_debug_options, ix86_function_specific_print): Pass true as
28893 ADD_ABI_P to ix86_target_string.
28894 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
28895 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
28896 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
28898 PR rtl-optimization/90082
28899 * dce.c (can_delete_call): New function.
28900 (deletable_insn_p, mark_insn): Use it.
28902 PR tree-optimization/90090
28903 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
28905 (is_division_by_square): Likewise. Formatting fix.
28907 2019-04-16 Richard Biener <rguenther@suse.de>
28909 PR tree-optimization/56049
28910 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
28911 equality check if alias-set zero will prevail.
28913 2019-04-15 Jeff Law <law@redhat.com>
28915 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
28916 size and alignment as unsigned.
28918 2019-04-15 Richard Biener <rguenther@suse.de>
28921 * tree-loop-distribution.c (destroy_loop): Preserve correct
28924 2019-04-15 Richard Biener <rguenther@suse.de>
28926 PR tree-optimization/90071
28927 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
28928 abnormal operands from def stmts.
28930 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
28932 PR rtl-optimization/89794
28933 * combine.c (count_auto_inc): New function.
28934 (try_combine): Count how many auto_inc expressions there were in the
28935 original instructions. Ensure we have the same number in the new
28936 instructions. Remove the code that tried to ensure auto_inc side
28937 effects on i1 and i0 are not lost.
28939 2019-04-15 Richard Biener <rguenther@suse.de>
28942 * tree.h (auto_var_p): Declare.
28943 * tree.c (auto_var_p): New function, split out from ...
28944 (auto_var_in_fn_p): ... here.
28945 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
28947 (new_var_info): Initialize it.
28948 (set_uids_in_ptset): Also set the shadow variable uid if required.
28949 (ipa_pta_execute): Postprocess points-to solutions assigning
28950 shadow variable uids for locals that may reach their containing
28951 function recursively.
28952 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
28953 assert but instead check whether the points-to solution is
28956 2019-04-15 Martin Jambor <mjambor@suse.cz>
28959 * cgraph.c (clone_of_p): Loop over clone chain for each step in
28962 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28964 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
28966 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
28967 Kito Cheng <kito.cheng@gmail.com>
28968 Shiva Chen <shiva0217@gmail.com>
28970 * config/nds32/nds32-md-auxiliary.c
28971 (nds32_legitimize_pic_address): Use new PIC pattern.
28972 (nds32_legitimize_tls_address): Use new TLS pattern.
28973 (nds32_output_symrel): New.
28974 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
28975 (nds32_alloc_relax_group_id): Ditto.
28976 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
28977 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
28979 (nds32_group_tls_insn): Ditto.
28980 (nds32_group_float_insns): Ditto.
28981 * config/nds32/nds32.md (tls_le): New.
28984 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
28986 * configure: Add nds32 target for dwarf2 debug_line checking.
28987 * configure.ac: Regenerated.
28989 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
28992 * ipa-devirt.c (skip_in_fields_list_p): New.
28993 (odr_types_equivalent_p): Use it.
28995 2019-04-13 Jakub Jelinek <jakub@redhat.com>
28998 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
28999 instead of strncmp when checking for thumb and arm. Formatting fixes.
29001 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
29003 * doc/install.texi: Document --with-target-system-zlib.
29005 2019-04-12 Martin Sebor <msebor@redhat.com>
29011 * targhooks.c (default_vector_alignment): Avoid assuming
29012 argument fits in SHWI.
29013 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
29014 a shift expression.
29015 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
29017 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29019 PR rtl-optimization/89965
29020 * dce.c: Include rtl-iter.h.
29021 (struct check_argument_load_data): New type.
29022 (check_argument_load): New function.
29023 (find_call_stack_args): Check for loads from stack slots still tracked
29024 in sp_bytes and punt if any is found.
29026 * config/mips/loongson-mmiintrin.h: Fix up #error message.
29028 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
29030 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
29031 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
29033 2019-04-12 Martin Liska <mliska@suse.cz>
29035 PR middle-end/89970
29036 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
29038 (separate_attrs): Handle multiple 'default's.
29039 (expand_target_clones): Rework error handling code.
29041 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
29044 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
29045 mode of vector rather than mode of destination for move instruction.
29046 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
29047 Use QI inner mode with V16QI vector mode.
29049 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29052 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
29053 "invalid %%t operand" in output_operand_lossage message.
29055 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
29057 * config/s390/predicates.md (permute_pattern_operand): New
29059 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
29060 operand for the permute pattern.
29061 ("*vec_perm<mode>"): New insn definition.
29062 ("bswap<mode>"): Generate the permute pattern operand in the
29063 expander and perform the operand reloads for pre arch13 level
29065 ("*bswap<mode>_emu"): Rename to ...
29066 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
29067 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
29068 Add the USE operand for the permute pattern.
29069 ("*vec_set_bswap_vec<mode>"): Likewise.
29071 2019-04-12 Jakub Jelinek <jakub@redhat.com>
29074 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
29075 and gcc_unreachable if it fails, just call tree_to_uhwi which
29076 verifies that too. Test TREE_CHAIN instead of list_length > 1.
29077 Start warning message with a lower-case letter. Formatting fixes.
29079 PR rtl-optimization/90026
29080 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
29081 successors, look for BARRIERs inside of the whole BB_FOOTER chain
29082 rather than just at the start of it. If e->src BB_FOOTER is not NULL
29083 in cfglayout mode, use emit_barrier_after_bb.
29085 2018-04-11 Steve Ellcey <sellcey@marvell.com>
29087 PR rtl-optimization/87763
29088 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
29091 2019-04-11 Tom de Vries <tdevries@suse.de>
29093 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
29094 max macro using statement expression.
29096 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
29098 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
29099 * xcoffout.c (xcoff_private_rodata_section_name): Define.
29100 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
29101 read_only_private_data_section using xcoff_private_rodata_section_name.
29102 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
29104 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
29107 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
29109 2019-04-11 Jakub Jelinek <jakub@redhat.com>
29111 PR rtl-optimization/89965
29112 * dce.c (sp_based_mem_offset): New function.
29113 (find_call_stack_args): Use sp_based_mem_offset.
29115 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
29117 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
29119 2019-04-11 Richard Biener <rguenther@suse.de>
29121 PR tree-optimization/90020
29122 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
29123 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
29124 * tree-ssa-pre.c (compute_avail): Use it to not put
29125 possibly trapping references after a call that might not
29126 return into EXP_GEN.
29127 * gcse.c (compute_hash_table_work): Do not elide
29128 marking a block containing a call if the call might not
29131 2019-04-11 Richard Biener <rguenther@suse.de>
29133 PR tree-optimization/90018
29134 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
29135 Test both SLP and interleaving variants.
29137 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
29139 * config/s390/8561.md: New file.
29140 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29141 Add arch13 cpu model.
29142 * config/s390/s390-opts.h (enum processor_type): Likewise.
29143 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
29144 (s390_get_unit_mask): Likewise.
29145 (s390_is_fpd): Likewise.
29146 (s390_is_fxd): Likewise.
29147 * config/s390/s390.h (s390_tune_attr): Likewise.
29148 * config/s390/s390.md: Include arch13 pipeline description.
29149 * config/s390/s390.opt: Add arch13.
29151 2018-04-10 Steve Ellcey <sellcey@marvell.com>
29153 PR rtl-optimization/87763
29154 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
29156 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
29158 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
29160 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
29161 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
29162 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
29163 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
29165 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
29167 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
29168 "Although" in -fipa-icf documentation.
29170 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
29171 of using multiple -g options.
29173 2019-04-10 Martin Liska <mliska@suse.cz>
29175 PR gcov-profile/89959
29176 * doc/gcov.texi: Make documentation of -x option
29179 2019-04-10 Richard Biener <rguenther@suse.de>
29181 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
29183 (DR_GROUP_SAME_DR_STMT): Remove.
29184 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
29185 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
29186 replace with assert.
29187 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
29188 (vect_record_grouped_load_vectors): Remove unreachable code.
29190 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
29193 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
29194 obsolete reference to N.
29196 2019-04-10 Jakub Jelinek <jakub@redhat.com>
29198 PR middle-end/90025
29199 * expr.c (store_expr): Set properly size on the MEM passed to
29203 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
29204 with strlen in between hostsz-3 and hostsz-1 inclusive when no
29205 translation is needed, and when translation is needed, only append
29206 ... if the string length is hostsz or more bytes long. Avoid using
29209 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
29212 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
29213 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
29215 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
29216 differences directly.
29217 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
29219 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29221 PR translation/90011
29222 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29224 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
29226 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
29227 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
29228 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
29229 trailing space from -gsplit-dwarf diagnostics.
29231 PR tree-optimization/89998
29232 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
29233 instead of integer_type_node if possible, don't add ranges if return
29234 type is not compatible with int.
29235 * gimple-fold.c (gimple_fold_builtin_sprintf,
29236 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
29239 2019-04-09 Martin Liska <mliska@suse.cz>
29241 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
29242 * doc/install.texi: Document the new config.
29244 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
29246 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
29247 use gimple_expr_type for load and store calls. Skip over the
29248 condition argument in a conditional internal function.
29249 Protect use of TREE_INT_CST_LOW.
29251 2019-04-09 Jakub Jelinek <jakub@redhat.com>
29254 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
29255 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
29256 trailing period from it too.
29258 2019-04-08 wu yuan <wuyuan5@huawei.com>
29260 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
29261 * config/aarch64/aarch64.md: Add "tsv110.md".
29262 * config/aarch64/tsv110.md: New file.
29264 2019-04-08 Richard Biener <rguenther@suse.de>
29266 PR tree-optimization/90006
29267 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29270 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
29273 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
29275 (fma_root_node): Likewise.
29276 (func_fma_steering): Likewise.
29278 2019-04-08 Jakub Jelinek <jakub@redhat.com>
29280 PR rtl-optimization/89865
29281 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
29283 PR rtl-optimization/89865
29284 * config/i386/i386.md
29285 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
29286 numbers not to clash with the additional operands[4].
29287 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
29288 with extra register copy in the middle.
29290 2019-04-08 Martin Liska <mliska@suse.cz>
29292 PR gcov-profile/89961
29293 * doc/gcov.texi: Document data_file.
29294 * gcov.c (generate_results): Add data_info into JSON output.
29296 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
29298 PR tree-optimization/89725
29299 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
29300 loop's chrec as invariant symbol.
29301 * tree-chrec.h (chrec_contains_symbols): New parameter.
29302 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
29303 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
29304 function of loops not in DDR's loop_nest.
29305 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
29307 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
29310 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
29313 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
29316 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
29317 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
29319 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
29321 * sched-deps.c (sched_macro_fuse_insns): Check return value of
29322 targetm.fixed_condition_code_regs.
29324 2019-04-05 Richard Biener <rguenther@suse.de>
29328 * tree-cfgcleanup.c (remove_forwarder_block): Always move
29329 debug bind stmts but reset them if they are not valid at the
29332 2019-04-05 Martin Liska <mliska@suse.cz>
29334 PR translation/89936
29335 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
29336 order to wrap keywords or arguments.
29337 * collect2.c (main): Likewise.
29338 (scan_prog_file): Likewise.
29339 (scan_libraries): Likewise.
29340 * common/config/riscv/riscv-common.c
29341 (riscv_subset_list::parsing_subset_version): Likewise.
29342 (riscv_subset_list::parse_std_ext): Likewise.
29343 * config/aarch64/aarch64.c (aarch64_override_options_internal):
29345 * config/arm/arm.c (arm_option_override): Likewise.
29346 * config/cris/cris.c (cris_print_operand): Likewise.
29347 * config/darwin-c.c (darwin_pragma_options): Likewise.
29348 (darwin_pragma_unused): Likewise.
29349 (darwin_pragma_ms_struct): Likewise.
29350 * config/ft32/ft32.c (ft32_print_operand): Likewise.
29351 * config/i386/i386.c (print_reg): Likewise.
29352 (ix86_print_operand): Likewise.
29353 * config/i386/xm-djgpp.h: Likewise.
29354 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
29355 * config/m32c/m32c.c (m32c_option_override): Likewise.
29356 * config/msp430/msp430.c (msp430_option_override): Likewise.
29357 * config/nds32/nds32.c (nds32_option_override): Likewise.
29358 * config/nvptx/mkoffload.c (main): Likewise.
29359 * config/rx/rx.c (rx_print_operand): Likewise.
29360 (valid_psw_flag): Likewise.
29361 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
29362 (vms_pragma_nomember_alignment): Likewise.
29363 (vms_pragma_extern_model): Likewise.
29364 * lto-wrapper.c (compile_offload_image): Likewise.
29365 * omp-offload.c (oacc_parse_default_dims): Likewise.
29366 * symtab.c (symtab_node::verify_base): Likewise.
29367 * tlink.c (recompile_files): Likewise.
29368 (start_tweaking): Likewise.
29369 * tree-profile.c (parse_profile_filter): Likewise.
29371 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
29373 PR tree-optimization/89956
29374 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
29375 multiple negates of the same value.
29377 2019-04-04 Martin Sebor <msebor@redhat.com>
29379 PR middle-end/89957
29380 PR middle-end/89911
29381 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
29382 have the same precision since the function crashes otherwise.
29383 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
29384 has non-zero arguments.
29386 2019-04-04 Martin Sebor <msebor@redhat.com>
29388 PR middle-end/89934
29389 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
29390 out if the number of arguments is less than expected.
29392 2019-04-04 Jeff Law <law@redhat.com>
29394 PR rtl-optimization/89399
29395 * ree.c (combine_set_extension): Use single_set rather than
29396 digging into PATTERN for items on the candidate list.
29397 (combine_reaching_defs): Likewise.
29399 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
29401 PR rtl-optimization/46590
29402 * loop-invariant.c (find_defs): Move df_remove_problem and
29403 df_process_deferred_rescans to move_invariants.
29404 Move df_live_add_problem and df_live_set_all_dirty calls
29405 to move_invariants.
29406 (move_invariants): Likewise.
29407 (move_loop_invariants): Likewise, making the df_live calls
29408 conditional on -O. Remove the problem again if we added it
29411 2019-04-03 qing zhao <qing.zhao@oracle.com>
29413 PR tree-optimization/89730
29414 * ipa-inline.c (can_inline_edge_p): Delete the checking for
29415 -flive-patching=inline-only-static.
29416 (can_inline_edge_by_limits_p): Add the checking for
29417 -flive-patching=inline-only-static and grant always_inline
29418 even when -flive-patching=inline-only-static is specified.
29420 2019-04-03 Jeff Law <law@redhat.com>
29422 PR rtl-optimization/81025
29423 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
29425 2019-04-03 Richard Biener <rguenther@suse.de>
29427 PR tree-optimization/84101
29428 * tree-vect-stmts.c: Include explow.h for hard_function_value,
29429 regs.h for hard_regno_nregs.
29430 (cfun_returns): New helper.
29431 (vect_model_store_cost): When vectorizing a store to a decl
29432 we return and the function ABI returns in a multi-reg location
29433 account for the possible spilling that will happen.
29435 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
29437 * config/s390/s390.c (s390_legitimate_address_p): Reject long
29438 displacement addresses for vector mode operands.
29440 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
29442 * config/arc/arc.c (GMASK_LEN): Define.
29443 (arc_restore_callee_saves): Restore first blink when
29446 2019-04-03 Sudakshina Das <sudi.das@arm.com>
29448 * doc/extend.texi: Add deprecated comment on sign-return-address
29449 function attribute and add mbranch-protection.
29450 * doc/invoke.texi: Add bti to the options for mbranch-protection.
29452 2019-04-03 Richard Biener <rguenther@suse.de>
29455 * lto-wrapper.c (run_gcc): Avoid implicit rules making
29456 the all target phony.
29458 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
29462 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
29463 Return false for variable DImode shifts.
29464 (dimode_scalar_chain::compute_convert_gain): Do not handle
29465 register count operand in variable DImode shifts.
29466 (dimode_scalar_chain::make_vector_copies): Remove support to copy
29467 count argument of a variable shift instruction to a vector register.
29468 (dimode_scalar_chain::convert_reg): Remove support to convert
29469 count argument of a variable shift instruction.
29471 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29473 PR rtl-optimization/84206
29474 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
29475 iterating over loop headers.
29477 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
29479 PR rtl-optimization/85876
29480 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
29481 beyond the original fence.
29483 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
29485 * config.gcc: Mark spu* targets as deprecated/obsolete.
29487 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29489 * config/s390/s390-builtin-types.def: New builtin function type
29490 definitions. Remove unused types.
29491 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
29492 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
29493 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
29494 overloaded builtins.
29495 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
29496 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
29497 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
29498 (vec_double, vec_signed, vec_unsigned): Define to use the new
29499 overloaded builtins.
29500 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
29503 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29505 * config/s390/s390-builtin-types.def: New builtin function type
29507 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
29508 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
29509 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
29510 (s390_vstrszh, s390_vstrszf): New low-level builtins.
29511 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
29512 constant definitions.
29513 * config/s390/vecintrin.h (vec_search_string_cc)
29514 (vec_search_string_until_zero_cc): New builtin name definitions.
29515 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
29517 ("vec_vstrs<mode>"): New insn definition.
29519 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29521 * config/s390/s390-builtin-types.def: Add new builtin function
29523 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
29524 New overloaded builtins.
29525 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
29527 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
29528 (UNSPEC_VEC_SLDBYTE): ... this.
29529 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
29530 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
29532 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
29533 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
29534 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
29536 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29538 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
29539 New insn definition.
29540 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
29541 * config/s390/vector.md (V_HW_HSD): ... here.
29543 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29545 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
29546 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
29547 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
29548 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
29549 New insn definitions.
29551 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29553 * config/s390/s390-builtin-types.def: Add new builtin function type.
29554 * config/s390/s390-builtins.def: Add overloaded builtin
29555 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
29556 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
29557 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
29558 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
29559 ("eltswap<mode>"): New expander.
29560 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
29563 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29565 * config/s390/s390-builtin-types.def: Add new builtin function types.
29566 * config/s390/s390-builtins.def: Add overloaded builtin
29567 s390_vec_revb. Add low-level builtins for vlbr and vstbr
29569 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
29570 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
29571 ("bswap<mode>"): New expander.
29572 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
29574 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29576 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
29577 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
29578 vector builtin version number in __VEC__.
29580 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29582 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
29584 (SFSI): New mode attribute.
29585 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
29586 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
29588 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
29589 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
29590 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
29591 ("floatsi<mode>2"): Add wcefb instruction.
29593 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29595 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
29596 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
29598 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
29599 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
29600 support 32 bit fp-int conversions. Rename to ...
29601 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29602 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
29603 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
29604 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
29607 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29609 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
29610 if-then-else constructs if we can use the select instruction.
29611 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
29613 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29615 * config/s390/s390.md ("*popcountdi_arch13_cc")
29616 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
29618 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
29619 Append _z196 to make it ...
29620 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
29621 ("popcounthi2_z196"): ... this.
29622 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
29623 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
29625 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29627 * config/s390/s390.c (s390_canonicalize_comparison): Convert
29628 certain compares for arch13 in order to make use of the condition
29629 code result produced by the new instructions.
29630 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
29631 nxrk, and nxgrk instruction patterns.
29632 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
29633 (inv_no): Add new code iterator together with some attributes.
29634 ("*andc_split_<mode>"): Disable splitter for arch13.
29635 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
29636 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
29637 ("*<ANDOR:bitops_name>c<GPR:mode>")
29638 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
29639 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
29640 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
29641 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
29643 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
29645 * common/config/s390/s390-common.c (processor_flags_table): New
29647 * config.gcc: Support arch13 with the --with-arch= configure flag.
29648 * config/s390/driver-native.c (s390_host_detect_local_cpu):
29649 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
29650 * config/s390/s390.c (s390_get_sched_attrmask)
29651 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
29652 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
29653 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
29654 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
29655 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
29657 * config/s390/s390.opt: Support arch13 as processor type in
29658 command line options.
29660 2019-04-02 Martin Liska <mliska@suse.cz>
29662 PR translation/89912
29663 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
29664 Fix param description of graphite-max-arrays-per-scop.
29666 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
29668 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
29669 (ASAN_CC1_SPEC): Use it in 64-bit mode.
29670 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
29672 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29674 PR rtl-optimization/85412
29675 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
29676 sel_sched_region_1, not after.
29678 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29680 PR rtl-optimization/86928
29681 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
29682 compute_live if necessary.
29683 (sel_redirect_edge_and_branch): Likewise.
29685 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
29687 PR rtl-optimization/89865
29688 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
29689 register if it is a part of small class.
29691 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
29693 PR rtl-optimization/87273
29694 * sel-sched-ir.c (merge_fences): Remove assert.
29696 2019-04-01 Richard Biener <rguenther@suse.de>
29698 PR tree-optimization/46590
29699 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
29700 (dom_walker::m_reachability): Add in place of...
29701 (dom_walker::m_skip_unreachable_blocks): ...this.
29702 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
29703 Move complex initialization ...
29704 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
29705 lazily and initialize edge flags on each invocation.
29706 (dom_walker::bb_reachable): Use m_reachability.
29708 2019-04-01 Martin Liska <mliska@suse.cz>
29711 * opt-suggestions.c (option_proposer::build_option_suggestions):
29712 Add variant without any argument in order to provide better
29715 2019-04-01 Richard Biener <rguenther@suse.de>
29718 * gimple.c: Include langhooks.h.
29719 (gimple_get_alias_set): Treat enumeral types as the underlying
29722 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
29723 Eric Botcazou <ebotcazou@adacore.com>
29725 PR rtl-optimization/89862
29726 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
29727 that operates on the full registers for WORD_REGISTER_OPERATIONS
29730 2019-03-29 Jim Wilson <jimw@sifive.com>
29732 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
29733 Clear MASK_RVC and then set if C subset supported.
29735 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29738 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
29739 non-addressable complit into its initializer if it is volatile.
29741 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
29743 * opts-common.c (integral_argument): Set errno properly in one case.
29745 2019-03-29 Martin Liska <mliska@suse.cz>
29747 * doc/invoke.texi: Remove -Wchkp from documentation.
29749 2019-03-29 Martin Liska <mliska@suse.cz>
29751 * dbgcnt.c (print_limit_reach): New function.
29754 2019-03-29 Martin Liska <mliska@suse.cz>
29756 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
29757 (dbg_cnt_process_opt): Parse first tokens aas
29758 dbg_cnt_process_single_pair is also using strtok.
29760 2019-03-29 Jakub Jelinek <jakub@redhat.com>
29762 PR rtl-optimization/87485
29763 * function.c (expand_function_end): Move stack_protect_epilogue
29764 before loading of return value into hard register(s).
29766 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29768 PR middle-end/89621
29769 * tree-inline.h (struct copy_body_data): Add
29770 dont_remap_vla_if_no_change flag.
29771 * tree-inline.c (remap_type_3, remap_type_2): New functions.
29772 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
29773 and remap_type_2 returns false.
29774 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
29775 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
29776 only from where it is copied to nested contexts.
29778 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29781 * config/i386/i386.md (RMW operation with LEA peephole):
29782 Use LEAMODE mode attribute instead of SWI mode iterator for
29785 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
29788 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
29789 Also process XEXP (src, 0) of a shift insn.
29791 2019-03-28 David Malcolm <dmalcolm@redhat.com>
29793 PR middle-end/89725
29794 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
29795 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
29797 2019-03-28 Jakub Jelinek <jakub@redhat.com>
29799 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
29801 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
29802 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
29803 immediately after first one with df_analyze in between, but rather
29804 process all bbs, queueing ones that need second pass in a worklist,
29805 df_analyze, process queued debug insn changes and if second pass is
29806 needed, process bbs from worklist, df_analyze, process queued debug
29809 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
29810 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
29811 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
29813 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
29816 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
29819 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
29822 * config/i386/i386.c (ix86_function_value_1): Call the newly added
29823 function for 32-bit MS_ABI.
29824 (function_value_ms_32): New function.
29826 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
29828 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
29829 (movdi): Call gen_movdi_symbol_save_scc.
29830 (gen_movdi_symbol_save_scc): New insn and split.
29832 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
29834 PR rtl-optimization/89313
29835 * function.c (matching_constraint_num): New static function.
29836 (match_asm_constraints_1): Use it. Fixup white space and comment.
29837 Don't replace inputs with non-matching constraints which conflict
29838 with early clobber outputs.
29840 2019-03-27 Jeff Law <law@redhat.com>
29842 PR rtl-optimization/87761
29843 PR rtl-optimization/89826
29844 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
29846 (pass_cprop_hardreg::execute): Call df_analyze after adding the
29847 note problem to get REG_DEAD/REG_UNUSED notes updated.
29849 2019-03-27 Richard Biener <rguenther@suse.de>
29851 PR tree-optimization/89463
29852 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
29853 queue edges to remove.
29854 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
29855 dead stmts. Delay edge removal until PHIs are removed to
29856 make debug-stmt creation not confused by seemingly degenerate
29859 2019-03-27 Alan Modra <amodra@gmail.com>
29861 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
29863 * config/rs6000/darwin.h: Likewise.
29864 * config/rs6000/rs6000.c: Likewise.
29866 2019-03-27 Alan Modra <amodra@gmail.com>
29868 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
29869 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
29871 2019-03-26 Andrew Waterman <andrew@sifive.com>
29872 Jim Wilson <jimw@sifive.com>
29874 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
29875 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
29876 (generic_idivdi, generic_fmul_single, generic_fmul_double)
29877 (generic_fdiv, generic_fsqrt): Add check for generic tune.
29878 (generic_alu): Add auipc to type list.
29879 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
29880 (riscv_microarchitecture): Declare.
29881 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
29882 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
29884 (riscv_microarchitecture): New.
29885 (sifive_7_tune_info): New.
29886 (riscv_cpu_info_table): Add microarchitecture value for rocket and
29887 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
29889 (riscv_store_data_bypass_p): New.
29890 (riscv_option_override): Set riscv_microarchitecture from
29891 cpu->microarchitecture.
29892 * config/riscv/riscv.md: Include sifive-7.md.
29895 (auipc<mode>): Change type to auipc.
29896 (restore_stack_nonlocal): New.
29897 * config/riscv/sifive-7.md: New.
29898 * doc/invoke.texi (RISC-V Options): Update mtune docs.
29900 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
29903 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
29904 Also process XEXP (src, 0) of a shift insn.
29906 2019-03-26 Richard Biener <rguenther@suse.de>
29908 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
29909 (copy_debug_stmt): Likewise.
29910 (expand_call_inline): Likewise.
29911 (copy_bb): Avoid redundant lookup & set of gimple_block.
29912 * gimple-low.c (lower_gimple_return): Likewise.
29913 (lower_builtin_setjmp): Likewise.
29915 2019-03-26 Jakub Jelinek <jakub@redhat.com>
29917 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
29918 is constant 0, turn into static const data member initialized to false.
29919 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
29920 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
29922 2019-03-26 Jason Merrill <jason@redhat.com>
29923 Jakub Jelinek <jakub@redhat.com>
29925 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
29927 (mem_alloc_description::release_object_overhead): Fix comment typos.
29928 * hash-table.h (hash_table::~hash_table): Call
29929 release_instance_overhead only if m_entries is non-NULL, otherwise
29930 call unregister_descriptor.
29932 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
29934 PR tree-optimization/81740
29935 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
29936 In case of outer loop vectorization, check for backward dependence
29937 at the inner loop if outer loop dependence is reversed.
29939 2019-03-26 Alan Modra <amodra@gmail.com>
29941 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
29942 rs6000_vector_mem init. Correct wI and wJ comment.
29944 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
29946 PR rtl-optimization/88347
29947 PR rtl-optimization/88423
29948 * sched-deps.c (sched_analyze_insn): Take into account that for
29949 tablejumps the barrier appears after a label and a jump_table_data.
29951 2019-03-25 Martin Sebor <msebor@redhat.com>
29954 * c-common.c (check_user_alignment): Rename local. Correct maximum
29955 alignment in diagnostic. Avoid assuming argument fits in SHWI,
29956 convert it to UHWI when it fits.
29958 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
29961 * dwarf2out.c (premark_used_variables): New function.
29962 (prune_unused_types_walk): Do not mark not premarked external
29964 (prune_unused_types): Call premark_used_variables.
29966 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
29968 PR rtl-optimization/89676
29969 * lra-constraints.c (curr_insn_transform): Do match reload for
29970 early clobbers when the match was successful only for different
29973 2019-03-25 Martin Sebor <msebor@redhat.com>
29975 * doc/extend.texi (Common Type Attributes): Document vector_size.
29976 (Common Variable Attributes): Mention size constraint. Correct
29978 (Vector Extensions): Use @dfn when defining bas type. Clarify
29979 base type and size constraints.
29981 2019-03-25 Richard Biener <rguenther@suse.de>
29983 PR tree-optimization/89789
29984 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
29985 changes from non-undefined back to undefined.
29987 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
29989 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
29990 heap string and a gc string, but since this variable is unknown to
29991 ggc the gc string might get reused and corrupted. Fixed by always
29992 using a heap string.
29994 2019-03-25 Richard Biener <rguenther@suse.de>
29996 PR tree-optimization/89779
29997 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
29998 to remove IV defs, delay actual removal.
29999 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
30000 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
30001 very end, properly also reset loop control IV information.
30003 2019-03-25 Richard Biener <rguenther@suse.de>
30005 PR tree-optimization/89802
30006 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
30007 move EH data to folded stmt.
30009 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30011 * config/s390/s390-builtin-types.def: Remove few unused types and
30012 fix sort order for others.
30014 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
30016 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
30017 expected and found types with -mdebug during builtin matching.
30019 2019-03-25 Richard Biener <rguenther@suse.de>
30021 PR middle-end/89790
30022 * fold-const.c (operand_equal_p): Revert last change with
30025 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
30027 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
30028 notes for the result of the __tls_get_addr calls.
30029 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
30031 2019-03-24 Jeff Law <law@redhat.com>
30033 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
30035 PR rtl-optimization/87761
30036 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
30037 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
30039 (pass_cprop_hardreg::execute): Add df note problem and defer insn
30040 rescans. Reprocess blocks as needed, calling df_analyze before
30041 reprocessing. Always call df_analyze before fixing up debug bind
30044 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
30046 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
30049 2019-03-22 Andrew Pinski <apinski@marvell.com>
30051 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
30052 attrribute for uxtw.
30054 2019-03-26 Jeff Law <law@redhat.com>
30056 PR rtl-optimization/87761
30057 * config/mips/mips-protos.h (mips_split_move): Add new argument.
30058 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
30059 (mips_split_move): Accept new INSN argument. Try to forward SRC
30060 into the next instruction.
30061 (mips_split_move_insn): Pass INSN through to mips_split_move.
30063 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
30065 PR rtl-optimization/89676
30066 * lra-constraints.c (curr_insn_transform): Do match reload for
30067 early clobbers even if the match was successful.
30069 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30072 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
30074 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
30076 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
30078 2019-03-22 Jakub Jelinek <jakub@redhat.com>
30080 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
30081 <avx512>_fmsub_<mode>_mask3<round_name>,
30082 <avx512>_fnmadd_<mode>_mask3<round_name>,
30083 <avx512>_fnmsub_<mode>_mask3<round_name>,
30084 avx512f_vmfmadd_<mode>_mask3<round_name>,
30085 avx512f_vmfmsub_<mode>_mask3<round_name>,
30086 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
30087 instead of register_operand and %v instead of v for match_operand 1.
30088 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
30089 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
30090 <round_nimm_predicate> instead of register_operand and %v instead of v
30091 for match_operand 1.
30093 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
30094 <avx512>_fmadd_<mode>_mask3<round_name>,
30095 <avx512>_fmsub_<mode>_mask<round_name>,
30096 <avx512>_fmsub_<mode>_mask3<round_name>,
30097 <avx512>_fnmadd_<mode>_mask<round_name>,
30098 <avx512>_fnmadd_<mode>_mask3<round_name>,
30099 <avx512>_fnmsub_<mode>_mask<round_name>,
30100 <avx512>_fnmsub_<mode>_mask3<round_name>,
30101 <avx512>_fmaddsub_<mode>_mask<round_name>,
30102 <avx512>_fmaddsub_<mode>_mask3<round_name>,
30103 <avx512>_fmsubadd_<mode>_mask<round_name>,
30104 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
30105 <round_nimm_predicate> instead of nonimmediate_operand.
30106 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
30107 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
30108 Use register_operand instead of <round_nimm_predicate> for the
30109 operand that needs to match output.
30110 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
30111 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
30112 Likewise. Formatting fixes.
30115 * config/i386/i386.c (enum ix86_builtins): Remove
30116 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
30117 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
30118 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
30119 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
30120 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
30121 __builtin_ia32_vfmsubss3_mask3): New builtins.
30122 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
30123 avx512f_vmfmadd_<mode>_mask3<round_name>,
30124 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
30125 *avx512f_vmfmsub_<mode>_mask<round_name>,
30126 avx512f_vmfmsub_<mode>_mask3<round_name>,
30127 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
30128 *avx512f_vmfnmadd_<mode>_mask<round_name>,
30129 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
30130 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
30131 *avx512f_vmfnmsub_<mode>_mask<round_name>,
30132 avx512f_vmfnmsub_<mode>_mask3<round_name>,
30133 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
30134 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
30135 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
30136 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
30137 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
30138 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
30139 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
30140 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
30141 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
30142 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
30143 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
30144 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
30145 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
30146 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
30147 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
30148 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
30149 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
30150 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
30151 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
30152 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
30153 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
30154 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
30156 2019-03-21 Martin Sebor <msebor@redhat.com>
30158 PR tree-optimization/89350
30159 * builtins.c (compute_objsize): Also ignore offsets whose upper
30161 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
30162 (builtin_memref::builtin_memref): Initialize new member.
30163 Allow EXPR to be null.
30164 (builtin_memref::extend_offset_range): Replace local with a member.
30165 Avoid assuming pointer offsets are unsigned.
30166 (builtin_memref::set_base_and_offset): Determine base object
30167 before computing offset range.
30168 (builtin_access::builtin_access): Handle memset.
30169 (builtin_access::generic_overlap): Replace local with a member.
30170 (builtin_access::strcat_overlap): Same.
30171 (builtin_access::overlap): Same.
30172 (maybe_diag_overlap): Same.
30173 (maybe_diag_access_bounds): Same.
30174 (wrestrict_dom_walker::check_call): Handle memset.
30175 (check_bounds_or_overlap): Same.
30177 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
30178 Jakub Jelinek <jakub@redhat.com>
30181 * tree.c (fld_type_variant, fld_incomplete_type_of,
30182 fld_process_array_type): Call fld->pset.add and don't call
30183 add_tree_to_fld_list if it returns true.
30184 (free_lang_data_in_type): Similarly with self-recursive call. Purge
30185 non-marked types from TYPE_NEXT_VARIANT list.
30186 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
30188 2019-03-21 Jakub Jelinek <jakub@redhat.com>
30190 * hash-table.h (hash_table): Add Lazy template parameter defaulted
30191 to false, if true, don't alloc_entries during construction, but defer
30192 it to the first method that needs m_entries allocated.
30193 (hash_table::hash_table, hash_table::~hash_table,
30194 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
30195 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
30196 hash_table::clear_slot, hash_table::traverse_noresize,
30197 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
30198 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
30200 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
30201 NO_INSERT instead of find_with_hash.
30202 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
30203 hash_set::m_table): Add Lazy to template params of hash_table.
30204 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
30205 * attribs.c (test_attribute_exclusions): Likewise.
30206 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
30207 hash_set. Add tests for hash_set with Lazy = true.
30209 2019-03-21 Richard Biener <rguenther@suse.de>
30211 PR tree-optimization/89779
30212 * tree.c (tree_nop_conversion): Consolidate and fix defensive
30213 checks with respect to released SSA names now having error_mark_node
30215 * fold-const.c (operand_equal_p): Likewise.
30217 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
30220 * config/s390/s390.c (global_not_special_regno_p): Move to make it
30222 (s390_optimize_register_info): Use global_not_special_regno_p to
30223 check for global regs.
30225 2019-03-20 Jakub Jelinek <jakub@redhat.com>
30228 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
30229 update this_alternative nor this_alternative_set.
30231 2019-03-19 Jim Wilson <jimw@sifive.com>
30234 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
30235 align, size, offset. Use them to handle a BLKmode reference. Update
30237 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
30239 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30241 PR rtl-optimization/89768
30242 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
30243 instead of GEN_INT.
30244 (unroll_loop_runtime_iterations): Likewise.
30246 2019-03-19 Martin Sebor <msebor@redhat.com>
30248 PR tree-optimization/89644
30249 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
30250 rather than endptr as an indicator of nul-termination.
30252 PR tree-optimization/89644
30253 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
30254 arrays in determining sequence sizes in strncpy and stpncpy.
30256 2019-03-19 Martin Liska <mliska@suse.cz>
30258 PR middle-end/89737
30259 * predict.c (combine_predictions_for_bb): Empty likely_edges and
30260 unlikely_edges if there's an edge that belongs to both these sets.
30262 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
30265 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
30266 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
30267 go via a stack temporary.
30269 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30272 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
30273 instead of gen_rtx_SUBREG.
30274 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
30276 2019-03-19 Richard Biener <rguenther@suse.de>
30279 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
30281 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
30285 * tree.c (free_lang_data_in_decl): Do not free context of C++
30288 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30291 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
30292 subs for the first alternative except when operands[3] is 1.
30295 * gimplify.c (gimplify_asm_expr): For output argument with
30296 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
30299 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
30301 PR rtl-optimization/89753
30302 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30303 explicit unrolling factor even more robust.
30305 2019-03-19 Jakub Jelinek <jakub@redhat.com>
30308 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
30309 compensation use x2 += 1 instead of x2 -= -1 and when honoring
30310 signed zeros, do another copysign after the compensation.
30312 2019-03-18 Martin Sebor <msebor@redhat.com>
30314 PR tree-optimization/89720
30315 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
30316 more conservatively, the same as anti-range.
30318 2019-03-18 Richard Biener <rguenther@suse.de>
30320 PR middle-end/88945
30321 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
30322 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
30323 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
30324 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
30326 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
30328 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
30329 Extend queue to 1024 entries.
30330 Add "consumed" field.
30331 (gomp_print_output): Remove print_index parameter.
30332 Add final parameter.
30333 Change limit to unsigned.
30334 Use consumed field to implement circular buffer.
30335 Detect interrupted print in final pass.
30336 Flush output at the end.
30337 (run): Update gomp_print_output usage.
30338 (main): Initialize kernargs->output_data.consumed.
30340 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
30342 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
30343 calculation of the minimum number of scalar iterations for
30344 fully-predicated loops.
30346 2019-03-18 Martin Jambor <mjambor@suse.cz>
30348 PR tree-optimization/89546
30349 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
30350 any propagation to its children took place.
30352 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
30355 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
30356 parameter, and make use of it.
30357 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
30359 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30361 * config/arc/arc.opt (mcode-density-frame): Get the inital value
30362 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
30363 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30364 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
30365 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
30366 match what the ops is doing.
30367 (push_multi_fp_blink): Likewise.
30368 * config/arc/arc.c (arc_override_options): Enable enter/leave when
30369 compiling for size and elf target.
30370 (arc_save_callee_enter): Adjust note to match what enter/leave
30373 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30375 * config/arc/arc.md (tst_movb): Fix constraint.
30377 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30379 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
30381 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
30383 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
30384 * config/arc/arc.c (arc_conditional_register_usage): Remove all
30385 reg_alloc_order references.
30386 (size_alloc_order): Define.
30387 (arc_adjust_reg_alloc_order): New function.
30388 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
30390 (ADJUST_REG_ALLOC_ORDER): Define.
30391 (HONOR_REG_ALLOC_ORDER): Likewise.
30393 2019-03-18 Richard Biener <rguenther@suse.de>
30396 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
30397 loads and stores a bit more.
30399 2019-03-18 Richard Biener <rguenther@suse.de>
30402 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
30403 load pessimization to stores as well.
30405 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
30407 PR middle-end/86979
30408 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
30409 successor, use NULL as its av set.
30411 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
30413 PR rtl-optimization/89721
30414 * lra-constraints (invariant_p): Return false if side_effects_p holds.
30416 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
30419 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30420 When handling vec_extract, use modular arithmetic to allow
30421 constant selectors greater than vector length.
30422 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
30423 V1TImode vectors to have constant selector values greater than 0.
30424 Use modular arithmetic to compute vector index.
30425 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
30426 index for in-memory vectors. Correct code generation for
30427 in-register vectors.
30428 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
30431 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
30435 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
30438 2019-03-15 Jakub Jelinek <jakub@redhat.com>
30441 * tree.c (inchash::add_expr): Strip any location wrappers.
30442 * fold-const.c (operand_equal_p): Move stripping of location wrapper
30443 after hash verification.
30446 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
30447 SIGN_EXTEND and ZERO_EXTEND.
30449 2019-03-14 Jason Merrill <jason@redhat.com>
30450 Jakub Jelinek <jakub@redhat.com>
30452 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
30453 than if is_empty (*slot).
30454 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
30455 existing elt and for elt removal.
30456 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
30457 of already removed elt.
30459 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
30462 * config/i386/i386.c (remove_partial_avx_dependency): Handle
30463 REG_EH_REGION note.
30465 2019-03-14 Martin Liska <mliska@suse.cz>
30468 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
30470 2019-03-14 Richard Biener <rguenther@suse.de>
30473 * config/i386/i386.c (make_resolver_func): Properly set
30474 DECL_CONTEXT on the RESULT_DECL.
30475 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
30477 2019-03-14 Richard Biener <rguenther@suse.de>
30479 * gimple-pretty-print.c: Include cfgloop.h.
30480 (dump_gimple_phi): Adjust.
30481 (dump_gimple_bb_header): Dump loop header for GIMPLE.
30482 (pp_cfg_jump): Adjust.
30483 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
30484 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
30485 (lower_phi_internal_fn): Remove.
30486 (verify_gimple_call): Remove IFN_PHI special-casing.
30487 (dump_function_to_file): Dump IL state.
30488 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
30489 done to deal with PHI nodes being present in non-SSA state.
30491 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30494 * multiple_target.c (create_dispatcher_calls): Change
30495 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
30496 In the node->iterate_referring loop, push *ref rather than ref, call
30497 ref->remove_reference () and always pass 0 to iterate_referring.
30499 PR rtl-optimization/89679
30500 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
30501 would contain a paradoxical SUBREG.
30503 2019-03-14 Richard Biener <rguenther@suse.de>
30505 PR tree-optimization/89710
30506 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
30509 2019-03-14 Martin Liska <mliska@suse.cz>
30511 * coverage.c (coverage_begin_function): Stream also
30513 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
30514 documentation about function declaration location.
30515 * gcov-dump.c (tag_function): Print whole range
30516 of function declaration.
30517 * gcov.c (struct function_info): Add end_column field.
30518 (function_info::function_info): Initialize it.
30519 (output_json_intermediate_file): Output {start,end}_column
30521 (read_graph_file): Read end_column.
30523 2019-03-14 Richard Biener <rguenther@suse.de>
30525 PR middle-end/89698
30526 * fold-const.c (operand_equal_p): For INDIRECT_REF check
30527 that the access types are similar.
30529 2019-03-14 Jakub Jelinek <jakub@redhat.com>
30531 PR tree-optimization/89703
30532 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
30533 aren't compatible also with builtin_decl_explicit. Check pure
30534 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
30535 and BUILT_IN_STPNCPY{,_CHK}.
30537 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
30540 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
30541 addr32 prefix to VSIB address for X32.
30542 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
30544 (*avx512pf_gatherpf<mode>df_mask): Likewise.
30545 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
30546 (*avx512pf_scatterpf<mode>df_mask): Likewise.
30547 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
30548 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
30549 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
30550 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
30551 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
30552 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
30553 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
30554 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
30555 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
30556 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
30557 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
30558 (*avx512f_scatterdi<mode>): Likewise.
30560 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
30563 * lra-constraints.c (inherit_in_ebb): Update
30564 potential_reload_hard_regs along with live_hard_regs.
30566 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30569 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
30571 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
30573 2019-03-13 Martin Sebor <msebor@redhat.com>
30575 PR tree-optimization/89662
30576 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
30579 2019-03-13 Richard Biener <rguenther@suse.de>
30581 PR middle-end/89677
30582 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
30583 throw FP expressions at tree-affine.
30585 2019-03-14 Richard Biener <rguenther@suse.de>
30587 * tree-pretty-print.c (dump_generic_node): For -gimple properly
30588 dump negative integer constants using _Literal (type) -num.
30590 2019-03-13 Jakub Jelinek <jakub@redhat.com>
30592 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
30593 nonlocal_value member.
30595 PR middle-end/88588
30596 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
30597 (ipa_simd_modify_function_body): Handle PHIs.
30599 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30601 * config/s390/s390.c (s390_option_override_internal): Use more
30602 aggressive inlining parameters.
30604 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30606 * config/s390/3906.md: New file.
30607 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30608 (LONGRUNNING_THRESHOLD): Remove.
30609 (MAX_SCHED_MIX_SCORE): Decrease.
30610 (MAX_SCHED_MIX_DISTANCE): Decrease.
30611 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
30612 (struct s390_sched_state): New struct to hold scheduling state.
30613 (S390_SCHED_STATE_NORMAL): Remove.
30614 (S390_SCHED_STATE_CRACKED): Remove.
30615 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
30616 (s390_get_sched_attrmask): Use new attribute.
30617 (s390_get_unit_mask): Use new units.
30618 (s390_is_fpd): New function.
30619 (s390_is_fxd): New function.
30620 (s390_is_longrunning): New function.
30621 (s390_sched_score): Use new functions.
30622 (s390_sched_reorder): Likewise.
30623 (s390_sched_variable_issue): Rework and use new functions.
30624 (s390_sched_init): Use new functions.
30625 * config/s390/s390.h (s390_tune_attr): Add z14.
30626 * config/s390/s390.md: Add z14.
30628 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
30630 * config/s390/2964.md: Update pipeline description.
30631 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
30632 (LONGRUNNING_THRESHOLD): Remove.
30633 (LATENCY_FACTOR): Remove.
30634 (s390_get_unit_mask): Add unit.
30635 (s390_sched_score): Use fxd/fpd.
30636 (s390_sched_variable_issue): Use fxd/fpd.
30638 2019-03-12 Martin Liska <mliska@suse.cz>
30640 * config/i386/i386.c: Reword an error message.
30642 2019-03-12 Martin Jambor <mjambor@suse.cz>
30644 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
30645 terminate with newline.
30647 2019-03-12 Jakub Jelinek <jakub@redhat.com>
30650 * config/s390/s390.md (tabort): Use %wd instead of
30651 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
30652 letters and periods.
30653 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
30654 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
30657 PR middle-end/89663
30658 * builtins.c (expand_builtin_int_roundingfn,
30659 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
30660 gcc_unreachable if validate_arglist fails.
30662 2019-03-12 Richard Biener <rguenther@suse.de>
30664 PR tree-optimization/89664
30665 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
30666 free the occurance tree after the early out.
30668 2019-03-11 Jakub Jelinek <jakub@redhat.com>
30670 PR middle-end/89655
30672 * vr-values.c (vr_values::update_value_range): If
30673 old_vr->varying_p (), don't update it, make new_vr also VARYING
30676 2019-03-11 Martin Liska <mliska@suse.cz>
30678 * config/aarch64/aarch64.c (aarch64_override_options_internal):
30679 Fix double string quoting.
30681 2019-03-11 Martin Liska <mliska@suse.cz>
30683 * collect-utils.c (collect_wait): Wrap apostrophes
30684 in gcc internal format with %'.
30685 * collect2.c (main): Likewise.
30686 (scan_prog_file): Likewise.
30687 (scan_libraries): Likewise.
30688 * config/i386/i386.c (ix86_expand_call): Likewise.
30689 (ix86_handle_interrupt_attribute): Likewise.
30690 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
30691 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
30692 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
30693 * lto-wrapper.c (find_crtoffloadtable): Likewise.
30694 * symtab.c (symtab_node::verify_base): Likewise.
30695 * tree-cfg.c (verify_gimple_label): Likewise.
30696 * tree.c (verify_type_variant): Likewise.
30698 2019-03-11 Martin Liska <mliska@suse.cz>
30700 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
30701 in a string format message and fix GNU coding style.
30702 (expand_builtin_set_thread_pointer): Likewise.
30703 * common/config/aarch64/aarch64-common.c
30704 (aarch64_rewrite_selected_cpu): Likewise.
30705 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
30706 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
30707 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
30708 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
30709 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
30710 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
30711 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
30712 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
30713 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
30714 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
30716 * common/config/riscv/riscv-common.c
30717 (riscv_subset_list::parsing_subset_version): Likewise.
30718 (riscv_subset_list::parse_std_ext): Likewise.
30719 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
30720 (riscv_subset_list::parse): Likewise.
30721 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
30722 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
30723 (aarch64_override_options_internal): Likewise.
30724 (aarch64_validate_mcpu): Likewise.
30725 (aarch64_validate_march): Likewise.
30726 (aarch64_validate_mtune): Likewise.
30727 (aarch64_override_options): Likewise.
30728 * config/alpha/alpha.c (alpha_option_override): Likewise.
30729 * config/arc/arc.c (arc_init): Likewise.
30730 (parse_mrgf_banked_regs_option): Likewise.
30731 (arc_override_options): Likewise.
30732 (arc_expand_builtin_aligned): Likewise.
30733 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
30734 (arm_expand_builtin): Likewise.
30735 * config/arm/arm.c (arm_option_check_internal): Likewise.
30736 (arm_configure_build_target): Likewise.
30737 (arm_option_override): Likewise.
30738 (arm_options_perform_arch_sanity_checks): Likewise.
30739 (arm_handle_cmse_nonsecure_entry): Likewise.
30740 (arm_handle_cmse_nonsecure_call): Likewise.
30741 (arm_tls_referenced_p): Likewise.
30742 (thumb1_expand_prologue): Likewise.
30743 * config/avr/avr.c (avr_option_override): Likewise.
30744 * config/bfin/bfin.c (bfin_option_override): Likewise.
30745 * config/c6x/c6x.c (c6x_option_override): Likewise.
30746 * config/cr16/cr16.c (cr16_override_options): Likewise.
30747 * config/cris/cris.c (cris_option_override): Likewise.
30748 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
30749 * config/darwin-c.c (macosx_version_as_macro): Likewise.
30750 * config/darwin.c (darwin_override_options): Likewise.
30751 * config/frv/frv.c (frv_expand_builtin): Likewise.
30752 * config/h8300/h8300.c (h8300_option_override): Likewise.
30753 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
30754 (ix86_option_override_internal): Likewise.
30755 (warn_once_call_ms2sysv_xlogues): Likewise.
30756 (ix86_expand_prologue): Likewise.
30757 (split_stack_prologue_scratch_regno): Likewise.
30758 (ix86_warn_parameter_passing_abi): Likewise.
30759 * config/ia64/ia64.c (fix_range): Likewise.
30760 * config/m68k/m68k.c (m68k_option_override): Likewise.
30761 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
30762 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
30763 (mips_set_compression_mode): Likewise.
30764 * config/mmix/mmix.c (mmix_option_override): Likewise.
30765 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
30766 * config/msp430/msp430.c (msp430_option_override): Likewise.
30767 * config/nds32/nds32.c (nds32_option_override): Likewise.
30768 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
30769 (nios2_option_override): Likewise.
30770 (nios2_expand_custom_builtin): Likewise.
30771 * config/nvptx/mkoffload.c (main): Likewise.
30772 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
30773 * config/pa/pa.c (fix_range): Likewise.
30774 (pa_option_override): Likewise.
30775 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
30776 (riscv_option_override): Likewise.
30777 * config/rl78/rl78.c (rl78_option_override): Likewise.
30778 * config/rs6000/aix61.h: Likewise.
30779 * config/rs6000/aix71.h: Likewise.
30780 * config/rs6000/aix72.h: Likewise.
30781 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
30782 * config/rs6000/freebsd64.h: Likewise.
30783 * config/rs6000/linux64.h: Likewise.
30784 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
30785 (rs6000_expand_zeroop_builtin): Likewise.
30786 (rs6000_expand_mtfsb_builtin): Likewise.
30787 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
30788 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
30789 (rs6000_invalid_builtin): Likewise.
30790 (rs6000_expand_split_stack_prologue): Likewise.
30791 * config/rs6000/rtems.h: Likewise.
30792 * config/rx/rx.c (valid_psw_flag): Likewise.
30793 (rx_expand_builtin): Likewise.
30794 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
30795 * config/s390/s390.c (s390_expand_builtin): Likewise.
30796 (s390_function_profiler): Likewise.
30797 (s390_option_override_internal): Likewise.
30798 (s390_option_override): Likewise.
30799 * config/sh/sh.c (sh_option_override): Likewise.
30800 (sh_builtin_saveregs): Likewise.
30801 (sh_fix_range): Likewise.
30802 * config/sh/vxworks.h: Likewise.
30803 * config/sparc/sparc.c (sparc_option_override): Likewise.
30804 * config/spu/spu.c (spu_option_override): Likewise.
30805 (fix_range): Likewise.
30806 * config/visium/visium.c (visium_option_override): Likewise.
30807 (visium_handle_interrupt_attr): Likewise.
30808 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
30809 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
30810 (dbg_cnt_process_opt): Likewise.
30811 * dwarf2out.c (output_dwarf_version): Likewise.
30812 * except.c (expand_eh_return): Likewise.
30813 * gcc.c (defined): Likewise.
30814 (driver_handle_option): Likewise.
30815 (process_command): Likewise.
30816 (compare_files): Likewise.
30817 (driver::prepare_infiles): Likewise.
30818 (driver::do_spec_on_infiles): Likewise.
30819 (driver::maybe_run_linker): Likewise.
30820 * omp-offload.c (oacc_parse_default_dims): Likewise.
30821 * opts-global.c (handle_common_deferred_options): Likewise.
30822 * opts.c (parse_sanitizer_options): Likewise.
30823 (common_handle_option): Likewise.
30824 (enable_warning_as_error): Likewise.
30825 * passes.c (enable_disable_pass): Likewise.
30826 * plugin.c (parse_plugin_arg_opt): Likewise.
30827 (default_plugin_dir_name): Likewise.
30828 * targhooks.c (default_expand_builtin_saveregs): Likewise.
30829 (default_pch_valid_p): Likewise.
30830 * toplev.c (init_asm_output): Likewise.
30831 (process_options): Likewise.
30832 (toplev::run_self_tests): Likewise.
30833 * tree-cfg.c (verify_gimple_call): Likewise.
30834 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
30835 (tree_inlinable_function_p): Likewise.
30836 * var-tracking.c (vt_find_locations): Likewise.
30838 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
30840 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
30841 only on the else branch.
30843 2019-03-11 Martin Liska <mliska@suse.cz>
30845 * gcov.c (output_intermediate_json_line): Print function
30847 (output_json_intermediate_file): Add new argument.
30848 * doc/gcov.texi: Document the change.
30850 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
30852 PR rtl-optimization/89588
30853 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
30854 explicit unrolling factor more robust.
30856 2019-03-11 Richard Biener <rguenther@suse.de>
30858 PR tree-optimization/89649
30859 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
30860 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
30861 on the prolog and epilog loops.
30862 (vect_loop_versioning): Return copy of loop.
30863 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
30864 on the non-vectorized version of the loop.
30866 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
30869 * config/i386/sse.md (*vec_extractv2di_0_sse):
30870 Add (=r,x) alternative and corresponding splitter.
30872 2019-03-10 Martin Jambor <mjambor@suse.cz>
30874 PR tree-optimization/85762
30875 PR tree-optimization/87008
30876 PR tree-optimization/85459
30877 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
30878 it points to if there is a type changing MEM_REF. Adjust all callers.
30879 (build_accesses_from_assign): Disable total scalarization if
30880 contains_vce_or_bfcref_p returns true through the new parameter, for
30883 2019-03-09 Jakub Jelinek <jakub@redhat.com>
30886 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
30887 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
30890 * common.opt (fdiagnostics-show-labels,
30891 fdiagnostics-show-line-numbers, fdiagnostics-format=,
30892 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
30893 gas-locview-support, ginline-points, ginternal-reset-location-views):
30894 Terminate description text with a dot.
30895 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
30896 * config/mcore/mcore.opt (m210, m340): Likewise.
30897 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
30898 mnops=): Start description text with a capital letter.
30899 * config/arc/arc.opt (msize-level=): Likewise.
30900 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
30901 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
30902 mnewlib): Likewise.
30903 * config/ft32/ft32.opt (msim): Likewise.
30904 (mft32b, mcompress): Likewise. Terminate description text with a dot.
30905 (mnodiv, mnopm): Terminate description text with a dot.
30906 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
30908 * config/i386/i386.opt (prefer_vector_width, instrument_return):
30910 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
30913 PR rtl-optimization/89634
30914 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
30915 are modified in BB_END (e->src) instruction.
30917 2019-03-08 David Malcolm <dmalcolm@redhat.com>
30920 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
30921 messages more amenable to translation, and improve wording.
30923 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
30925 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
30926 ud- and du-chains between phases.
30928 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
30931 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
30932 instead of POLY_INT_CST.
30934 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
30936 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
30939 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
30944 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
30945 (_mm_storeu_si64): Ditto.
30947 2019-03-08 Martin Liska <mliska@suse.cz>
30950 * config/i386/i386.c (ix86_option_override_internal): Disable
30951 jump tables when retpolines are used.
30953 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
30956 * ipa-split.c (execute_split_functions): Do not split
30957 'noinline' or 'section' function.
30959 2019-03-08 Jakub Jelinek <jakub@redhat.com>
30962 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
30963 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
30964 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
30967 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
30968 from diagnostics. Formatting fixes.
30971 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
30972 warn_odr diagnostics.
30975 * lra-constraints.c (process_alt_operands): Avoid one space before
30976 " at the end of line and another after " on another line in a string
30978 * attribs.c (handle_dll_attribute): Likewise.
30979 * config/avr/avr-devices.c (avr_texinfo): Likewise.
30981 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
30982 warning_at or inform messages in G_() if there is no ?:.
30984 PR tree-optimization/89550
30985 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
30986 returned true. Formatting fixes.
30987 (expand_builtin_strnlen): Formatting fixes.
30988 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
30989 if warning_at returned true.
30990 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
30992 2019-03-08 Richard Biener <rguenther@suse.de>
30994 PR middle-end/89578
30995 * cfgloop.h (struct loop): Add owned_clique field.
30996 * cfgloopmanip.c (copy_loop_info): Copy it.
30997 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
30999 * tree-inline.c (copy_loops): Remap owned_clique.
31000 * lto-streamer-in.c (input_cfg): Stream owned_clique.
31001 * lto-streamer-out.c (output_cfg): Likewise.
31003 2019-03-08 Jakub Jelinek <jakub@redhat.com>
31006 * config/darwin.c: Include intl.h.
31007 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
31008 composing the message out of two separate parts.
31010 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31013 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
31014 doesn't start with a capital letter and doesn't end with a dot.
31015 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
31016 with a capital letter.
31017 (ix86_mangle_function_version_assembler_name): Likewise.
31018 (ix86_generate_version_dispatcher_body): Likewise.
31019 (fold_builtin_cpu): Likewise.
31020 (get_builtin_code_for_version): Likewise. Remove extraneous space.
31021 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
31022 translators, wrap full type name in %qs.
31024 PR translation/79999
31025 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
31026 depend clause with source (or sink) modifier.
31027 * omp-expand.c (expand_omp_ordered_sink): Likewise.
31030 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
31031 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
31032 (avx512f_load<mode>_mask): New define_expand.
31033 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
31034 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
31035 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
31036 __builtin_ia32_movess_mask): New builtins.
31037 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
31038 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
31039 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
31040 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
31042 2019-03-07 Martin Jambor <mjambor@suse.cz>
31045 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
31046 for extern inline functions.
31048 2019-03-07 Martin Jambor <mjambor@suse.cz>
31051 * cgraph.h (cgraph_node): New inline method former_thunk_p.
31052 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
31053 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
31054 have multiple callees. At the end check if declarations match as
31055 opposed to cgraph_nodes.
31057 2019-03-07 Martin Liska <mliska@suse.cz>
31059 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
31060 which is equivalent to searching for this in clones chain.
31061 * symtab.c (symtab_node::verify_base): Similarly compare ASM
31062 names with a neighbour and special case first node in a chain.
31064 2019-01-25 Jason Merrill <jason@redhat.com>
31066 PR c++/80916 - spurious "static but not defined" warning.
31067 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
31068 for an internal symbol with DECL_EXTERNAL.
31070 2019-04-07 Richard Biener <rguenther@suse.de>
31072 PR middle-end/89618
31073 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
31074 * tree-inline.c (copy_loops): Simplify.
31076 2019-03-07 Martin Liska <mliska@suse.cz>
31078 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
31080 2019-03-07 Richard Biener <rguenther@suse.de>
31082 PR tree-optimization/89595
31083 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
31084 stmt iterator as reference, take boolean output parameter to
31085 indicate whether the stmt was removed and thus the iterator
31087 (dom_opt_dom_walker::before_dom_children): Re-iterate over
31088 stmts created by folding.
31090 2019-03-07 Jakub Jelinek <jakub@redhat.com>
31093 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
31096 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
31098 PR rtl-optimization/88845
31099 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
31101 * lra.c (remove_scratches_1): New function.
31102 (remove_scratches): Use it.
31103 (lra_emit_move): Likewise.
31105 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
31107 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
31108 unaligned_access variable.
31109 * config/arc/arc.c (arc_override_options): Set unaligned access
31110 default on for HS CPUs.
31111 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
31113 2019-03-06 Martin Liska <mliska@suse.cz>
31115 PR gcov-profile/89577
31116 * doc/gcov.texi: Prefer to use --coverage.
31117 * doc/sourcebuild.texi: Likewise.
31119 2019-03-02 Jason Merrill <jason@redhat.com>
31121 PR c++/86485 - -Wmaybe-unused with empty class ?:
31122 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
31124 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31127 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
31130 PR middle-end/89590
31131 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
31132 exactly one argument.
31134 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31135 Richard Sandiford <richard.sandiford@arm.com>
31137 PR tree-optimization/89570
31138 * match.pd (vec_cond into cond_op simplification): Don't use
31139 get_conditional_internal_fn, use as_internal_fn (cond_op).
31141 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
31144 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
31145 to decide when to split off a non-zero offset from a symbol.
31146 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
31147 in function symbols.
31149 2019-03-05 Richard Biener <rguenther@suse.de>
31151 PR tree-optimization/89594
31152 * tree-if-conv.c (pass_if_conversion::execute): Handle
31153 case where .LOOP_VECTORIZED_FUNCTION was removed.
31155 2019-03-05 Jakub Jelinek <jakub@redhat.com>
31158 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
31159 instead alloca it only when needed with the needed size.
31161 PR tree-optimization/89570
31162 * match.pd (vec_cond into cond_op simplification): Guard with
31163 vectorized_internal_fn_supported_p test and #if GIMPLE.
31165 PR tree-optimization/89566
31166 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
31167 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
31168 Punt if get_user_idx_format succeeds, but idx_format argument is
31169 not provided or doesn't have pointer type, or if idx_args is above
31170 number of provided arguments.
31172 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
31174 PR tree-optimization/89437
31175 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
31177 2019-03-04 Richard Biener <rguenther@suse.de>
31179 PR middle-end/89572
31180 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
31183 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
31185 PR tree-optimization/89487
31186 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
31187 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
31188 (distribute_loop): Don't do runtime alias check if there is non-
31189 addressable data reference.
31190 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
31191 is a register variable.
31193 2019-03-02 Jakub Jelinek <jakub@redhat.com>
31196 * config/arm/arm.md (cmpsi2_addneg): Use
31197 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
31198 If operands[2] is 0 or INT_MIN, force use of subs.
31199 (*compare_scc splitter): Use gen_int_mode.
31200 (*negscc): Likewise.
31201 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
31203 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
31204 Monk Chiang <sh.chiang04@gmail.com>
31206 * common/config/riscv/riscv-common.c: Include sstream.
31207 (riscv_subset_list::to_string): New.
31208 (riscv_arch_str): Likewise.
31209 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
31210 * config.in: Regen.
31211 * config/riscv/riscv-protos.h (riscv_arch_str): New.
31212 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
31213 (riscv_emit_attribute): New.
31214 (riscv_file_start): Emit attribute if needed.
31215 (riscv_option_override): Init riscv_emit_attribute_p.
31216 * config/riscv/riscv.opt (mriscv-attribute): New option.
31217 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
31218 * configure: Regen.
31219 * doc/install.texi: Document --with-riscv-attribute.
31220 * doc/invoke.texi: Document -mriscv-attribute.
31222 * common/config/riscv/riscv-common.c:
31223 Include config/riscv/riscv-protos.h.
31224 (INCLUDE_STRING): Defined.
31225 (RISCV_DONT_CARE_VERSION): Defined.
31226 (riscv_subset_t): Declare.
31227 (riscv_subset_t::riscv_subset_t): New.
31228 (riscv_subset_list): Declare.
31229 (riscv_subset_list::riscv_subset_list): New.
31230 (riscv_subset_list::~riscv_subset_list): Likewise.
31231 (riscv_subset_list::parsing_subset_version): Likewise.
31232 (riscv_subset_list::parse_std_ext): Likewise.
31233 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
31234 (riscv_subset_list::add): Likewise.
31235 (riscv_subset_list::lookup): Likewise.
31236 (riscv_subset_list::xlen): Likewise.
31237 (riscv_subset_list::parse): Likewise.
31238 (riscv_supported_std_ext): Likewise.
31239 (current_subset_list): Likewise.
31240 (riscv_parse_arch_string): Using riscv_subset_list::parse to
31243 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
31245 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31246 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
31247 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
31249 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
31251 PR rtl-optimization/85899
31252 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
31253 fallthru edges leading to the exit block.
31255 2019-03-01 Tamar Christina <tamar.christina@arm.com>
31258 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
31259 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
31261 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
31263 PR tree-optimization/89535
31264 * tree-vect-stmts.c (vectorizable_call): Record the vector types
31265 for each operand. Calculate the fallback choice for mask operands
31266 and pass it to vect_get_vec_def_for_operand.
31268 2019-03-01 Richard Biener <rguenther@suse.de>
31270 PR middle-end/89541
31271 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
31272 get virtual operands.
31273 (get_expr_operands): Handle CONST_DECL like other decls.
31275 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31277 PR middle-end/89503
31278 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
31279 on DECL_P and EXPR_P.
31281 2019-03-01 Richard Biener <rguenther@suse.de>
31283 PR middle-end/89497
31284 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
31285 argument, defaulted to zero.
31286 * passes.c (execute_function_todo): Pass down SSA update flags
31287 to cleanup_tree_cfg.
31288 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
31289 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
31291 (cleanup_tree_cfg): Get and pass down SSA update flags.
31293 2019-03-01 Jakub Jelinek <jakub@redhat.com>
31296 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
31297 early_lto_debug argument.
31299 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
31301 PR tree-optimization/89536
31302 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
31303 only whether bit #0 of the value is 0 instead of the entire value.
31305 2019-02-28 Marek Polacek <polacek@redhat.com>
31307 PR c++/87068 - missing diagnostic with fallthrough statement.
31308 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
31309 at the end of a seq, save its location to walk_stmt_info.
31310 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
31313 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
31316 * tree.c (find_atomic_core_type): Move ahead in file.
31317 (check_base_type): Correctly compare alignments of atomic types.
31319 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
31322 * config/i386/i386.c (get_builtin_code_for_version): Identify
31323 Westmere from PCLMUL, instead of AES.
31325 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31328 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
31329 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
31332 2019-02-28 Tamar Christina <tamar.christina@arm.com>
31335 * config/aarch64/aarch64-option-extensions.def: Document it.
31336 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
31339 2019-02-28 Jakub Jelinek <jakub@redhat.com>
31342 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
31343 builtins if they don't have a single scalar floating point argument.
31346 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
31348 PR rtl-optimization/89490
31349 * varasm.c (get_block_for_section): Bail out for mergeable sections.
31350 (default_use_anchors_for_symbol_p, output_object_block): Assert the
31351 block section is not mergeable.
31353 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31356 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
31357 old define_insn to ...
31358 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
31359 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
31360 Rename old define_insn to ...
31361 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
31362 (thumb2_casesi_internal_pic): New define_expand. Rename old
31364 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
31365 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
31366 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
31368 2019-02-27 Richard Biener <rguenther@suse.de>
31371 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
31373 2019-02-27 Richard Biener <rguenther@suse.de>
31375 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
31378 2019-02-27 Richard Biener <rguenther@suse.de>
31381 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
31382 parameter, prefix section name with .gnu.debuglto_ if true.
31383 (dwarf2out_finish): Pass false to output_comdat_type_unit.
31384 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
31386 2019-02-27 Richard Biener <rguenther@suse.de>
31389 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
31390 rather than on use_debug_types, doing what output_die does.
31391 (value_format): Likewise.
31393 2019-02-27 Martin Jambor <mjambor@suse.cz>
31394 Martin Sebor <msebor@redhat.com>
31396 * doc/invoke.texi (Warning Options): Reword description of
31397 -Wno-absolute-value.
31399 2019-02-27 Jakub Jelinek <jakub@redhat.com>
31401 PR tree-optimization/89280
31402 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
31403 builtin_setjmp_setup_bb): New functions.
31404 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
31405 When visiting __builtin_setjmp_setup block, queue in special
31406 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
31407 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
31408 from visited after the loop if they don't have any visited successor
31411 2018-02-26 Steve Ellcey <sellcey@marvell.com>
31413 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
31415 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
31417 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31420 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
31421 with types other than sizetype/ssizetype.
31423 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31425 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
31426 (enum sparc_processor_type): ...this.
31427 (enum sparc_code_model_type): New enumeration type.
31428 (enum sparc_memory_model_type): Tweak comments.
31429 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
31431 (mcmodel): Use sparc_code_model enumeration and variable.
31432 (sparc_code_model): New enumeration.
31433 (mdebug): Add Undocumented marker.
31434 * config/sparc/sparc.h (enum cmodel): Delete.
31435 (sparc_cmodel): Likewise.
31436 (TARGET_CM_MEDLOW): Adjust to above renaming.
31437 (TARGET_CM_MEDMID): Likewise.
31438 (TARGET_CM_MEDANY): Likewise.
31439 (TARGET_CM_EMBMEDANY): Likewise.
31440 * config/sparc/sparc.c (sparc_cmodel): Delete.
31441 (sparc_option_override): Remove string/value mapping support for the
31442 code model. Move code and memory model support to after the handling
31443 of target flags. Do private machine setup last.
31444 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
31445 (sparc_legitimize_reload_address): Likewise.
31446 (sparc_output_mi_thunk): Likewise.
31447 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
31449 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31451 PR tree-optimization/89500
31452 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
31453 (handle_builtin_strlen): Remove noncst_bound variable. Always
31454 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
31455 cst if the first cst bytes starting at x are known to be non-zero,
31456 even if the string is not zero terminated. Don't try to modify
31457 *si for strnlen. Update strlen_to_stridx only for strlen or if
31458 we can prove strnlen returns the same value as strlen would.
31460 2019-02-26 Martin Liska <mliska@suse.cz>
31462 * alloc-pool.h (struct pool_usage): Remove extra
31464 * bitmap.h (struct bitmap_usage): Likewise.
31465 * ggc-common.c (struct ggc_usage): Likewise.
31466 * mem-stats.h (struct mem_usage): Likewise.
31467 (mem_alloc_description::dump): Print dash lines
31468 here and repeat header at the end of a table report.
31469 It's then more readable.
31470 * tree-phinodes.c (phinodes_print_statistics): Make
31471 horizontal alignment.
31472 * tree-ssanames.c (ssanames_print_statistics): Likewise.
31473 * vec.c (struct vec_usage): Remove extra print_dash_line.
31474 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
31476 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
31478 * doc/extend.texi (__builtin_object_size):
31479 Use @pxref instead of @xref inside parenthesis.
31480 (__builtin_has_attribute): Add missing comma after @xref.
31481 (__builtin_object_size): Ditto.
31482 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
31484 2019-02-26 Jeff Law <law@redhat.com>
31486 PR rtl-optimization/87761
31487 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
31488 detect obviously dead insns and delete them.
31490 2019-02-26 Richard Biener <rguenther@suse.de>
31492 PR tree-optimization/89505
31493 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
31494 to handle restrict pointed-to vars with multiple subvars
31497 2019-02-26 Richard Biener <rguenther@suse.de>
31499 PR tree-optimization/89489
31500 * tree-parloops.c (create_loop_fn): Copy over last_clique.
31502 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
31504 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
31505 and move around comment.
31506 <BIT_AND_EXPR>: Likewise.
31507 <BIT_NOT_EXPR>: Add specific handling for boolean types.
31509 2019-02-26 Jakub Jelinek <jakub@redhat.com>
31512 * config/i386/i386.c (remove_partial_avx_dependency): Call
31513 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
31514 after changing possibly many instructions to use that pseudo. Fix up
31515 insertion of v4sf_const0 setter at the start of bb.
31517 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31520 * doc/extend.texi (Variadic Pointer Args): New section.
31522 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
31523 Martin Sebor <msebor@gmail.com>
31525 * common.opt (Wattribute-alias): Likewise.
31526 * doc/invoke.texi (Option Summary): List general form of
31527 -Wattribute-alias=. List positive form of -Wmissing-attributes.
31528 (-Wmissing-attributes): Invert entry, rewrite and correct default.
31529 Add cross-references.
31530 (-Wattribute-alias): Rewrite and correct default. Mention
31531 considered attributes (same as for -Wmissing-attributes).
31533 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
31535 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
31536 (_mm_cvtpd_ps): Likewise.
31537 (_mm_cvttpd_epi32): Likewise.
31540 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
31541 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
31544 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
31546 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31549 * common/config/aarch64/aarch64-common.c
31550 (struct aarch64_option_extension): Add is_synthetic.
31551 (all_extensions): Use it.
31552 (TARGET_OPTION_INIT_STRUCT): Define hook.
31553 (struct gcc_targetm_common): Moved to end.
31554 (all_extensions_by_on): New.
31555 (opt_ext_cmp, typedef opt_ext): New.
31556 (aarch64_option_init_struct): New.
31557 (aarch64_contains_opt): New.
31558 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
31559 * config/aarch64/aarch64-option-extensions.def
31560 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
31561 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
31562 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
31563 Set is_synthetic to false.
31564 (crypto): Set is_synthetic to true.
31565 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
31568 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31570 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31571 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
31572 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31573 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
31574 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
31575 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
31576 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
31577 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
31579 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
31580 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31581 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
31582 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
31583 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
31584 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
31585 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
31586 vfmlsl_laneq_high_f16): ... To this.
31587 * config/arm/neon.md: Update comments.
31589 2019-02-25 Tamar Christina <tamar.christina@arm.com>
31591 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
31592 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
31593 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
31594 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
31595 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
31596 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
31597 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
31598 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
31600 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
31601 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
31602 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
31603 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
31604 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
31605 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
31606 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
31607 vfmlslq_laneq_high_f16): ... To this.
31609 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
31611 PR rtl-optimization/86096
31612 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
31613 comparing mw_order values.
31615 2019-02-25 Jakub Jelinek <jakub@redhat.com>
31618 * config/arm/arm.md (*subsi3_carryin_const): Use
31619 arm_neg_immediate_operand predicate instead of
31620 arm_not_immediate_operand, "L" constraint instead of "K" and
31621 print it using %n2 instead of %B2.
31622 (*subsi3_carryin_const0): New define_insn.
31623 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
31624 instead of arm_not_operand and "I" constraint instead of "K" and
31625 print it using %n3 instead of %B2. Instead of using match_dup 2 add
31626 another match_operand and in the condition check that it is negation
31628 (*subsi3_carryin_compare_const0): New define_ins.
31629 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
31630 *subsi3_carryin_const.
31631 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
31632 split into *subsi3_carryin_compare_const0 if the highpart is zero.
31635 * config/arm.vfp.md (*negdf2_vfp): Use
31636 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
31637 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
31639 2019-02-24 Jakub Jelinek <jakub@redhat.com>
31641 PR rtl-optimization/89445
31642 * simplify-rtx.c (simplify_ternary_operation): Don't use
31643 simplify_merge_mask on operands that may trap.
31644 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
31645 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
31646 second operand is CONST_VECTOR, check if any element could be zero.
31647 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
31648 their operands can trap.
31650 2019-02-23 Martin Sebor <msebor@redhat.com>
31652 * gimple-ssa-sprintf.c (target_strtol): Rename...
31653 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
31654 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
31655 check for range error.
31657 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
31660 * opts-common.c (prune_options): Also prune joined switches
31661 with Negative and RejectNegative.
31662 * config/i386/i386.opt (march=): Add Negative(march=).
31663 (mtune=): Add Negative(mtune=).
31664 * doc/options.texi: Document Negative used together with Joined
31665 and RejectNegative.
31667 2019-02-22 Martin Sebor <msebor@redhat.com>
31669 * doc/extend.texi (Other Builtins): Add
31670 __builtin_is_constant_evaluated.
31672 2019-02-22 Richard Biener <rguenther@suse.de>
31674 PR tree-optimization/87609
31675 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
31677 2019-02-22 Jeff Law <law@redhat.com>
31679 PR rtl-optimization/87761
31680 * config/mips/mips.md: Add new combiner pattern to recognize
31681 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
31683 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
31686 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
31687 destination register in peepholes generating patterns for ADDS/SUBS.
31688 (add<mode>3_compare0,
31689 *addsi3_compare0_uxtw, add<mode>3_compareC,
31690 add<mode>3_compareV_imm, add<mode>3_compareV,
31691 *adds_<optab><ALLX:mode>_<GPI:mode>,
31692 *subs_<optab><ALLX:mode>_<GPI:mode>,
31693 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
31694 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
31695 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
31696 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
31697 sub<mode>3_compare1): Allow stack pointer for source register.
31698 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
31700 2019-02-22 Martin Sebor <msebor@redhat.com>
31702 PR tree-optimization/88993
31703 PR tree-optimization/88853
31704 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
31706 (sprintf_dom_walker::call_info::is_string_func): New helper.
31707 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
31708 for formatted string functions.
31709 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
31711 2019-02-22 Martin Sebor <msebor@redhat.com>
31714 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
31715 unreachable subexpressions.
31717 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
31718 Hongtao Liu <hongtao.liu@intel.com>
31719 Sunil K Pandey <sunil.k.pandey@intel.com>
31722 * config/i386/i386-passes.def: Add
31723 pass_remove_partial_avx_dependency.
31724 * config/i386/i386-protos.h
31725 (make_pass_remove_partial_avx_dependency): New.
31726 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
31728 (pass_data_remove_partial_avx_dependency): New.
31729 (pass_remove_partial_avx_dependency): Likewise.
31730 (make_pass_remove_partial_avx_dependency): Likewise.
31731 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
31732 (*extendsfdf2): Add avx_partial_xmm_update.
31733 (truncdfsf2): Likewise.
31734 (*float<SWI48:mode><MODEF:mode>2): Likewise.
31735 (SF/DF conversion splitters): Disabled for TARGET_AVX.
31737 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
31739 PR middle-end/85598
31740 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
31743 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
31746 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
31747 (PTA_SKYLAKE): Add PTA_AES.
31748 (PTA_GOLDMONT): Likewise.
31750 2019-02-22 Sudakshina Das <sudi.das@arm.com>
31752 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
31753 instruction if enabled.
31754 (aarch64_override_options): Remove reference to return address key.
31756 2019-02-22 Richard Biener <rguenther@suse.de>
31758 PR tree-optimization/89440
31759 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
31760 not necessary assert.
31762 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
31765 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
31766 (oacc_replace_fn_attrib_attr): ... this new function.
31767 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
31768 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
31770 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31772 * config/arm/arm-cpus.in (ares): Rename to...
31773 (neoverse-n1): ... This. Add ares as alias.
31774 * config/arm/arm-tables.opt: Regenerate.
31775 * config/arm/arm-tune.md: Likewise.
31776 * doc/invoke.txt (ARM Options): Document neoverse-n1.
31778 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31780 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
31781 * config/aarch64/aarch64-tune.md: Regenerate.
31782 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
31784 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31786 * config/aarch64/aarch64.c (ares_tunings): Rename to...
31787 (neoversen1_tunings): ... This.
31788 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
31789 (neoverse-n1): New CPU.
31790 * config/aarch64/aarch64-tune.md: Regenerate.
31791 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
31793 2019-02-22 Richard Biener <rguenther@suse.de>
31795 PR middle-end/87609
31796 * cfghooks.h (dependence_hash): New typedef.
31797 (struct copy_bb_data): New type.
31798 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
31799 (duplicate_block): Likewise.
31800 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
31801 (copy_bbs): Create and pass down copy_bb_data.
31802 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
31803 (rtl_duplicate_bb): Likewise.
31804 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
31805 remap dependence info.
31807 2019-02-22 Richard Biener <rguenther@suse.de>
31809 PR tree-optimization/87609
31810 * tree-core.h (tree_base): Document special clique values.
31811 * tree-inline.c (remap_dependence_clique): Do not use the
31812 special clique value of one.
31813 (maybe_set_dependence_info): Use clique one.
31814 (clear_dependence_clique): New callback.
31815 (compute_dependence_clique): Clear clique one from all refs
31816 before assigning it (again).
31818 2019-02-21 Martin Sebor <msebor@redhat.com>
31820 * doc/extend.texi (__clear_cache): Correct signature.
31822 2019-02-21 Ian Lance Taylor <iant@golang.org>
31825 * varasm.c (decode_addr_const): Call lookup_constant_def rather
31826 than output_constant_def.
31827 (add_constant_to_table): New static function.
31828 (output_constant_def): Call add_constant_to_table.
31829 (tree_output_constant_def): Likewise.
31831 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31834 * builtins.c (fold_builtin_arith_overflow): If first two args are
31835 INTEGER_CSTs, set intres and ovfres to constants rather than calls
31838 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
31841 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
31842 error for -mindirect-branch/-mfunction-return with incompatible
31845 2019-02-21 Jakub Jelinek <jakub@redhat.com>
31848 * constraints.md (q): Remove.
31849 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
31852 2019-02-21 Martin Jambor <mjambor@suse.cz>
31855 * omp-general.c (omp_extract_for_data): Removed a duplicate call
31856 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
31857 (omp_adjust_for_condition): ...here. Added necessary parameters.
31858 * omp-general.h (omp_adjust_for_condition): Updated declaration.
31859 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
31860 proper values to new parameters of omp_adjust_for_condition.
31862 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31864 PR middle-end/89412
31865 * expr.c (expand_assignment): If result is a MEM, use change_address
31866 instead of simplify_gen_subreg.
31868 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31869 David Malcolm <dmalcolm@redhat.com>
31871 PR middle-end/89091
31872 * fold-const.c (decode_field_reference): Return NULL_TREE if
31873 lang_hooks.types.type_for_size returns NULL. Check it before
31874 overwriting *exp_. Use return NULL_TREE instead of return 0.
31876 2019-02-20 Jakub Jelinek <jakub@redhat.com>
31878 PR middle-end/88074
31879 PR middle-end/89415
31880 * toplev.c (do_compile): Double the emin/emax exponents to workaround
31883 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
31886 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
31887 TARGET_SSE in addition to TARGET_SSE_MATH.
31889 (ix86_excess_precision): Ditto.
31890 (ix86_float_exceptions_rounding_supported_p): Ditto.
31891 (use_rsqrt_p): Ditto.
31892 * config/i386/sse.md (rsqrt<mode>2): Ditto.
31894 2019-02-20 David Malcolm <dmalcolm@redhat.com>
31897 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
31898 linenum_arith_t when determining if two adjacent line spans are
31899 close enough to merge.
31900 (diagnostic_show_locus): Use linenum_arith_t when iterating over
31901 lines within each line_span.
31903 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
31906 * lra-constraints.c(uses_hard_regs_p): Fix handling of
31907 paradoxical SUBREGS.
31909 2019-02-20 Li Jia He <helijia@linux.ibm.com>
31912 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
31913 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
31914 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
31917 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
31919 * config/gcn/gcn.c (print_operand): Fix typo.
31921 2019-02-19 Richard Biener <rguenther@suse.de>
31923 PR middle-end/88074
31924 * toplev.c (do_compile): Initialize mpfr's exponent range
31925 based on available float modes.
31927 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
31929 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
31930 as long as the epilogue isn't completed.
31932 2019-02-18 Martin Sebor <msebor@redhat.com>
31934 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
31935 __has_cpp_attribute, and __has_include.
31937 2019-02-18 Martin Sebor <msebor@redhat.com>
31939 * doc/invoke.texi (-Wreturn-type): Correct and expand.
31941 2019-02-18 Martin Sebor <msebor@redhat.com>
31943 PR middle-end/89294
31944 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
31946 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
31948 2019-02-18 Richard Biener <rguenther@suse.de>
31950 PR tree-optimization/89296
31951 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
31952 of no-warning flag to cases that might emit the bogus warning.
31954 2019-02-18 Jakub Jelinek <jakub@redhat.com>
31957 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
31959 * config/arm/vfp.md (*movdi_vfp): Likewise.
31960 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
31961 "q" constraint for operands[0].
31964 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
31965 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
31966 pattern in a temporary buffer.
31967 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
31968 than 64-operands[2].
31971 * config/s390/s390.c (s390_indirect_branch_attrvalue,
31972 s390_indirect_branch_settings): Define unconditionally.
31973 (s390_set_current_function): Likewise, but guard the whole body except
31974 the s390_indirect_branch_settings call with
31975 #if S390_USE_TARGET_ATTRIBUTE.
31976 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
31978 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
31979 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
31980 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
31981 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
31982 HOST_WIDE_INT_1U instead of 1ULL.
31983 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
31984 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
31985 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
31986 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
31988 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
31991 2019-02-18 Martin Jambor <mjambor@suse.cz>
31993 PR tree-optimization/89209
31994 * tree-sra.c (create_access_replacement): New optional parameter
31995 reg_tree. Use it as a type if non-NULL and access type is not of
31997 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
31998 to create_access_replacement.
31999 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
32000 Check lacc is non-NULL before attempting to re-create it on the RHS.
32002 2019-02-18 Martin Liska <mliska@suse.cz>
32005 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
32007 (symbol_table::free_edge): Recycle m_summary_id.
32008 * cgraph.h (get_summary_id): New.
32009 (symbol_table::release_symbol): Set m_summary_id to -1
32011 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
32012 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
32013 function_summary to fast_function_summary.
32014 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
32015 * ipa-pure-const.c (class funct_state_summary_t):
32016 Switch from function_summary to fast_function_summary.
32017 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
32018 (class ipa_ref_opt_summary_t): Switch from function_summary
32019 to fast_function_summary.
32020 * symbol-summary.h (class function_summary_base): New class
32021 that is created from base of former function_summary.
32022 (function_summary_base::unregister_hooks): New.
32023 (class function_summary): Inherit from function_summary_base.
32024 (class call_summary_base): New class
32025 that is created from base of former call_summary.
32026 (class call_summary): Inherit from call_summary_base.
32027 (struct is_same): New.
32028 (class fast_function_summary): New summary class.
32029 (class fast_call_summary): New summary class.
32030 * vec.h (vec_safe_grow_cleared): New function.
32032 2019-02-18 Martin Liska <mliska@suse.cz>
32034 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
32035 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
32036 * doc/tm.texi: Document new target hook.
32037 * doc/tm.texi.in: Likewise.
32038 * target.def: Add new target macro.
32039 * gcc.c (find_fortran_preinclude_file): Do not search multilib
32042 2019-02-17 Alan Modra <amodra@gmail.com>
32045 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
32046 output reg on add insn.
32047 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
32049 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32052 * config/i386/sse.md (ssedoublemode): Remove V4HI.
32053 (PMULHRSW): Likewise.
32054 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
32056 (ssse3_pmulhrswv4hi3): New expander.
32058 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
32060 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
32061 MMX. Add isa attribute.
32063 2019-02-16 Jakub Jelinek <jakub@redhat.com>
32065 PR rtl-optimization/66152
32066 * builtins.h (c_readstr): Declare.
32067 * builtins.c (c_readstr): Remove forward declaration. Add
32068 null_terminated_p argument, if false, read all bytes from the
32069 string instead of stopping after '\0'.
32070 * expr.c (string_cst_read_str): New function.
32071 (store_expr): Use string_cst_read_str instead of
32072 builtin_strncpy_read_str. Try to store by pieces the whole
32073 exp_len first, and only if that fails, split it up into
32074 store by pieces followed by clear_storage. Formatting fix.
32076 * config/i386/i386.md (*movqi_internal): Remove static from
32077 buf variable. Use output_asm_insn (buf, operands); return "";
32078 instead of return buf;.
32079 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
32080 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
32081 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
32083 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32085 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
32086 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
32087 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
32088 (CC1_SPEC): Likewise.
32089 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
32091 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32093 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
32094 the base address on 64-bit strict-alignment platforms.
32096 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
32098 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
32100 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32102 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
32104 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
32106 PR rtl-optimization/88308
32107 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
32108 on copied instruction.
32110 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
32112 * final.c (insn_current_reference_address): Replace test on JUMP_P
32113 with test on jump_to_label_p.
32114 * config/visium/visium-passes.def: New file.
32115 * config/visium/t-visium (PASSES_EXTRA): Define.
32116 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
32117 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
32118 (TRAMPOLINE_ALIGNMENT): Define.
32119 * config/visium/visium.c (visium_option_override): Do not register
32120 the machine-specific reorg pass here.
32121 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
32123 (output_branch): Adjust threshold for long branch instruction.
32124 * config/visium/visium.md (cpu): Move around.
32125 (length): Adjust for the GR6.
32127 2019-02-15 Richard Biener <rguenther@suse.de>
32128 Jakub Jelinek <jakub@redhat.com>
32130 PR tree-optimization/89278
32131 * tree-loop-distribution.c: Include tree-eh.h.
32132 (generate_memset_builtin, generate_memcpy_builtin): Call
32133 rewrite_to_non_trapping_overflow on builtin->size before passing it
32134 to force_gimple_operand_gsi.
32136 2019-02-15 Jakub Jelinek <jakub@redhat.com>
32139 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
32141 * opth-gen.awk: Likewise.
32143 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
32145 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
32146 Enable MMX, SSE and SSE2 by default.
32147 * config/i386/i386.c (ix86_option_override_internal): Do not
32148 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
32150 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32152 PR rtl-optimization/89354
32153 * combine.c (make_extraction): Punt if extraction_mode is narrower
32156 2019-02-14 Maya Rashish <coypu@sdf.org>
32158 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
32159 * config/netbsd-d.c: New file.
32160 * config/t-netbsd: Add netbsd-d.o
32162 2018-02-14 Steve Ellcey <sellcey@marvell.com>
32164 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
32165 affects_type_identity to true for aarch64_vector_pcs.
32166 (aarch64_comp_type_attributes): New function.
32167 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
32169 2019-02-14 Tamar Christina <tamar.christina@arm.com>
32172 * config/arm/iterators.md (ANY64): Add V4HF.
32174 2019-02-14 Martin Liska <mliska@suse.cz>
32176 PR rtl-optimization/89242
32177 * dce.c (delete_unmarked_insns): Call free_dominance_info we
32178 process a transformation.
32180 2019-02-14 Jakub Jelinek <jakub@redhat.com>
32182 PR tree-optimization/89314
32183 * fold-const.c (fold_binary_loc): Cast strlen argument to
32184 const char * before dereferencing it. Formatting fixes.
32186 PR middle-end/89284
32187 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
32189 2019-02-13 Ian Lance Taylor <iant@golang.org>
32191 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
32192 and set current index for other optimizations.
32194 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
32196 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
32197 nonimmediate_operand as operand 2 predicate.
32198 (vec_set<VF2_512_256:mode>_0): Ditto.
32199 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
32200 (*vec_concatv2si): Remove alternative 2.
32201 (*vec_concatv4si_0): Use vm constraint for alternative 0.
32202 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
32203 (vec_concatv2di): Split alternatives 4,5,6 to ...
32204 (*vec_concatv2di_0) ... new pattern.
32206 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
32209 * config/arm/arm.c (ldm_stm_operation_p) Set
32210 addr_reg_in_reglist correctly for first register.
32211 (load_multiple_sequence): Remove dead base check.
32212 (gen_ldm_seq): Correctly set write_back for Thumb-1.
32214 2019-02-13 Tamar Christina <tamar.christina@arm.com>
32217 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
32218 Expose as @aarch64_pred_mov.
32219 * config/aarch64/aarch64.c (aarch64_classify_address):
32220 Use expand_insn which legitimizes operands.
32222 2019-02-13 Martin Liska <mliska@suse.cz>
32224 * builtins.h (expand_builtin_with_bounds): Remove declaration.
32225 * calls.c (struct arg_data): Remove special_slot, pointer_arg
32226 and pointer_offset fields.
32227 (initialize_argument_information): Remove usage of dead
32229 * cgraph.h (struct cgraph_thunk_info): Remove
32230 add_pointer_bounds_args.
32231 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
32233 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
32235 * config/i386/i386.c (ix86_function_arg_advance): Remove
32237 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
32238 (def_builtin): Remove usage of dead fields.
32239 (ix86_add_new_builtins): Likewise.
32240 * ipa-fnsummary.c (compute_fn_summary): Likewise.
32241 * ipa-icf.c (sem_function::equals_wpa): Likewise.
32242 (sem_function::init): Likewise.
32243 (sem_variable::merge): Likewise.
32244 * ipa-visibility.c (function_and_variable_visibility): Likewise.
32245 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
32246 * lto-cgraph.c (lto_output_node): Likewise.
32247 (lto_output_varpool_node): Likewise.
32248 (input_node): Likewise.
32249 (input_varpool_node): Likewise.
32250 * lto-streamer-out.c (lto_output): Likewise.
32251 * tree-inline.c (expand_call_inline): Remove usage of
32253 * tree-inline.h (struct copy_body_data): Likewise.
32254 * varpool.c (varpool_node::dump): Likewise.
32256 2019-02-13 Jakub Jelinek <jakub@redhat.com>
32258 PR middle-end/89303
32259 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
32260 into pt->vars_contains_escaped_heap instead of setting
32261 pt->vars_contains_escaped_heap to it.
32263 PR middle-end/89281
32264 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
32265 INTVAL (size), compare it to GET_MODE_MASK instead of
32266 1 << GET_MODE_BITSIZE.
32269 * config/i386/predicates.md (x86_64_immediate_operand): Allow
32270 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
32273 2019-02-13 Martin Liska <mliska@suse.cz>
32276 * cfgrtl.c (remove_barriers_from_footer): New function.
32277 (try_redirect_by_replacing_jump): Use it.
32278 (cfg_layout_redirect_edge_and_branch): Likewise.
32280 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
32282 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
32283 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
32284 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
32285 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
32286 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
32287 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
32289 * config/rs6000/rs6000.c (builtin_function_type)
32290 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
32291 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
32292 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
32293 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
32294 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
32296 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
32298 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
32299 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
32301 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
32304 * config/i386/i386.md (*movoi_internal_avx): Revert revision
32305 268678 and revision 268657.
32306 (*movti_internal): Likewise.
32308 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
32311 * config/s390/s390.c (s390_decompose_address): Update comment.
32312 (s390_check_qrst_address): Reject invalid address forms after
32315 2019-02-12 Martin Liska <mliska@suse.cz>
32318 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
32319 we need default values of funct_state for a function that
32322 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
32324 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
32325 the object to pick the size of stores on strict-alignment platforms.
32327 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
32328 (*movdi_insn_sp32): Likewise.
32329 (*movdi_insn_sp64): Likewise.
32331 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
32334 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
32335 types that needs constructiong.
32336 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
32338 2019-02-12 Richard Biener <rguenther@suse.de>
32340 PR tree-optimization/89253
32341 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
32342 duplicate the loop.
32344 2019-02-11 David Malcolm <dmalcolm@redhat.com>
32347 * input.c (selftest::test_line_offset_overflow): New selftest.
32348 (selftest::input_c_tests): Call it.
32350 2019-02-11 Martin Sebor <msebor@redhat.com>
32352 PR tree-optimization/88771
32353 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
32354 when -Wstringop-overflow is set.
32355 (builtin_memref::builtin_memref): Adjust excessive upper bound
32356 only when lower bound is not excessive.
32357 (maybe_diag_overlap): Detect and diagnose excessive bounds via
32358 -Wstringop-ovefflow.
32359 (maybe_diag_offset_bounds): Rename...
32360 (maybe_diag_access_bounds): ...to this.
32361 (check_bounds_or_overlap): Adjust for name change above.
32363 2019-02-11 Martin Sebor <msebor@redhat.com>
32366 * builtins.c (max_object_size): Move from here...
32367 * builtins.h (max_object_size): ...and here...
32368 * tree.c (max_object_size): ...to here...
32369 * tree.h (max_object_size): ...and here.
32371 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
32373 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
32374 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
32375 for correct semantics.
32377 2019-02-11 Alan Modra <amodra@gmail.com>
32379 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
32380 -mlongcall and -mpltseq.
32381 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
32382 (RS/6000 and PowerPC Options <-mpltseq>): Document.
32383 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
32384 * config/rs6000/sysv4.opt (mpltseq): New option.
32385 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
32386 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
32387 support is lacking. Don't allow -mpltseq with -mbss-plt.
32388 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
32389 -mpltseq given for ELFv1.
32390 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
32391 Only use UNSPEC_PLTSEQ for inline PLT calls.
32392 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
32393 use UNSPEC_PLTSEQ for inline PLT calls.
32394 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
32395 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
32396 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
32397 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32398 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32399 (pltseq_mtctr_<mode>): Likewise.
32401 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32403 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
32405 * configure: Regenerate.
32407 2019-02-11 Jakub Jelinek <jakub@redhat.com>
32410 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
32413 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32415 * function.c (assign_parm_setup_block): Use the stored
32416 size, not the passed size, when allocating stack-space,
32417 also for a parameter with alignment larger than
32418 MAX_SUPPORTED_STACK_ALIGNMENT.
32420 2019-02-11 Martin Liska <mliska@suse.cz>
32423 * ipa-cp.c (build_toporder_info): Remove usage of a param.
32424 * ipa-inline.c (inline_small_functions): Likewise.
32425 * ipa-pure-const.c (propagate_pure_const): Likewise.
32426 (propagate_nothrow): Likewise.
32427 * ipa-reference.c (propagate): Likewise.
32428 * ipa-utils.c (struct searchc_env): Remove unused field.
32429 (searchc): Always search across AVAIL_INTERPOSABLE.
32430 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
32431 the only called IPA pure const can properly not propagate
32432 across interposable boundary.
32433 * ipa-utils.h (ipa_reduced_postorder): Remove param.
32435 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
32437 * config/nds32/nds32.md (call_internal, call_value_internal,
32438 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
32440 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
32442 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
32445 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
32447 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
32450 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32452 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
32454 2019-02-10 Jakub Jelinek <jakub@redhat.com>
32456 PR tree-optimization/89268
32457 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
32458 if preds is non-NULL.
32460 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32463 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
32466 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32468 * config/nds32/nds32.md (trap): New pattern.
32470 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
32472 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
32475 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
32477 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
32480 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32482 * ipa-visibility.c (localize_node): Also do not localize
32483 LDPR_PREVAILING_DEF_IRONLY_EXP.
32485 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32488 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
32489 instead of type_with_linkage.
32491 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
32494 * params.def (uninlined-function-insns, uninlined-function-time,
32495 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
32496 bound so we don't get overflows.
32498 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
32500 * config/rs6000/rs6000-string.c (expand_compare_loop,
32501 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
32504 2019-02-09 Jakub Jelinek <jakub@redhat.com>
32506 PR middle-end/89246
32507 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32508 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
32509 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
32511 2019-02-09 Alan Modra <amodra@gmail.com>
32514 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
32515 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
32518 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
32520 PR middle-end/88560
32521 * lra-constraints.c (process_alt_operands): Don't increase reject
32522 for memory when offset memory is required.
32524 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
32526 * config/s390/vector.md: Implement vector copysign.
32528 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32530 * expr.c (expand_constructor): Correct indentations.
32532 2019-02-08 Richard Biener <rguenther@suse.de>
32534 PR tree-optimization/89247
32535 * tree-if-conv.c: Include tree-cfgcleanup.h.
32536 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
32537 (tree_if_conversion): Pass through predicate vector.
32538 (pass_if_conversion::execute): Do CFG cleanup and SSA update
32539 inline, see if any if-converted loops we refrece in
32540 LOOP_VECTORIZED calls vanished and fixup.
32541 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
32543 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
32545 * config/s390/constraints.md (jdd): New constraint.
32547 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
32550 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
32551 upper 16 vector registers without TARGET_AVX512VL.
32552 (*movti_internal): Likewise.
32554 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32556 PR rtl-optimization/89234
32557 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
32558 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
32559 (copy_reg_eh_region_note_backward): Likewise.
32561 2019-02-08 Richard Biener <rguenther@suse.de>
32563 PR middle-end/89223
32564 * tree-data-ref.c (initialize_matrix_A): Fail if constant
32565 doesn't fit in HWI.
32566 (analyze_subscript_affine_affine): Handle failure from
32567 initialize_matrix_A.
32569 2019-02-08 Jakub Jelinek <jakub@redhat.com>
32571 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
32574 2019-02-07 David Malcolm <dmalcolm@redhat.com>
32576 PR tree-optimization/86637
32577 PR tree-optimization/89235
32578 * tree-vect-loop.c (optimize_mask_stores): Add an
32579 auto_purge_vect_location sentinel to ensure that vect_location is
32581 * tree-vectorizer.c
32582 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
32583 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
32584 to ensure that vect_location is purged on exit.
32585 (pass_slp_vectorize::execute): Likewise, replacing the manual
32587 * tree-vectorizer.h (class auto_purge_vect_location): New class.
32589 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32591 * config/aarch64/iterators.md (max_opp): New code_attr.
32592 (USMAX): New code iterator.
32593 * config/aarch64/predicates.md (aarch64_smin): New predicate.
32594 (aarch64_smax): Likewise.
32595 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
32596 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
32599 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
32602 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
32603 for TARGET_AVX512VL.
32604 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
32606 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
32608 * config/s390/s390-builtin-types.def: Add new types.
32609 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
32610 (s390_vec_xlw4): Make the memory operand into a const pointer.
32611 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
32613 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
32614 a new vector type with the alignment of the scalar memory operand.
32616 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
32617 Jakub Jelinek <jakub@redhat.com>
32620 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
32621 arm_count_ldrdstrd_insns): New declarations.
32622 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
32624 (valid_operands_ldrd_strd): New function.
32625 (arm_count_ldrdstrd_insns): New function.
32626 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
32627 sets instead of single DImode set and define new insns to match this.
32629 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32631 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
32632 Make it a C initializer.
32634 2019-02-07 Tamar Christina <tamar.christina@arm.com>
32637 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
32639 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32641 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
32642 Use neon_dot<q> for type.
32643 (neon_<sup>dot_lane<vsi2qi>): Likewise.
32645 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32647 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
32648 Use neon_dot<q> for type.
32649 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
32650 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
32652 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
32654 PR rtl-optimization/89225
32655 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
32658 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
32660 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
32661 after restoring registers saved to allocate the frame on Windows.
32663 2019-02-06 Richard Biener <rguenther@suse.de>
32665 PR tree-optimization/89182
32666 * graphite.h (cached_scalar_evolution_in_region): Declare.
32667 * graphite.c (struct seir_cache_key): New.
32668 (struct sese_scev_hash): Likewise.
32669 (seir_cache): New global.
32670 (cached_scalar_evolution_in_region): New function.
32671 (graphite_transform_loops): Allocate and release seir_cache.
32672 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
32673 cached_scalar_evolution_in_region.
32674 * graphite-scop-detection.c (scop_detection::can_represent_loop):
32676 (scop_detection::graphite_can_represent_expr: Use
32677 cached_scalar_evolution_in_region.
32678 (scop_detection::stmt_simple_for_scop_p): Likewise.
32679 (find_params_in_bb): Likewise.
32680 (gather_bbs::before_dom_children): Likewise.
32681 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
32682 (add_loop_constraints): Likewise.
32684 2019-02-06 Jakub Jelinek <jakub@redhat.com>
32686 PR middle-end/89210
32687 * fold-const-call.c (fold_const_vec_convert): Pass true as last
32688 operand to new_unary_operation only if both element types are integral
32689 and it isn't a widening conversion. Return NULL_TREE if
32690 new_unary_operation failed.
32692 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
32695 * config/s390/s390.md: Remove load and test FP splitter.
32697 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32700 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
32701 expand_compare_loop, expand_block_compare_gpr,
32702 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
32703 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
32704 #include "profile-count.h" and "predict.h" for types and functions
32705 needed to work with REG_BR_PROB notes.
32707 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
32710 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
32711 for the long branch case.
32713 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32716 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
32717 can throw, non-call exceptions are enabled and we can't delete
32718 dead exceptions or alter cfg. Set must_clean if
32719 delete_insn_and_edges returns true, don't set it blindly for calls.
32720 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
32722 PR rtl-optimization/89195
32723 * combine.c (make_extraction): For MEMs, don't extract bytes outside
32724 of the original MEM.
32726 2019-02-05 Martin Liska <mliska@suse.cz>
32728 PR gcov-profile/89000
32729 * gcov.c (function_summary): Remove argument.
32730 (file_summary): New function.
32731 (print_usage): Replace tabs with spaces.
32732 (generate_results): Use new function file_summary.
32734 2019-02-05 Jakub Jelinek <jakub@redhat.com>
32737 * optabs.c (prepare_cmp_insn): Pass x and y to
32738 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
32740 2019-02-05 Richard Biener <rguenther@suse.de>
32742 PR middle-end/89150
32743 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
32744 (struct bitmap_element): Drop chain_prev so we properly recurse on
32745 the prev member, supporting tree views.
32746 (struct bitmap_head): GTY skip the obstack member.
32748 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
32751 * doc/extend.texi (Vector Extensions): Add an example of using vector
32752 types together with x86 intrinsics.
32754 2019-02-04 Alan Modra <amodra@gmail.com>
32756 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
32757 str[] size to 160, and comment.
32759 2019-02-04 Alan Modra <amodra@gmail.com>
32761 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
32762 (rs6000_pltseq_template): Guard output of TLS markers with
32763 TARGET_TLS_MARKERS.
32764 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
32765 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
32766 to use inline PLT sequences.
32767 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
32768 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
32769 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
32771 2019-02-04 Martin Liska <mliska@suse.cz>
32774 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
32775 out when ipa_fn_summaries does not contain entry for callee.
32777 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
32779 * config/sparc/sparc.h: Remove superfluous blank lines.
32780 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
32781 (got_register_rtx): ...this.
32782 (sparc_got): Adjust to above renaming.
32783 (sparc_tls_got): Likewise.
32784 (sparc_delegitimize_address): Likewise.
32785 (sparc_output_mi_thunk): Likewise.
32786 (sparc_init_pic_reg): Likewise.
32787 (save_local_or_in_reg_p): Fix test on the GOT register.
32788 (USE_HIDDEN_LINKONCE): Move around.
32789 (get_pc_thunk_name): Likewise.
32790 (gen_load_pcrel_sym): Likewise.
32791 (load_got_register): Likewise.
32793 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
32795 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
32796 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
32798 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32800 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
32801 into consideration.
32803 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
32805 * config.gcc (with_nds32_lib, glibc):
32806 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
32807 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
32808 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
32810 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
32813 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
32814 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
32815 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
32816 (*rcpsf2_sse): Ditto.
32817 (*rsqrtsf2_sse): Ditto.
32818 (sse4_1_round<mode<2): Ditto.
32820 2019-02-03 Richard Biener <rguenther@suse.de>
32823 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
32826 2019-02-02 Jakub Jelinek <jakub@redhat.com>
32828 PR middle-end/87887
32829 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
32830 Punt with warning on aggregate return or argument types. Ignore
32831 type/mode checking for uniform arguments.
32833 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
32835 * combine.c (try_combine): Do not print "Can't combine" messages unless
32836 printing failed combination attempts.
32838 2019-02-01 Martin Jambor <mjambor@suse.cz>
32841 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
32842 segment and global segment variables before making them static.
32844 2019-02-01 Martin Jambor <mjambor@suse.cz>
32846 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
32847 missed optimization dump with dump_enabled_p.
32849 2019-02-01 Richard Biener <rguenther@suse.de>
32851 PR middle-end/88597
32852 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
32853 the instantiate cache.
32854 (instantiate_scev_binary): Elide second operand procesing
32855 if equal to the first.
32856 * tree-chrec.c (chrec_contains_symbols): Add visited set.
32857 (chrec_contains_undetermined): Likewise.
32858 (tree_contains_chrecs): Likewise.
32860 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
32862 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
32864 2019-02-01 Jakub Jelinek <jakub@redhat.com>
32866 PR tree-optimization/89143
32867 * wide-int-range.h (wide_int_range_absu): Declare.
32868 * wide-int-range.cc (wide_int_range_absu): New function.
32869 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
32871 PR tree-optimization/88107
32872 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
32873 instead of assertion that eh_region_outermost is non-NULL, if it
32874 is NULL, set *ALL to true and return NULL.
32875 (move_sese_region_to_fn): Adjust caller, if all is set, call
32876 duplicate_eh_regions with NULL region.
32878 2019-02-01 Richard Biener <rguenth@suse.de>
32880 PR rtl-optimization/88593
32881 * mode-switching.c (optimize_mode_switching): Free dominators before
32882 calling cleanup_cfg.
32884 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
32886 PR tree-optimization/88932
32887 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
32889 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32891 PR middle-end/89137
32892 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
32893 bogus clang warning.
32895 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
32898 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
32899 alternative to avoid partial SSE register stall for TARGET_AVX.
32900 (truncdfsf2): Ditto.
32901 (sse4_1_round<mode>2): Ditto.
32903 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
32905 PR tree-optimization/89008
32906 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
32907 process anything of the form X * 0.
32909 2019-01-31 Richard Biener <rguenther@suse.de>
32911 PR tree-optimization/89135
32912 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
32913 with abnormal preds.
32915 2019-01-31 Jakub Jelinek <jakub@redhat.com>
32918 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
32919 always_inline callees into no_sanitize_address callers.
32921 2019-01-31 Richard Biener <rguenther@suse.de>
32923 PR rtl-optimization/89115
32924 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
32926 2019-01-30 Martin Sebor <msebor@redhat.com>
32929 * doc/extend.texi (cast to a union): Correct and expand.
32931 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
32933 PR rtl-optimization/87246
32934 * lra-constraints.c (simplify_operand_subreg): Reload memory
32935 in subreg if the address became invalid.
32937 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
32940 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
32941 Disable for little-endian.
32943 2019-01-30 Richard Biener <rguenther@suse.de>
32945 PR rtl-optimization/89115
32946 * opts.c (default_options_optimization): Reduce
32947 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
32948 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
32951 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
32953 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
32954 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
32955 type of vector element when vec_extract is implemented by direct
32958 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
32960 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
32962 2019-01-30 Richard Biener <rguenther@suse.de>
32964 PR tree-optimization/89111
32965 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
32966 canonicalization to appropriately sized access types.
32968 2019-01-30 Jakub Jelinek <jakub@redhat.com>
32971 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
32972 for arguments to functions that are TU-local and shouldn't be
32973 referenced by assembly.
32975 2019-01-30 Ulrich Drepper <drepper@redhat.com>
32977 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
32980 2019-01-29 Martin Sebor <msebor@redhat.com>
32983 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
32985 2019-01-29 Jakub Jelinek <jakub@redhat.com>
32989 * omp-simd-clone.c (simd_clone_clauses_extract)
32990 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
32991 OMP_CLAUSE_ALIGNED_ALIGNMENT.
32993 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
32995 * config.gcc: Force .init_array for ARC.
32997 2019-01-29 Richard Biener <rguenther@suse.de>
33000 * dwarf2out.c (collect_skeleton_dies): New helper.
33001 (copy_decls_for_unworthy_types): Call it.
33002 (build_abbrev_table): Assert we do not try to replace
33003 DW_AT_signature refs with local refs.
33005 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33007 PR middle-end/89002
33008 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
33009 for lastprivate/linear IV, push gimplify context around gimplify_assign
33010 and, if it needed any temporaries, pop it into a gimple bind around the
33013 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
33015 * common.opt (-Wattribute-alias): Remove "no-" from name.
33016 Make -Wattribute-alias command line option and
33017 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
33019 2019-01-28 Jakub Jelinek <jakub@redhat.com>
33022 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
33023 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
33025 (bmi2): Add missing @opindex.
33026 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
33027 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
33028 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
33029 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
33030 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
33031 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
33032 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
33033 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
33034 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
33035 xsavec, xsaveopt and xsaves options.
33037 2019-01-28 Richard Biener <rguenther@suse.de>
33040 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
33043 2019-01-28 Richard Biener <rguenther@suse.de>
33045 PR tree-optimization/88739
33046 * tree-cfg.c (verify_types_in_gimple_reference): Verify
33047 BIT_FIELD_REFs only are applied to mode-precision operands
33048 when they are integral.
33049 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
33050 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
33051 BIT_FIELD_REFs of non-mode-precision integral operands.
33053 2019-01-27 Jakub Jelinek <jakub@redhat.com>
33056 * config/i386/sse.md
33057 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
33058 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
33059 first constants in pairs are multiples of 2. Formatting fixes.
33060 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
33061 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
33062 first constants in each quadruple are multiples of 4. Formatting fixes.
33064 2019-01-26 Martin Jambor <mjambor@suse.cz>
33067 * tree-inline.c: Include tree-cfgcleanup.h.
33068 (delete_unreachable_blocks_update_callgraph): Move...
33069 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
33070 ...here, make externally visible, make second argument bool, adjust
33072 * tree-cfgcleanup.c: Include cgraph.h.
33073 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
33075 * ipa-prop.c: Include tree-cfgcleanup.h.
33076 (ipcp_transform_function): Call
33077 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
33079 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
33081 PR rtl-optimization/88846
33082 * ira.c (process_set_for_memref_referenced_p): New.
33083 (memref_referenced_p): Add new param. Use
33084 process_set_for_memref_referenced_p. Add new switch cases.
33085 (memref_used_between_p): Pass new arg to memref_referenced_p.
33087 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
33090 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
33091 argument ABI_BREAK. Set to true if the calculated alignment has
33092 changed in gcc-9. Check bit-fields for their base type alignment.
33093 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
33094 (aarch64_function_arg_boundary): Likewise.
33095 (aarch64_gimplify_va_arg_expr): Likewise.
33097 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33099 PR middle-end/89037
33100 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
33101 instead of accessing TREE_INT_CST_ELT directly.
33103 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
33105 * doc/sourcebuild.texi (Environment attributes): Add fenv and
33106 fenv_exceptions description.
33108 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
33110 PR rtl-optimization/87763
33111 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
33112 Allow SUBREG when matching CC_NZmode compare.
33114 2019-01-25 Richard Biener <rguenther@suse.de>
33116 PR tree-optimization/89049
33117 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
33118 Look at the pattern stmt to determine if the stmt is vectorized.
33120 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
33122 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
33123 (pred_mov<mode>): Handle all-register forms using both a new
33124 alternative and a split.
33126 2019-01-25 Richard Biener <rguenther@suse.de>
33128 PR tree-optimization/86865
33129 * graphite-scop-detection.c (scop_detection::can_represent_loop):
33130 Reject non-do-while loops.
33132 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
33134 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
33135 * config/rs6000/constraints.md (Q constraint): Use REG_P.
33136 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
33137 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33138 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
33139 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33140 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
33141 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
33142 vlogical_operand, gpc_reg_operand, int_reg_operand,
33143 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
33144 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
33145 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
33146 (save_world_operation, restore_world_operation, lmw_operation,
33147 stmw_operation): Use MEM_P and REG_P.
33148 (tie_operand): Use MEM_P.
33149 (vrsave_operation, crsave_operation): Use REG_P.
33150 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
33151 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
33152 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
33153 (call_operand): Use HARD_REGISTER_P.
33154 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
33156 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
33157 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
33158 quad_aligned_load_p, replace_swapped_aligned_store,
33159 recombine_lvx_pattern, replace_swapped_aligned_load,
33160 recombine_stvx_pattern): Use MEM_P.
33161 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
33162 Use MEM_P and SYMBOL_REF_P.
33163 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
33164 (insn_is_swappable_p): Use REG_P and MEM_P.
33165 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
33166 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
33168 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
33169 Use CONST_DOUBLE_P.
33170 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
33172 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
33173 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
33174 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
33175 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
33177 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33178 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
33179 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
33180 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
33181 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
33182 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
33183 rs6000_split_logical_di): Use CONST_INT_P.
33184 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
33185 REG_P and SYMBOL_REF_P.
33186 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
33187 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
33188 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
33189 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
33190 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
33191 (small_data_operand, print_operand_address): Use CONST_INT_P and
33193 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
33194 (rs6000_init_hard_regno_mode_ok, direct_move_p):
33195 Use HARD_REGISTER_NUM_P.
33196 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
33197 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
33198 SUBREG_P and SYMBOL_REF_P.
33199 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
33200 and HARD_REGISTER_NUM_P.
33201 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
33203 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
33204 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
33206 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
33207 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
33208 find_addr_reg): Use REG_P.
33209 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
33210 (rs6000_emit_le_vsx_move): Use SUBREG_P.
33211 (offsettable_ok_by_alignment, constant_pool_expr_p,
33212 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
33213 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
33214 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
33215 rs6000_assemble_integer, create_TOC_reference,
33216 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
33217 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
33218 (rs6000_split_vec_extract_var): Use reg_or_subregno.
33219 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
33220 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
33221 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33222 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
33223 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
33224 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
33225 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
33226 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
33227 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
33228 and cbranch<mode>4): Use CONST_INT_P.
33229 (multiple define_splits): Use REG_P and SUBREG_P.
33230 (define_expands call, call_value): Use MEM_P.
33231 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
33232 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
33233 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
33234 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
33235 and HARD_REGISTER_NUM_P.
33236 (multiple define_splits): Use HARD_REGISTER_NUM_P.
33238 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
33240 PR rtl-optimization/88948
33241 * rtl.h (prepare_copy_insn): New prototype.
33242 * gcse.c (prepare_copy_insn): New function, split out from
33243 process_insert_insn.
33244 (process_insert_insn): Use prepare_copy_insn.
33245 * store-motion.c (replace_store_insn): Use prepare_copy_insn
33246 instead of gen_move_insn.
33248 2019-01-24 Jakub Jelinek <jakub@redhat.com>
33251 * config/i386/i386.c (ix86_pic_register_p): Return true for
33252 UNSPEC_SET_GOT too.
33254 PR tree-optimization/88964
33255 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
33256 punt if HONOR_SNANS (chrec).
33258 PR middle-end/89015
33259 * tree-nested.c (convert_nonlocal_reference_stmt,
33260 convert_local_reference_stmt, convert_tramp_reference_stmt,
33261 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
33262 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
33263 or GIMPLE_OMP_TASK.
33265 PR tree-optimization/89027
33266 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
33267 for "omp simd array" variables.
33269 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
33272 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
33273 force the alignment of m_val.
33275 2019-01-24 Richard Biener <rguenther@suse.de>
33278 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
33279 When in "legacy" debug mode make sure to reset self-origins.
33281 2019-01-24 Martin Liska <mliska@suse.cz>
33283 PR gcov-profile/88994
33284 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
33285 result will be always smaller or equal to the original.
33286 * gcov.c (mangle_name): Fix else branch where we should
33287 also copy to PTR and shift the pointer.
33289 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
33291 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
33292 * vr-values.c (find_case_label_ranges): Fix a comment typo.
33294 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
33296 * common/config/i386/i386-common.c
33297 (OPTION_MASK_ISA_ENQCMD_SET,
33298 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
33299 (ix86_handle_option): Handle -menqcmd.
33300 * config.gcc (enqcmdintrin.h): New header file.
33301 * config/i386/cpuid.h (bit_ENQCMD): New bit.
33302 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
33304 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
33306 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
33307 __builtin_ia32_enqcmds): New builtins.
33308 * config/i386/i386-c.c (__ENQCMD__): New macro.
33309 * config/i386/i386-option.c (ix86_target_string): Add
33311 (ix86_valid_target_attribute_inner_p): Likewise.
33312 * config/i386/i386-expand.c
33313 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
33314 IX86_BUILTIN_ENQCMDS.
33315 * config/i386/i386.h (TARGET_ENQCMD): New.
33316 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
33317 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
33318 (movdir64b_<mode>): Parameterize to enable share expansion code
33319 with ENQCMD in function ix86_expand_builtin.
33320 * config/i386/i386.opt: Add -menqcmd.
33321 * config/i386/immintrin.h: Include enqcmdintrin.h.
33322 * config/i386/enqcmdintrin.h: New intrinsic file.
33323 * doc/invoke.texi: Add -menqcmd.
33325 2019-01-23 Bin Cheng <bin.cheng@arm.com>
33326 Steve Ellcey <sellcey@marvell.com>
33329 * recog.c (address_operand): Return false on wrong mode for address.
33330 (constrain_operands): Check for mode with 'p' constraint.
33332 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
33335 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
33336 Disparage MMX alternative.
33337 (sse2_cvtpd2pi): Ditto.
33338 (sse2_cvttpd2pi): Ditto.
33340 2019-01-23 David Malcolm <dmalcolm@redhat.com>
33343 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
33344 use-after-free of the result of
33345 aarch64_get_extension_string_for_isa_flags.
33347 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33350 * doc/extend.texi: Document break and continue behavior in
33351 statement expressions.
33353 2019-01-23 Richard Biener <rguenther@suse.de>
33355 PR tree-optimization/89008
33356 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
33357 not leave another stray operand.
33359 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33361 * BASE-VER: Bump to 9.0.1.
33363 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
33365 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
33366 thunk that returns by reference, use the type of the return object
33367 of the thunk instead of that of the alias to build the dereference.
33369 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
33371 * config/arc/atomic.md: Add operand to DMB instruction.
33373 2019-01-23 Jakub Jelinek <jakub@redhat.com>
33375 PR tree-optimization/88964
33376 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
33377 build_zero_cst instead of build_int_cst. Return false for loop
33378 invariants which honor signed zeros.
33380 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
33382 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
33384 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33387 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
33388 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
33389 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
33391 PR middle-end/88968
33392 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
33393 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
33396 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
33397 Disable for little endian.
33399 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33402 * config/arm/arm.c (arm_needs_double_word_align): Check
33403 DECL_BIT_FIELD_TYPE.
33405 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
33406 H.J. Lu <hongjiu.lu@intel.com>
33409 * config/i386/i386-builtin.def: Add mask2 to all builtin
33410 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
33412 * config/i386/i386.c (BDESC): Add mask2 to the definition.
33413 (BDESC_FIRST): Likewise.
33414 (define_builtin): Add an argument for mask2. Updated to handle
33415 both ix86_isa_flags and ix86_isa_flags2.
33416 (define_builtin_const): Likewise.
33417 (define_builtin_pure): Likewise.
33418 (define_builtin2): Deleted.
33419 (define_builtin_const2): Likewise.
33420 (builtin_description): Add a member, mask2.
33421 (bdesc_*): Add mask2 to builtin initializations.
33422 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
33423 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
33425 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
33427 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
33430 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
33433 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
33436 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
33437 alignment is dominated by a bitfield with 64-bit aligned base type.
33438 (arm_function_arg): Emit a warning if the alignment has changed since
33439 earlier GCC releases.
33440 (arm_function_arg_boundary): Likewise.
33441 (arm_setup_incoming_varargs): Likewise.
33443 2019-01-22 Richard Biener <rguenther@suse.de>
33445 PR tree-optimization/88862
33446 * graphite-scop-detection.c
33447 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
33449 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
33451 * doc/extend.tex (AMD GCN Function Attributes): New section.
33452 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
33453 * doc/invoke.texi (AMD GCN Options): New section.
33454 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
33456 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
33458 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
33459 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
33461 2019-01-22 Jakub Jelinek <jakub@redhat.com>
33463 PR tree-optimization/88044
33464 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
33465 is false in the first iteration, but !every_iteration, return false
33466 instead of true with niter->niter zero.
33468 PR rtl-optimization/88904
33469 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
33470 any nonequal registers before processing BB_END (b).
33473 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
33475 (expand_binop_directly, expand_doubleword_clz,
33476 expand_doubleword_popcount, expand_ctz, expand_ffs,
33477 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
33479 PR rtl-optimization/49429
33481 PR rtl-optimization/86334
33483 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
33484 addressable from here...
33485 (emit_block_op_via_libcall): ... to here.
33487 2019-01-22 Richard Biener <rguenther@suse.de>
33489 * tree-vect-loop.c (vect_analyze_loop_operations): Use
33490 auto_vec for cost vector to fix memleak.
33491 (vectorize_fold_left_reduction): Properly gather SLP defs.
33492 (vectorizable_comparison): Do not swap operands to properly
33495 2019-01-22 Alan Modra <amodra@gmail.com>
33498 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
33499 stays a reg. Allow a const_int.
33500 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
33501 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
33502 (IS_NOMARK_TLSGETADDR): Define.
33503 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
33504 (rs6000_output_tlsargs): New function.
33505 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
33506 __tls_get_addr call takes an arg.
33507 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
33508 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
33510 (call_value_nonlocal_sysv): ..or here, delete split.
33511 (tls_gdld_nomark): Delete.
33512 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
33513 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
33514 (call_value_nonlocal_sysv): Likewise.
33515 (call_value_nonlocal_sysv_secure): Likewise.
33516 (call_value_nonlocal_aix): Likewise.
33517 (call_value_indirect_aix): Likewise.
33518 (call_value_indirect_elfv2): Likewise.
33519 (call_value_local32, call_value_local64): Disable for no-mark tls.
33520 (call_value_local_aix): Likewise.
33522 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
33525 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
33526 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
33528 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
33530 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
33531 string contents as hash_map keys.
33533 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
33536 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
33537 for rvalue context. Handle rvalues correctly. Use min_align_of_type
33538 instead of TYPE_ALIGN.
33539 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
33540 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
33541 pointer from TYPE_STUB_DECL.
33543 2019-01-21 Richard Biener <rguenther@suse.de>
33545 PR tree-optimization/88934
33546 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
33547 at the possibly non-constant operand.
33548 (vect_get_constant_vectors): Adjust.
33550 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
33553 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
33554 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
33555 instead of _X86INTRIN_H_INCLUDED.
33556 * onfig/i386/clwbintrin.h: Likewise.
33557 * config/i386/pkuintrin.h: Likewise.
33558 * config/i386/prfchwintrin.h: Likewise.
33559 * config/i386/rdseedintrin.h: Likewise.
33560 * config/i386/wbnoinvdintrin.h: Likewise.
33561 * config/i386/xsavecintrin.h: Likewise.
33562 * config/i386/xsavesintrin.h: Likewise.
33563 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
33564 * config/i386/xsaveintrin.h: Likewise.
33565 * config/i386/xsaveoptintrin.h: Likewise.
33566 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
33567 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
33568 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
33569 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
33570 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
33571 * config/i386/immintrin.h: Here.
33573 2019-01-20 Martin Jambor <mjambor@suse.cz>
33576 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
33577 with aa_walk_budget.
33578 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
33579 aa_walk_budget_p parameter.
33580 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
33581 walk. Updated all callers.
33582 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
33583 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
33585 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
33586 parameter info. Extract info from fbi. Pass fbi to recursive calls
33587 and to unmodified_parm.
33588 (phi_result_unknown_predicate): New parameter fbi, removed parameter
33589 info, updated call to will_be_nonconstant_expr_predicate.
33590 (param_change_prob): New parameter fbi, limit AA walking.
33591 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
33592 calls to various above functions.
33593 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
33594 parameter. Use it to limit AA walking.
33595 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
33596 fbi, limit AA walk.
33597 (detect_type_change): New parameter fbi, pass it on to
33598 detect_type_change_from_memory_writes.
33599 (detect_type_change_ssa): Likewise.
33600 (aa_overwalked): Removed.
33601 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
33602 accordingly, adjust to the neew AA limiting scheme.
33603 (parm_ref_data_preserved_p): Likewise.
33604 (ipa_compute_jump_functions_for_edge): Adjust call to
33606 (ipa_analyze_call_uses): Likewise.
33607 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
33608 (ipa_analyze_node): Initialize aa_walk_budget.
33609 (ipcp_transform_function): Likewise.
33610 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
33611 to get_dynamic_type.
33613 2019-01-19 Jakub Jelinek <jakub@redhat.com>
33615 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
33616 outside of #if CHECKING_P code.
33618 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
33620 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
33621 New function, split out from...
33622 (loop_versioning::analyze_stride): ...here.
33623 (loop_versioning::find_per_loop_multiplication): Use gassign.
33624 (loop_versioning::analyze_term_using_scevs): Return a success code.
33625 (loop_versioning::analyze_arbitrary_term): New function.
33626 (loop_versioning::analyze_address_fragment): Use
33627 analyze_arbitrary_term if all else fails.
33629 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
33632 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
33635 2019-01-18 Richard Biener <rguenther@suse.de>
33637 PR tree-optimization/88903
33638 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
33639 scalar stmts a SLP shift amount is composed of when detecting
33642 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
33645 * config/arm/arm-cpus.in (mp): New feature.
33646 (sec): New feature.
33647 (fgroup ARMv7ve): Add mp and sec features.
33648 (arch armv7-a): Add options to allow mp and sec extensions.
33649 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
33650 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
33651 extenstions to the base architecture.
33652 (cpu cortex-a8): Add sec extension to the base architecture.
33653 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
33654 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
33655 variants down to the base v7-a varaint.
33656 * config/arm/t-multilib (v7_a_arch_variants): New variable.
33657 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
33658 of permitted extensions for -march=armv7-a and for
33659 -mcpu=generic-armv7-a.
33661 2019-01-18 Martin Liska <mliska@suse.cz>
33663 * params.def: Fix comment.
33664 * tree-profile.c (gimple_init_gcov_profiler): Bump function
33666 (gimple_gen_ic_func_profiler): Likewise.
33668 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33670 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
33671 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
33672 and put in error checks for stack protector guard options.
33673 (aarch64_stack_protect_guard): New.
33674 (TARGET_STACK_PROTECT_GUARD): Define.
33675 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
33676 (reg_stack_protect_address<mode>): New.
33677 (stack_protect_set): Adjust for SSP_GLOBAL.
33678 (stack_protect_test): Likewise.
33679 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
33680 (-mstack-protector-guard): Likewise.
33681 (-mstack-protector-guard-offset): Likewise.
33683 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33685 PR tree-optimization/86214
33686 * tree-inline.h (struct copy_body_data): Add
33687 add_clobbers_to_eh_landing_pads member.
33688 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
33689 (copy_edges_for_bb): Call it if EH edge destination is <
33690 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
33691 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
33692 if flag_stack_reuse != SR_NONE and clear it afterwards.
33694 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
33697 * doc/install.texi (with-multilib-list): Document for aarch64.
33699 2019-01-18 Jakub Jelinek <jakub@redhat.com>
33702 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
33703 (("..."))) with ("...").
33705 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
33707 * doc/extend.texi (Built-in Functions for Memory Model Aware
33708 Atomic Operations): Document atomic fetch and nand.
33710 2019-01-18 Martin Liska <mliska@suse.cz>
33711 Richard Biener <rguenther@suse.de>
33713 PR middle-end/88587
33714 * cgraph.h (create_version_clone_with_body): Add new argument
33716 * cgraphclones.c (cgraph_node::create_version_clone): Add
33717 DECL_ATTRIBUTES to a newly created decl. And call
33718 valid_attribute_p so that proper cl_target_optimization_node
33719 is set for the newly created declaration.
33720 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
33722 (expand_target_clones): Do not call valid_attribute_p, it must
33724 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
33727 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33730 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
33731 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
33732 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
33734 2019-01-17 Martin Sebor <msebor@redhat.com>
33736 PR middle-end/88273
33737 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
33738 Handle anti-ranges the same as no range at all.
33740 2018-01-17 Steve Ellcey <sellcey@cavium.com>
33742 * config/aarch64/aarch64.c (cgraph.h): New include.
33743 (intl.h): New include.
33744 (supported_simd_type): New function.
33745 (currently_supported_simd_type): Ditto.
33746 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
33747 (aarch64_simd_clone_adjust): Ditto.
33748 (aarch64_simd_clone_usable): Ditto.
33749 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
33750 (TARGET_SIMD_CLONE_ADJUST): Ditto.
33751 (TARGET_SIMD_CLONE_USABLE): Ditto.
33752 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
33753 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
33756 2019-01-17 Martin Sebor <msebor@redhat.com>
33758 PR tree-optimization/88800
33759 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
33760 NO_WARNING bit here. Avoid folding out-of-bounds calls.
33761 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
33762 redundant argument. Add new argument and issue diagnostics under
33763 its control. Detect out-of-bounds access even with warnings
33765 (check_bounds_or_overlap): Change return type. Add argument.
33766 (wrestrict_dom_walker::check_call): Adjust.
33767 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
33768 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
33769 check_bounds_or_overlap's return value.
33770 (handle_builtin_stxncpy): Same.
33771 (handle_builtin_strcat): Same.
33773 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33774 Kwok Cheung Yeung <kcy@codesourcery.com>
33775 Julian Brown <julian@codesourcery.com>
33776 Tom de Vries <tom@codesourcery.com>
33778 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
33780 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33782 * doc/sourcebuild.texi: Document dg-require-effective-target
33783 llvm_binutils and offload_gcn.
33785 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33786 Kwok Cheung Yeung <kcy@codesourcery.com>
33787 Julian Brown <julian@codesourcery.com>
33788 Tom de Vries <tom@codesourcery.com>
33790 * doc/sourcebuild.texi: Document dg-required-effective-target
33793 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33794 Kwok Cheung Yeung <kcy@codesourcery.com>
33795 Julian Brown <julian@codesourcery.com>
33796 Tom de Vries <tom@codesourcery.com>
33797 Jan Hubicka <hubicka@ucw.cz>
33798 Martin Jambor <mjambor@suse.cz>
33800 * config.gcc: Add amdgcn*-*-amdhsa configuration.
33801 * configure.ac: Check for dlopen.
33802 * configure: Regenerate.
33804 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33805 Kwok Cheung Yeung <kcy@codesourcery.com>
33806 Julian Brown <julian@codesourcery.com>
33807 Tom de Vries <tom@codesourcery.com>
33808 Jan Hubicka <hubicka@ucw.cz>
33809 Martin Jambor <mjambor@suse.cz>
33811 * common/config/gcn/gcn-common.c: New file.
33812 * config/gcn/driver-gcn.c: New file.
33813 * config/gcn/gcn-builtins.def: New file.
33814 * config/gcn/gcn-hsa.h: New file.
33815 * config/gcn/gcn-modes.def: New file.
33816 * config/gcn/gcn-opts.h: New file.
33817 * config/gcn/gcn-passes.def: New file.
33818 * config/gcn/gcn-protos.h: New file.
33819 * config/gcn/gcn-run.c: New file.
33820 * config/gcn/gcn-tree.c: New file.
33821 * config/gcn/gcn.c: New file.
33822 * config/gcn/gcn.h: New file.
33823 * config/gcn/gcn.opt: New file.
33824 * config/gcn/t-gcn-hsa: New file.
33826 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
33827 Kwok Cheung Yeung <kcy@codesourcery.com>
33828 Julian Brown <julian@codesourcery.com>
33829 Tom de Vries <tom@codesourcery.com>
33830 Jan Hubicka <hubicka@ucw.cz>
33831 Martin Jambor <mjambor@suse.cz>
33833 * config/gcn/constraints.md: New file.
33834 * config/gcn/gcn-valu.md: New file.
33835 * config/gcn/gcn.md: New file.
33836 * config/gcn/predicates.md: New file.
33838 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
33840 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
33841 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
33842 (stmt_uses_0_or_null_in_undefined_way): Likewise.
33843 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
33845 2019-01-17 Tamar Christina <tamar.christina@arm.com>
33848 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
33849 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
33850 it and document registers.
33852 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33854 * config/aarch64/aarch64.c (ares_tunings): Define.
33855 * config/aarch64/aarch64-cores.def (ares): Use the above.
33857 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33861 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
33863 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
33864 (_mm512_fixupimm_round_pd): Update parameters and builtin.
33865 (_mm512_maskz_fixupimm_round_pd): Ditto.
33866 (_mm512_fixupimm_round_ps): Ditto.
33867 (_mm512_maskz_fixupimm_round_ps): Ditto.
33868 (_mm_fixupimm_round_sd): Ditto.
33869 (_mm_maskz_fixupimm_round_sd): Ditto.
33870 (_mm_fixupimm_round_ss): Ditto.
33871 (_mm_maskz_fixupimm_round_ss): Ditto.
33872 (_mm512_fixupimm_pd): Ditto.
33873 (_mm512_maskz_fixupimm_pd): Ditto.
33874 (_mm512_fixupimm_ps): Ditto.
33875 (_mm512_maskz_fixupimm_ps): Ditto.
33876 (_mm_fixupimm_sd): Ditto.
33877 (_mm_maskz_fixupimm_sd): Ditto.
33878 (_mm_fixupimm_ss): Ditto.
33879 (_mm_maskz_fixupimm_ss): Ditto.
33880 (_mm512_mask_fixupimm_round_pd): Update builtin.
33881 (_mm512_mask_fixupimm_round_ps): Ditto.
33882 (_mm_mask_fixupimm_round_sd): Ditto.
33883 (_mm_mask_fixupimm_round_ss): Ditto.
33884 (_mm512_mask_fixupimm_pd): Ditto.
33885 (_mm512_mask_fixupimm_ps): Ditto.
33886 (_mm_mask_fixupimm_sd): Ditto.
33887 (_mm_mask_fixupimm_ss): Ditto.
33888 * config/i386/avx512vlintrin.h:
33889 (_mm256_fixupimm_pd): Update parameters and builtin.
33890 (_mm256_maskz_fixupimm_pd): Ditto.
33891 (_mm256_fixupimm_ps): Ditto.
33892 (_mm256_maskz_fixupimm_ps): Ditto.
33893 (_mm_fixupimm_pd): Ditto.
33894 (_mm_maskz_fixupimm_pd): Ditto.
33895 (_mm_fixupimm_ps): Ditto.
33896 (_mm_maskz_fixupimm_ps): Ditto.
33897 (_mm256_mask_fixupimm_pd): Update builtin.
33898 (_mm256_mask_fixupimm_ps): Ditto.
33899 (_mm_mask_fixupimm_pd): Ditto.
33900 (_mm_mask_fixupimm_ps): Ditto.
33901 * config/i386/i386-builtin-types.def: Add new types and remove
33903 * config/i386/i386-builtin.def: Update builtin definitions.
33904 * config/i386/i386.c: Handle new builtin types and remove useless ones.
33905 * config/i386/sse.md: Update VFIXUPIMM* patterns.
33906 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33907 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33908 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
33909 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33910 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33911 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
33912 * config/i386/subst.md:
33913 (round_saeonly_sd_mask_operand4): Add new subst_attr.
33914 (round_saeonly_sd_mask_op4): Ditto.
33915 (round_saeonly_expand_operand5): Ditto.
33916 (round_saeonly_expand): Update.
33918 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33922 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
33924 * config/i386/sse.md: Combine VFIXUPIMM* patterns
33925 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33926 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33927 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
33928 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
33929 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
33930 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
33932 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
33936 2018-12-15 Jakub Jelinek <jakub@redhat.com>
33939 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
33940 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
33941 instead of UNSPEC_FIXUPIMM.
33943 2019-01-17 Richard Biener <rguenther@suse.de>
33946 * dwarf2out.c (want_pubnames): Never generate pubnames sections
33947 and friends for the LTO part of debug info.
33949 2019-01-17 Jakub Jelinek <jakub@redhat.com>
33951 PR tree-optimization/86214
33952 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
33955 PR rtl-optimization/88870
33956 * dce.c (deletable_insn_p): Never delete const/pure calls that can
33957 throw if we can't alter the cfg or delete dead exceptions.
33958 (mark_insn): Don't call find_call_stack_args for such calls.
33960 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
33962 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
33963 prototypes for vec_st.
33964 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
33965 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
33966 mainly on signed/unsigned long long and double.
33968 2019-01-16 David Malcolm <dmalcolm@redhat.com>
33971 * combine.c (delete_noop_moves): Convert to "bool" return,
33972 returning true if any edges are eliminated.
33973 (combine_instructions): Also return true if delete_noop_moves
33976 2019-01-16 Tamar Christina <tamar.christina@arm.com>
33978 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
33979 correct max nunits for endian swap.
33980 (aarch64_expand_fcmla_builtin): Correct subreg code.
33981 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
33982 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
33985 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
33987 * config/alpha/alpha.c (alpha_gimplify_va_arg):
33988 Handle split indirect COMPLEX_TYPE arguments.
33990 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
33993 * config/aarch64/aarch64-modes.def: Add comment about how the carry
33994 bit is set by add and compare.
33995 (CC_ADC): New CC_MODE.
33996 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
33997 to cache the code and mode of X. Adjust the shape of a CC_Cmode
33998 comparison. Add detection for CC_ADCmode.
33999 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
34001 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
34002 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
34003 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
34004 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
34005 to eliminate the need for zero-extending the operands.
34006 (add<mode>3_compareC_imm): Delete. Merge into ...
34007 (add<mode>3_compareC): ... this. Restructure the comparison to
34008 eliminate the need for zero-extending the operands.
34009 (add<mode>3_carryin): Use LTU for the overflow detection.
34010 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
34011 Reexpress comparison for overflow.
34012 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
34013 (add<mode>3_carryinC): Likewise.
34014 (add<mode>3_carryinV): Use LTU for carry between partials.
34015 * config/aarch64/predicates.md (aarch64_carry_operation): Update
34016 handling of CC_Cmode and add CC_ADCmode.
34017 (aarch64_borrow_operation): Likewise.
34019 2019-01-16 Tamar Christina <tamar.christina@arm.com>
34021 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
34022 Remove patternmode.
34023 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
34024 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34025 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
34026 Remove endianness conversion.
34028 2019-01-16 Martin Liska <mliska@suse.cz>
34030 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
34032 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
34034 * gcc.c (add_sysrooted_hdrs_prefix): New function.
34035 (path_prefix_reset): Move up in the source file.
34036 (find_fortran_preinclude_file): Make complex search for the
34037 fortran header files.
34039 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
34041 * godump.c (go_output_typedef): When outputting a typedef, refer
34042 to the underlying type by its name and not its structure.
34044 2019-01-15 David Malcolm <dmalcolm@redhat.com>
34047 * tree.c (build_function_type): Assert that arg_types is not
34050 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
34052 PR inline-asm/52813
34053 * doc/extend.texi: Document that listing the stack pointer in the
34054 clobber list of an asm is a deprecated feature.
34055 * common.opt (Wdeprecated): Moved from c-family/c.opt.
34056 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
34057 warning instead of an error for clobbers of the stack pointer.
34058 Add a note explaining why.
34060 2019-01-15 Richard Biener <rguenther@suse.de>
34063 * dwarf2out.c (gen_member_die): Do not generate inheritance
34066 2019-01-15 Richard Biener <rguenther@suse.de>
34068 PR tree-optimization/88855
34069 * tree-if-conv.c (combine_blocks): Collect
34070 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
34072 2019-01-15 Tom de Vries <tdevries@suse.de>
34075 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
34076 lhs == NULL_TREE for gang-level reduction.
34078 2019-01-15 Richard Biener <rguenther@suse.de>
34079 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34082 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
34083 return true if SSA_NAME is already marked in visited bitmap.
34084 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
34086 2019-01-15 Jakub Jelinek <jakub@redhat.com>
34088 PR tree-optimization/88775
34089 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
34090 equal == 0 equality pointer comparisons some more if compared in
34091 integral types and either one points to an automatic var and the
34092 other to a global, or we can prove at least one points to the middle
34093 or both point to start or both point to end.
34095 2019-01-14 Andi Kleen <ak@linux.intel.com>
34097 * Makefile.in: Lower autofdo sampling rate by 10x.
34098 * Makefile.tpl: Dito.
34100 2019-01-14 Tom Honermann <tom@honermann.net>
34102 * defaults.h: Define CHAR8_TYPE.
34104 2019-01-14 Martin Sebor <msebor@redhat.com>
34107 * doc/extend.texi (Darwin Format Checks): Clarify.
34109 2019-01-14 Richard Biener <rguenther@suse.de>
34111 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
34112 whether we are in (simplify ...) or (match ...) context.
34114 2019-01-14 Jakub Jelinek <jakub@redhat.com>
34116 PR rtl-optimization/88796
34117 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
34118 * cfgexpand.c (stack_protect_prologue): Initialize
34119 crtl->stack_protect_guard_decl.
34120 * function.c (stack_protect_epilogue): Use it instead of calling
34121 targetm.stack_protect_guard again.
34122 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
34123 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
34124 crtl->stack_protect_guard_decl.
34125 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
34126 on the returned MEM_EXPR.
34128 2019-01-12 Tom de Vries <tdevries@suse.de>
34130 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
34131 vector length using -fopenacc-dim.
34133 2019-01-12 Tom de Vries <tdevries@suse.de>
34135 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
34136 lengths into account.
34138 2019-01-12 Svante Signell <svante.signell@gmail.com>
34140 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
34141 (TARGET_CAN_SPLIT_STACK): Define.
34142 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
34144 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
34146 * params.def (inline-unit-growth): Set to 40.
34148 2019-01-12 Jakub Jelinek <jakub@redhat.com>
34150 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
34152 2019-01-12 Tom de Vries <tdevries@suse.de>
34154 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
34155 region calling vector-partitionable routine, set default_vector_length
34158 2019-01-12 Tom de Vries <tdevries@suse.de>
34160 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
34161 variable default_vector_length.
34163 2019-01-12 Tom de Vries <tdevries@suse.de>
34165 PR middle-end/88703
34166 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
34167 from oacc_default_dims, as oacc_validate_dims would do it, and apply
34170 2019-01-12 Tom de Vries <tdevries@suse.de>
34172 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
34173 (nvptx_goacc_validate_dims): Add used parameter.
34174 * doc/tm.texi: Regenerate.
34175 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
34176 argument to call to targetm.goacc.validate_dims.
34177 (default_goacc_validate_dims): Add used
34179 * target.def (validate_dims): Add used parameter in DEFHOOK.
34180 * targhooks.h (default_goacc_validate_dims): Add used parameter.
34182 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34184 PR middle-end/85956
34186 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
34188 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
34189 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
34190 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
34191 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
34193 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
34195 PR rtl-optimization/87305
34197 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
34198 for little endian pseudos used as paradoxical subreg.
34200 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34202 PR tree-optimization/88693
34203 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
34204 for STRING_CSTs that don't contain any NUL characters in the first
34205 TREE_STRING_LENGTH bytes.
34207 2019-01-11 Alan Modra <amodra@gmail.com>
34211 * genattrtab.c (min_fn): Don't translate values.
34212 (min_attr_value): Return INT_MAX when the value can't be calculated.
34213 Return minimum among any values that can be calculated.
34214 (max_attr_value): Adjust.
34216 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34218 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
34220 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34222 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34223 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
34224 (aarch64_return_call_with_max_clobbers): New function.
34225 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
34226 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
34228 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
34229 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
34230 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
34231 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
34232 * cselib.c (cselib_process_insn): Add argument to
34233 targetm.hard_regno_call_part_clobbered call.
34234 * ira-conflicts.c (ira_build_conflicts): Ditto.
34235 * ira-costs.c (ira_tune_allocno_costs): Ditto.
34236 * lra-constraints.c (inherit_reload_reg): Ditto.
34237 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
34238 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
34239 argument. Call targetm.return_call_with_max_clobbers.
34240 Add argument to targetm.hard_regno_call_part_clobbered call.
34241 (calls_have_same_clobbers_p): New function.
34242 (process_bb_lives): Add call_insn and last_call_insn variables.
34243 Pass call_insn to check_pseudos_live_through_calls.
34244 Modify if stmt to check targetm.return_call_with_max_clobbers.
34245 Update setting of flush variable.
34246 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
34248 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
34249 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
34250 targetm.hard_regno_call_part_clobbered call.
34251 * reginfo.c (choose_hard_reg_mode): Ditto.
34252 * regrename.c (check_new_reg_p): Ditto.
34253 * reload.c (find_equiv_reg): Ditto.
34254 * reload1.c (emit_reload_insns): Ditto.
34255 * sched-deps.c (deps_analyze_insn): Ditto.
34256 * sel-sched.c (init_regs_for_mode): Ditto.
34257 (mark_unavailable_hard_regs): Ditto.
34258 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
34259 * target.def (hard_regno_call_part_clobbered): Add insn argument.
34260 (return_call_with_max_clobbers): New target function.
34261 * doc/tm.texi: Regenerate.
34262 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
34263 * hooks.c (hook_bool_uint_mode_false): Change to
34264 hook_bool_insn_uint_mode_false.
34265 * hooks.h (hook_bool_uint_mode_false): Ditto.
34267 2019-01-11 Steve Ellcey <sellcey@marvell.com>
34269 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
34270 (aarch64_remove_extra_call_preserved_regs): New function.
34271 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
34272 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
34273 * doc/tm.texi: Regenerate.
34274 * final.c (get_call_reg_set_usage): Call new hook.
34275 * target.def (remove_extra_call_preserved_regs): New hook.
34276 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
34277 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
34279 2019-01-11 Jakub Jelinek <jakub@redhat.com>
34282 * passes.c (finish_optimization_passes): Call print_combine_total_stats
34283 inside of pass_combine_1 dump rather than pass_profile_1.
34285 2019-01-11 Tom de Vries <tdevries@suse.de>
34287 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
34288 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
34289 (PTX_NUM_PER_WORKER_BARRIERS): Define.
34290 (nvptx_apply_dim_limits): Prevent vector_length 64 and
34293 2019-01-11 Tom de Vries <tdevries@suse.de>
34295 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
34297 2019-01-11 Jan Beulich <jbeulich@suse.com>
34299 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
34300 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
34301 sse2_cvtsi2sd): Add {l}.
34302 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
34305 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34308 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
34310 (*float<floatunssuffix>v2div2sf2): New define_insn.
34311 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
34312 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
34313 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
34314 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
34315 match_operands with "const0_operand" "C".
34317 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34319 * config/aarch64/aarch64-builtins.c
34320 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
34321 (aarch64_init_simd_builtins): ...Here
34323 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
34325 PR rtl-optimization/87305
34327 (setup_live_pseudos_and_spill_after_risky_transforms): Check
34328 allocation for big endian pseudos used as paradoxical subregs and
34329 spill them if it is wrong.
34330 * lra-constraints.c (lra_constraints): Add a comment.
34332 2019-01-10 Richard Biener <rguenther@suse.de>
34334 PR tree-optimization/88792
34335 * tree-ssa-pre.c (get_representative_for): Do not return a
34338 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34340 PR middle-end/84877
34342 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
34343 (assign_parm_setup_block): Do the argument slot realignment here
34346 2019-01-10 Stefan Agner <stefan@agner.ch>
34349 * config/arm/arm.c (arm_option_override_internal): Force
34350 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
34352 2019-01-10 Jakub Jelinek <jakub@redhat.com>
34355 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
34358 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34360 * config/arm/arm-builtins.c
34361 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
34362 (MAC_LANE_PAIR_QUALIFIERS): New.
34363 (arm_expand_builtin_args): Use it.
34364 (arm_expand_builtin_1): Likewise.
34365 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
34366 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
34367 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
34368 * config/arm/arm_neon.h:
34369 (vcadd_rot90_f16): New.
34370 (vcaddq_rot90_f16): New.
34371 (vcadd_rot270_f16): New.
34372 (vcaddq_rot270_f16): New.
34375 (vcmla_lane_f16): New.
34376 (vcmla_laneq_f16): New.
34377 (vcmlaq_lane_f16): New.
34378 (vcmlaq_laneq_f16): New.
34379 (vcmla_rot90_f16): New.
34380 (vcmlaq_rot90_f16): New.
34381 (vcmla_rot90_lane_f16): New.
34382 (vcmla_rot90_laneq_f16): New.
34383 (vcmlaq_rot90_lane_f16): New.
34384 (vcmlaq_rot90_laneq_f16): New.
34385 (vcmla_rot180_f16): New.
34386 (vcmlaq_rot180_f16): New.
34387 (vcmla_rot180_lane_f16): New.
34388 (vcmla_rot180_laneq_f16): New.
34389 (vcmlaq_rot180_lane_f16): New.
34390 (vcmlaq_rot180_laneq_f16): New.
34391 (vcmla_rot270_f16): New.
34392 (vcmlaq_rot270_f16): New.
34393 (vcmla_rot270_lane_f16): New.
34394 (vcmla_rot270_laneq_f16): New.
34395 (vcmlaq_rot270_lane_f16): New.
34396 (vcmlaq_rot270_laneq_f16): New.
34397 (vcadd_rot90_f32): New.
34398 (vcaddq_rot90_f32): New.
34399 (vcadd_rot270_f32): New.
34400 (vcaddq_rot270_f32): New.
34403 (vcmla_lane_f32): New.
34404 (vcmla_laneq_f32): New.
34405 (vcmlaq_lane_f32): New.
34406 (vcmlaq_laneq_f32): New.
34407 (vcmla_rot90_f32): New.
34408 (vcmlaq_rot90_f32): New.
34409 (vcmla_rot90_lane_f32): New.
34410 (vcmla_rot90_laneq_f32): New.
34411 (vcmlaq_rot90_lane_f32): New.
34412 (vcmlaq_rot90_laneq_f32): New.
34413 (vcmla_rot180_f32): New.
34414 (vcmlaq_rot180_f32): New.
34415 (vcmla_rot180_lane_f32): New.
34416 (vcmla_rot180_laneq_f32): New.
34417 (vcmlaq_rot180_lane_f32): New.
34418 (vcmlaq_rot180_laneq_f32): New.
34419 (vcmla_rot270_f32): New.
34420 (vcmlaq_rot270_f32): New.
34421 (vcmla_rot270_lane_f32): New.
34422 (vcmla_rot270_laneq_f32): New.
34423 (vcmlaq_rot270_lane_f32): New.
34424 (vcmlaq_rot270_laneq_f32): New.
34425 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
34426 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
34427 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
34428 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
34429 vcmlaq_lane270): New.
34430 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
34431 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
34432 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
34433 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
34434 (arm_option_reconfigure_globals): Use them.
34435 * config/arm/iterators.md (VDF, VQ_HSF): New.
34436 (VCADD, VCMLA): New.
34437 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
34438 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
34440 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
34441 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
34443 2019-01-10 Tamar Christina <tamar.christina@arm.com>
34445 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
34446 Add qualifier_lane_pair_index.
34447 (emit-rtl.h): Include.
34448 (TYPES_QUADOP_LANE_PAIR): New.
34449 (aarch64_simd_expand_args): Use it.
34450 (aarch64_simd_expand_builtin): Likewise.
34451 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
34453 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
34454 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
34455 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
34456 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
34457 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
34458 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
34459 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
34460 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
34461 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
34462 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
34463 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
34464 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
34465 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
34466 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
34467 Add __ARM_FEATURE_COMPLEX.
34468 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
34469 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
34470 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
34471 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
34472 fcmlaq_lane270): New.
34473 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
34474 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
34475 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
34476 * config/aarch64/arm_neon.h:
34477 (vcadd_rot90_f16): New.
34478 (vcaddq_rot90_f16): New.
34479 (vcadd_rot270_f16): New.
34480 (vcaddq_rot270_f16): New.
34483 (vcmla_lane_f16): New.
34484 (vcmla_laneq_f16): New.
34485 (vcmlaq_lane_f16): New.
34486 (vcmlaq_rot90_lane_f16): New.
34487 (vcmla_rot90_laneq_f16): New.
34488 (vcmla_rot90_lane_f16): New.
34489 (vcmlaq_rot90_f16): New.
34490 (vcmla_rot90_f16): New.
34491 (vcmlaq_laneq_f16): New.
34492 (vcmla_rot180_laneq_f16): New.
34493 (vcmla_rot180_lane_f16): New.
34494 (vcmlaq_rot180_f16): New.
34495 (vcmla_rot180_f16): New.
34496 (vcmlaq_rot90_laneq_f16): New.
34497 (vcmlaq_rot270_laneq_f16): New.
34498 (vcmlaq_rot270_lane_f16): New.
34499 (vcmla_rot270_laneq_f16): New.
34500 (vcmlaq_rot270_f16): New.
34501 (vcmla_rot270_f16): New.
34502 (vcmlaq_rot180_laneq_f16): New.
34503 (vcmlaq_rot180_lane_f16): New.
34504 (vcmla_rot270_lane_f16): New.
34505 (vcadd_rot90_f32): New.
34506 (vcaddq_rot90_f32): New.
34507 (vcaddq_rot90_f64): New.
34508 (vcadd_rot270_f32): New.
34509 (vcaddq_rot270_f32): New.
34510 (vcaddq_rot270_f64): New.
34514 (vcmla_lane_f32): New.
34515 (vcmla_laneq_f32): New.
34516 (vcmlaq_lane_f32): New.
34517 (vcmlaq_laneq_f32): New.
34518 (vcmla_rot90_f32): New.
34519 (vcmlaq_rot90_f32): New.
34520 (vcmlaq_rot90_f64): New.
34521 (vcmla_rot90_lane_f32): New.
34522 (vcmla_rot90_laneq_f32): New.
34523 (vcmlaq_rot90_lane_f32): New.
34524 (vcmlaq_rot90_laneq_f32): New.
34525 (vcmla_rot180_f32): New.
34526 (vcmlaq_rot180_f32): New.
34527 (vcmlaq_rot180_f64): New.
34528 (vcmla_rot180_lane_f32): New.
34529 (vcmla_rot180_laneq_f32): New.
34530 (vcmlaq_rot180_lane_f32): New.
34531 (vcmlaq_rot180_laneq_f32): New.
34532 (vcmla_rot270_f32): New.
34533 (vcmlaq_rot270_f32): New.
34534 (vcmlaq_rot270_f64): New.
34535 (vcmla_rot270_lane_f32): New.
34536 (vcmla_rot270_laneq_f32): New.
34537 (vcmlaq_rot270_lane_f32): New.
34538 (vcmlaq_rot270_laneq_f32): New.
34539 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
34540 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
34541 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
34542 (FCADD, FCMLA): New.
34544 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
34546 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34550 * config/pa/pa.c: Change "can not" to "cannot".
34551 * gimple-ssa-evrp-analyze.c: Likewise.
34552 * ipa-icf.c: Likewise.
34553 * ipa-polymorphic-call.c: Likewise.
34554 * ipa-pure-const.c: Likewise.
34555 * lra-constraints.c: Likewise.
34556 * lra-remat.c: Likewise.
34557 * reload1.c: Likewise.
34558 * reorg.c: Likewise.
34559 * tree-ssa-uninit.c: Likewise.
34561 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
34565 * Makefile.in: Mechanically replace "can not" with "cannot".
34566 * alias.c: Likewise.
34567 * builtins.c: Likewise.
34568 * calls.c: Likewise.
34569 * cgraph.c: Likewise.
34570 * cgraph.h: Likewise.
34571 * cgraphclones.c: Likewise.
34572 * cgraphunit.c: Likewise.
34573 * combine-stack-adj.c: Likewise.
34574 * combine.c: Likewise.
34575 * common/config/i386/i386-common.c: Likewise.
34576 * config/aarch64/aarch64.c: Likewise.
34577 * config/alpha/sync.md: Likewise.
34578 * config/arc/arc.c: Likewise.
34579 * config/arc/predicates.md: Likewise.
34580 * config/arm/arm-c.c: Likewise.
34581 * config/arm/arm.c: Likewise.
34582 * config/arm/arm.h: Likewise.
34583 * config/arm/arm.md: Likewise.
34584 * config/arm/cortex-r4f.md: Likewise.
34585 * config/csky/csky.c: Likewise.
34586 * config/csky/csky.h: Likewise.
34587 * config/darwin-f.c: Likewise.
34588 * config/epiphany/epiphany.md: Likewise.
34589 * config/i386/i386.c: Likewise.
34590 * config/i386/sol2.h: Likewise.
34591 * config/m68k/m68k.c: Likewise.
34592 * config/mcore/mcore.h: Likewise.
34593 * config/microblaze/microblaze.md: Likewise.
34594 * config/mips/20kc.md: Likewise.
34595 * config/mips/sb1.md: Likewise.
34596 * config/nds32/nds32.c: Likewise.
34597 * config/nds32/predicates.md: Likewise.
34598 * config/pa/pa.c: Likewise.
34599 * config/rs6000/e300c2c3.md: Likewise.
34600 * config/rs6000/rs6000.c: Likewise.
34601 * config/s390/s390.h: Likewise.
34602 * config/sh/sh.c: Likewise.
34603 * config/sh/sh.md: Likewise.
34604 * config/spu/vmx2spu.h: Likewise.
34605 * cprop.c: Likewise.
34606 * dbxout.c: Likewise.
34607 * df-scan.c: Likewise.
34608 * doc/cfg.texi: Likewise.
34609 * doc/extend.texi: Likewise.
34610 * doc/fragments.texi: Likewise.
34611 * doc/gty.texi: Likewise.
34612 * doc/invoke.texi: Likewise.
34613 * doc/lto.texi: Likewise.
34614 * doc/md.texi: Likewise.
34615 * doc/objc.texi: Likewise.
34616 * doc/rtl.texi: Likewise.
34617 * doc/tm.texi: Likewise.
34619 * emit-rtl.c: Likewise.
34620 * emit-rtl.h: Likewise.
34621 * except.c: Likewise.
34622 * expmed.c: Likewise.
34623 * expr.c: Likewise.
34624 * fold-const.c: Likewise.
34625 * genautomata.c: Likewise.
34626 * gimple-fold.c: Likewise.
34627 * hard-reg-set.h: Likewise.
34628 * ifcvt.c: Likewise.
34629 * ipa-comdats.c: Likewise.
34630 * ipa-cp.c: Likewise.
34631 * ipa-devirt.c: Likewise.
34632 * ipa-fnsummary.c: Likewise.
34633 * ipa-icf.c: Likewise.
34634 * ipa-inline-transform.c: Likewise.
34635 * ipa-inline.c: Likewise.
34636 * ipa-polymorphic-call.c: Likewise.
34637 * ipa-profile.c: Likewise.
34638 * ipa-prop.c: Likewise.
34639 * ipa-pure-const.c: Likewise.
34640 * ipa-reference.c: Likewise.
34641 * ipa-split.c: Likewise.
34642 * ipa-visibility.c: Likewise.
34644 * ira-build.c: Likewise.
34645 * ira-color.c: Likewise.
34646 * ira-conflicts.c: Likewise.
34647 * ira-costs.c: Likewise.
34648 * ira-int.h: Likewise.
34649 * ira-lives.c: Likewise.
34652 * loop-invariant.c: Likewise.
34653 * loop-unroll.c: Likewise.
34654 * lower-subreg.c: Likewise.
34655 * lra-assigns.c: Likewise.
34656 * lra-constraints.c: Likewise.
34657 * lra-eliminations.c: Likewise.
34658 * lra-lives.c: Likewise.
34659 * lra-remat.c: Likewise.
34660 * lra-spills.c: Likewise.
34662 * lto-cgraph.c: Likewise.
34663 * lto-streamer-out.c: Likewise.
34664 * postreload-gcse.c: Likewise.
34665 * predict.c: Likewise.
34666 * profile-count.h: Likewise.
34667 * profile.c: Likewise.
34668 * recog.c: Likewise.
34670 * reload.c: Likewise.
34671 * reload1.c: Likewise.
34672 * reorg.c: Likewise.
34673 * resource.c: Likewise.
34674 * rtl.def: Likewise.
34676 * rtlanal.c: Likewise.
34677 * sched-deps.c: Likewise.
34678 * sched-ebb.c: Likewise.
34679 * sched-rgn.c: Likewise.
34680 * sel-sched-ir.c: Likewise.
34681 * sel-sched.c: Likewise.
34682 * shrink-wrap.c: Likewise.
34683 * simplify-rtx.c: Likewise.
34684 * symtab.c: Likewise.
34685 * target.def: Likewise.
34686 * toplev.c: Likewise.
34687 * tree-call-cdce.c: Likewise.
34688 * tree-cfg.c: Likewise.
34689 * tree-complex.c: Likewise.
34690 * tree-core.h: Likewise.
34691 * tree-eh.c: Likewise.
34692 * tree-inline.c: Likewise.
34693 * tree-loop-distribution.c: Likewise.
34694 * tree-nrv.c: Likewise.
34695 * tree-profile.c: Likewise.
34696 * tree-sra.c: Likewise.
34697 * tree-ssa-alias.c: Likewise.
34698 * tree-ssa-dce.c: Likewise.
34699 * tree-ssa-dom.c: Likewise.
34700 * tree-ssa-forwprop.c: Likewise.
34701 * tree-ssa-loop-im.c: Likewise.
34702 * tree-ssa-loop-ivcanon.c: Likewise.
34703 * tree-ssa-loop-ivopts.c: Likewise.
34704 * tree-ssa-loop-niter.c: Likewise.
34705 * tree-ssa-phionlycprop.c: Likewise.
34706 * tree-ssa-phiopt.c: Likewise.
34707 * tree-ssa-propagate.c: Likewise.
34708 * tree-ssa-threadedge.c: Likewise.
34709 * tree-ssa-threadupdate.c: Likewise.
34710 * tree-ssa-uninit.c: Likewise.
34711 * tree-ssanames.c: Likewise.
34712 * tree-streamer-out.c: Likewise.
34713 * tree.c: Likewise.
34714 * tree.h: Likewise.
34715 * vr-values.c: Likewise.
34717 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
34719 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
34720 (ix86_split_xorsign): Ditto.
34721 * config/i386/i386.c (ix86_expand_xorsign): New function.
34722 (ix86_split_xorsign): Ditto.
34723 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
34724 (xorsign<mode>3): New expander.
34725 (xorsign<mode>3_1): New insn_and_split pattern.
34726 * config/i386/sse.md (xorsign<mode>3): New expander.
34728 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34730 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
34731 (*tablejump_sp64): Likewise.
34732 (*tablejump<P:mode>): ...this.
34733 (*call_address_sp32): Merge into...
34734 (*call_address_sp64): Likewise.
34735 (*call_address<P:mode>): ...this.
34736 (*call_symbolic_sp32): Merge into...
34737 (*call_symbolic_sp64): Likewise.
34738 (*call_symbolic<P:mode>): ...this.
34739 (call_value): Remove constraint and add predicate.
34740 (*call_value_address_sp32): Merge into...
34741 (*call_value_address_sp64): Likewise.
34742 (*call_value_address<P:mode>): ...this.
34743 (*call_value_symbolic_sp32): Merge into...
34744 (*call_value_symbolic_sp64): Likewise.
34745 (*call_value_symbolic<P:mode>): ...this.
34746 (*sibcall_symbolic_sp32): Merge into...
34747 (*sibcall_symbolic_sp64): Likewise.
34748 (*sibcall_symbolic<P:mode>): ...this.
34749 (sibcall_value): Remove constraint and add predicate.
34750 (*sibcall_value_symbolic_sp32): Merge into...
34751 (*sibcall_value_symbolic_sp64): Likewise.
34752 (*sibcall_value_symbolic<P:mode>): ...this.
34753 (window_save): Minor tweak.
34754 (*branch_sp32): Merge into...
34755 (*branch_sp64): Likewise.
34756 (*branch<P:mode>): ...this.
34758 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34759 James Clarke <jrtc27@jrtc27.com>
34762 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
34763 consistently in TLS address generation and adjust code to the renaming
34764 of patterns. Mark calls to __tls_get_addr as const.
34765 * config/sparc/sparc.md (tgd_hi22): Turn into...
34766 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
34767 (tgd_lo10): Turn into...
34768 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
34769 (tgd_add32): Merge into...
34770 (tgd_add64): Likewise.
34771 (tgd_add<P:mode>): ...this and use Pmode throughout.
34772 (tldm_hi22): Turn into...
34773 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
34774 (tldm_lo10): Turn into...
34775 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
34776 (tldm_add32): Merge into...
34777 (tldm_add64): Likewise.
34778 (tldm_add<P:mode>): ...this and use Pmode throughout.
34779 (tldm_call32): Merge into...
34780 (tldm_call64): Likewise.
34781 (tldm_call<P:mode>): ...this and use Pmode throughout.
34782 (tldo_hix22): Turn into...
34783 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
34784 (tldo_lox10): Turn into...
34785 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
34786 (tldo_add32): Merge into...
34787 (tldo_add64): Likewise.
34788 (tldo_add<P:mode>): ...this and use Pmode throughout.
34789 (tie_hi22): Turn into...
34790 (tie_hi22<P:mode>): ...this and use Pmode throughout.
34791 (tie_lo10): Turn into...
34792 (tie_lo10<P:mode>): ...this and use Pmode throughout.
34793 (tie_ld64): Use DImode throughout.
34794 (tie_add32): Merge into...
34795 (tie_add64): Likewise.
34796 (tie_add<P:mode>): ...this and use Pmode throughout.
34797 (tle_hix22_sp32): Merge into...
34798 (tle_hix22_sp64): Likewise.
34799 (tle_hix22<P:mode>): ...this and use Pmode throughout.
34800 (tle_lox22_sp32): Merge into...
34801 (tle_lox22_sp64): Likewise.
34802 (tle_lox22<P:mode>): ...this and use Pmode throughout.
34803 (*tldo_ldub_sp32): Merge into...
34804 (*tldo_ldub_sp64): Likewise.
34805 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
34806 (*tldo_ldub1_sp32): Merge into...
34807 (*tldo_ldub1_sp64): Likewise.
34808 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
34809 (*tldo_ldub2_sp32): Merge into...
34810 (*tldo_ldub2_sp64): Likewise.
34811 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
34812 (*tldo_ldsb1_sp32): Merge into...
34813 (*tldo_ldsb1_sp64): Likewise.
34814 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
34815 (*tldo_ldsb2_sp32): Merge into...
34816 (*tldo_ldsb2_sp64): Likewise.
34817 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
34818 (*tldo_ldub3_sp64): Use DImode throughout.
34819 (*tldo_ldsb3_sp64): Likewise.
34820 (*tldo_lduh_sp32): Merge into...
34821 (*tldo_lduh_sp64): Likewise.
34822 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
34823 (*tldo_lduh1_sp32): Merge into...
34824 (*tldo_lduh1_sp64): Likewise.
34825 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
34826 (*tldo_ldsh1_sp32): Merge into...
34827 (*tldo_ldsh1_sp64): Likewise.
34828 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
34829 (*tldo_lduh2_sp64): Use DImode throughout.
34830 (*tldo_ldsh2_sp64): Likewise.
34831 (*tldo_lduw_sp32): Merge into...
34832 (*tldo_lduw_sp64): Likewise.
34833 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
34834 (*tldo_lduw1_sp64): Use DImode throughout.
34835 (*tldo_ldsw1_sp64): Likewise.
34836 (*tldo_ldx_sp64): Likewise.
34837 (*tldo_stb_sp32): Merge into...
34838 (*tldo_stb_sp64): Likewise.
34839 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
34840 (*tldo_sth_sp32): Merge into...
34841 (*tldo_sth_sp64): Likewise.
34842 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
34843 (*tldo_stw_sp32): Merge into...
34844 (*tldo_stw_sp64): Likewise.
34845 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
34846 (*tldo_stx_sp64): Use DImode throughout.
34848 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34850 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
34851 check configure option to set BTI and Return Address Signing.
34852 * configure.ac: Add --enable-standard-branch-protection and
34853 --disable-standard-branch-protection.
34854 * configure: Regenerated.
34855 * doc/install.texi: Document the same.
34857 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34858 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34860 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
34861 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
34862 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
34864 * config/aarch64/aarch64-bti-insert.c: New file.
34865 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
34867 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
34869 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
34870 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
34871 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
34872 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
34874 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34876 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
34877 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
34878 Disable bti for -mbranch-protection=none.
34879 (aarch64_handle_standard_branch_protection): Enable bti for
34880 -mbranch-protection=standard.
34881 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
34882 -mbranch-protection.
34883 (aarch64_bti_enabled): Check if bti is enabled.
34884 * config/aarch64/aarch64.opt: Declare target variable.
34885 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
34887 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34889 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
34890 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
34891 (aarch64_expand_epilogue): Likewise.
34892 (aarch64_output_mi_thunk): Likewise.
34893 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
34894 TAILCALL_ADDR_REGS to x16 and x17.
34895 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
34897 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34899 * config/aarch64/aarch64-option-extensions.def: Define
34900 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
34901 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
34902 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
34903 (AARCH64_FL_PREDRES): New.
34904 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
34905 AARCH64_FL_PREDRES by default.
34906 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
34908 2018-01-09 Sudakshina Das <sudi.das@arm.com>
34910 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
34912 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
34913 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
34914 * doc/invoke.texi: Document ARMv8.5-A.
34916 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
34918 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
34919 (xorsign<mode>3): Likewise.
34921 2019-01-09 Jelinek <jakub@redhat.com>
34923 PR middle-end/88758
34924 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
34925 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
34927 PR rtl-optimization/88331
34928 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
34929 not currently_expanding_to_rtl.
34931 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
34933 * doc/invoke.texi (-Os): Remove trailing spaces.
34934 (-finline-functions): Remove reference to -O2.
34936 2019-01-08 Jakub Jelinek <jakub@redhat.com>
34938 PR rtl-optimization/79593
34939 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
34941 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
34942 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
34944 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
34947 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
34951 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
34952 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
34954 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
34957 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
34958 ix86_avx_u128_mode_entry.
34960 2019-01-08 Martin Liska <mliska@suse.cz>
34962 PR tree-optimization/88753
34963 * tree-switch-conversion.c (switch_conversion::build_one_array):
34964 Come up with local variable constructor. Convert first to
34965 type of constructor values.
34967 2019-01-08 Richard Biener <rguenther@suse.de>
34969 PR tree-optimization/86554
34970 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
34971 rpo_avail): Move earlier.
34972 (visit_nary_op): When value-numbering to expressions
34973 with different overflow behavior make sure there's an
34974 available expression on the path.
34976 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
34978 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
34979 aarch64_parse_branch_protection,
34980 struct aarch64_branch_protect_type,
34981 aarch64_handle_no_branch_protection,
34982 aarch64_handle_standard_branch_protection,
34983 aarch64_validate_mbranch_protection,
34984 aarch64_handle_pac_ret_protection,
34985 aarch64_handle_attr_branch_protection,
34986 accepted_branch_protection_string,
34987 aarch64_pac_ret_subtypes,
34988 aarch64_branch_protect_types,
34989 aarch64_handle_pac_ret_leaf): Define.
34990 (aarch64_override_options_after_change_1, aarch64_override_options):
34991 Add check for accepted_branch_protection_string.
34992 (aarch64_option_save): Save accepted_branch_protection_string.
34993 (aarch64_option_restore): Save accepted_branch_protection_string.
34994 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
34995 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
34996 msign-return-address.
34997 * doc/invoke.texi: Add mbranch-protection.
34999 2019-01-08 Alan Modra <amodra@gmail.com>
35002 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
35003 Delete "unknownp" parameter. Adjust callers. Handle
35004 CONST_INT, PLUS, MINUS, and MULT.
35005 (attr_value_aligned): Renamed from or_attr_value.
35006 (min_attr_value): Return INT_MIN for unhandled rtl case..
35007 (min_fn): ..and translate to INT_MAX here.
35008 (write_length_unit_log): Modify to cope without "unknown".
35009 (write_attr_value): Handle IF_THEN_ELSE.
35011 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35013 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
35014 optimization for masked stores.
35016 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35018 PR middle-end/88567
35019 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
35020 output vector directly to duplicate_and_interleave instead of
35021 going through a temporary. Postpone insertion of ctor_seq to
35022 the end of the loop.
35024 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
35027 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
35028 unsigned_p. Handle signed and unsigned overflow correction as
35030 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
35032 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
35034 (add<mode>3_compareV_imm): Make this callable for expanding.
35035 (subv<GPI:mode>4): Use register_operand for operand 1. Use
35036 aarch64_plus_operand for operand 2.
35037 (subv<GPI:mode>_insn): New insn pattern.
35038 (subv<GPI:mode>_imm): Likewise.
35039 (negv<GPI:mode>3): New expand pattern.
35040 (negv<GPI:mode>_insn): New insn pattern.
35041 (negv<GPI:mode>_cmp_only): Likewise.
35042 (cmpv<GPI:mode>_insn): Likewise.
35043 (subvti4): Use register_operand for operand 1. Update call to
35044 aarch64_expand_subvti.
35045 (usubvti4): Likewise.
35046 (negvti3): New expand pattern.
35047 (negdi_carryout): New insn pattern.
35048 (negvdi_carryinV): New insn pattern.
35049 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
35050 version the named version.
35051 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
35053 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
35055 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
35057 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
35058 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
35059 (sub<mode>3_carryinCV): Delete.
35060 (sub<GPI:mode>3_carryinV): New expand pattern.
35061 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
35063 2019-01-07 Richard Biener <rguenther@suse.de>
35065 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
35066 of tree_operand_hash.
35068 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35070 PR tree-optimization/88598
35071 * tree.h (single_nonzero_element): Declare.
35072 * tree.c (single_nonzero_element): New function.
35073 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
35074 if I is the only nonzero element of CST.
35076 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
35078 PR tree-optimization/88598
35079 * tree.h (initializer_each_zero_or_onep): Declare.
35080 * tree.c (initializer_each_zero_or_onep): New function.
35081 (signed_or_unsigned_type_for): Handle float types too.
35082 (unsigned_type_for, signed_type_for): Update comments accordingly.
35083 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
35084 x & { 0 or -1, 0 or -1, ... }.
35086 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
35088 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
35089 with x86_64-pc-linux-gnu.
35091 2019-01-07 Tom de Vries <tdevries@suse.de>
35094 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
35096 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
35099 2019-01-07 Jakub Jelinek <jakub@redhat.com>
35101 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
35102 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
35103 TARGET_AVX512F as condition.
35106 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
35107 const_not_ok_for_debug_p target hook.
35108 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
35109 on UNSPEC and subexpressions thereof if all subexpressions of the
35110 UNSPEC are CONSTANT_P.
35112 PR tree-optimization/88676
35113 * tree-ssa-phiopt.c (two_value_replacement): New function.
35114 (tree_ssa_phiopt_worker): Call it.
35117 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
35118 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
35121 * tree-vect-generic.c: Include insn-config.h and recog.h.
35122 (expand_vector_piecewise): Add defaulted ret_type argument,
35123 if non-NULL, use that in preference to type for the result type.
35124 (expand_vector_parallel): Formatting fix.
35125 (do_vec_conversion, do_vec_narrowing_conversion,
35126 expand_vector_conversion): New functions.
35127 (expand_vector_operations_1): Call expand_vector_conversion
35128 for VEC_CONVERT ifn calls.
35129 * internal-fn.def (VEC_CONVERT): New internal function.
35130 * internal-fn.c (expand_VEC_CONVERT): New function.
35131 * fold-const-call.c (fold_const_vec_convert): New function.
35132 (fold_const_call): Use it for CFN_VEC_CONVERT.
35133 * doc/extend.texi (__builtin_convertvector): Document.
35135 2019-01-07 Tom de Vries <tdevries@suse.de>
35137 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
35138 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
35139 vector_red_partition, vector_red_sym): New global variables.
35140 (nvptx_option_override): Initialize vector_red_sym.
35141 (nvptx_declare_function_name): Restore red_partition register.
35142 (nvptx_file_end): Emit code to declare the vector reduction variables.
35143 (nvptx_output_red_partition): New function.
35144 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
35145 large vector reductions.
35146 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
35147 (nvptx_init_builtins): Add VECTOR_ADDR.
35148 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
35149 Handle nvptx_expand_shared_addr.
35150 (nvptx_get_shared_red_addr): Add vector argument and handle large
35152 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
35154 (nvptx_goacc_reduction_init): Likewise.
35155 (nvptx_goacc_reduction_fini): Likewise.
35156 (nvptx_goacc_reduction_teardown): Likewise.
35157 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
35158 init,fini,teardown}.
35159 (nvptx_init_axis_predicate): Initialize vector_red_partition.
35160 (nvptx_set_current_function): Init vector_red_partition.
35161 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
35162 (nvptx_red_partition): New insn.
35163 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
35165 2019-01-07 Tom de Vries <tdevries@suse.de>
35168 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
35171 2019-01-07 Tom de Vries <tdevries@suse.de>
35173 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
35174 (nvptx_option_override): Init oacc_bcast_partition.
35175 (nvptx_init_oacc_workers): New function.
35176 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
35177 (nvptx_needs_shared_bcast): New function.
35178 (nvptx_find_par): Generalize to enable vectors to use shared-memory
35179 to propagate state.
35180 (nvptx_shared_propagate): Initialize vector bcast partition and
35181 synchronization state.
35182 (nvptx_single): Generalize to enable vectors to use shared-memory
35183 to propagate state.
35184 (nvptx_process_pars): Likewise.
35185 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
35186 * config/nvptx/nvptx.h (struct machine_function): Add
35187 bcast_partition and sync_bar members.
35189 2019-01-07 Tom de Vries <tdevries@suse.de>
35191 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
35192 (nvptx_apply_dim_limits): New function.
35193 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
35196 2019-01-07 Tom de Vries <tdevries@suse.de>
35198 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
35199 as late as possible.
35201 2019-01-07 Tom de Vries <tdevries@suse.de>
35203 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
35204 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
35205 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
35206 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
35207 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
35209 2019-01-07 Tom de Vries <tdevries@suse.de>
35211 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
35213 2019-01-07 Tom de Vries <tdevries@suse.de>
35215 * omp-offload.c (oacc_get_min_dim): New function.
35216 * omp-offload.h (oacc_get_min_dim): Declare.
35218 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
35221 * config/i386/i386.c (function_value_ms_64): Return small sturct in
35222 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
35224 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35228 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
35230 * ipa-inline.c (edge_badness): Use inlined_time instead of
35231 inline_summaries->get.
35233 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35235 * opts.c (enable_fdo_optimizations): Enable
35236 version-loops-for-strides, loop-interchange, unrol-and-jam
35237 and tree-loop-distribution.
35238 * invoke.texi: Document newly enabled options.
35240 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35242 * doc/invoke.texi (max-inline-insns-small): New parameters.
35243 * ipa-inline.c (want_early_inline_function_p): simplify.
35244 (want_inline_small_function_p): Fix pasto from previous patch;
35245 use max-inline-insns-small bound.
35246 * params.def (max-inline-insns-small): New param.
35247 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
35248 variables correctly.
35250 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35252 * doc/invoke.texi: Document max-inline-insns-size,
35253 uninlined-function-insns, uninlined-function-time,
35254 uninlined-thunk-insns and uninlined-thunk-time.
35255 * params.def: Add max-inline-insns-size,
35256 uninlined-function-insns, uninlined-function-time,
35257 uninlined-thunk-insns and uninlined-thunk-time.
35258 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
35260 * ipa-inline.c (can_inline_edge_by_limits_p,
35261 want_inline_small_function_p): Use new parameters.
35263 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
35265 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
35267 2019-01-05 Jakub Jelinek <jakub@redhat.com>
35269 PR middle-end/82564
35271 * expr.c (expand_assignment): For calls returning VLA structures
35272 if to_rtx is not a MEM, force it into a stack temporary.
35275 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
35276 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
35277 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
35278 subexpressions of both operands.
35279 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
35280 subrtxes are CONSTANT_P.
35281 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
35282 2018-11-09 changes.
35284 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
35286 * params.def (hot-bb-count-ws-permille): Set to 990.
35288 2019-01-04 Martin Sebor <msebor@redhat.com>
35291 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
35294 2019-01-04 Martin Sebor <msebor@redhat.com>
35297 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
35299 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35301 * gdbinit.in: Turn off pagination for the skip commands, restore
35302 it to previous state afterwards.
35304 2019-01-04 Jakub Jelinek <jakub@redhat.com>
35307 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
35308 of GET_MODE (opN) as modes of the libcall arguments.
35310 2019-01-04 Jan Beulich <jbeulich@suse.com>
35312 * config/i386/sse.md
35313 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
35314 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
35315 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35316 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
35317 avx512f_vmcmp<mode>3<round_saeonly_name>,
35318 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
35319 avx512f_maskcmp<mode>3,
35320 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35321 <avx512>_cvt<ssemodesuffix>2mask<mode>,
35322 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35323 *<avx512>_cvtmask2<ssemodesuffix><mode>,
35324 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35325 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
35326 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35327 <avx512>_gt<mode>3<mask_scalar_merge_name>,
35328 <avx512>_testm<mode>3<mask_scalar_merge_name>,
35329 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
35330 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
35331 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
35332 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
35333 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
35334 avx512cd_maskb_vec_dup<mode>,
35335 avx512cd_maskw_vec_dup<mode>,
35336 avx512dq_fpclass<mode><mask_scalar_merge_name>,
35337 avx512dq_vmfpclass<mode>,
35338 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
35341 2019-01-03 Martin Sebor <msebor@redhat.com>
35343 PR tree-optimization/88659
35344 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
35346 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
35348 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
35349 unaligned vsx and avoid lxvd2x/stxvd2x.
35350 (gen_lvx_v4si_move): New function.
35352 2019-01-03 Tom de Vries <tdevries@suse.de>
35354 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
35355 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
35357 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
35359 2019-01-03 Tom de Vries <tdevries@suse.de>
35361 * config/nvptx/nvptx.c (struct offload_attrs): New.
35362 (populate_offload_attrs): New function. Factor mask extraction out of
35363 nvptx_reorg. Add extraction of dimensions.
35364 (nvptx_reorg): Use populate_offload_attrs.
35366 2019-01-03 Tom de Vries <tdevries@suse.de>
35368 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
35369 cases for oacc_min_dims_p and routine_p. Add asserts for
35370 oacc_default_dims_p and offload_region_p.
35372 2019-01-03 Tom de Vries <tdevries@suse.de>
35374 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
35375 factored out of ...
35376 (nvptx_goacc_validate_dims): ... here.
35378 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35380 PR tree-optimization/85574
35381 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
35383 (struct ssa_equip_hash_traits): Declare.
35384 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
35386 2019-01-03 Jakub Jelinek <jakub@redhat.com>
35389 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
35390 change it to qualified_type.
35392 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
35394 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
35395 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
35397 2019-01-02 Martin Sebor <msebor@redhat.com>
35398 Jeff Law <law@redhat.com>
35400 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
35401 (get_range_strlen_tree): Update appropriately.
35403 * gimple-fold.h (get_range_strlen): Drop unused last argument.
35405 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
35406 rather than set_range_info.
35407 * tree-ssa-strlen.c (set_strlen_range): Extracted from
35408 maybe_set_strlen_range. Handle potentially boundary crossing
35409 cases more conservatively.
35410 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
35411 Call set_strlen_range.
35412 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
35414 PR middle-end/88663
35415 * gimple-fold.c (get_range_strlen): Update prototype to no longer
35416 need the flexp argument.
35417 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
35418 from calls to get_range_strlen. Update comments. Just update
35419 VAL for an unterminated const char array and let the reset of the
35420 code handle it normally. No longer try to set *flexp. Adjust
35422 (get_range_strlen): Update for the new get_range_strlen API.
35423 (get_maxval_strlen): Similarly.
35424 (gimple_fold_builtin_strlen): Handle update meaning of return value
35425 from get_range_strlen.
35426 * gimple-ssa-sprintf.c (get_string_length): Update for the new
35427 get_range_strlen API.
35429 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
35432 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
35433 false at WPA time when body was removed.
35435 2019-01-02 Martin Liska <mliska@suse.cz>
35437 PR tree-optimization/88650
35438 * predict.c (set_even_probabilities): Calculate probability
35439 remainer only when really used.
35441 2019-01-02 Richard Biener <rguenther@suse.de>
35443 PR middle-end/88651
35444 * tree-data-ref.c (analyze_subscript_affine_affine): Use
35445 widest_ints when mangling max_stmt_execution results.
35447 2019-01-02 Richard Biener <rguenther@suse.de>
35449 PR tree-optimization/88621
35450 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
35451 bitfields when canoncalizing.
35453 2019-01-02 Richard Biener <rguenther@suse.de>
35456 * config/i386/x86-tune-costs.h (intel_cost): Adjust
35457 cost of cheap SSE instruction.
35459 2019-01-02 Richard Biener <rguenther@suse.de>
35462 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
35463 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
35465 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
35466 set after UIDs before splitting them.
35468 2019-01-01 Martin Sebor <msebor@redhat.com>
35469 Jeff Law <law@redhat.com>
35471 * gimple-fold.c (get_range_strlen_tree): Record if the computed
35472 length is optimistic. If it is, then arrange to compute the
35473 conservative length as well.
35475 * gimple-fold.h (get_range_strlen): Update prototype.
35476 * builtins.c (check_access): Update call to get_range_strlen to use
35477 c_strlen_data pointer. Change various variable accesses to instead
35478 pull data from the c_strlen_data structure.
35479 (check_strncat_sizes, expand_builtin_strncat): Likewise.
35480 * calls.c (maybe_warn_nonstring_arg): Likewise.
35481 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
35482 minimum length if maximum lengh is unknown.
35483 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
35484 that used c_strlen, it's no longer needed. Restructure slightly.
35485 (format_string): Set unlikely range appropriately.
35486 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
35488 (get_range_strlen): Accept c_strlen_data pointer for external
35489 call sites as well. Pass through to call to internal get_range_strlen.
35490 Adjust minlen, maxlen and maxbound as needed.
35491 (get_maxval_strlen): Update comments.
35492 (gimple_fold_builtin_strlen): Update call to get_range_strlen
35493 to use c_strlen_data pointer. Change variable accesses to instead
35494 use c_strlen_data data members.
35496 * gimple-fold.c (get_range_strlen): Update prototype.
35497 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
35498 local variables. Use pdata to return information to caller.
35499 Update calls to get_range_strlen. Update pdata->maxbound.
35500 (get_range_strlen -- static version): Similarly.
35501 (get_range_strlen -- extern version): Update for internal
35502 get_range_strlen API change. Convert to external data format.
35503 (get_maxval_strlen): Similarly.
35505 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
35507 * coverage.c (get_coverage_counts): Use current_function_decl.
35508 * profile.c (read_thunk_profile): New function.
35509 (branch_prob): Add THUNK parameter.
35510 * tree-profile.c (tree_profiling): Handle thunks.
35511 * value-prof.c (init_node_map): Handle thunks.
35512 * value-prof.h (branch_prob): Upate prototype.
35513 (read_thunk_profile): Declare.
35515 2019-01-01 Jakub Jelinek <jakub@redhat.com>
35517 Update copyright years.
35519 * gcc.c (process_command): Update copyright notice dates.
35520 * gcov-dump.c (print_version): Ditto.
35521 * gcov.c (print_version): Ditto.
35522 * gcov-tool.c (print_version): Ditto.
35523 * gengtype.c (create_file): Ditto.
35524 * doc/cpp.texi: Bump @copying's copyright year.
35525 * doc/cppinternals.texi: Ditto.
35526 * doc/gcc.texi: Ditto.
35527 * doc/gccint.texi: Ditto.
35528 * doc/gcov.texi: Ditto.
35529 * doc/install.texi: Ditto.
35530 * doc/invoke.texi: Ditto.
35532 Copyright (C) 2019 Free Software Foundation, Inc.
35534 Copying and distribution of this file, with or without modification,
35535 are permitted in any medium without royalty provided the copyright
35536 notice and this notice are preserved.